1 2020-04-08 Tom Tromey <tromey@adacore.com>
3 * win32-low.c (handle_exception): Remove.
4 (windows_nat::handle_ms_vc_exception): New function.
5 (get_child_debug_event): Add "continue_status" parameter.
9 2020-04-08 Tom Tromey <tromey@adacore.com>
11 * win32-low.c (windows_nat::handle_load_dll): Rename from
12 handle_load_dll. No longer static.
13 (windows_nat::handle_unload_dll): Rename from handle_unload_dll.
16 2020-04-08 Tom Tromey <tromey@adacore.com>
18 * win32-low.c (handle_output_debug_string): Add parameter. Change
20 (win32_kill, get_child_debug_event): Update.
22 2020-04-08 Tom Tromey <tromey@adacore.com>
24 * win32-low.c (current_process_handle, current_process_id)
25 (main_thread_id, last_sig, current_event, siginfo_er): Move to
28 2020-04-08 Tom Tromey <tromey@adacore.com>
30 * win32-low.c (get_image_name): Remove.
31 (handle_load_dll): Update.
33 2020-04-08 Tom Tromey <tromey@adacore.com>
35 * win32-low.c (windows_nat::thread_rec): Rename from thread_rec.
36 No longer static. Change parameters.
37 (child_add_thread, child_fetch_inferior_registers)
38 (child_store_inferior_registers, win32_resume)
39 (win32_get_tib_address): Update.
41 2020-04-08 Tom Tromey <tromey@adacore.com>
43 * win32-low.h (struct win32_target_ops): Use qualified names where
45 * win32-i386-low.c: Add "using namespace".
46 * win32-low.c: Add "using namespace".
47 * win32-arm-low.c: Add "using namespace".
49 2020-04-08 Tom Tromey <tromey@adacore.com>
51 * win32-low.c (delete_thread_info): Don't call CloseHandle.
53 2020-04-08 Tom Tromey <tromey@adacore.com>
55 * win32-low.c (win32_require_context, suspend_one_thread): Use
56 windows_thread_info::suspend.
57 (continue_one_thread): Use windows_thread_info::resume.
58 * configure.srv (srv_tgtobj): Add windows-nat.o when needed.
60 2020-04-08 Tom Tromey <tromey@adacore.com>
62 * win32-i386-low.c (update_debug_registers)
63 (i386_prepare_to_resume, i386_thread_added): Update.
65 2020-04-08 Tom Tromey <tromey@adacore.com>
67 * win32-low.c (child_add_thread): Use new.
68 (delete_thread_info): Use delete.
70 2020-04-08 Tom Tromey <tromey@adacore.com>
72 * win32-low.h (struct windows_thread_info): Remove.
74 2020-04-08 Tom Tromey <tromey@adacore.com>
76 * win32-low.h (struct windows_thread_info): Rename from
77 win32_thread_info. Remove typedef.
78 (struct win32_target_ops, win32_require_context): Update.
79 * win32-low.c (win32_get_thread_context)
80 (win32_set_thread_context, win32_prepare_to_resume)
81 (win32_require_context, thread_rec, child_add_thread)
82 (delete_thread_info, continue_one_thread)
83 (child_fetch_inferior_registers, child_store_inferior_registers)
84 (win32_resume, suspend_one_thread, win32_get_tib_address):
86 * win32-i386-low.c (update_debug_registers)
87 (win32_get_current_dr, i386_get_thread_context)
88 (i386_prepare_to_resume, i386_thread_added, i386_single_step)
89 (i386_fetch_inferior_register, i386_store_inferior_register):
91 * win32-arm-low.c (arm_get_thread_context)
92 (arm_fetch_inferior_register, arm_store_inferior_register):
95 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
97 * linux-low.h (struct linux_target_ops): Remove.
98 (the_low_target): Remove.
99 * linux-x86-low.cc (the_low_target): Remove.
100 * linux-aarch64-low.cc (the_low_target): Ditto.
101 * linux-arm-low.cc (the_low_target): Ditto.
102 * linux-bfin-low.cc (the_low_target): Ditto.
103 * linux-cris-low.cc (the_low_target): Ditto.
104 * linux-crisv32-low.cc (the_low_target): Ditto.
105 * linux-ia64-low.cc (the_low_target): Ditto.
106 * linux-m32r-low.cc (the_low_target): Ditto.
107 * linux-m68k-low.cc (the_low_target): Ditto.
108 * linux-mips-low.cc (the_low_target): Ditto.
109 * linux-nios2-low.cc (the_low_target): Ditto.
110 * linux-ppc-low.cc (the_low_target): Ditto.
111 * linux-riscv-low.cc (the_low_target): Ditto.
112 * linux-s390-low.cc (the_low_target): Ditto.
113 * linux-sh-low.cc (the_low_target): Ditto.
114 * linux-sparc-low.cc (the_low_target): Ditto.
115 * linux-tic6x-low.cc (the_low_target): Ditto.
116 * linux-tile-low.cc (the_low_target): Ditto.
117 * linux-xtensa-low.cc (the_low_target): Ditto.
119 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
121 Remove the 'get_ipa_tdesc_idx' linux target op and let a concrete
122 linux target define the op by overriding the declaration in
123 process_stratum_target.
125 * linux-low.h (struct linux_target_ops): Remove the op.
126 (class linux_process_target) <get_ipa_tdesc_idx>: Remove.
127 * linux-low.cc (linux_process_target::get_ipa_tdesc_idx): Remove.
128 * linux-x86-low.cc (class x86_target) <get_ipa_tdesc_idx>: Declare.
129 (x86_get_ipa_tdesc_idx): Turn into...
130 (x86_target::get_ipa_tdesc_idx): ...this.
131 (the_low_target): Remove the op field.
132 * linux-ppc-low.cc (class ppc_target) <get_ipa_tdesc_idx>: Declare.
133 (ppc_get_ipa_tdesc_idx): Turn into...
134 (ppc_target::get_ipa_tdesc_idx): ...this.
135 (the_low_target): Remove the op field.
136 * linux-s390-low.cc (class s390_target) <get_ipa_tdesc_idx>: Declare.
137 (s390_get_ipa_tdesc_idx): Turn into...
138 (s390_target::get_ipa_tdesc_idx): ...this.
139 (the_low_target): Remove the op field.
141 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
143 Turn the 'get_syscall_trapinfo' linux target op into a method
144 of process_stratum_target.
146 * linux-low.h (struct linux_target_ops): Remove the op.
147 (class linux_process_target) <get_syscall_trapinfo>
148 <gdb_catch_this_syscall>
149 <low_supports_catch_syscall>
150 <low_get_syscall_trapinfo>: Declare.
151 * linux-low.cc (get_syscall_trapinfo): Turn into...
152 (linux_process_target::get_syscall_trapinfo): ...this.
153 (linux_process_target::low_get_syscall_trapinfo): Define.
154 (gdb_catch_this_syscall_p): Turn into...
155 (linux_process_target::gdb_catch_this_syscall): ...this.
156 (linux_process_target::low_supports_catch_syscall): Define.
158 Update the callers below.
160 (linux_process_target::wait_1)
161 (linux_process_target::supports_catch_syscall)
163 * linux-x86-low.cc (class x86_target) <low_supports_catch_syscall>
164 <low_get_syscall_trapinfo>: Declare.
165 (x86_target::low_supports_catch_syscall): Define.
166 (x86_get_syscall_trapinfo): Turn into...
167 (x86_target::low_get_syscall_trapinfo): ...this.
168 (the_low_target): Remove the op field.
169 * linux-aarch64-low.cc (class aarch64_target)
170 <low_supports_catch_syscall>
171 <low_get_syscall_trapinfo>: Declare.
172 (aarch64_target::low_supports_catch_syscall): Define.
173 (aarch64_get_syscall_trapinfo): Turn into...
174 (aarch64_target::low_get_syscall_trapinfo): ...this.
175 (the_low_target): Remove the op field.
176 * linux-arm-low.cc (class arm_target) <low_supports_catch_syscall>
177 <low_get_syscall_trapinfo>: Declare.
178 (arm_target::low_supports_catch_syscall): Define.
179 (arm_get_syscall_trapinfo): Turn into...
180 (arm_target::low_get_syscall_trapinfo): ...this.
181 (the_low_target): Remove the op field.
182 * linux-ppc-low.cc (the_low_target): Remove the op field.
183 * linux-s390-low.cc (the_low_target): Remove the op field.
185 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
187 Remove the 'supports_hardware_single_step' linux target op and
188 override the process_stratum_target's op definition in
189 linux_process_target to return true.
191 * linux-low.h (struct linux_target_ops): Remove the op.
192 (class linux_process_target) <finish_step_over>
193 <maybe_hw_step>: Declare.
194 * linux-low.cc (can_hardware_single_step): Remove.
195 (maybe_hw_step): Turn into...
196 (linux_process_target::maybe_hw_step): ...this.
197 (finish_step_over): Turn into...
198 (linux_process_target::finish_step_over): ...this.
199 (linux_process_target::supports_hardware_single_step): Update
202 Update the callers below.
204 (linux_process_target::single_step)
205 (linux_process_target::resume_one_lwp_throw)
207 * linux-arm-low.cc (class arm_target)
208 <supports_hardware_single_step>: Declare.
209 (arm_supports_hardware_single_step): Turn into...
210 (arm_target::supports_hardware_single_step): ...this.
211 (the_low_target): Remove the op field.
212 * linux-x86-low.cc (x86_supports_hardware_single_step): Remove.
213 (the_low_target): Remove the op field.
214 * linux-aarch64-low.cc (aarch64_supports_hardware_single_step):
216 (the_low_target): Remove the op field.
217 * linux-bfin-low.cc (bfin_supports_hardware_single_step): Remove.
218 (the_low_target): Remove the op field.
219 * linux-crisv32-low.cc (cris_supports_hardware_single_step): Remove.
220 (the_low_target): Remove the op field.
221 * linux-m32r-low.cc (m32r_supports_hardware_single_step): Remove.
222 (the_low_target): Remove the op field.
223 * linux-m68k-low.cc (m68k_supports_hardware_single_step): Remove.
224 (the_low_target): Remove the op field.
225 * linux-ppc-low.cc (ppc_supports_hardware_single_step): Remove.
226 (the_low_target): Remove the op field.
227 * linux-s390-low.cc (s390_supports_hardware_single_step): Remove.
228 (the_low_target): Remove the op field.
229 * linux-sh-low.cc (sh_supports_hardware_single_step): Remove.
230 (the_low_target): Remove the op field.
231 * linux-tic6x-low.cc (tic6x_supports_hardware_single_step): Remove.
232 (the_low_target): Remove the op field.
233 * linux-tile-low.cc (tile_supports_hardware_single_step): Remove.
234 (the_low_target): Remove the op field.
235 * linux-xtensa-low.cc (xtensa_supports_hardware_single_step):
237 (the_low_target): Remove the op field.
239 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
241 Turn the 'supports_range_stepping' linux target op into a method
242 of linux_process_target.
244 * linux-low.h (struct linux_target_ops): Remove the op.
245 (class linux_process_target) <low_supports_range_stepping>: Declare.
246 * linux-low.cc (linux_process_target::low_supports_range_stepping):
248 (linux_process_target::supports_range_stepping): Update the call
250 * linux-x86-low.cc (class x86_target)
251 <low_supports_range_stepping>: Declare.
252 (x86_supports_range_stepping): Turn into...
253 (x86_target::low_supports_range_stepping): ...this.
254 (the_low_target): Remove the op field.
255 * linux-aarch64-low.cc (class aarch64_target)
256 <low_supports_range_stepping>: Declare.
257 (aarch64_supports_range_stepping): Turn into...
258 (aarch64_target::low_supports_range_stepping): ...this.
259 (the_low_target): Remove the op field.
260 * linux-arm-low.cc (the_low_target): Remove the op field.
261 * linux-bfin-low.cc (the_low_target): Ditto.
262 * linux-crisv32-low.cc (the_low_target): Ditto.
263 * linux-m32r-low.cc (the_low_target): Ditto.
264 * linux-m68k-low.cc (the_low_target): Ditto.
265 * linux-ppc-low.cc (the_low_target): Ditto.
266 * linux-s390-low.cc (the_low_target): Ditto.
267 * linux-sh-low.cc (the_low_target): Ditto.
268 * linux-tic6x-low.cc (the_low_target): Ditto.
269 * linux-tile-low.cc (the_low_target): Ditto.
270 * linux-xtensa-low.cc (the_low_target): Ditto.
272 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
274 Remove the 'emit_ops' linux target ops and let the concrete
275 linux target define the op by overriding the declaration of
276 process_stratum_target.
278 * linux-low.h (struct linux_target_ops): Remove the op.
279 (class linux_process_target) <emit_ops>: Remove.
280 * linux-low.cc (linux_process_target::emit_ops): Remove.
281 * linux-x86-low.cc (class x86_target) <emit_ops>: Declare.
282 (x86_emit_ops): Turn into...
283 (x86_target::emit_ops): ...this.
284 (the_low_target): Remove the op field.
285 * linux-aarch64-low.cc (class aarch64_target) <emit_ops>: Declare.
286 (aarch64_emit_ops): Turn into...
287 (aarch64_target::emit_ops): ...this.
288 (the_low_target): Remove the op field.
289 * linux-ppc-low.cc (class ppc_target) <emit_ops>: Declare.
290 (ppc_emit_ops): Turn into...
291 (ppc_target::emit_ops): ...this.
292 (the_low_target): Remove the op field.
293 * linux-s390-low.cc (class s390_target) <emit_ops>: Declare.
294 (s390_emit_ops): Turn into...
295 (s390_target::emit_ops): ...this.
296 (the_low_target): Remove the op field.
297 * linux-arm-low.cc (the_low_target): Remove the op field.
298 * linux-bfin-low.cc (the_low_target): Ditto.
299 * linux-crisv32-low.cc (the_low_target): Ditto.
300 * linux-m32r-low.cc (the_low_target): Ditto.
301 * linux-m68k-low.cc (the_low_target): Ditto.
302 * linux-sh-low.cc (the_low_target): Ditto.
303 * linux-tic6x-low.cc (the_low_target): Ditto.
304 * linux-tile-low.cc (the_low_target): Ditto.
305 * linux-xtensa-low.cc (the_low_target): Ditto.
307 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
309 Remove the 'install_fast_tracepoint_jump_pad' and
310 'get_min_fast_tracepoint_insn_len' linux target ops to let the
311 concrete linux target define the ops by overriding the declarations
312 of process_stratum_target.
314 * linux-low.h (struct linux_target_ops): Remove the ops.
315 (class linux_process_target) <supports_fast_tracepoints>
316 <install_fast_tracepoint_jump_pad>
317 <get_min_fast_tracepoint_insn_len>: Remove.
318 * linux-low.cc (linux_process_target::supports_fast_tracepoints)
319 (linux_process_target::install_fast_tracepoint_jump_pad)
320 (linux_process_target::get_min_fast_tracepoint_insn_len): Remove.
321 * linux-x86-low.cc (class x86_target) <supports_fast_tracepoints>
322 <install_fast_tracepoint_jump_pad>
323 <get_min_fast_tracepoint_insn_len>: Declare.
324 (x86_target::supports_fast_tracepoints): Define.
325 (x86_install_fast_tracepoint_jump_pad): Turn into...
326 (x86_target::install_fast_tracepoint_jump_pad): ...this.
327 (x86_get_min_fast_tracepoint_insn_len): Turn into...
328 (x86_target::get_min_fast_tracepoint_insn_len): ...this.
329 (the_low_target): Remove the op fields.
330 * linux-aarch64-low.cc (class aarch64_target)
331 <supports_fast_tracepoints>
332 <install_fast_tracepoint_jump_pad>
333 <get_min_fast_tracepoint_insn_len>: Declare.
334 (aarch64_target::supports_fast_tracepoints): Define.
335 (aarch64_install_fast_tracepoint_jump_pad): Turn into...
336 (aarch64_target::install_fast_tracepoint_jump_pad): ...this.
337 (aarch64_get_min_fast_tracepoint_insn_len): Turn into...
338 (aarch64_target::get_min_fast_tracepoint_insn_len): ...this.
339 (the_low_target): Remove the op fields.
340 * linux-ppc-low.cc (class ppc_target) <supports_fast_tracepoints>
341 <install_fast_tracepoint_jump_pad>
342 <get_min_fast_tracepoint_insn_len>: Declare.
343 (ppc_target::supports_fast_tracepoints): Define.
344 (ppc_install_fast_tracepoint_jump_pad): Turn into...
345 (ppc_target::install_fast_tracepoint_jump_pad): ...this.
346 (ppc_get_min_fast_tracepoint_insn_len): Turn into...
347 (ppc_target::get_min_fast_tracepoint_insn_len): ...this.
348 (the_low_target): Remove the op fields.
349 * linux-s390-low.cc (class s390_target) <supports_fast_tracepoints>
350 <install_fast_tracepoint_jump_pad>
351 <get_min_fast_tracepoint_insn_len>: Declare.
352 (s390_target::supports_fast_tracepoints): Define.
353 (s390_install_fast_tracepoint_jump_pad): Turn into...
354 (s390_target::install_fast_tracepoint_jump_pad): ...this.
355 (s390_get_min_fast_tracepoint_insn_len): Turn into...
356 (s390_target::get_min_fast_tracepoint_insn_len): ...this.
357 (the_low_target): Remove the op fields.
358 * linux-arm-low.cc (the_low_target): Remove the op fields.
359 * linux-bfin-low.cc (the_low_target): Ditto.
360 * linux-crisv32-low.cc (the_low_target): Ditto.
361 * linux-m32r-low.cc (the_low_target): Ditto.
362 * linux-m68k-low.cc (the_low_target): Ditto.
363 * linux-sh-low.cc (the_low_target): Ditto.
364 * linux-tic6x-low.cc (the_low_target): Ditto.
365 * linux-tile-low.cc (the_low_target): Ditto.
366 * linux-xtensa-low.cc (the_low_target): Ditto.
368 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
370 Turn the 'get_thread_area' linux target op into a method of
371 process_stratum_target.
373 * linux-low.h (struct linux_target_ops): Remove the op.
374 (class linux_process_target) <stuck_in_jump_pad>
375 <linux_fast_tracepoint_collecting>
376 <low_get_thread_area>: Declare.
377 * linux-low.cc (supports_fast_tracepoints): Remove.
378 (linux_fast_tracepoint_collecting): Turn into...
379 (linux_process_target::linux_fast_tracepoint_collecting): ...this.
380 (linux_process_target::low_get_thread_area): Define.
381 (stuck_in_jump_pad_callback): Turn into...
382 (linux_process_target::stuck_in_jump_pad): ...this.
384 Update the caller below.
386 (linux_process_target::stabilize_threads)
388 * linux-x86-low.cc (class x86_target) <low_get_thread_area>:
390 (x86_get_thread_area): Turn into...
391 (x86_target::low_get_thread_area): ...this.
392 (the_low_target): Remove the op field.
393 * linux-aarch64-low.cc (class aarch64_target) <low_get_thread_area>:
395 (aarch64_get_thread_area): Turn into...
396 (aarch64_target::low_get_thread_area): ...this.
397 (the_low_target): Remove the op field.
398 * linux-ppc-low.cc (class ppc_target) <low_get_thread_area>:
400 (ppc_get_thread_area): Turn into...
401 (ppc_target::low_get_thread_area): ...this.
402 (the_low_target): Remove the op field.
403 * linux-s390-low.cc (class s390_target) <low_get_thread_area>:
405 (s390_get_thread_area): Turn into...
406 (s390_target::low_get_thread_area): ...this.
407 (the_low_target): Remove the op field.
408 * linux-arm-low.cc (the_low_target): Remove the op field.
409 * linux-bfin-low.cc (the_low_target): Ditto.
410 * linux-crisv32-low.cc (the_low_target): Ditto.
411 * linux-m32r-low.cc (the_low_target): Ditto.
412 * linux-m68k-low.cc (the_low_target): Ditto.
413 * linux-sh-low.cc (the_low_target): Ditto.
414 * linux-tic6x-low.cc (the_low_target): Ditto.
415 * linux-tile-low.cc (the_low_target): Ditto.
416 * linux-xtensa-low.cc (the_low_target): Ditto.
418 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
420 Remote the 'supports_tracepoints' linux target op and let the
421 concrete linux target define it by overriding the op declared in
422 process_stratum_target.
424 * linux-low.h (struct linux_target_ops): Remove the op.
425 (class linux_process_target) <supports_tracepoints>: Remove.
426 * linux-low.cc (linux_process_target::supports_tracepoints): Remove.
427 * linux-x86-low.cc (class x86_target) <supports_tracepoints>:
429 (x86_supports_tracepoints): Turn into...
430 (x86_target::supports_tracepoints): ...this.
431 (the_low_target): Remove the op field.
432 * linux-aarch64-low.cc (class aarch64_target)
433 <supports_tracepoints>: Declare.
434 (aarch64_supports_tracepoints): Turn into...
435 (aarch64_target::supports_tracepoints): ...this.
436 (the_low_target): Remove the op field.
437 * linux-ppc-low.cc (class ppc_target) <supports_tracepoints>:
439 (ppc_supports_tracepoints): Turn into...
440 (ppc_target::supports_tracepoints): ...this.
441 (the_low_target): Remove the op field.
442 * linux-s390-low.cc (class s390_target) <supports_tracepoints>:
444 (s390_supports_tracepoints): Turn into...
445 (s390_target::supports_tracepoints): ...this.
446 (the_low_target): Remove the op field.
447 * linux-arm-low.cc (the_low_target): Remove the op field.
448 * linux-bfin-low.cc (the_low_target): Ditto.
449 * linux-crisv32-low.cc (the_low_target): Ditto.
450 * linux-m32r-low.cc (the_low_target): Ditto.
451 * linux-m68k-low.cc (the_low_target): Ditto.
452 * linux-sh-low.cc (the_low_target): Ditto.
453 * linux-tic6x-low.cc (the_low_target): Ditto.
454 * linux-tile-low.cc (the_low_target): Ditto.
455 * linux-xtensa-low.cc (the_low_target): Ditto.
457 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
459 Remove the 'process_qsupported' linux target op and let a concrete
460 linux target define the op by overriding the op declaration in
461 process_stratum_target.
463 * linux-low.h (struct linux_target_ops): Remove the op.
464 (class linux_process_target) <process_qsupported>: Remove.
465 * linux-low.cc (linux_process_target::process_qsupported): Remove.
466 * linux-x86-low.cc (class x86_target) <process_qsupported>: Declare.
467 (x86_linux_process_qsupported): Turn into...
468 (x86_target::process_qsupported): ...this.
469 (the_low_target): Remove the op field.
470 * linux-aarch64-low.cc (the_low_target): Remove the op
472 * linux-arm-low.cc (the_low_target): Ditto.
473 * linux-bfin-low.cc (the_low_target): Ditto.
474 * linux-crisv32-low.cc (the_low_target): Ditto.
475 * linux-m32r-low.cc (the_low_target): Ditto.
476 * linux-m68k-low.cc (the_low_target): Ditto.
477 * linux-ppc-low.cc (the_low_target): Ditto.
478 * linux-s390-low.cc (the_low_target): Ditto.
479 * linux-sh-low.cc (the_low_target): Ditto.
480 * linux-tic6x-low.cc (the_low_target): Ditto.
481 * linux-tile-low.cc (the_low_target): Ditto.
482 * linux-xtensa-low.cc (the_low_target): Ditto.
484 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
486 Turn the 'prepare_to_resume' linux target op into a method of
487 linux_process_target.
489 * linux-low.h (struct linux_target_ops): Remove the op.
490 (class linux_process_target) <low_prepare_to_resume>: Declare.
491 * linux-low.cc (linux_process_target::low_prepare_to_resume):
494 Update the callers below:
496 (linux_process_target::resume_one_lwp_throw)
497 (linux_process_target::low_prepare_to_resume)
499 * linux-x86-low.cc (class x86_target) <low_prepare_to_resume>:
501 (x86_target::low_prepare_to_resume): Define.
502 (the_low_target): Remove the op field.
503 * linux-aarch64-low.cc (class aarch64_target)
504 <low_prepare_to_resume>: Declare.
505 (aarch64_target::low_prepare_to_resume): Define.
506 (the_low_target): Remove the op field.
507 * linux-arm-low.cc (class arm_target) <low_prepare_to_resume>:
509 (arm_prepare_to_resume): Turn into...
510 (arm_target::low_prepare_to_resume): ...this.
511 (the_low_target): Remove the op field.
512 * linux-mips-low.cc (class mips_target) <low_prepare_to_resume>:
514 (mips_linux_prepare_to_resume): Turn into...
515 (mips_target::low_prepare_to_resume): ...this.
516 (the_low_target): Remove the op field.
517 * linux-bfin-low.cc (the_low_target): Remove the op field.
518 * linux-crisv32-low.cc (the_low_target): Ditto.
519 * linux-m32r-low.cc (the_low_target): Ditto.
520 * linux-m68k-low.cc (the_low_target): Ditto.
521 * linux-ppc-low.cc (the_low_target): Ditto.
522 * linux-s390-low.cc (the_low_target): Ditto.
523 * linux-sh-low.cc (the_low_target): Ditto.
524 * linux-tic6x-low.cc (the_low_target): Ditto.
525 * linux-tile-low.cc (the_low_target): Ditto.
526 * linux-xtensa-low.cc (the_low_target): Ditto.
528 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
530 Turn the 'new_process', 'delete_process', 'new_thread',
531 'delete_thread', and 'new_fork' linux target ops into methods
532 of linux_process_target.
534 * linux-low.h (struct linux_target_ops): Remove the ops.
535 (class linux_process_target) <add_linux_process>
540 <check_zombie_leaders>
546 <low_new_fork>: Declare.
547 * linux-low.cc (delete_lwp): Turn into...
548 (linux_process_target::delete_lwp): ...this.
549 (linux_process_target::low_delete_thread): Define.
550 (linux_add_process): Turn into...
551 (linux_process_target::add_linux_process): ...this.
552 (linux_process_target::low_new_process): Define.
553 (linux_process_target::low_delete_process): Define.
554 (linux_process_target::low_new_fork): Define.
555 (add_lwp): Turn into...
556 (linux_process_target::add_lwp): ...this.
557 (linux_process_target::low_new_thread): Define.
558 (linux_attach_lwp): Turn into...
559 (linux_process_target::attach_lwp): ...this.
560 (linux_detach_one_lwp): Turn into...
561 (linux_process_target::detach_one_lwp): ...this.
562 (linux_detach_lwp_callback): Remove and inline...
563 (linux_process_target::detach): ...here.
564 (check_zombie_leaders): Turn into...
565 (linux_process_target::check_zombie_leaders): ...this.
566 (filter_exit_event): Turn into...
567 (linux_process_target::filter_exit_event): ...this.
569 Update the callers below.
571 (linux_process_target::handle_extended_wait)
572 (linux_process_target::create_inferior)
573 (attach_proc_task_lwp_callback)
574 (linux_process_target::attach)
575 (linux_process_target::detach)
576 (linux_process_target::mourn)
577 * thread-db.cc (attach_thread)
579 * linux-x86-low.cc (class x86_target) <low_new_process>
583 <low_new_fork>: Declare.
584 (x86_linux_new_process): Turn into...
585 (x86_target::low_new_process): ...this.
586 (x86_linux_delete_process): Turn into...
587 (x86_target::low_delete_process): ...this.
588 (x86_target::low_new_thread): Define.
589 (x86_target::low_delete_thread): Define.
590 (x86_linux_new_fork): Turn into...
591 (x86_target::low_new_fork): ...this.
592 (the_low_target): Remove the op fields.
593 * linux-aarch64-low.cc (class aarch64_target) <low_new_process>
597 <low_new_fork>: Declare.
598 (aarch64_linux_new_process): Turn into...
599 (aarch64_target::low_new_process): ...this.
600 (aarch64_linux_delete_process): Turn into...
601 (aarch64_target::low_delete_process): ...this.
602 (aarch64_target::low_new_thread): Define.
603 (aarch64_target::low_delete_thread): Define.
604 (aarch64_linux_new_fork): Turn into...
605 (aarch64_target::low_new_fork): ...this.
606 (the_low_target): Remove the op fields.
607 * linux-arm-low.cc (class arm_target) <low_new_process>
611 <low_new_fork>: Declare.
612 (arm_new_process): Turn into...
613 (arm_target::low_new_process): ...this.
614 (arm_delete_process): Turn into...
615 (arm_target::low_delete_process): ...this.
616 (arm_new_thread): Turn into...
617 (arm_target::low_new_thread): ...this.
618 (arm_delete_thread): Turn into...
619 (arm_target::low_delete_thread): ...this.
620 (arm_new_fork): Turn into...
621 (arm_target::low_new_fork): ...this.
622 (the_low_target): Remove the op fields.
623 * linux-mips-low.cc (class mips_target) <low_new_process>
627 <low_new_fork>: Declare.
628 (mips_linux_new_process): Turn into...
629 (mips_target::low_new_process): ...this.
630 (mips_linux_delete_process): Turn into...
631 (mips_target::low_delete_process): ...this.
632 (mips_linux_new_thread): Turn into...
633 (mips_target::low_new_thread): ...this.
634 (mips_linux_delete_thread): Turn into...
635 (mips_target::low_delete_thread): ...this.
636 (mips_linux_new_fork): Turn into...
637 (mips_target::low_new_fork): ...this.
638 (the_low_target): Remove the op fields.
639 * linux-bfin-low.cc (the_low_target): Remove the op fields.
640 * linux-crisv32-low.cc (the_low_target): Ditto.
641 * linux-m32r-low.cc (the_low_target): Ditto.
642 * linux-m68k-low.cc (the_low_target): Ditto.
643 * linux-ppc-low.cc (the_low_target): Ditto.
644 * linux-s390-low.cc (the_low_target): Ditto.
645 * linux-sh-low.cc (the_low_target): Ditto.
646 * linux-tic6x-low.cc (the_low_target): Ditto.
647 * linux-tile-low.cc (the_low_target): Ditto.
648 * linux-xtensa-low.cc (the_low_target): Ditto.
650 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
652 Turn the 'siginfo_fixup' linux target op into a method of
653 linux_process_target.
655 * linux-low.h (struct linux_target_ops): Remove the op.
656 (class linux_process_target) <siginfo_fixup>
657 <low_siginfo_fixup>: Declare.
658 * linux-low.cc (siginfo_fixup): Turn into...
659 (linux_process_target::siginfo_fixup): ...this.
660 (linux_process_target::low_siginfo_fixup): Define.
661 * linux-x86-low.cc (class x86_target) <low_siginfo_fixup>: Declare.
662 (x86_siginfo_fixup): Turn into...
663 (x86_target::low_siginfo_fixup): ...this.
664 (the_low_target): Remove the op field.
665 * linux-aarch64-low.cc (class aarch64_target):
666 <low_siginfo_fixup>: Declare.
667 (aarch64_linux_siginfo_fixup): Turn into...
668 (aarch64_target::low_siginfo_fixup): ...this.
669 (the_low_target): Remove the op field.
670 * linux-arm-low.cc (the_low_target): Remove the op field.
671 * linux-bfin-low.cc (the_low_target): Ditto.
672 * linux-crisv32-low.cc (the_low_target): Ditto.
673 * linux-m32r-low.cc (the_low_target): Ditto.
674 * linux-m68k-low.cc (the_low_target): Ditto.
675 * linux-mips-low.cc (the_low_target): Ditto.
676 * linux-ppc-low.cc (the_low_target): Ditto.
677 * linux-s390-low.cc (the_low_target): Ditto.
678 * linux-sh-low.cc (the_low_target): Ditto.
679 * linux-tic6x-low.cc (the_low_target): Ditto.
680 * linux-tile-low.cc (the_low_target): Ditto.
681 * linux-xtensa-low.cc (the_low_target): Ditto.
683 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
685 Turn the 'collect_ptrace_register' and 'supply_ptrace_register'
686 linux target ops into methods of linux_process_target.
688 * linux-low.h (struct linux_target_ops): Remove the ops.
689 (class linux_process_target) <low_collect_ptrace_register>
690 <low_store_ptrace_register>: Declare.
691 * linux-low.cc (linux_process_target::low_collect_ptrace_register)
692 (linux_process_target::low_supply_ptrace_register): Define.
694 Update the callers below.
696 (linux_process_target::fetch_register)
697 (linux_process_target::store_register)
699 * linux-x86-low.cc (the_low_target): Remove the op fields.
700 * linux-aarch64-low.cc (the_low_target): Ditto.
701 * linux-arm-low.cc (the_low_target): Ditto.
702 * linux-bfin-low.cc (the_low_target): Ditto.
703 * linux-crisv32-low.cc (the_low_target): Ditto.
704 * linux-m32r-low.cc (the_low_target): Ditto.
705 * linux-m68k-low.cc (the_low_target): Ditto.
706 * linux-sh-low.cc (the_low_target): Ditto.
707 * linux-sparc-low.cc (the_low_target): Ditto.
708 * linux-tic6x-low.cc (the_low_target): Ditto.
709 * linux-tile-low.cc (the_low_target): Ditto.
710 * linux-xtensa-low.cc (the_low_target): Ditto.
711 * linux-mips-low.cc (class mips_target)
712 <low_collect_ptrace_register>
713 <low_supply_ptrace_register>: Declare.
714 (mips_collect_ptrace_register): Turn into ...
715 (mips_target::low_collect_ptrace_register): ...this.
716 (mips_supply_ptrace_register): Turn into...
717 (mips_target::low_supply_ptrace_register): ...this.
718 (the_low_target): Remove the op fields.
719 * linux-ppc-low.cc (class ppc_target)
720 <low_collect_ptrace_register>
721 <low_supply_ptrace_register>: Declare.
722 (ppc_collect_ptrace_register): Turn into ...
723 (ppc_target::low_collect_ptrace_register): ...this.
724 (ppc_supply_ptrace_register): Turn into ...
725 (ppc_target::low_supply_ptrace_register): ...this.
726 (ppc_fill_gregset): Update for the calls to
727 low_collect_ptrace_register.
728 (the_low_target): Remove the op fields.
729 * linux-s390-low.cc (class s390_target)
730 <low_collect_ptrace_register>
731 <low_supply_ptrace_register>: Declare.
732 (s390_collect_ptrace_register): Turn into ...
733 (s390_target::low_collect_ptrace_register): ...this.
734 (s390_supply_ptrace_register): Turn into ...
735 (s390_target::low_supply_ptrace_register): ...this.
736 (s390_fill_gregset): Update for the calls to
737 low_collect_ptrace_register.
738 (the_low_target): Remove the op fields.
740 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
742 Turn the 'stopped_by_watchpoint' and 'stopped_data_address' linux
743 target ops into methods of linux_process_target.
745 * linux-low.h (struct linux_target_ops): Remove the ops.
746 (class linux_process_target) <check_stopped_by_watchpoint>
747 <low_stopped_by_watchpoint>
748 <low_stopped_data_address>: Declare.
749 * linux-low.cc (check_stopped_by_watchpoint): Turn into...
750 (linux_process_target::check_stopped_by_watchpoint): ...this.
751 (linux_process_target::low_stopped_by_watchpoint): Define.
752 (linux_process_target::low_stopped_data_address): Define.
753 * linux-x86-low.cc (class x86_target) <low_stopped_by_watchpoint>
754 <low_stopped_data_address>: Declare.
755 (x86_stopped_by_watchpoint): Turn into...
756 (x86_target::low_stopped_by_watchpoint): ...this.
757 (x86_stopped_data_address): Turn into...
758 (x86_target::low_stopped_data_address): ...this.
759 (the_low_target): Remove the op fields.
760 * linux-aarch64-low.cc (class aarch64_target)
761 <low_stopped_by_watchpoint>
762 <low_stopped_data_address>: Declare.
763 (aarch64_stopped_by_watchpoint): Turn into...
764 (aarch64_target::low_stopped_by_watchpoint): ...this.
765 (aarch64_stopped_data_address): Turn into...
766 (aarch64_target::low_stopped_data_address): ...this.
767 (the_low_target): Remove the op fields.
768 * linux-arm-low.cc (class arm_target) <low_stopped_by_watchpoint>
769 <low_stopped_data_address>: Declare.
770 (arm_stopped_by_watchpoint): Turn into...
771 (arm_target::low_stopped_by_watchpoint): ...this.
772 (arm_stopped_data_address): Turn into...
773 (arm_target::low_stopped_data_address): ...this.
774 (the_low_target): Remove the op fields.
775 * linux-crisv32-low.cc (class crisv32_target)
776 <low_stopped_by_watchpoint>
777 <low_stopped_data_address>: Declare.
778 (cris_stopped_by_watchpoint): Turn into...
779 (crisv32_target::low_stopped_by_watchpoint): ...this.
780 (cris_stopped_data_address): Turn into...
781 (crisv32_target::low_stopped_data_address): ...this.
782 (the_low_target): Remove the op fields.
783 * linux-mips-low.cc (class mips_target) <low_stopped_by_watchpoint>
784 <low_stopped_data_address>: Declare.
785 (mips_stopped_by_watchpoint): Turn into...
786 (mips_target::low_stopped_by_watchpoint): ...this.
787 (mips_stopped_data_address): Turn into...
788 (mips_target::low_stopped_data_address): ...this.
789 (the_low_target): Remove the op fields.
790 * linux-bfin-low.cc (the_low_target): Remove the op fields.
791 * linux-m32r-low.cc (the_low_target): Ditto.
792 * linux-m68k-low.cc (the_low_target): Ditto.
793 * linux-ppc-low.cc (the_low_target): Ditto.
794 * linux-s390-low.cc (the_low_target): Ditto.
795 * linux-sh-low.cc (the_low_target): Ditto.
796 * linux-sparc-low.cc (the_low_target): Ditto.
797 * linux-tic6x-low.cc (the_low_target): Ditto.
798 * linux-tile-low.cc (the_low_target): Ditto.
799 * linux-xtensa-low.cc (the_low_target): Ditto.
801 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
803 Turn the 'insert_point' and 'remove_point' linux target ops into
804 methods of linux_process_target.
806 * linux-low.h (struct linux_target_ops): Remove the ops.
807 (class linux_process_target) <low_insert_point>
808 <low_remove_point>: Declare.
809 * linux-low.cc (linux_process_target::low_insert_point)
810 (linux_process_target::low_remove_point): Define.
811 (linux_process_target::insert_point)
812 (linux_process_target::remove_point): Update for calls to
813 low_insert_point and low_remove_point.
814 * linux-x86-low.cc (class x86_target) <low_insert_point>
815 <low_remove_point>: Declare.
816 (x86_insert_point): Turn into...
817 (x86_target::low_insert_point): ...this.
818 (x86_remove_point): Turn into...
819 (x86_target::low_remove_point): ...this.
820 (the_low_target): Remove the op fields.
821 * linux-aarch64-low.cc (class aarch64_target) <low_insert_point>
822 <low_remove_point>: Declare.
823 (aarch64_insert_point): Turn into...
824 (aarch64_target::low_insert_point): ...this.
825 (aarch64_remove_point): Turn into...
826 (aarch64_target::low_remove_point): ...this.
827 (the_low_target): Remove the op fields.
828 * linux-arm-low.cc (class arm_target) <low_insert_point>
829 <low_remove_point>: Declare.
830 (arm_insert_point): Turn into...
831 (arm_target::low_insert_point): ...this.
832 (arm_remove_point): Turn into...
833 (arm_target::low_remove_point): ...this.
834 (the_low_target): Remove the op fields.
835 * linux-crisv32-low.cc (class crisv32_target) <low_insert_point>
836 <low_remove_point>: Declare.
837 (crisv32_insert_point): Turn into...
838 (crisv32_target::low_insert_point): ...this.
839 (crisv32_remove_point): Turn into...
840 (crisv32_target::low_remove_point): ...this.
841 (the_low_target): Remove the op fields.
842 * linux-mips-low.cc (class mips_target) <low_insert_point>
843 <low_remove_point>: Declare.
844 (mips_insert_point): Turn into...
845 (mips_target::low_insert_point): ...this.
846 (mips_remove_point): Turn into...
847 (mips_target::low_remove_point): ...this.
848 (the_low_target): Remove the op fields.
849 * linux-ppc-low.cc (class ppc_target) <low_insert_point>
850 <low_remove_point>: Declare.
851 (ppc_insert_point): Turn into...
852 (ppc_target::low_insert_point): ...this.
853 (ppc_remove_point): Turn into...
854 (ppc_target::low_remove_point): ...this.
855 (the_low_target): Remove the op fields.
856 * linux-bfin-low.cc (the_low_target): Remove the op fields.
857 * linux-m32r-low.cc (the_low_target): Ditto.
858 * linux-m68k-low.cc (the_low_target): Ditto.
859 * linux-s390-low.cc (the_low_target): Ditto.
860 * linux-sh-low.cc (the_low_target): Ditto.
861 * linux-sparc-low.cc (the_low_target): Ditto.
862 * linux-tic6x-low.cc (the_low_target): Ditto.
863 * linux-tile-low.cc (the_low_target): Ditto.
864 * linux-xtensa-low.cc (the_low_target): Ditto.
866 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
868 Remove the 'supports_z_point_type' linux target op and let the
869 concrete linux target define it by overriding the op declared in
870 process_stratum_target.
872 * linux-low.cc (linux_process_target::supports_z_point_type):
874 * linux-low.h (struct linux_target_ops): Remove the op.
875 (class linux_process_target) <supports_z_point_type>: Remove.
876 * linux-x86-low.cc (class x86_target) <supports_z_point_type>:
878 (x86_supports_z_point_type): Turn into...
879 (x86_target::supports_z_point_type): ...this.
880 (the_low_target): Remove the op field.
881 * linux-aarch64-low.cc (class aarch64_target)
882 <supports_z_point_type>: Declare.
883 (aarch64_supports_z_point_type): Turn into...
884 (aarch64_target::supports_z_point_type): ...this.
885 (the_low_target): Remove the op field.
886 * linux-arm-low.cc (class arm_target) <supports_z_point_type>:
888 (arm_supports_z_point_type): Turn into...
889 (arm_target::supports_z_point_type): ...this.
890 (the_low_target): Remove the op field.
891 * linux-crisv32-low.cc (class crisv32_target)
892 <supports_z_point_type>: Declare.
893 (cris_supports_z_point_type): Turn into...
894 (crisv32_target::supports_z_point_type): ...this.
895 (the_low_target): Remove the op field.
896 * linux-mips-low.cc (class mips_target) <supports_z_point_type>:
898 (mips_supports_z_point_type): Turn into...
899 (mips_target::supports_z_point_type): ...this.
900 (the_low_target): Remove the op field.
901 * linux-ppc-low.cc (class ppc_target) <supports_z_point_type>:
903 (ppc_supports_z_point_type): Turn into...
904 (ppc_target::supports_z_point_type): ...this.
905 (the_low_target): Remove the op field.
906 * linux-s390-low.cc (class s390_target) <supports_z_point_type>:
908 (s390_supports_z_point_type): Turn into...
909 (s390_target::supports_z_point_type): ...this.
910 (the_low_target): Remove the op field.
911 * linux-bfin-low.cc (the_low_target): Remove the op field.
912 * linux-m32r-low.cc (the_low_target): Ditto.
913 * linux-m68k-low.cc (the_low_target): Ditto.
914 * linux-sh-low.cc (the_low_target): Ditto.
915 * linux-sparc-low.cc (the_low_target): Ditto.
916 * linux-tic6x-low.cc (the_low_target): Ditto.
917 * linux-tile-low.cc (the_low_target): Ditto.
918 * linux-xtensa-low.cc (the_low_target): Ditto.
920 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
922 Turn the 'breakpoint_at' linux target op into a method of
923 linux_process_target.
925 * linux-low.h (struct linux_target_ops): Remove the op.
926 (class linux_process_target) <low_breakpoint_at>: Declare.
928 Update the callers below:
930 * linux-low.cc (linux_process_target::save_stop_reason)
931 (linux_process_target::thread_still_has_status_pending)
932 (linux_process_target::wait_1)
934 * linux-x86-low.cc (class x86_target)
935 <low_breakpoint_at>: Declare.
936 (x86_breakpoint_at): Turn into...
937 (x86_target::low_breakpoint_at): ...this.
938 (the_low_target): Remove the op field.
939 * linux-aarch64-low.cc (class aarch64_target)
940 <low_breakpoint_at>: Declare.
941 (aarch64_breakpoint_at): Turn into...
942 (aarch64_target::low_breakpoint_at): ...this.
943 (the_low_target): Remove the op field.
944 * linux-arm-low.cc (class arm_target)
945 <low_breakpoint_at>: Declare.
946 (arm_target::low_breakpoint_at): Define.
947 (the_low_target): Remove the op field.
948 * linux-bfin-low.cc (class bfin_target)
949 <low_breakpoint_at>: Declare.
950 (bfin_breakpoint_at): Turn into...
951 (bfin_target::low_breakpoint_at): ...this.
952 (the_low_target): Remove the op field.
953 * linux-cris-low.cc (class cris_target)
954 <low_breakpoint_at>: Declare.
955 (cris_breakpoint_at): Turn into...
956 (cris_target::low_breakpoint_at): ...this.
957 (the_low_target): Remove the op field.
958 * linux-crisv32-low.cc (class crisv32_target)
959 <low_breakpoint_at>: Declare.
960 (crisv32_breakpoint_at): Turn into...
961 (crisv32_target::low_breakpoint_at): ...this.
962 (the_low_target): Remove the op field.
963 * linux-ia64-low.cc (class ia64_target)
964 <low_breakpoint_at>: Declare.
965 (ia64_target::low_breakpoint_at): Define.
966 * linux-m32r-low.cc (class m32r_target)
967 <low_breakpoint_at>: Declare.
968 (m32r_breakpoint_at): Turn into...
969 (m32r_target::low_breakpoint_at): ...this.
970 (the_low_target): Remove the op field.
971 * linux-m68k-low.cc (class m68k_target)
972 <low_breakpoint_at>: Declare.
973 (m68k_breakpoint_at): Turn into...
974 (m68k_target::low_breakpoint_at): ...this.
975 (the_low_target): Remove the op field.
976 * linux-mips-low.cc (class mips_target)
977 <low_breakpoint_at>: Declare.
978 (mips_breakpoint_at): Turn into...
979 (mips_target::low_breakpoint_at): ...this.
980 (the_low_target): Remove the op field.
981 * linux-nios2-low.cc (class nios2_target)
982 <low_breakpoint_at>: Declare.
983 (nios2_breakpoint_at): Turn into...
984 (nios2_target::low_breakpoint_at): ...this.
985 (the_low_target): Remove the op field.
986 * linux-ppc-low.cc (class ppc_target)
987 <low_breakpoint_at>: Declare.
988 (ppc_breakpoint_at): Turn into...
989 (ppc_target::low_breakpoint_at): ...this.
990 (the_low_target): Remove the op field.
991 * linux-riscv-low.cc (class riscv_target)
992 <low_breakpoint_at>: Declare.
993 (riscv_breakpoint_at): Turn into...
994 (riscv_target::low_breakpoint_at): ...this.
995 (the_low_target): Remove the op field.
996 * linux-s390-low.cc (class s390_target)
997 <low_breakpoint_at>: Declare.
998 (s390_breakpoint_at): Turn into...
999 (s390_target::low_breakpoint_at): ...this.
1000 (the_low_target): Remove the op field.
1001 * linux-sh-low.cc (class sh_target)
1002 <low_breakpoint_at>: Declare.
1003 (sh_breakpoint_at): Turn into...
1004 (sh_target::low_breakpoint_at): ...this.
1005 (the_low_target): Remove the op field.
1006 * linux-sparc-low.cc (class sparc_target)
1007 <low_breakpoint_at>: Declare.
1008 (sparc_breakpoint_at): Turn into...
1009 (sparc_target::low_breakpoint_at): ...this.
1010 (the_low_target): Remove the op field.
1011 * linux-tic6x-low.cc (class tic6x_target)
1012 <low_breakpoint_at>: Declare.
1013 (tic6x_breakpoint_at): Turn into...
1014 (tic6x_target::low_breakpoint_at): ...this.
1015 (the_low_target): Remove the op field.
1016 * linux-tile-low.cc (class tile_target)
1017 <low_breakpoint_at>: Declare.
1018 (tile_breakpoint_at): Turn into...
1019 (tile_target::low_breakpoint_at): ...this.
1020 (the_low_target): Remove the op field.
1021 * linux-xtensa-low.cc (class xtensa_target)
1022 <low_breakpoint_at>: Declare.
1023 (xtensa_breakpoint_at): Turn into...
1024 (xtensa_target::low_breakpoint_at): ...this.
1025 (the_low_target): Remove the op field.
1027 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1029 Turn the 'decr_pc_after_break' linux_target_ops field into
1030 a method of linux_process_target.
1032 * linux-low.h (struct linux_target_ops)
1033 <decr_pc_after_break>: Remove.
1034 (class linux_process_target) <low_decr_pc_after_break>: New method
1036 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
1037 New method implementation.
1039 Update the users below.
1041 (linux_process_target::save_stop_reason)
1042 (linux_process_target::wait_1)
1043 * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
1045 (x86_target::low_decr_pc_after_break): New method implementation.
1046 (the_low_target): Remove the field.
1047 * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
1049 (bfin_target::low_decr_pc_after_break): New method implementation.
1050 (the_low_target): Remove the field.
1051 * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
1053 (m68k_target::low_decr_pc_after_break): New method implementation.
1054 (the_low_target): Remove the field.
1055 * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
1057 (s390_target::low_decr_pc_after_break): New method implementation.
1058 (the_low_target): Remove the field.
1059 * linux-aarch64-low.cc (the_low_target): Remove the field.
1060 * linux-arm-low.cc (the_low_target): Remove the field.
1061 * linux-cris-low.cc (the_low_target): Remove the field.
1062 * linux-crisv32-low.cc (the_low_target): Remove the field.
1063 * linux-m32r-low.cc (the_low_target): Remove the field.
1064 * linux-mips-low.cc (the_low_target): Remove the field.
1065 * linux-nios2-low.cc (the_low_target): Remove the field.
1066 * linux-ppc-low.cc (the_low_target): Remove the field.
1067 * linux-riscv-low.cc (the_low_target): Remove the field.
1068 * linux-sh-low.cc (the_low_target): Remove the field.
1069 * linux-sparc-low.cc (the_low_target): Remove the field.
1070 * linux-tic6x-low.cc (the_low_target): Remove the field.
1071 * linux-tile-low.cc (the_low_target): Remove the field.
1072 * linux-xtensa-low.cc (the_low_target): Remove the field.
1074 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1076 Remove the 'supports_software_single_step' linux target op and let
1077 the concrete linux target define it by overriding the op in
1078 process_stratum_target.
1079 Turn the 'get_next_pcs' linux target op into a method of
1080 linux_process_target.
1082 * linux-low.h (struct linux_target_ops): Remove the ops.
1083 (class linux_process_target) <supports_software_single_step>:
1085 <low_get_next_pcs>: Declare.
1086 * linux-low.cc (can_software_single_step): Remove.
1087 (linux_process_target::low_get_next_pcs): Define.
1088 (linux_process_target::supports_software_single_step): Remove.
1090 Update the callers below.
1092 (linux_process_target::handle_extended_wait)
1093 (linux_process_target::wait_1)
1094 (linux_process_target::install_software_single_step_breakpoints)
1095 (linux_process_target::single_step)
1096 (linux_process_target::thread_needs_step_over)
1097 (linux_process_target::proceed_one_lwp)
1098 (linux_process_target::supports_range_stepping)
1100 * linux-x86-low.cc (the_low_target): Remove the op field.
1101 * linux-aarch64-low.cc (the_low_target): Ditto.
1102 * linux-bfin-low.cc (the_low_target): Ditto.
1103 * linux-cris-low.cc (the_low_target): Ditto.
1104 * linux-crisv32-low.cc (the_low_target): Ditto.
1105 * linux-m32r-low.cc (the_low_target): Ditto.
1106 * linux-m68k-low.cc (the_low_target): Ditto.
1107 * linux-mips-low.cc (the_low_target): Ditto.
1108 * linux-nios2-low.cc (the_low_target): Ditto.
1109 * linux-ppc-low.cc (the_low_target): Ditto.
1110 * linux-riscv-low.cc (the_low_target): Ditto.
1111 * linux-s390-low.cc (the_low_target): Ditto.
1112 * linux-sh-low.cc (the_low_target): Ditto.
1113 * linux-sparc-low.cc (the_low_target): Ditto.
1114 * linux-tic6x-low.cc (the_low_target): Ditto.
1115 * linux-tile-low.cc (the_low_target): Ditto.
1116 * linux-xtensa-low.cc (the_low_target): Ditto.
1117 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
1118 <supports_software_single_step>: Declare.
1119 (arm_target::supports_software_single_step): Define.
1120 (arm_gdbserver_get_next_pcs): Turn into...
1121 (arm_target::low_get_next_pcs): ...this.
1122 (the_low_target): Remove the op field.
1124 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1126 Remove the 'sw_breakpoint_from_kind' linux target op, and let
1127 the concrete linux target define it by overriding the op
1128 in process_stratum_target.
1130 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
1132 * linux-low.h (struct linux_target_ops): Remove the op.
1133 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
1134 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
1136 (x86_sw_breakpoint_from_kind): Turn into...
1137 (x86_target::sw_breakpoint_from_kind): ...this.
1138 (the_low_target): Remove the op field.
1139 * linux-aarch64-low.cc (class aarch64_target)
1140 <sw_breakpoint_from_kind>: Declare.
1141 (aarch64_sw_breakpoint_from_kind): Turn into...
1142 (aarch64_target::sw_breakpoint_from_kind): ...this.
1143 (the_low_target): Remove the op field.
1144 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
1146 (arm_target::sw_breakpoint_from_kind): Define.
1147 (the_low_target): Remove the op field.
1148 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
1150 (bfin_sw_breakpoint_from_kind): Turn into...
1151 (bfin_target::sw_breakpoint_from_kind): ...this.
1152 (the_low_target): Remove the op field.
1153 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
1155 (cris_sw_breakpoint_from_kind): Turn into...
1156 (cris_target::sw_breakpoint_from_kind): ...this.
1157 (the_low_target): Remove the op field.
1158 * linux-crisv32-low.cc (class crisv32_target)
1159 <sw_breakpoint_from_kind>: Declare.
1160 (cris_sw_breakpoint_from_kind): Turn into...
1161 (crisv32_target::sw_breakpoint_from_kind): ...this.
1162 (the_low_target): Remove the op field.
1163 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
1165 (ia64_target::sw_breakpoint_from_kind): Define.
1166 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
1168 (m32r_sw_breakpoint_from_kind): Turn into...
1169 (m32r_target::sw_breakpoint_from_kind): ...this.
1170 (the_low_target): Remove the op field.
1171 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
1173 (m68k_sw_breakpoint_from_kind): Turn into...
1174 (m68k_target::sw_breakpoint_from_kind): ...this.
1175 (the_low_target): Remove the op field.
1176 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
1178 (mips_sw_breakpoint_from_kind): Turn into...
1179 (mips_target::sw_breakpoint_from_kind): ...this.
1180 (the_low_target): Remove the op field.
1181 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
1183 (nios2_sw_breakpoint_from_kind): Turn into...
1184 (nios2_target::sw_breakpoint_from_kind): ...this.
1185 (the_low_target): Remove the op field.
1186 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
1188 (ppc_sw_breakpoint_from_kind): Turn into...
1189 (ppc_target::sw_breakpoint_from_kind): ...this.
1190 (the_low_target): Remove the op field.
1191 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
1193 (riscv_sw_breakpoint_from_kind): Turn into...
1194 (riscv_target::sw_breakpoint_from_kind): ...this.
1195 (the_low_target): Remove the op field.
1196 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
1198 (s390_sw_breakpoint_from_kind): Turn into...
1199 (s390_target::sw_breakpoint_from_kind): ...this.
1200 (the_low_target): Remove the op field.
1201 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
1203 (sh_sw_breakpoint_from_kind): Turn into...
1204 (sh_target::sw_breakpoint_from_kind): ...this.
1205 (the_low_target): Remove the op field.
1206 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
1208 (sparc_sw_breakpoint_from_kind): Turn into...
1209 (sparc_target::sw_breakpoint_from_kind): ...this.
1210 (the_low_target): Remove the op field.
1211 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
1213 (tic6x_sw_breakpoint_from_kind): Turn into...
1214 (tic6x_target::sw_breakpoint_from_kind): ...this.
1215 (the_low_target): Remove the op field.
1216 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
1218 (tile_sw_breakpoint_from_kind): Turn into...
1219 (tile_target::sw_breakpoint_from_kind): ...this.
1220 (the_low_target): Remove the op field.
1221 * linux-xtensa-low.cc (class xtensa_target)
1222 <sw_breakpoint_from_kind>: Declare.
1223 (xtensa_sw_breakpoint_from_kind): Turn into...
1224 (xtensa_target::sw_breakpoint_from_kind): ...this.
1225 (the_low_target): Remove the op field.
1227 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1229 Remove the 'breakpoint_kind_from_pc' and
1230 'breakpoint_kind_from_current_state' linux target ops, and let the
1231 concrete linux target define them by overriding the ops of
1232 process_stratum_target.
1234 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
1236 (linux_process_target::breakpoint_kind_from_current_state): Remove.
1237 * linux-low.h (struct linux_target_ops): Remove ops.
1238 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
1239 <breakpoint_kind_from_current_state>: Remove.
1240 * linux-x86-low.cc (the_low_target): Remove the op fields.
1241 * linux-bfin-low.cc (the_low_target): Ditto.
1242 * linux-cris-low.cc (the_low_target): Ditto.
1243 * linux-crisv32-low.cc (the_low_target): Ditto.
1244 * linux-m32r-low.cc (the_low_target): Ditto.
1245 * linux-m68k-low.cc (the_low_target): Ditto.
1246 * linux-mips-low.cc (the_low_target): Ditto.
1247 * linux-nios2-low.cc (the_low_target): Ditto.
1248 * linux-ppc-low.cc (the_low_target): Ditto.
1249 * linux-s390-low.cc (the_low_target): Ditto.
1250 * linux-sh-low.cc (the_low_target): Ditto.
1251 * linux-sparc-low.cc (the_low_target): Ditto.
1252 * linux-tic6x-low.cc (the_low_target): Ditto.
1253 * linux-tile-low.cc (the_low_target): Ditto.
1254 * linux-xtensa-low.cc (the_low_target): Ditto.
1255 * linux-aarch64-low.cc (class aarch64_target)
1256 <breakpoint_kind_from_pc>
1257 <breakpoint_kind_from_current_state>: Declare.
1258 (aarch64_breakpoint_kind_from_pc): Turn into...
1259 (aarch64_target::breakpoint_kind_from_pc): ...this.
1260 (aarch64_breakpoint_kind_from_current_state): Turn into...
1261 (aarch64_target::breakpoint_kind_from_current_state): ...this.
1262 (the_low_target): Remove the op fields.
1263 * linux-arm-low.cc (class arm_target):
1264 <breakpoint_kind_from_pc>
1265 <breakpoint_kind_from_current_state>: Declare.
1266 (arm_target::breakpoint_kind_from_pc): Define.
1267 (arm_target::breakpoint_kind_from_current_state): Define.
1268 (the_low_target): Remove the op fields.
1269 * linux-riscv-low.cc (class riscv_target):
1270 <breakpoint_kind_from_pc>: Declare.
1271 (riscv_breakpoint_kind_from_pc): Turn into...
1272 (riscv_target::breakpoint_kind_from_pc): ...this.
1273 (the_low_target): Remove the op fields.
1275 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1277 Turn the 'get_pc' and 'set_pc' linux target ops into methods
1278 of linux_process_target.
1280 * linux-low.h (struct linux_target_ops): Remove the ops.
1281 (class linux_process_target) <low_supports_breakpoints>
1283 <low_set_pc>: Declare.
1284 * linux-low.cc (supports_breakpoints): Turn into...
1285 (linux_process_target::low_supports_breakpoints): ...this.
1286 (linux_process_target::low_get_pc): Define.
1287 (linux_process_target::low_set_pc): Define.
1289 Update the callers below.
1291 (linux_process_target::get_pc)
1292 (linux_process_target::save_stop_reason)
1293 (linux_process_target::maybe_move_out_of_jump_pad)
1294 (linux_process_target::wait_1)
1295 (linux_process_target::resume_one_lwp_throw)
1296 (linux_process_target::resume)
1297 (linux_process_target::proceed_all_lwps)
1298 (linux_process_target::read_pc)
1299 (linux_process_target::write_pc)
1301 * linux-x86-low.cc (class linux_process_target)
1302 <low_supports_breakpoints>
1304 <low_set_pc>: Declare.
1305 (x86_target::low_supports_breakpoints): Define.
1306 (x86_get_pc): Turn into...
1307 (x86_target::low_get_pc): ...this.
1308 (x86_set_pc): Turn into...
1309 (x86_target::low_set_pc): ...this.
1310 (the_low_target): Remove the op fields.
1311 * linux-arm-low.cc (class arm_target)
1312 <low_supports_breakpoints>
1314 <low_set_pc>: Declare.
1315 (arm_target::low_supports_breakpoints)
1316 (arm_target::low_get_pc)
1317 (arm_target::low_set_pc): Define.
1318 (the_low_target): Remove the op fields.
1319 * linux-bfin-low.cc (class bfin_target)
1320 <low_supports_breakpoints>
1322 <low_set_pc>: Declare.
1323 (bfin_target::low_supports_breakpoints)
1324 (bfin_target::low_get_pc)
1325 (bfin_target::low_set_pc): Define.
1326 (the_low_target): Remove the op fields.
1327 * linux-cris-low.cc (class cris_target)
1328 <low_supports_breakpoints>
1330 <low_set_pc>: Declare.
1331 (cris_target::low_supports_breakpoints)
1332 (cris_target::low_get_pc)
1333 (cris_target::low_set_pc): Define.
1334 (the_low_target): Remove the op fields.
1335 * linux-crisv32-low.cc (class crisv32_target)
1336 <low_supports_breakpoints>
1338 <low_set_pc>: Declare.
1339 (crisv32_target::low_supports_breakpoints)
1340 (crisv32_target::low_get_pc)
1341 (crisv32_target::low_set_pc): Define.
1342 (the_low_target): Remove the op fields.
1343 * linux-m32r-low.cc (class m32r_target)
1344 <low_supports_breakpoints>
1346 <low_set_pc>: Declare.
1347 (m32r_target::low_supports_breakpoints)
1348 (m32r_target::low_get_pc)
1349 (m32r_target::low_set_pc): Define.
1350 (the_low_target): Remove the op fields.
1351 * linux-m68k-low.cc (class m68k_target)
1352 <low_supports_breakpoints>
1354 <low_set_pc>: Declare.
1355 (m68k_target::low_supports_breakpoints)
1356 (m68k_target::low_get_pc)
1357 (m68k_target::low_set_pc): Define.
1358 (the_low_target): Remove the op fields.
1359 * linux-nios2-low.cc (class nios2_target)
1360 <low_supports_breakpoints>
1362 <low_set_pc>: Declare.
1363 (nios2_target::low_supports_breakpoints)
1364 (nios2_target::low_get_pc)
1365 (nios2_target::low_set_pc): Define.
1366 (the_low_target): Remove the op fields.
1367 * linux-sh-low.cc (class sh_target)
1368 <low_supports_breakpoints>
1370 <low_set_pc>: Declare.
1371 (sh_target::low_supports_breakpoints)
1372 (sh_target::low_get_pc)
1373 (sh_target::low_set_pc): Define.
1374 (the_low_target): Remove the op fields.
1375 * linux-xtensa-low.cc (class xtensa_target)
1376 <low_supports_breakpoints>
1378 <low_set_pc>: Declare.
1379 (xtensa_target::low_supports_breakpoints)
1380 (xtensa_target::low_get_pc)
1381 (xtensa_target::low_set_pc): Define.
1382 (the_low_target): Remove the op fields.
1383 * linux-sparc-low.cc (class sparc_target)
1384 <low_supports_breakpoints>
1385 <low_get_pc>: Declare.
1386 (sparc_target::low_supports_breakpoints)
1387 (sparc_target::low_get_pc): Define.
1388 (the_low_target): Remove the op fields.
1389 * linux-tile-low.cc (class tile_target)
1390 <low_supports_breakpoints>
1392 <low_set_pc>: Declare.
1393 (tile_target::low_supports_breakpoints)
1394 (tile_target::low_get_pc)
1395 (tile_target::low_set_pc): Define.
1396 (the_low_target): Remove the op fields.
1397 * linux-aarch64-low.cc (class aarch64_target)
1398 <low_supports_breakpoints>
1400 <low_set_pc>: Declare.
1401 (aarch64_target::low_supports_breakpoints): Define.
1402 (aarch64_get_pc): Turn into...
1403 (aarch64_target::low_get_pc): ...this.
1404 (aarch64_set_pc): Turn into...
1405 (aarch64_target::low_set_pc): ...this.
1406 (the_low_target): Remove the op fields.
1407 * linux-mips-low.cc (class mips_target)
1408 <low_supports_breakpoints>
1410 <low_set_pc>: Declare.
1411 (mips_target::low_supports_breakpoints): Define.
1412 (mips_get_pc): Turn into...
1413 (mips_target::low_get_pc): ...this.
1414 (mips_set_pc): Turn into...
1415 (mips_target::low_set_pc): ...this.
1416 (the_low_target): Remove the op fields.
1417 * linux-ppc-low.cc (class ppc_target)
1418 <low_supports_breakpoints>
1420 <low_set_pc>: Declare.
1421 (ppc_target::low_supports_breakpoints): Define.
1422 (ppc_get_pc): Turn into...
1423 (ppc_target::low_get_pc): ...this.
1424 (ppc_set_pc): Turn into...
1425 (ppc_target::low_set_pc): ...this.
1426 (the_low_target): Remove the op fields.
1427 * linux-riscv-low.cc (class riscv_target)
1428 <low_supports_breakpoints>
1430 <low_set_pc>: Declare.
1431 (riscv_target::low_supports_breakpoints): Define.
1432 (riscv_get_pc): Turn into...
1433 (riscv_target::low_get_pc): ...this.
1434 (riscv_set_pc): Turn into...
1435 (riscv_target::low_set_pc): ...this.
1436 (the_low_target): Remove the op fields.
1437 * linux-s390-low.cc (class s390_target)
1438 <low_supports_breakpoints>
1440 <low_set_pc>: Declare.
1441 (s390_target::low_supports_breakpoints): Define.
1442 (s390_get_pc): Turn into...
1443 (s390_target::low_get_pc): ...this.
1444 (s390_set_pc): Turn into...
1445 (s390_target::low_set_pc): ...this.
1446 (the_low_target): Remove the op fields.
1447 * linux-tic6x-low.cc (class tic6x_target)
1448 <low_supports_breakpoints>
1450 <low_set_pc>: Declare.
1451 (tic6x_target::low_supports_breakpoints): Define.
1452 (tic6x_get_pc): Turn into...
1453 (tic6x_target::low_get_pc): ...this.
1454 (tic6x_set_pc): Turn into...
1455 (tic6x_target::low_set_pc): ...this.
1456 (the_low_target): Remove the op fields.
1458 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1460 Turn some more static methods in linux-low into private methods
1461 of linux_process_target.
1463 * linux-low.cc (get_pc): Turn into...
1464 (linux_process_target::get_pc): ...this.
1465 (save_stop_reason): Turn into...
1466 (linux_process_target::save_stop_reason): ...this.
1467 (thread_still_has_status_pending_p): Turn into...
1468 (linux_process_target::thread_still_has_status_pending): ...this.
1469 (status_pending_p_callback): Turn into...
1470 (linux_process_target::status_pending_p_callback): ...this.
1471 (resume_stopped_resumed_lwps): Turn into...
1472 (linux_process_target::resume_stopped_resumed_lwps): ...this.
1473 (install_software_single_step_breakpoints): Turn into...
1474 (linux_process_target::install_software_single_step_breakpoints):
1476 (single_step): Turn into...
1477 (linux_process_target::single_step): ...this.
1478 (linux_resume_one_lwp_throw): Turn into...
1479 (linux_process_target::resume_one_lwp_throw): ...this.
1480 (linux_resume_one_lwp): Turn into...
1481 (linux_process_target::resume_one_lwp): ...this.
1482 (resume_status_pending_p): Turn into...
1483 (linux_process_target::resume_status_pending): ...this.
1484 (need_step_over_p): Turn into...
1485 (linux_process_target::thread_needs_step_over): ...this.
1486 (linux_resume_one_thread): Turn into...
1487 (linux_process_target::resume_one_thread): ...this.
1488 (proceed_one_lwp): Turn into...
1489 (linux_process_target::proceed_one_lwp): ...this.
1490 (unsuspend_and_proceed_one_lwp): Turn into...
1491 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
1493 Update the calls/references to the above functions below.
1495 (linux_process_target::handle_extended_wait)
1496 (linux_process_target::filter_event)
1497 (linux_process_target::wait_for_event_filtered)
1498 (linux_process_target::wait_1)
1499 (linux_process_target::move_out_of_jump_pad)
1500 (linux_process_target::start_step_over)
1501 (linux_process_target::resume)
1502 (linux_process_target::proceed_all_lwps)
1503 (regsets_store_inferior_registers)
1504 (linux_process_target::store_register)
1506 * linux-low.h (class linux_process_target)
1509 <thread_still_has_status_pending>
1510 <status_pending_p_callback>
1511 <resume_stopped_resumed_lwps>
1512 <install_software_single_step_breakpoints>
1514 <resume_one_lwp_throw>
1516 <resume_status_pending>
1517 <thread_needs_step_over>
1520 <unsuspend_and_proceed_one_lwp>: Declare.
1522 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1524 Turn the 'fetch_register' linux target op into a method of
1525 linux_process_target.
1527 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
1528 (class linux_process_target) <low_fetch_register>: Declare.
1529 * linux-x86-low.cc (the_low_target)
1530 * linux-aarch64-low.cc (the_low_target)
1531 * linux-arm-low.cc (the_low_target)
1532 * linux-bfin-low.cc (the_low_target)
1533 * linux-cris-low.cc (the_low_target)
1534 * linux-crisv32-low.cc (the_low_target)
1535 * linux-m32r-low.cc (the_low_target)
1536 * linux-m68k-low.cc (the_low_target)
1537 * linux-nios2-low.cc (the_low_target)
1538 * linux-ppc-low.cc (the_low_target)
1539 * linux-s390-low.cc (the_low_target)
1540 * linux-sh-low.cc (the_low_target)
1541 * linux-sparc-low.cc (the_low_target)
1542 * linux-tic6x-low.cc (the_low_target)
1543 * linux-tile-low.cc (the_low_target)
1544 * linux-xtensa-low.cc (the_low_target): Remove the op field.
1545 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
1547 (ia64_fetch_register): Turn into...
1548 (ia64_target::low_fetch_register): ...this.
1549 (the_low_target): Remove the op field.
1550 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
1552 (mips_fetch_register): Turn into...
1553 (mips_target::low_fetch_register): ...this.
1554 (the_low_target): Remove the op field.
1555 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
1557 (riscv_fetch_register): Turn into...
1558 (riscv_target::low_fetch_register): ...this.
1559 (the_low_target): Remove the op field.
1561 Update the callers below.
1563 * linux-low.cc (linux_process_target::fetch_registers)
1564 (linux_process_target::low_fetch_register)
1566 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1568 Turn the 'cannot_fetch_register' and 'cannot_store_register'
1569 linux target ops into methods of linux_process_target.
1571 * linux-low.h (struct linux_target_ops): Remove the low target ops.
1572 (class linux_process_target) <fetch_register>
1574 <usr_fetch_inferior_registers>
1575 <usr_store_inferior_registers>
1576 <low_cannot_fetch_register>
1577 <low_cannot_fetch_register> Declare.
1578 * linux-low.cc (fetch_register): Turn into...
1579 (linux_process_target::fetch_register): ...this.
1580 (store_register): Turn into ...
1581 (linux_process_target::store_register): ...this.
1582 (usr_fetch_inferior_registers): Turn into...
1583 (linux_process_target::usr_fetch_inferior_registers): ...this.
1584 (usr_store_inferior_registers): Turn into...
1585 (linux_process_target::usr_store_inferior_registers): ...this.
1586 * linux-x86-low.cc (class x86_target)
1587 <low_cannot_fetch_register>
1588 <low_cannot_store_register>: Declare.
1589 (x86_cannot_store_register): Turn into...
1590 (x86_target::low_cannot_store_register): ...this.
1591 (x86_cannot_fetch_register): Turn into...
1592 (x86_target::low_cannot_fetch_register): ...this.
1593 (the_low_target): Remove the target op fields.
1594 * linux-aarch64-low.cc (class aarch64_target)
1595 <low_cannot_fetch_register>
1596 <low_cannot_store_register>: Declare.
1597 (aarch64_target::low_cannot_fetch_register)
1598 (aarch64_target::low_cannot_store_register): Define.
1599 (the_low_target): Remove the op fields.
1600 * linux-arm-low.cc (class arm_target)
1601 <low_cannot_fetch_register>
1602 <low_cannot_store_register>: Declare.
1603 (arm_cannot_fetch_register): Turn into...
1604 (arm_target::low_cannot_fetch_register): ...this.
1605 (arm_cannot_store_register): Turn into...
1606 (arm_target::low_cannot_store_register): ...this.
1607 (the_low_target): Remove the op fields.
1608 * linux-bfin-low.cc (class bfin_target)
1609 <low_cannot_fetch_register>
1610 <low_cannot_store_register>: Declare.
1611 (bfin_cannot_fetch_register): Turn into...
1612 (bfin_target::low_cannot_fetch_register): ...this.
1613 (bfin_cannot_store_register): Turn into...
1614 (bfin_target::low_cannot_store_register): ...this.
1615 (the_low_target): Remove the op fields.
1616 * linux-cris-low.cc (class cris_target)
1617 <low_cannot_fetch_register>
1618 <low_cannot_store_register>: Declare.
1619 (cris_cannot_fetch_register): Turn into...
1620 (cris_target::low_cannot_fetch_register): ...this.
1621 (cris_cannot_store_register): Turn into...
1622 (cris_target::low_cannot_store_register): ...this.
1623 (the_low_target): Remove the op fields.
1624 * linux-crisv32-low.cc (class crisv32_target)
1625 <low_cannot_fetch_register>
1626 <low_cannot_store_register>: Declare.
1627 (crisv32_target::low_cannot_fetch_register)
1628 (crisv32_target::low_cannot_store_register): Define.
1629 (the_low_target): Remove the op fields.
1630 * linux-ia64-low.cc (class ia64_target)
1631 <low_cannot_fetch_register>
1632 <low_cannot_store_register>: Declare.
1633 (ia64_cannot_fetch_register): Turn into...
1634 (ia64_target::low_cannot_fetch_register): ...this.
1635 (ia64_cannot_store_register): Turn into...
1636 (ia64_target::low_cannot_store_register): ...this.
1637 (the_low_target): Remove the op fields.
1638 * linux-m32r-low.cc (class m32r_target)
1639 <low_cannot_fetch_register>
1640 <low_cannot_store_register>: Declare.
1641 (m32r_cannot_fetch_register): Turn into...
1642 (m32r_target::low_cannot_fetch_register): ...this.
1643 (m32r_cannot_store_register): Turn into...
1644 (m32r_target::low_cannot_store_register): ...this.
1645 (the_low_target): Remove the op fields.
1646 * linux-m68k-low.cc (class m68k_target)
1647 <low_cannot_fetch_register>
1648 <low_cannot_store_register>: Declare.
1649 (m68k_cannot_fetch_register): Turn into...
1650 (m68k_target::low_cannot_fetch_register): ...this.
1651 (m68k_cannot_store_register): Turn into...
1652 (m68k_target::low_cannot_store_register): ...this.
1653 (the_low_target): Remove the op fields.
1654 * linux-mips-low.cc (class mips_target)
1655 <low_cannot_fetch_register>
1656 <low_cannot_store_register>: Declare.
1657 (mips_cannot_fetch_register): Turn into...
1658 (mips_target::low_cannot_fetch_register): ...this.
1659 (mips_cannot_store_register): Turn into...
1660 (mips_target::low_cannot_store_register): ...this.
1661 (get_usrregs_info): Inline at the call sites in
1662 low_cannot_fetch_register and low_cannot_store_register,
1664 (the_low_target): Remove the op fields.
1665 * linux-nios2-low.cc (class nios2_target)
1666 <low_cannot_fetch_register>
1667 <low_cannot_store_register>: Declare.
1668 (nios2_cannot_fetch_register): Turn into...
1669 (nios2_target::low_cannot_fetch_register): ...this.
1670 (nios2_cannot_store_register): Turn into...
1671 (nios2_target::low_cannot_store_register): ...this.
1672 (the_low_target): Remove the op fields.
1673 * linux-ppc-low.cc (class ppc_target)
1674 <low_cannot_fetch_register>
1675 <low_cannot_store_register>: Declare.
1676 (ppc_cannot_fetch_register): Turn into...
1677 (ppc_target::low_cannot_fetch_register): ...this.
1678 (ppc_cannot_store_register): Turn into...
1679 (ppc_target::low_cannot_store_register): ...this.
1680 (the_low_target): Remove the op fields.
1681 * linux-riscv-low.cc (class riscv_target)
1682 <low_cannot_fetch_register>
1683 <low_cannot_store_register>: Declare.
1684 (riscv_target::low_cannot_fetch_register)
1685 (riscv_target::low_cannot_store_register): Define.
1686 (the_low_target): Remove the op fields.
1687 * linux-s390-low.cc (class s390_target)
1688 <low_cannot_fetch_register>
1689 <low_cannot_store_register>: Declare.
1690 (s390_cannot_fetch_register): Turn into...
1691 (s390_target::low_cannot_fetch_register): ...this.
1692 (s390_cannot_store_register): Turn into...
1693 (s390_target::low_cannot_store_register): ...this.
1694 (the_low_target): Remove the op fields.
1695 * linux-sh-low.cc (class sh_target)
1696 <low_cannot_fetch_register>
1697 <low_cannot_store_register>: Declare.
1698 (sh_cannot_fetch_register): Turn into...
1699 (sh_target::low_cannot_fetch_register): ...this.
1700 (sh_cannot_store_register): Turn into...
1701 (sh_target::low_cannot_store_register): ...this.
1702 (the_low_target): Remove the op fields.
1703 * linux-sparc-low.cc (class sparc_target)
1704 <low_cannot_fetch_register>
1705 <low_cannot_store_register>: Declare.
1706 (sparc_cannot_fetch_register): Turn into...
1707 (sparc_target::low_cannot_fetch_register): ...this.
1708 (sparc_cannot_store_register): Turn into...
1709 (sparc_target::low_cannot_store_register): ...this.
1710 (the_low_target): Remove the op fields.
1711 * linux-tic6x-low.cc (class tic6x_target)
1712 <low_cannot_fetch_register>
1713 <low_cannot_store_register>: Declare.
1714 (tic6x_cannot_fetch_register): Turn into...
1715 (tic6x_target::low_cannot_fetch_register): ...this.
1716 (tic6x_cannot_store_register): Turn into...
1717 (tic6x_target::low_cannot_store_register): ...this.
1718 (the_low_target): Remove the op fields.
1719 * linux-tile-low.cc (class tile_target)
1720 <low_cannot_fetch_register>
1721 <low_cannot_store_register>: Declare.
1722 (tile_cannot_fetch_register): Turn into...
1723 (tile_target::low_cannot_fetch_register): ...this.
1724 (tile_cannot_store_register): Turn into...
1725 (tile_target::low_cannot_store_register): ...this.
1726 (the_low_target): Remove the op fields.
1727 * linux-xtensa-low.cc (class xtensa_target)
1728 <low_cannot_fetch_register>
1729 <low_cannot_store_register>: Declare.
1730 (xtensa_target::low_cannot_fetch_register)
1731 (xtensa_target::low_cannot_store_register): Define.
1732 (the_low_target): Remove the op fields.
1734 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1736 Turn the 'regs_info' linux target op into a method of
1737 linux_process_target.
1739 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
1740 (class linux_process_target) <get_regs_info>: Define.
1742 Update the callers below.
1744 * linux-low.cc (linux_process_target::fetch_registers)
1745 (linux_process_target::store_registers)
1746 * proc-service.cc (gregset_info)
1748 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
1749 (x86_linux_regs_info): Turn into ...
1750 (x86_target::get_regs_info): ...this.
1751 (the_low_target): Remove the op field.
1752 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
1754 (aarch64_regs_info): Turn into ...
1755 (aarch64_target::get_regs_info): ...this.
1756 (the_low_target): Remove the op field.
1757 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
1758 (arm_regs_info): Turn into ...
1759 (arm_target::get_regs_info): ...this.
1760 (the_low_target): Remove the op field.
1761 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
1762 (bfin_regs_info): Turn into ...
1763 (bfin_target::get_regs_info): ...this.
1764 (the_low_target): Remove the op field.
1765 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
1766 (cris_regs_info): Turn into ...
1767 (cris_target::get_regs_info): ...this.
1768 (the_low_target): Remove the op field.
1769 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
1771 (crisv32_regs_info): Turn into ...
1772 (crisv32_target::get_regs_info): ...this.
1773 (the_low_target): Remove the op field.
1774 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
1775 (ia64_regs_info): Turn into ...
1776 (ia64_target::get_regs_info): ...this.
1777 (the_low_target): Remove the op field.
1778 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
1779 (m32r_regs_info): Turn into ...
1780 (m32r_target::get_regs_info): ...this.
1781 (the_low_target): Remove the op field.
1782 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
1783 (m68k_regs_info): Turn into ...
1784 (m68k_target::get_regs_info): ...this.
1785 (the_low_target): Remove the op field.
1786 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
1787 (mips_regs_info): Turn into ...
1788 (mips_target::get_regs_info): ...this.
1789 (the_low_target): Remove the op field.
1790 (get_usrregs_info): Update the call to the op.
1791 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
1792 (nios2_regs_info): Turn into ...
1793 (nios2_target::get_regs_info): ...this.
1794 (the_low_target): Remove the op field.
1795 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
1796 (ppc_regs_info): Turn into ...
1797 (ppc_target::get_regs_info): ...this.
1798 (the_low_target): Remove the op field.
1799 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
1800 (riscv_regs_info): Turn into ...
1801 (riscv_target::get_regs_info): ...this.
1802 (the_low_target): Remove the op field.
1803 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
1804 (s390_regs_info): Turn into ...
1805 (s390_target::get_regs_info): ...this.
1806 (the_low_target): Remove the op field.
1807 (s390_collect_ptrace_register)
1808 (s390_supply_ptrace_register)
1809 (s390_fill_gregset): Update the call to the op.
1810 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
1811 (sh_regs_info): Turn into ...
1812 (sh_target::get_regs_info): ...this.
1813 (the_low_target): Remove the op field.
1814 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
1815 (sparc_regs_info): Turn into ...
1816 (sparc_target::get_regs_info): ...this.
1817 (the_low_target): Remove the op field.
1818 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
1819 (tic6x_regs_info): Turn into ...
1820 (tic6x_target::get_regs_info): ...this.
1821 (the_low_target): Remove the op field.
1822 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
1823 (tile_regs_info): Turn into ...
1824 (tile_target::get_regs_info): ...this.
1825 (the_low_target): Remove the op field.
1826 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
1828 (xtensa_regs_info): Turn into ...
1829 (xtensa_target::get_regs_info): ...this.
1830 (the_low_target): Remove the op field.
1832 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1834 Turn the 'arch_setup' linux target op into a method of
1835 linux_process_target.
1837 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
1838 (class linux_process_target) <arch_setup_thread>
1839 <low_arch_setup>: New declarations.
1840 * linux-low.cc (linux_arch_setup): Delete.
1841 (linux_arch_setup_thread): Turn into...
1842 (linux_process_target::arch_setup_thread): ... this.
1844 Update the callers below.
1846 (linux_process_target::handle_extended_wait)
1847 (linux_process_target::post_create_inferior)
1848 (linux_process_target::filter_event)
1850 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
1852 (x86_linux_update_xmltarget): Turn into...
1853 (x86_target::update_xmltarget): ...this.
1854 (x86_linux_process_qsupported): Update the call to
1855 x86_linux_update_xmltarget.
1856 (x86_arch_setup): Turn into ...
1857 (x86_target::low_arch_setup): ...this.
1858 (the_low_target): Remove the op field.
1859 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
1861 (aarch64_arch_setup): Turn into ...
1862 (aarch64_target::low_arch_setup): ...this.
1863 (the_low_target): Remove the op field.
1864 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
1866 (arm_arch_setup): Turn into ...
1867 (arm_target::low_arch_setup): ...this.
1868 (the_low_target): Remove the op field.
1869 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
1871 (bfin_arch_setup): Turn into ...
1872 (bfin_target::low_arch_setup): ...this.
1873 (the_low_target): Remove the op field.
1874 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
1876 (cris_arch_setup): Turn into ...
1877 (cris_target::low_arch_setup): ...this.
1878 (the_low_target): Remove the op field.
1879 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
1881 (crisv32_arch_setup): Turn into ...
1882 (crisv32_target::low_arch_setup): ...this.
1883 (the_low_target): Remove the op field.
1884 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
1886 (ia64_arch_setup): Turn into ...
1887 (ia64_target::low_arch_setup): ...this.
1888 (the_low_target): Remove the op field.
1889 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
1891 (m32r_arch_setup): Turn into ...
1892 (m32r_target::low_arch_setup): ...this.
1893 (the_low_target): Remove the op field.
1894 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
1896 (m68k_arch_setup): Turn into ...
1897 (m68k_target::low_arch_setup): ...this.
1898 (the_low_target): Remove the op field.
1899 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
1901 (mips_arch_setup): Turn into ...
1902 (mips_target::low_arch_setup): ...this.
1903 (the_low_target): Remove the op field.
1904 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
1906 (nios2_arch_setup): Turn into ...
1907 (nios2_target::low_arch_setup): ...this.
1908 (the_low_target): Remove the op field.
1909 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
1911 (ppc_arch_setup): Turn into ...
1912 (ppc_target::low_arch_setup): ...this.
1913 (the_low_target): Remove the op field.
1914 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
1916 (riscv_arch_setup): Turn into ...
1917 (riscv_target::low_arch_setup): ...this.
1918 (the_low_target): Remove the op field.
1919 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
1921 (s390_arch_setup): Turn into ...
1922 (s390_target::low_arch_setup): ...this.
1923 (the_low_target): Remove the op field.
1924 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
1926 (sh_arch_setup): Turn into ...
1927 (sh_target::low_arch_setup): ...this.
1928 (the_low_target): Remove the op field.
1929 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
1931 (sparc_arch_setup): Turn into ...
1932 (sparc_target::low_arch_setup): ...this.
1933 (the_low_target): Remove the op field.
1934 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
1936 (tic6x_arch_setup): Turn into ...
1937 (tic6x_target::low_arch_setup): ...this.
1938 (the_low_target): Remove the op field.
1939 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
1941 (tile_arch_setup): Turn into ...
1942 (tile_target::low_arch_setup): ...this.
1943 (the_low_target): Remove the op field.
1944 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
1946 (xtensa_arch_setup): Turn into ...
1947 (xtensa_target::low_arch_setup): ...this.
1948 (the_low_target): Remove the op field.
1950 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1952 * linux-low.h (the_linux_target): New extern declaration.
1953 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
1955 (the_linux_target): Remove.
1956 * linux-x86-low.cc (class x86_target): New class.
1957 (the_x86_target): New static object.
1958 (the_linux_target): Define as pointer to the_x86_target.
1959 * linux-aarch64-low.cc (class aarch64_target): New class.
1960 (the_aarch64_target): New static object.
1961 (the_linux_target): Define as pointer to the_aarch64_target.
1962 * linux-arm-low.cc (class arm_target): New class.
1963 (the_arm_target): New static object.
1964 (the_linux_target): Define as pointer to the_arm_target.
1965 * linux-bfin-low.cc (class bfin_target): New class.
1966 (the_bfin_target): New static object.
1967 (the_linux_target): Define as pointer to the_bfin_target.
1968 * linux-cris-low.cc (class cris_target): New class.
1969 (the_cris_target): New static object.
1970 (the_linux_target): Define as pointer to the_cris_target.
1971 * linux-crisv32-low.cc (class crisv32_target): New class.
1972 (the_crisv32_target): New static object.
1973 (the_linux_target): Define as pointer to the_crisv32_target.
1974 * linux-ia64-low.cc (class ia64_target): New class.
1975 (the_ia64_target): New static object.
1976 (the_linux_target): Define as pointer to the_ia64_target.
1977 * linux-m32r-low.cc (class m32r_target): New class.
1978 (the_m32r_target): New static object.
1979 (the_linux_target): Define as pointer to the_m32r_target.
1980 * linux-m68k-low.cc (class m68k_target): New class.
1981 (the_m68k_target): New static object.
1982 (the_linux_target): Define as pointer to the_m68k_target.
1983 * linux-mips-low.cc (class mips_target): New class.
1984 (the_mips_target): New static object.
1985 (the_linux_target): Define as pointer to the_mips_target.
1986 * linux-nios2-low.cc (class nios2_target): New class.
1987 (the_nios2_target): New static object.
1988 (the_linux_target): Define as pointer to the_nios2_target.
1989 * linux-ppc-low.cc (class ppc_target): New class.
1990 (the_ppc_target): New static object.
1991 (the_linux_target): Define as pointer to the_ppc_target.
1992 * linux-riscv-low.cc (class riscv_target): New class.
1993 (the_riscv_target): New static object.
1994 (the_linux_target): Define as pointer to the_riscv_target.
1995 * linux-s390-low.cc (class s390_target): New class.
1996 (the_s390_target): New static object.
1997 (the_linux_target): Define as pointer to the_s390_target.
1998 * linux-sh-low.cc (class sh_target): New class.
1999 (the_sh_target): New static object.
2000 (the_linux_target): Define as pointer to the_sh_target.
2001 * linux-sparc-low.cc (class sparc_target): New class.
2002 (the_sparc_target): New static object.
2003 (the_linux_target): Define as pointer to the_sparc_target.
2004 * linux-tic6x-low.cc (class tic6x_target): New class.
2005 (the_tic6x_target): New static object.
2006 (the_linux_target): Define as pointer to the_tic6x_target.
2007 * linux-tile-low.cc (class tile_target): New class.
2008 (the_tile_target): New static object.
2009 (the_linux_target): Define as pointer to the_tile_target.
2010 * linux-xtensa-low.cc (class xtensa_target): New class.
2011 (the_xtensa_target): New static object.
2012 (the_linux_target): Define as pointer to the_xtensa_target.
2014 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2016 Turn some static functions in linux-low.cc into private methods of
2017 linux_process_target.
2019 * linux-low.cc (handle_extended_wait): Turn into ...
2020 (linux_process_target::handle_extended_wait): ...this. Call
2021 'mourn' on 'this' object instead of 'the_target'.
2022 (maybe_move_out_of_jump_pad): Turn into...
2023 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
2024 (linux_low_filter_event): Turn into...
2025 (linux_process_target::filter_event): ...this.
2026 (linux_wait_for_event_filtered): Turn into...
2027 (linux_process_target::wait_for_event_filtered): ...this.
2028 (linux_wait_for_event): Turn into...
2029 (linux_process_target::wait_for_event): ...this.
2030 (linux_wait_1): Turn into...
2031 (linux_process_target::wait_1): ...this.
2032 (wait_for_sigstop): Turn into...
2033 (linux_process_target::wait_for_sigstop): ...this.
2034 (move_out_of_jump_pad_callback): Turn into...
2035 (linux_process_target::move_out_of_jump_pad): ...this.
2036 (stop_all_lwps): Turn into...
2037 (linux_process_target::stop_all_lwps): ...this.
2038 (start_step_over): Turn into...
2039 (linux_process_target::start_step_over): ...this.
2040 (complete_ongoing_step_over): Turn into...
2041 (linux_process_target::complete_ongoing_step_over): ...this.
2042 (proceed_all_lwps): Turn into...
2043 (linux_process_target::proceed_all_lwps): ...this.
2044 (unstop_all_lwps): Turn into...
2045 (linux_process_target::unstop_all_lwps): ...this.
2047 * linux-low.h (class linux_process_target)
2048 <handle_extended_wait>
2049 <maybe_move_out_of_jump_pad>
2051 <wait_for_event_filtered>
2055 <move_out_of_jump_pad>
2058 <complete_ongoing_step_over>
2060 <unstop_all_lwps>: Declare.
2062 Update the callers below.
2064 * linux-low.cc (linux_process_target::attach): Update.
2065 (linux_process_target::stabilize_threads): Ditto.
2066 (linux_process_target::wait): Ditto.
2068 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2070 * linux-low.h (struct linux_target_ops): Update the comment for
2071 'cannot_store_register' to return 0 or 1.
2072 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
2075 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
2077 * config.in: Re-generate.
2078 * configure: Re-generate.
2080 2020-03-17 Kamil Rytarowski <n54@gmx.com>
2082 * regcache.cc (find_register_by_number): Update.
2083 * tdesc.cc (init_target_desc): Likewise.
2084 * tdesc.h (target_desc::reg_defs): Likewise.
2086 2020-03-12 Tom Tromey <tom@tromey.com>
2088 * configure: Rebuild.
2089 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
2090 (WIN32APILIBS): New subst.
2091 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
2093 (gdbsupport/%.o): Remove target.
2094 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
2095 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
2096 (WIN32APILIBS): New variable.
2097 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
2098 (gdbreplay$(EXEEXT)): Likewise.
2100 2020-03-12 Tom Tromey <tom@tromey.com>
2102 * config.in, configure: Rebuild.
2103 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
2104 * acinclude.m4: Include gettext-sister.m4.
2105 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
2107 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
2108 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
2110 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2112 * acinclude.m4: Update path to selftest.m4.
2114 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2116 * configure.ac: Don't source bfd/development.sh, move
2117 GDB_AC_COMMON higher.
2118 * configure: Re-generate.
2120 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2122 * configure: Re-generate.
2124 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
2126 * configure: Re-generate.
2128 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2130 * .dir-locals.el: New file.
2132 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2134 * .gitattributes: New file.
2136 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
2138 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
2139 reply into an S reply.
2140 * server.cc (disable_packet_T): New global.
2141 (captured_main): Set new global when appropriate.
2142 * server.h (disable_packet_T): Declare.
2144 2020-02-21 Tom Tromey <tom@tromey.com>
2146 * Makefile.in (mostlyclean): New target.
2148 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2150 * target.h (struct process_stratum_target): Remove.
2151 (class process_target): Rename to ...
2152 (class process_stratum_target): ... this.
2153 * linux-low.h (class linux_process_target): Derive from
2154 'process_stratum_target'.
2155 * linux-low.cc (linux_target_ops): Remove.
2156 (initialize_low): Set the_target to the singleton instance of
2157 linux_process_target.
2158 * lynx-low.h (class lynx_process_target): Derive from
2159 'process_stratum_target'.
2160 * lynx-low.cc (lynx_target_ops): Remove.
2161 (initialize_low): Set the_target to the singleton instance of
2162 lynx_process_target.
2163 * nto-low.h (class nto_process_target): Derive from
2164 'process_stratum_target'.
2165 * nto-low.cc (nto_target_ops): Remove.
2166 (initialize_low): Set the_target to the singleton instance of
2168 * win32-low.h (class win32_process_target): Derive from
2169 'process_stratum_target'.
2170 * win32-low.cc (win32_target_ops): Remove.
2171 (initialize_low): Set the_target to the singleton instance of
2172 win32_process_target.
2174 Replace 'the_target->pt' with 'the_target' in the uses below.
2176 * hostio.cc (hostio_error)
2181 * linux-aarch32-low.cc (arm_breakpoint_at)
2182 * linux-aarch64-low.cc (aarch64_breakpoint_at)
2183 * linux-arm-low.cc (arm_sigreturn_next_pc)
2185 (arm_get_syscall_trapinfo)
2186 * linux-cris-low.cc (cris_breakpoint_at)
2187 * linux-crisv32-low.cc (cris_breakpoint_at)
2188 * linux-low.cc (handle_extended_wait)
2191 (linux_process_target::breakpoint_kind_from_pc)
2193 * linux-m32r-low.cc (m32r_breakpoint_at)
2194 * linux-mips-low.cc (mips_breakpoint_at)
2195 * linux-nios2-low.cc (nios2_breakpoint_at)
2196 * linux-ppc-low.cc (ppc_breakpoint_at)
2197 * linux-s390-low.cc (s390_get_hwcap)
2198 * linux-sh-low.cc (sh_breakpoint_at)
2199 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
2200 (sparc_store_gregset_from_stack)
2201 (sparc_breakpoint_at)
2202 * linux-tic6x-low.cc (tic6x_breakpoint_at)
2203 * linux-tile-low.cc (tile_breakpoint_at)
2204 * linux-x86-low.cc (x86_breakpoint_at)
2205 * linux-xtensa-low.cc (xtensa_breakpoint_at)
2206 * mem-break.cc (bp_size)
2208 (insert_memory_breakpoint)
2209 (set_raw_breakpoint_at)
2210 (delete_raw_breakpoint)
2212 (uninsert_raw_breakpoint)
2213 (reinsert_raw_breakpoint)
2214 (validate_inserted_breakpoint)
2215 * regcache.cc (regcache_read_pc)
2217 * remote-utils.cc (putpkt_binary_1)
2220 (prepare_resume_reply)
2221 * server.cc (handle_general_set)
2224 (handle_qxfer_exec_file)
2225 (handle_qxfer_libraries_svr4)
2226 (handle_qxfer_osdata)
2227 (handle_qxfer_siginfo)
2228 (handle_qxfer_fdpic)
2232 (queue_stop_reply_callback)
2234 * target.cc (prepare_to_access_memory)
2235 (done_accessing_memory)
2236 (read_inferior_memory)
2237 (target_write_memory)
2238 (target_stop_and_wait)
2240 (target_mourn_inferior)
2241 (target_continue_no_signal)
2243 (target_supports_multi_process)
2246 (target_create_inferior)
2247 (target_post_create_inferior)
2249 (target_supports_fork_events)
2250 (target_supports_vfork_events)
2251 (target_supports_exec_events)
2252 (target_handle_new_gdb_connection)
2255 (fetch_inferior_registers)
2256 (store_inferior_registers)
2258 (target_supports_non_stop)
2260 (target_process_qsupported)
2261 (target_supports_catch_syscall)
2262 (target_get_ipa_tdesc_idx)
2263 (target_supports_tracepoints)
2264 (target_supports_fast_tracepoints)
2265 (target_get_min_fast_tracepoint_insn_len)
2266 (target_thread_stopped)
2268 (target_unpause_all)
2269 (target_stabilize_threads)
2270 (target_install_fast_tracepoint_jump_pad)
2272 (target_supports_disable_randomization)
2273 (target_supports_agent)
2274 (target_enable_btrace)
2275 (target_disable_btrace)
2276 (target_read_btrace)
2277 (target_read_btrace_conf)
2278 (target_supports_range_stepping)
2279 (target_supports_stopped_by_sw_breakpoint)
2280 (target_stopped_by_sw_breakpoint)
2281 (target_supports_stopped_by_hw_breakpoint)
2282 (target_supports_hardware_single_step)
2283 (target_stopped_by_hw_breakpoint)
2284 (target_breakpoint_kind_from_pc)
2285 (target_breakpoint_kind_from_current_state)
2286 (target_supports_software_single_step)
2287 (target_core_of_thread)
2288 (target_thread_name)
2289 (target_thread_handle)
2290 * win32-low.cc (do_initial_child_stuff)
2292 Rename target op default definitions listed below.
2294 * target.cc (process_target::post_create_inferior): Rename as ...
2295 (process_stratum_target::post_create_inferior): ... this.
2296 (process_target::prepare_to_access_memory): Rename as ...
2297 (process_stratum_target::prepare_to_access_memory): ... this.
2298 (process_target::done_accessing_memory): Rename as ...
2299 (process_stratum_target::done_accessing_memory): ... this.
2300 (process_target::look_up_symbols): Rename as ...
2301 (process_stratum_target::look_up_symbols): ... this.
2302 (process_target::supports_read_auxv): Rename as ...
2303 (process_stratum_target::supports_read_auxv): ... this.
2304 (process_target::read_auxv): Rename as ...
2305 (process_stratum_target::read_auxv): ... this.
2306 (process_target::supports_z_point_type): Rename as ...
2307 (process_stratum_target::supports_z_point_type): ... this.
2308 (process_target::insert_point): Rename as ...
2309 (process_stratum_target::insert_point): ... this.
2310 (process_target::remove_point): Rename as ...
2311 (process_stratum_target::remove_point): ... this.
2312 (process_target::stopped_by_sw_breakpoint): Rename as ...
2313 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
2314 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
2315 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
2316 (process_target::stopped_by_hw_breakpoint): Rename as ...
2317 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
2318 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
2319 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
2320 (process_target::supports_hardware_single_step): Rename as ...
2321 (process_stratum_target::supports_hardware_single_step): ... this.
2322 (process_target::stopped_by_watchpoint): Rename as ...
2323 (process_stratum_target::stopped_by_watchpoint): ... this.
2324 (process_target::stopped_data_address): Rename as ...
2325 (process_stratum_target::stopped_data_address): ... this.
2326 (process_target::supports_read_offsets): Rename as ...
2327 (process_stratum_target::supports_read_offsets): ... this.
2328 (process_target::read_offsets): Rename as ...
2329 (process_stratum_target::read_offsets): ... this.
2330 (process_target::supports_get_tls_address): Rename as ...
2331 (process_stratum_target::supports_get_tls_address): ... this.
2332 (process_target::get_tls_address): Rename as ...
2333 (process_stratum_target::get_tls_address): ... this.
2334 (process_target::hostio_last_error): Rename as ...
2335 (process_stratum_target::hostio_last_error): ... this.
2336 (process_target::supports_qxfer_osdata): Rename as ...
2337 (process_stratum_target::supports_qxfer_osdata): ... this.
2338 (process_target::qxfer_osdata): Rename as ...
2339 (process_stratum_target::qxfer_osdata): ... this.
2340 (process_target::supports_qxfer_siginfo): Rename as ...
2341 (process_stratum_target::supports_qxfer_siginfo): ... this.
2342 (process_target::qxfer_siginfo): Rename as ...
2343 (process_stratum_target::qxfer_siginfo): ... this.
2344 (process_target::supports_non_stop): Rename as ...
2345 (process_stratum_target::supports_non_stop): ... this.
2346 (process_target::async): Rename as ...
2347 (process_stratum_target::async): ... this.
2348 (process_target::start_non_stop): Rename as ...
2349 (process_stratum_target::start_non_stop): ... this.
2350 (process_target::supports_multi_process): Rename as ...
2351 (process_stratum_target::supports_multi_process): ... this.
2352 (process_target::supports_fork_events): Rename as ...
2353 (process_stratum_target::supports_fork_events): ... this.
2354 (process_target::supports_vfork_events): Rename as ...
2355 (process_stratum_target::supports_vfork_events): ... this.
2356 (process_target::supports_exec_events): Rename as ...
2357 (process_stratum_target::supports_exec_events): ... this.
2358 (process_target::handle_new_gdb_connection): Rename as ...
2359 (process_stratum_target::handle_new_gdb_connection): ... this.
2360 (process_target::handle_monitor_command): Rename as ...
2361 (process_stratum_target::handle_monitor_command): ... this.
2362 (process_target::core_of_thread): Rename as ...
2363 (process_stratum_target::core_of_thread): ... this.
2364 (process_target::supports_read_loadmap): Rename as ...
2365 (process_stratum_target::supports_read_loadmap): ... this.
2366 (process_target::read_loadmap): Rename as ...
2367 (process_stratum_target::read_loadmap): ... this.
2368 (process_target::process_qsupported): Rename as ...
2369 (process_stratum_target::process_qsupported): ... this.
2370 (process_target::supports_tracepoints): Rename as ...
2371 (process_stratum_target::supports_tracepoints): ... this.
2372 (process_target::read_pc): Rename as ...
2373 (process_stratum_target::read_pc): ... this.
2374 (process_target::write_pc): Rename as ...
2375 (process_stratum_target::write_pc): ... this.
2376 (process_target::supports_thread_stopped): Rename as ...
2377 (process_stratum_target::supports_thread_stopped): ... this.
2378 (process_target::thread_stopped): Rename as ...
2379 (process_stratum_target::thread_stopped): ... this.
2380 (process_target::supports_get_tib_address): Rename as ...
2381 (process_stratum_target::supports_get_tib_address): ... this.
2382 (process_target::get_tib_address): Rename as ...
2383 (process_stratum_target::get_tib_address): ... this.
2384 (process_target::pause_all): Rename as ...
2385 (process_stratum_target::pause_all): ... this.
2386 (process_target::unpause_all): Rename as ...
2387 (process_stratum_target::unpause_all): ... this.
2388 (process_target::stabilize_threads): Rename as ...
2389 (process_stratum_target::stabilize_threads): ... this.
2390 (process_target::supports_fast_tracepoints): Rename as ...
2391 (process_stratum_target::supports_fast_tracepoints): ... this.
2392 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
2393 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
2394 (process_target::emit_ops): Rename as ...
2395 (process_stratum_target::emit_ops): ... this.
2396 (process_target::supports_disable_randomization): Rename as ...
2397 (process_stratum_target::supports_disable_randomization): ... this.
2398 (process_target::supports_qxfer_libraries_svr4): Rename as ...
2399 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
2400 (process_target::qxfer_libraries_svr4): Rename as ...
2401 (process_stratum_target::qxfer_libraries_svr4): ... this.
2402 (process_target::supports_agent): Rename as ...
2403 (process_stratum_target::supports_agent): ... this.
2404 (process_target::enable_btrace): Rename as ...
2405 (process_stratum_target::enable_btrace): ... this.
2406 (process_target::disable_btrace): Rename as ...
2407 (process_stratum_target::disable_btrace): ... this.
2408 (process_target::read_btrace): Rename as ...
2409 (process_stratum_target::read_btrace): ... this.
2410 (process_target::read_btrace_conf): Rename as ...
2411 (process_stratum_target::read_btrace_conf): ... this.
2412 (process_target::supports_range_stepping): Rename as ...
2413 (process_stratum_target::supports_range_stepping): ... this.
2414 (process_target::supports_pid_to_exec_file): Rename as ...
2415 (process_stratum_target::supports_pid_to_exec_file): ... this.
2416 (process_target::pid_to_exec_file): Rename as ...
2417 (process_stratum_target::pid_to_exec_file): ... this.
2418 (process_target::supports_multifs): Rename as ...
2419 (process_stratum_target::supports_multifs): ... this.
2420 (process_target::multifs_open): Rename as ...
2421 (process_stratum_target::multifs_open): ... this.
2422 (process_target::multifs_unlink): Rename as ...
2423 (process_stratum_target::multifs_unlink): ... this.
2424 (process_target::multifs_readlink): Rename as ...
2425 (process_stratum_target::multifs_readlink): ... this.
2426 (process_target::breakpoint_kind_from_pc): Rename as ...
2427 (process_stratum_target::breakpoint_kind_from_pc): ... this.
2428 (process_target::breakpoint_kind_from_current_state): Rename as ...
2429 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
2430 (process_target::thread_name): Rename as ...
2431 (process_stratum_target::thread_name): ... this.
2432 (process_target::thread_handle): Rename as ...
2433 (process_stratum_target::thread_handle): ... this.
2434 (process_target::supports_software_single_step): Rename as ...
2435 (process_stratum_target::supports_software_single_step): ... this.
2436 (process_target::supports_catch_syscall): Rename as ...
2437 (process_stratum_target::supports_catch_syscall): ... this.
2438 (process_target::get_ipa_tdesc_idx): Rename as ...
2439 (process_stratum_target::get_ipa_tdesc_idx): ... this.
2441 2020-02-20 Pedro Alves <palves@redhat.com>
2443 * target.cc (set_target_ops): Simply copy the given target pointer
2444 instead of creating a copy of the pointed object.
2446 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2448 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
2451 * target.h (struct process_stratum_target): Remove the target op.
2452 (class process_target): Add the target op.
2453 (target_get_ipa_tdesc_idx): Update the macro.
2454 * target.cc (process_target::get_ipa_tdesc_idx): Define.
2456 Update the derived classes and callers below.
2458 * linux-low.cc (linux_target_ops): Update.
2459 (linux_get_ipa_tdesc_idx): Turn into ...
2460 (linux_process_target::get_ipa_tdesc_idx): ... this.
2461 * linux-low.h (class linux_process_target): Update.
2462 * lynx-low.cc (lynx_target_ops): Update.
2463 * nto-low.cc (nto_target_ops): Update.
2464 * win32-low.cc (win32_target_ops): Update.
2466 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2468 Turn process_stratum_target's supports_catch_syscall op into a
2469 method of process_target.
2471 * target.h (struct process_stratum_target): Remove the target op.
2472 (class process_target): Add the target op.
2473 (target_supports_catch_syscall): Update the macro.
2474 * target.cc (process_target::supports_catch_syscall): Define.
2476 Update the derived classes and callers below.
2478 * linux-low.cc (linux_target_ops): Update.
2479 (linux_supports_catch_syscall): Turn into ...
2480 (linux_process_target::supports_catch_syscall): ... this.
2481 * linux-low.h (class linux_process_target): Update.
2482 * lynx-low.cc (lynx_target_ops): Update.
2483 * nto-low.cc (nto_target_ops): Update.
2484 * win32-low.cc (win32_target_ops): Update.
2486 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2488 Turn process_stratum_target's supports_software_single_step op
2489 into a method of process_target.
2491 * target.h (struct process_stratum_target): Remove the target op.
2492 (class process_target): Add the target op.
2493 (target_supports_software_single_step): Update the macro.
2494 * target.cc (process_target::supports_software_single_step): Define.
2496 Update the derived classes and callers below.
2498 * linux-low.cc (linux_target_ops): Update.
2499 (linux_supports_software_single_step): Turn into ...
2500 (linux_process_target::supports_software_single_step): ... this.
2501 * linux-low.h (class linux_process_target): Update.
2502 * lynx-low.cc (lynx_target_ops): Update.
2503 * nto-low.cc (nto_target_ops): Update.
2504 * win32-low.cc (win32_target_ops): Update.
2506 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2508 Turn process_stratum_target's thread_name and thread_handle ops
2509 into methods of process_target.
2511 * target.h (struct process_stratum_target): Remove the target ops.
2512 (class process_target): Add the target ops.
2513 (target_thread_name): Update the macro.
2514 (target_thread_handle): Update the macro.
2515 * target.cc (process_target::thread_name): Define.
2516 (process_target::thread_handle): Define.
2518 Update the derived classes and callers below.
2520 * linux-low.cc (linux_target_ops): Update.
2521 (linux_process_target::thread_name): Define.
2522 (linux_process_target::thread_handle): Define.
2523 * linux-low.h (class linux_process_target): Update.
2524 * lynx-low.cc (lynx_target_ops): Update.
2525 * nto-low.cc (nto_target_ops): Update.
2526 * win32-low.cc (win32_target_ops): Update.
2528 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2530 Turn process_stratum_target's breakpoint_kind_from_pc,
2531 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
2532 ops into methods of process_target.
2534 * target.h (struct process_stratum_target): Remove the target op.
2535 (class process_target): Add the target op.
2536 (target_breakpoint_kind_from_pc): Update the macro.
2537 (target_breakpoint_kind_from_current_state): Update the macro.
2538 (default_breakpoint_kind_from_pc): Remove declaration.
2539 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
2540 (process_target::breakpoint_kind_from_pc): ... this.
2541 (process_target::breakpoint_kind_from_current_state): Define.
2543 Update the derived classes and callers below.
2545 * mem-break.cc (bp_size): Update.
2546 (bp_opcode): Update.
2547 * linux-low.cc (linux_target_ops): Update.
2548 (linux_wait_1): Update.
2549 (linux_breakpoint_kind_from_pc): Turn into ...
2550 (linux_process_target::breakpoint_kind_from_pc): ... this.
2551 (linux_sw_breakpoint_from_kind): Turn into ...
2552 (linux_process_target::sw_breakpoint_from_kind): ... this.
2553 (linux_breakpoint_kind_from_current_state): Turn into ...
2554 (linux_process_target::breakpoint_kind_from_current_state): ... this.
2555 * linux-low.h (class linux_process_target): Update.
2556 * lynx-low.cc (lynx_target_ops): Update.
2557 (lynx_process_target::sw_breakpoint_from_kind): Define.
2558 * lynx-low.h (class lynx_process_target): Update.
2559 * nto-low.cc (nto_target_ops): Update.
2560 (nto_sw_breakpoint_from_kind): Turn into ...
2561 (nto_process_target::sw_breakpoint_from_kind): ... this.
2562 * nto-low.h (class nto_process_target): Update.
2563 * win32-low.cc (win32_target_ops): Update.
2564 (win32_sw_breakpoint_from_kind): Turn into ...
2565 (win32_process_target::sw_breakpoint_from_kind): ... this.
2566 * win32-low.h (class win32_process_target): Update.
2568 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2570 Turn process_stratum_target's multifs_open, multifs_readlink,
2571 multifs_unlink ops into methods of process_target.
2573 * target.h (struct process_stratum_target): Remove the target ops.
2574 (class process_target): Add the target ops. Also add
2576 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
2578 (process_target::supports_multifs): Define.
2579 (process_target::multifs_open): Define.
2580 (process_target::multifs_readlink): Define.
2581 (process_target::multifs_unlink): Define.
2583 Update the derived classes and callers below.
2585 * hostio.cc (handle_setfs): Update.
2586 (handle_open): Update.
2587 (handle_unlink): Update.
2588 (handle_readlink): Update.
2589 * linux-low.cc (linux_target_ops): Update.
2590 (linux_process_target::supports_multifs): Define.
2591 (linux_process_target::multifs_open): Define.
2592 (linux_process_target::multifs_readlink): Define.
2593 (linux_process_target::multifs_unlink): Define.
2594 * linux-low.h (class linux_process_target): Update.
2595 * lynx-low.cc (lynx_target_ops): Update.
2596 * nto-low.cc (nto_target_ops): Update.
2597 * win32-low.cc (win32_target_ops): Update.
2599 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2601 Turn process_stratum_target's pid_to_exec_file op into a method
2604 * target.h (struct process_stratum_target): Remove the target op.
2605 (class process_target): Add the target op. Also add
2606 'supports_pid_to_exec_file'.
2607 * target.cc (process_target::pid_to_exec_file): Define.
2608 (process_target::supports_pid_to_exec_file): Define.
2610 Update the derived classes and callers below.
2612 * server.cc (handle_qxfer_exec_file): Update.
2613 (handle_query): Update.
2614 * linux-low.cc (linux_target_ops): Update.
2615 (linux_process_target::supports_pid_to_exec_file): Define.
2616 (linux_process_target::pid_to_exec_file): Define.
2617 * linux-low.h (class linux_process_target): Update.
2618 * lynx-low.cc (lynx_target_ops): Update.
2619 * nto-low.cc (nto_target_ops): Update.
2620 * win32-low.cc (win32_target_ops): Update.
2622 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2624 Turn process_stratum_target's supports_range_stepping op into a
2625 method of process_target.
2627 * target.h (struct process_stratum_target): Remove the target op.
2628 (class process_target): Add the target op.
2629 (target_supports_range_stepping): Update the macro.
2630 * target.cc (process_target::supports_range_stepping): Define.
2632 Update the derived classes and callers below.
2634 * linux-low.cc (linux_target_ops): Update.
2635 (linux_supports_range_stepping): Turn into ...
2636 (linux_process_target::supports_range_stepping): ... this.
2637 * linux-low.h (class linux_process_target): Update.
2638 * lynx-low.cc (lynx_target_ops): Update.
2639 * nto-low.cc (nto_target_ops): Update.
2640 * win32-low.cc (win32_target_ops): Update.
2642 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2644 Turn process_stratum_target's btrace-related ops (enable_btrace,
2645 disable_btrace, read_btrace, read_btrace_conf) into methods of
2648 * target.h (struct process_stratum_target): Remove the target ops.
2649 (class process_target): Add the target ops.
2650 (target_enable_btrace): Update.
2651 (target_disable_btrace): Update.
2652 (target_read_btrace): Update.
2653 (target_read_btrace_conf): Update.
2654 * target.cc (process_target::enable_btrace): Define.
2655 (process_target::disable_btrace): Define.
2656 (process_target::read_btrace): Define.
2657 (process_target::read_btrace_conf): Define.
2659 Update the derived classes and callers below.
2661 * linux-low.cc (linux_target_ops): Update.
2662 (linux_process_target:enable_btrace): Define as a wrapper around
2663 linux_enable_btrace.
2664 (linux_low_disable_btrace): Turn into ...
2665 (linux_process_target::disable_btrace): ... this.
2666 (linux_low_read_btrace): Turn into ...
2667 (linux_process_target::read_btrace): ... this.
2668 (linux_low_btrace_conf): Turn into ...
2669 (linux_process_target::read_btrace_conf): ... this.
2670 * linux-low.h (class linux_process_target): Update.
2671 * lynx-low.cc (lynx_target_ops): Update.
2672 * nto-low.cc (nto_target_ops): Update.
2673 * win32-low.cc (win32_target_ops): Update.
2675 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2677 Turn process_stratum_target's supports_agent op into a method of
2680 * target.h (struct process_stratum_target): Remove the target op.
2681 (class process_target): Add the target op.
2682 (target_supports_agent): Update the macro.
2683 * target.cc (process_target::supports_agent): Define.
2685 Update the derived classes and callers below.
2687 * linux-low.cc (linux_target_ops): Update.
2688 (linux_supports_agent): Turn into ...
2689 (linux_process_target::supports_agent): ... this.
2690 * linux-low.h (class linux_process_target): Update.
2691 * lynx-low.cc (lynx_target_ops): Update.
2692 * nto-low.cc (nto_target_ops): Update.
2693 * win32-low.cc (win32_target_ops): Update.
2695 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2697 Turn process_stratum_target's qxfer_libraries_svr4 op into a
2698 method of process_target.
2700 * target.h (struct process_stratum_target): Remove the target op.
2701 (class process_target): Add the target op. Also add
2702 'supports_qxfer_libraries_svr4'.
2703 * target.cc (process_target::qxfer_libraries_svr4): Define.
2704 (process_target::supports_qxfer_libraries_svr4): Define.
2706 Update the derived classes and callers below.
2708 * server.cc (handle_qxfer_libraries_svr4): Update.
2709 (handle_query): Update.
2710 * linux-low.cc (linux_target_ops): Update.
2711 (linux_process_target::supports_qxfer_libraries_svr4): Define.
2712 (linux_qxfer_libraries_svr4): Turn into ...
2713 (linux_process_target::qxfer_libraries_svr4): ... this.
2714 * linux-low.h (class linux_process_target): Update.
2715 * lynx-low.cc (lynx_target_ops): Update.
2716 * nto-low.cc (nto_target_ops): Update.
2717 * win32-low.cc (win32_target_ops): Update.
2719 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2721 Turn process_stratum_target's supports_disable_randomization op
2722 into a method of process_target.
2724 * target.h (struct process_stratum_target): Remove the target op.
2725 (class process_target): Add the target op.
2726 (target_supports_disable_randomization): Update the macro.
2727 * target.cc (process_target::supports_disable_randomization): Define.
2729 Update the derived classes and callers below.
2731 * linux-low.cc (linux_target_ops): Update.
2732 (linux_supports_disable_randomization): Turn into ...
2733 (linux_process_target::supports_disable_randomization): ... this.
2734 * linux-low.h (class linux_process_target): Update.
2735 * lynx-low.cc (lynx_target_ops): Update.
2736 * nto-low.cc (nto_target_ops): Update.
2737 * win32-low.cc (win32_target_ops): Update.
2739 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2741 Turn process_stratum_target's emit_ops op into a method of
2744 * target.h (struct process_stratum_target): Remove the target op.
2745 (class process_target): Add the target op.
2746 (target_emit_ops): Update the macro.
2747 * target.cc (process_target::emit_ops): Define.
2749 Update the derived classes and callers below.
2751 * linux-low.cc (linux_target_ops): Update.
2752 (linux_emit_ops): Turn into ...
2753 (linux_process_target::emit_ops): ... this.
2754 * linux-low.h (class linux_process_target): Update.
2755 * lynx-low.cc (lynx_target_ops): Update.
2756 * nto-low.cc (nto_target_ops): Update.
2757 * win32-low.cc (win32_target_ops): Update.
2759 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2761 Turn process_stratum_target's install_fast_tracepoint_jump_pad
2762 and get_min_fast_tracepoint_insn_len ops into methods of
2765 * target.h (struct process_stratum_target): Remove the target ops.
2766 (class process_target): Add the target ops. Also add
2767 'supports_fast_tracepoints'.
2768 (target_supports_fast_tracepoints): Update the macro.
2769 (target_get_min_fast_tracepoint_insn_len): Update the macro.
2770 (install_fast_tracepoint_jump_pad): Update and rename the macro
2772 (target_install_fast_tracepoint_jump_pad): ... this.
2773 * target.cc (process_target::supports_fast_tracepoints): Define.
2774 (process_target::install_fast_tracepoint_jump_pad): Define.
2775 (process_target::get_min_fast_tracepoint_insn_len): Define.
2777 Update the derived classes and callers below.
2779 * tracepoint.cc (install_fast_tracepoint): Update.
2780 * linux-low.cc (linux_target_ops): Update.
2781 (linux_process_target::supports_fast_tracepoints): Define.
2782 (linux_install_fast_tracepoint_jump_pad): Turn into ...
2783 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
2784 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
2785 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
2786 * linux-low.h (class linux_process_target): Update.
2787 * lynx-low.cc (lynx_target_ops): Update.
2788 * nto-low.cc (nto_target_ops): Update.
2789 * win32-low.cc (win32_target_ops): Update.
2791 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2793 Turn process_stratum_target's stabilize_threads op into a
2794 method of process_target.
2796 * target.h (struct process_stratum_target): Remove the target op.
2797 (class process_target): Add the target op.
2798 (target_stabilize_threads): Update the macro.
2799 * target.cc (process_target::stabilize_threads): Define.
2801 Update the derived classes and callers below.
2803 * server.cc (handle_status): Update.
2804 * tracepoint.cc (cmd_qtdp): Update.
2805 (cmd_qtstart): Update.
2806 * linux-low.cc (linux_target_ops): Update.
2807 (linux_stabilize_threads): Turn into ...
2808 (linux_process_target::stabilize_threads): ... this.
2809 (linux_wait_1): Update.
2810 * linux-low.h (class linux_process_target): Update.
2811 * lynx-low.cc (lynx_target_ops): Update.
2812 * nto-low.cc (nto_target_ops): Update.
2813 * win32-low.cc (win32_target_ops): Update.
2815 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2817 Turn process_stratum_target's pause_all and unpause_all ops
2818 into methods of process_target.
2820 * target.h (struct process_stratum_target): Remove the target ops.
2821 (class process_target): Add the target ops.
2822 (pause_all): Update the macro and rename to...
2823 (target_pause_all): ... this.
2824 (unpause_all): Update the macro and rename to...
2825 (target_unpause_all): ... this.
2826 * target.cc (process_target::pause_all): Define.
2827 (process_target::unpause_all): Define.
2829 Update the derived classes and callers below.
2831 * server.cc (handle_status): Update.
2832 * tracepoint.cc (clear_installed_tracepoints): Update.
2834 (cmd_qtstart): Update.
2835 (stop_tracing): Update.
2836 (cmd_qtstatus): Update.
2837 (upload_fast_traceframes): Update.
2838 (run_inferior_command): Update.
2839 * linux-low.cc (linux_target_ops): Update.
2840 (linux_pause_all): Turn into ...
2841 (linux_process_target::pause_all): ... this.
2842 (linux_unpause_all): Turn into ...
2843 (linux_process_target::unpause_all): ... this.
2844 (linux_process_target::prepare_to_access_memory): Update.
2845 (linux_process_target::done_accessing_memory): Update.
2846 * linux-low.h (class linux_process_target): Update.
2847 * lynx-low.cc (lynx_target_ops): Update.
2848 * nto-low.cc (nto_target_ops): Update.
2849 * win32-low.cc (win32_target_ops): Update.
2851 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2853 Turn process_stratum_target's get_tib_address op into a method of
2856 * target.h (struct process_stratum_target): Remove the target op.
2857 (class process_target): Add the target op. Also add
2858 'supports_get_tib_address'.
2859 * target.cc (process_target::get_tib_address): Define.
2860 (process_target::supports_get_tib_address): Define.
2862 Update the derived classes and callers below.
2864 * server.cc (handle_query): Update.
2865 * linux-low.cc (win32_target_ops): Update.
2866 * lynx-low.cc (lynx_target_ops): Update.
2867 * nto-low.cc (nto_target_ops): Update.
2868 * win32-low.cc (win32_target_ops): Update.
2869 (win32_process_target::supports_get_tib_address): Define.
2870 (win32_get_tib_address): Turn into ...
2871 (win32_process_target::get_tib_address): ... this.
2872 * win32-low.h (class win32_process_target): Update.
2874 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2876 Turn process_stratum_target's thread_stopped op into a method of
2879 * target.h (struct process_stratum_target): Remove the target op.
2880 (class process_target): Add the target op. Also add
2881 'supports_thread_stopped'.
2882 (target_thread_stopped): Update the macro.
2883 * target.cc (process_target::thread_stopped): Define.
2884 (process_target::supports_thread_stopped): Define.
2885 (prepare_to_access_memory): Update.
2887 Update the derived classes and callers below.
2889 * server.cc (queue_stop_reply_callback): Update.
2890 * linux-low.cc (linux_target_ops): Update.
2891 (linux_process_target::supports_thread_stopped): Define.
2892 (linux_thread_stopped): Turn into ...
2893 (linux_process_target::thread_stopped): ... this.
2894 * linux-low.h (class linux_process_target): Update.
2895 * lynx-low.cc (lynx_target_ops): Update.
2896 * nto-low.cc (nto_target_ops): Update.
2897 * win32-low.cc (win32_target_ops): Update.
2899 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2901 Turn process_stratum_target's read_pc and write_pc ops into
2902 methods of process_target.
2904 * target.h (struct process_stratum_target): Remove the target ops.
2905 (class process_target): Add the target ops.
2906 * target.cc (process_target::read_pc): Define.
2907 (process_target::write_pc): Define.
2909 Update the derived classes and callers below.
2911 * regcache.cc (regcache_read_pc): Update.
2912 (regcache_write_pc): Update.
2913 * linux-low.cc (linux_target_ops): Update.
2914 (linux_read_pc): Turn into ...
2915 (linux_process_target::read_pc): ... this.
2916 (linux_write_pc): Turn into ...
2917 (linux_process_target::write_pc): ... this.
2918 * linux-low.h (class linux_process_target): Update.
2919 * lynx-low.cc (lynx_target_ops): Update.
2920 * nto-low.cc (nto_target_ops): Update.
2921 * win32-low.cc (win32_target_ops): Update.
2923 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2925 Turn process_stratum_target's supports_tracepoints op into a
2926 method of process_target.
2928 * target.h (struct process_stratum_target): Remove the target op.
2929 (class process_target): Add the target op.
2930 (target_supports_tracepoints): Update the macro.
2931 * target.cc (process_target::supports_tracepoints): Define.
2933 Update the derived classes and callers below.
2935 * linux-low.cc (linux_target_ops): Update.
2936 (linux_supports_tracepoints): Turn into ...
2937 (linux_process_target::supports_tracepoints): ... this.
2938 * linux-low.h (class linux_process_target): Update.
2939 * lynx-low.cc (lynx_target_ops): Update.
2940 * nto-low.cc (nto_target_ops): Update.
2941 * win32-low.cc (win32_target_ops): Update.
2943 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2945 Turn process_stratum_target's process_qsupported op into a method
2948 * target.h (struct process_stratum_target): Remove the target op.
2949 (class process_target): Add the target op.
2950 (target_process_qsupported): Update the macro.
2951 * target.cc (process_target::process_qsupported): Define.
2953 Update the derived classes and callers below.
2955 * linux-low.cc (linux_target_ops): Update.
2956 (linux_process_qsupported): Turn into ...
2957 (linux_process_target::process_qsupported): ... this.
2958 * linux-low.h (class linux_process_target): Update.
2959 * lynx-low.cc (lynx_target_ops): Update.
2960 * nto-low.cc (nto_target_ops): Update.
2961 * win32-low.cc (win32_target_ops): Update.
2963 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2965 Turn process_stratum_target's read_loadmap op into a method of
2968 * target.h (struct process_stratum_target): Remove the target op.
2969 (class process_target): Add the target op. Also add
2970 'supports_read_loadmap'.
2971 * target.cc (process_target::read_loadmap): Define.
2972 (process_target::supports_read_loadmap): Define.
2974 Update the derived classes and callers below.
2976 * server.cc (handle_qxfer_fdpic): Update.
2977 (handle_query): Update.
2978 * linux-low.cc (linux_target_ops): Update.
2979 (linux_process_target::supports_read_loadmap): Define.
2980 (linux_read_loadmap): Turn into ...
2981 (linux_process_target::read_loadmap): ... this.
2982 * linux-low.h (class linux_process_target): Update.
2983 * lynx-low.cc (lynx_target_ops): Update.
2984 * nto-low.cc (nto_target_ops): Update.
2985 * win32-low.cc (win32_target_ops): Update.
2987 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2989 Turn process_stratum_target's core_of_thread op into a method of
2992 * target.h (struct process_stratum_target): Remove the target op.
2993 (class process_target): Add the target op.
2994 (target_core_of_thread): Update the macro.
2995 * target.cc (process_target::core_of_thread): Define.
2997 Update the derived classes and callers below.
2999 * linux-low.cc (linux_target_ops): Update.
3000 (linux_process_target::core_of_thread): Define.
3001 * linux-low.h (class linux_process_target): Update.
3002 * lynx-low.cc (lynx_target_ops): Update.
3003 * nto-low.cc (nto_target_ops): Update.
3004 * win32-low.cc (win32_target_ops): Update.
3006 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3008 Turn process_stratum_target's handle_monitor_command op into a
3009 method of process_target.
3011 * target.h (struct process_stratum_target): Remove the target op.
3012 (class process_target): Add the target op.
3013 (target_handle_monitor_command): Update the macro.
3014 * target.cc (process_target::handle_monitor_command): Define.
3016 Update the derived classes and callers below.
3018 * server.cc (handle_query): Update.
3019 * linux-low.cc (linux_target_ops): Update.
3020 (linux_process_target::handle_monitor_command): Define.
3021 * linux-low.h (class linux_process_target): Update.
3022 * lynx-low.cc (lynx_target_ops): Update.
3023 * nto-low.cc (nto_target_ops): Update.
3024 * win32-low.cc (win32_target_ops): Update.
3026 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3028 Turn process_stratum_target's handle_new_gdb_connection op into a
3029 method of process_target.
3031 * target.h (struct process_stratum_target): Remove the target op.
3032 (class process_target): Add the target op.
3033 (target_handle_new_gdb_connection): Update the macro.
3034 * target.cc (process_target::handle_new_gdb_connection): Define.
3036 Update the derived classes and callers below.
3038 * linux-low.cc (linux_target_ops): Update.
3039 (linux_handle_new_gdb_connection): Turn into ...
3040 (linux_process_target::handle_new_gdb_connection): ... this.
3041 * linux-low.h (class linux_process_target): Update.
3042 * lynx-low.cc (lynx_target_ops): Update.
3043 * nto-low.cc (nto_target_ops): Update.
3044 * win32-low.cc (win32_target_ops): Update.
3046 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3048 Turn process_stratum_target's supports_fork_events,
3049 supports_vfork_events, and supports_exec_events ops into methods
3052 * target.h (struct process_stratum_target): Remove the target ops.
3053 (class process_target): Add the target ops.
3054 (target_supports_fork_events): Update the macro.
3055 (target_supports_vfork_events): Update the macro.
3056 (target_supports_exec_events): Update the macro.
3057 * target.cc (process_target::supports_fork_events): Define.
3058 (process_target::supports_vfork_events): Define.
3059 (process_target::supports_exec_events): Define.
3061 Update the derived classes and callers below.
3063 * linux-low.cc (linux_target_ops): Update.
3064 (linux_supports_fork_events): Turn into ...
3065 (linux_process_target::supports_fork_events): ... this.
3066 (linux_supports_vfork_events): Turn into ...
3067 (linux_process_target::supports_vfork_events): ... this.
3068 (linux_supports_exec_events): Turn into ...
3069 (linux_process_target::supports_exec_events): ... this.
3070 * linux-low.h (class linux_process_target): Update.
3071 * lynx-low.cc (lynx_target_ops): Update.
3072 * nto-low.cc (nto_target_ops): Update.
3073 * win32-low.cc (win32_target_ops): Update.
3075 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3077 Turn process_stratum_target's supports_multi_process op into a
3078 method of process_target.
3080 * target.h (struct process_stratum_target): Remove the target op.
3081 (class process_target): Add the target op.
3082 * target.cc (process_target::supports_multi_process): Define.
3083 (target_supports_multi_process): Update.
3085 Update the derived classes and callers below.
3087 * linux-low.cc (linux_target_ops): Update.
3088 (linux_supports_multi_process): Turn into ...
3089 (linux_process_target::supports_multi_process): ... this.
3090 * linux-low.h (class linux_process_target): Update.
3091 * lynx-low.cc (lynx_target_ops): Update.
3092 * nto-low.cc (nto_target_ops): Update.
3093 * win32-low.cc (win32_target_ops): Update.
3095 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3097 Turn process_stratum_target's supports_non_stop, async, and
3098 start_non_stop ops into methods of process_target.
3100 * target.h (struct process_stratum_target): Remove the target ops.
3101 (class process_target): Add the target ops.
3102 (target_supports_non_stop): Update the macro.
3103 (target_async): Update the macro.
3104 (start_non_stop): Remove declaration.
3105 * target.cc (process_target::supports_non_stop): Define.
3106 (process_target::async): Define.
3107 (process_target::start_non_stop): Define.
3108 (start_non_stop): Remove.
3110 Update the derived classes and callers below.
3112 * server.cc (handle_qxfer_siginfo): Update.
3113 (handle_query): Update.
3114 * linux-low.cc (linux_target_ops): Update.
3115 (linux_supports_non_stop): Turn into ...
3116 (linux_process_target::supports_non_stop): ... this.
3117 (linux_async): Turn into ...
3118 (linux_process_target::async): ... this.
3119 (linux_start_non_stop): Turn into ...
3120 (linux_process_target::start_non_stop): ... this.
3121 * linux-low.h (class linux_process_target): Update.
3122 * lynx-low.cc (lynx_target_ops): Update.
3123 * nto-low.cc (nto_target_ops): Update.
3124 (nto_supports_non_stop): Remove; rely on the default behavior
3126 * win32-low.cc (win32_target_ops): Update.
3128 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3130 Turn process_stratum_target's qxfer_siginfo op into a method of
3133 * target.h (struct process_stratum_target): Remove the target op.
3134 (class process_target): Add the target op. Also add
3135 'supports_qxfer_siginfo'.
3136 * target.cc (process_target::qxfer_siginfo): Define.
3137 (process_target::supports_qxfer_siginfo): Define.
3139 Update the derived classes and callers below.
3141 * server.cc (handle_qxfer_siginfo): Update.
3142 (handle_query): Update.
3143 * linux-low.cc (linux_target_ops): Update.
3144 (linux_process_target::supports_qxfer_siginfo): Define.
3145 (linux_xfer_siginfo): Turn into ...
3146 (linux_process_target::qxfer_siginfo): ... this.
3147 * linux-low.h (class linux_process_target): Update.
3148 * lynx-low.cc (lynx_target_ops): Update.
3149 * nto-low.cc (nto_target_ops): Update.
3150 * win32-low.cc (win32_target_ops): Update.
3152 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3154 Turn process_stratum_target's qxfer_osdata op into a method of
3157 * target.h (struct process_stratum_target): Remove the target op.
3158 (class process_target): Add the target op. Also add
3159 'supports_qxfer_osdata'.
3160 * target.cc (process_target::qxfer_osdata): Define.
3161 (process_target::supports_qxfer_osdata): Define.
3163 Update the derived classes and callers below.
3165 * server.cc (handle_qxfer_osdata): Update.
3166 (handle_query): Update.
3167 * linux-low.cc (linux_target_ops): Update.
3168 (linux_process_target::supports_qxfer_osdata): Define.
3169 (linux_qxfer_osdata): Turn into ...
3170 (linux_process_target::qxfer_osdata): ... this.
3171 * linux-low.h (class linux_process_target): Update.
3172 * lynx-low.cc (lynx_target_ops): Update.
3173 * nto-low.cc (nto_target_ops): Update.
3174 * win32-low.cc (win32_target_ops): Update.
3176 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3178 Turn process_stratum_target's hostio_last_error op into a
3179 method of process_target.
3181 * target.h (struct process_stratum_target): Remove the target op.
3182 (class process_target): Add the target op.
3183 * target.cc: Add "hostio.h" to includes.
3184 (process_target::hostio_last_error): Define.
3186 Update the derived classes and callers below.
3188 * hostio.cc (hostio_error): Update.
3189 * linux-low.cc: Remove "hostio.h" from includes.
3190 (linux_target_ops): Update.
3191 * lynx-low.cc (lynx_target_ops): Update.
3192 * nto-low.cc (nto_target_ops): Update.
3193 * win32-low.h (class win32_process_target): Update.
3194 * win32-low.cc (win32_target_ops): Update.
3195 (wince_hostio_last_error): Turn into ...
3196 (win32_process_target::hostio_last_error): ... this.
3198 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3200 Turn process_stratum_target's get_tls_address op into a method of
3203 * target.h (struct process_stratum_target): Remove the target op.
3204 (class process_target): Add the target op. Also add
3205 'supports_get_tls_address'.
3206 * target.cc (process_target::get_tls_address): Define.
3207 (process_target::supports_get_tls_address): Define.
3209 Update the derived classes and callers below.
3211 * server.cc (handle_query): Update.
3212 * linux-low.cc (linux_target_ops): Update.
3213 (linux_process_target::supports_get_tls_address): Define.
3214 (linux_process_target::get_tls_address): Define.
3215 * linux-low.h (class linux_process_target): Update.
3216 * lynx-low.cc (lynx_target_ops): Update.
3217 * nto-low.cc (nto_target_ops): Update.
3218 * win32-low.cc (win32_target_ops): Update.
3220 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3222 Turn process_stratum_target's read_offsets op into a method of
3225 * target.h (struct process_stratum_target): Remove the target op.
3226 (class process_target): Add the target op. Also add
3227 'supports_read_offsets'.
3228 * target.cc (process_target::read_offsets): Define.
3229 (process_target::supports_read_offsets): Define.
3231 Update the derived classes and callers below.
3233 * server.cc (handle_query): Update.
3234 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
3235 (linux_target_ops): Update.
3236 (linux_process_target::supports_read_offsets): Define.
3237 (linux_read_offsets): Turn into ...
3238 (linux_process_target::read_offsets): ... this.
3239 * linux-low.h (class linux_process_target): Update.
3240 * lynx-low.cc (lynx_target_ops): Update.
3241 * nto-low.cc (nto_target_ops): Update.
3242 * win32-low.cc (win32_target_ops): Update.
3244 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3246 Turn process_stratum_target's stopped_by_watchpoint and
3247 stopped_data_address ops into methods of process_target.
3249 * target.h (struct process_stratum_target): Remove the target ops.
3250 (class process_target): Add the target ops.
3251 * target.cc (process_target::stopped_by_watchpoint): Define.
3252 (process_target::stopped_data_address): Define.
3254 Update the derived classes and callers below.
3256 * remote-utils.cc (prepare_resume_reply): Update.
3257 * linux-low.cc (linux_target_ops): Update.
3258 (linux_stopped_by_watchpoint): Turn into ...
3259 (linux_process_target::stopped_by_watchpoint): ... this.
3260 (linux_stopped_data_address): Turn into ...
3261 (linux_process_target::stopped_data_address): ... this.
3262 * linux-low.h (class linux_process_target): Update.
3263 * lynx-low.cc (lynx_target_ops): Update.
3264 * nto-low.cc (nto_target_ops): Update.
3265 (nto_stopped_by_watchpoint): Turn into ...
3266 (nto_process_target::stopped_by_watchpoint): ... this.
3267 (nto_stopped_data_address): Turn into ...
3268 (nto_process_target::stopped_data_address): ... this.
3269 * nto-low.h (class nto_process_target): Update.
3270 * win32-low.cc (win32_target_ops): Update.
3271 (win32_stopped_by_watchpoint): Turn into ...
3272 (win32_process_target::stopped_by_watchpoint): ... this.
3273 (win32_stopped_data_address): Turn into ...
3274 (win32_process_target::stopped_data_address): ... this.
3275 * win32-low.h (class win32_process_target): Update.
3277 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3279 Turn process_stratum_target's supports_hardware_single_step op into
3280 a method of process_target.
3282 * target.h (struct process_stratum_target): Remove the target op.
3283 (class process_target): Add the target op.
3284 (target_supports_hardware_single_step): Update the macro.
3285 (target_can_do_hardware_single_step): Remove declaration.
3286 * target.cc (process_target::supports_hardware_single_step): Define.
3287 (target_can_do_hardware_single_step): Remove.
3289 Update the derived classes and callers below.
3291 * linux-low.h (class linux_process_target): Update.
3292 * linux-low.cc (linux_target_ops): Update.
3293 (linux_supports_hardware_single_step): Turn into ...
3294 (linux_process_target::supports_hardware_single_step): ... this.
3295 * lynx-low.h (class lynx_process_target): Update.
3296 * lynx-low.cc (lynx_target_ops): Update.
3297 (lynx_process_target::supports_hardware_single_step): Define.
3298 * nto-low.h (class nto_process_target): Update.
3299 * nto-low.cc (nto_target_ops): Update.
3300 (nto_process_target::supports_hardware_single_step): Define.
3301 * win32-low.h (class win32_process_target): Update.
3302 * win32-low.cc (win32_target_ops): Update.
3303 (win32_process_target::supports_hardware_single_step): Define.
3305 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3307 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
3308 ops into methods of process_target.
3310 * target.h (struct process_stratum_target): Remove the target ops.
3311 (class process_target): Add the target ops.
3312 (target_stopped_by_hw_breakpoint): Update the macro.
3313 (target_supports_stopped_by_hw_breakpoint): Update the macro.
3314 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
3315 (process_target::supports_stopped_by_hw_breakpoint): Define.
3317 Update the derived classes and callers below.
3319 * linux-low.cc (linux_target_ops): Update.
3320 (linux_stopped_by_hw_breakpoint): Turn into ...
3321 (linux_process_target::stopped_by_hw_breakpoint): ... this.
3322 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
3323 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
3324 * linux-low.h (class linux_process_target): Update.
3325 * lynx-low.cc (lynx_target_ops): Update.
3326 * nto-low.cc (nto_target_ops): Update.
3327 * win32-low.cc (win32_target_ops): Update.
3329 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3331 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
3332 ops into methods of process_target.
3334 * target.h (struct process_stratum_target): Remove the target ops.
3335 (class process_target): Add the target ops.
3336 (target_stopped_by_sw_breakpoint): Update the macro.
3337 (target_supports_stopped_by_sw_breakpoint): Update the macro.
3338 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
3339 (process_target::supports_stopped_by_sw_breakpoint): Define.
3341 Update the derived classes and callers below.
3343 * linux-low.cc (linux_target_ops): Update.
3344 (linux_stopped_by_sw_breakpoint): Turn into ...
3345 (linux_process_target::stopped_by_sw_breakpoint): ... this.
3346 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
3347 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
3348 * linux-low.h (class linux_process_target): Update.
3349 * lynx-low.cc (lynx_target_ops): Update.
3350 * nto-low.cc (nto_target_ops): Update.
3351 * win32-low.cc (win32_target_ops): Update.
3353 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3355 Turn process_stratum_target's insert_point and remove_point ops
3356 into methods of process_target.
3358 * target.h (struct process_stratum_target): Remove the target ops.
3359 (class process_target): Add the target ops.
3360 * target.cc (process_target::insert_point): Define.
3361 (process_target::remove_point): Define.
3363 Update the derived classes and callers below.
3365 * mem-break.cc (set_raw_breakpoint_at): Update.
3366 (delete_raw_breakpoint): Update.
3367 (uninsert_raw_breakpoint): Update.
3368 (reinsert_raw_breakpoint): Update.
3369 * linux-low.cc (linux_target_ops): Update.
3370 (linux_insert_point): Turn into ...
3371 (linux_process_target::insert_point): ... this.
3372 (linux_remove_point): Turn into ...
3373 (linux_process_target::remove_point): ... this.
3374 * linux-low.h (class linux_process_target): Update.
3375 * lynx-low.cc (lynx_target_ops): Update.
3376 * nto-low.cc (nto_target_ops): Update.
3377 (nto_insert_point): Turn into ...
3378 (nto_process_target::insert_point): ... this.
3379 (nto_remove_point): Turn into ...
3380 (nto_process_target::remove_point): ... this.
3381 * nto-low.h (class nto_process_target): Update.
3382 * win32-low.cc (win32_target_ops): Update.
3383 (win32_insert_point): Turn into ...
3384 (win32_process_target::insert_point): ... this.
3385 (win32_remove_point): Turn into ...
3386 (win32_process_target::remove_point): ... this.
3387 * win32-low.h (class win32_process_target): Update.
3389 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3391 Turn process_stratum_target's supports_z_point_type op into a
3392 method of process_target.
3394 * target.h (struct process_stratum_target): Remove the target op.
3395 (class process_target): Add the target op.
3396 * target.cc (process_target::supports_z_point_type): Define.
3398 Update the derived classes and callers below.
3400 * mem-break.cc (z_type_supported): Update.
3401 * linux-low.cc (linux_target_ops): Update.
3402 (linux_supports_z_point_type): Turn into ...
3403 (linux_process_target::supports_z_point_type): ... this.
3404 * linux-low.h (class linux_process_target): Update.
3405 * lynx-low.cc (lynx_target_ops): Update.
3406 * nto-low.cc (nto_target_ops): Update.
3407 (nto_supports_z_point_type): Turn into ...
3408 (nto_process_target::supports_z_point_type): ... this.
3409 * nto-low.h (class nto_process_target): Update.
3410 * win32-low.cc (win32_target_ops): Update.
3411 (win32_supports_z_point_type): Turn into ...
3412 (win32_process_target::supports_z_point_type): ... this.
3413 * win32-low.h (class win32_process_target): Update.
3415 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3417 Turn process_stratum_target's read_auxv op into a method of
3420 * target.h (class process_stratum_target): Remove the target op.
3421 (struct process_target): Add the target op. Also add
3422 'supports_read_auxv'.
3423 * target.cc (process_target::read_auxv): Define.
3424 (process_target::supports_read_auxv): Define.
3426 Update the derived classes and callers below.
3428 * server.cc (handle_qxfer_auxv): Update.
3429 (handle_query): Update.
3430 * linux-low.cc (linux_target_ops): Update.
3431 (linux_process_target::supports_read_auxv): Define.
3432 (linux_read_auxv): Turn into ...
3433 (linux_process_target::read_auxv): ... this.
3434 * linux-low.h (class linux_process_target): Update.
3435 * lynx-low.cc (lynx_target_ops): Update.
3436 * nto-low.cc (nto_target_ops): Update.
3437 (nto_process_target::supports_read_auxv): Define.
3438 (nto_read_auxv): Turn into ...
3439 (nto_process_target::read_auxv): ... this.
3440 * nto-low.h (class nto_process_target): Update.
3441 * win32-low.cc (win32_target_ops): Update.
3443 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3445 Turn process_stratum_target's request_interrupt op into a method of
3448 * target.h (struct process_stratum_target): Remove the target op.
3449 (class process_target): Add the target op.
3451 Update the derived classes and callers below.
3453 * remote-utils.cc (putpkt_binary_1): Update.
3454 (input_interrupt): Update.
3456 * server.cc (handle_v_requests): Update.
3457 * linux-low.cc (linux_target_ops): Update.
3458 (linux_request_interrupt): Turn into ...
3459 (linux_process_target::request_interrupt): ... this.
3460 * linux-low.h (class linux_process_target): Update.
3461 * lynx-low.cc (lynx_target_ops): Update.
3462 (lynx_request_interrupt): Turn into ...
3463 (lynx_process_target::request_interrupt): ... this.
3464 * lynx-low.h (class lynx_process_target): Update.
3465 * nto-low.cc (nto_target_ops): Update.
3466 (nto_request_interrupt): Turn into ...
3467 (nto_process_target::request_interrupt): ... this.
3468 * nto-low.h (class nto_process_target): Update.
3469 * win32-low.cc (win32_target_ops): Update.
3470 (win32_request_interrupt): Turn into ...
3471 (win32_process_target::request_interrupt): ... this.
3472 * win32-low.h (class win32_process_target): Update.
3474 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3476 Turn process_stratum_target's look_up_symbols op into a method of
3479 * target.h (struct process_stratum_target): Remove the target op.
3480 (class process_target): Add the target op.
3481 * target.cc (process_target::look_up_symbols): Define.
3483 Update the derived classes and callers below.
3485 * server.cc (handle_query): Update.
3486 * linux-low.cc (linux_target_ops): Update.
3487 (linux_look_up_symbols): Turn into ...
3488 (linux_process_target::look_up_symbols): ... this.
3489 * linux-low.h (class linux_process_target): Update.
3490 * lynx-low.cc (lynx_target_ops): Update.
3491 * nto-low.cc (nto_target_ops): Update.
3492 * win32-low.cc (win32_target_ops): Update.
3494 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3496 Turn process_stratum_target's read_memory and write_memory
3497 ops into methods of process_target.
3499 * target.h (struct process_stratum_target): Remove the target ops.
3500 (class process_target): Add the target ops.
3502 Update the derived classes and callers below.
3504 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
3505 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
3506 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
3507 (arm_get_syscall_trapinfo): Update.
3508 * linux-cris-low.cc (cris_breakpoint_at): Update.
3509 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
3510 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
3511 * linux-mips-low.cc (mips_breakpoint_at): Update.
3512 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
3513 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
3514 * linux-sh-low.cc (sh_breakpoint_at): Update.
3515 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
3516 (sparc_store_gregset_from_stack): Update.
3517 (sparc_breakpoint_at): Update.
3518 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
3519 * linux-tile-low.cc (tile_breakpoint_at): Update.
3520 * linux-x86-low.cc (x86_breakpoint_at): Update.
3521 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
3522 * mem-brea.cc (insert_memory_breakpoint): Update.
3523 (validate_inserted_breakpoint): Update.
3524 * target.cc (read_inferior_memory): Update.
3525 (target_write_memory): Update.
3526 * linux-low.cc (linux_target_ops): Update.
3527 (linux_read_memory): Make a wrapper around the read_memory target
3529 (linux_process_target::read_memory): Rename from linux_read_memory.
3530 (linux_write_memory): Turn into ...
3531 (linux_process_target::write_memory): ... this.
3532 * linux-low.h (class linux_process_target): Update.
3533 * lynx-low.cc (lynx_target_ops): Update.
3534 (lynx_read_memory): Turn into ...
3535 (lynx_process_target::read_memory): ... this.
3536 (lynx_write_memory): Turn into ...
3537 (lynx_process_target::write_memory): ... this.
3538 * lynx-low.h (class lynx_process_target): Update.
3539 * nto-low.cc (nto_target_ops): Update.
3540 (nto_read_memory): Turn into ...
3541 (nto_process_target::read_memory): ... this.
3542 (nto_write_memory): Turn into ...
3543 (nto_process_target::write_memory): ... this.
3544 * nto-low.h (class nto_process_target): Update.
3545 * win32-low.cc (win32_target_ops): Update.
3546 (win32_read_inferior_memory): Turn into ...
3547 (win32_process_target::read_memory): ... this.
3548 (win32_write_inferior_memory): Turn into ...
3549 (win32_process_target::write_memory): ... this.
3550 * win32-low.h (class win32_process_target): Update.
3552 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3554 Turn process_stratum_target's prepare_to_access_memory and
3555 done_accessing_memory ops into methods of process_target.
3557 * target.h (struct process_stratum_target): Remove the target ops.
3558 (class process_target): Add the target ops.
3559 * target.cc (process_target::prepare_to_access_memory): Define.
3560 (process_target::done_accessing_memory): Define.
3561 (prepare_to_access_memory): Update.
3562 (done_accessing_memory): Update.
3564 Update the derived classes and callers below.
3566 * linux-low.cc (linux_target_ops): Update.
3567 (linux_prepare_to_access_memory): Turn into ...
3568 (linux_process_target::prepare_to_access_memory): ... this.
3569 (linux_done_accessing_memory): Turn into ...
3570 (linux_process_target::done_accessing_memory): ... this.
3571 * linux-low.h (class linux_process_target): Update.
3572 * lynx-low.cc (lynx_target_ops): Update.
3573 * nto-low.cc (nto_target_ops): Update.
3574 * win32-low.cc (win32_target_ops): Update.
3576 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3578 Turn process_stratum_target's fetch_registers and store_registers
3579 ops into methods of process_target.
3581 * target.h (struct process_stratum_target): Remove the target ops.
3582 (class process_target): Add the target ops.
3583 (fetch_inferior_registers): Update the macro.
3584 (store_inferior_registers): Update the macro.
3586 Update the derived classes and callers below.
3588 * linux-low.cc (linux_target_ops): Update.
3589 (linux_fetch_registers): Turn into ...
3590 (linux_process_target::fetch_registers): ... this.
3591 (linux_store_registers): Turn into ...
3592 (linux_process_target::store_registers): ... this.
3593 * linux-low.h (class linux_process_target): Update.
3594 * lynx-low.cc (lynx_target_ops): Update.
3595 (lynx_fetch_registers): Turn into ...
3596 (lynx_process_target::fetch_registers): ... this.
3597 (lynx_store_registers): Turn into ...
3598 (lynx_process_target::store_registers): ... this.
3599 * lynx-low.h (class lynx_process_target): Update.
3600 * nto-low.cc (nto_target_ops): Update.
3601 (nto_fetch_registers): Turn into ...
3602 (nto_process_target::fetch_registers): ... this.
3603 (nto_store_registers): Turn into ...
3604 (nto_process_target::store_registers): ... this.
3605 * nto-low.h (class nto_process_target): Update.
3606 * win32-low.cc (win32_target_ops): Update.
3607 (win32_fetch_inferior_registers): Turn into ...
3608 (win32_process_target::fetch_registers): ... this.
3609 (win32_store_inferior_registers): Turn into ...
3610 (win32_process_target::store_registers): ... this.
3611 * win32-low.h (class win32_process_target): Update.
3613 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3615 Turn process_stratum_target's wait op into a method of
3618 * target.h (struct process_stratum_target): Remove the target op.
3619 (class process_target): Add the target op.
3621 Update the derived classes and callers below.
3623 * target.cc (target_wait): Update.
3624 * linux-low.cc (linux_target_ops): Update.
3625 (linux_wait): Turn into ...
3626 (linux_process_target::wait): ... this.
3627 * linux-low.h (class linux_process_target): Update.
3628 * lynx-low.cc (lynx_target_ops): Update.
3629 (lynx_wait): Turn into ...
3630 (lynx_process_target::wait): ... this.
3631 * lynx-low.h (class lynx_process_target): Update.
3632 * nto-low.cc (nto_target_ops): Update.
3633 (nto_wait): Turn into ...
3634 (nto_process_target::wait): ... this.
3635 * nto-low.h (class nto_process_target): Update.
3636 * win32-low.cc (win32_target_ops): Update.
3637 (win32_wait): Turn into ...
3638 (win32_process_target::wait): ... this.
3639 (do_initial_child_stuff): Update.
3640 * win32-low.h (class win32_process_target): Update.
3642 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3644 Turn process_stratum_target's resume op into a method of
3647 * target.h (struct process_stratum_target): Remove the target op.
3648 (class process_target): Add the target op.
3650 Update the derived classes and callers below.
3652 * server.cc (resume): Update.
3653 * target.cc (target_stop_and_wait): Update.
3654 (target_continue_no_signal): Update.
3655 (target_continue): Update.
3656 * linux-low.cc (linux_target_ops): Update.
3657 (linux_resume): Turn into ...
3658 (linux_process_target::resume): ... this.
3659 * linux-low.h (class linux_process_target): Update.
3660 * lynx-low.cc (lynx_target_ops): Update.
3661 (lynx_resume): Turn into ...
3662 (lynx_process_target::resume): ... this.
3663 * lynx-low.h (class lynx_process_target): Update.
3664 * nto-low.cc (nto_target_ops): Update.
3665 (nto_resume): Turn into ...
3666 (nto_process_target::resume): ... this.
3667 * nto-low.h (class nto_process_target): Update.
3668 * win32-low.cc (win32_target_ops): Update.
3669 (win32_resume): Turn into ...
3670 (win32_process_target::resume): ... this.
3671 (win32_process_target::detach): Update.
3672 (do_initial_child_stuff): Update.
3673 * win32-low.h (class win32_process_target): Update.
3675 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3677 Turn process_stratum_target's thread_alive op into a method of
3680 * target.h (struct process_stratum_target): Remove the target op.
3681 (class process_target): Add the target op.
3682 (mythread_alive): Update the macro.
3684 Update the derived classes and callers below.
3686 * linux-low.cc (linux_target_ops): Update.
3687 (linux_thread_alive): Turn into ...
3688 (linux_process_target::thread_alive): ... this.
3689 (wait_for_sigstop): Update.
3690 * linux-low.h (class linux_process_target): Update.
3691 * lynx-low.cc (lynx_target_ops): Update.
3692 (lynx_thread_alive): Turn into ...
3693 (lynx_process_target::thread_alive): ... this.
3694 * lynx-low.h (class lynx_process_target): Update.
3695 * nto-low.cc (nto_target_ops): Update.
3696 (nto_thread_alive): Turn into ...
3697 (nto_process_target::thread_alive): ... this.
3698 * nto-low.h (class nto_process_target): Update.
3699 * win32-low.cc (win32_target_ops): Update.
3700 (win32_thread_alive): Turn into ...
3701 (win32_process_target::thread_alive): ... this.
3702 * win32-low.h (class win32_process_target): Update.
3704 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3706 Turn process_stratum_target's join op into a method of
3709 * target.h (struct process_stratum_target): Remove the target op.
3710 (class process_target): Add the target op.
3711 (join_inferior): Update the macro.
3713 Update the derived classes and callers below.
3715 * linux-low.cc (linux_target_ops): Update.
3716 (linux_join): Turn into ...
3717 (linux_process_target::join): ... this.
3718 * linux-low.h (class linux_process_target): Update.
3719 * lynx-low.cc (lynx_target_ops): Update.
3720 (lynx_join): Turn into ...
3721 (lynx_process_target::join): ... this.
3722 * lynx-low.h (class lynx_process_target): Update.
3723 * nto-low.cc (nto_target_ops): Update.
3724 (nto_process_target::join): Define.
3725 * nto-low.h (class nto_process_target): Update.
3726 * win32-low.cc (win32_target_ops): Update.
3727 (win32_join): Turn into ...
3728 (win32_process_target::join): ... this.
3729 * win32-low.h (class win32_process_target): Update.
3731 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3733 Turn process_stratum_target's mourn op into a method of
3736 * target.h (struct process_stratum_target): Remove the target op.
3737 (class process_target): Add the target op.
3739 Update the derived classes and callers below.
3741 * target.cc (target_mourn_inferior): Update.
3742 * linux-low.cc (linux_target_ops): Update.
3743 (linux_mourn): Turn into ...
3744 (linux_process_target::mourn): ... this.
3745 (handle_extended_wait): Update.
3746 (linux_process_target::kill): Update.
3747 (linux_process_target::detach): Update.
3748 * linux-low.h (class linux_process_target): Update.
3749 * lynx-low.cc (lynx_target_ops): Update.
3750 (lynx_mourn): Turn into ...
3751 (lynx_process_target::mourn): ... this.
3752 * lynx-low.h (class lynx_process_target): Update.
3753 * nto-low.cc (nto_target_ops): Update.
3754 (nto_mourn): Turn into ...
3755 (nto_process_target::mourn): ... this.
3756 * nto-low.h (class nto_process_target): Update.
3757 * win32-low.cc (win32_target_ops): Update.
3758 (win32_mourn): Turn into ...
3759 (win32_process_target::mourn): ... this.
3760 * win32-low.h (class win32_process_target): Update.
3762 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3764 Turn process_stratum_target's detach op into a method of
3767 * target.h (struct process_stratum_target): Remove the target op.
3768 (class process_target): Add the target op.
3769 (detach_inferior): Update the macro.
3771 Update the derived classes and callers below.
3773 * linux-low.cc (linux_target_ops): Update.
3774 (linux_detach): Turn into ...
3775 (linux_process_target::detach): ... this.
3776 * linux-low.h (class linux_process_target): Update.
3777 * lynx-low.cc (lynx_target_ops): Update.
3778 (lynx_detach): Turn into ...
3779 (lynx_process_target::detach): ... this.
3780 * lynx-low.h (class lynx_process_target): Update.
3781 * nto-low.cc (nto_target_ops): Update.
3782 (nto_detach): Turn into ...
3783 (nto_process_target::detach): ... this.
3784 * nto-low.h (class nto_process_target): Update.
3785 * win32-low.cc (win32_target_ops): Update.
3786 (win32_detach): Turn into ...
3787 (win32_process_target::detach): ... this.
3788 * win32-low.h (class win32_process_target): Update.
3790 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3792 Turn process_stratum_target's kill op into a method of
3795 * target.h (struct process_stratum_target): Remove the target op.
3796 (class process_target): Add the target op.
3798 Update the derived classes and callers below.
3800 * target.cc (kill_inferior): Update.
3801 * linux-low.cc (linux_target_ops): Update.
3802 (linux_kill): Turn into ...
3803 (linux_process_target::kill): ... this.
3804 * linux-low.h (class linux_process_target): Update.
3805 * lynx-low.cc (lynx_target_ops): Update.
3806 (lynx_kill): Turn into ...
3807 (lynx_process_target::kill): ... this.
3808 * lynx-low.h (class lynx_process_target): Update.
3809 * nto-low.cc (nto_target_ops): Update.
3810 (nto_kill): Turn into ...
3811 (nto_process_target::kill): ... this.
3812 * nto-low.h (class nto_process_target): Update.
3813 * win32-low.cc (win32_target_ops): Update.
3814 (win32_kill): Turn into ...
3815 (win32_process_target::kill): ... this.
3816 * win32-low.h (class win32_process_target): Update.
3818 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3820 Turn process_stratum_target's attach op into a method of
3823 * target.h (struct process_stratum_target): Remove the target op.
3824 (class process_target): Add the target op.
3825 (myattach): Update the macro.
3827 Update the derived classes and callers below.
3829 * linux-low.cc (linux_target_ops): Update.
3830 (linux_attach): Turn into ...
3831 (linux_process_target::attach): ... this.
3832 * linux-low.h (class linux_process_target): Update.
3833 * lynx-low.cc (lynx_target_ops): Update.
3834 (lynx_attach): Turn into ...
3835 (lynx_process_target::attach): ... this.
3836 * lynx-low.h (class lynx_process_target): Update.
3837 * nto-low.cc (nto_target_ops): Update.
3838 (nto_attach): Turn into ...
3839 (nto_process_target::attach): ... this.
3840 * nto-low.h (class nto_process_target): Update.
3841 * win32-low.cc (win32_target_ops): Update.
3842 (win32_attach): Turn into ...
3843 (win32_process_target::attach): ... this.
3844 * win32-low.h (class win32_process_target): Update.
3846 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3848 Turn process_stratum_target's post_create_inferior op into a method
3851 * target.h (struct process_stratum_target): Remove the target op.
3852 (class process_target): Add the target op.
3853 (target_post_create_inferior): Update the macro.
3854 * target.cc (process_target::post_create_inferior): Define.
3856 Update the derived classes and callers below.
3858 * linux-low.cc (linux_target_ops): Update.
3859 (linux_post_create_inferior): Turn into ...
3860 (linux_process_target::post_create_inferior): ... this.
3861 * linux-low.h (class linux_process_target): Update.
3862 * lynx-low.cc (lynx_target_ops): Update.
3863 * nto-low.cc (nto_target_ops): Update.
3864 * win32-low.cc (win32_target_ops): Update.
3866 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3868 Turn process_stratum_target's create_inferior op into a method of
3871 * target.h (struct process_stratum_target): Remove the target op.
3872 (class process_target): Add the target op.
3873 (create_inferior): Rename the macro to ...
3874 (target_create_inferior): ... this.
3876 Update the derived classes and callers below.
3878 * server.cc (handle_v_run): Update.
3879 (captured_main): Update.
3880 (process_serial_event): Update.
3881 * linux-low.cc (linux_target_ops): Update.
3882 (linux_create_inferior): Turn into ...
3883 (linux_process_target::create_inferior): ... this.
3884 * linux-low.h (class linux_process_target): Update.
3885 * lynx-low.cc (lynx_target_ops): Update.
3886 (lynx_create_inferior): Turn into ...
3887 (lynx_process_target::create_inferior): ... this.
3888 * lynx-low.h (class lynx_process_target): Update.
3889 * nto-low.cc (nto_target_ops): Update.
3890 (nto_create_inferior): Turn into ...
3891 (nto_process_target::create_inferior): ... this.
3892 * nto-low.h (class nto_process_target): Update.
3893 * win32-low.cc (win32_target_ops): Update.
3894 (win32_create_inferior): Turn into ...
3895 (win32_process_target::create_inferior): ... this.
3896 * win32-low.h (class win32_process_target): Update.
3898 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3900 * target.h (class process_target): New class definition.
3901 (struct process_stratum_target) <pt>: New field with type
3903 * linux-low.h (class linux_process_target): Define as a derived
3904 class of 'process_target'.
3905 * linux-low.cc (linux_target_ops): Add a linux_process_target*
3907 * lynx-low.h (class lynx_process_target): Define as a derived
3908 class of 'process_target'.
3909 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
3911 * nto-low.h (class nto_process_target): Define as a derived
3912 class of 'process_target'.
3913 * nto-low.cc (nto_target_ops): Add an nto_process_target*
3915 * win32-low.h (class win32_process_target): Define as a derived
3916 class of 'process_target'.
3917 * win32-low.cc (win32_target_ops): Add a win32_process_target*
3920 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
3922 * configure: Regenerate.
3924 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
3925 Andrew Burgess <andrew.burgess@embecosm.com>
3927 * linux-riscv-low.cc: New file.
3928 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
3929 and nat/riscv-linux-tdesc.c.
3930 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
3931 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
3934 2020-02-14 Tom Tromey <tom@tromey.com>
3936 * acinclude.m4: Don't include acx_configure_dir.m4.
3937 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
3938 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
3939 (all, install-only, uninstall, clean-info, clean)
3940 (maintainer-clean): Don't recurse.
3941 (subdir_do, all-lib): Remove.
3942 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
3944 (generated_files): Update.
3945 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
3946 * configure: Rebuild.
3947 * configure.ac: Don't configure gnulib or libiberty.
3950 2020-02-14 Eli Zaretskii <eliz@gnu.org>
3952 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
3953 preparing the command line for CreateProcess.
3954 (win32_create_inferior): Reflect the program name in debugging
3955 output that shows the process and its command line.
3957 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
3959 * Makefile.in: Rename source files from .c to .cc.
3960 * %.c: Rename to %.cc.
3961 * configure.ac: Rename server.c to server.cc.
3962 * configure: Re-generate.
3964 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
3966 * Makefile.in: Rename gdbsupport source files from .c to .cc.
3968 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
3970 * win32-low.c (win32_create_inferior): Set signal_pid.
3972 2020-02-12 Maciej W. Rozycki <macro@wdc.com>
3973 Pedro Alves <palves@redhat.com>
3975 Skip building gdbserver in a cross-configuration.
3976 * configure.srv: Set $gdbserver_host depending on whether $target
3977 is $host. Use $gdbserver_host instead of $host.
3979 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
3981 * configure: Re-generate.
3983 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
3985 * configure: Re-generate.
3987 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
3989 * acinclude.m4: Update warning.m4 path.
3991 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
3993 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
3994 (handle_exception): Set siginfo_er.
3995 (win32_xfer_siginfo): New function.
3997 2020-02-07 Tom Tromey <tom@tromey.com>
3998 Pedro Alves <palves@redhat.com>
4000 * README: Update build documentation.
4001 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
4003 * configure.ac: Update paths.
4004 * configure: Rebuild.
4005 * acinclude.m4: Update paths.
4006 * Makefile.in: Update include paths.
4007 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
4008 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
4009 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
4010 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
4011 (%-generated.c): Update paths.
4012 * Move entire directory from ../gdb/gdbserver.
4014 2020-01-29 Maciej W. Rozycki <macro@wdc.com>
4016 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
4018 2020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4020 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
4021 assignment instead of srv_linux_obj.
4023 2020-01-28 Hannes Domani <ssbssa@yahoo.de>
4025 * server.c (handle_qxfer_libraries): Write segment-address with
4028 2020-01-24 Hannes Domani <ssbssa@yahoo.de>
4030 * Makefile.in (install-strip): New target.
4031 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
4032 * aclocal.m4: Regenerate.
4033 * configure: Regenerate.
4034 * configure.ac: Add AM_PROG_INSTALL_STRIP.
4036 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
4038 * Makefile.in (SFILES): Adjust paths to point to real files.
4039 (OBS): Move waitstatus.o to target/waitstatus.o.
4040 (TAGS): Transform paths appropriately.
4042 (nat/%.o): ... this pattern rule.
4044 (target/%.o): ... this pattern rule.
4045 * configure.srv: Adjust paths throughout to include nat/ prefix
4046 with the revant files.
4047 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
4048 * configure: Regenerate.
4050 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
4052 * Makefile.in (TAGS): Remove config files from the recipe.
4054 2020-01-14 Tom Tromey <tom@tromey.com>
4056 * configure: Rebuild.
4057 * configure.ac: Remove any checks that were added to common.m4.
4058 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
4061 2020-01-14 Tom Tromey <tom@tromey.com>
4063 * server.h: Include config.h.
4064 * gdbreplay.c: Include config.h.
4065 * configure: Rebuild.
4066 * configure.ac: Don't source common.host.
4067 * acinclude.m4: Update path.
4068 * Makefile.in (INCSUPPORT): New variable.
4069 (INCLUDE_CFLAGS): Add INCSUPPORT.
4070 (SFILES): Update paths.
4071 (version-generated.c): Update path to create-version.sh.
4072 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
4074 2020-01-14 Tom Tromey <tom@tromey.com>
4076 * configure.ac (LIBS): Use WIN32APILIBS.
4077 (USE_WIN32API): Don't define.
4078 * configure: Rebuild.
4080 2020-01-14 Tom Tromey <tom@tromey.com>
4082 * configure: Rebuild.
4084 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4086 * Makefile.in (%-generated.c): Remove rule for files from
4089 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4091 * configure: Re-generate.
4093 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4095 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
4097 * tracepoint.c (stop_tracing, flush_trace_buffer,
4098 about_to_request_buffer_space, get_trace_state_variable_value,
4099 set_trace_state_variable_value, gdb_collect): Add declaration.
4101 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4103 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
4104 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
4105 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
4106 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
4107 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
4110 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4112 * inferiors.c: Include gdbsupport/common-inferior.h.
4114 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4116 * hostio-errno.c: Include hostio.h.
4118 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4120 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
4123 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4125 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
4126 * linux-arm-tdesc.h: Include arch/arm.h.
4128 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4130 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
4132 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4134 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
4135 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
4137 2020-01-10 Pedro Alves <palves@redhat.com>
4139 * fork-child.c (post_fork_inferior): Pass target down to
4141 * inferiors.c (switch_to_thread): Add process_stratum_target
4143 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
4144 * nto-low.c (nto_target_ops): Now a process_stratum_target.
4145 * linux-low.c (linux_target_ops): Now a process_stratum_target.
4146 * remote-utils.c (prepare_resume_reply): Pass the target to
4148 * target.c (the_target): Now a process_stratum_target.
4149 (done_accessing_memory): Pass the target to switch_to_thread.
4150 (set_target_ops): Ajust to use process_stratum_target.
4151 * target.h (struct target_ops): Rename to ...
4152 (struct process_stratum_target): ... this.
4153 (the_target, set_target_ops): Adjust.
4154 (prepare_to_access_memory): Adjust comment.
4155 * win32-low.c (child_xfer_memory): Adjust to use
4156 process_stratum_target.
4157 (win32_target_ops): Now a process_stratum_target.
4159 2020-01-06 Eli Zaretskii <eliz@gnu.org>
4160 Pedro Alves <palves@redhat.com>
4162 * win32-low.c (get_child_debug_event): Extract the fatal exception
4163 from the exit status and convert to the equivalent Posix signal
4165 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
4166 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
4168 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
4170 * Makefile.in: Use INSTALL_PROGRAM_ENV.
4172 2020-01-01 Joel Brobecker <brobecker@adacore.com>
4174 * server.c (gdbserver_version): Change copyright year to 2020.
4175 * gdbreplay.c (gdbreplay_version): Likewise.
4177 2019-12-19 Christian Biesinger <cbiesinger@google.com>
4179 * configure: Regenerate.
4180 * configure.ac: Quote variable arguments of test.
4182 2019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
4184 * Makefile.in: Fix build with GNU Make 3.81
4186 2019-12-16 Tom Tromey <tromey@adacore.com>
4188 * server.c (get_exec_file): Constify result.
4190 2019-12-10 Christian Biesinger <cbiesinger@google.com>
4192 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
4193 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
4194 * config.in: Regenerate.
4195 * configure: Regenerate.
4196 * configure.ac: Don't check for strerror.
4197 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
4198 Call safe_strerror instead of strerror.
4199 * server.h (strerror): Remove this now-unnecessary declaration.
4200 * tracepoint.c (init_named_socket): Call safe_strerror instead of
4202 (gdb_agent_helper_thread): Likewise.
4203 * utils.c (perror_with_name): Likewise.
4205 2019-11-26 Tom Tromey <tom@tromey.com>
4207 * configure, config.in: Rebuild.
4209 2019-11-26 Tom Tromey <tom@tromey.com>
4211 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
4212 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
4214 * configure, config.in: Rebuild.
4216 2019-11-26 Tom Tromey <tom@tromey.com>
4218 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
4219 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
4220 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
4221 * acinclude.m4: Include ax_pthread.m4.
4222 * config.in, configure: Rebuild.
4224 2019-11-26 Christian Biesinger <cbiesinger@google.com>
4226 * debug.c (debug_set_output): Call safe_strerror instead of
4228 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
4229 (linux_kill_one_lwp): Likewise.
4230 (linux_detach_one_lwp): Likewise.
4231 (linux_wait_for_event_filtered): Likewise.
4232 (store_register): Likewise.
4233 * lynx-low.c (lynx_attach): Likewise.
4234 * mem-break.c (insert_memory_breakpoint): Likewise.
4235 (remove_memory_breakpoint): Likewise.
4236 (delete_fast_tracepoint_jump): Likewise.
4237 (set_fast_tracepoint_jump): Likewise.
4238 (uninsert_fast_tracepoint_jumps_at): Likewise.
4239 (reinsert_fast_tracepoint_jumps_at): Likewise.
4240 * nto-low.c (nto_xfer_memory): Likewise.
4241 (nto_resume): Likewise.
4243 2019-11-20 Luis Machado <luis.machado@linaro.org>
4245 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
4246 instead of register count.
4247 * tdesc.c (tdesc_contains_feature): New function.
4248 * tdesc.h (tdesc_contains_feature): New prototype.
4250 2019-11-15 Christian Biesinger <cbiesinger@google.com>
4252 * Makefile.in: Add safe-strerror.c.
4253 * configure: Regenerate.
4254 * configure.ac: Don't source common.host.
4256 2019-11-15 Christian Biesinger <cbiesinger@google.com>
4258 * config.in: Regenerate.
4259 * configure: Regenerate.
4261 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
4263 * ax.c (ax_printf): Handle size_t_arg.
4265 2019-11-06 Christian Biesinger <cbiesinger@google.com>
4267 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
4268 * mi/mi-main.c (output_cores): Likewise.
4269 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
4270 (linux_xfer_osdata_modules): Likewise.
4271 * remote.c (register_remote_support_xml): Likewise.
4272 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
4273 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
4275 2019-11-01 Christian Biesinger <cbiesinger@google.com>
4277 * configure: Regenerate.
4278 * configure.ac: Remove check for strerror_r.
4280 2019-10-31 Christian Biesinger <cbiesinger@google.com>
4282 * config.in: Regenerate.
4283 * configure: Regenerate.
4284 * configure.ac: Also check for strerror_r.
4286 2019-10-31 Christian Biesinger <cbiesinger@google.com>
4288 * ax.h (debug_agent): Remove duplicate declaration.
4290 2019-10-26 Tom de Vries <tdevries@suse.de>
4292 * linux-aarch64-low.c: Fix typos in comments.
4293 * linux-arm-low.c: Same.
4294 * linux-low.c: Same.
4295 * linux-ppc-low.c: Same.
4296 * proc-service.c: Same.
4299 * tracepoint.c: Same.
4300 * win32-low.c: Same.
4302 2019-10-25 Tom Tromey <tromey@adacore.com>
4304 * utils.c (xstrdup): Remove.
4306 2019-10-23 Tom Tromey <tom@tromey.com>
4308 * configure, config.in: Rebuild.
4310 2019-10-23 Tom Tromey <tom@tromey.com>
4312 * configure: Rebuild.
4313 * acinclude.m4: Use m4_include, not sinclude.
4315 2019-10-17 Tom Tromey <tromey@adacore.com>
4317 * configure: Rebuild.
4318 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
4319 in AC_CONFIG_FILES invocation.
4320 * Makefile.in (stamp-h, Makefile): Use new-style config.status
4323 2019-10-16 Christian Biesinger <cbiesinger@google.com>
4325 * server.c: Include xml-builtin.h.
4326 (get_xml_features): Don't declare xml_builtins here.
4328 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4330 * Makefile.in: Remove references to vec-ipa.o.
4332 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4334 * Makefile.in: Remove references to vec.c.
4336 2019-10-02 Christian Biesinger <cbiesinger@google.com>
4338 * server.c (server_waiting): Change to bool.
4339 (extended_protocol): Likewise.
4340 (response_needed): Likewise.
4341 (exit_requested): Likewise.
4342 (run_once): Likewise.
4343 (report_no_resumed): Likewise.
4344 (non_stop): Likewise.
4345 (disable_packet_vCont): Likewise.
4346 (disable_packet_Tthread): Likewise.
4347 (disable_packet_qC): Likewise.
4348 (disable_packet_qfThreadInfo): Likewise.
4349 (handle_general_set): Update.
4350 (handle_detach): Update.
4351 (handle_monitor_command): Update.
4352 (handle_query): Update.
4353 (captured_main): Update.
4354 (process_serial_event): Update.
4355 * server.h (server_waiting): Change to bool.
4356 (disable_packet_vCont): Likewise.
4357 (disable_packet_Tthread): Likewise.
4358 (disable_packet_qC): Likewise.
4359 (disable_packet_qfThreadInfo): Likewise.
4360 (run_once): Likewise.
4361 (non_stop): Likewise.
4362 * target.c (target_stop_and_wait): Update.
4364 2019-10-02 Tom Tromey <tromey@adacore.com>
4366 * Makefile.in (SFILES): Add common-inferior.c.
4367 (OBS): Add common-inferior.o.
4368 * server.c (startup_with_shell): Don't define.
4370 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
4372 * linux-low.c (linux_low_read_btrace): Update for change to
4375 2019-09-20 Christian Biesinger <cbiesinger@google.com>
4377 * debug.c (debug_threads): Remove comment in favor of the header.
4378 * debug.h (using_threads): Add declaration.
4379 (debug_threads): Add comment.
4380 * linux-aarch64-low.c: Include debug.h and remove declaration of
4382 * nto-low.c: Likewise.
4383 * remote-utils.c: Likewise.
4384 * thread-db.c: Likewise.
4386 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
4388 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
4389 and powerpc-cell64l-ipa.o.
4390 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
4391 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
4392 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
4395 * spu-low.c: Remove file.
4397 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
4398 (parse_spufs_run): Remove.
4399 (ppc_get_pc): Remove Cell/B.E. support.
4400 (ppc_set_pc): Likewise.
4401 (ppc_breakpoint_at): Likewise.
4402 (ppc_arch_setup): Likewise.
4403 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
4404 tdesc_powerpc_cell32l.
4405 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
4406 or init_registers_powerpc_cell32l.
4407 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
4408 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
4409 or init_registers_powerpc_cell32l.
4410 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
4411 (init_registers_powerpc_cell32l): Remove prototype.
4412 (init_registers_powerpc_cell64l): Likewise.
4414 * target.h (struct target_ops): Remove qxfer_spu member.
4415 * server.c (handle_qxfer_spu): Remove.
4416 (qxfer_packets): Remove entry for "spu".
4417 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
4418 * linux-low.c (SPUFS_MAGIC): Remove.
4419 (spu_enumerate_spu_ids): Remove.
4420 (linux_qxfer_spu): Remove.
4421 (linux_target_ops): Remove qxfer_spu member.
4422 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
4423 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
4424 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
4426 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4428 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
4429 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
4430 * config.in: Regenerate.
4431 * configure: Regenerate.
4433 2019-08-15 Tom Tromey <tromey@adacore.com>
4435 * target.c (target_write_memory): Use gdb::byte_vector.
4437 2019-08-15 Tom Tromey <tromey@adacore.com>
4439 * tracepoint.c (write_inferior_data_pointer)
4440 (write_inferior_integer, write_inferior_int8)
4441 (write_inferior_uinteger, m_tracepoint_action_download)
4442 (r_tracepoint_action_download, x_tracepoint_action_download)
4443 (l_tracepoint_action_download, clear_inferior_trace_buffer)
4444 (download_agent_expr, download_tracepoint_1)
4445 (download_trace_state_variables, upload_fast_traceframes): Update.
4446 * server.c (gdb_write_memory): Update.
4447 * remote-utils.c (relocate_instruction): Update.
4448 * proc-service.c (ps_pdwrite): Update.
4449 * mem-break.c (remove_memory_breakpoint)
4450 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
4451 (uninsert_fast_tracepoint_jumps_at)
4452 (reinsert_fast_tracepoint_jumps_at): Update.
4453 * linux-x86-low.c (append_insns)
4454 (i386_install_fast_tracepoint_jump_pad)
4455 (amd64_write_goto_address, i386_write_goto_address): Update.
4456 * linux-s390-low.c (append_insns, s390_write_goto_address):
4458 * linux-ppc-low.c (ppc_relocate_instruction)
4459 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
4460 (ppc_write_goto_address): Update.
4461 * linux-aarch64-low.c (append_insns): Update.
4462 * target.h (struct target_ops): Update.
4463 (write_inferior_memory): Don't declare.
4464 * target.c (target_write_memory): Rename from
4465 write_inferior_memory. Remove old target_write_memory.
4467 2019-08-15 Tom Tromey <tromey@adacore.com>
4469 * target.c (write_inferior_memory): Use std::vector.
4471 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
4474 * configure.ac: Drop enable-libmcheck support.
4475 * configure, config.in: Rebuild.
4476 * acinclude.m4: Don't include it.
4478 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4480 * configure.srv: Remove Arm xml files.
4482 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4484 * configure.srv: Add new files. Remove xml generated files.
4485 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
4487 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
4488 * linux-aarch32-tdesc.c: New file.
4489 * linux-aarch32-tdesc.h: New file.
4490 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
4491 * linux-arm-low.c (init_registers_arm, tdesc_arm)
4492 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
4493 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
4494 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
4495 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
4496 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
4497 (arm_read_description): Call arm_linux_read_description.
4498 (initialize_low_arch): Don't init registers.
4499 * linux-arm-tdesc.c: New file.
4500 * linux-arm-tdesc.h: New file.
4502 2019-07-10 Alan Hayward <alan.hayward@arm.com>
4504 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
4505 Move counter inside for.
4506 (arm_read_description): Check ptrace earlier.
4507 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
4509 2019-07-09 Tom Tromey <tom@tromey.com>
4511 * configure: Rebuild.
4512 * configure.ac: Change common to gdbsupport.
4513 * acinclude.m4: Change common to gdbsupport.
4514 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
4515 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
4516 common to gdbsupport.
4517 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
4518 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
4519 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
4520 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
4521 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
4522 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
4523 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
4524 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
4525 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
4526 common to gdbsupport.
4528 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4530 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
4532 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
4534 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4536 * configure.srv: Remove legacy xml.
4537 * linux-aarch64-low.c (initialize_low_arch): Remove
4538 initialize_low_tdesc call.
4539 * linux-aarch64-tdesc-selftest.c: Remove file.
4540 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
4541 * linux-x86-low.c (initialize_low_arch): Remove
4542 initialize_low_tdesc call.
4543 * linux-x86-tdesc-selftest.c: Remove file.
4544 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
4546 2019-06-20 Tom de Vries <tdevries@suse.de>
4548 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
4549 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
4551 2019-06-19 Tom de Vries <tdevries@suse.de>
4553 * debug.h (debug_write): Change return type to ssize_t.
4554 * debug.c (debug_write): Same.
4556 2019-06-14 Tom Tromey <tom@tromey.com>
4558 * configure.ac: Use new path to gnulib.
4559 * configure: Rebuild.
4560 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
4563 2019-06-11 Tom Tromey <tom@tromey.com>
4565 * Makefile.in (SFILES): Add alloc.c.
4567 (IPA_OBJS): Add alloc-ipa.o.
4568 (alloc-ipa.o): New target.
4569 (%.o: ../%.c): New pattern rule.
4571 2019-06-10 Tom Tromey <tromey@adacore.com>
4573 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
4574 end warning with a newline.
4575 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
4577 * thread-db.c (attach_thread): Don't end warning with a newline.
4578 (thread_db_notice_clone): Likewise.
4579 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
4581 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
4582 end warning with a newline.
4584 2019-06-04 Pedro Alves <palves@redhat.com>
4586 * server.c (captured_main): Use make_unique_xstrdup.
4588 2019-06-02 Tom Tromey <tom@tromey.com>
4590 * gdbreplay.c (fromhex): Remove.
4591 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
4593 2019-05-29 Tom Tromey <tromey@adacore.com>
4595 * configure: Rebuild.
4597 2019-05-06 Kevin Buettner <kevinb@redhat.com>
4599 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
4600 sign extension code on 32-bit builds.
4602 2019-05-03 Eli Zaretskii <eliz@gnu.org>
4605 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
4607 2019-04-19 Tom Tromey <tom@tromey.com>
4609 * server.c (struct vstop_notif): Derive from notif_event.
4611 (queue_stop_reply): Update.
4612 (remove_all_on_match_ptid): Change type. Rewrite.
4613 (discard_queued_stop_replies): Rewrite.
4614 (in_queued_stop_replies_ptid): Change type.
4615 (in_queued_stop_replies): Rewrite.
4616 (notif_stop): Update.
4617 (queue_stop_reply_callback): Update.
4618 (captured_main): Don't call initialize_notif.
4619 (push_stop_notification): Update.
4620 * notif.c (notif_write_event, handle_notif_ack)
4621 (notif_event_enque, notif_push): Update.
4622 (notif_event_xfree, initialize_notif): Remove.
4623 * notif.h (struct notif_event): Include <list>, not
4625 (struct notif_server) <queue>: Now a std::list.
4626 (notif_event_p): Remove typedef.
4627 (initialize_notif): Don't declare.
4628 (struct notif_event): Add virtual destructor.
4630 2019-04-17 Alan Hayward <alan.hayward@arm.com>
4632 * ax.c (ax_vdebug): Call debug_printf.
4633 * debug.c (debug_write): New function.
4634 * debug.h (debug_write): New declaration.
4635 * linux-low.c (sigchld_handler): Call debug_write.
4637 2019-04-17 Alan Hayward <alan.hayward@arm.com>
4639 * debug.c (debug_set_output): New function.
4640 (debug_vprintf): Send output to debug_file.
4641 (debug_flush): Likewise.
4642 * debug.h (debug_set_output): New declaration.
4643 * server.c (handle_monitor_command): Add debug-file option.
4644 (captured_main): Likewise.
4646 2019-04-17 Alan Hayward <alan.hayward@arm.com>
4648 * debug.c (remote_debug): Add definition.
4649 * debug.h (remote_debug): Add declaration.
4650 * hostio.c (remote_debug): Remove declaration.
4651 * remote-utils.c (struct ui_file): Likewise.
4652 (remote_debug): Likewise.
4653 * remote-utils.h (remote_debug): Likewise,
4654 * server.c (remote_debug): Remove definition.
4656 2019-04-10 Kevin Buettner <kevinb@redhat.com>
4658 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
4659 when using a 64-bit gdbserver.
4661 2019-04-09 Tom Tromey <tromey@adacore.com>
4663 * linux-low.c (select_event_lwp): Use find_thread_in_random.
4665 2019-04-08 Tom Tromey <tom@tromey.com>
4667 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
4669 (linux_resume_one_lwp): Likewise.
4671 2019-04-08 Tom Tromey <tom@tromey.com>
4673 * gdbreplay.c: Update.
4674 * linux-low.c: Update.
4677 2019-04-08 Tom Tromey <tom@tromey.com>
4679 * server.c: Use C++ exception handling.
4680 * linux-low.c: Use C++ exception handling.
4681 * gdbreplay.c: Use C++ exception handling.
4683 2019-04-08 Tom Tromey <tom@tromey.com>
4685 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
4686 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
4687 (captured_main, main): Update.
4688 * gdbreplay.c (main): Update.
4690 2019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4692 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
4693 value in argument pointer, return 1 if the entry is found and 0
4694 otherwise. Move comment.
4695 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
4696 * linux-low.h (linux_get_auxv): Declare.
4697 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
4699 2019-04-05 Tom Tromey <tromey@adacore.com>
4701 * server.c (gdbserver_usage): Use upper-case for metasyntactic
4704 2019-03-28 Alan Hayward <alan.hayward@arm.com>
4706 * linux-low.c (AT_HWCAP2): Add define if not already included.
4708 2019-03-26 Alan Hayward <alan.hayward@arm.com>
4710 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
4711 (aarch64_arch_setup): Call linux_get_hwcap.
4712 * linux-arm-low.c (arm_get_hwcap): Remove function.
4713 (arm_read_description): Call linux_get_hwcap.
4714 * linux-low.c (linux_get_auxv): New function.
4715 (linux_get_hwcap): Likewise.
4716 (linux_get_hwcap2): Likewise.
4717 * linux-low.h (linux_get_hwcap): New declaration.
4718 (linux_get_hwcap2): Likewise.
4719 * linux-ppc-low.c (ppc_get_auxv): Remove function.
4720 (ppc_arch_setup): Call linux_get_hwcap.
4721 * linux-s390-low.c (s390_get_hwcap): Remove function.
4722 (s390_arch_setup): Call linux_get_hwcap.
4724 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4725 Jiong Wang <jiong.wang@arm.com>
4727 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
4728 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
4730 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
4732 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4733 Jiong Wang <jiong.wang@arm.com>
4735 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
4736 (aarch64_get_hwcap): New function.
4737 (aarch64_arch_setup): Read APIA hwcap.
4739 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4740 Jiong Wang <jiong.wang@arm.com>
4742 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
4743 (initialize_low_tracepoint): Likewise.
4744 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
4745 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
4746 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
4747 (aarch64_linux_read_description): Likewise.
4748 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
4750 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4752 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
4753 i386_create_target_description for 'segments' parameter.
4754 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
4755 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
4756 * win32-i386-low.c (i386_arch_setup): Likewise.
4758 2019-03-12 Tom Tromey <tromey@adacore.com>
4760 * linux-low.c (iterate_over_lwps): Update.
4762 2019-03-06 Tom Tromey <tom@tromey.com>
4764 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
4765 (captured_main): Use SCOPE_EXIT.
4767 2019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
4769 * configure.srv: Use '$enable_unittest' instead of '$development'
4770 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
4773 2019-02-27 Tom Tromey <tromey@adacore.com>
4775 * gdbreplay.c (logchar): Handle \r\n.
4777 2019-02-07 Alan Hayward <alan.hayward@arm.com>
4779 * linux-low.c (linux_attach): Add process before lwp.
4780 * server.c (attach_inferior): Check if already attached.
4782 2019-02-07 Tom Tromey <tom@tromey.com>
4784 * x86-tdesc.h: Rename include guard.
4785 * x86-low.h: Add include guard.
4786 * wincecompat.h: Rename include guard.
4787 * win32-low.h: Add include guard.
4788 * utils.h: Rename include guard.
4789 * tracepoint.h: Rename include guard.
4790 * tdesc.h: Rename include guard.
4791 * target.h: Rename include guard.
4792 * server.h: Rename include guard.
4793 * remote-utils.h: Rename include guard.
4794 * regcache.h: Rename include guard.
4795 * nto-low.h: Rename include guard.
4796 * notif.h: Add include guard.
4797 * mem-break.h: Rename include guard.
4798 * lynx-low.h: Add include guard.
4799 * linux-x86-tdesc.h: Add include guard.
4800 * linux-s390-tdesc.h: Add include guard.
4801 * linux-ppc-tdesc-init.h: Add include guard.
4802 * linux-low.h: Add include guard.
4803 * linux-aarch64-tdesc.h: Add include guard.
4804 * linux-aarch32-low.h: Add include guard.
4805 * inferiors.h: Rename include guard.
4806 * i387-fp.h: Rename include guard.
4807 * hostio.h: Rename include guard.
4808 * gdbthread.h: Rename include guard.
4809 * gdb_proc_service.h: Rename include guard.
4810 * event-loop.h: Rename include guard.
4811 * dll.h: Rename include guard.
4812 * debug.h: Rename include guard.
4813 * ax.h: Rename include guard.
4815 2018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
4818 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
4819 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
4821 2019-01-25 Tom Tromey <tom@tromey.com>
4823 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
4825 2019-01-25 Tom Tromey <tom@tromey.com>
4827 * win32-low.c: Fix common/ includes.
4828 * win32-i386-low.c: Fix common/ includes.
4829 * tracepoint.c: Fix common/ includes.
4830 * thread-db.c: Fix common/ includes.
4831 * target.h: Fix common/ includes.
4832 * symbol.c: Fix common/ includes.
4833 * spu-low.c: Fix common/ includes.
4834 * server.h: Fix common/ includes.
4835 * server.c: Fix common/ includes.
4836 * remote-utils.c: Fix common/ includes.
4837 * regcache.h: Fix common/ includes.
4838 * regcache.c: Fix common/ includes.
4839 * nto-x86-low.c: Fix common/ includes.
4840 * notif.h: Fix common/ includes.
4841 * mem-break.h: Fix common/ includes.
4842 * lynx-low.c: Fix common/ includes.
4843 * lynx-i386-low.c: Fix common/ includes.
4844 * linux-x86-tdesc-selftest.c: Fix common/ includes.
4845 * linux-x86-low.c: Fix common/ includes.
4846 * linux-low.c: Fix common/ includes.
4847 * inferiors.h: Fix common/ includes.
4848 * i387-fp.c: Fix common/ includes.
4849 * hostio.c: Fix common/ includes.
4850 * hostio-errno.c: Fix common/ includes.
4851 * gdbthread.h: Fix common/ includes.
4852 * gdbreplay.c: Fix common/ includes.
4853 * fork-child.c: Fix common/ includes.
4854 * event-loop.c: Fix common/ includes.
4856 (enum gdb_agent_op): Fix common/ includes.
4858 2019-01-21 Tom Tromey <tom@tromey.com>
4860 * tracepoint.c: Fix includes.
4861 * remote-utils.c: Fix includes.
4862 * linux-x86-low.c: Fix includes.
4864 2019-01-01 Joel Brobecker <brobecker@adacore.com>
4866 * gdbreplay.c (gdbreplay_version): Update copyright year in
4868 * server.c (gdbserver_version): Likewise.
4870 2018-12-05 Alan Hayward <alan.hayward@arm.com>
4872 * linux-low.c (add_lwp): Switch ordering.
4874 2018-11-29 Tom Tromey <tom@tromey.com>
4876 * win32-low.c (win32_join): Take pid, not process.
4877 * target.h (struct target_ops) <join>: Change argument type.
4878 (join_inferior): Change argument name.
4879 * spu-low.c (spu_join): Take pid, not process.
4880 * server.c (handle_detach): Preserve pid before destroying
4882 * lynx-low.c (lynx_join): Take pid, not process.
4883 * linux-low.c (linux_join): Take pid, not process.
4885 2018-11-23 Alan Hayward <alan.hayward@arm.com>
4887 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
4888 (aarch64_cannot_fetch_register): Likewise.
4889 (struct linux_target_ops): Update references.
4891 2018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4893 * linux-ppc-low.c: Include nat/linux-ptrace.h.
4895 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4897 * configure.srv (ipa_ppc_linux_regobj): Add
4898 powerpc-isa207-htm-vsx32l-ipa.o and
4899 powerpc-isa207-htm-vsx64l-ipa.o.
4900 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
4901 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
4902 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
4903 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
4904 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
4905 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
4906 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
4907 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
4908 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
4909 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
4910 (init_registers_powerpc_isa207_htm_vsx32l)
4911 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
4912 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
4913 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
4914 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
4915 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
4916 (ppc_store_tm_ctarregset): New functions.
4917 (ppc_regsets): Add entries for HTM regsets.
4918 (ppc_arch_setup): Set htm in features struct when needed. Set
4919 sizes for the HTM regsets.
4920 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
4921 (initialize_low_arch): Call
4922 init_registers_powerpc_isa207_htm_vsx32l and
4923 init_registers_powerpc_isa207_htm_vsx64l.
4924 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
4925 PPC_TDESC_ISA207_HTM_VSX.
4926 (initialize_low_tracepoint): Call
4927 init_registers_powerpc_isa207_htm_vsx32l and
4928 init_registers_powerpc_isa207_htm_vsx64l.
4930 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4932 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
4933 rs6000/power-linux-pmu.xml to srv_xmlfiles.
4934 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
4935 (ppc_store_pmuregset): New functions.
4936 (ppc_regsets): Add entries for ebb and pmu regsets.
4937 (ppc_arch_setup): Set isa207 in features struct if the ebb and
4938 pmu regsets are available. Set sizes for these regsets.
4940 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4942 * configure.srv (ipa_ppc_linux_regobj): Add
4943 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
4944 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
4945 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
4946 rs6000/powerpc-isa207-vsx32l.xml, and
4947 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
4948 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
4949 <PPC_TDESC_ISA207_VSX>: New enum value.
4950 (init_registers_powerpc_isa207_vsx32l): Declare.
4951 (init_registers_powerpc_isa207_vsx64l): Declare.
4952 * linux-ppc-low.c (ppc_fill_tarregset): New function.
4953 (ppc_store_tarregset): New function.
4954 (ppc_regsets): Add entry for the TAR regset.
4955 (ppc_arch_setup): Set isa207 in features struct when needed. Set
4956 size for the TAR regsets.
4957 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
4958 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
4959 and init_registers_powerpc_isa207_vsx64l.
4960 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
4961 (initialize_low_tracepoint): Call
4962 init_registers_powerpc_isa207_vsx32l and
4963 init_registers_powerpc_isa207_vsx64l.
4965 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4966 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4968 * configure.srv (ipa_ppc_linux_regobj): Add
4969 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
4970 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
4971 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
4972 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
4973 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
4974 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
4975 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
4976 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
4977 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
4978 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
4979 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
4980 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
4981 (ppc_hwcap): Add comment.
4982 (ppc_hwcap2): New global.
4983 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
4984 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
4985 (ppc_regsets): Add entries for the DSCR and PPR regsets.
4986 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
4987 when needed. Set sizes for the the DSCR and PPR regsets.
4988 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
4989 (initialize_low_arch): Call
4990 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
4991 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
4992 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
4993 PPC_TDESC_ISA205_PPR_DSCR_VSX.
4994 (initialize_low_tracepoint): Call
4995 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
4996 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
4998 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5000 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
5002 2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
5003 Simon Marchi <simark@simark.ca>
5005 * acinclude.m4: Include "../selftest.m4".
5006 * configure: Regenerate.
5007 * configure.ac: Use "GDB_AC_SELFTEST".
5008 * configure.srv: Use "$enable_unittests" instead of
5009 "$development" when checking whether unit tests have been
5011 * server.c (captured_main): Update message informing that
5012 selftests have been disabled.
5014 2018-10-04 Tom Tromey <tom@tromey.com>
5016 * configure: Rebuild.
5018 2018-10-04 Tom Tromey <tom@tromey.com>
5020 * server.c (handle_status): Rename inner "thread".
5021 (process_serial_event): Declare "res" in 'm' case.
5022 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
5023 (iterate_over_lwps): Rename inner "thread".
5024 (linux_qxfer_libraries_svr4): Rename inner "len".
5025 * gdbthread.h (find_thread_in_random): Rename inner "thread".
5027 2018-10-01 Gary Benson <gbenson@redhat.com>
5029 * gdb_proc_service.h: Moved common code to
5030 common/gdb_proc_service.h.
5032 2018-10-01 Gary Benson <gbenson@redhat.com>
5034 * gdb_proc_service.h: Synchronize comments and whitespace with
5035 GDB's version of this file.
5037 2018-09-25 Tom Tromey <tom@tromey.com>
5039 * configure: Rebuild.
5040 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
5042 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5044 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
5045 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
5046 ($(IPA_LIB)): Sort IPA_OBJS.
5048 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5050 * Makefile.in: Remove references to $(ADD_DEPS).
5052 2018-09-16 Tom Tromey <tom@tromey.com>
5054 * remote-utils.c (remote_open): Use GNU style for metasyntactic
5056 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
5059 2018-09-05 Tom Tromey <tom@tromey.com>
5061 * configure: Rebuild.
5063 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
5066 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
5068 2018-08-27 Tom Tromey <tom@tromey.com>
5071 * configure: Rebuild.
5073 2018-08-27 Tom Tromey <tom@tromey.com>
5075 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
5076 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
5077 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
5078 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
5079 (s390x_emit_stack_adjust): Add casts to unsigned char.
5081 2018-08-22 Simon Marchi <simon.marchi@ericsson.com>
5085 * server.h (struct client_state) <disable_randomization>:
5088 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5090 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
5092 (mips_supply_ptrace_register): Likewise.
5094 2018-07-22 Tom Tromey <tom@tromey.com>
5096 * configure: Rebuild.
5098 2018-07-22 Tom Tromey <tom@tromey.com>
5100 * win32-low.c (win32_create_inferior): Remove unused variables.
5101 * gdbreplay.c (remote_open): Remove unused variable.
5102 * remote-utils.c (remote_prepare): Remove unused variable.
5103 * x86-tdesc.h (X86_TDESC_H): Define.
5104 (amd64_expedite_regs): Define conditionally.
5105 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
5106 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
5107 * remote-utils.c (readchar): Remove unused variable.
5109 2018-07-13 Pedro Alves <palves@redhat.com>
5111 * linux-low.c (linux_kill): Change parameter to process_info
5112 pointer instead of pid. Adjust.
5113 * lynx-low.c (lynx_kill): Likewise.
5114 * nto-low.c (nto_kill): Likewise.
5115 * spu-low.c (spu_kill): Likewise.
5116 * win32-low.c (win32_kill): Likewise.
5117 * server.c (handle_v_kill, kill_inferior_callback)
5118 (detach_or_kill_for_exit): Adjust.
5119 * target.c (kill_inferior): Change parameter to process_info
5120 pointer instead of pid. Adjust.
5121 * target.h (struct target_ops) <kill>: Change parameter to
5122 process_info pointer instead of pid. Adjust all implementations
5124 (kill_inferior): Likewise.
5126 2018-07-13 Pedro Alves <palves@redhat.com>
5128 * linux-low.c (linux_detach, linux_join): Change parameter to
5129 process_info pointer instead of pid. Adjust.
5130 * lynx-low.c (lynx_detach, lynx_join): Likewise.
5131 * nto-low.c (nto_detach): Likewise.
5132 * spu-low.c (spu_detach, spu_join): Likewise.
5133 * win32-low.c (win32_detach, win32_join): Likewise.
5134 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
5135 * target.h (struct target_ops) <detach, join>: Change parameter to
5136 process_info pointer instead of pid. Adjust all implementations
5138 (detach_inferior, join_inferior): Rename 'pid' parameter to
5141 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
5142 Jan Kratochvil <jan.kratochvil@redhat.com>
5143 Paul Fertser <fercerpav@gmail.com>
5144 Tsutomu Seki <sekiriki@gmail.com>
5146 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
5147 (OBS): Add 'common/netstuff.o'.
5148 (GDBREPLAY_OBS): Likewise.
5149 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
5150 (remote_open): Implement support for IPv6
5152 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
5154 (handle_accept_event): Accept connections from IPv6 sources.
5155 (remote_prepare): Handle IPv6-style hostnames; implement
5156 support for IPv6 connections.
5157 (remote_open): Implement support for printing connections from
5160 2018-07-11 Pedro Alves <palves@redhat.com>
5163 * mem-break.c (any_persistent_commands): Add process_info
5164 parameter and use it instead of relying on the current process.
5165 Change return type to bool.
5166 * mem-break.h (any_persistent_commands): Add process_info
5167 parameter and change return type to bool.
5168 * server.c (handle_detach): Remove require_running_or_return call.
5169 Look up the process_info for the process we're about to detach.
5170 If not found, return back error to GDB. Adjust
5171 any_persistent_commands call to pass down a process pointer.
5173 2018-07-11 Pedro Alves <palves@redhat.com>
5175 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
5176 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
5177 instead of collect_register_by_name.
5178 * regcache.c (regcache_raw_get_unsigned_by_name): New.
5179 * regcache.h (regcache_raw_get_unsigned_by_name): New.
5181 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
5182 Pedro Alves <palves@redhat.com>
5184 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
5186 2018-07-03 Tom Tromey <tom@tromey.com>
5188 * linux-low.c: Update.
5189 * lynx-low.c: Update.
5190 * mem-break.c: Update.
5191 * nto-low.c: Update.
5192 * remote-utils.c: Update.
5194 * spu-low.c: Update.
5196 * win32-low.c: Update.
5198 2018-07-03 Tom Tromey <tom@tromey.com>
5202 2018-07-03 Tom Tromey <tom@tromey.com>
5204 * linux-low.c: Update.
5206 2018-07-03 Tom Tromey <tom@tromey.com>
5210 2018-07-03 Tom Tromey <tom@tromey.com>
5212 * linux-low.c: Update.
5213 * linux-mips-low.c: Update.
5214 * lynx-low.c: Update.
5215 * nto-low.c: Update.
5216 * remote-utils.c: Update.
5218 * spu-low.c: Update.
5220 * thread-db.c: Update.
5222 2018-07-03 Tom Tromey <tom@tromey.com>
5224 * linux-low.c: Update.
5225 * linux-mips-low.c: Update.
5226 * lynx-low.c: Update.
5227 * mem-break.c: Update.
5228 * nto-low.c: Update.
5229 * remote-utils.c: Update.
5231 * spu-low.c: Update.
5233 * tracepoint.c: Update.
5235 2018-07-03 Tom Tromey <tom@tromey.com>
5237 * linux-low.c: Update.
5238 * linux-ppc-low.c: Update.
5239 * linux-x86-low.c: Update.
5240 * proc-service.c: Update.
5242 * spu-low.c: Update.
5243 * thread-db.c: Update.
5244 * win32-low.c: Update.
5246 2018-07-03 Tom Tromey <tom@tromey.com>
5248 * linux-low.c: Update.
5249 * lynx-low.c: Update.
5250 * nto-low.c: Update.
5251 * remote-utils.c: Update.
5252 * spu-low.c: Update.
5253 * thread-db.c: Update.
5254 * win32-low.c: Update.
5256 2018-06-29 Joel Brobecker <brobecker@adacore.com>
5258 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
5259 parameter in call to 'amd64_create_target_description'.
5261 2018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5263 * x86-tdesc.h: Remove executable permission flag.
5265 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5267 * configure.ac: Remove AC_PREREQ, add missing quoting.
5268 * configure: Re-generate.
5269 * config.in: Re-generate.
5270 * aclocal.m4: Re-generate.
5272 2018-06-18 Simon Marchi <simon.marchi@ericsson.com>
5274 * tracepoint.h (current_traceframe): Remove declaration.
5276 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5278 * linux-aarch64-low.c (is_sve_tdesc): New function.
5279 (aarch64_sve_regs_copy_to_regcache): Likewise.
5280 (aarch64_sve_regs_copy_from_regcache): Likewise.
5281 (aarch64_regs_info): Add SVE checks.
5282 (initialize_low_arch): Initialize SVE.
5284 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5286 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
5288 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5290 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
5291 (initialize_low_tracepoint): Likewise
5292 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
5293 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
5295 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
5297 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
5299 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5301 * server.h (PBUFSIZ): Increase size
5303 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5305 * regcache.c (regcache::raw_compare): New function.
5306 * regcache.h (regcache::raw_compare): New declaration.
5308 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5310 * regcache.c (new_register_cache): Use new.
5311 (free_register_cache): Use delete.
5312 (register_data): Use const.
5313 (supply_register): Move body inside regcache.
5314 (regcache::raw_supply): New override function.
5315 (collect_register): Move body inside regcache.
5316 (regcache::raw_collect): New override function.
5317 (regcache::get_register_status): New override function.
5318 * regcache.h (struct regcache): Inherit from reg_buffer_common.
5320 2018-06-09 Tom Tromey <tom@tromey.com>
5322 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
5324 (event_queue): Use std::queue.
5325 (gdb_event_xfree): Remove.
5326 (initialize_event_loop, process_event, wait_for_event): Update.
5328 2018-06-08 Stan Cox <scox@redhat.com>
5330 * win32-low.c (win32_create_inferior): last_ptid and last_status
5331 moved to client_state.
5333 2018-06-08 Pedro Alves <palves@redhat.com>
5335 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
5336 common/common-exceptions.o, common/common-utils.o,
5337 common/errors.o, common/print-utils.o and utils.o.
5338 * gdbreplay.c: Include "common-defs.h" instead of the two
5339 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
5340 string.h or alloca.h.
5341 (perror_with_name): Delete.
5342 (remote_open): Use xstrdup instead of strdup.
5343 (main): Rename to ...
5344 (captured_main): ... this.
5347 2018-06-08 Tom Tromey <tom@tromey.com>
5349 * linux-low.c (linux_low_read_btrace): Update.
5351 2018-06-04 Stan Cox <scox@redhat.com>
5353 * server.h (struct client_state): New.
5354 * server.c (cont_thread, general_thread, multi_process)
5355 (report_fork_events, report_vfork_events, report_exec_events)
5356 (report_thread_events, swbreak_feature, hwbreak_feature)
5357 (vCont_supported, disable_randomization, pass_signals)
5358 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
5359 Moved to client_state.
5360 * remote-utils.c (remote_debug, noack_mode)
5361 (transport_is_reliable): Moved to client_state.
5362 * tracepoint.c (current_traceframe): Moved to client_state.
5365 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
5366 linux-low.c, remote-utils.h, target.c: Use client_state.
5368 2018-05-31 Alan Hayward <alan.hayward@arm.com>
5370 * configure.srv: Add new c/h file.
5372 2018-05-31 Alan Hayward <alan.hayward@arm.com>
5374 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
5377 2018-05-25 Maciej W. Rozycki <macro@mips.com>
5379 * gdb.arch/mips-fpregset-core.exp: New test.
5380 * gdb.arch/mips-fpregset-core.c: New test source.
5382 2018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
5385 * hostio.c (require_int): Do not report overflow for integers
5386 between 0xfffffff and 0x7fffffff.
5388 2018-05-22 Maciej W. Rozycki <macro@mips.com>
5390 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
5391 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
5392 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
5394 (the_low_target): Wire them.
5396 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5398 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
5399 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
5400 mode. Call collect_register_by_name with vscr using
5401 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
5402 (ppc_store_vrregset): Add and set vscr_offset variable as in
5403 ppc_fill_vrregset. Call supply_register_by_name with vscr using
5406 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5408 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
5409 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
5410 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
5412 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5414 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
5415 (ppc_store_vsxregset): Likewise.
5416 (ppc_fill_vrregset): Likewise.
5417 (ppc_store_vrregset): Likewise.
5418 (ppc_fill_evrregset): Likewise.
5419 (ppc_store_evrregset): Likewise.
5420 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
5421 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
5424 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5426 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
5427 wordsize of the inferior. Call ppc_linux_target_wordsize.
5429 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5431 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
5432 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
5433 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
5434 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
5435 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
5436 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
5437 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
5438 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
5439 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
5440 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
5441 (tdesc_powerpc_e500l): Remove.
5442 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
5443 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
5444 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
5445 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
5447 (ppc_arch_setup): Remove target description matching code. Fill a
5448 ppc_linux_features struct and call ppc_linux_match_description
5451 2018-05-22 Maciej W. Rozycki <macro@mips.com>
5453 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
5454 width of the requested register exceeds the width of the
5456 (mips_cannot_store_register): Likewise.
5458 2018-05-21 Maciej W. Rozycki <macro@mips.com>
5460 * linux-mips-low.c (mips_fetch_register): New function. Update
5462 (mips_store_gregset): Supply 0 rather than $restart for $zero.
5463 (the_low_target): Wire `mips_fetch_register'.
5465 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5467 * lynx-i386-low.c (LYNXOS_178): New macro.
5468 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
5469 the layout on LynxOS-178.
5470 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
5471 handle floating point registers that are not supported by
5474 2018-05-10 Tom Tromey <tom@tromey.com>
5476 * configure: Rebuild.
5478 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5481 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
5482 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
5483 Use it to set the expedite_regs field in the given tdesc.
5484 * x86-tdesc.h: New file.
5485 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
5486 Adjust following the addition of the new expedite_regs parameter
5487 to init_target_desc.
5488 * linux-tic6x-low.c (tic6x_read_description): Likewise.
5489 * linux-x86-tdesc.c: #include "x86-tdesc.h".
5490 (i386_linux_read_description, amd64_linux_read_description):
5491 Adjust following the addition of the new expedite_regs parameter
5492 to init_target_desc.
5493 * lynx-i386-low.c: #include "x86-tdesc.h".
5494 (lynx_i386_arch_setup): Adjust following the addition of the new
5495 expedite_regs parameter to init_target_desc.
5496 * nto-x86-low.c: #include "x86-tdesc.h".
5497 (nto_x86_arch_setup): Adjust following the addition of the new
5498 expedite_regs parameter to init_target_desc.
5499 * win32-i386-low.c: #include "x86-tdesc.h".
5500 (i386_arch_setup): Adjust following the addition of the new
5501 expedite_regs parameter to init_target_desc.
5503 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5506 * win32-low.c (win32_create_inferior): Add call to my_wait
5507 setting last_status global.
5509 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5512 * win32-low.c (create_process): Only call gdb_tilde_expand if
5513 inferior_cwd is not NULL.
5515 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
5517 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
5518 registers to the cache if their values have changed.
5519 (i387_xsave_to_cache): Provide default values for x87 control
5520 registers when these features are available, but disabled.
5521 * regcache.c (supply_register_by_name_zeroed): New function.
5522 * regcache.h (supply_register_by_name_zeroed): Declare new
5525 2018-05-07 Tom Tromey <tom@tromey.com>
5527 * configure: Rebuild.
5529 2018-05-04 Tom Tromey <tom@tromey.com>
5531 * configure: Rebuild.
5533 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5534 Pedro Alves <palves@redhat.com>
5536 * linux-aarch64-low.c (aarch64_stopped_data_address):
5539 2018-04-27 Tom Tromey <tom@tromey.com>
5541 * configure: Rebuild.
5543 2018-04-23 Tom Tromey <tom@tromey.com>
5545 * configure: Rebuild.
5547 2018-04-19 Simon Marchi <simon.marchi@ericsson.com>
5549 * Makefile.in (depcomp): Add "..".
5550 (all_deps_files): New and use it.
5552 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5554 * configure.srv (aarch64*-*-linux*): Don't include xml.
5555 (i[34567]86-*-cygwin*): Likewise.
5556 (i[34567]86-*-linux*): Likewise.
5557 (i[34567]86-*-lynxos*): Likewise.
5558 (i[34567]86-*-mingw32ce*): Likewise.
5559 (i[34567]86-*-mingw*): Likewise.
5560 (i[34567]86-*-nto*): Likewise.
5561 (tic6x-*-uclinux): Likewise.
5562 (x86_64-*-linux*): Likewise.
5563 (x86_64-*-mingw*): Likewise.
5564 (x86_64-*-cygwin*): Likewise.
5566 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5568 * tdesc.c: Remove xml parameter.
5570 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5572 * server.c (get_features_xml): Remove cast.
5573 * tdesc.c (void target_desc::accept): Fill in function.
5574 (tdesc_get_features_xml): Remove old xml creation.
5575 (print_xml_feature::visit_pre): Add xml vistor.
5576 * tdesc.h (struct target_desc): Make xmltarget mutable.
5577 (tdesc_get_features_xml): Remove declaration.
5579 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5581 * tdesc.c (tdesc_architecture_name): Add new function.
5582 (tdesc_osabi_name): Likewise.
5583 (tdesc_get_features_xml): Use new functions.
5585 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5587 * tdesc.c (tdesc_create_flags): Remove.
5588 (tdesc_add_flag): Likewise.
5589 (tdesc_named_type): Likewise.
5590 (tdesc_create_union): Likewise.
5591 (tdesc_create_struct): Likewise.
5592 (tdesc_create_vector): Likewise.
5593 (tdesc_add_bitfield): Likewise.
5594 (tdesc_add_field): Likewise.
5595 (tdesc_set_struct_size): Likewise.
5597 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5599 * tdesc.c (~target_desc): Remove implictly deleted items.
5600 (init_target_desc): Iterate all features.
5601 (tdesc_get_features_xml): Use vector.
5602 (tdesc_create_feature): Create feature.
5603 * tdesc.h (tdesc_feature) Remove
5604 (target_desc): Add features.
5606 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5608 * Makefile.in: Add common/tdesc.c
5609 * tdesc.c (init_target_desc): init all reg_defs from register
5611 (tdesc_create_reg): Create tdesc_reg.
5612 * tdesc.h (tdesc_feature): Add register vector.
5614 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
5616 * tdesc.h (struct target_desc) <features>: Change type to
5617 std::vector<std::string>.
5618 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
5620 (tdesc_get_features_xml): Likewise.
5621 (tdesc_create_feature): Likewise.
5623 2018-03-26 Alan Hayward <alan.hayward@arm.com>
5625 * regcache.c (find_register_by_number): Return a ref.
5626 (find_regno): Use references.
5627 (register_size): Likewise.
5628 (register_data): Likewise.
5629 * tdesc.c (target_desc::~target_desc): Remove free calls.
5630 (target_desc::operator==): Use std::vector compare.
5631 (init_target_desc): Use reference.
5632 (tdesc_create_reg): Use reg constructors.
5633 * tdesc.h (struct target_desc): Replace pointer with object.
5635 2018-03-23 Alan Hayward <alan.hayward@arm.com>
5637 * regcache.c (find_register_by_number): Make static.
5638 (find_regno): Use find_register_by_number
5639 * regcache.h (struct reg): Remove declaration.
5641 2018-03-23 Alan Hayward <alan.hayward@arm.com>
5643 * tdesc.c (target_desc::~target_desc): Move to here.
5644 (target_desc::operator==): Likewise.
5645 * tdesc.h (target_desc::~target_desc): Move from here.
5646 (target_desc::operator==): Likewise.
5648 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
5650 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
5652 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5654 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
5656 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
5657 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
5658 and init_registers_s390_gs_linux64.
5660 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5662 * linux-s390-low.c (s390_fill_gs): Remove function.
5663 (s390_fill_gsbc): Remove function.
5664 (s390_regsets): Set fill functions for the guarded storage regsets
5667 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5669 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
5670 the word size. Add comment.
5671 (s390_get_wordsize): New function.
5672 (s390_arch_setup): No longer select a temporary tdesc to fetch the
5673 pswm with it. Instead, use s390_get_wordsize to determine the
5674 word size first and derive the correct tdesc from that directly.
5676 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
5678 * Makefile.in: Include silent-rules.mk.
5679 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
5680 (COMPILE): Add ECHO_CXX.
5681 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5682 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5683 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
5684 (version-generated.c): Add ECHO_GEN.
5685 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
5686 (IPAGENT_COMPILE): Add ECHO_CXX.
5687 (%-generated.c): Add ECHO_REGDAT.
5689 2018-03-14 Tom Tromey <tom@tromey.com>
5692 * ax.c (ax_printf): Special case for NULL.
5694 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5696 * linux-low.c (linux_qxfer_libraries_svr4): Use
5697 xml_escape_text_append.
5699 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5701 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
5703 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5705 * server.c (handle_general_set): Remove unnecessary xstrdup.
5707 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5709 * server.c (parse_debug_format_options): Adjust to
5710 delim_string_to_char_ptr_vec changes.
5711 * thread-db.c (thread_db_load_search): Adjust to
5712 dirnames_to_char_ptr_vec changes.
5714 2018-03-01 Markus Metzger <markus.t.metzger@intel.com>
5716 * target.h (target_enable_btrace, target_disable_btrace)
5717 (target_read_btrace, target_read_btrace_conf): Turn macro into
5718 inline function. Throw error if target method is not defined.
5719 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
5720 check for btrace target method. Be prepared to handle exceptions
5721 from btrace target methods.
5723 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5725 * server.c (captured_main): Change order of error message printed
5726 when the current working directory cannot be found.
5728 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5730 * server.c: Include "filenames.h" and "pathstuff.h".
5731 (program_name): Delete variable.
5732 (program_path): New anonymous class.
5733 (get_exec_wrapper): Use "program_path" instead of
5735 (handle_v_run): Likewise.
5736 (captured_main): Likewise.
5737 (process_serial_event): Likewise.
5739 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5741 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
5742 (OBJS): Add "pathstuff.o".
5743 * server.c (current_directory): New global variable.
5744 (captured_main): Initialize "current_directory".
5746 2018-02-26 Alan Hayward <alan.hayward@arm.com>
5748 * tdesc.c: Use common/tdesc.h.
5749 * tdesc.h: Likewise.
5751 2018-02-20 Alan Hayward <alan.hayward@arm.com>
5752 Simon Marchi <simon.marchi@ericsson.com>
5754 * Makefile.in: Switch order of make rules.
5756 2018-02-19 Alan Hayward <alan.hayward@arm.com>
5758 * Makefile.in: Add common directory in build.
5759 * configure.ac: Add common reference.
5760 * configure: Regenerate.
5762 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
5764 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
5765 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
5766 * spu-low.c (spu_target_ops): Likewise.
5767 * win32-low.c (win32_target_ops): Likewise.
5768 * server.c (supported_btrace_packets): Report packets unconditionally.
5769 * target.h (target_ops) <supports_btrace>: Remove.
5770 (target_supports_btrace): Remove.
5772 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
5774 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
5775 (handle_btrace_disable): Change return type to void. Use exceptions
5777 (handle_btrace_general_set): Catch exception and copy message to
5780 2018-02-08 Tom Tromey <tom@tromey.com>
5782 * linux-low.c (install_software_single_step_breakpoints): Use
5783 make_scoped_restore.
5784 * inferiors.c (make_cleanup_restore_current_thread): Remove.
5785 (do_restore_current_thread_cleanup): Remove.
5786 * gdbthread.h (make_cleanup_restore_current_thread): Don't
5789 2018-02-08 Tom Tromey <tom@tromey.com>
5791 * mem-break.c (set_raw_breakpoint_at): Use
5792 gdb::unique_xmalloc_ptr.
5794 2018-01-30 Pedro Alves <palves@redhat.com>
5797 * target.c (target_terminal::terminal_state): Rename to ...
5798 (target_terminal::m_terminal_state): ... this.
5800 2018-01-19 James Clarke <jrtc27@jrtc27.com>
5802 * linux-low.c (handle_extended_wait): Surround call to
5803 thread_db_notice_clone with #ifdef USE_THREAD_DB.
5805 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
5807 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
5808 linux_ptrace_attach_fail_reason_string now returning an
5810 (linux_attach): Likewise.
5811 * thread-db.c (attach_thread): Likewise.
5813 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
5816 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
5817 checking for fs_base/gs_base fields in struct user_regs_struct.
5818 * configure: Regenerate.
5820 2018-01-16 Yao Qi <yao.qi@linaro.org>
5823 * linux-low.c (fetch_register): Call supply_register instead of
5826 2018-01-08 Yao Qi <yao.qi@linaro.org>
5827 Simon Marchi <simon.marchi@ericsson.com>
5829 * Makefile.in (OBS): Remove selftest.o.
5830 * configure.ac: Set srv_selftest_objs if $development is true.
5831 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
5832 * configure: Re-generated.
5833 * server.c (captured_main): Wrap variable selftest_filter with
5836 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
5838 * server.c (parse_debug_format_options): Return std::string.
5839 (handle_monitor_command, captured_main): Adjust.
5841 2018-01-05 Pedro Alves <palves@redhat.com>
5844 * server.c (captured_main): Pass quiet=false to
5845 save_original_signals_state.
5847 2018-01-01 Joel Brobecker <brobecker@adacore.com>
5849 * gdbreplay.c (gdbreplay_version): Update copyright year in
5851 * server.c (gdbserver_version): Likewise.
5853 2017-12-08 Tom Tromey <tom@tromey.com>
5855 * ax.c (ax_printf): Update.
5857 2017-12-07 Yao Qi <yao.qi@linaro.org>
5859 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
5860 aarch64_linux_read_description.
5861 * linux-amd64-ipa.c (idx2mask): New array.
5862 (get_ipa_tdesc): Move idx2mask out.
5863 (initialize_low_tracepoint): Initialize target descriptions.
5864 * linux-i386-ipa.c (idx2mask): New array.
5865 (get_ipa_tdesc): Move idx2mask out.
5866 (initialize_low_tracepoint): Initialize target descriptions.
5868 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
5870 * tdesc.c (struct tdesc_type): Change return type.
5871 (tdesc_add_flag): Change parameter type.
5872 (tdesc_add_bitfield): Likewise.
5873 (tdesc_add_field): Likewise.
5874 (tdesc_set_struct_size): Likewise.
5876 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
5878 * regcache.c (registers_to_string): Remove unused variable.
5880 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5882 * inferiors.c (for_each_inferior_with_data): Remove.
5883 * inferiors.h (for_each_inferior_with_data): Remove.
5884 * server.c (handle_qxfer_threads_worker): Change parameter type.
5885 (handle_qxfer_threads_proper): Use for_each_thread.
5887 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5889 * inferiors.c (for_each_inferior): Remove.
5890 (clear_inferiors): Use for_each_thread.
5891 * inferiors.h (for_each_inferior): Remove.
5892 * linux-low.c (linux_wait_for_event_filtered): Use
5894 (linux_stabilize_threads): Likewise.
5895 * regcache.c (regcache_release): Likewise.
5896 * server.c (gdb_wants_all_threads_stopped): Likewise.
5897 (clear_pending_status_callback): Remove.
5898 (handle_status): Use for_each_thread.
5899 (captured_main): Likewise.
5900 * win32-low.c (child_init_thread_list): Likewise.
5901 (win32_clear_inferiors): Likewise.
5902 (fake_breakpoint_event): Likewise.
5904 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5906 * inferiors.h (find_inferior): Remove.
5907 * inferiors.c (find_inferior): Remove.
5909 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5911 * linux-low.c (resume_status_pending_p): Update comment.
5912 (need_step_over_p): Update comment.
5914 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5916 * linux-low.c (proceed_one_lwp): Return void, change parameter
5918 (unsuspend_and_proceed_one_lwp): Likewise.
5919 (proceed_all_lwps): Use for_each_thread.
5920 (unstop_all_lwps): Likewise.
5922 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5924 * linux-low.c (linux_resume_one_thread): Return void, take
5926 (linux_resume): Use for_each_thread.
5928 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5930 * linux-low.c (send_sigstop_callback): Return void, change
5931 parameter type. Rename to...
5932 (send_sigstop): ... this.
5933 (suspend_and_send_sigstop_callback): Return void, change parameter
5935 (suspend_and_send_sigstop): ... this.
5936 (stop_all_lwps): Use for_each_thread.
5938 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5940 * linux-low.c (lwp_running): Return bool, remove unused
5942 (linux_stabilize_threads): Use find_thread.
5944 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5946 * linux-low.c (select_singlestep_lwp_callback): Remove.
5947 (count_events_callback): Remove.
5948 (select_event_lwp_callback): Remove.
5949 (select_event_lwp): Use find_thread/for_each_thread.
5951 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5953 * linux-low.c (not_stopped_callback): Return bool, take filter
5955 (linux_wait_for_event_filtered): Use find_thread.
5956 (linux_wait_1): Likewise.
5958 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5960 * linux-low.c (same_lwp): Remove.
5961 (find_lwp_pid): Use find_thread.
5963 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5965 * linux-low.c (delete_lwp_callback): Remove.
5966 (linux_mourn): Use for_each_thread.
5968 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5970 * linux-low.c (linux_detach_lwp_callback): Return void, remove
5971 args parameter, don't check for pid.
5972 (linux_detach): Use for_each_thread.
5974 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5976 * linux-low.c (struct counter): Remove.
5977 (second_thread_of_pid_p): Remove.
5978 (last_thread_of_process_p): Use find_thread.
5980 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5982 * inferiors.c (find_inferior_in_random): Remove.
5983 * inferiors.h (find_inferior_in_random): Remove.
5984 * linux-low.c (status_pending_p_callback): Return bool, accept
5985 parameter ptid directly.
5986 (linux_wait_for_event_filtered): Use find_thread_in_random.
5987 (linux_wait_1): Likewise.
5989 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5991 * inferiors.c (find_inferior_id): Remove.
5992 (find_thread_ptid): Move implemention from find_inferior_id to
5994 * inferiors.h (find_inferior_id): Remove.
5995 * server.c (handle_status): Use find_thread_ptid.
5996 (process_serial_event): Likewise.
5997 * thread-db.c (find_one_thread): Likewise.
5998 (thread_db_thread_handle): Likewise.
5999 * win32-low.c (thread_rec): Likewise.
6000 (child_delete_thread): Likewise.
6001 (win32_thread_alive): Likewise.
6002 (get_child_debug_event): Likewise.
6004 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6006 * linux-mips-low.c (update_watch_registers_callback): Return
6007 void, remove pid_p parameter, don't check for pid.
6008 (mips_insert_point, mips_remove_point): Use for_each_thread.
6010 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6012 * lynx.low (lynx_delete_thread_callback): Remove.
6013 (lynx_mourn): Use for_each_thread.
6015 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6017 * regcache.c (regcache_invalidate_one): Remove.
6018 (regcache_invalidate_pid): use for_each_thread.
6020 2017-11-26 Tom Tromey <tom@tromey.com>
6022 * linux-low.c (linux_create_inferior): Update.
6024 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
6026 * spu-low.c (spu_create_inferior): Fix typo in argument name.
6028 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6030 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
6031 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6032 * linux-aarch64-tdesc-selftest.c: New file.
6033 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6035 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6037 * configure.srv: Add new file.
6038 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6039 * linux-aarch64-tdesc-selftest.c: New file.
6040 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6042 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6044 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
6045 * linux-aarch64-low.c (initialize_low_arch): Remove init.
6046 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
6048 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6050 * configure.srv: Add new files.
6051 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
6052 aarch64_linux_read_description.
6053 * linux-aarch64-low.c (aarch64_linux_read_description):
6054 Merge with aarch64_arch_setup.
6055 (aarch64_arch_setup): Call aarch64_linux_read_description.
6056 * linux-aarch64-tdesc.c: New file.
6057 * linux-aarch64-tdesc.h: New file.
6059 2017-11-24 Yao Qi <yao.qi@linaro.org>
6061 * configure.srv: Set $srv_regobj for tic6x-linux.
6062 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
6063 (tic6x_read_description): Move some code to tic6x_arch_setup.
6064 (tic6x_tdesc_test): New function.
6065 (initialize_low_arch): Call selftests::register_test.
6067 2017-11-22 Yao Qi <yao.qi@linaro.org>
6069 * remote-utils.c (prepare_resume_reply): Use memcpy.
6071 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6073 * linux-low.c (kill_one_lwp_callback): Return void, take
6074 argument directly, don't filter on pid.
6075 (linux_kill): Use for_each_thread.
6077 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6079 * linux-low.c (need_step_over_p): Return bool, remove dummy
6081 (linux_resume, proceed_all_lwps): Use find_thread.
6083 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6085 * linux-low.c (resume_status_pending_p): Return bool, remove
6087 (linux_resume): Use find_thread.
6089 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6091 * linux-low.c (struct thread_resume_array): Remove.
6092 (linux_set_resume_request): Return void, take arguments
6094 (linux_resume): Use for_each_thread.
6096 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6098 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
6099 return bool, remove data argument.
6100 (linux_stabilize_threads): Use find_thread.
6102 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6104 * linux-low.c (unsuspend_one_lwp): Remove.
6105 (unsuspend_all_lwps): Use for_each_thread, inline code from
6108 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6110 * gdbthread.h (find_thread): Add overload with ptid_t filter.
6111 * linux-low.c (struct iterate_over_lwps_args): Remove.
6112 (iterate_over_lwps_filter): Remove.
6113 (iterate_over_lwps): Use find_thread.
6115 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6117 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
6118 (linux_handle_new_gdb_connection): Use for_each_thread, inline
6119 code from reset_lwp_ptrace_options_callback.
6121 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6123 * linux-arm-low.c (struct update_registers_data): Remove.
6124 (update_registers_callback): Return void, take arguments
6125 directly, don't check thread's pid.
6126 (arm_insert_point, arm_remove_point): Use for_each_thread.
6128 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6130 * win32-low.c (continue_one_thread): Return void, take argument
6132 (child_continue): Use for_each_thread.
6134 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6136 * win32-i386-low.c (update_debug_registers_callback): Rename
6138 (update_debug_registers): ... this, return void, remove pid_p arg.
6139 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
6141 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
6143 * inferiors.h (struct process_info): Add constructor, initialize
6145 <syscalls_to_catch>: Change type to std::vector<int>.
6146 * inferiors.c (add_process): Allocate process_info with new.
6147 (remove_process): Free process_info with delete.
6148 * linux-low.c (handle_extended_wait): Adjust.
6149 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
6150 * server.c (handle_general_set): Adjust.
6152 2017-11-16 Pedro Alves <palves@redhat.com>
6154 * remote-utils.c (remote_close): Block SIGIO signals instead of
6155 uninstalling the SIGIO handler.
6157 2017-11-16 Alan Hayward <alan.hayward@arm.com>
6159 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
6161 2017-11-16 Yao Qi <yao.qi@linaro.org>
6163 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
6164 (tic6x_store_gregset): Likewise.
6165 (tic6x_usrregs_info): Move it up.
6167 2017-11-15 Alan Hayward <alan.hayward@arm.com>
6169 * Makefile.in: Update arch rules.
6170 * configure.srv: Explicitly mark arch/ files.
6172 2017-11-13 Andreas Schwab <schwab@suse.de>
6174 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
6176 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6178 2017-11-06 Pedro Alves <palves@redhat.com>
6180 * config.in, configure: Regenerate.
6182 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6184 * target.c (struct thread_search): Remove.
6185 (thread_search_callback): Remove.
6186 (prepare_to_access_memory): Use for_each_thread instead of
6187 find_inferior. Inline code from thread_search_callback.
6189 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6191 * server.c (struct visit_actioned_threads_data): Remove.
6192 (visit_actioned_threads): Change prototype to take arguments
6194 (resume): Use find_thread instead of find_inferior.
6196 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6198 * server.c (queue_stop_reply_callback): Change prototype, return
6200 (find_status_pending_thread_callback): Remove.
6201 (handle_status): Replace find_inferior with find_thread and
6204 2017-10-25 Alan Hayward <alan.hayward@arm.com>
6206 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
6208 (aarch64_store_gregset): Likewise.
6209 (aarch64_fill_fpregset): Likewise.
6210 (aarch64_store_fpregset): Likewise.
6212 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
6214 * gdbthread.h (find_thread, for_each_thread): New functions.
6215 * inferiors.c (thread_of_pid): Remove.
6216 (find_any_thread_of_pid): Use find_thread.
6217 * linux-low.c (num_lwps): Use for_each_thread.
6219 2017-10-17 Yao Qi <yao.qi@linaro.org>
6221 * Makefile.in: Remove one rule.
6222 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
6224 2017-10-17 Yao Qi <yao.qi@linaro.org>
6226 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
6227 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
6229 2017-10-17 Yao Qi <yao.qi@linaro.org>
6231 * configure.srv: Rename arm.o with arch/arm.o.
6233 2017-10-17 Yao Qi <yao.qi@linaro.org>
6235 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
6236 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
6237 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
6238 (arch-i386.o, arch-amd64.o): Remove rules.
6239 (arch/%.o): New rule.
6240 Update POSTCOMPILE and COMPILE.pre.
6241 * configure.ac: Invoke AC_CONFIG_COMMANDS.
6242 * configure: Re-generated.
6243 * configure.srv: Replace arch-i386.o with arch/i386.o.
6244 Replace arch-amd64.o with arch/amd64.o.
6246 2017-10-16 Yao Qi <yao.qi@linaro.org>
6248 * configure: Regenerated.
6250 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6252 * inferiors.h: (struct inferior_list): Remove.
6253 (struct inferior_list_entry); Remove.
6254 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
6255 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
6256 get_first_inferior): Remove.
6257 (for_each_inferior, for_each_inferior_with_data, find_inferior,
6258 find_inferior_id, find_inferior_in_random): Change signature.
6259 * inferiors.c (all_threads): Change type to
6260 std::list<thread_info *>.
6261 (get_thread): Remove macro.
6262 (find_inferior, find_inferior_id): Change signature, implement
6264 (find_inferior_in_random): Change signature, implement using
6265 find_thread_in_random.
6266 (for_each_inferior, for_each_inferior_with_data): Change
6267 signature, implement using for_each_thread.
6268 (add_inferior_to_list, remove_inferior): Remove.
6269 (add_thread, get_first_thread, thread_of_pid,
6270 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
6271 (get_first_inferior, one_inferior_p, clear_inferior_list):
6273 (clear_inferiors, get_thread_process): Update.
6274 * gdbthread.h: Include <list>.
6275 (struct thread_info) <entry>: Remove field.
6277 (all_threads): Change type to std::list<thread_info *>.
6278 (get_first_inferior): Add doc.
6279 (find_thread, for_each_thread, find_thread_in_random): New
6281 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
6282 * linux-arm-low.c (update_registers_callback): Update.
6283 * linux-low.c (second_thread_of_pid_p): Update.
6284 (kill_one_lwp_callback, linux_detach_lwp_callback,
6285 delete_lwp_callback, status_pending_p_callback, same_lwp,
6286 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
6287 iterate_over_lwps, not_stopped_callback,
6288 resume_stopped_resumed_lwps, count_events_callback,
6289 select_singlestep_lwp_callback, select_event_lwp_callback,
6290 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
6291 suspend_and_send_sigstop_callback, wait_for_sigstop,
6292 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
6293 lwp_running, linux_set_resume_request, resume_status_pending_p,
6294 need_step_over_p, start_step_over, linux_resume_one_thread,
6295 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
6296 reset_lwp_ptrace_options_callback): Update.
6297 * linux-mips-low.c (update_watch_registers_callback): Update.
6298 * regcache.c (regcache_invalidate_one, regcache_invalidate):
6300 (free_register_cache_thread_one): Remove.
6301 (regcache_release): Update.
6302 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
6303 handle_qxfer_threads_worker): Update.
6304 (handle_query): Update, use list iterator.
6305 (visit_actioned_threads, handle_pending_status,
6306 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
6307 clear_pending_status_callback, set_pending_status_callback,
6308 find_status_pending_thread_callback, handle_status,
6309 process_serial_event): Update.
6310 * target.c (thread_search_callback): Update.
6311 * thread-db.c (thread_db_get_tls_address): Update.
6312 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
6314 * win32-i386-low.c (update_debug_registers_callback): Update.
6315 * win32-low.c (delete_thread_info, child_delete_thread,
6316 continue_one_thread, suspend_one_thread,
6317 get_child_debug_event): Adjust.
6319 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6321 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
6322 * inferiors.h: Include <list>.
6323 (struct process_info) <entry>: Remove field.
6325 (pid_of): Change macro to function.
6326 (ptid_of, lwpid_of): Remove macro.
6327 (all_processes): Change type to std::list<process_info *>.
6328 (ALL_PROCESSES): Remove macro.
6329 (for_each_process, find_process): New function.
6330 * inferiors.c (all_processes): Change type to
6331 std::list<process_info *>.
6332 (find_thread_process): Adjust.
6333 (add_process): Likewise.
6334 (remove_process): Likewise.
6335 (find_process_pid): Likewise.
6336 (get_first_process): Likewise.
6337 (started_inferior_callback): Remove.
6338 (have_started_inferiors_p): Adjust.
6339 (attached_inferior_callback): Remove.
6340 (have_attached_inferiors_p): Adjust.
6341 * linux-low.c (check_zombie_leaders): Likewise.
6342 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
6343 (x86_linux_update_xmltarget): Adjust.
6344 * server.c (handle_query): Likewise.
6345 (gdb_reattached_process): Remove.
6346 (handle_status): Adjust.
6347 (kill_inferior_callback): Likewise.
6348 (detach_or_kill_inferior): Remove.
6349 (print_started_pid): Likewise.
6350 (print_attached_pid): Likewise.
6351 (detach_or_kill_for_exit): Update.
6352 (process_serial_event): Likewise.
6353 * linux-arm-low.c (arm_new_fork): Likewise.
6355 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6357 * dll.h: Include <list>.
6358 (struct dll_info): Add constructor.
6359 <entry>: Remove field.
6360 (all_dlls): Change type to std::list<dll_info>.
6361 * dll.c: Include <algorithm>.
6362 (get_dll): Remove macro.
6363 (all_dlls): Change type to std::list<dll_info *>.
6364 (free_one_dll): Remove.
6365 (match_dll): Likewise.
6366 (loaded_dll): Adjust.
6367 (unloaded_dll): Adjust to all_dlls type change, use
6368 std::find_if. Inline code from match_dll.
6369 (clear_dlls): Adjust to all_dlls type change.
6370 * server.c (emit_dll_description): Remove.
6371 (handle_qxfer_libraries): Adjust to all_dlls type change,
6372 integrate emit_dll_description's functionality.
6374 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6376 * linux-low.h (struct linux_target_ops) <delete_process>: New
6378 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
6379 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
6380 (struct linux_target_ops): Add delete_process callback.
6381 * linux-arm-low.c (arm_delete_process): New.
6382 (struct linux_target_ops): Add delete_process callback.
6383 * linux-bfin-low.c (struct linux_target_ops): Likewise.
6384 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
6385 * linux-m32r-low.c (struct linux_target_ops): Likewise.
6386 * linux-mips-low.c (mips_linux_delete_process): New.
6387 (struct linux_target_ops): Add delete_process callback.
6388 * linux-ppc-low.c (struct linux_target_ops): Likewise.
6389 * linux-s390-low.c (struct linux_target_ops): Likewise.
6390 * linux-sh-low.c (struct linux_target_ops): Likewise.
6391 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
6392 * linux-tile-low.c (struct linux_target_ops): Likewise.
6393 * linux-x86-low.c (x86_linux_delete_process): New.
6394 (struct linux_target_ops): Add delete_process callback.
6395 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
6397 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6399 * linux-aarch64-low.c (the_low_target): Add thread delete
6401 * linux-arm-low.c (arm_delete_thread): New function.
6402 (the_low_target): Add thread delete callback.
6403 * linux-bfin-low.c (the_low_target): Likewise.
6404 * linux-crisv32-low.c (the_low_target): Likewise.
6405 * linux-low.c (delete_lwp): Invoke delete_thread callback if
6407 * linux-low.h (struct linux_target_ops) <delete_thread>: New
6409 * linux-m32r-low.c (the_low_target): Add thread delete callback.
6410 * linux-mips-low.c (mips_linux_delete_thread): New function.
6411 (the_low_target): Add thread delete callback.
6412 * linux-ppc-low.c (the_low_target): Likewise.
6413 * linux-s390-low.c (the_low_target): Likewise.
6414 * linux-sh-low.c (the_low_target): Likewise.
6415 * linux-tic6x-low.c (the_low_target): Likewise.
6416 * linux-tile-low.c (the_low_target): Likewise.
6417 * linux-x86-low.c (the_low_target): Likewise.
6418 * linux-xtensa-low.c (the_low_target): Likewise.
6420 2017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
6422 * win32-low.c: Include "common-inferior.h".
6424 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6426 * inferiors.c (set_inferior_cwd): New function.
6427 * server.c (handle_general_set): Handle QSetWorkingDir packet.
6428 (handle_query): Inform that QSetWorkingDir is supported.
6429 * win32-low.c (create_process): Pass the inferior's cwd to
6432 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6434 * inferiors.c (current_inferior_cwd): New global variable.
6435 (get_inferior_cwd): New function.
6436 * inferiors.h (struct process_info) <cwd>: New field.
6438 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6440 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
6441 (OBS): Add gdb_tilde_expand.o.
6443 2017-10-02 Simon Marchi <simon.marchi@ericsson.com>
6445 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
6446 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
6448 2017-09-29 Pedro Alves <palves@redhat.com>
6450 * ax.c (gdb_parse_agent_expr): Constify.
6451 * ax.h (gdb_parse_agent_expr): Constify.
6452 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
6454 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
6455 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
6456 * remote-utils.h (read_ptid): Constify.
6457 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
6458 (process_point_options, process_serial_event): Constify.
6459 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
6460 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
6461 (cmd_qtbuffer): Constify.
6463 2017-09-29 Pedro Alves <palves@redhat.com>
6465 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
6468 2017-09-29 Pedro Alves <palves@redhat.com>
6470 * linux-low.c (handle_extended_wait): Pass parent thread instead
6471 of process to thread_db_notice_clone.
6472 * linux-low.h (thread_db_notice_clone): Replace parent process
6473 parameter with parent thread parameter.
6474 * thread-db.c (find_one_thread): Add comment.
6475 (thread_db_notice_clone): Replace parent process parameter with
6476 parent thread parameter. Temporarily switch to the parent thread.
6478 2017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
6480 * gdbthread.h: Include "common-gdbthread.h".
6481 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
6482 "if" when validating the ptid.
6483 * remote-utils.c: Include "gdbthread.h".
6484 (prepare_resume_reply): Use "switch_to_thread".
6485 * target.c (done_accessing_memory): Likewise.
6487 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6489 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
6490 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
6491 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
6492 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
6493 s390x-gs-linux64-ipa.o to ipa_obj.
6494 * linux-s390-low.c (HWCAP_S390_GS): New define.
6495 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
6497 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
6498 (s390_arch_setup): Check for guarded-storage support and choose
6500 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
6501 init_registers_s390x_gs_linux64.
6502 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
6504 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
6505 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
6507 2017-09-22 Simon Marchi <simon.marchi@ericsson.com>
6509 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
6511 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6513 * linux-low.h (struct lwp_info): Add new field, thread_handle.
6514 (thread_db_thread_handle): Declare.
6515 * linux-low.c (linux_target_ops): Initialize thread_handle.
6516 * server.c (handle_qxfer_threads_worker): Add support for
6518 * target.h (struct target_ops): Add new function pointer,
6520 (target_thread_handle): Define.
6521 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
6523 (thread_db_thread_handle): New function.
6525 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6527 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
6528 * linux-low.h (thread_db_notice_clone): Declare.
6529 * thread-db.c (thread_db_notice_clone): New function.
6531 2017-09-21 Pedro Alves <palves@redhat.com>
6533 * server.c (gdb_read_memory, handle_status, process_serial_event)
6534 (handle_serial_event, handle_target_event): Adjust to
6535 set_desired_thread prototype change.
6536 * target.c (set_desired_thread): Remove 'use_general' parameter
6538 * target.h (set_desired_thread): Remove 'use_general' parameter.
6540 2017-09-20 Tom Tromey <tom@tromey.com>
6542 * target.c (target_terminal::terminal_state): Define.
6543 (target_terminal::init): Rename from target_terminal_init.
6544 (target_terminal::inferior): Rename from
6545 target_terminal_inferior.
6546 (target_terminal::ours): Rename from target_terminal_ours.
6547 (target_terminal::ours_for_output, target_terminal::info): New.
6549 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6551 * server.c (accumulate_file_name_length): Remove.
6552 (emit_dll_description): Adjust to std::string change.
6553 (handle_qxfer_libraries): Use std::string to hold document.
6555 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6557 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
6558 return type of xml_escape_text.
6559 * server.c (emit_dll_description): Likewise.
6561 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6563 * server.c (captured_main): Accept argument for --selftest.
6564 Update run_tests call.
6565 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
6566 when registering selftests.
6568 2017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
6570 * regcache.c (get_thread_regcache): Update code to use "std::vector"
6571 instead of "VEC" for "target_desc.reg_defs".
6572 (regcache_cpy): Likewise.
6573 (registers_to_string): Likewise.
6574 (registers_from_string): Likewise.
6575 (find_regno): Likewise.
6576 (supply_regblock): Likewise.
6577 (regcache_raw_read_unsigned): Likewise.
6578 * tdesc.c (init_target_desc): Likewise.
6579 (tdesc_create_reg): Likewise.
6580 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
6581 (struct target_desc) <reg_defs>: Convert to "std::vector".
6582 (target_desc): Do not initialize "reg_defs".
6583 (~target_desc): Update code to use "std::vector" instead of "VEC"
6584 for "target_desc.reg_defs".
6585 (operator==): Likewise.
6587 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6589 * inferiors.h (thread_to_gdb_id): Remove.
6590 * inferiors.c (thread_to_gdb_id): Remove.
6591 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
6592 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
6593 lynx_store_registers, lynx_read_memory, lynx_write_memory):
6595 * nto-low.c (nto_fetch_registers, nto_store_registers,
6596 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
6598 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6600 * inferiors.h (gdb_id_to_thread_id): Remove.
6601 * inferiors.c (gdb_id_to_thread_id): Remove.
6602 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
6603 removal. Move pid declaration closer to where it's used.
6605 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6607 * server.c (handle_detach): New function.
6608 (process_serial_event): Move code out, call handle_detach.
6610 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6612 * server.c (require_running): Rename to ...
6613 (require_running_or_return): ... this ...
6614 (require_running_or_break): ... and this.
6615 (handle_query, process_serial_event): Adjust.
6617 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6619 * linux-low.c (linux_set_resume_request): Remove unused
6622 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6624 * server.c (first_thread_of): Remove.
6625 (process_serial_event): Replace usage of first_thread_of with
6626 find_any_thread_of_pid.
6627 * tracepoint.c (same_process_p): Remove.
6628 (gdb_agent_about_to_close): Replace usage of same_process_p with
6629 find_any_thread_of_pid.
6630 * linux-x86-low.c (same_process_callback): Remove.
6631 (x86_arch_setup_process_callback): Replace usage of
6632 same_process_callback with find_any_thread_of_pid.
6633 * thread-db.c (any_thread_of): Remove.
6634 (switch_to_process): Replace usage of any_thread_of with
6635 find_any_thread_of_pid.
6636 * inferiors.c (thread_pid_matches_callback): Remove.
6637 (find_thread_process): Adjust to use find_any_thread_of_pid.
6639 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6641 * regcache.c (get_thread_regcache): Guard calls to "memset"
6644 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6646 * linux-low.c (handle_extended_wait): Use
6647 "allocate_target_description" instead of "XNEW".
6648 * linux-x86-low.c (initialize_low_arch): Likewise.
6650 2017-09-05 Yao Qi <yao.qi@linaro.org>
6652 * configure.srv (srv_i386_regobj): Remove.
6653 (srv_amd64_regobj): Remove.
6654 (srv_regobj): Set it to "" for x86 non-linux targets.
6655 * linux-x86-tdesc.c (i386_linux_read_description):
6656 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
6657 (init_registers_i386): Remove the declaration.
6658 (tdesc_i386): Remove the declaration.
6659 (lynx_i386_arch_setup): Call i386_create_target_description.
6660 * nto-x86-low.c: Likewise.
6661 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
6662 [!__x86_64__]: include arch/i386.h.
6663 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
6665 2017-09-05 Yao Qi <yao.qi@linaro.org>
6667 * configure.srv (srv_amd64_linux_xmlfiles): Remove
6668 i386/amd64-XXX-linux from it.
6670 2017-09-05 Yao Qi <yao.qi@linaro.org>
6672 * configure.srv: Empty srv_amd64_linux_regobj if $development is
6674 (ipa_amd64_linux_regobj): Remove.
6675 (ipa_x32_linux_regobj): Remove.
6677 2017-09-05 Yao Qi <yao.qi@linaro.org>
6679 * Makefile.in (arch-amd64.o): New rule.
6680 * configure.srv: Append arch-amd64.o.
6681 * linux-amd64-ipa.c: Include common/x86-xstate.h.
6682 (get_ipa_tdesc): Call amd64_linux_read_description.
6683 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
6684 and init_registers_amd64_XXX.
6685 * linux-x86-low.c (x86_linux_read_description): Call
6686 amd64_linux_read_description.
6687 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
6688 (initialize_low_arch): Don't call init_registers_x32_XXX and
6689 init_registers_amd64_XXX.
6690 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
6691 and tdesc_amd64_XXX.
6692 [__x86_64__] (amd64_tdesc_test): New function.
6693 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
6694 and init_registers_amd64_XXX.
6695 * linux-x86-tdesc.c: Include arch/amd64.h.
6696 (xcr0_to_tdesc_idx): New function.
6697 (i386_linux_read_description): New function.
6698 (amd64_get_ipa_tdesc_idx): New function.
6699 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
6700 (amd64_get_ipa_tdesc): Declare.
6702 2017-09-05 Yao Qi <yao.qi@linaro.org>
6704 * configure.srv (srv_i386_linux_xmlfiles): Remove
6705 i386/i386-XXX-linux.xml from it.
6707 2017-09-05 Yao Qi <yao.qi@linaro.org>
6709 * configure.srv: Set srv_i386_linux_regobj empty if $development
6711 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
6712 initialize_low_tdesc.
6713 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
6714 with #if initialize_low_tdesc.
6715 * linux-x86-tdesc-selftest.c: New file.
6716 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
6718 2017-09-05 Yao Qi <yao.qi@linaro.org>
6720 * Makefile.in (arch-i386.o): New rule.
6721 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
6722 (x86_64-*-linux*): Likewise.
6723 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
6724 include arch/i386.h.
6725 (i386_linux_read_description): Remove code and call
6726 i386_create_target_description.
6727 * tdesc.c (allocate_target_description): New function.
6728 * tdesc.h (set_tdesc_architecture): Remove declaration.
6729 (set_tdesc_osabi): Likewise.
6731 2017-09-05 Yao Qi <yao.qi@linaro.org>
6733 * linux-x86-tdesc.c: Don't include <inttypes.h>.
6734 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
6735 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
6737 * server.c (get_features_xml): Call tdesc_get_features_xml.
6738 * tdesc.c (set_tdesc_architecture): New function.
6739 (set_tdesc_osabi): New function.
6740 (tdesc_get_features_xml): New function.
6741 (tdesc_create_feature): Add an argument.
6742 * tdesc.h (struct target_desc) <features>: New field.
6743 <arch, osabi>: New field.
6744 (~target_desc): xfree features, arch, and osabi.
6745 (target_desc::oerator==): Don't compare .xmltarget.
6746 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
6747 (set_tdesc_osabi): Likewise.
6748 (tdesc_get_features_xml): Likewise.
6750 2017-09-05 Yao Qi <yao.qi@linaro.org>
6752 * linux-x86-tdesc.c: Include selftest.h.
6753 (i386_tdesc_test): New function.
6754 (initialize_low_tdesc): Call selftests::register_test.
6755 * tdesc.h: Include regdef.h.
6756 (target_desc): Override operator == and !=.
6758 2017-09-05 Yao Qi <yao.qi@linaro.org>
6760 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
6761 (ipa_obj): Likewise.
6762 * linux-i386-ipa.c: Include common/x86-xstate.h
6763 (get_ipa_tdesc): Call i386_linux_read_description.
6764 (initialize_low_tracepoint): Don't call init_registers_XXX
6765 functions, call initialize_low_tdesc instead.
6766 * linux-x86-low.c (x86_linux_read_description): Call
6767 i386_linux_read_description.
6768 (initialize_low_arch): Don't call init_registers_i386_XXX
6769 functions, call initialize_low_tdesc.
6770 * linux-x86-tdesc.c: New file.
6771 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
6772 (i386_get_ipa_tdesc_idx): Declare.
6773 (i386_get_ipa_tdesc): Declare.
6774 (initialize_low_tdesc): Declare.
6776 2017-09-05 Yao Qi <yao.qi@linaro.org>
6778 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
6781 2017-09-05 Yao Qi <yao.qi@linaro.org>
6783 * Makefile.in (IPA_OBJS): Add vec-ipa.o
6784 * regcache.c (get_thread_regcache): Use VEC_length.
6785 (init_register_cache): Likewise.
6786 (regcache_cpy): Likewise.
6787 (registers_to_string): Iterate reg_defs via VEC_iterate.
6788 (find_regno): Likewise.
6789 (find_register_by_number): Use VEC_index.
6790 (register_size): Call find_register_by_number.
6791 (register_data): Call find_register_by_number.
6792 (supply_regblock): Use VEC_length.
6793 (regcache_raw_read_unsigned): Likewise.
6794 * tdesc.c (init_target_desc): Iterate reg_defs via
6796 (default_description): Update initializer.
6797 (copy_target_description): Don't update field num_registers.
6798 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
6799 <num_registers>: Remove.
6801 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
6803 * Makefile.in (.SECONDARY): Define target.
6805 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
6807 * linux-low.c (linux_wait_1): Adjust.
6808 * server.c (queue_stop_reply_callback): Adjust.
6810 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
6812 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
6813 QEnvironmentUnset and QEnvironmentReset packets.
6814 (handle_query): Inform remote that QEnvironmentHexEncoded,
6815 QEnvironmentUnset and QEnvironmentReset are supported.
6817 2017-08-25 Simon Marchi <simon.marchi@ericsson.com>
6819 * inferiors.h (inferior_target_data): Rename to ...
6820 (thread_target_data): ... this.
6821 (inferior_regcache_data): Rename to ...
6822 (thread_regcache_data): ... this.
6823 (set_inferior_regcache_data): Rename to ...
6824 (set_thread_regcache_data): ... this.
6825 * inferiors.c (inferior_target_data): Rename to ...
6826 (thread_target_data): ... this.
6827 (inferior_regcache_data): Rename to ...
6828 (thread_regcache_data): ... this.
6829 (set_inferior_regcache_data): Rename to ...
6830 (set_thread_regcache_data): ... this.
6831 (free_one_thread): Update.
6832 * linux-low.h (get_thread_lwp): Update.
6833 * regcache.c (get_thread_regcache): Update.
6834 (regcache_invalidate_thread): Update.
6835 (free_register_cache_thread): Update.
6836 * win32-i386-low.c (update_debug_registers_callback): Update.
6837 (win32_get_current_dr): Update.
6838 * win32-low.c (thread_rec): Update.
6839 (delete_thread_info): Update.
6840 (continue_one_thread): Update.
6841 (suspend_one_thread): Update.
6843 2017-08-24 Simon Marchi <simon.marchi@ericsson.com>
6845 * inferiors.c (set_inferior_target_data): Remove.
6846 * inferiors.h (set_inferior_target_data): Remove.
6848 2017-08-18 Yao Qi <yao.qi@linaro.org>
6850 * Makefile.in (OBS): Add selftest.o.
6851 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
6852 * configure, config.in: Re-generated.
6853 * server.c: Include common/sefltest.h.
6854 (captured_main): Handle option --selftest.
6856 2017-08-09 Yao Qi <yao.qi@linaro.org>
6858 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
6859 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
6860 i386-avx-mpx.o and i386-mmx.o.
6861 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
6862 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
6863 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
6864 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
6865 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
6866 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
6867 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
6868 i386/amd64-avx-mpx.xml.
6870 2017-08-09 Yao Qi <yao.qi@linaro.org>
6872 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
6873 and x32-avx-avx512.o.
6874 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
6875 i386/x32-avx-avx512.xml.
6877 2017-07-26 Simon Marchi <simon.marchi@ericsson.com>
6879 * tracepoint.h (enum class fast_tpoint_collect_result): New
6881 (fast_tracepoint_collecting): Change return type to
6882 fast_tpoint_collect_result.
6883 * tracepoint.c (fast_tracepoint_collecting): Likewise.
6884 * linux-low.h: Include tracepoint.h.
6885 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
6886 fast_tpoint_collect_result.
6887 * linux-low.c (handle_tracepoints): Adjust.
6888 (linux_fast_tracepoint_collecting): Change return type to
6889 fast_tpoint_collect_result.
6890 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
6891 linux_wait_1, stuck_in_jump_pad_callback,
6892 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
6893 proceed_one_lwp): Adjust to type change.
6895 2017-07-10 Yao Qi <yao.qi@linaro.org>
6897 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
6899 2017-06-29 Yao Qi <yao.qi@linaro.org>
6901 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
6903 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
6905 2017-06-20 Simon Marchi <simon.marchi@ericsson.com>
6907 * Makefile.in (IPA_OBJS): Sort and format one item per line.
6909 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
6911 * linux-low.c (linux_create_inferior): Adjust code to access the
6912 environment information via 'gdb_environ' class.
6913 * lynx-low.c (lynx_create_inferior): Likewise.
6914 * server.c (our_environ): Make it an instance of 'gdb_environ'.
6915 (get_environ): Return a pointer to 'our_environ'.
6916 (captured_main): Initialize 'our_environ'.
6917 * server.h (get_environ): Adjust prototype.
6918 * spu-low.c (spu_create_inferior): Adjust code to access the
6919 environment information via 'gdb_environ' class.
6921 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6923 * linux-low.c (linux_read_memory, linux_write_memory): Remove
6924 usage of "register" keyword.
6926 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6928 * configure: Re-generate.
6930 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6932 * configure: Re-generate.
6934 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6936 * Makefile.in (COMPILE.pre): Add "-x c++".
6938 2017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
6940 * fork-child.c: Conditionally include <signal.h>.
6942 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6944 * server.c (handle_general_set): Handle new packet
6945 "QStartupWithShell".
6946 (handle_query): Add "QStartupWithShell" to the list of supported
6948 (gdbserver_usage): Add help text explaining the
6949 new "--startup-with-shell" and "--no-startup-with-shell" CLI
6951 (captured_main): Recognize and act upon the presence of the new
6954 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6955 Pedro Alves <palves@redhat.com>
6957 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
6958 * configure: Regenerate.
6959 * configure.srv (srv_linux_obj): Add "fork-child.o" and
6961 (i[34567]86-*-lynxos*): Likewise.
6962 (spu*-*-*): Likewise.
6963 * fork-child.c: New file.
6964 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
6966 (linux_ptrace_fun): New function.
6967 (linux_create_inferior): Adjust function prototype to reflect
6968 change on "target.h". Adjust function code to use
6970 (linux_request_interrupt): Delete "signal_pid".
6971 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
6972 (lynx_ptrace_fun): New function.
6973 (lynx_create_inferior): Adjust function prototype to reflect
6974 change on "target.h". Adjust function code to use
6976 * nto-low.c (nto_create_inferior): Adjust function prototype and
6977 code to reflect change on "target.h". Update comments.
6978 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
6979 "common-terminal.h" and "environ.h".
6980 (terminal_fd): Moved to fork-child.c.
6981 (old_foreground_pgrp): Likewise.
6982 (restore_old_foreground_pgrp): Likewise.
6983 (last_status): Make it global.
6984 (last_ptid): Likewise.
6985 (our_environ): New variable.
6986 (startup_with_shell): Likewise.
6987 (program_name): Likewise.
6988 (program_argv): Rename to...
6989 (program_args): ...this.
6990 (wrapper_argv): New variable.
6991 (start_inferior): Delete function.
6992 (get_exec_wrapper): New function.
6993 (get_exec_file): Likewise.
6994 (get_environ): Likewise.
6995 (prefork_hook): Likewise.
6996 (post_fork_inferior): Likewise.
6997 (postfork_hook): Likewise.
6998 (postfork_child_hook): Likewise.
6999 (handle_v_run): Update code to deal with arguments coming from the
7000 remote host. Update calls from "start_inferior" to
7002 (captured_main): Likewise. Initialize environment variable. Call
7004 * server.h (post_fork_inferior): New prototype.
7005 (get_environ): Likewise.
7006 (last_status): Declare.
7007 (last_ptid): Likewise.
7008 (signal_pid): Likewise.
7009 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7010 (spu_ptrace_fun): New function.
7011 (spu_create_inferior): Adjust function prototype to reflect change
7012 on "target.h". Adjust function code to use "fork_inferior".
7013 * target.c (target_terminal_init): New function.
7014 (target_terminal_inferior): Likewise.
7015 (target_terminal_ours): Likewise.
7016 * target.h: Include <vector>.
7017 (struct target_ops) <create_inferior>: Update prototype.
7018 (create_inferior): Update macro.
7019 * utils.c (gdb_flush_out_err): New function.
7020 * win32-low.c (win32_create_inferior): Adjust function prototype
7021 and code to reflect change on "target.h".
7023 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7025 * inferiors.c (switch_to_thread): New function.
7027 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7029 * Makefile.in (SFILE): Add "common/job-control.c".
7030 (OBS): Add "job-control.o".
7032 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7034 * Makefile: Remove "@host_makefile_frag@".
7036 2017-05-05 Pedro Alves <palves@redhat.com>
7038 * configure: Regenerate.
7040 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7042 * configure: Regenerate.
7044 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7046 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
7047 software_single_step change of return type to
7048 std::vector<CORE_ADDR>.
7049 * linux-low.c (install_software_single_step_breakpoints):
7051 * linux-low.h (install_software_single_step_breakpoints):
7054 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7056 * remote-utils.c: Include "gdb_termios.h" instead of
7058 * terminal.h: Delete file.
7060 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7062 * server.c: Include <vector>.
7063 <program_argv, wrapper_argv>: Convert to std::vector.
7064 (start_inferior): Rewrite function to use C++.
7065 (handle_v_run): Likewise. Update code that calculates the argv
7066 based on the vRun packet; use C++.
7067 (captured_main): Likewise.
7069 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7071 * server.c (handle_v_cont): Initialize thread_resume::thread
7074 2017-04-05 Pedro Alves <palves@redhat.com>
7076 * configure: Regenerate.
7078 2017-04-05 Pedro Alves <palves@redhat.com>
7080 * gdbreplay.c (sync_error): Constify.
7081 * linux-x86-low.c (push_opcode): Constify.
7083 2017-04-05 Pedro Alves <palves@redhat.com>
7085 * win32-low.c (get_child_debug_event)
7086 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
7087 Report TARGET_WAITKIND_SPURIOUS instead.
7089 2017-04-05 Pedro Alves <palves@redhat.com>
7091 * remote-utils.c (remote_prepare, remote_open): Constify.
7092 * remote-utils.h (remote_prepare, remote_open): Constify.
7093 * server.c (captured_main): Constify 'port' handling.
7095 2017-04-04 Simon Marchi <simon.marchi@ericsson.com>
7097 * Makefile.in (clean): Clear .deps.
7099 2017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
7101 * .gitignore: Remove generated files, replace with wildcard.
7102 * (clean): Replace removal of generated files with wildcard.
7103 (version.c): Replace with...
7104 (version-generated.c): ...this.
7105 (xml-builtin.c): Replace with...
7106 (xml-builtin-generated.c): ...this.
7107 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
7108 (%.c: *regformats*): Replace with...
7109 (%-generated.c: *regformats*): ...this.
7111 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7113 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
7114 (xtensa_fill_gregset): Call collect_register_by_name for
7116 (xtensa_store_gregset): Call supply_register_by_name for
7119 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7121 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
7122 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
7123 (xtensa_store_gregset): Call supply_register for all registers in
7124 a0_regnum..a0_regnum + C0_NREGS range.
7126 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7128 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
7129 (ax-ipa.o: ax.c): Remove.
7130 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
7131 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
7132 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
7133 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
7134 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
7136 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7138 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
7139 (print-utils-ipa.o: ../common/print-utils.c): Remove.
7140 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
7141 (errors-ipa.o: ../common/errors.c): Remove.
7142 (format-ipa.o: ../common/format.c): Remove.
7143 (common-utils-ipa.o: ../common/common-utils.c): Remove.
7145 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7147 * Makefile.in (%-ipa.o: %.c): New rule.
7148 (tracepoint-ipa.o: tracepoint.c): Remove.
7149 (utils-ipa.o: utils.c): Remove.
7150 (remote-utils-ipa.o: remote-utils.c): Remove.
7151 (regcache-ipa.o: regcache.c): Remove.
7152 (i386-linux-ipa.o: i386-linux.c): Remove.
7153 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
7154 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
7155 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
7156 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
7157 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
7158 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
7159 (amd64-linux-ipa.o: amd64-linux.c): Remove.
7160 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
7161 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
7162 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
7163 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
7164 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
7165 (aarch64-ipa.o: aarch64.c): Remove.
7166 (s390-linux32-ipa.o: s390-linux32.c): Remove.
7167 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
7168 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
7169 (s390-linux64-ipa.o: s390-linux64.c): Remove.
7170 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
7171 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
7172 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
7173 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
7174 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
7175 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
7176 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
7177 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
7178 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
7179 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
7180 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
7181 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
7182 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
7183 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
7184 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
7185 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
7186 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
7187 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
7188 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
7189 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
7190 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
7191 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
7192 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
7193 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
7194 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
7195 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
7196 (tdesc-ipa.o: tdesc.c): Remove.
7197 (x32-linux-ipa.o: x32-linux.c): Remove.
7198 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
7199 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
7201 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7203 * Makefile.in (%.o: ../arch/%.c): New rule.
7204 (arm.o: ../arch/arm.c): Remove.
7205 (arm-linux.o: ../arch/arm-linux.c): Remove.
7206 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
7207 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
7209 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7211 * Makefile.in (%.o: ../nat/%.c): New rule.
7212 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
7213 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
7214 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
7215 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
7216 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
7217 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
7218 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
7219 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
7220 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
7221 (linux-personality.o: ../nat/linux-personality.c): Remove.
7222 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
7223 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
7224 (x86-linux.o: ../nat/x86-linux.c): Remove.
7225 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
7226 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
7228 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7230 * Makefile.in (%.o: ../common/%.c): New rule.
7231 (signals.o: ../common/signals.c): Remove.
7232 (print-utils.o: ../common/print-utils.c): Remove.
7233 (rsp-low.o: ../common/rsp-low.c): Remove.
7234 (common-utils.o: ../common/common-utils.c): Remove.
7235 (posix-strerror.o: ../common/posix-strerror.c): Remove.
7236 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
7237 (vec.o: ../common/vec.c): Remove.
7238 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
7239 (xml-utils.o: ../common/xml-utils.c): Remove.
7240 (ptid.o: ../common/ptid.c): Remove.
7241 (buffer.o: ../common/buffer.c): Remove.
7242 (format.o: ../common/format.c): Remove.
7243 (filestuff.o: ../common/filestuff.c): Remove.
7244 (agent.o: ../common/agent.c): Remove.
7245 (errors.o: ../common/errors.c): Remove.
7246 (environ.o: ../common/environ.c): Remove.
7247 (common-debug.o: ../common/common-debug.c): Remove.
7248 (cleanups.o: ../common/cleanups.c): Remove.
7249 (common-exceptions.o: ../common/common-exceptions.c): Remove.
7250 (fileio.o: ../common/fileio.c): Remove.
7251 (common-regcache.o: ../common/common-regcache.c): Remove.
7252 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
7253 (new-op.o: ../common/new-op.c): Remove.
7254 (btrace-common.o: ../common/btrace-common.c): Remove.
7256 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7258 * Makefile.in (%.o: ../target/%.c): New rule.
7259 (waitstatus.o: ../target/waitstatus.c): Remove.
7261 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7264 (%.c: ../regformats/%.dat,
7265 (%.c: ../regformats/arm/%.dat,
7266 (%.c: ../regformats/i386/%.dat,
7267 (%.c: ../regformats/rs6000/%.dat): New rules.
7268 (aarch64.c): Remove.
7269 (reg-arm.c): Remove.
7270 (arm-with-iwmmxt.c): Remove.
7271 (arm-with-vfpv2.c): Remove.
7272 (arm-with-vfpv3.c): Remove.
7273 (arm-with-neon.c): Remove.
7274 (reg-bfin.c): Remove.
7275 (reg-cris.c): Remove.
7276 (reg-crisv32.c): Remove.
7278 (i386-linux.c): Remove.
7279 (i386-avx.c): Remove.
7280 (i386-avx-linux.c): Remove.
7281 (i386-avx-avx512.c): Remove.
7282 (i386-avx-avx512-linux.c): Remove.
7283 (i386-mpx.c): Remove.
7284 (i386-mpx-linux.c): Remove.
7285 (i386-avx-mpx-avx512-pku.c): Remove.
7286 (i386-avx-mpx-avx512-pku-linux.c): Remove.
7287 (i386-avx-mpx.c): Remove.
7288 (i386-avx-mpx-linux.c): Remove.
7289 (i386-mmx.c): Remove.
7290 (i386-mmx-linux.c): Remove.
7291 (reg-ia64.c): Remove.
7292 (reg-m32r.c): Remove.
7293 (reg-m68k.c): Remove.
7295 (mips-linux.c): Remove.
7296 (mips-dsp-linux.c): Remove.
7297 (mips64-linux.c): Remove.
7298 (mips64-dsp-linux.c): Remove.
7299 (nios2-linux.c): Remove.
7300 (powerpc-32.c): Remove.
7301 (powerpc-32l.c): Remove.
7302 (powerpc-altivec32l.c): Remove.
7303 (powerpc-cell32l.c): Remove.
7304 (powerpc-vsx32l.c): Remove.
7305 (powerpc-isa205-32l.c): Remove.
7306 (powerpc-isa205-altivec32l.c): Remove.
7307 (powerpc-isa205-vsx32l.c): Remove.
7308 (powerpc-e500l.c): Remove.
7309 (powerpc-64l.c): Remove.
7310 (powerpc-altivec64l.c): Remove.
7311 (powerpc-cell64l.c): Remove.
7312 (powerpc-vsx64l.c): Remove.
7313 (powerpc-isa205-64l.c): Remove.
7314 (powerpc-isa205-altivec64l.c): Remove.
7315 (powerpc-isa205-vsx64l.c): Remove.
7316 (s390-linux32.c): Remove.
7317 (s390-linux32v1.c): Remove.
7318 (s390-linux32v2.c): Remove.
7319 (s390-linux64.c): Remove.
7320 (s390-linux64v1.c): Remove.
7321 (s390-linux64v2.c): Remove.
7322 (s390-te-linux64.c): Remove.
7323 (s390-vx-linux64.c): Remove.
7324 (s390-tevx-linux64.c): Remove.
7325 (s390x-linux64.c): Remove.
7326 (s390x-linux64v1.c): Remove.
7327 (s390x-linux64v2.c): Remove.
7328 (s390x-te-linux64.c): Remove.
7329 (s390x-vx-linux64.c): Remove.
7330 (s390x-tevx-linux64.c): Remove.
7331 (tic6x-c64xp-linux.c): Remove.
7332 (tic6x-c64x-linux.c): Remove.
7333 (tic6x-c62x-linux.c): Remove.
7335 (reg-sparc64.c): Remove.
7336 (reg-spu.c): Remove.
7338 (amd64-linux.c): Remove.
7339 (amd64-avx.c): Remove.
7340 (amd64-avx-linux.c): Remove.
7341 (amd64-avx-avx512.c): Remove.
7342 (amd64-avx-avx512-linux.c): Remove.
7343 (amd64-mpx.c): Remove.
7344 (amd64-mpx-linux.c): Remove.
7345 (amd64-avx-mpx-avx512-pku.c): Remove.
7346 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
7347 (amd64-avx-mpx.c): Remove.
7348 (amd64-avx-mpx-linux.c): Remove.
7350 (x32-linux.c): Remove.
7351 (x32-avx.c): Remove.
7352 (x32-avx-linux.c): Remove.
7353 (x32-avx-avx512.c): Remove.
7354 (x32-avx-avx512-linux.c): Remove.
7355 (reg-xtensa.c): Remove.
7356 (reg-tilegx.c): Remove.
7357 (reg-tilegx32.c): Remove.
7359 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
7361 * Makefile.in (SFILES): Add "common/environ.c".
7362 (OBJS): Add "common/environ.h".
7364 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7366 * configure.ac: Check if the fs_base and gs_base members of
7367 `struct user_regs_struct' exist.
7368 * config.in: Regenerated.
7369 * configure: Likewise.
7371 2017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
7373 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
7375 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
7376 (get_next_pcs_syscall_next_pc): Likewise.
7378 2016-12-23 Luis Machado <lgustavo@codesourcery.com>
7380 * win32-i386-low.c: Fix incorrect reference to a couple source files.
7381 * nto-x86-low.c: Likewise.
7383 2016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
7385 * Makefile.in: Include disable-implicit-rules.mk.
7387 2016-11-23 Pedro Alves <palves@redhat.com>
7389 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
7390 (debug_vprintf): Use std::chrono::steady_clock instead of
7391 gettimeofday. Use '.' instead of ':'.
7392 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
7393 (get_timestamp): Use std::chrono::steady_clock instead of
7396 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7398 * Makefile.in: Fix whitespace formatting.
7400 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7402 * Makefile.in (SFILES, OBS): Flatten list and order
7405 2016-11-23 Pedro Alves <palves@redhat.com>
7407 * event-loop.c (handle_file_event): Use warning.
7408 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
7409 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
7412 2016-11-23 Pedro Alves <palves@redhat.com>
7414 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
7416 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
7417 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
7418 debug_printf and debug_flush for debug output.
7419 * server.c (handle_general_set): Likewise.
7420 * thread-db.c (try_thread_db_load): Use debug_printf for debug
7423 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7425 * Makefile.in (.c.o): Replace rule with ...
7426 (%.o: %.c): ... this one.
7428 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7430 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
7431 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
7433 * configure.ac: Remove checks for the make program.
7434 * configure: Re-generate.
7436 2016-10-28 Pedro Alves <palves@redhat.com>
7438 * Makefile.in (CXX_DIALECT): Get from configure.
7439 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
7440 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
7441 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
7442 * config.in: Regenerate.
7443 * configure: Regenerate.
7445 2016-10-27 Yao Qi <yao.qi@linaro.org>
7447 * linux-low.c (linux_supports_range_stepping): Return true if
7448 can_software_single_step return true.
7450 2016-10-27 Yao Qi <yao.qi@linaro.org>
7452 * inferiors.c (find_inferior_in_random): New function.
7453 * inferiors.h (find_inferior_in_random): Declare.
7454 * linux-low.c (linux_wait_for_event_filtered): Call
7455 find_inferior_in_random instead of find_inferior.
7457 2016-10-27 Yao Qi <yao.qi@linaro.org>
7459 * linux-low.c (linux_wait_1): If single-step breakpoints are
7460 inserted, remove them.
7462 2016-10-26 Pedro Alves <palves@redhat.com>
7464 * linux-low.c (handle_extended_wait): Link parent/child fork
7466 (linux_wait_1): Unlink them.
7467 (linux_set_resume_request): Ignore resume requests for
7468 already-resumed and unhandled fork child threads.
7469 * linux-low.h (struct lwp_info) <fork_relative>: New field.
7470 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
7472 (handle_v_requests) <vCont>: Don't call require_running.
7473 * server.h (in_queued_stop_replies): New declaration.
7475 2016-10-24 Yao Qi <yao.qi@linaro.org>
7478 * linux-aarch64-low.c (append_insns): Cast the return value to
7481 2016-10-10 Yao Qi <yao.qi@linaro.org>
7483 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
7485 2016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
7487 * target.c (target_supports_multi_process): New function, moved
7489 * target.h (target_supports_multi_process): ... here. Remove
7492 2016-10-05 Tom Tromey <tom@tromey.com>
7495 * tracepoint.c (handle_tracepoint_bkpts): Check
7496 ipa_error_tracepoint, not ipa_stopping_tracepoint.
7498 2016-10-05 Yao Qi <yao.qi@linaro.org>
7500 * configure.srv: Update the path of arm-*.xml files.
7502 2016-10-05 Terry Guo <terry.guo@arm.com>
7503 Yao Qi <yao.qi@linaro.org>
7505 * Makefile.in: Adjust the path of rules.
7506 * configure.srv: Update the path of xml files.
7507 * regformats/arm-with-iwmmxt.dat: Regenerated.
7508 * regformats/arm-with-neon.dat: Likewise.
7509 * regformats/arm-with-vfpv2.dat: Likewise.
7510 * regformats/arm-with-vfpv3.dat Likewise.
7512 2016-09-30 Yao Qi <yao.qi@linaro.org>
7515 * target.c (target_stop_and_wait): Don't call
7516 target_continue_no_signal, use resume_stop instead.
7518 2016-09-26 Yao Qi <yao.qi@linaro.org>
7520 * linux-low.c (linux_wait_1): Call debug_exit.
7522 2016-09-23 Pedro Alves <palves@redhat.com>
7524 * Makefile.in (SFILES): Add common/new-op.c.
7525 (OBS): Add common/new-op.o.
7526 (new-op.o): New rule.
7528 2016-09-21 Simon Marchi <simon.marchi@ericsson.com>
7530 * .gitinore: Ignore more files.
7532 2016-09-21 Yao Qi <yao.qi@linaro.org>
7534 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
7537 2016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
7539 * server.c (start_inferior): Call target_mourn_inferior instead of
7540 mourn_inferior; pass ptid_t argument to it.
7542 (handle_target_event): Likewise.
7543 * target.c (target_mourn_inferior): New function.
7544 * target.h (mourn_inferior): Delete macro.
7546 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
7548 * linux-low.c (lwp_is_stepping): New function.
7550 2016-09-06 Carl Love <cel@us.ibm.com>
7552 * server.c (start_inferior): Fixed comment, requested comment change
7553 didn't get updated correctly. Removed reference to ptrace () call as
7554 it is only true on Linux systems.
7556 2016-09-06 Carl Love <cel@us.ibm.com>
7558 * server.c (start_inferior): Do not call
7559 function target_post_create_inferior () if the
7560 inferior process has already exited.
7562 2016-09-05 Pedro Alves <palves@redhat.com>
7564 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
7565 (COMPILE.pre, CC_LD): Use CXX directly.
7566 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
7567 * acinclude.m4: Don't include build-with-cxx.m4.
7568 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
7569 * configure: Regenerate.
7571 2016-09-02 Akash Trehan <akash.trehan123@gmail.com>
7574 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
7575 call writing data to own_buf.
7577 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7579 * target.c (mywait): Call target_wait instead of
7581 (target_wait): New function.
7583 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7585 * server.c (start_inferior): New variable 'ptid'. Replace calls
7586 to the_target->resume by target_continue{,_no_signal}, depending
7588 * target.c (target_stop_and_wait): Call target_continue_no_signal
7589 instead of the_target->resume.
7590 (target_continue): New function.
7592 2016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
7594 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
7596 2016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7599 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
7601 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
7602 * linux-arm-low.c (ps_get_thread_area): Likewise.
7603 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
7604 * linux-m68k-low.c (ps_get_thread_area): Likewise.
7605 * linux-mips-low.c (ps_get_thread_area): Likewise.
7606 * linux-nios2-low.c (ps_get_thread_area): Likewise.
7607 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
7608 * linux-x86-low.c (ps_get_thread_area): Likewise.
7609 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
7611 2016-08-19 Pedro Alves <palves@redhat.com>
7613 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
7615 2016-08-19 Pedro Alves <palves@redhat.com>
7617 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
7618 comment. Use memcpy instead of casting through unsigned long.
7620 2016-08-19 Pedro Alves <palves@redhat.com>
7622 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
7623 allocating around 0x80000000.
7625 2016-08-19 Pedro Alves <palves@redhat.com>
7628 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
7629 (x32-avx512-linux-ipa.o): New rules.
7630 * configure.ac (x86_64-*-linux*): New x32 check.
7631 * configure.srv (ipa_x32_linux_regobj): New.
7632 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
7633 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
7635 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
7637 * configure: Regenerate.
7639 2016-08-09 Pedro Alves <palves@redhat.com>
7642 * Makefile.in (OBS): Add signals-state-save-restore.o.
7643 (signals-state-save-restore.o): New rule.
7644 * config.in: Regenerate.
7645 * configure: Regenerate.
7646 * linux-low.c: Include "signals-state-save-restore.h".
7647 (linux_create_inferior): Call
7648 restore_original_signals_state.
7649 * server.c: Include "dispositions-save-restore.h".
7650 (captured_main): Call save_original_signals_state.
7652 2016-08-05 Pedro Alves <palves@redhat.com>
7654 * configure: Regenerate.
7656 2016-08-04 Yao Qi <yao.qi@linaro.org>
7658 * linux-low.c (regsets_fetch_inferior_registers): Check
7659 errno is ESRCH or not.
7661 2016-08-02 Yao Qi <yao.qi@linaro.org>
7663 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
7664 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
7665 (thread_db_load_search): Update.
7666 (try_thread_db_load_1): Don't look for td_ta_event_addr,
7667 td_ta_set_event and td_ta_event_getmsg.
7669 2016-07-26 Pedro Alves <palves@redhat.com>
7672 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
7673 of unsigned long for 64-bit registers and use uint32_t instead of
7674 unsigned int for 32-bit registers.
7676 2016-07-26 Pedro Alves <palves@redhat.com>
7678 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
7681 2016-07-21 Tom Tromey <tom@tromey.com>
7683 * configure: Rebuild.
7685 2016-07-21 Yao Qi <yao.qi@linaro.org>
7687 * mem-break.c (find_gdb_breakpoint): Cast bp to
7688 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
7690 2016-07-21 Yao Qi <yao.qi@linaro.org>
7692 * server.c (handle_v_requests): Support s and S actions
7693 if target_supports_software_single_step return true.
7695 2016-07-21 Yao Qi <yao.qi@linaro.org>
7697 * linux-low.c (resume_stopped_resumed_lwps): If resume request
7698 is resume_step, call maybe_hw_step.
7699 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
7701 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
7703 (proceed_one_lwp): If resume request is resume_step, install
7704 reinsert breakpoints and call maybe_hw_step.
7706 2016-07-21 Yao Qi <yao.qi@linaro.org>
7708 * linux-low.c (proceed_one_lwp): Declare.
7709 (linux_resume_one_thread): Remove local variable 'step'.
7710 Lift code enqueue signal. Call proceed_one_lwp instead of
7711 linux_resume_one_lwp.
7713 2016-07-21 Yao Qi <yao.qi@linaro.org>
7715 * linux-low.c (linux_resume_one_thread): Call
7716 enqueue_pending_signal.
7718 2016-07-21 Yao Qi <yao.qi@linaro.org>
7720 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
7721 * inferiors.c (do_restore_current_thread_cleanup): New function.
7722 (make_cleanup_restore_current_thread): Likewise.
7723 * linux-low.c (install_software_single_step_breakpoints): Call
7724 make_cleanup_restore_current_thread. Switch current_thread to
7727 2016-07-21 Yao Qi <yao.qi@linaro.org>
7729 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
7730 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
7731 (clone_one_breakpoint): Likewise.
7732 (delete_reinsert_breakpoints): Change parameter to thread.
7734 (has_reinsert_breakpoints): Likewise.
7735 (uninsert_reinsert_breakpoints): Likewise.
7736 (reinsert_reinsert_breakpoints): Likewise.
7737 * mem-break.h (set_reinsert_breakpoint): Update declaration.
7738 (delete_reinsert_breakpoints): Likewise.
7739 (reinsert_reinsert_breakpoints): Likewise.
7740 (uninsert_reinsert_breakpoints): Likewise.
7741 (has_reinsert_breakpoints): Likewise.
7743 2016-07-21 Yao Qi <yao.qi@linaro.org>
7745 * inferiors.c (get_thread_process): Make parameter const.
7746 * inferiors.h (get_thread_process): Update declaration.
7747 * mem-break.c (clone_all_breakpoints): Remove all parameters.
7748 Add new parameters child_thread and parent_thread. Callers
7750 * mem-break.h (clone_all_breakpoints): Update declaration.
7752 2016-07-21 Yao Qi <yao.qi@linaro.org>
7754 * mem-break.c (struct breakpoint) <cond_list>: Remove.
7755 <command_list, handler>: Remove.
7756 (struct gdb_breakpoint): New.
7757 (struct other_breakpoint): New.
7758 (struct reinsert_breakpoint): New.
7759 (is_gdb_breakpoint): New function.
7760 (any_persistent_commands): Update command_list if
7761 is_gdb_breakpoint returns true.
7762 (set_breakpoint): Create breakpoints according to their types.
7763 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
7764 (set_gdb_breakpoint_1): Likewise.
7765 (set_gdb_breakpoint): Likewise.
7766 (clear_breakpoint_conditions): Change parameter type to
7767 'struct gdb_breakpoint *'.
7768 (clear_breakpoint_commands): Likewise.
7769 (clear_breakpoint_conditions_and_commands): Likewise.
7770 (add_condition_to_breakpoint): Likewise.
7771 (add_breakpoint_condition): Likewise.
7772 (add_commands_to_breakpoint): Likewise.
7773 (check_breakpoints): Check other_breakpoint.
7774 (clone_one_breakpoint): Clone breakpopint according to its type.
7775 * mem-break.h (struct gdb_breakpoint): Declare.
7776 (set_gdb_breakpoint): Update declaration.
7777 (clear_breakpoint_conditions_and_commands): Likewise.
7778 (add_breakpoint_condition): Likewise.
7779 (add_breakpoint_commands): Likewise.
7780 * server.c (process_point_options): Change parameter type to
7781 'struct gdb_breakpoint *'.
7783 2016-07-21 Yao Qi <yao.qi@linaro.org>
7785 * mem-break.c (set_breakpoint_at): Rename it to ...
7786 (set_breakpoint_type_at): ... it.
7787 (set_breakpoint_at): Call set_breakpoint_type_at.
7788 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
7789 * mem-break.h (set_breakpoint_at): Update comments.
7791 2016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
7793 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
7795 (nios2_store_gregset): Likewise.
7797 2016-07-01 Pedro Alves <palves@redhat.com>
7798 Antoine Tremblay <antoine.tremblay@ericsson.com>
7800 * linux-low.c: Change interface to take the target lwp_info
7801 pointer directly and return void. Handle detaching from a zombie
7803 (linux_detach_lwp_callback): New function.
7804 (linux_detach): Detach from the leader thread after detaching from
7807 2016-06-28 Yao Qi <yao.qi@linaro.org>
7809 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
7810 for variable new_offset.
7811 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
7812 (aarch64_ftrace_insn_reloc_cb): Likewise.
7813 (aarch64_ftrace_insn_reloc_tb): Likewise.
7814 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
7815 PRIx64 instead of PRIx32.
7817 2016-06-28 Yao Qi <yao.qi@linaro.org>
7819 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
7820 (the_low_target): Install arm_get_syscall_trapinfo.
7822 2016-06-28 Yao Qi <yao.qi@linaro.org>
7824 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
7826 (the_low_target): Install aarch64_get_syscall_trapinfo.
7828 2016-06-28 Yao Qi <yao.qi@linaro.org>
7830 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
7832 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
7833 Remove parameter sysno.
7834 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
7837 2016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7839 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
7840 (s390_emit_ne_goto): Likewise.
7841 (s390_emit_lt_goto): Likewise.
7842 (s390_emit_le_goto): Likewise.
7843 (s390_emit_gt_goto): Likewise.
7844 (s390_emit_ge_goto): Likewise.
7845 (s390x_emit_eq_goto): Likewise.
7846 (s390x_emit_ne_goto): Likewise.
7847 (s390x_emit_lt_goto): Likewise.
7848 (s390x_emit_le_goto): Likewise.
7849 (s390x_emit_gt_goto): Likewise.
7850 (s390x_emit_ge_goto): Likewise.
7851 (s390_emit_ops_impl): Mark variable static.
7852 (s390x_emit_ops): Likewise.
7854 2016-06-17 Yao Qi <yao.qi@linaro.org>
7856 * linux-low.c (handle_extended_wait): Call
7857 uninsert_reinsert_breakpoints for the parent process. Remove
7858 reinsert breakpoints from the child process. Reinsert them to
7859 the parent process when vfork is done.
7860 * mem-break.c (uninsert_reinsert_breakpoints): New function.
7861 (reinsert_reinsert_breakpoints): New function.
7862 * mem-break.h (uninsert_reinsert_breakpoints): Declare
7863 (reinsert_reinsert_breakpoints): Declare.
7865 2016-06-17 Yao Qi <yao.qi@linaro.org>
7867 * linux-low.c (handle_extended_wait): If the parent is doing
7868 step-over, remove the reinsert breakpoints from the forked child.
7870 2016-06-17 Yao Qi <yao.qi@linaro.org>
7872 * linux-low.c (unsuspend_all_lwps): Declare.
7873 (linux_low_filter_event): If thread exited, call finish_step_over.
7874 If step-over is finished, unsuspend other threads.
7876 2016-06-17 Yao Qi <yao.qi@linaro.org>
7878 * linux-low.c (linux_resume_one_lwp_throw): Assert
7879 has_reinsert_breakpoints returns false.
7880 * mem-break.c (delete_disabled_breakpoints): Assert
7881 bp type isn't reinsert_breakpoint.
7883 2016-06-17 Yao Qi <yao.qi@linaro.org>
7885 * linux-low.c (maybe_hw_step): New function.
7886 (linux_resume_one_lwp_throw): Call maybe_hw_step.
7887 (finish_step_over): Switch current_thread to lwp temporarily,
7888 and assert has_reinsert_breakpoints returns true.
7889 (proceed_one_lwp): Call maybe_hw_step.
7890 * mem-break.c (has_reinsert_breakpoints): New function.
7891 * mem-break.h (has_reinsert_breakpoints): Declare.
7893 2016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
7895 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
7897 2016-05-17 Yao Qi <yao.qi@linaro.org>
7899 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
7900 instead of find_inferior.
7902 2016-05-05 Yao Qi <yao.qi@linaro.org>
7904 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
7905 Initialize res to zero.
7907 2016-05-05 Yao Qi <yao.qi@linaro.org>
7909 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
7912 2016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7914 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
7915 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
7916 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
7918 2016-04-28 Par Olsson <par.olsson@windriver.com>
7919 Simon Marchi <simon.marchi@ericsson.com>
7921 * tracepoint.c (write_inferior_int8): New function.
7922 (cmd_qtenable_disable): Write enable flag using
7923 write_inferior_int8.
7925 2016-04-25 Yao Qi <yao.qi@linaro.org>
7927 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
7928 (need_step_over_p): Return zero if the LWP has pending signals
7929 can be delivered on software single step target.
7931 2016-04-25 Yao Qi <yao.qi@linaro.org>
7933 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
7934 return instead of error.
7936 2016-04-22 Yao Qi <yao.qi@linaro.org>
7938 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
7941 2016-04-22 Yao Qi <yao.qi@linaro.org>
7943 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
7944 signal when stepping over breakpoint with software single
7947 2016-04-21 Pedro Alves <palves@redhat.com>
7949 * linux-s390-low.c (s390_collect_ptrace_register)
7950 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
7952 (s390_check_regset): Use void * instead of gdb_byte *.
7954 2016-04-20 Pedro Alves <palves@redhat.com>
7956 * configure: Renegerate.
7958 2016-04-20 Yao Qi <yao.qi@linaro.org>
7960 * linux-aarch32-low.c: Include "arch/arm-linux.h".
7961 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
7963 (arm_store_gregset): Likewise.
7965 2016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
7967 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
7968 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
7969 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
7970 (amd64-avx-mpx-linux.c): New rules.
7971 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
7972 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
7973 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
7974 (srv_amd64_regobj): Add amd64-avx-mpx.o.
7975 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
7976 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
7977 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
7978 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
7979 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
7980 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
7981 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
7982 * linux-x86-low.c (x86_linux_read_description): Add case for
7983 X86_XSTATE_AVX_MPX_MASK.
7984 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
7985 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
7986 init_registers_i386_avx_mpx_linux.
7987 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
7988 (initialize_low_tracepoint): Call
7989 init_registers_i386_avx_mpx_linux.
7990 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
7991 (initialize_low_tracepoint): Call
7992 init_registers_amd64_avx_mpx_linux.
7993 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
7994 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
7995 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
7998 2016-04-18 Pedro Alves <palves@redhat.com>
8000 * configure: Regenerate.
8002 2016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
8004 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
8005 (aarch64_emit_sub): Likewise.
8007 2016-04-12 Pedro Alves <palves@redhat.com>
8009 * utils.c (prepare_to_throw_exception): Delete.
8011 2016-04-05 Simon Marchi <simon.marchi@ericsson.com>
8013 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
8015 2016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
8017 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
8019 2016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
8021 * linux-aarch64-ipa.c: Add <elf.h> include.
8022 * linux-ppc-ipa.c: Add <elf.h> include.
8023 * linux-s390-ipa.c: Add <elf.h> include.
8025 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8027 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
8028 (get_raw_reg_ptr): Likewise.
8029 (get_trace_state_variable_value_ptr): Likewise.
8030 (set_trace_state_variable_value_ptr): Likewise.
8031 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
8034 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
8035 Marcin Kościelnicki <koriakin@0x04.net>
8038 * linux-ppc-low.c (emit_insns): New function.
8039 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
8040 (ppc_emit_prologue): New function.
8041 (ppc_emit_epilogue): New function.
8042 (ppc_emit_add): New function.
8043 (ppc_emit_sub): New function.
8044 (ppc_emit_mul): New function.
8045 (ppc_emit_lsh): New function.
8046 (ppc_emit_rsh_signed): New function.
8047 (ppc_emit_rsh_unsigned): New function.
8048 (ppc_emit_ext): New function.
8049 (ppc_emit_zero_ext): New function.
8050 (ppc_emit_log_not): New function.
8051 (ppc_emit_bit_and): New function.
8052 (ppc_emit_bit_or): New function.
8053 (ppc_emit_bit_xor): New function.
8054 (ppc_emit_bit_not): New function.
8055 (ppc_emit_equal): New function.
8056 (ppc_emit_less_signed): New function.
8057 (ppc_emit_less_unsigned): New function.
8058 (ppc_emit_ref): New function.
8059 (ppc_emit_const): New function.
8060 (ppc_emit_reg): New function.
8061 (ppc_emit_pop): New function.
8062 (ppc_emit_stack_flush): New function.
8063 (ppc_emit_swap): New function.
8064 (ppc_emit_stack_adjust): New function.
8065 (ppc_emit_call): New function.
8066 (ppc_emit_int_call_1): New function.
8067 (ppc_emit_void_call_2): New function.
8068 (ppc_emit_if_goto): New function.
8069 (ppc_emit_goto): New function.
8070 (ppc_emit_eq_goto): New function.
8071 (ppc_emit_ne_goto): New function.
8072 (ppc_emit_lt_goto): New function.
8073 (ppc_emit_le_goto): New function.
8074 (ppc_emit_gt_goto): New function.
8075 (ppc_emit_ge_goto): New function.
8076 (ppc_write_goto_address): New function.
8077 (ppc_emit_ops_impl): New static variable.
8078 (ppc64v1_emit_prologue): New function.
8079 (ppc64v2_emit_prologue): New function.
8080 (ppc64_emit_epilogue): New function.
8081 (ppc64_emit_add): New function.
8082 (ppc64_emit_sub): New function.
8083 (ppc64_emit_mul): New function.
8084 (ppc64_emit_lsh): New function.
8085 (ppc64_emit_rsh_signed): New function.
8086 (ppc64_emit_rsh_unsigned): New function.
8087 (ppc64_emit_ext): New function.
8088 (ppc64_emit_zero_ext): New function.
8089 (ppc64_emit_log_not): New function.
8090 (ppc64_emit_bit_and): New function.
8091 (ppc64_emit_bit_or): New function.
8092 (ppc64_emit_bit_xor): New function.
8093 (ppc64_emit_bit_not): New function.
8094 (ppc64_emit_equal): New function.
8095 (ppc64_emit_less_signed): New function.
8096 (ppc64_emit_less_unsigned): New function.
8097 (ppc64_emit_ref): New function.
8098 (ppc64_emit_const): New function.
8099 (ppc64v1_emit_reg): New function.
8100 (ppc64v2_emit_reg): New function.
8101 (ppc64_emit_pop): New function.
8102 (ppc64_emit_stack_flush): New function.
8103 (ppc64_emit_swap): New function.
8104 (ppc64v1_emit_call): New function.
8105 (ppc64v2_emit_call): New function.
8106 (ppc64v1_emit_int_call_1): New function.
8107 (ppc64v2_emit_int_call_1): New function.
8108 (ppc64v1_emit_void_call_2): New function.
8109 (ppc64v2_emit_void_call_2): New function.
8110 (ppc64_emit_if_goto): New function.
8111 (ppc64_emit_eq_goto): New function.
8112 (ppc64_emit_ne_goto): New function.
8113 (ppc64_emit_lt_goto): New function.
8114 (ppc64_emit_le_goto): New function.
8115 (ppc64_emit_gt_goto): New function.
8116 (ppc64_emit_ge_goto): New function.
8117 (ppc64v1_emit_ops_impl): New static variable.
8118 (ppc64v2_emit_ops_impl): New static variable.
8119 (ppc_emit_ops): New function.
8120 (linux_low_target): Wire in ppc_emit_ops.
8122 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
8123 Marcin Kościelnicki <koriakin@0x04.net>
8126 * Makefile.in: Add powerpc-*-ipa.o
8127 * configure.srv: Add ipa_obj for powerpc*-linux.
8128 * linux-ppc-ipa.c: New file.
8129 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
8131 (PPC_FIELD): New macro.
8132 (PPC_SEXT): New macro.
8133 (PPC_OP6): New macro.
8134 (PPC_BO): New macro.
8135 (PPC_LI): New macro.
8136 (PPC_BD): New macro.
8137 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
8138 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
8139 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
8140 (ppc_get_thread_area): New function.
8141 (is_elfv2_inferior): New function.
8142 (gen_ds_form): New function.
8143 (GEN_STD): New macro.
8144 (GEN_STDU): New macro.
8145 (GEN_LD): New macro.
8146 (GEN_LDU): New macro.
8147 (gen_d_form): New function.
8148 (GEN_ADDI): New macro.
8149 (GEN_ADDIS): New macro.
8150 (GEN_LI): New macro.
8151 (GEN_LIS): New macro.
8152 (GEN_ORI): New macro.
8153 (GEN_ORIS): New macro.
8154 (GEN_LWZ): New macro.
8155 (GEN_STW): New macro.
8156 (GEN_STWU): New macro.
8157 (gen_xfx_form): New function.
8158 (GEN_MFSPR): New macro.
8159 (GEN_MTSPR): New macro.
8160 (GEN_MFCR): New macro.
8161 (GEN_MTCR): New macro.
8162 (GEN_SYNC): New macro.
8163 (GEN_LWSYNC): New macro.
8164 (gen_x_form): New function.
8165 (GEN_OR): New macro.
8166 (GEN_MR): New macro.
8167 (GEN_LWARX): New macro.
8168 (GEN_STWCX): New macro.
8169 (GEN_CMPW): New macro.
8170 (gen_md_form): New function.
8171 (GEN_RLDICL): New macro.
8172 (GEN_RLDICR): New macro.
8173 (gen_i_form): New function.
8175 (GEN_BL): New macro.
8176 (gen_b_form): New function.
8177 (GEN_BNE): New macro.
8178 (GEN_LOAD): New macro.
8179 (GEN_STORE): New macro.
8180 (gen_limm): New function.
8181 (gen_atomic_xchg): New function.
8182 (gen_call): New function.
8183 (ppc_relocate_instruction): New function.
8184 (ppc_install_fast_tracepoint_jump_pad): New function.
8185 (ppc_get_min_fast_tracepoint_insn_len): New function.
8186 (ppc_get_ipa_tdesc_idx): New function.
8187 (the_low_target): Wire in the new functions.
8188 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
8190 * linux-ppc-tdesc.h: New file.
8192 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8194 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8195 (alloc_jump_pad_buffer): New function.
8196 * linux-amd64-ipa.c: Add <sys/mman.h> include.
8197 (alloc_jump_pad_buffer): New function.
8198 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
8199 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8200 (alloc_jump_pad_buffer): New function.
8201 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
8202 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
8203 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
8204 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
8206 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8208 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
8209 * linux-amd64-ipa.c: Likewise.
8210 * linux-i386-ipa.c: Likewise.
8211 * linux-s390-ipa.c: Likewise.
8212 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
8213 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
8214 set_trace_state_variable_value_ptr.
8215 (struct ipa_sym_addresses): Likewise.
8216 (symbol_list): Likewise.
8217 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
8218 accessing gdb_collect directly.
8219 (gdb_collect_ptr_type): New typedef.
8220 (get_raw_reg_ptr_type): New typedef.
8221 (get_trace_state_variable_value_ptr_type): New typedef.
8222 (set_trace_state_variable_value_ptr_type): New typedef.
8223 (gdb_collect_ptr): New global.
8224 (get_raw_reg_ptr): New global.
8225 (get_trace_state_variable_value_ptr): New global.
8226 (set_trace_state_variable_value_ptr): New global.
8227 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
8228 accessing get_raw_reg directly.
8229 (get_get_tsv_func_addr): Likewise for
8230 get_trace_state_variable_value_ptr.
8231 (get_set_tsv_func_addr): Likewise for
8232 set_trace_state_variable_value_ptr.
8233 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
8235 2016-03-30 Simon Marchi <simon.marchi@ericsson.com>
8237 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
8239 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8241 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
8243 (relocate_instruction): Remove own_buf.
8244 * server.c (own_buf): Make global.
8245 (handle_v_requests): Make global.
8246 * server.h (own_buf): New declaration.
8247 (handle_v_requests): New prototype.
8249 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8252 * linux-s390-low.c (add_insns): New function.
8253 (s390_emit_prologue): New function.
8254 (s390_emit_epilogue): New function.
8255 (s390_emit_add): New function.
8256 (s390_emit_sub): New function.
8257 (s390_emit_mul): New function.
8258 (s390_emit_lsh): New function.
8259 (s390_emit_rsh_signed): New function.
8260 (s390_emit_rsh_unsigned): New function.
8261 (s390_emit_ext): New function.
8262 (s390_emit_log_not): New function.
8263 (s390_emit_bit_and): New function.
8264 (s390_emit_bit_or): New function.
8265 (s390_emit_bit_xor): New function.
8266 (s390_emit_bit_not): New function.
8267 (s390_emit_equal): New function.
8268 (s390_emit_less_signed): New function.
8269 (s390_emit_less_unsigned): New function.
8270 (s390_emit_ref): New function.
8271 (s390_emit_if_goto): New function.
8272 (s390_emit_goto): New function.
8273 (s390_write_goto_address): New function.
8274 (s390_emit_litpool): New function.
8275 (s390_emit_const): New function.
8276 (s390_emit_call): New function.
8277 (s390_emit_reg): New function.
8278 (s390_emit_pop): New function.
8279 (s390_emit_stack_flush): New function.
8280 (s390_emit_zero_ext): New function.
8281 (s390_emit_swap): New function.
8282 (s390_emit_stack_adjust): New function.
8283 (s390_emit_set_r2): New function.
8284 (s390_emit_int_call_1): New function.
8285 (s390_emit_void_call_2): New function.
8286 (s390_emit_eq_goto): New function.
8287 (s390_emit_ne_goto): New function.
8288 (s390_emit_lt_goto): New function.
8289 (s390_emit_le_goto): New function.
8290 (s390_emit_gt_goto): New function.
8291 (s390_emit_ge_goto): New function.
8292 (s390x_emit_prologue): New function.
8293 (s390x_emit_epilogue): New function.
8294 (s390x_emit_add): New function.
8295 (s390x_emit_sub): New function.
8296 (s390x_emit_mul): New function.
8297 (s390x_emit_lsh): New function.
8298 (s390x_emit_rsh_signed): New function.
8299 (s390x_emit_rsh_unsigned): New function.
8300 (s390x_emit_ext): New function.
8301 (s390x_emit_log_not): New function.
8302 (s390x_emit_bit_and): New function.
8303 (s390x_emit_bit_or): New function.
8304 (s390x_emit_bit_xor): New function.
8305 (s390x_emit_bit_not): New function.
8306 (s390x_emit_equal): New function.
8307 (s390x_emit_less_signed): New function.
8308 (s390x_emit_less_unsigned): New function.
8309 (s390x_emit_ref): New function.
8310 (s390x_emit_if_goto): New function.
8311 (s390x_emit_const): New function.
8312 (s390x_emit_call): New function.
8313 (s390x_emit_reg): New function.
8314 (s390x_emit_pop): New function.
8315 (s390x_emit_stack_flush): New function.
8316 (s390x_emit_zero_ext): New function.
8317 (s390x_emit_swap): New function.
8318 (s390x_emit_stack_adjust): New function.
8319 (s390x_emit_int_call_1): New function.
8320 (s390x_emit_void_call_2): New function.
8321 (s390x_emit_eq_goto): New function.
8322 (s390x_emit_ne_goto): New function.
8323 (s390x_emit_lt_goto): New function.
8324 (s390x_emit_le_goto): New function.
8325 (s390x_emit_gt_goto): New function.
8326 (s390x_emit_ge_goto): New function.
8327 (s390_emit_ops): New function.
8328 (struct linux_target_ops): Fill in emit_ops hook.
8330 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8333 * Makefile.in: Add s390 IPA files.
8334 * configure.srv: Build IPA for s390.
8335 * linux-s390-ipa.c: New file.
8336 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
8337 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
8338 (tdesc_s390_linux32): Likewise.
8339 (init_registers_s390_linux32v1): Likewise.
8340 (tdesc_s390_linux32v1): Likewise.
8341 (init_registers_s390_linux32v2): Likewise.
8342 (tdesc_s390_linux32v2): Likewise.
8343 (init_registers_s390_linux64): Likewise.
8344 (tdesc_s390_linux64): Likewise.
8345 (init_registers_s390_linux64v1): Likewise.
8346 (tdesc_s390_linux64v1): Likewise.
8347 (init_registers_s390_linux64v2): Likewise.
8348 (tdesc_s390_linux64v2): Likewise.
8349 (init_registers_s390_te_linux64): Likewise.
8350 (tdesc_s390_te_linux64): Likewise.
8351 (init_registers_s390_vx_linux64): Likewise.
8352 (tdesc_s390_vx_linux64): Likewise.
8353 (init_registers_s390_tevx_linux64): Likewise.
8354 (tdesc_s390_tevx_linux64): Likewise.
8355 (init_registers_s390x_linux64): Likewise.
8356 (tdesc_s390x_linux64): Likewise.
8357 (init_registers_s390x_linux64v1): Likewise.
8358 (tdesc_s390x_linux64v1): Likewise.
8359 (init_registers_s390x_linux64v2): Likewise.
8360 (tdesc_s390x_linux64v2): Likewise.
8361 (init_registers_s390x_te_linux64): Likewise.
8362 (tdesc_s390x_te_linux64): Likewise.
8363 (init_registers_s390x_vx_linux64): Likewise.
8364 (tdesc_s390x_vx_linux64): Likewise.
8365 (init_registers_s390x_tevx_linux64): Likewise.
8366 (tdesc_s390x_tevx_linux64): Likewise.
8367 (have_hwcap_s390_vx): New static variable.
8368 (s390_arch_setup): Fill have_hwcap_s390_vx.
8369 (s390_get_thread_area): New function.
8370 (s390_ft_entry_gpr_esa): New const.
8371 (s390_ft_entry_gpr_zarch): New const.
8372 (s390_ft_entry_misc): New const.
8373 (s390_ft_entry_fr): New const.
8374 (s390_ft_entry_vr): New const.
8375 (s390_ft_main_31): New const.
8376 (s390_ft_main_64): New const.
8377 (s390_ft_exit_fr): New const.
8378 (s390_ft_exit_vr): New const.
8379 (s390_ft_exit_misc): New const.
8380 (s390_ft_exit_gpr_esa): New const.
8381 (s390_ft_exit_gpr_zarch): New const.
8382 (append_insns): New function.
8383 (s390_relocate_instruction): New function.
8384 (s390_install_fast_tracepoint_jump_pad): New function.
8385 (s390_get_min_fast_tracepoint_insn_len): New function.
8386 (s390_get_ipa_tdesc_idx): New function.
8387 (struct linux_target_ops): Wire in the above functions.
8388 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
8389 * linux-s390-tdesc.h: New file.
8391 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8393 * linux-s390-low.c (s390_supports_tracepoints): New function.
8394 (struct linux_target_ops): Fill supports_tracepoints hook.
8396 2016-03-18 Yao Qi <yao.qi@linaro.org>
8398 * linux-low.c (lwp_signal_can_be_delivered): New function.
8399 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
8401 2016-03-18 Yao Qi <yao.qi@linaro.org>
8403 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
8404 0 if signal is enqueued. Remove 'signal' from one debugging
8405 message. Move one debugging message to some lines below.
8406 Remove code setting 'signal' to 0.
8408 2016-03-18 Yao Qi <yao.qi@linaro.org>
8410 * linux-low.c (linux_low_filter_event): Remove redundant
8411 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
8413 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
8415 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
8416 (struct linux_target_ops): Wire in the above.
8418 2016-03-03 Yao Qi <yao.qi@linaro.org>
8420 * linux-low.c: Update comments to start_step_over.
8422 2016-03-03 Yao Qi <yao.qi@linaro.org>
8425 * linux-low.c (handle_extended_wait): Set child suspended
8426 if event_lwp->bp_reinsert isn't zero.
8428 2016-03-02 Yao Qi <yao.qi@linaro.org>
8430 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
8431 enqueue_pending_signal.
8433 2016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
8435 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
8438 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8440 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
8441 (s390_regmap_3264) [!__s390x__]: New global.
8442 (s390_collect_ptrace_register): Skip map entries containing -1.
8443 (s390_supply_ptrace_register): Ditto.
8444 (s390_fill_gprs_high): New function.
8445 (s390_store_gprs_high): New function.
8446 (s390_regsets): Add NT_S390_HIGH_GPRS.
8447 (s390_get_hwcap): Enable on 31-bit.
8448 (have_hwcap_s390_high_gprs): Enable on 31-bit.
8449 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
8450 Detect NT_S390_HIGH_GPRS.
8451 (s390_usrregs_info_3264): Enable on 31-bit.
8452 (s390_regs_info): Enable regs_info_3264 on 31-bit.
8453 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
8455 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8458 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
8459 * configure.srv: Ditto.
8460 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
8461 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
8462 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
8463 (init_registers_amd64_linux): Remove prototype.
8464 (tdesc_amd64_linux): Remove declaration.
8465 (get_ipa_tdesc): New function.
8466 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8467 initialize remaining tdescs.
8468 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
8469 (init_registers_i386_linux): Remove prototype.
8470 (tdesc_i386_linux): Remove declaration.
8471 (get_ipa_tdesc): New function.
8472 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8473 initialize remaining tdescs.
8474 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
8475 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
8476 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
8477 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
8478 (x86_get_ipa_tdesc_idx): New function.
8479 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
8480 * linux-x86-tdesc.h: New file.
8481 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
8482 (target_get_ipa_tdesc_idx): New macro.
8483 * tracepoint.c (ipa_tdesc_idx): New macro.
8484 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
8485 (symbol_list): Add ipa_tdesc_idx.
8486 (cmd_qtstart): Write ipa_tdesc_idx in the target.
8487 (ipa_tdesc): Remove.
8488 (ipa_tdesc_idx): New variable.
8489 (get_context_regcache): Use get_ipa_tdesc.
8490 (gdb_collect): Ditto.
8492 * tracepoint.h (get_ipa_tdesc): New prototype.
8493 (ipa_tdesc): Remove.
8495 2016-02-24 Pedro Alves <palves@redhat.com>
8497 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
8498 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
8499 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
8500 Factor out common code between the USE_SIGTRAP_SIGINFO and
8501 !USE_SIGTRAP_SIGINFO blocks.
8502 (linux_low_filter_event): Call save_stop_reason instead of
8503 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
8505 (linux_wait_1): Update comments.
8507 2016-02-24 Wei-cheng Wang <cole945@gmail.com>
8509 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
8510 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
8511 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
8512 ppc_insert_point, ppc_remove_point.
8514 2016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
8516 * linux-s390-low.c (s390_supports_z_point_type): New function.
8517 (struct linux_target_ops): Wire s390_supports_z_point_type in.
8519 2016-02-16 Yao Qi <yao.qi@linaro.org>
8521 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
8522 PC. Get pc from regcache_read_pc.
8524 2016-02-12 Yao Qi <yao.qi@linaro.org>
8526 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
8527 or linux_get_pc_32bit.
8528 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
8530 2016-02-12 Yao Qi <yao.qi@linaro.org>
8532 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
8533 arm_linux_get_next_pcs_fixup.
8535 2016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
8537 * tracepoint.c (x_tracepoint_action_download): Change
8538 write_inferior_data_ptr to write_inferior_data_pointer.
8539 (cmd_qtstart): Likewise.
8540 (write_inferior_data_ptr): Remove.
8541 (download_agent_expr): Change write_inferior_data_ptr to
8542 write_inferior_data_pointer.
8543 (download_tracepoint_1): Likewise.
8544 (download_tracepoint): Likewise.
8545 (download_trace_state_variables): Likewise.
8547 2016-02-11 Wei-cheng Wang <cole945@gmail.com>
8548 Marcin Kościelnicki <koriakin@0x04.net>
8550 * tracepoint.c (struct tracepoint_action_ops): Remove.
8551 (struct tracepoint_action): Remove ops.
8552 (m_tracepoint_action_download, r_tracepoint_action_download)
8553 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
8554 size and offset accordingly.
8555 (m_tracepoint_action_ops, r_tracepoint_action_ops)
8556 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
8557 (tracepoint_action_send, tracepoint_action_download): New functions.
8558 Helpers for trace action handlers.
8559 (add_tracepoint_action): Remove setup actions ops.
8560 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
8562 2016-02-10 Yao Qi <yao.qi@linaro.org>
8564 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
8566 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8568 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
8570 * configure: Regenerate.
8572 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8574 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
8575 void * to gdb_byte *.
8576 * linux-low.c (siginfo_fixup): Likewise.
8577 (linux_xfer_siginfo): Likewise.
8578 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
8580 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
8582 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
8584 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
8586 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
8588 * linux-x86-low.c [__x86_64__]: Include
8589 "nat/amd64-linux-siginfo.h".
8590 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
8591 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
8592 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
8593 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
8594 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
8595 (cpt_si_fd, si_timerid, si_overrun): Move from
8596 nat/amd64-linux-siginfo.c.
8597 * Makefile.in (amd64-linux-siginfo.o:): New rule.
8599 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
8601 * server.c (skip_to_semicolon): Remove.
8602 (process_point_options): Use strchrnul instead of
8605 2016-01-26 Yao Qi <yao.qi@linaro.org>
8607 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
8608 * linux-low.c (install_software_single_step_breakpoints): Don't
8609 call regcache_read_pc.
8610 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
8613 2016-01-26 Yao Qi <yao.qi@linaro.org>
8615 * linux-low.c (install_software_single_step_breakpoints): Call
8616 regcache_read_pc instead of get_pc.
8618 2016-01-26 Yao Qi <yao.qi@linaro.org>
8620 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
8621 (unblock_async_io): Rename to ...
8622 (block_unblock_async_io): ... it. New function.
8623 (enable_async_io): Don't install SIGIO handler. Unblock it
8625 (disable_async_io): Don't ignore SIGIO. Block it instead.
8626 (initialize_async_io): Install SIGIO handler. Don't call
8629 2016-01-26 Yao Qi <yao.qi@linaro.org>
8631 * remote-utils.c (getpkt): If the buffer isn't empty, and the
8632 first character is '\003', call *the_target->request_interrupt.
8634 2016-01-25 Yao Qi <yao.qi@linaro.org>
8636 * remote-utils.c (new_thread_notify): Remove.
8637 (dead_thread_notify): Likewise.
8638 * remote-utils.h (new_thread_notify): Remove declaration.
8639 (dead_thread_notify): Likewise.
8641 2016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
8643 * gdb.trace/pending.exp: Fix expected message on continue.
8645 2016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
8647 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
8648 it works properly on big-endian machines where sizeof (CORE_ADDR)
8651 2016-01-21 Pedro Alves <palves@redhat.com>
8653 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
8654 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
8655 * configure: Regenerate.
8657 2016-01-21 Yao Qi <yao.qi@linaro.org>
8659 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
8660 is_thumb and set it according to CPSR saved on the stack.
8661 (get_next_pcs_syscall_next_pc): Pass is_thumb to
8662 arm_sigreturn_next_pc.
8664 2016-01-18 Yao Qi <yao.qi@linaro.org>
8666 * linux-low.c (linux_set_pc_64bit): New function.
8667 (linux_get_pc_64bit): New function.
8668 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
8670 * linux-sparc-low.c (debug_threads): Remove declaration.
8671 (sparc_get_pc): Remove.
8672 (the_low_target): Use linux_get_pc_64bit instead of
8674 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
8675 (the_low_target): Use linux_get_pc_64bit and
8678 2016-01-18 Yao Qi <yao.qi@linaro.org>
8680 * linux-arm-low.c (debug_threads): Remove declaration.
8681 (arm_get_pc, arm_set_pc): Remove.
8682 (the_low_target): Use linux_get_pc_32bit and
8684 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
8685 (the_low_target): Use linux_get_pc_32bit and
8687 * linux-cris-low.c (debug_threads): Remove declaration.
8688 (cris_get_pc, cris_set_pc,): Remove.
8689 (the_low_target): Use linux_get_pc_32bit and
8691 * linux-crisv32-low.c (debug_threads): Remove declaration.
8692 (cris_get_pc, cris_set_pc): Remove.
8693 (the_low_target): Use linux_get_pc_32bit and
8695 * linux-low.c: Include inttypes.h.
8696 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
8697 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
8698 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
8699 (the_low_target): Use linux_get_pc_32bit and
8701 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
8702 (the_low_target): Use linux_get_pc_32bit and
8704 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
8705 (the_low_target): Use linux_get_pc_32bit and
8707 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
8708 (the_low_target): Use linux_get_pc_32bit and
8710 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
8711 (the_low_target): Use linux_get_pc_32bit and
8714 2016-01-18 Gary Benson <gbenson@redhat.com>
8716 * configure.ac (AC_FUNC_FORK): New check.
8717 * config.in: Regenerate.
8718 * configure: Likewise.
8720 2016-01-14 Yao Qi <yao.qi@linaro.org>
8722 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
8723 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
8724 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
8725 arm_get_next_pcs_ctor.
8727 2016-01-12 Josh Stone <jistone@redhat.com>
8728 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8730 * inferiors.h: Include "gdb_vecs.h".
8731 (struct process_info): Add syscalls_to_catch.
8732 * inferiors.c (remove_process): Free syscalls_to_catch.
8733 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
8734 syscall_return stops.
8735 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
8736 * server.c (handle_general_set): Handle QCatchSyscalls.
8737 (handle_query): Report support for QCatchSyscalls.
8738 * target.h (struct target_ops): Add supports_catch_syscall.
8739 (target_supports_catch_syscall): New macro.
8740 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
8741 (struct lwp_info): Add syscall_state.
8742 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
8743 Maintain syscall_state and syscalls_to_catch across exec.
8744 (get_syscall_trapinfo): New function, proxy to the_low_target.
8745 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
8746 (linux_low_filter_event): Toggle syscall_state entry/return for
8747 syscall traps, and set it ignored for all others.
8748 (gdb_catching_syscalls_p): New function.
8749 (gdb_catch_this_syscall_p): New function.
8750 (linux_wait_1): Handle SYSCALL_SIGTRAP.
8751 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
8752 (linux_supports_catch_syscall): New function.
8753 (linux_target_ops): Install it.
8754 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
8755 (the_low_target): Install it.
8757 2016-01-12 Mike Frysinger <vapier@gentoo.org>
8759 * acinclude.m4: Include new ../warning.m4 file.
8760 * configure: Regenerated.
8761 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
8763 2016-01-12 Mike Frysinger <vapier@gentoo.org>
8765 * ax.c (is_goto_target): Mark static.
8766 * linux-low.c (register_addr): Likewise.
8767 (linux_fetch_registers, linux_store_registers): Likewise.
8768 * mem-break.c (any_persistent_commands): Fix old prototype.
8769 (add_commands_to_breakpoint): Mark static.
8770 * regcache.c (find_register_by_name): Delete unused func.
8771 * remote-utils.c (hex_or_minus_one): Mark static.
8772 * server.c (monitor_show_help): Mark static.
8773 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
8774 handle_v_requests): Likewise.
8776 2016-01-12 Pedro Alves <palves@redhat.com>
8778 Remove use of the registered trademark symbol throughout.
8780 2016-01-08 Yao Qi <yao.qi@linaro.org>
8782 * remote-utils.c (getpkt): If c is '\003', call target hook
8785 2016-01-06 Yao Qi <yao.qi@linaro.org>
8787 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
8788 linux-aarch32-low.c.
8789 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8790 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
8791 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8792 (thumb2_breakpoint): Declare.
8793 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
8794 linux-aarch32-low.h.
8795 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8796 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
8797 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8799 2016-01-01 Joel Brobecker <brobecker@adacore.com>
8801 * gdbreplay.c (gdbreplay_version): Change copyright year in
8803 * server.c (gdbserver_version): Likewise.
8805 2015-12-28 Patrick Palka <patrick@parcs.ath.cx>
8807 * server.c (crc32_table): Delete.
8808 (crc32): Use libiberty's xcrc32 function.
8810 2015-12-22 Joel Brobecker <brobecker@adacore.com>
8812 * lynx-low.c (lynx_delete_thread_callback): New function.
8813 (lynx_mourn): Properly delete our process and all of its
8814 threads. Remove call to clear_inferiors.
8816 2015-12-22 Joel Brobecker <brobecker@adacore.com>
8818 * target.c (thread_search_callback): Add check that
8819 the thread_stopped target callback is not NULL before
8822 2015-12-21 Yao Qi <yao.qi@linaro.org>
8824 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
8827 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8829 * server.c (handle_query): Call target_supports_software_single_step.
8831 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8833 * linux-low.c (single_step): New function.
8834 (linux_resume_one_lwp_throw): Call single_step.
8835 (start_step_over): Likewise.
8837 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8839 * Makefile.in (SFILES): Append arch/arm-linux.c,
8840 arch/arm-get-next-pcs.c.
8841 (arm-linux.o): New rule.
8842 (arm-get-next-pcs.o): New rule.
8843 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
8845 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
8846 to linux-aarch32-low.c.
8847 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8848 (arm_breakpoint_len, thumb_breakpoint): Likewise.
8849 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
8850 (thumb2_breakpoint_len): Likewise.
8851 (arm_is_thumb_mode): Make non-static.
8852 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
8853 from linux-aarch32-low.c.
8854 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8855 (arm_breakpoint_len, thumb_breakpoint): Likewise.
8856 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
8857 (thumb2_breakpoint_len): Likewise.
8858 (arm_is_thumb_mode): New declaration.
8859 * linux-arm-low.c: Include arch/arm-linux.h
8860 aarch/arm-get-next-pcs.h, sys/syscall.h.
8861 (get_next_pcs_ops): New struct.
8862 (get_next_pcs_addr_bits_remove): New function.
8863 (get_next_pcs_is_thumb): New function.
8864 (get_next_pcs_read_memory_unsigned_integer): Likewise.
8865 (arm_sigreturn_next_pc): Likewise.
8866 (get_next_pcs_syscall_next_pc): Likewise.
8867 (arm_gdbserver_get_next_pcs): Likewise.
8868 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
8870 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
8871 * server.h: Include gdb_vecs.h.
8873 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8875 * Makefile.in (SFILES): Append common/common-regcache.c.
8876 (OBS): Append common-regcache.o.
8877 (common-regcache.o): New rule.
8878 * regcache.c (init_register_cache): Initialize cache to
8880 (regcache_raw_read_unsigned): New function.
8881 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
8882 register_status enum.
8884 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8886 * linux-aarch64-low.c (the_low_targets): Rename
8887 breakpoint_reinsert_addr to get_next_pcs.
8888 * linux-arm-low.c (the_low_targets): Likewise.
8889 * linux-bfin-low.c (the_low_targets): Likewise.
8890 * linux-cris-low.c (the_low_targets): Likewise.
8891 * linux-crisv32-low.c (the_low_targets): Likewise.
8892 * linux-low.c (can_software_single_step): Likewise.
8893 (install_software_single_step_breakpoints): New function.
8894 (start_step_over): Use install_software_single_step_breakpoints.
8895 * linux-low.h: New CORE_ADDR vector.
8896 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
8898 * linux-mips-low.c (the_low_targets): Likewise.
8899 * linux-nios2-low.c (the_low_targets): Likewise.
8900 * linux-sparc-low.c (the_low_targets): Likewise.
8902 2015-12-17 Pedro Alves <palves@redhat.com>
8904 * linux-low.c (linux_kill_one_lwp): Remove references to
8906 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
8908 (linux_init_signals): Delete.
8909 (initialize_low): Adjust.
8910 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
8912 2015-12-16 Pedro Alves <palves@redhat.com>
8914 * configure.ac (compiler warning flags): When testing a
8915 -Wno-foo option, check whether -Wfoo works instead.
8916 * configure: Regenerate.
8918 2015-12-11 Don Breazeal <donb@codesourcery.com>
8920 * server.c (process_serial_event): Don't exit from gdbserver
8921 in remote mode if there are still active inferiors.
8923 2015-12-11 Yao Qi <yao.qi@linaro.org>
8925 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
8926 arm_breakpoint_at if the process is 32-bit.
8928 2015-12-11 Yao Qi <yao.qi@linaro.org>
8930 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
8933 2015-12-07 Yao Qi <yao.qi@linaro.org>
8935 * configure.srv: Append arm.o to srv_tgtobj for
8936 aarch64*-*-linux* target.
8937 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
8938 from linux-arm-low.c.
8939 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8940 (arm_breakpoint_len, thumb_breakpoint): Likewise.
8941 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
8942 (thumb2_breakpoint_len): Likewise.
8943 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
8944 (arm_breakpoint_kinds): Likewise.
8945 (arm_breakpoint_kind_from_pc): Likewise.
8946 (arm_sw_breakpoint_from_kind): Likewise.
8947 (arm_breakpoint_kind_from_current_state): Likewise.
8948 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
8949 (arm_sw_breakpoint_from_kind): Declare.
8950 (arm_breakpoint_kind_from_current_state): Declare.
8951 (arm_breakpoint_at): Declare.
8952 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
8953 arm_sw_breakpoint_from_kind if process is 32-bit.
8954 (aarch64_breakpoint_kind_from_pc): New function.
8955 (aarch64_breakpoint_kind_from_current_state): New function.
8956 (the_low_target): Initialize fields breakpoint_kind_from_pc
8957 and breakpoint_kind_from_current_state.
8958 * linux-arm-low.c (arm_breakpoint_kinds): Move to
8959 linux-aarch32-low.c.
8960 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
8961 (arm_breakpoint, arm_breakpoint_len): Likewise.
8962 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
8963 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8964 (arm_is_thumb_mode): Likewise.
8965 (arm_breakpoint_at): Likewise.
8966 (arm_breakpoint_kind_from_pc): Likewise.
8967 (arm_sw_breakpoint_from_kind): Likewise.
8968 (arm_breakpoint_kind_from_current_state): Likewise.
8971 2015-08-04 Yao Qi <yao.qi@linaro.org>
8973 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
8974 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
8975 * server.c (extended_protocol): Remove "static".
8976 * server.h (extended_protocol): Declare it.
8978 2015-12-04 Josh Stone <jistone@redhat.com>
8980 * target.h (struct target_ops) <arch_setup>: Rename to ...
8981 (struct target_ops) <post_create_inferior>: ... this.
8982 (target_arch_setup): Rename to ...
8983 (target_post_create_inferior): ... this, calling post_create_inferior.
8984 * server.c (start_inferior): Update target_arch_setup calls to
8985 target_post_create_inferior.
8986 * linux-low.c (linux_low_ptrace_options): Forward declare.
8987 (linux_arch_setup): Update its comment for general use.
8988 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
8989 (struct linux_target_ops): Use linux_post_create_inferior.
8990 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
8991 to post_create_inferior.
8992 * nto-low.c (struct nto_target_ops): Likewise.
8993 * spu-low.c (struct spu_target_ops): Likewise.
8994 * win32-low.c (struct win32_target_ops): Likewise.
8996 2015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
8998 * linux-arm-low.c: Remove duplicate arch/arm.h include.
9000 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9002 * linux-arm-low.c (arm_reinsert_addr): Remove function.
9003 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
9004 * linux-cris-low.c (cris_reinsert_addr> Remove function.
9005 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9006 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
9007 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9008 * linux-mips-low.c (mips_reinsert_addr): Remove function.
9009 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9010 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
9011 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9012 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
9013 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9015 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9017 * linux-low.c (linux_look_up_symbols): Don't call
9018 linux_supports_traceclone.
9019 * linux-low.h (thread_db_init): Remove use_events argument.
9020 * thread-db.c (thread_db_use_event): Remove global variable.
9021 (struct thread_db) <td_thr_event_enable_p>: Remove field.
9022 (struct thread_db) <td_create_bp>: Remove field.
9023 (thread_db_create_event): Remove function.
9024 (thread_db_enable_reporting): Likewise.
9025 (find_one_thread): Don't check for thread_db_use_events.
9026 (attach_thread): Likewise.
9027 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
9028 (try_thread_db_load_1): Don't check for thread_db_use_events.
9029 (thread_db_init): Remove use_events argument and thread events
9031 (remove_thread_event_breakpoints): Remove function.
9032 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
9034 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9036 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
9038 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9039 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
9040 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9041 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
9042 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
9044 * linux-crisv32-low.c (cris_supports_hardware_single_step):
9046 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9047 * linux-low.c (can_hardware_single_step): Use
9048 supports_hardware_single_step.
9049 (can_software_single_step): New function.
9050 (start_step_over): Call can_software_single_step.
9051 (linux_supports_hardware_single_step): New function.
9052 (struct target_ops) <supports_software_single_step>: Initialize.
9053 * linux-low.h (struct linux_target_ops)
9054 <supports_hardware_single_step>: Initialize.
9055 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
9056 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9057 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
9058 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
9059 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
9060 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9061 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
9062 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9063 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
9064 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
9066 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
9067 (struct linux_target_ops) <tile_supports_hardware_single_step>:
9069 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
9070 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9071 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
9073 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9074 * target.h (struct target_ops): <supports_software_single_step>:
9076 (target_supports_software_single_step): New macro.
9078 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9080 * linux-low.c (linux_wait_1): Fix pc advance condition.
9081 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
9082 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
9084 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9086 * linux-arm-low.c (arm_is_thumb_mode): New function.
9087 (arm_breakpoint_at): Use arm_is_thumb_mode.
9088 (arm_breakpoint_kind_from_current_state): New function.
9089 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
9091 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
9092 (linux_breakpoint_kind_from_current_state): New function.
9093 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
9094 * linux-low.h (struct linux_target_ops)
9095 <breakpoint_kind_from_current_state>: New field.
9096 * target.h (struct target_ops): Likewise.
9097 (target_breakpoint_kind_from_current_state): New macro.
9099 2015-11-30 Pedro Alves <palves@redhat.com>
9101 * linux-low.c (linux_resume): Wake up the event loop before
9104 2015-11-30 Pedro Alves <palves@redhat.com>
9106 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
9108 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
9110 * target.c (struct thread_search): New structure.
9111 (thread_search_callback): New function.
9112 (prev_general_thread): New global.
9113 (prepare_to_access_memory, done_accessing_memory): New functions.
9114 * target.h (prepare_to_access_memory, done_accessing_memory):
9115 Replace macros with function declarations.
9117 2015-11-30 Pedro Alves <palves@redhat.com>
9120 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
9121 report TARGET_WAITKIND_NO_RESUMED.
9122 * remote-utils.c (prepare_resume_reply): Handle
9123 TARGET_WAITKIND_NO_RESUMED.
9124 * server.c (report_no_resumed): New global.
9125 (handle_query) <qSupported>: Handle "no-resumed+". Report
9126 "no-resumed+" support.
9127 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
9128 return error if the client doesn't support no-resumed events.
9129 (push_stop_notification): New function.
9130 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
9131 events if the client supports them.
9133 2015-11-30 Pedro Alves <palves@redhat.com>
9135 * linux-low.c (thread_still_has_status_pending_p): Don't check
9137 (lwp_resumed): New function.
9138 (status_pending_p_callback): Return early if the LWP is not
9139 supposed to be resumed.
9141 2015-11-30 Pedro Alves <palves@redhat.com>
9143 * linux-low.c (handle_extended_wait): Assert that the LWP's
9144 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
9145 thread create events, leave the new child's status pending.
9146 (linux_low_filter_event): If GDB wants to hear about thread exit
9147 events, leave the LWP marked dead and don't delete it.
9148 (linux_wait_for_event_filtered): Don't check for thread exit.
9149 (filter_exit_event): New function.
9150 (linux_wait_1): Use it, when returning an exit event.
9151 (linux_resume_one_lwp_throw): Assert that the LWP's
9152 waitstatus is TARGET_WAITKIND_IGNORE.
9153 * remote-utils.c (prepare_resume_reply): Handle
9154 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
9155 * server.c (report_thread_events): New global.
9156 (handle_general_set): Handle QThreadEvents.
9157 (handle_query) <qSupported>: Handle and report QThreadEvents+;
9158 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
9159 TARGET_WAITKIND_THREAD_EXITED.
9160 * server.h (report_thread_events): Declare.
9162 2015-11-30 Pedro Alves <palves@redhat.com>
9164 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
9165 the thread's last_resume_kind was resume_stop.
9167 2015-11-30 Pedro Alves <palves@redhat.com>
9169 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
9172 2015-11-30 Pedro Alves <palves@redhat.com>
9174 * server.c (handle_v_requests): Handle vCtrlC.
9176 2015-11-30 Pedro Alves <palves@redhat.com>
9178 * gdbthread.h (find_any_thread_of_pid): Declare.
9179 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
9181 * server.c (handle_query): If current_thread is NULL, look for
9182 another thread of the selected process.
9184 2015-11-26 Daniel Colascione <dancol@dancol.org>
9185 Simon Marchi <simon.marchi@ericsson.com>
9187 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
9188 * server.c (handle_qxfer_threads_worker): Refactor to include thread
9190 * target.h (struct target_ops) <thread_name>: New field.
9191 (target_thread_name): New macro.
9193 2015-11-23 Joel Brobecker <brobecker@adacore.com>
9195 * regcache.h (regcache_invalidate_pid): Add declaration.
9196 * regcache.c (regcache_invalidate_pid): New function, extracted
9197 from regcache_invalidate.
9198 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
9199 Add trivial documentation comment.
9200 * lynx-low.c: Use regcache_invalidate_pid instead of
9201 regcache_invalidate.
9203 2015-11-23 Joel Brobecker <brobecker@adacore.com>
9205 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
9206 and Elf64_auxv_t if the target is Android.
9208 2015-11-22 Doug Evans <xdje42@gmail.com>
9210 * target.h: #include <sys/types.h>.
9212 2015-11-19 Pedro Alves <palves@redhat.com>
9214 * linux-low.c (linux_process_qsupported): Change prototype.
9216 * linux-low.h (struct linux_target_ops) <process_qsupported>:
9218 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
9219 and adjust to loop over all features.
9220 * server.c (handle_query) <qSupported>: Adjust to call
9221 target_process_qsupported once, passing it a vector of unprocessed
9223 * target.h (struct target_ops) <process_qsupported>: Change
9225 (target_process_qsupported): Adjust.
9227 2015-11-19 Pedro Alves <palves@redhat.com>
9229 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
9231 * configure: Regenerate.
9233 2015-11-19 Pedro Alves <palves@redhat.com>
9235 * configure: Regenerate.
9237 2015-11-19 Yao Qi <yao.qi@linaro.org>
9239 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
9242 2015-11-19 Yao Qi <yao.qi@linaro.org>
9244 * linux-aarch64-low.c (enum aarch64_operand_type): New.
9245 (struct aarch64_operand): Move enum out.
9247 2015-11-19 Yao Qi <yao.qi@linaro.org>
9249 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
9250 struct user_fpsimd_state *.
9251 (aarch64_store_fpregset): Likewise.
9253 2015-11-19 Yao Qi <yao.qi@linaro.org>
9255 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
9256 struct user_pt_regs *.
9257 (aarch64_store_gregset): Likewise.
9259 2015-11-18 Pedro Alves <palves@redhat.com>
9261 * Makefile.in (all_object_files): Add $IPA_OBJS.
9263 2015-11-17 Pedro Alves <palves@redhat.com>
9265 * win32-low.c (win32_resume): Use gdb_signal_from_host,
9266 GDB_SIGNAL_0 and gdb_signal_to_string.
9268 2015-11-17 Pedro Alves <palves@redhat.com>
9270 * win32-low.c (handle_output_debug_string): Remove parameter.
9271 (win32_kill): Remove our_status local and adjust call to
9272 handle_output_debug_string.
9273 (get_child_debug_event): Adjust call to
9274 handle_output_debug_string.
9276 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9278 * linux-mips-low.c (mips_fill_gregset): Add cast.
9279 (mips_store_gregset): Likewise.
9280 (mips_fill_fpregset): Likewise.
9281 (mips_store_fpregset): Likewise.
9283 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9285 * linux-mips-low.c (mips_add_watchpoint): Rename private to
9288 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9290 * linux-mips-low.c (mips_linux_new_thread): Change type of
9291 watch_type to enum target_hw_bp_type.
9293 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9295 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
9296 Change return type to arm_hwbp_type.
9298 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9300 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
9301 (arm_store_gregset): Likewise.
9302 * linux-arm-low.c (arm_get_hwcap): Likewise.
9303 (arm_read_description): Likewise.
9305 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9307 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
9309 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9311 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
9312 (ppc_fill_vsxregset): Likewise.
9313 (ppc_store_vsxregset): Likewise.
9314 (ppc_fill_vrregset): Likewise.
9315 (ppc_store_vrregset): Likewise.
9316 (ppc_fill_evrregset): Likewise.
9317 (ppc_store_evrregset): Likewise.
9319 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9321 * linux-ppc-low.c (ppc_usrregs_info): Remove
9322 forward-declaration.
9323 (ppc_arch_setup): Move lower in file.
9325 2015-10-30 Simon Marchi <simon.marchi@ericsson.com>
9327 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
9328 (ps_pdwrite): Likewise.
9330 2015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
9332 * linux-arm-low.c (arm_new_thread): Move pointer dereference
9333 to after assert checks.
9335 2015-10-29 Simon Marchi <simon.marchi@ericsson.com>
9337 * proc-service.c (ps_pdread): Add/adjust casts.
9338 (ps_pdwrite): Add/adjust casts.
9340 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9342 * server.c (handle_search_memory_1): Cast return value of
9345 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9347 * server.c (write_qxfer_response): Change type of data to
9350 2015-10-29 Pedro Alves <palves@redhat.com>
9352 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
9354 2015-10-29 Pedro Alves <palves@redhat.com>
9356 * tracepoint.c (clear_installed_tracepoints): Add casts.
9358 2015-10-29 Pedro Alves <palves@redhat.com>
9360 * server.c (handle_v_cont, process_serial_event): Add enum
9361 gdb_signal casts to signal parsing code.
9363 2015-10-29 Pedro Alves <palves@redhat.com>
9365 * linux-low.h (NULL_REGSET): Define.
9366 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9367 * linux-arm-low.c (arm_regsets): Likewise.
9368 * linux-crisv32-low.c (cris_regsets): Likewise.
9369 * linux-m68k-low.c (m68k_regsets): Likewise.
9370 * linux-mips-low.c (mips_regsets): Likewise.
9371 * linux-nios2-low.c (nios2_regsets): Likewise.
9372 * linux-ppc-low.c (ppc_regsets): Likewise.
9373 * linux-s390-low.c (s390_regsets): Likewise.
9374 * linux-sh-low.c (sh_regsets): Likewise.
9375 * linux-sparc-low.c (sparc_regsets): Likewise.
9376 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9377 * linux-tile-low.c (tile_regsets): Likewise.
9378 * linux-x86-low.c (x86_regsets): Likewise.
9379 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9381 2015-10-29 Pedro Alves <palves@redhat.com>
9383 * linux-low.h (NULL_REGSET): Define.
9384 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9385 * linux-arm-low.c (arm_regsets): Likewise.
9386 * linux-crisv32-low.c (cris_regsets): Likewise.
9387 * linux-m68k-low.c (m68k_regsets): Likewise.
9388 * linux-mips-low.c (mips_regsets): Likewise.
9389 * linux-nios2-low.c (nios2_regsets): Likewise.
9390 * linux-ppc-low.c (ppc_regsets): Likewise.
9391 * linux-s390-low.c (s390_regsets): Likewise.
9392 * linux-sh-low.c (sh_regsets): Likewise.
9393 * linux-sparc-low.c (sparc_regsets): Likewise.
9394 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9395 * linux-tile-low.c (tile_regsets): Likewise.
9396 * linux-x86-low.c (x86_regsets): Likewise.
9397 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9399 2015-10-26 Doug Evans <dje@google.com>
9401 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
9403 2015-10-26 Doug Evans <dje@google.com>
9405 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
9407 2015-10-26 Doug Evans <dje@google.com>
9409 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
9411 (attach_thread, find_new_threads_callback): Ditto.
9413 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9415 * mem-break.h (set_breakpoint_data): Remove.
9417 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9419 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
9420 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9421 (initialize_low): Remove set_breakpoint_data call.
9422 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
9423 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
9424 (initialize_low): Remove set_breakpoint_data call.
9425 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
9426 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9427 (initialize_low): Remove set_breakpoint_data call.
9429 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9431 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
9432 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
9433 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
9434 * target.h (target_breakpoint_kind_from_pc): New macro.
9436 2015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
9438 * linux-low.c (default_breakpoint_kind_from_pc): New function.
9439 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
9440 the default breakpoint kind.
9442 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9444 * linux-arm-low.c (arm_supports_z_point_type): Add software
9447 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9449 * linux-arm-low.c: Refactor breakpoint definitions.
9450 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
9451 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
9453 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9455 * Makefile.in: Add arm.c/o.
9456 * configure.srv: Likewise.
9457 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
9458 (arm_breakpoint_kind_from_pc): New function.
9459 (arm_sw_breakpoint_from_kind): Return proper kind.
9460 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
9462 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9464 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
9466 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
9467 (struct raw_breakpoint) <size>: Remove.
9468 (struct raw_breakpoint) <kind>: Add.
9469 (bp_size): New function.
9470 (bp_opcode): Likewise.
9471 (find_raw_breakpoint_at): Adjust for kind.
9472 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
9473 (remove_memory_breakpoint): Adjust for kind call bp_size.
9474 (set_raw_breakpoint_at): Adjust for kind.
9475 (set_breakpoint): Likewise.
9476 (set_breakpoint_at): Call breakpoint_kind_from_pc.
9477 (delete_raw_breakpoint): Adjust for kind.
9478 (delete_breakpoint): Likewise.
9479 (find_gdb_breakpoint): Likewise.
9480 (set_gdb_breakpoint_1): Likewise.
9481 (set_gdb_breakpoint): Likewise.
9482 (delete_gdb_breakpoint_1): Likewise.
9483 (delete_gdb_breakpoint): Likewise.
9484 (uninsert_raw_breakpoint): Likewise.
9485 (reinsert_raw_breakpoint): Likewise.
9486 (set_breakpoint_data): Remove.
9487 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
9488 (check_mem_read): Adjust for kind call bp_size.
9489 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
9490 (clone_one_breakpoint): Adjust for kind.
9491 * mem-break.h (set_gdb_breakpoint): Likewise.
9492 (delete_gdb_breakpoint): Likewise.
9493 * server.c (process_serial_event): Likewise.
9495 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9497 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
9498 (struct linux_target_ops) <breakpoint>: Remove.
9499 (struct linux_target_ops) <breakpoint_len>: Remove.
9500 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9501 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9502 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
9503 (arm_sw_breakpoint_from_kind): New function.
9504 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
9505 (struct linux_target_ops) <breakpoint>: Remove.
9506 (struct linux_target_ops) <breakpoint_len>: Remove.
9507 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9508 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9509 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
9510 (struct linux_target_ops) <breakpoint>: Remove.
9511 (struct linux_target_ops) <breakpoint_len>: Remove.
9512 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9513 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9514 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
9515 (struct linux_target_ops) <breakpoint>: Remove.
9516 (struct linux_target_ops) <breakpoint_len>: Remove.
9517 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9518 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9519 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
9520 and sw_breakpoint_from_kind to increment the pc.
9521 (linux_breakpoint_kind_from_pc): New function.
9522 (linux_sw_breakpoint_from_kind): New function.
9523 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
9524 (initialize_low): Call breakpoint_kind_from_pc and
9525 sw_breakpoint_from_kind to replace breakpoint_data/len.
9526 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
9528 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
9529 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
9530 (struct linux_target_ops) <breakpoint>: Remove.
9531 (struct linux_target_ops) <breakpoint_len>: Remove.
9532 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9533 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9534 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
9535 (struct linux_target_ops) <breakpoint>: Remove.
9536 (struct linux_target_ops) <breakpoint_len>: Remove.
9537 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9538 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9539 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
9540 (struct linux_target_ops) <breakpoint>: Remove.
9541 (struct linux_target_ops) <breakpoint_len>: Remove.
9542 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9543 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9544 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
9545 (struct linux_target_ops) <breakpoint>: Remove.
9546 (struct linux_target_ops) <breakpoint_len>: Remove.
9547 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9548 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9549 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
9550 (struct linux_target_ops) <breakpoint>: Remove.
9551 (struct linux_target_ops) <breakpoint_len>: Remove.
9552 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9553 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9554 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
9555 (struct linux_target_ops) <breakpoint>: Remove.
9556 (struct linux_target_ops) <breakpoint_len>: Remove.
9557 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9558 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9559 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
9560 (struct linux_target_ops) <breakpoint>: Remove.
9561 (struct linux_target_ops) <breakpoint_len>: Remove.
9562 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9563 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9564 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
9565 (struct linux_target_ops) <breakpoint>: Remove.
9566 (struct linux_target_ops) <breakpoint_len>: Remove.
9567 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9568 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9569 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
9570 (struct linux_target_ops) <breakpoint>: Remove.
9571 (struct linux_target_ops) <breakpoint_len>: Remove.
9572 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9573 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9574 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
9575 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
9576 (struct linux_target_ops) <breakpoint>: Remove.
9577 (struct linux_target_ops) <breakpoint_len>: Remove.
9578 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9579 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9580 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
9581 (struct linux_target_ops) <breakpoint>: Remove.
9582 (struct linux_target_ops) <breakpoint_len>: Remove.
9583 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9584 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9586 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9588 * linux-cris-low.c (cris_get_pc): Remove void arg.
9590 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9592 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
9595 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9597 * inferiors.c (thread_pid_matches_callback): New function.
9598 (find_thread_process): New function.
9599 (remove_thread): Reset current_thread.
9600 (remove_process): Assert threads have been removed first.
9602 2015-10-15 Yao Qi <yao.qi@linaro.org>
9604 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
9606 (aarch64_remove_point): Likewise.
9607 * regcache.c (regcache_register_size): New function.
9609 2015-10-12 Yao Qi <yao.qi@linaro.org>
9611 * linux-aarch64-low.c: Update all callers as emit_load_store
9612 is renamed to aarch64_emit_load_store.
9614 2015-10-12 Yao Qi <yao.qi@linaro.org>
9616 * linux-aarch64-low.c: Update all callers of function renaming
9617 from emit_insn to aarch64_emit_insn.
9619 2015-10-12 Yao Qi <yao.qi@linaro.org>
9621 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
9622 arch/aarch64-insn.h.
9623 (struct aarch64_memory_operand): Likewise.
9625 (emit_insn): Move to arch/aarch64-insn.c.
9626 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
9627 (emit_load_store): Move to arch/aarch64-insn.c.
9628 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
9629 (can_encode_int32): Remove.
9631 2015-10-12 Yao Qi <yao.qi@linaro.org>
9633 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
9634 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
9635 (aarch64_relocate_instruction): Likewise.
9636 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
9637 (struct aarch64_insn_visitor): Likewise.
9639 2015-10-12 Yao Qi <yao.qi@linaro.org>
9641 * linux-aarch64-low.c (struct aarch64_insn_data): New.
9642 (struct aarch64_insn_visitor): New.
9643 (struct aarch64_insn_relocation_data): New.
9644 (aarch64_ftrace_insn_reloc_b): New function.
9645 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
9646 (aarch64_ftrace_insn_reloc_cb): Likewise.
9647 (aarch64_ftrace_insn_reloc_tb): Likewise.
9648 (aarch64_ftrace_insn_reloc_adr): Likewise.
9649 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
9650 (aarch64_ftrace_insn_reloc_others): Likewise.
9652 (aarch64_relocate_instruction): Use visitor.
9654 2015-10-12 Yao Qi <yao.qi@linaro.org>
9656 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
9657 int. Add argument buf.
9658 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
9659 aarch64_relocate_instruction.
9661 2015-10-12 Yao Qi <yao.qi@linaro.org>
9663 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
9664 argument insn. Remove local variable insn. Don't call
9666 (aarch64_install_fast_tracepoint_jump_pad): Call
9669 2015-09-30 Yao Qi <yao.qi@linaro.org>
9671 * linux-aarch64-low.c (emit_movk): Shorten a long line.
9672 (emit_load_store_pair): Likewise.
9674 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9676 * dll.c (match_dll): Add cast(s).
9677 (unloaded_dll): Likewise.
9678 * linux-low.c (second_thread_of_pid_p): Likewise.
9679 (delete_lwp_callback): Likewise.
9680 (count_events_callback): Likewise.
9681 (select_event_lwp_callback): Likewise.
9682 (linux_set_resume_request): Likewise.
9683 * server.c (accumulate_file_name_length): Likewise.
9684 (emit_dll_description): Likewise.
9685 (handle_qxfer_threads_worker): Likewise.
9686 (visit_actioned_threads): Likewise.
9687 * thread-db.c (any_thread_of): Likewise.
9688 * tracepoint.c (same_process_p): Likewise.
9689 (match_blocktype): Likewise.
9690 (build_traceframe_info_xml): Likewise.
9692 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9694 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
9696 (gdb_unparse_agent_expr): Likewise.
9697 * hostio.c (require_data): Likewise.
9698 (handle_pread): Likewise.
9699 * linux-low.c (disable_regset): Likewise.
9700 (fetch_register): Likewise.
9701 (store_register): Likewise.
9702 (get_dynamic): Likewise.
9703 (linux_qxfer_libraries_svr4): Likewise.
9704 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
9705 (set_fast_tracepoint_jump): Likewise.
9706 (uninsert_fast_tracepoint_jumps_at): Likewise.
9707 (reinsert_fast_tracepoint_jumps_at): Likewise.
9708 (validate_inserted_breakpoint): Likewise.
9709 (clone_agent_expr): Likewise.
9710 * regcache.c (init_register_cache): Likewise.
9711 * remote-utils.c (putpkt_binary_1): Likewise.
9712 (decode_M_packet): Likewise.
9713 (decode_X_packet): Likewise.
9714 (look_up_one_symbol): Likewise.
9715 (relocate_instruction): Likewise.
9716 (monitor_output): Likewise.
9717 * server.c (handle_search_memory): Likewise.
9718 (handle_qxfer_exec_file): Likewise.
9719 (handle_qxfer_libraries): Likewise.
9720 (handle_qxfer): Likewise.
9721 (handle_query): Likewise.
9722 (handle_v_cont): Likewise.
9723 (handle_v_run): Likewise.
9724 (captured_main): Likewise.
9725 * target.c (write_inferior_memory): Likewise.
9726 * thread-db.c (try_thread_db_load_from_dir): Likewise.
9727 * tracepoint.c (init_trace_buffer): Likewise.
9728 (add_tracepoint_action): Likewise.
9729 (add_traceframe): Likewise.
9730 (add_traceframe_block): Likewise.
9731 (cmd_qtdpsrc): Likewise.
9732 (cmd_qtdv): Likewise.
9733 (cmd_qtstatus): Likewise.
9734 (response_source): Likewise.
9735 (response_tsv): Likewise.
9736 (cmd_qtnotes): Likewise.
9737 (gdb_collect): Likewise.
9738 (initialize_tracepoint): Likewise.
9740 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9742 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
9743 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
9744 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
9746 (enum aarch64_condition_codes): New enum.
9747 (w0): New static global.
9750 (struct aarch64_memory_operand) <type>: New
9751 MEMORY_OPERAND_POSTINDEX type.
9752 (postindex_memory_operand): New helper function.
9753 (emit_ret): New function.
9754 (emit_load_store_pair): New function, factored out of emit_stp
9755 with support for MEMORY_OPERAND_POSTINDEX.
9756 (emit_stp): Rewrite using emit_load_store_pair.
9757 (emit_ldp): New function.
9758 (emit_load_store): Likewise.
9759 (emit_ldr): Mention post-index instruction in comment.
9760 (emit_ldrh): New function.
9761 (emit_ldrb): New function.
9762 (emit_ldrsw): Mention post-index instruction in comment.
9763 (emit_str): Likewise.
9764 (emit_subs): New function.
9765 (emit_cmp): Likewise.
9766 (emit_and): Likewise.
9767 (emit_orr): Likewise.
9768 (emit_orn): Likewise.
9769 (emit_eor): Likewise.
9770 (emit_mvn): Likewise.
9771 (emit_lslv): Likewise.
9772 (emit_lsrv): Likewise.
9773 (emit_asrv): Likewise.
9774 (emit_mul): Likewise.
9775 (emit_sbfm): Likewise.
9776 (emit_sbfx): Likewise.
9777 (emit_ubfm): Likewise.
9778 (emit_ubfx): Likewise.
9779 (emit_csinc): Likewise.
9780 (emit_cset): Likewise.
9781 (emit_nop): Likewise.
9782 (emit_ops_insns): New helper function.
9783 (emit_pop): Likewise.
9784 (emit_push): Likewise.
9785 (aarch64_emit_prologue): New function.
9786 (aarch64_emit_epilogue): Likewise.
9787 (aarch64_emit_add): Likewise.
9788 (aarch64_emit_sub): Likewise.
9789 (aarch64_emit_mul): Likewise.
9790 (aarch64_emit_lsh): Likewise.
9791 (aarch64_emit_rsh_signed): Likewise.
9792 (aarch64_emit_rsh_unsigned): Likewise.
9793 (aarch64_emit_ext): Likewise.
9794 (aarch64_emit_log_not): Likewise.
9795 (aarch64_emit_bit_and): Likewise.
9796 (aarch64_emit_bit_or): Likewise.
9797 (aarch64_emit_bit_xor): Likewise.
9798 (aarch64_emit_bit_not): Likewise.
9799 (aarch64_emit_equal): Likewise.
9800 (aarch64_emit_less_signed): Likewise.
9801 (aarch64_emit_less_unsigned): Likewise.
9802 (aarch64_emit_ref): Likewise.
9803 (aarch64_emit_if_goto): Likewise.
9804 (aarch64_emit_goto): Likewise.
9805 (aarch64_write_goto_address): Likewise.
9806 (aarch64_emit_const): Likewise.
9807 (aarch64_emit_call): Likewise.
9808 (aarch64_emit_reg): Likewise.
9809 (aarch64_emit_pop): Likewise.
9810 (aarch64_emit_stack_flush): Likewise.
9811 (aarch64_emit_zero_ext): Likewise.
9812 (aarch64_emit_swap): Likewise.
9813 (aarch64_emit_stack_adjust): Likewise.
9814 (aarch64_emit_int_call_1): Likewise.
9815 (aarch64_emit_void_call_2): Likewise.
9816 (aarch64_emit_eq_goto): Likewise.
9817 (aarch64_emit_ne_goto): Likewise.
9818 (aarch64_emit_lt_goto): Likewise.
9819 (aarch64_emit_le_goto): Likewise.
9820 (aarch64_emit_gt_goto): Likewise.
9821 (aarch64_emit_ge_got): Likewise.
9822 (aarch64_emit_ops_impl): New static global variable.
9823 (aarch64_emit_ops): New target function, return
9824 &aarch64_emit_ops_impl.
9825 (struct linux_target_ops): Install it.
9827 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9829 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
9830 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
9832 * linux-aarch64-ipa.c: New file.
9833 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
9835 (aarch64_get_thread_area): New target method.
9836 (extract_signed_bitfield): New helper function.
9837 (aarch64_decode_ldr_literal): New function.
9838 (enum aarch64_opcodes): New enum.
9839 (struct aarch64_register): New struct.
9840 (struct aarch64_operand): New struct.
9841 (x0): New static global.
9850 (aarch64_register): New helper function.
9851 (register_operand): Likewise.
9852 (immediate_operand): Likewise.
9853 (struct aarch64_memory_operand): New struct.
9854 (offset_memory_operand): New helper function.
9855 (preindex_memory_operand): Likewise.
9856 (enum aarch64_system_control_registers): New enum.
9857 (ENCODE): New macro.
9858 (emit_insn): New helper function.
9859 (emit_b): New function.
9860 (emit_bcond): Likewise.
9861 (emit_cb): Likewise.
9862 (emit_tb): Likewise.
9863 (emit_blr): Likewise.
9864 (emit_stp): Likewise.
9865 (emit_ldp_q_offset): Likewise.
9866 (emit_stp_q_offset): Likewise.
9867 (emit_load_store): Likewise.
9868 (emit_ldr): Likewise.
9869 (emit_ldrsw): Likewise.
9870 (emit_str): Likewise.
9871 (emit_ldaxr): Likewise.
9872 (emit_stxr): Likewise.
9873 (emit_stlr): Likewise.
9874 (emit_data_processing_reg): Likewise.
9875 (emit_data_processing): Likewise.
9876 (emit_add): Likewise.
9877 (emit_sub): Likewise.
9878 (emit_mov): Likewise.
9879 (emit_movk): Likewise.
9880 (emit_mov_addr): Likewise.
9881 (emit_mrs): Likewise.
9882 (emit_msr): Likewise.
9883 (emit_sevl): Likewise.
9884 (emit_wfe): Likewise.
9885 (append_insns): Likewise.
9886 (can_encode_int32_in): New helper function.
9887 (aarch64_relocate_instruction): New function.
9888 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
9889 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
9890 (struct linux_target_ops): Install aarch64_get_thread_area,
9891 aarch64_install_fast_tracepoint_jump_pad and
9892 aarch64_get_min_fast_tracepoint_insn_len.
9894 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9896 * Makefile.in (aarch64-insn.o): New rule.
9897 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
9899 2015-09-21 Yao Qi <yao.qi@linaro.org>
9901 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
9903 2015-09-21 Yao Qi <yao.qi@linaro.org>
9905 * tracepoint.c (max_jump_pad_size): Remove.
9907 2015-09-18 Yao Qi <yao.qi@linaro.org>
9909 * linux-aarch64-low.c: Don't include sys/uio.h.
9910 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
9912 2015-09-16 Wei-cheng Wang <cole945@gmail.com>
9914 * tracepoint.c (eval_result_type): Change prototype.
9915 (condition_true_at_tracepoint): Fix argument to compiled_cond.
9917 2015-09-15 Pedro Alves <palves@redhat.com>
9919 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
9920 Check whether to report exec events instead of checking whether
9921 multiprocess is enabled.
9923 2015-09-15 Pedro Alves <palves@redhat.com>
9926 * remote-utils.c (prepare_resume_reply): Merge
9927 TARGET_WAITKIND_VFORK_DONE switch case with the
9928 TARGET_WAITKIND_FORKED case.
9930 2015-09-15 Yao Qi <yao.qi@linaro.org>
9932 * server.c (handle_query): Check string comparison using
9933 "else if" instead of "if".
9935 2015-09-15 Yao Qi <yao.qi@linaro.org>
9937 * server.c (vCont_supported): New global variable.
9938 (handle_query): Set vCont_supported to 1 if "vContSupported+"
9939 matches. Append ";vContSupported+" to own_buf.
9940 (handle_v_requests): Append ";s;S" to own_buf if target supports
9941 hardware single step or vCont_supported is false.
9942 (capture_main): Set vCont_supported to zero.
9944 2015-09-15 Yao Qi <yao.qi@linaro.org>
9946 * linux-low.c (linux_supports_conditional_breakpoints): Rename
9948 (linux_supports_hardware_single_step): ... New function.
9949 (linux_target_ops): Update.
9950 * lynx-low.c (lynx_target_ops): Set field
9951 supports_hardware_single_step to target_can_do_hardware_single_step.
9952 * nto-low.c (nto_target_ops): Likewise.
9953 * spu-low.c (spu_target_ops): Likewise.
9954 * win32-low.c (win32_target_ops): Likewise.
9955 * target.c (target_can_do_hardware_single_step): New function.
9956 * target.h (struct target_ops) <supports_conditional_breakpoints>:
9957 Remove. <supports_hardware_single_step>: New field.
9958 (target_supports_conditional_breakpoints): Remove.
9959 (target_supports_hardware_single_step): New macro.
9960 (target_can_do_hardware_single_step): Declare.
9961 * server.c (handle_query): Use target_supports_hardware_single_step
9962 instead of target_supports_conditional_breakpoints.
9964 2015-09-15 Yao Qi <yao.qi@linaro.org>
9966 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
9968 (struct linux_target_ops the_low_target): Install
9969 aarch64_linux_siginfo_fixup.
9971 2015-09-11 Don Breazeal <donb@codesourcery.com>
9972 Luis Machado <lgustavo@codesourcery.com>
9974 * linux-low.c (linux_mourn): Static declaration.
9975 (linux_arch_setup): Move in front of
9976 handle_extended_wait.
9977 (linux_arch_setup_thread): New function.
9978 (handle_extended_wait): Handle exec events. Call
9979 linux_arch_setup_thread. Make event_lwp argument a
9980 pointer-to-a-pointer.
9981 (check_zombie_leaders): Do not check stopped threads.
9982 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
9983 (linux_low_filter_event): Add lwp and thread for exec'ing
9984 non-leader thread if leader thread has been deleted.
9985 Refactor code into linux_arch_setup_thread and call it.
9986 Pass child lwp pointer by reference to handle_extended_wait.
9987 (linux_wait_for_event_filtered): Update comment.
9988 (linux_wait_1): Prevent clobbering exec event status.
9989 (linux_supports_exec_events): New function.
9990 (linux_target_ops) <supports_exec_events>: Initialize new member.
9991 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
9993 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
9994 * server.c (report_exec_events): New global variable.
9995 (handle_query): Handle qSupported query for exec-events feature.
9996 (captured_main): Initialize report_exec_events.
9997 * server.h (report_exec_events): Declare new global variable.
9998 * target.h (struct target_ops) <supports_exec_events>: New
10000 (target_supports_exec_events): New macro.
10001 * win32-low.c (win32_target_ops) <supports_exec_events>:
10002 Initialize new member.
10004 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
10006 * linux-low.c (linux_low_enable_btrace): Remove.
10007 (linux_target_ops): Replace linux_low_enable_btrace with
10008 linux_enable_btrace.
10010 2015-09-03 Yao Qi <yao.qi@linaro.org>
10012 * linux-aarch64-low.c (aarch64_insert_point): Call
10013 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
10016 2015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10018 * linux-low.c (check_stopped_by_breakpoint): Use
10019 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
10021 2015-08-27 Pedro Alves <palves@redhat.com>
10023 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
10025 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
10027 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
10028 the XNEW-family equivalent.
10029 (compile_bytecodes): Likewise.
10030 * dll.c (loaded_dll): Likewise.
10031 * event-loop.c (append_callback_event): Likewise.
10032 (create_file_handler): Likewise.
10033 (create_file_event): Likewise.
10034 * hostio.c (handle_open): Likewise.
10035 * inferiors.c (add_thread): Likewise.
10036 (add_process): Likewise.
10037 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
10038 * linux-arm-low.c (arm_new_process): Likewise.
10039 (arm_new_thread): Likewise.
10040 * linux-low.c (add_to_pid_list): Likewise.
10041 (linux_add_process): Likewise.
10042 (handle_extended_wait): Likewise.
10043 (add_lwp): Likewise.
10044 (enqueue_one_deferred_signal): Likewise.
10045 (enqueue_pending_signal): Likewise.
10046 (linux_resume_one_lwp_throw): Likewise.
10047 (linux_resume_one_thread): Likewise.
10048 (linux_read_memory): Likewise.
10049 (linux_write_memory): Likewise.
10050 * linux-mips-low.c (mips_linux_new_process): Likewise.
10051 (mips_linux_new_thread): Likewise.
10052 (mips_add_watchpoint): Likewise.
10053 * linux-x86-low.c (initialize_low_arch): Likewise.
10054 * lynx-low.c (lynx_add_process): Likewise.
10055 * mem-break.c (set_raw_breakpoint_at): Likewise.
10056 (set_breakpoint): Likewise.
10057 (add_condition_to_breakpoint): Likewise.
10058 (add_commands_to_breakpoint): Likewise.
10059 (clone_agent_expr): Likewise.
10060 (clone_one_breakpoint): Likewise.
10061 * regcache.c (new_register_cache): Likewise.
10062 * remote-utils.c (look_up_one_symbol): Likewise.
10063 * server.c (queue_stop_reply): Likewise.
10064 (start_inferior): Likewise.
10065 (queue_stop_reply_callback): Likewise.
10066 (handle_target_event): Likewise.
10067 * spu-low.c (fetch_ppc_memory): Likewise.
10068 (store_ppc_memory): Likewise.
10069 * target.c (set_target_ops): Likewise.
10070 * thread-db.c (thread_db_load_search): Likewise.
10071 (try_thread_db_load_1): Likewise.
10072 * tracepoint.c (add_tracepoint): Likewise.
10073 (add_tracepoint_action): Likewise.
10074 (create_trace_state_variable): Likewise.
10075 (cmd_qtdpsrc): Likewise.
10076 (cmd_qtro): Likewise.
10077 (add_while_stepping_state): Likewise.
10078 * win32-low.c (child_add_thread): Likewise.
10079 (get_image_name): Likewise.
10081 2015-08-25 Yao Qi <yao.qi@linaro.org>
10083 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
10085 2015-08-25 Yao Qi <yao.qi@linaro.org>
10087 * Makefile.in (aarch64-linux.o): New rule.
10088 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
10090 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
10091 (aarch64_init_debug_reg_state): Make it extern.
10092 (aarch64_linux_prepare_to_resume): Remove.
10094 2015-08-25 Yao Qi <yao.qi@linaro.org>
10096 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
10097 lwp_arch_private_info and ptid_of_lwp.
10099 2015-08-25 Yao Qi <yao.qi@linaro.org>
10101 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
10102 Find proc_info by find_process_pid. All callers updated.
10104 2015-08-25 Yao Qi <yao.qi@linaro.org>
10106 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
10108 (debug_reg_change_callback): Remove.
10109 (aarch64_notify_debug_reg_change): Remove.
10111 2015-08-25 Yao Qi <yao.qi@linaro.org>
10113 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
10114 Call current_lwp_ptid.
10116 2015-08-25 Yao Qi <yao.qi@linaro.org>
10118 * linux-aarch64-low.c (debug_reg_change_callback): Use
10121 2015-08-25 Yao Qi <yao.qi@linaro.org>
10123 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
10125 2015-08-25 Yao Qi <yao.qi@linaro.org>
10127 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
10129 2015-08-25 Yao Qi <yao.qi@linaro.org>
10131 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
10134 2015-08-25 Yao Qi <yao.qi@linaro.org>
10136 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
10138 (debug_reg_change_callback): Remove argument entry and add argument
10139 lwp. Remove local variable thread. Don't print thread id in the
10140 debugging output. Don't check whether pid of thread equals to pid.
10141 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
10142 iterate_over_lwps instead find_inferior.
10144 2015-08-24 Pedro Alves <palves@redhat.com>
10146 * inferiors.c (get_first_process): New function.
10147 * inferiors.h (get_first_process): New declaration.
10148 * remote-utils.c (read_ptid): Default to the first process in the
10149 list, instead of to the current thread's process.
10151 2015-08-24 Pedro Alves <palves@redhat.com>
10153 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
10154 * event-loop.c: Likewise.
10155 * remote-utils.c: Likewise.
10156 * tracepoint.c: Likewise.
10158 2015-08-24 Pedro Alves <palves@redhat.com>
10160 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
10163 2015-08-21 Pedro Alves <palves@redhat.com>
10165 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
10166 instead of literal 1.
10168 2015-08-21 Pedro Alves <palves@redhat.com>
10170 * tdesc.c (default_description): Explicitly zero-initialize.
10172 2015-08-21 Pedro Alves <palves@redhat.com>
10175 * inferiors.c (remove_thread): Discard any pending stop reply for
10177 * server.c (remove_all_on_match_pid): Rename to ...
10178 (remove_all_on_match_ptid): ... this. Work with a filter ptid
10180 (discard_queued_stop_replies): Change parameter to a ptid. Now
10182 (handle_v_kill, kill_inferior_callback, captured_main)
10183 (process_serial_event): Adjust.
10184 * server.h (discard_queued_stop_replies): Declare.
10186 2015-08-21 Pedro Alves <palves@redhat.com>
10188 * linux-low.c (wait_for_sigstop): Always switch to no thread
10189 selected if the previously current thread dies.
10190 * lynx-low.c (lynx_request_interrupt): Use the first thread's
10191 process instead of the current thread's.
10192 * remote-utils.c (input_interrupt): Don't check if there's no
10194 * server.c (gdb_read_memory, gdb_write_memory): If setting the
10195 current thread to the general thread fails, error out.
10196 (handle_qxfer_auxv, handle_qxfer_libraries)
10197 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
10198 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
10199 (handle_query): Check if there's a thread selected instead of
10200 checking whether there's any thread in the thread list.
10201 (handle_qxfer_threads, handle_qxfer_btrace)
10202 (handle_qxfer_btrace_conf): Don't error out early if there's no
10203 thread in the thread list.
10204 (handle_v_cont, myresume): Don't set the current thread to the
10206 (process_serial_event) <Hg handling>: Also set thread_id if the
10207 previous general thread is still alive.
10208 (process_serial_event) <g/G handling>: If setting the current
10209 thread to the general thread fails, error out.
10210 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
10211 thread's lwp instead of the current thread's.
10212 * target.c (set_desired_thread): If the desired thread was not
10213 found, leave the current thread pointing to NULL. Return an int
10214 (boolean) indicating success.
10215 * target.h (set_desired_thread): Change return type to int.
10217 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
10219 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
10220 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
10222 (ps_get_thread_area): New function.
10224 2015-08-19 Gary Benson <gbenson@redhat.com>
10226 * hostio.c (handle_pread): Do not attempt to read more data
10227 than hostio_reply_with_data can fit in a packet.
10229 2015-08-18 Joel Brobecker <brobecker@adacore.com>
10231 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
10233 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
10235 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
10237 2015-08-06 Pedro Alves <palves@redhat.com>
10239 * tracepoint.c (expr_eval_result): Now an int.
10241 2015-08-06 Pedro Alves <palves@redhat.com>
10243 * gdbthread.h (struct regcache): Forward declare.
10244 (struct thread_info) <regcache_data>: Now a struct regcache
10246 * inferiors.c (inferior_regcache_data)
10247 (set_inferior_regcache_data): Now work with struct regcache
10249 * inferiors.h (struct regcache): Forward declare.
10250 (inferior_regcache_data, set_inferior_regcache_data): Now work
10251 with struct regcache pointers.
10252 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
10253 (free_register_cache_thread): Remove struct regcache pointer
10256 2015-08-06 Pedro Alves <palves@redhat.com>
10258 * server.c (captured_main): On error, print the exception message
10259 to stderr, and if run_once is set, throw a quit.
10261 2015-08-06 Pedro Alves <palves@redhat.com>
10263 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
10264 the current thread.
10266 2015-08-06 Pedro Alves <palves@redhat.com>
10268 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
10269 reading beyond the passed in buffer length.
10271 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
10273 * tracepoint.c (symbol_list) <required>: Remove.
10275 2015-08-06 Pedro Alves <palves@redhat.com>
10277 * linux-low.c (handle_extended_wait): Set the fork child's suspend
10278 count if stopping and suspending threads.
10279 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
10280 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
10281 (linux_detach): Complete an ongoing step-over.
10282 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
10284 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
10285 (linux_wait_1): If passing a signal to the inferior after
10286 finishing a step-over, unsuspend and re-resume all lwps. If we
10287 see a single-step event but the thread should be continuing, don't
10288 pass the trap to gdb.
10289 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
10290 internal_error instead of gdb_assert.
10291 (enqueue_pending_signal): New function.
10292 (check_ptrace_stopped_lwp_gone): Add debug output.
10293 (start_step_over): Use internal_error instead of gdb_assert.
10294 (complete_ongoing_step_over): New function.
10295 (linux_resume_one_thread): Don't resume a suspended thread.
10296 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
10299 2015-08-06 Pedro Alves <palves@redhat.com>
10301 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
10302 (linux_thread_alive): Use lwp_is_marked_dead.
10303 (extended_event_reported): Delete.
10304 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
10305 instead of extended_event_reported.
10306 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
10308 (lwp_is_marked_dead): New function.
10309 (lwp_running): Use lwp_is_marked_dead.
10310 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
10313 2015-08-06 Pedro Alves <palves@redhat.com>
10315 * linux-low.c (linux_wait_1): Move fork event output out of the
10316 !report_to_gdb check. Pass event_child->waitstatus to
10317 target_waitstatus_to_string instead of ourstatus.
10319 2015-08-04 Yao Qi <yao.qi@linaro.org>
10321 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
10322 if current_thread is 32 bit.
10324 2015-08-04 Yao Qi <yao.qi@linaro.org>
10326 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
10327 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
10328 * server.c (extended_protocol): Remove "static".
10329 * server.h (extended_protocol): Declare it.
10331 2015-08-04 Yao Qi <yao.qi@linaro.org>
10333 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
10334 both aarch64 and aarch32.
10335 (aarch64_set_pc): Likewise.
10337 2015-08-04 Yao Qi <yao.qi@linaro.org>
10339 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
10340 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
10341 arm-with-neon.xml to srv_xmlfiles.
10342 * linux-aarch64-low.c: Include linux-aarch32-low.h.
10343 (is_64bit_tdesc): New function.
10344 (aarch64_linux_read_description): New function.
10345 (aarch64_arch_setup): Call aarch64_linux_read_description.
10346 (regs_info): Rename to regs_info_aarch64.
10347 (aarch64_regs_info): Return right regs_info.
10348 (initialize_low_arch): Call initialize_low_arch_aarch32.
10350 2015-08-04 Yao Qi <yao.qi@linaro.org>
10352 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
10353 * linux-aarch32-low.c: New file.
10354 * linux-aarch32-low.h: New file.
10355 * linux-arm-low.c (arm_fill_gregset): Move it to
10356 linux-aarch32-low.c.
10357 (arm_store_gregset): Likewise.
10358 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
10359 (arm_store_vfpregset): Call arm_store_vfpregset_num.
10360 (arm_arch_setup): Check if PTRACE_GETREGSET works.
10361 (regs_info): Rename to regs_info_arm.
10362 (arm_regs_info): Return regs_info_aarch32 if
10363 have_ptrace_getregset is 1 and target description is
10364 arm_with_neon or arm_with_vfpv3.
10365 (initialize_low_arch): Don't call init_registers_arm_with_neon.
10366 Call initialize_low_arch_aarch32 instead.
10368 2015-08-04 Yao Qi <yao.qi@linaro.org>
10370 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
10371 * linux-low.c: ... here.
10372 * linux-low.h (have_ptrace_getregset): Declare it.
10374 2015-08-04 Pedro Alves <palves@redhat.com>
10376 * thread-db.c (struct thread_db): Use new typedefs.
10377 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
10379 (disable_thread_event_reporting): Cast result of dlsym to
10380 destination function pointer type.
10381 (thread_db_mourn): Use td_ta_delete_ftype.
10383 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
10385 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
10387 (CDX_BREAKPOINT): Define for R2.
10388 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
10389 (the_low_target): Add comments.
10391 2015-07-30 Yao Qi <yao.qi@linaro.org>
10393 * linux-arm-low.c (arm_hwcap): Remove it.
10394 (arm_read_description): New local variable arm_hwcap. Don't
10395 set arm_hwcap to zero.
10397 2015-07-30 Yao Qi <yao.qi@linaro.org>
10399 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
10400 Use regcache->tdesc instead.
10401 (arm_store_wmmxregset): Likewise.
10402 (arm_fill_vfpregset): Likewise.
10403 (arm_store_vfpregset): Likewise.
10405 2015-07-30 Yao Qi <yao.qi@linaro.org>
10407 * linux-arm-low.c: Include arch/arm.h.
10408 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
10409 (arm_store_gregset): Likewise.
10411 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
10413 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
10414 ptrace's 4th parameter.
10416 2015-07-27 Yao Qi <yao.qi@linaro.org>
10418 * configure.srv (case aarch64*-*-linux*): Don't set
10421 2015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
10423 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
10425 * linux-arm-low.c: Likewise.
10426 * linux-cris-low.c: Likewise.
10427 * linux-crisv32-low.c: Likewise.
10428 * linux-low.c: Likewise.
10429 * linux-m68k-low.c: Likewise.
10430 * linux-mips-low.c: Likewise.
10431 * linux-nios2-low.c: Likewise.
10432 * linux-s390-low.c: Likewise.
10433 * linux-sparc-low.c: Likewise.
10434 * linux-tic6x-low.c: Likewise.
10435 * linux-tile-low.c: Likewise.
10436 * linux-x86-low.c: Likewise.
10438 2015-07-24 Pedro Alves <palves@redhat.com>
10440 * config.in: Regenerate.
10441 * configure: Regenerate.
10443 2015-07-24 Pedro Alves <palves@redhat.com>
10445 * acinclude.m4: Include ../ptrace.m4.
10446 * configure.ac: Call GDB_AC_PTRACE.
10447 * config.in, configure: Regenerate.
10449 2015-07-24 Yao Qi <yao.qi@linaro.org>
10451 * linux-low.c (linux_create_inferior): Remove setting to
10452 proc->priv->new_inferior.
10453 (linux_attach): Likewise.
10454 (linux_low_filter_event): Likewise.
10455 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
10457 2015-07-24 Yao Qi <yao.qi@linaro.org>
10459 * linux-low.c (linux_arch_setup): New function.
10460 (linux_low_filter_event): If proc->tdesc is NULL and
10461 proc->attached is true, call the_low_target.arch_setup.
10462 Otherwise, keep status pending, and return.
10463 (linux_resume_one_lwp_throw): Don't call get_pc if
10464 thread->while_stepping isn't NULL. Don't call
10465 get_thread_regcache if proc->tdesc is NULL.
10466 (need_step_over_p): Return 0 if proc->tdesc is NULL.
10467 (linux_target_ops): Install arch_setup.
10468 * server.c (start_inferior): Call the_target->arch_setup.
10469 * target.h (struct target_ops) <arch_setup>: New field.
10470 (target_arch_setup): New marco.
10471 * lynx-low.c (lynx_target_ops): Update.
10472 * nto-low.c (nto_target_ops): Update.
10473 * spu-low.c (spu_target_ops): Update.
10474 * win32-low.c (win32_target_ops): Update.
10476 2015-07-24 Yao Qi <yao.qi@linaro.org>
10478 * linux-low.c (linux_add_process): Don't set
10479 proc->priv->new_inferior.
10480 (linux_create_inferior): Set proc->priv->new_inferior to 1.
10481 (linux_attach): Likewise.
10483 2015-07-24 Yao Qi <yao.qi@linaro.org>
10485 * server.c (start_inferior): Code refactor.
10487 2015-07-24 Yao Qi <yao.qi@linaro.org>
10489 * server.c (process_serial_event): Set general_thread.
10491 2015-07-21 Yao Qi <yao.qi@linaro.org>
10493 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
10494 aarch64_linux_get_debug_reg_capacity.
10496 2015-07-17 Yao Qi <yao.qi@linaro.org>
10498 * Makefile.in (aarch64-linux-hw-point.o): New rule.
10499 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
10500 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
10501 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
10502 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
10503 (AARCH64_HWP_ALIGNMENT): Likewise.
10504 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
10505 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
10506 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
10507 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
10508 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
10509 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
10510 (struct aarch64_debug_reg_state): Likewise.
10511 (struct arch_lwp_info): Likewise.
10512 (aarch64_align_watchpoint): Likewise.
10513 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
10514 (aarch64_watchpoint_length): Likewise.
10515 (aarch64_point_encode_ctrl_reg): Likewise
10516 (aarch64_point_is_aligned): Likewise.
10517 (aarch64_align_watchpoint): Likewise.
10518 (aarch64_linux_set_debug_regs):
10519 (aarch64_dr_state_insert_one_point): Likewise.
10520 (aarch64_dr_state_remove_one_point): Likewise.
10521 (aarch64_handle_breakpoint): Likewise.
10522 (aarch64_handle_aligned_watchpoint): Likewise.
10523 (aarch64_handle_unaligned_watchpoint): Likewise.
10524 (aarch64_handle_watchpoint): Likewise.
10526 2015-07-17 Yao Qi <yao.qi@linaro.org>
10528 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
10529 and don't aarch64_get_debug_reg_state. All callers update.
10530 (aarch64_handle_aligned_watchpoint): Likewise.
10531 (aarch64_handle_unaligned_watchpoint): Likewise.
10532 (aarch64_handle_watchpoint): Likewise.
10533 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
10534 (aarch64_remove_point): Likewise.
10536 2015-07-17 Yao Qi <yao.qi@linaro.org>
10538 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
10540 (aarch64_handle_unaligned_watchpoint): Likewise.
10542 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10544 Revert the previous 3 commits:
10545 Move gdb_regex* to common/
10546 Move linux_find_memory_regions_full & co.
10547 gdbserver build-id attribute generator
10549 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10550 Jan Kratochvil <jan.kratochvil@redhat.com>
10552 gdbserver build-id attribute generator.
10553 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
10554 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
10555 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
10557 (get_dynamic): Use find_pdhr to traverse program headers.
10558 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
10559 (compare_mapping_entry_range, struct find_memory_region_callback_data)
10560 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
10561 (get_hex_build_id): New.
10562 (linux_qxfer_libraries_svr4): Add optional build-id attribute
10563 to reply XML document.
10565 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10566 Jan Kratochvil <jan.kratochvil@redhat.com>
10568 * target.c: Include target/target-utils.h and fcntl.h.
10569 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
10570 (target_fileio_read_stralloc): New functions.
10572 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10574 * Makefile.in (OBS): Add gdb_regex.o.
10575 (gdb_regex.o): New.
10576 * config.in: Rebuilt.
10577 * configure: Rebuilt.
10579 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10580 Jan Kratochvil <jan.kratochvil@redhat.com>
10582 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
10583 * Makefile.in (OBS): Add target-utils.o.
10584 (linux-maps.o, target-utils.o): New.
10585 * configure.srv (srv_linux_obj): Add linux-maps.o.
10587 2015-07-15 Pierre Langlois <pierre.langlois@arm.com>
10589 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
10590 function, return 1.
10591 (the_low_target): Install it.
10593 2015-07-14 Pedro Alves <palves@redhat.com>
10595 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
10596 Instead, ignore ECHILD, and throw an error for other errnos.
10598 2015-07-10 Pedro Alves <palves@redhat.com>
10600 * event-loop.c (struct callback_event) <data>: Change type to
10601 gdb_client_data instance instead of gdb_client_data pointer.
10602 (append_callback_event): Adjust.
10604 2015-07-10 Pierre Langlois <pierre.langlois@arm.com>
10606 * linux-aarch64-low.c: Add comments for each linux_target_ops
10607 method. Remove comments already covered in target_ops and
10608 linux_target_ops definitions.
10609 (the_low_target): Add comments for each unimplemented method.
10611 2015-07-09 Yao Qi <yao.qi@linaro.org>
10613 * linux-aarch64-low.c (aarch64_regmap): Remove.
10614 (aarch64_usrregs_info): Remove.
10615 (regs_info): Set field usrregs to NULL.
10617 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
10619 * linux-low.c: Include "rsp-low.h"
10620 (linux_low_encode_pt_config, linux_low_encode_raw): New.
10621 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
10622 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
10623 (handle_btrace_enable_pt): New.
10624 (handle_btrace_general_set): Support "pt".
10625 (handle_btrace_conf_general_set): Support "pt:size".
10627 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10629 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
10632 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10634 * linux-aarch64-low.c: Remove comment about endianness.
10635 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
10636 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
10639 2015-06-24 Gary Benson <gbenson@redhat.com>
10641 * linux-i386-ipa.c (stdint.h): Do not include.
10642 * lynx-i386-low.c (stdint.h): Likewise.
10643 * lynx-ppc-low.c (stdint.h): Likewise.
10644 * mem-break.c (stdint.h): Likewise.
10645 * thread-db.c (stdint.h): Likewise.
10646 * tracepoint.c (stdint.h): Likewise.
10647 * win32-low.c (stdint.h): Likewise.
10649 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
10651 * server.c (write_qxfer_response): Update call to
10652 remote_escape_output.
10654 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
10655 Jan Kratochvil <jan.kratochvil@redhat.com>
10657 Merge multiple hex conversions.
10658 * gdbreplay.c (tohex): Rename to 'fromhex'.
10659 (logchar): Use fromhex.
10661 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10663 * server.c (handle_qxfer_libraries): Set `version' attribute for
10666 2015-06-10 Gary Benson <gbenson@redhat.com>
10668 * target.h (struct target_ops) <multifs_open>: New field.
10669 <multifs_unlink>: Likewise.
10670 <multifs_readlink>: Likewise.
10671 * linux-low.c (nat/linux-namespaces.h): New include.
10672 (linux_target_ops): Initialize the_target->multifs_open,
10673 the_target->multifs_unlink and the_target->multifs_readlink.
10674 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
10675 * hostio.c (hostio_fs_pid): New static variable.
10676 (hostio_handle_new_gdb_connection): New function.
10677 (handle_setfs): Likewise.
10678 (handle_open): Use the_target->multifs_open as appropriate.
10679 (handle_unlink): Use the_target->multifs_unlink as appropriate.
10680 (handle_readlink): Use the_target->multifs_readlink as
10682 (handle_vFile): Handle vFile:setfs packets.
10683 * server.c (handle_query): Call hostio_handle_new_gdb_connection
10684 after target_handle_new_gdb_connection.
10686 2015-06-10 Gary Benson <gbenson@redhat.com>
10688 * configure.ac (AC_CHECK_FUNCS): Add setns.
10689 * config.in: Regenerate.
10690 * configure: Likewise.
10691 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
10692 (linux-namespaces.o): New rule.
10693 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
10695 2015-06-09 Gary Benson <gbenson@redhat.com>
10697 * hostio.c (handle_open): Process mode argument with
10698 fileio_to_host_mode.
10700 2015-06-01 Yao Qi <yao.qi@linaro.org>
10702 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
10703 * linux-x86-low.c: Likewise.
10705 2015-05-28 Don Breazeal <donb@codesourcery.com>
10707 * linux-low.c (handle_extended_wait): Initialize
10708 thread_info.last_resume_kind for new fork children.
10710 2015-05-15 Pedro Alves <palves@redhat.com>
10712 * target.h (target_handle_new_gdb_connection): Rewrite using if
10713 wrapped in do/while.
10715 2015-05-14 Joel Brobecker <brobecker@adacore.com>
10717 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
10718 * configure, config.in: Regenerate.
10719 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
10722 2015-05-12 Don Breazeal <donb@codesourcery.com>
10724 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
10725 PTRACE_EVENT_VFORK_DONE.
10726 (linux_low_ptrace_options, extended_event_reported): Add vfork
10728 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
10729 and "vforkdone" for RSP 'T' Stop Reply Packet.
10730 * server.h (report_vfork_events): Declare
10733 2015-05-12 Don Breazeal <donb@codesourcery.com>
10735 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
10736 (the_low_target) <new_fork>: Initialize new member.
10737 * linux-arm-low.c (arm_new_fork): New function.
10738 (the_low_target) <new_fork>: Initialize new member.
10739 * linux-low.c (handle_extended_wait): Call new target function
10741 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
10742 * linux-mips-low.c (mips_add_watchpoint): New function
10743 extracted from mips_insert_point.
10744 (the_low_target) <new_fork>: Initialize new member.
10745 (mips_linux_new_fork): New function.
10746 (mips_insert_point): Call mips_add_watchpoint.
10747 * linux-x86-low.c (x86_linux_new_fork): New function.
10748 (the_low_target) <new_fork>: Initialize new member.
10750 2015-05-12 Don Breazeal <donb@codesourcery.com>
10752 * linux-low.c (handle_extended_wait): Implement return value,
10753 rename argument 'event_child' to 'event_lwp', handle
10754 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
10755 (linux_low_ptrace_options): New function.
10756 (linux_low_filter_event): Call linux_low_ptrace_options,
10757 use different argument fo linux_enable_event_reporting,
10758 use return value from handle_extended_wait.
10759 (extended_event_reported): New function.
10760 (linux_wait_1): Call extended_event_reported and set
10761 status to report fork events.
10762 (linux_write_memory): Add pid to debug message.
10763 (reset_lwp_ptrace_options_callback): New function.
10764 (linux_handle_new_gdb_connection): New function.
10765 (linux_target_ops): Initialize new structure member.
10766 * linux-low.h (struct lwp_info) <waitstatus>: New member.
10767 * lynx-low.c: Initialize new structure member.
10768 * remote-utils.c (prepare_resume_reply): Implement stop reason
10769 "fork" for "T" stop message.
10770 * server.c (handle_query): Call handle_new_gdb_connection.
10771 * server.h (report_fork_events): Declare global flag.
10772 * target.h (struct target_ops) <handle_new_gdb_connection>:
10774 (target_handle_new_gdb_connection): New macro.
10775 * win32-low.c: Initialize new structure member.
10777 2015-05-12 Don Breazeal <donb@codesourcery.com>
10779 * mem-break.c (APPEND_TO_LIST): Define macro.
10780 (clone_agent_expr): New function.
10781 (clone_one_breakpoint): New function.
10782 (clone_all_breakpoints): New function.
10783 * mem-break.h: Declare new functions.
10785 2015-05-12 Don Breazeal <donb@codesourcery.com>
10787 * linux-low.c (linux_supports_fork_events): New function.
10788 (linux_supports_vfork_events): New function.
10789 (linux_target_ops): Initialize new structure members.
10790 (initialize_low): Call linux_check_ptrace_features.
10791 * lynx-low.c (lynx_target_ops): Initialize new structure
10793 * server.c (report_fork_events, report_vfork_events):
10795 (handle_query): Add new features to qSupported packet and
10797 (captured_main): Initialize new global variables.
10798 * target.h (struct target_ops) <supports_fork_events>:
10800 <supports_vfork_events>: New member.
10801 (target_supports_fork_events): New macro.
10802 (target_supports_vfork_events): New macro.
10803 * win32-low.c (win32_target_ops): Initialize new structure
10806 2015-05-12 Gary Benson <gbenson@redhat.com>
10808 * server.c (handle_qxfer_exec_file): Use current process
10811 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
10813 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
10814 Remove HAVE_PTRACE_GETREGS conditionals.
10815 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
10816 instead of PTRACE_GETREGS and PTRACE_SETREGS.
10818 2015-05-08 Yao Qi <yao.qi@linaro.org>
10820 * linux-low.c (linux_supports_conditional_breakpoints): New
10822 (linux_target_ops): Install new target method.
10823 * lynx-low.c (lynx_target_ops): Install NULL hook for
10824 supports_conditional_breakpoints.
10825 * nto-low.c (nto_target_ops): Likewise.
10826 * spu-low.c (spu_target_ops): Likewise.
10827 * win32-low.c (win32_target_ops): Likewise.
10828 * server.c (handle_query): Check
10829 target_supports_conditional_breakpoints.
10830 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10832 (target_supports_conditional_breakpoints): New macro.
10834 2015-05-06 Pedro Alves <palves@redhat.com>
10837 * server.c (start_inferior): If the process exits, mourn it.
10839 2015-04-21 Gary Benson <gbenson@redhat.com>
10841 * hostio.c (fileio_open_flags_to_host): Factored out to
10842 fileio_to_host_openflags in common/fileio.c. Single use
10845 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
10847 * linux-xtensa-low.c (xtensa_fill_gregset)
10848 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
10851 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
10853 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
10854 (regs_info): Replace usrregs pointer with NULL.
10856 2015-04-17 Gary Benson <gbenson@redhat.com>
10858 * target.h (struct target_ops) <pid_to_exec_file>: New field.
10859 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
10860 * server.c (handle_qxfer_exec_file): New function.
10861 (qxfer_packets): Add exec-file entry.
10862 (handle_query): Report qXfer:exec-file:read as supported packet.
10864 2015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
10866 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
10868 2015-04-09 Gary Benson <gbenson@redhat.com>
10870 * hostio-errno.c (errno_to_fileio_error): Remove function.
10871 Update caller to use remote_fileio_to_fio_error.
10873 2015-04-09 Yao Qi <yao.qi@linaro.org>
10875 * linux-low.c (linux_insert_point): Call
10876 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
10877 (linux_remove_point): Call remove_memory_breakpoint if type is
10879 * linux-x86-low.c (x86_insert_point): Don't call
10880 insert_memory_breakpoint.
10881 (x86_remove_point): Don't call remove_memory_breakpoint.
10883 2015-04-01 Pedro Alves <palves@redhat.com>
10884 Cleber Rosa <crosa@redhat.com>
10886 * server.c (gdbserver_usage): Reorganize and extend the usage
10889 2015-03-24 Pedro Alves <palves@redhat.com>
10891 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
10892 output. Also dump TRAP_TRACE.
10893 (linux_low_filter_event): In debug output, distinguish a
10894 resume_stop SIGSTOP from a delayed SIGSTOP.
10896 2015-03-24 Gary Benson <gbenson@redhat.com>
10898 * linux-x86-low.c (x86_linux_new_thread): Moved to
10900 (x86_linux_prepare_to_resume): Likewise.
10902 2015-03-24 Gary Benson <gbenson@redhat.com>
10904 * Makefile.in (x86-linux-dregs.o): New rule.
10905 * configure.srv: Add x86-linux-dregs.o to relevant targets.
10906 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
10907 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
10908 (x86_linux_dr_get): Likewise.
10909 (x86_linux_dr_set): Likewise.
10910 (update_debug_registers_callback): Likewise.
10911 (x86_linux_dr_set_addr): Likewise.
10912 (x86_linux_dr_get_addr): Likewise.
10913 (x86_linux_dr_set_control): Likewise.
10914 (x86_linux_dr_get_control): Likewise.
10915 (x86_linux_dr_get_status): Likewise.
10916 (x86_linux_update_debug_registers): Likewise.
10918 2015-03-24 Gary Benson <gbenson@redhat.com>
10920 * linux-x86-low.c (x86_linux_update_debug_registers):
10921 New function, factored out from...
10922 (x86_linux_prepare_to_resume): ...this.
10924 2015-03-24 Gary Benson <gbenson@redhat.com>
10926 * linux-x86-low.c (x86_linux_dr_get): Update comments.
10927 (x86_linux_dr_set): Likewise.
10928 (update_debug_registers_callback): Likewise.
10929 (x86_linux_dr_set_addr): Likewise.
10930 (x86_linux_dr_get_addr): Likewise.
10931 (x86_linux_dr_set_control): Likewise.
10932 (x86_linux_dr_get_control): Likewise.
10933 (x86_linux_dr_get_status): Likewise.
10934 (x86_linux_prepare_to_resume): Likewise.
10936 2015-03-24 Gary Benson <gbenson@redhat.com>
10938 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
10939 Use perror_with_name. Pass string through gettext.
10940 (x86_linux_dr_set): Likewise.
10942 2015-03-24 Gary Benson <gbenson@redhat.com>
10944 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
10945 (x86_linux_dr_set_addr): ...this.
10946 (x86_dr_low_get_addr): Rename to...
10947 (x86_linux_dr_get_addr): ...this.
10948 (x86_dr_low_set_control): Rename to...
10949 (x86_linux_dr_set_control): ...this.
10950 (x86_dr_low_get_control): Rename to...
10951 (x86_linux_dr_get_control): ...this.
10952 (x86_dr_low_get_status): Rename to...
10953 (x86_linux_dr_get_status): ...this.
10954 (x86_dr_low): Update with new function names.
10956 2015-03-24 Gary Benson <gbenson@redhat.com>
10958 * Makefile.in (x86-linux.o): New rule.
10959 * configure.srv: Add x86-linux.o to relevant targets.
10960 * linux-low.c (lwp_set_arch_private_info): New function.
10961 (lwp_arch_private_info): Likewise.
10962 * linux-x86-low.c: Include nat/x86-linux.h.
10963 (arch_lwp_info): Removed structure.
10964 (update_debug_registers_callback):
10965 Use lwp_set_debug_registers_changed.
10966 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
10967 and lwp_set_debug_registers_changed.
10968 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
10970 2015-03-24 Gary Benson <gbenson@redhat.com>
10972 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
10973 * linux-arm-low.c (arm_new_thread): Likewise.
10974 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
10975 * linux-mips-low.c (mips_linux_new_thread): Likewise.
10976 * linux-x86-low.c (x86_linux_new_thread): Likewise.
10977 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
10979 2015-03-24 Gary Benson <gbenson@redhat.com>
10981 * linux-low.c (ptid_of_lwp): New function.
10982 (lwp_is_stopped): Likewise.
10983 (lwp_stop_reason): Likewise.
10984 * linux-x86-low.c (update_debug_registers_callback):
10985 Use lwp_is_stopped.
10986 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
10989 2015-03-24 Gary Benson <gbenson@redhat.com>
10991 * linux-low.h (linux_stop_lwp): Remove declaration.
10993 2015-03-24 Gary Benson <gbenson@redhat.com>
10995 * linux-low.h: Include nat/linux-nat.h.
10996 * linux-low.c (iterate_over_lwps_args): New structure.
10997 (iterate_over_lwps_filter): New function.
10998 (iterate_over_lwps): Likewise.
10999 * linux-x86-low.c (update_debug_registers_callback):
11000 Update signature to what iterate_over_lwps expects.
11001 Remove PID check that iterate_over_lwps now performs.
11002 (x86_dr_low_set_addr): Use iterate_over_lwps.
11003 (x86_dr_low_set_control): Likewise.
11005 2015-03-24 Gary Benson <gbenson@redhat.com>
11007 * linux-x86-low.c (x86_debug_reg_state): New function.
11008 (x86_linux_prepare_to_resume): Use the above.
11010 2015-03-24 Gary Benson <gbenson@redhat.com>
11012 * linux-low.c (current_lwp_ptid): New function.
11013 * linux-x86-low.c: Include nat/linux-nat.h.
11014 (x86_dr_low_get_addr): Use current_lwp_ptid.
11015 (x86_dr_low_get_control): Likewise.
11016 (x86_dr_low_get_status): Likewise.
11018 2015-03-20 Pedro Alves <palves@redhat.com>
11020 * tracepoint.c (cmd_qtstatus): Make "str" const.
11022 2015-03-20 Pedro Alves <palves@redhat.com>
11024 * server.c (handle_general_set): Make "req_str" const.
11026 2015-03-19 Pedro Alves <palves@redhat.com>
11028 * linux-low.c (linux_resume_one_lwp): Rename to ...
11029 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
11030 instead call perror_with_name.
11031 (check_ptrace_stopped_lwp_gone): New function.
11032 (linux_resume_one_lwp): Reimplement as wrapper around
11033 linux_resume_one_lwp_throw that swallows errors if the LWP is
11036 2015-03-19 Pedro Alves <palves@redhat.com>
11038 * linux-low.c (count_events_callback, select_event_lwp_callback):
11039 No longer check whether the thread has resume_stop as last resume
11042 2015-03-19 Pedro Alves <palves@redhat.com>
11044 * linux-low.c (count_events_callback, select_event_lwp_callback):
11045 Use the lwp's status_pending_p field, not the thread's.
11047 2015-03-19 Pedro Alves <palves@redhat.com>
11049 * linux-low.c (select_event_lwp_callback): Update comments to
11050 no longer mention SIGTRAP.
11052 2015-03-18 Gary Benson <gbenson@redhat.com>
11054 * server.c (handle_query): Do not report vFile:fstat as supported.
11056 2015-03-11 Gary Benson <gbenson@redhat.com>
11058 * hostio.c (sys/types.h): New include.
11059 (sys/stat.h): Likewise.
11060 (common-remote-fileio.h): Likewise.
11061 (handle_fstat): New function.
11062 (handle_vFile): Handle vFile:fstat packets.
11064 2015-03-11 Gary Benson <gbenson@redhat.com>
11066 * configure.ac (AC_CHECK_MEMBERS): Add checks for
11067 struct stat.st_blocks and struct stat.st_blksize.
11068 * configure: Regenerate.
11069 * config.in: Likewise.
11070 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
11071 (OBS): Add common-remote-fileio.o.
11072 (common-remote-fileio.o): New rule.
11074 2015-03-09 Pedro Alves <palves@redhat.com>
11076 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
11077 'struct sockaddr' pointer in 'accept' call.
11079 2015-03-09 Pedro Alves <palves@redhat.com>
11082 2015-03-07 Pedro Alves <palves@redhat.com>
11083 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11084 or <winsock2.h> here. Instead include "gdb_socket.h".
11085 (remote_open): Use union gdb_sockaddr_u.
11086 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11087 or <winsock2.h> here. Instead include "gdb_socket.h".
11088 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11089 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11091 (init_named_socket, gdb_agent_helper_thread): Use union
11094 2015-03-07 Pedro Alves <palves@redhat.com>
11096 * configure.ac (build_warnings): Move
11097 -Wdeclaration-after-statement to the C-specific set.
11098 * configure: Regenerate.
11100 2015-03-07 Pedro Alves <palves@redhat.com>
11102 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11103 or <winsock2.h> here. Instead include "gdb_socket.h".
11104 (remote_open): Use union gdb_sockaddr_u.
11105 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11106 or <winsock2.h> here. Instead include "gdb_socket.h".
11107 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11108 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11110 (init_named_socket, gdb_agent_helper_thread): Use union
11113 2015-03-07 Pedro Alves <palves@redhat.com>
11115 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
11118 2015-03-06 Yao Qi <yao.qi@linaro.org>
11120 * linux-aarch64-low.c (aarch64_insert_point): Use
11121 show_debug_regs as a boolean.
11122 (aarch64_remove_point): Likewise.
11124 2015-03-05 Pedro Alves <palves@redhat.com>
11126 * lynx-low.c (lynx_target_ops): Install NULL hooks for
11127 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
11128 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
11129 * nto-low.c (nto_target_ops): Likewise.
11130 * spu-low.c (spu_target_ops): Likewise.
11131 * win32-low.c (win32_target_ops): Likewise.
11133 2015-03-04 Pedro Alves <palves@redhat.com>
11135 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
11136 Decide whether a breakpoint triggered based on the SIGTRAP's
11138 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
11139 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
11140 (linux_low_filter_event): Check for breakpoints before checking
11142 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
11144 (linux_stopped_by_sw_breakpoint)
11145 (linux_supports_stopped_by_sw_breakpoint)
11146 (linux_stopped_by_hw_breakpoint)
11147 (linux_supports_stopped_by_hw_breakpoint): New functions.
11148 (linux_target_ops): Install new target methods.
11150 2015-03-04 Pedro Alves <palves@redhat.com>
11152 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
11153 * server.c (swbreak_feature, hwbreak_feature): New globals.
11154 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
11155 (captured_main): Clear swbreak_feature and hwbreak_feature.
11156 * server.h (swbreak_feature, hwbreak_feature): Declare.
11157 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
11158 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
11159 supports_stopped_by_hw_breakpoint>: New fields.
11160 (target_supports_stopped_by_sw_breakpoint)
11161 (target_stopped_by_sw_breakpoint)
11162 (target_supports_stopped_by_hw_breakpoint)
11163 (target_stopped_by_hw_breakpoint): Declare.
11165 2015-03-04 Pedro Alves <palves@redhat.com>
11167 enum lwp_stop_reason -> enum target_stop_reason
11168 * linux-low.c (check_stopped_by_breakpoint): Adjust.
11169 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
11170 (linux_wait_1, stuck_in_jump_pad_callback)
11171 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
11172 (linux_stopped_by_watchpoint):
11173 * linux-low.h (enum lwp_stop_reason): Delete.
11174 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
11175 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11177 2015-03-04 Yao Qi <yao.qi@linaro.org>
11179 * Makefile.in (SFILES): Add linux-aarch64-low.c.
11181 2015-03-03 Gary Benson <gbenson@redhat.com>
11183 * hostio.c (handle_vFile): Fix prefix lengths.
11185 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
11187 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
11190 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
11192 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
11193 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
11194 (clean): Add "rm -f" for above C files.
11195 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
11196 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
11197 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
11198 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
11199 * linux-s390-low.c (HWCAP_S390_VX): New macro.
11200 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
11201 (init_registers_s390x_vx_linux64)
11202 (init_registers_s390x_tevx_linux64)
11203 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
11204 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
11206 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
11207 (s390_store_vxrs_high): New functions.
11208 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
11210 (s390_arch_setup): Add logic for selecting one of the new target
11211 descriptions. Activate the new vector regsets if applicable.
11212 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
11213 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
11214 and init_registers_s390x_tevx_linux64.
11216 2015-03-01 Pedro Alves <palves@redhat.com>
11218 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
11221 2015-02-27 Pedro Alves <palves@redhat.com>
11223 * linux-x86-low.c (u_debugreg_offset): New function.
11224 (x86_linux_dr_get, x86_linux_dr_set): Use it.
11226 2015-02-27 Pedro Alves <palves@redhat.com>
11228 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
11229 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
11230 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
11231 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
11232 (ps_lsetfpregs, ps_getpid)
11233 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
11234 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
11235 (ps_lsetxregs, ps_plog): Declare.
11237 2015-02-27 Pedro Alves <palves@redhat.com>
11239 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
11240 IP_AGENT_EXPORT_FUNC.
11241 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
11242 IP_AGENT_EXPORT_FUNC.
11243 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
11244 (IP_AGENT_EXPORT): Delete.
11245 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11246 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11247 (gdb_trampoline_buffer_error, collecting, gdb_collect)
11248 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
11249 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
11250 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
11251 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
11252 (traceframe_read_count, traceframe_write_count)
11253 (traceframes_created, trace_state_variables, get_raw_reg)
11254 (get_trace_state_variable_value, set_trace_state_variable_value)
11255 (ust_loaded, helper_thread_id, cmd_buf): Use
11256 IPA_SYM_EXPORTED_NAME.
11257 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
11258 (tracepoints) Use IP_AGENT_EXPORT_VAR.
11259 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
11260 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11261 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
11262 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
11263 EXTERN_C_PUSH/EXTERN_C_POP.
11264 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
11265 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
11266 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11267 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
11268 (traceframe_write_count, traceframe_read_count)
11269 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
11270 (about_to_request_buffer_space, get_trace_state_variable_value)
11271 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
11272 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
11273 EXTERN_C_PUSH/EXTERN_C_POP.
11274 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
11275 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
11276 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
11277 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11278 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11279 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11280 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
11281 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
11283 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
11284 (IP_AGENT_EXPORT_VAR_DECL): Define.
11285 (tracing): Declare.
11286 (gdb_agent_get_raw_reg): Declare.
11288 2015-02-27 Tom Tromey <tromey@redhat.com>
11289 Pedro Alves <palves@redhat.com>
11291 Rename symbols whose names are reserved C++ keywords throughout.
11293 2015-02-27 Pedro Alves <palves@redhat.com>
11295 * Makefile.in (COMPILER): New, get it from autoconf.
11296 (CXX): Get from autoconf instead.
11297 (COMPILE.pre): Use COMPILER.
11298 (CC-LD): Rename to ...
11299 (CC_LD): ... this. Use COMPILER.
11300 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
11301 (CXX_FOR_TARGET): Default to g++ instead of gcc.
11302 * acinclude.m4: Include build-with-cxx.m4.
11303 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
11304 Disable -Werror by default if building in C++ mode.
11305 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
11306 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
11307 the C++ compiler. Save/restore CXXFLAGS too.
11308 * configure: Regenerate.
11310 2015-02-27 Pedro Alves <palves@redhat.com>
11312 * acinclude.m4: Include libiberty.m4.
11313 * configure.ac: Call libiberty_INIT.
11314 * config.in, configure: Regenerate.
11316 2015-02-26 Pedro Alves <palves@redhat.com>
11318 * linux-low.c (linux_wait_1): When incrementing the PC past a
11319 program breakpoint always use the_low_target.breakpoint_len as
11320 increment, rather than the maximum between that and
11321 the_low_target.decr_pc_after_break.
11323 2015-02-23 Pedro Alves <palves@redhat.com>
11325 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
11326 thread was doing a step-over; always adjust the PC if
11327 we stepped over a permanent breakpoint.
11328 (linux_wait_1): If we stepped over breakpoint that was on top of a
11329 permanent breakpoint, manually advance the PC past it.
11331 2015-02-23 Pedro Alves <palves@redhat.com>
11333 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
11335 (x86_fill_gregset, x86_store_gregset): Use it when handling
11338 2015-02-20 Pedro Alves <palves@redhat.com>
11340 * thread-db.c: Include "nat/linux-procfs.h".
11341 (thread_db_init): Skip listing new threads if the kernel supports
11342 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
11344 2015-02-20 Pedro Alves <palves@redhat.com>
11346 * linux-low.c (status_pending_p_callback): Use ptid_match.
11348 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
11350 PR breakpoints/16812
11351 * linux-low.c (wstatus_maybe_breakpoint): Remove.
11352 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
11353 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
11355 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
11357 PR breakpoints/15956
11358 * tracepoint.c (cmd_qtinit): Add check for current_thread.
11360 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11362 * linux-low.c (linux_low_btrace_conf): Print size.
11363 * server.c (handle_btrace_conf_general_set): New.
11364 (hanle_general_set): Call handle_btrace_conf_general_set.
11365 (handle_query): Report Qbtrace-conf:bts:size as supported.
11367 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11369 * linux-low.c (linux_low_enable_btrace): Update parameters.
11370 (linux_low_btrace_conf): New.
11371 (linux_target_ops)<to_btrace_conf>: Initialize.
11372 * server.c (current_btrace_conf): New.
11373 (handle_btrace_enable): Rename to ...
11374 (handle_btrace_enable_bts): ... this. Pass ¤t_btrace_conf
11375 to target_enable_btrace. Update comment. Update users.
11376 (handle_qxfer_btrace_conf): New.
11377 (qxfer_packets): Add btrace-conf entry.
11378 (handle_query): Report qXfer:btrace-conf:read as supported packet.
11379 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
11380 (target_ops)<read_btrace_conf>: New.
11381 (target_enable_btrace): Update parameters.
11382 (target_read_btrace_conf): New.
11384 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11386 * server.c (handle_btrace_general_set): Remove call to
11387 target_supports_btrace.
11388 (supported_btrace_packets): New.
11389 (handle_query): Call supported_btrace_packets.
11390 * target.h: include btrace-common.h.
11391 (btrace_target_info): Removed.
11392 (supports_btrace, target_supports_btrace): Update parameters.
11394 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11396 * Makefile.in (SFILES): Add common/btrace-common.c.
11397 (OBS): Add common/btrace-common.o.
11398 (btrace-common.o): Add build rules.
11399 * linux-low: Include btrace-common.h.
11400 (linux_low_read_btrace): Use struct btrace_data. Call
11401 btrace_data_init and btrace_data_fini.
11403 2015-02-06 Pedro Alves <palves@redhat.com>
11405 * thread-db.c (find_new_threads_callback): Add debug output.
11407 2015-02-04 Pedro Alves <palves@redhat.com>
11409 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
11410 (resume_stopped_resumed_lwps): New function.
11411 (linux_wait_for_event_filtered): Use it.
11413 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11415 * Makefile.in (SFILES): Add linux-personality.c.
11416 (linux-personality.o): New rule.
11417 * configure.srv (srv_linux_obj): Add linux-personality.o to the
11418 list of objects to be built.
11419 * linux-low.c: Include nat/linux-personality.h.
11420 (linux_create_inferior): Remove code to disable address space
11421 randomization (moved to ../nat/linux-personality.c). Create
11422 cleanup to disable address space randomization.
11424 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11426 * Makefile.in (posix-strerror.o): New rule.
11427 (mingw-strerror.o): Likewise.
11428 * configure: Regenerated.
11429 * configure.ac: Source file ../common/common.host. Initialize new
11430 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
11432 2015-01-14 Yao Qi <yao@codesourcery.com>
11434 * Makefile.in (SFILES): Add nat/ppc-linux.c.
11435 (ppc-linux.o): New rule.
11436 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
11437 * configure.ac: AC_CHECK_FUNCS(getauxval).
11438 * config.in: Re-generated.
11439 * configure: Re-generated.
11440 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
11441 ppc64_64bit_inferior_p
11443 2015-01-14 Yao Qi <yao@codesourcery.com>
11445 * linux-ppc-low.c: Include "nat/ppc-linux.h".
11446 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
11447 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
11448 (PT_ORIG_R3, PT_TRAP): Likewise.
11449 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
11450 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
11451 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
11453 2015-01-10 Joel Brobecker <brobecker@adacore.com>
11455 * i387-fp.c (i387_cache_to_xsave): In look over
11456 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
11457 zmmh_low_space field by use of zmmh_high_space.
11459 2015-01-09 Pedro Alves <palves@redhat.com>
11461 * linux-low.c (step_over_bkpt): Move higher up in the file.
11462 (handle_extended_wait): Don't store the stop_pc here.
11463 (get_stop_pc): Adjust comments and rename to ...
11464 (check_stopped_by_breakpoint): ... this. Record whether the LWP
11465 stopped for a software breakpoint or hardware breakpoint.
11466 (thread_still_has_status_pending_p): New function.
11467 (status_pending_p_callback): Use
11468 thread_still_has_status_pending_p. If the event is no longer
11469 interesting, resume the LWP.
11470 (handle_tracepoints): Add assert.
11471 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
11472 (wstatus_maybe_breakpoint): New function.
11473 (cancel_breakpoint): Delete function.
11474 (check_stopped_by_watchpoint): New function, factored out from
11475 linux_low_filter_event.
11476 (lp_status_maybe_breakpoint): Delete function.
11477 (linux_low_filter_event): Remove filter_ptid argument.
11478 Leave thread group exits pending here. Store the LWP's stop PC.
11479 Always leave events pending.
11480 (linux_wait_for_event_filtered): Pull all events out of the
11481 kernel, and leave them all pending.
11482 (count_events_callback, select_event_lwp_callback): Consider all
11484 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
11485 (select_event_lwp): Only give preference to the stepping LWP in
11486 all-stop mode. Adjust comments.
11487 (ignore_event): New function.
11488 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
11489 references to cancel_breakpoints. Adjust to renames. Also give
11490 equal priority to all LWPs that have had events in non-stop mode.
11491 If reporting a software breakpoint event, unadjust the LWP's PC.
11492 (linux_wait): If linux_wait_1 returned an ignored event, retry.
11493 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
11495 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
11496 (resume_status_pending_p): Use thread_still_has_status_pending_p.
11497 (linux_stopped_by_watchpoint): Adjust.
11498 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
11499 * linux-low.h (enum lwp_stop_reason): New.
11500 (struct lwp_info) <stop_pc>: Adjust comment.
11501 <stopped_by_watchpoint>: Delete field.
11502 <stop_reason>: New field.
11503 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11504 * mem-break.c (software_breakpoint_inserted_here)
11505 (hardware_breakpoint_inserted_here): New function.
11506 * mem-break.h (software_breakpoint_inserted_here)
11507 (hardware_breakpoint_inserted_here): Declare.
11508 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
11509 (cancel_breakpoints): Delete.
11510 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
11511 (upload_fast_traceframes): Remove references to
11512 cancel_breakpoints.
11514 2015-01-09 Pedro Alves <palves@redhat.com>
11516 * thread-db.c (find_new_threads_callback): Ignore thread if the
11517 kernel thread ID is -1.
11519 2015-01-09 Pedro Alves <palves@redhat.com>
11521 * linux-low.c (linux_attach_fail_reason_string): Move to
11522 nat/linux-ptrace.c, and rename.
11523 (linux_attach_lwp): Update comment.
11524 (attach_proc_task_lwp_callback): New function.
11525 (linux_attach): Adjust to rename and use
11526 linux_proc_attach_tgid_threads.
11527 (linux_attach_fail_reason_string): Delete declaration.
11529 2015-01-01 Joel Brobecker <brobecker@adacore.com>
11531 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
11532 * server.c (gdbserver_version): Likewise.
11534 2014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
11536 * remote-utils.c: Include ctype.h.
11537 (input_interrupt): Explicitly handle the case when the char
11538 received is the NUL byte. Improve the printing of non-ASCII
11541 2014-12-16 Joel Brobecker <brobecker@adacore.com>
11543 * linux-low.c (linux_low_filter_event): Update call to
11544 linux_enable_event_reporting following the addition of
11545 a new parameter to that function.
11547 2014-12-16 Catalin Udma <catalin.udma@freescale.com>
11550 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
11551 (AARCH64_FPCR_REGNO): Likewise.
11552 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
11553 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
11554 (aarch64_store_fpregset): Likewise.
11556 2014-12-15 Joel Brobecker <brobecker@adacore.com>
11558 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
11559 Remove FIXME comment about assumption about N.
11561 2014-12-13 Joel Brobecker <brobecker@adacore.com>
11563 * configure.ac: If large-file support is disabled in GDBserver,
11564 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
11565 * configure: Regenerate.
11567 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11569 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
11570 warning upon ENODATA from ptrace.
11571 * linux-s390-low.c (s390_store_tdb): New.
11572 (s390_regsets): Add regset for NT_S390_TDB.
11574 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11576 * linux-low.c (regsets_store_inferior_registers): Skip regsets
11577 without a fill_function.
11578 * linux-s390-low.c (s390_fill_last_break): Remove.
11579 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
11580 (s390_arch_setup): Use regset's size instead of fill_function for
11581 loop end condition.
11583 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11585 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
11586 the regset's store function when ptrace returned an error.
11587 * regcache.c (get_thread_regcache): Invalidate register cache
11588 before fetching inferior's registers.
11590 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11592 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
11593 while-loop as for-loop.
11594 (regsets_store_inferior_registers): Likewise.
11596 2014-11-28 Yao Qi <yao@codesourcery.com>
11598 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
11599 * config.in, configure: Re-generate.
11600 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
11603 2014-11-21 Yao Qi <yao@codesourcery.com>
11605 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
11606 (AC_CHECK_HEADERS): Remove malloc.h.
11607 * configure: Re-generated.
11608 * config.in: Re-generated.
11609 * server.h: Don't include alloca.h and malloc.h.
11610 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
11611 Don't include malloc.h.
11613 2014-11-17 Joel Brobecker <brobecker@adacore.com>
11615 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
11616 corresponding ERRNO check in same block.
11618 2014-11-12 Pedro Alves <palves@redhat.com>
11620 * server.c (cont_thread): Update comment.
11621 (start_inferior, attach_inferior): No longer clear cont_thread.
11622 (handle_v_cont): No longer set cont_thread.
11623 (captured_main): Clear cont_thread each time a GDB connects.
11625 2014-11-12 Pedro Alves <palves@redhat.com>
11627 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
11628 thread, and don't resume all threads if the Hc thread has exited.
11630 2014-11-12 Pedro Alves <palves@redhat.com>
11632 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
11633 the process group instead of to a specific LWP.
11635 2014-10-15 Pedro Alves <palves@redhat.com>
11638 * win32-arm-low.c (arm_set_thread_context): Remove current_event
11640 (arm_set_thread_context): Delete.
11641 (the_low_target): Adjust.
11642 * win32-i386-low.c (debug_registers_changed)
11643 (debug_registers_used): Delete.
11644 (update_debug_registers_callback): New function.
11645 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
11646 needing to update their debug registers.
11647 (win32_get_current_dr): New function.
11648 (x86_dr_low_get_addr, x86_dr_low_get_control)
11649 (x86_dr_low_get_status): Fetch the debug register from the thread
11651 (i386_initial_stuff): Adjust.
11652 (i386_get_thread_context): Remove current_event parameter. Don't
11653 clear debug_registers_changed nor copy DR values to
11655 (i386_set_thread_context): Delete.
11656 (i386_prepare_to_resume): New function.
11657 (i386_thread_added): Mark the thread as needing to update irs
11659 (the_low_target): Remove i386_set_thread_context and install
11660 i386_prepare_to_resume.
11661 * win32-low.c (win32_get_thread_context): Adjust.
11662 (win32_set_thread_context): Use SetThreadContext
11664 (win32_prepare_to_resume): New function.
11665 (win32_require_context): New function, factored out from ...
11666 (thread_rec): ... this.
11667 (continue_one_thread): Call win32_prepare_to_resume on each thread
11668 we're about to continue.
11669 (win32_resume): Call win32_prepare_to_resume on the event thread.
11670 * win32-low.h (struct win32_thread_info)
11671 <debug_registers_changed>: New field.
11672 (struct win32_target_ops): Change prototype of set_thread_context,
11673 delete set_thread_context and add prepare_to_resume.
11674 (win32_require_context): New declaration.
11676 2014-10-08 Gary Benson <gbenson@redhat.com>
11678 * server.h: Do not include common-exceptions.h.
11680 2014-10-08 Gary Benson <gbenson@redhat.com>
11682 * server.h: Do not include cleanups.h.
11684 2014-09-30 James Hogan <james.hogan@imgtec.com>
11686 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
11687 mips64-dsp-linux.c.
11689 2014-09-23 Yao Qi <yao@codesourcery.com>
11691 * linux-low.c (lp_status_maybe_breakpoint): New function.
11692 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
11693 (count_events_callback): Likewise.
11694 (select_event_lwp_callback): Likewise.
11695 (cancel_breakpoints_callback): Likewise.
11697 2014-09-19 Don Breazeal <donb@codesourcery.com>
11699 * linux-low.c (handle_extended_wait): Call
11700 linux_ptrace_get_extended_event.
11701 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
11702 linux_is_extended_waitstatus.
11704 2014-09-16 Joel Brobecker <brobecker@adacore.com>
11706 * Makefile.in (CPPFLAGS): Define.
11707 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
11708 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
11710 2014-09-16 Gary Benson <gbenson@redhat.com>
11712 * inferiors.h (current_inferior): Renamed as...
11713 (current_thread): New variable. All uses updated.
11714 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
11715 (maybe_move_out_of_jump_pad): Likewise.
11716 (cancel_breakpoint): Likewise.
11717 (linux_low_filter_event): Likewise.
11718 (wait_for_sigstop): Likewise.
11719 (linux_resume_one_lwp): Likewise.
11720 (need_step_over_p): Likewise.
11721 (start_step_over): Likewise.
11722 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
11723 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
11724 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
11725 and save_inferior as saved_thread.
11726 * regcache.c (get_thread_regcache): Renamed saved_inferior as
11728 (regcache_invalidate_thread): Likewise.
11729 * remote-utils.c (prepare_resume_reply): Likewise.
11730 * thread-db.c (thread_db_get_tls_address): Likewise.
11731 (disable_thread_event_reporting): Likewise.
11732 (remove_thread_event_breakpoints): Likewise.
11733 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
11735 * target.h (set_desired_inferior): Renamed as...
11736 (set_desired_thread): New declaration. All uses updated.
11737 * server.c (myresume): Updated comment to reference thread instead
11739 (handle_serial_event): Likewise.
11740 (handle_target_event): Likewise.
11742 2014-09-12 Tom Tromey <tromey@redhat.com>
11743 Gary Benson <gbenson@redhat.com>
11745 * regcache.h: Include common-regcache.h.
11746 (regcache_read_pc): Don't declare.
11747 * regcache.c (get_thread_regcache_for_ptid): New function.
11749 2014-09-11 Tom Tromey <tromey@redhat.com>
11750 Gary Benson <gbenson@redhat.com>
11752 * symbol.c: New file.
11753 * Makefile.in (SFILES): Add symbol.c.
11754 (OBS): Add symbol.o.
11756 2014-09-11 Gary Benson <gbenson@redhat.com>
11758 * target.c (target_stop_ptid, target_continue_ptid): New
11761 2014-09-11 Tom Tromey <tromey@redhat.com>
11762 Gary Benson <gbenson@redhat.com>
11764 * target.h: Include target/target.h.
11765 * target.c (target_read_memory, target_read_uint32)
11766 (target_write_memory): New functions.
11768 2014-09-11 Gary Benson <gbenson@redhat.com>
11770 * server.h (debug_hw_points): Don't declare.
11771 * server.c (debug_hw_points): Don't define. Replace all uses
11772 with show_debug_regs.
11773 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
11774 all uses with show_debug_regs.
11776 2014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
11778 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
11779 endianness into account.
11780 (ppc_supply_ptrace_register): Likewise.
11782 2014-09-03 James Hogan <james.hogan@imgtec.com>
11784 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
11785 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
11787 2014-09-03 Gary Benson <gbenson@redhat.com>
11789 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
11790 ALL_DEBUG_ADDRESS_REGISTERS.
11792 2014-09-02 Gary Benson <gbenson@redhat.com>
11794 * i386-low.h: Renamed as...
11795 * x86-low.h: New file. All type, function and variable name
11796 prefixes changed from "i386_" to "x86_". All references updated.
11797 * i386-low.c: Renamed as...
11798 * x86-low.c: New file. All type, function and variable name
11799 prefixes changed from "i386_" to "x86_". All references updated.
11801 2014-09-02 Gary Benson <gbenson@redhat.com>
11803 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
11804 (x86_linux_new_thread): Likewise.
11806 2014-08-29 Gary Benson <gbenson@redhat.com>
11808 * server.h (setjmp.h): Do not include.
11809 (toplevel): Do not declare.
11810 (common-exceptions.h): Include.
11811 (cleanups.h): Likewise.
11812 * server.c (toplevel): Do not define.
11813 (exit_code): New static global.
11814 (detach_or_kill_for_exit_cleanup): New function.
11815 (main): New function. Original main renamed to...
11816 (captured_main): New function.
11817 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
11819 2014-08-29 Gary Benson <gbenson@redhat.com>
11821 * Makefile.in (SFILES): Add common/common-exceptions.c.
11822 (OBS): Add common-exceptions.o.
11823 (common-exceptions.o): New rule.
11824 * utils.c (prepare_to_throw_exception): New function.
11826 2014-08-29 Gary Benson <gbenson@redhat.com>
11828 * config.in: Regenerate.
11829 * configure: Likewise.
11831 2014-08-29 Gary Benson <gbenson@redhat.com>
11833 * Makefile.in (SFILES): Add common/cleanups.c.
11835 (cleanups.o): New rule.
11837 2014-08-29 Gary Benson <gbenson@redhat.com>
11839 * utils.c (internal_vwarning): New function.
11841 2014-08-28 Gary Benson <gbenson@redhat.com>
11843 * utils.h (fatal): Remove declaration.
11844 * utils.c (fatal): Remove function.
11846 2014-08-28 Gary Benson <gbenson@redhat.com>
11848 * tracepoint.c (gdb_agent_init): Replace fatal with
11850 (initialize_tracepoint): Likewise.
11852 2014-08-28 Gary Benson <gbenson@redhat.com>
11854 * remote-utils.c (remote_prepare): Replace fatal with error.
11856 2014-08-28 Gary Benson <gbenson@redhat.com>
11858 * linux-low.c (linux_async): Replace fatal with warning.
11859 Tidy up and return.
11860 (linux_start_non_stop): Return -1 if linux_async failed.
11862 2014-08-28 Gary Benson <gbenson@redhat.com>
11864 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
11866 (i386_dr_low_get_addr): Remove vague comment.
11867 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
11870 2014-08-28 Gary Benson <gbenson@redhat.com>
11872 * inferiors.c (get_thread_process): Replace check with gdb_assert.
11873 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
11875 (linux_resume_one_lwp): Likewise.
11876 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
11878 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
11879 with internal_error.
11880 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
11881 (init_register_cache): Replace fatal with gdb_assert_not_reached.
11882 (find_register_by_name): Replace fatal with internal_error.
11883 (find_regno): Likewise.
11884 * tdesc.c (init_target_desc): Replace check with gdb_assert.
11885 * thread-db.c (thread_db_create_event): Likewise.
11886 (thread_db_load_search): Likewise.
11887 (try_thread_db_load_1): Likewise.
11888 * tracepoint.c (get_jump_space_head): Replace fatal with
11890 (claim_trampoline_space): Likewise.
11891 (have_fast_tracepoint_trampoline_buffer): Likewise.
11892 (cmd_qtstart): Likewise.
11893 (stop_tracing): Likewise.
11894 (fast_tracepoint_collecting): Likewise.
11895 (target_malloc): Likewise.
11896 (download_tracepoint): Likewise.
11897 (download_trace_state_variables): Replace check with gdb_assert.
11898 (upload_fast_traceframes): Replace fatal with internal_error.
11900 2014-08-19 Tom Tromey <tromey@redhat.com>
11901 Gary Benson <gbenson@redhat.com>
11903 * Makefile.in (SFILES): Add common/common-debug.c.
11904 (OBS): Add common-debug.o.
11905 (common-debug.o): New rule.
11906 * debug.h (debug_printf): Don't declare.
11907 * debug.c (debug_printf): Renamed and rewritten as...
11908 (debug_vprintf): New function.
11910 2014-08-19 Gary Benson <gbenson@redhat.com>
11912 * utils.h: Do not include print-utils.h.
11914 2014-08-19 Tom Tromey <tromey@redhat.com>
11915 Gary Benson <gbenson@redhat.com>
11917 * server.h: Add static assertion.
11918 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
11920 2014-08-19 Tom Tromey <tromey@redhat.com>
11921 Gary Benson <gbenson@redhat.com>
11923 * Makefile.in (SFILES): Add common/errors.c.
11924 (OBS): Add errors.o.
11925 (IPA_OBS): Add errors-ipa.o.
11926 (errors.o): New rule.
11927 (errors-ipa.o): Likewise.
11928 * utils.h (perror_with_name, error, warning): Don't declare.
11929 * utils.c (warning): Renamed and rewritten as...
11930 (vwarning): New function.
11931 (error): Renamed and rewritten as...
11932 (verror): New function.
11933 (internal_error): Renamed and rewritten as...
11934 (internal_verror): New function.
11936 2014-08-07 Gary Benson <gbenson@redhat.com>
11938 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
11939 * configure: Regenerate.
11940 * config.in: Likewise.
11941 * server.h: Do not include errno.h.
11942 * event-loop.c: Likewise.
11943 * hostio-errno.c: Likewise.
11944 * linux-low.c: Likewise.
11945 * remote-utils.c: Likewise.
11946 * spu-low.c: Likewise.
11947 * utils.c: Likewise.
11948 * gdbreplay.c: Unconditionally include errno.h.
11950 2014-08-07 Gary Benson <gbenson@redhat.com>
11952 * server.h: Do not include string.h.
11953 * event-loop.c: Likewise.
11954 * linux-low.c: Likewise.
11955 * regcache.c: Likewise.
11956 * remote-utils.c: Likewise.
11957 * spu-low.c: Likewise.
11958 * utils.c: Likewise.
11960 2014-08-07 Gary Benson <gbenson@redhat.com>
11962 * server.h: Do not include gdb_assert.h.
11964 2014-08-07 Gary Benson <gbenson@redhat.com>
11966 * server.h: Do not include common-utils.h.
11968 2014-08-07 Gary Benson <gbenson@redhat.com>
11970 * server.h: Do not include ptid.h.
11971 * notif.h: Likewise.
11973 2014-08-07 Gary Benson <gbenson@redhat.com>
11975 * server.h: Do not include gdb_locale.h.
11977 2014-08-07 Gary Benson <gbenson@redhat.com>
11979 * server.h: Do not include gdb/signals.h.
11980 * win32-low.c: Likewise.
11982 2014-08-07 Gary Benson <gbenson@redhat.com>
11984 * server.h: Do not include pathmax.h.
11986 2014-08-07 Gary Benson <gbenson@redhat.com>
11988 * server.h: Do not include libiberty.h.
11989 * linux-bfin-low.c: Likewise.
11991 2014-08-07 Gary Benson <gbenson@redhat.com>
11993 * server.h: Do not include ansidecl.h.
11995 2014-08-07 Gary Benson <gbenson@redhat.com>
11997 * linux-x86-low.c: Do not include stddef.h.
11998 * lynx-ppc-low.c: Likewise.
11999 * tracepoint.c: Likewise.
12001 2014-08-07 Gary Benson <gbenson@redhat.com>
12003 * server.h: Do not include stdarg.h.
12004 * nto-low.c: Likewise.
12006 2014-08-07 Gary Benson <gbenson@redhat.com>
12008 * server.h: Do not include stdlib.h.
12009 * inferiors.c: Likewise.
12010 * linux-low.c: Likewise.
12011 * regcache.c: Likewise.
12012 * spu-low.c: Likewise.
12013 * tracepoint.c: Likewise.
12014 * utils.c: Likewise.
12016 2014-08-07 Gary Benson <gbenson@redhat.com>
12018 * server.h: Do not include stdio.h.
12019 * linux-low.c: Likewise.
12020 * remote-utils.c: Likewise.
12021 * spu-low.c: Likewise.
12022 * utils.c: Likewise.
12023 * wincecompat.c: Likewise.
12025 2014-08-06 Gary Benson <gbenson@redhat.com>
12027 * regcache.c (init_register_cache): Move conditionals inside if.
12029 2014-08-06 Gary Benson <gbenson@redhat.com>
12031 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
12033 2014-07-31 Gary Benson <gbenson@redhat.com>
12035 * ax.h: Do not include server.h.
12036 * gdbthread.h: Likewise.
12037 * lynx-low.h: Likewise.
12038 * notif.h: Likewise.
12040 2014-07-30 Gary Benson <gbenson@redhat.com>
12042 * server.h: Include common-defs.h.
12043 Do not include config.h or build-gnulib-gdbserver/config.h.
12045 2014-07-30 Gary Benson <gbenson@redhat.com>
12047 * hostio-errno.c: Move server.h to top of includes list.
12048 * inferiors.c: Likewise.
12049 * linux-x86-low.c: Likewise.
12050 * notif.c: Include server.h.
12052 2014-07-24 Tom Tromey <tromey@redhat.com>
12053 Gary Benson <gbenson@redhat.com>
12055 * server.h (CORE_ADDR): Now unsigned.
12057 2014-07-16 Pedro Alves <palves@redhat.com>
12059 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
12061 2014-07-15 Pedro Alves <palves@redhat.com>
12063 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
12066 2014-07-11 Pedro Alves <palves@redhat.com>
12068 * linux-low.c (kill_wait_lwp): New function, based on
12069 kill_one_lwp_callback, but use my_waitpid directly.
12070 (kill_one_lwp_callback, linux_kill): Use it.
12072 2014-06-23 Pedro Alves <palves@redhat.com>
12074 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
12075 before setting DR0..DR3.
12077 2014-06-20 Gary Benson <gbenson@redhat.com>
12079 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
12080 * configure: Regenerated.
12081 * config.in: Likewise.
12083 2014-06-20 Gary Benson <gbenson@redhat.com>
12085 * Makefile.in (SFILES): Update locations for files moved
12086 from common to nat.
12087 (object file files): Reordered.
12089 2014-06-20 Gary Benson <gbenson@redhat.com>
12091 * i386-low.h (i386_dr_low_can_set_addr): Removed.
12092 (i386_dr_low_set_addr): Likewise.
12093 (i386_dr_low_get_addr): Likewise.
12094 (i386_dr_low_can_set_control): Likewise.
12095 (i386_dr_low_set_control): Likewise.
12096 (i386_dr_low_get_control): Likewise.
12097 (i386_dr_low_get_status): Likewise.
12098 (i386_get_debug_register_length): Likewise.
12099 * linux-x86-low.c (i386_dr_low_set_addr):
12100 Changed signature. Made static.
12101 (i386_dr_low_get_addr): Likewise.
12102 (i386_dr_low_set_control): Likewise.
12103 (i386_dr_low_get_control): Likewise.
12104 (i386_dr_low_get_status): Likewise.
12105 (i386_dr_low): New global variable.
12106 * win32-i386-low.c (i386_dr_low_set_addr):
12107 Changed signature. Made static.
12108 (i386_dr_low_get_addr): Likewise.
12109 (i386_dr_low_set_control): Likewise.
12110 (i386_dr_low_get_control): Likewise.
12111 (i386_dr_low_get_status): Likewise.
12112 (i386_dr_low): New global variable.
12114 2014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
12116 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
12117 * Makefile.in (AR, AR_FLAGS): Define.
12118 * configure: Regenerate.
12120 2014-06-19 Gary Benson <gbenson@redhat.com>
12122 * Makefile.in (i386-dregs.o): New rule.
12123 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
12124 * i386-low.c (target.h): Remove include.
12125 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
12126 (DR_CONTROL_SHIFT): Likewise.
12127 (DR_CONTROL_SIZE): Likewise.
12128 (DR_RW_EXECUTE): Likewise.
12129 (DR_RW_WRITE): Likewise.
12130 (DR_RW_READ): Likewise.
12131 (DR_RW_IORW): Likewise.
12132 (DR_LEN_1): Likewise.
12133 (DR_LEN_2): Likewise.
12134 (DR_LEN_4): Likewise.
12135 (DR_LEN_8): Likewise.
12136 (DR_LOCAL_ENABLE_SHIFT): Likewise.
12137 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
12138 (DR_ENABLE_SIZE): Likewise.
12139 (DR_LOCAL_SLOWDOWN): Likewise.
12140 (DR_GLOBAL_SLOWDOWN): Likewise.
12141 (DR_CONTROL_RESERVED): Likewise.
12142 (I386_DR_CONTROL_MASK): Likewise.
12143 (I386_DR_VACANT): Likewise.
12144 (I386_DR_LOCAL_ENABLE): Likewise.
12145 (I386_DR_GLOBAL_ENABLE): Likewise.
12146 (I386_DR_DISABLE): Likewise.
12147 (I386_DR_SET_RW_LEN): Likewise.
12148 (I386_DR_GET_RW_LEN): Likewise.
12149 (I386_DR_WATCH_HIT): Likewise.
12150 (i386_wp_op_t): Likewise.
12151 (i386_show_dr): Likewise.
12152 (i386_length_and_rw_bits): Likewise.
12153 (i386_insert_aligned_watchpoint): Likewise.
12154 (i386_remove_aligned_watchpoint): Likewise.
12155 (i386_handle_nonaligned_watchpoint): Likewise.
12156 i386_update_inferior_debug_regs(): Likewise.
12157 (i386_dr_insert_watchpoint): Likewise.
12158 (i386_dr_remove_watchpoint): Likewise.
12159 (i386_dr_region_ok_for_watchpoint): Likewise.
12160 (i386_dr_stopped_data_address): Likewise.
12161 (i386_dr_stopped_by_watchpoint): Likewise.
12163 2014-06-19 Gary Benson <gbenson@redhat.com>
12165 * i386-low.c (i386_dr_show): Renamed to
12166 i386_show_dr and made static. All uses updated.
12167 (i386_dr_length_and_rw_bits): Renamed to
12168 i386_length_and_rw_bits and made static.
12170 (i386_dr_insert_aligned_watchpoint): Renamed to
12171 i386_insert_aligned_watchpoint and made static.
12173 (i386_dr_remove_aligned_watchpoint): Renamed to
12174 i386_remove_aligned_watchpoint and made static.
12176 (i386_dr_update_inferior_debug_regs): Renamed to
12177 i386_update_inferior_debug_regs and made static.
12180 2014-06-18 Gary Benson <gbenson@redhat.com>
12182 * i386-low.h (i386_dr_low_can_set_addr): New macro.
12183 (i386_dr_low_can_set_control): Likewise.
12184 (i386_get_debug_register_length): Likewise.
12185 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
12186 (i386_dr_low_can_set_control): Likewise.
12187 (i386_get_debug_register_length): Likewise.
12189 2014-06-17 Gary Benson <gbenson@redhat.com>
12191 * i386-low.h (i386-dregs.h): New include.
12192 (DR_FIRSTADDR): Now in i386-dregs.h.
12193 (DR_LASTADDR): Likewise.
12194 (DR_NADDR): Likewise.
12195 (DR_STATUS): Likewise.
12196 (DR_CONTROL): Likewise.
12197 (i386_debug_reg_state): Likewise.
12198 (i386_dr_insert_watchpoint): Likewise.
12199 (i386_dr_remove_watchpoint): Likewise.
12200 (i386_dr_region_ok_for_watchpoint): Likewise.
12201 (i386_dr_stopped_data_address): Likewise.
12202 (i386_dr_stopped_by_watchpoint): Likewise.
12203 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
12205 2014-06-18 Gary Benson <gbenson@redhat.com>
12207 * i386-low.h (i386_low_insert_watchpoint): Renamed to
12208 i386_dr_insert_watchpoint.
12209 (i386_low_remove_watchpoint): Renamed to
12210 i386_dr_remove_watchpoint.
12211 (i386_low_region_ok_for_watchpoint): Renamed to
12212 i386_dr_region_ok_for_watchpoint.
12213 (i386_low_stopped_data_address): Renamed to
12214 i386_dr_stopped_data_address.
12215 (i386_low_stopped_by_watchpoint): Renamed to
12216 i386_dr_stopped_by_watchpoint.
12217 * i386-low.c (i386_show_dr): Renamed to
12218 i386_dr_show and made nonstatic. All uses updated.
12219 (i386_length_and_rw_bits): Renamed to
12220 i386_dr_length_and_rw_bits and made nonstatic.
12222 (i386_insert_aligned_watchpoint): Renamed to
12223 i386_dr_insert_aligned_watchpoint and made nonstatic.
12225 (i386_remove_aligned_watchpoint): Renamed to
12226 i386_dr_remove_aligned_watchpoint and made nonstatic.
12228 (i386_update_inferior_debug_regs): Renamed to
12229 i386_dr_update_inferior_debug_regs and made nonstatic.
12231 (i386_low_insert_watchpoint): Renamed to
12232 i386_dr_insert_watchpoint. All uses updated.
12233 (i386_low_remove_watchpoint): Renamed to
12234 i386_dr_remove_watchpoint. All uses updated.
12235 (i386_low_region_ok_for_watchpoint): Renamed to
12236 i386_dr_region_ok_for_watchpoint. All uses updated.
12237 (i386_low_stopped_data_address): Renamed to
12238 i386_dr_stopped_data_address. All uses updated.
12239 (i386_low_stopped_by_watchpoint): Renamed to
12240 i386_dr_stopped_by_watchpoint. All uses updated.
12242 2014-06-18 Gary Benson <gbenson@redhat.com>
12244 * i386-low.c (i386_dr_low_can_set_addr): New macro.
12245 (i386_dr_low_can_set_control): Likewise.
12246 (i386_insert_aligned_watchpoint): New check.
12248 2014-06-18 Gary Benson <gbenson@redhat.com>
12250 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
12253 2014-06-18 Gary Benson <gbenson@redhat.com>
12255 * i386-low.c (i386_length_and_rw_bits): Use internal_error
12256 instead of fatal and error.
12257 (i386_handle_nonaligned_watchpoint): Likewise.
12259 2014-06-18 Gary Benson <gbenson@redhat.com>
12261 * i386-low.c (i386_get_debug_register_length): New macro.
12262 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
12263 (i386_show_dr): Use debug_printf instead of fprintf. Use
12264 phex to format values.
12266 2014-06-18 Gary Benson <gbenson@redhat.com>
12268 * i386-low.h: Comment changes.
12269 * i386-low.c: Likewise.
12271 2014-06-18 Gary Benson <gbenson@redhat.com>
12273 * i386-low.c: Whitespace changes.
12275 2014-06-12 Tom Tromey <tromey@redhat.com>
12277 * utils.c (freeargv): Remove.
12279 2014-06-12 Tom Tromey <tromey@redhat.com>
12281 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
12282 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
12283 (parse_debug_format_options): Likewise.
12284 (gdbserver_usage): Likewise.
12285 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
12286 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
12287 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
12289 ($(LIBGNU)): Depend on libiberty.
12290 (all-lib): Recurse into all subdirs.
12291 (install-only): Invoke "install" target in subdirs.
12292 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
12294 * configure: Rebuild.
12295 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
12296 for vasprintf, vsnprintf, or gettimeofday.
12297 * configure.srv: Don't add safe-ctype.o or lbasename.o to
12300 2014-06-05 Joel Brobecker <brobecker@adacore.com>
12302 * development.sh: Delete.
12303 * Makefile.in (config.status): Adjust dependency on development.sh.
12304 * configure.ac: Adjust development.sh source call.
12305 * configure: Regenerate.
12307 2014-06-02 Pedro Alves <palves@redhat.com>
12309 * ax.c (gdb_free_agent_expr): New function.
12310 * ax.h (gdb_free_agent_expr): New declaration.
12311 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
12313 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
12315 (clear_breakpoint_conditions_and_commands): New function.
12316 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
12317 (clear_breakpoint_conditions_and_commands): New declaration.
12319 2014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12321 * linux-aarch64-low.c (asm/ptrace.h): Include.
12323 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12325 Fix TLS access for -static -pthread.
12326 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
12327 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
12328 (thread_db_load_search, try_thread_db_load_1): Initialize it.
12330 2014-05-20 Pedro Alves <palves@redhat.com>
12332 * linux-aarch64-low.c (aarch64_insert_point)
12333 (aarch64_remove_point): No longer check whether the type is
12334 supported here. Adjust to new interface.
12335 (the_low_target): Install aarch64_supports_z_point_type as
12336 supports_z_point_type method.
12337 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
12338 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
12339 instead of a Z packet char. Adjust.
12340 (arm_supports_z_point_type): New function.
12341 (arm_insert_point, arm_remove_point): Adjust to new interface.
12342 (the_low_target): Install arm_supports_z_point_type.
12343 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
12344 (cris_insert_point, cris_remove_point): Adjust to new interface.
12345 Don't check whether the type is supported here.
12346 (the_low_target): Install cris_supports_z_point_type.
12347 * linux-low.c (linux_supports_z_point_type): New function.
12348 (linux_insert_point, linux_remove_point): Adjust to new interface.
12349 * linux-low.h (struct linux_target_ops) <insert_point,
12350 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
12351 raw_breakpoint pointer parameter.
12352 <supports_z_point_type>: New method.
12353 * linux-mips-low.c (mips_supports_z_point_type): New function.
12354 (mips_insert_point, mips_remove_point): Adjust to new interface.
12355 Use mips_supports_z_point_type.
12356 (the_low_target): Install mips_supports_z_point_type.
12357 * linux-ppc-low.c (the_low_target): Install NULL as
12358 supports_z_point_type method.
12359 * linux-s390-low.c (the_low_target): Install NULL as
12360 supports_z_point_type method.
12361 * linux-sparc-low.c (the_low_target): Install NULL as
12362 supports_z_point_type method.
12363 * linux-x86-low.c (x86_supports_z_point_type): New function.
12364 (x86_insert_point): Adjust to new insert_point interface. Use
12365 insert_memory_breakpoint. Adjust to new
12366 i386_low_insert_watchpoint interface.
12367 (x86_remove_point): Adjust to remove_point interface. Use
12368 remove_memory_breakpoint. Adjust to new
12369 i386_low_remove_watchpoint interface.
12370 (the_low_target): Install x86_supports_z_point_type.
12371 * lynx-low.c (lynx_target_ops): Install NULL as
12372 supports_z_point_type callback.
12373 * nto-low.c (nto_supports_z_point_type): New.
12374 (nto_insert_point, nto_remove_point): Adjust to new interface.
12375 (nto_target_ops): Install nto_supports_z_point_type.
12376 * mem-break.c: Adjust intro comment.
12377 (struct raw_breakpoint) <raw_type, size>: New fields.
12378 <inserted>: Update comment.
12379 <shlib_disabled>: Delete field.
12380 (enum bkpt_type) <gdb_breakpoint>: Delete value.
12381 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
12382 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
12383 (raw_bkpt_type_to_target_hw_bp_type): New function.
12384 (find_enabled_raw_code_breakpoint_at): New function.
12385 (find_raw_breakpoint_at): New type and size parameters. Use them.
12386 (insert_memory_breakpoint): New function, based off
12387 set_raw_breakpoint_at.
12388 (remove_memory_breakpoint): New function.
12389 (set_raw_breakpoint_at): Reimplement.
12390 (set_breakpoint): New, based on set_breakpoint_at.
12391 (set_breakpoint_at): Reimplement.
12392 (delete_raw_breakpoint): Go through the_target->remove_point
12393 instead of assuming memory breakpoints.
12394 (find_gdb_breakpoint_at): Delete.
12395 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
12396 (find_gdb_breakpoint): New function.
12397 (set_gdb_breakpoint_at): Delete.
12398 (z_type_supported): New function.
12399 (set_gdb_breakpoint_1): New function, loosely based off
12400 set_gdb_breakpoint_at.
12401 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
12402 (delete_gdb_breakpoint_at): Delete.
12403 (delete_gdb_breakpoint_1): New function, loosely based off
12404 delete_gdb_breakpoint_at.
12405 (delete_gdb_breakpoint): New function.
12406 (clear_gdb_breakpoint_conditions): Rename to ...
12407 (clear_breakpoint_conditions): ... this. Don't handle a NULL
12409 (add_condition_to_breakpoint): Make static.
12410 (add_breakpoint_condition): Take a struct breakpoint pointer
12411 instead of an address. Adjust.
12412 (gdb_condition_true_at_breakpoint): Rename to ...
12413 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
12415 (gdb_condition_true_at_breakpoint): Reimplement.
12416 (add_breakpoint_commands): Take a struct breakpoint pointer
12417 instead of an address. Adjust.
12418 (gdb_no_commands_at_breakpoint): Rename to ...
12419 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
12420 parameter. Return true if no breakpoint was found. Change debug
12422 (gdb_no_commands_at_breakpoint): Reimplement.
12423 (run_breakpoint_commands): Rename to ...
12424 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
12425 and change return type to boolean.
12426 (run_breakpoint_commands): New function.
12427 (gdb_breakpoint_here): Also check for Z1 breakpoints.
12428 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
12429 breakpoint. Go through the_target->remove_point instead of
12430 assuming memory breakpoint.
12431 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
12432 software and hardware breakpoints.
12433 (reinsert_raw_breakpoint): Go through the_target->insert_point
12434 instead of assuming memory breakpoint.
12435 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
12436 software and hardware breakpoints.
12437 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
12438 Check both software and hardware breakpoints.
12439 (validate_inserted_breakpoint): Assert the breakpoint is a
12440 software breakpoint. Set the inserted flag to -1 instead of
12441 setting shlib_disabled.
12442 (delete_disabled_breakpoints): Adjust.
12443 (validate_breakpoints): Only validate software breakpoints.
12444 Adjust to inserted flag change.
12445 (check_mem_read, check_mem_write): Skip breakpoint types other
12446 than software breakpoints. Adjust to inserted flag change.
12447 * mem-break.h (enum raw_bkpt_type): New enum.
12448 (raw_breakpoint, struct process_info): Forward declare.
12449 (Z_packet_to_target_hw_bp_type): Delete declaration.
12450 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
12451 (set_gdb_breakpoint, delete_gdb_breakpoint)
12452 (clear_breakpoint_conditions): New declarations.
12453 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
12454 (breakpoint_inserted_here): Update comment.
12455 (add_breakpoint_condition, add_breakpoint_commands): Replace
12456 address parameter with a breakpoint pointer parameter.
12457 (gdb_breakpoint_here): Update comment.
12458 (delete_gdb_breakpoint_at): Delete.
12459 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
12460 * server.c (process_point_options): Take a struct breakpoint
12461 pointer instead of an address. Adjust.
12462 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
12463 delete_gdb_breakpoint.
12464 * spu-low.c (spu_target_ops): Install NULL as
12465 supports_z_point_type method.
12466 * target.h: Include mem-break.h.
12467 (struct target_ops) <prepare_to_access_memory>: Update comment.
12468 <supports_z_point_type>: New field.
12469 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12470 instead of a char. Also take a raw breakpoint pointer.
12471 * win32-arm-low.c (the_low_target): Install NULL as
12472 supports_z_point_type.
12473 * win32-i386-low.c (i386_supports_z_point_type): New function.
12474 (i386_insert_point, i386_remove_point): Adjust to new interface.
12475 (the_low_target): Install i386_supports_z_point_type.
12476 * win32-low.c (win32_supports_z_point_type): New function.
12477 (win32_insert_point, win32_remove_point): Adjust to new interface.
12478 (win32_target_ops): Install win32_supports_z_point_type.
12479 * win32-low.h (struct win32_target_ops):
12480 <supports_z_point_type>: New method.
12481 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12482 instead of a char. Also take a raw breakpoint pointer.
12484 2014-05-20 Pedro Alves <palves@redhat.com>
12486 * mem-break.h: Include break-common.h.
12487 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12488 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
12489 (Z_packet_to_target_hw_bp_type): New declaration.
12490 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
12491 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
12492 (Z_PACKET_ACCESS_WP): Delete macros.
12493 (Z_packet_to_hw_type): Delete function.
12494 * i386-low.h: Don't include break-common.h here.
12495 (Z_packet_to_hw_type): Delete declaration.
12496 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
12497 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12498 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
12499 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12500 * linux-aarch64-low.c: Don't include break-common.h here.
12501 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12502 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
12503 (Z_packet_to_target_hw_bp_type): Delete function.
12504 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
12506 (mips_insert_point, mips_remove_point): Use
12507 Z_packet_to_target_hw_bp_type.
12509 2014-05-20 Pedro Alves <palves@redhat.com>
12511 * linux-aarch64-low.c: Include break-common.h.
12512 (enum target_point_type): Delete.
12513 (Z_packet_to_point_type): Rename to ...
12514 (Z_packet_to_target_hw_bp_type): ... this, and return a
12515 target_hw_bp_type instead.
12516 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
12517 instead of an enum target_point_type.
12518 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
12520 (aarch64_dr_state_insert_one_point)
12521 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
12522 (aarch64_handle_aligned_watchpoint)
12523 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
12524 Take an enum target_hw_bp_type instead of an enum
12526 (aarch64_supports_z_point_type): New function.
12527 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
12528 use Z_packet_to_target_hw_bp_type.
12530 2014-05-20 Joel Brobecker <brobecker@adacore.com>
12532 * configure.ac: Only use -Werror by default when DEVELOPMENT
12534 * configure: Regenerate.
12536 2014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
12538 Fix gdbserver qGetTLSAddr for x86_64 -m32.
12539 * linux-x86-low.c (X86_64_USER_REGS): New.
12540 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
12542 2014-04-28 Yao Qi <yao@codesourcery.com>
12544 * Makefile.in (i386-avx512.c): Fix the typo of generated file
12547 2014-04-25 Pedro Alves <palves@redhat.com>
12550 * linux-low.c (linux_attach_fail_reason_string): New function.
12551 (linux_attach_lwp): Delete.
12552 (linux_attach_lwp_1): Rename to ...
12553 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
12554 argument. Remove "initial" parameter. Return int instead of
12555 void. Don't error or warn here.
12556 (linux_attach): Adjust to call linux_attach_lwp. Call error on
12557 failure to attach to the tgid. Call warning when failing to
12559 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
12560 argument. Remove "initial" parameter. Return int instead of
12561 void. Don't error or warn here.
12562 (linux_attach_fail_reason_string): New declaration.
12563 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
12564 interface change. Use linux_attach_fail_reason_string.
12566 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
12567 Walfred Tedeschi <walfred.tedeschi@intel.com>
12569 * Makefile.in: Added rules to handle new files
12570 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
12571 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
12572 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
12573 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
12574 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
12575 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
12576 x32-avx512-linux.o.
12577 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
12578 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
12579 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
12580 i386/x32-avx512.xml.
12581 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
12582 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
12583 i386/x32-avx512-linux.xml.
12584 * i387-fp.c (num_avx512_k_registers): New constant for number
12586 (num_avx512_zmmh_low_registers): New constant for number of
12587 lower ZMM registers (0-15).
12588 (num_avx512_zmmh_high_registers): New constant for number of
12589 higher ZMM registers (16-31).
12590 (num_avx512_ymmh_registers): New contant for number of higher
12591 YMM registers (ymm16-31 added by avx521 on x86_64).
12592 (num_avx512_xmm_registers): New constant for number of higher
12593 XMM registers (xmm16-31 added by AVX512 on x86_64).
12594 (struct i387_xsave): Add space for AVX512 registers.
12595 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
12596 Add code to handle AVX512 registers.
12597 (i387_xsave_to_cache): Add code to handle AVX512 registers.
12598 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
12599 prototypei from generated file.
12600 (tdesc_amd64_avx512_linux): Likewise.
12601 (init_registers_x32_avx512_linux): Likewise.
12602 (tdesc_x32_avx512_linux): Likewise.
12603 (init_registers_i386_avx512_linux): Likewise.
12604 (tdesc_i386_avx512_linux): Likewise.
12605 (x86_64_regmap): Add AVX512 registers.
12606 (x86_linux_read_description): Add code to handle AVX512 XSTATE
12608 (initialize_low_arch): Add code to initialize AVX512 registers.
12610 2014-04-23 Pedro Alves <palves@redhat.com>
12612 * mem-break.c (find_gdb_breakpoint_at): Make static.
12613 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
12615 2014-04-23 Pedro Alves <palves@redhat.com>
12617 * i386-low.c: Don't include break-common.h here.
12618 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12619 prototype to take target_hw_bp_type as argument instead of a Z
12621 * i386-low.h: Include break-common.h here.
12622 (Z_packet_to_hw_type): Declare.
12623 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12625 * linux-x86-low.c (x86_insert_point): Convert the packet number to
12626 a target_hw_bp_type before calling i386_low_insert_watchpoint.
12627 (x86_remove_point): Convert the packet number to a
12628 target_hw_bp_type before calling i386_low_remove_watchpoint.
12629 * win32-i386-low.c (i386_insert_point): Convert the packet number
12630 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
12631 (i386_remove_point): Convert the packet number to a
12632 target_hw_bp_type before calling i386_low_remove_watchpoint.
12634 2014-04-23 Pedro Alves <palves@redhat.com>
12636 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
12638 2014-04-10 Pedro Alves <palves@redhat.com>
12640 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
12641 Check if the condition or command is NULL before checking if the
12642 breakpoint is known. On success, return true.
12643 * mem-break.h (add_breakpoint_condition): Document return.
12644 (add_breakpoint_commands): Add describing comment.
12645 * server.c (skip_to_semicolon): New function.
12646 (process_point_options): Use it.
12648 2014-04-09 Pedro Alves <palves@redhat.com>
12650 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
12653 2014-02-27 Pedro Alves <palves@redhat.com>
12656 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
12658 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
12660 (last_thread_of_process_p): Take a PID argument instead of a
12662 (linux_wait_for_lwp): Delete.
12663 (num_lwps, check_zombie_leaders, not_stopped_callback): New
12665 (linux_low_filter_event): New function, party factored out from
12666 linux_wait_for_event.
12667 (linux_wait_for_event): Rename to ...
12668 (linux_wait_for_event_filtered): ... this. Add new filter ptid
12669 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
12670 sigsuspend. Check for zombie leaders.
12671 (linux_wait_for_event): Reimplement as wrapper around
12672 linux_wait_for_event_filtered.
12673 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
12674 a normal or signal exit is seen, it's the whole process exiting.
12675 (wait_for_sigstop): No longer a for_each_inferior callback.
12676 Rewrite on top of linux_wait_for_event_filtered.
12677 (stop_all_lwps): Call wait_for_sigstop directly.
12678 * server.c (resume, handle_target_event): Handle
12679 TARGET_WAITKIND_NO_RESUMED.
12681 2014-02-26 Joel Brobecker <brobecker@adacore.com>
12683 * win32-low.c (psapi_get_dll_name,
12684 * win32_CreateToolhelp32Snapshot): Delete.
12685 (win32_CreateToolhelp32Snapshot, win32_Module32First)
12686 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
12688 (handle_load_dll): Add function description.
12689 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
12691 2014-02-26 Joel Brobecker <brobecker@adacore.com>
12693 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
12695 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
12696 base address when calling win32_add_one_solib.
12697 (handle_load_dll): Delete local variable load_addr.
12698 Remove 0x1000 offset applied to DLL base address when calling
12699 win32_add_one_solib.
12700 (handle_unload_dll): Add comment.
12702 2014-02-26 Joel Brobecker <brobecker@adacore.com>
12704 * win32-low.c (win32_add_all_dlls): Renames
12705 win32_ensure_ntdll_loaded. Rewrite function documentation.
12706 Adjust implementation to always load all DLLs.
12707 Add 0x1000 offset to DLL base address when calling
12708 win32_add_one_solib.
12709 (child_initialization_done): New static global.
12710 (do_initial_child_stuff): Set child_initialization_done to
12711 zero during child initialization, and 1 after. Replace call
12712 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
12714 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
12715 (handle_unload_dll): Add function documentation.
12716 (get_child_debug_event): Ignore load and unload DLL events
12717 during child initialization.
12719 2014-02-20 Doug Evans <dje@google.com>
12721 Remove global all_lwps.
12722 * inferiors.h (ptid_of): Move here from linux-low.h.
12723 (pid_of, lwpid_of): Ditto.
12724 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
12725 parameter is a struct thread_info * now.
12726 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
12727 directly. Pass &all_threads to find_inferior instead of &all_lwps.
12728 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
12730 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
12731 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
12732 * linux-arm-low.c (update_registers_callback): Update, "entry"
12733 parameter is a struct thread_info * now.
12734 Fetch lwpid from current_inferior directly.
12735 (arm_insert_point): Pass &all_threads to find_inferior instead of
12737 (arm_remove_point): Ditto.
12738 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
12739 (arm_prepare_to_resume): Fetch pid from thread.
12740 (arm_read_description): Fetch lwpid from current_inferior directly.
12741 * linux-low.c (all_lwps): Delete.
12742 (delete_lwp): Delete call to remove_inferior.
12743 (handle_extended_wait): Fetch lwpid from thread.
12744 (add_lwp): Don't set lwp->entry.id. Remove call to
12745 add_inferior_to_list.
12746 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
12747 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
12748 (kill_one_lwp_callback): Ditto.
12749 (linux_kill): Don't dereference NULL pointer.
12750 Fetch ptid,lwpid from thread.
12751 (get_detach_signal): Fetch ptid from thread.
12752 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
12753 Simplify call to regcache_invalidate_thread.
12754 (delete_lwp_callback): Update, "entry" parameter is a
12755 struct thread_info * now. Fetch pid from thread.
12756 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
12757 (status_pending_p_callback): Update, "entry" parameter is a
12758 struct thread_info * now. Fetch ptid from thread.
12759 (find_lwp_pid): Update, "entry" parameter is a
12760 struct thread_info * now.
12761 (linux_wait_for_lwp): Fetch pid from thread.
12762 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
12763 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
12764 (enqueue_one_deferred_signal): Fetch lwpid from thread.
12765 (dequeue_one_deferred_signal): Ditto.
12766 (cancel_breakpoint): Fetch ptid from current_inferior.
12767 (linux_wait_for_event): Pass &all_threads to find_inferior,
12768 not &all_lwps. Fetch ptid, lwpid from thread.
12769 (count_events_callback): Update, "entry" parameter is a
12770 struct thread_info * now.
12771 (select_singlestep_lwp_callback): Ditto.
12772 (select_event_lwp_callback): Ditto.
12773 (cancel_breakpoints_callback): Ditto.
12774 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
12776 (select_event_lwp): Ditto. Fetch ptid from event_thread.
12777 (unsuspend_one_lwp): Update, "entry" parameter is a
12778 struct thread_info * now.
12779 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
12781 (linux_stabilize_threads): Ditto. And for for_each_inferior.
12782 Fetch lwpid from thread, not lwp.
12783 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
12784 Pass &all_threads to find_inferior, not &all_lwps.
12785 (send_sigstop): Fetch lwpid from thread, not lwp.
12786 (send_sigstop_callback): Update, "entry" parameter is a
12787 struct thread_info * now.
12788 (suspend_and_send_sigstop_callback): Ditto.
12789 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
12790 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
12791 struct thread_info * now.
12792 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
12794 (lwp_running): Update, "entry" parameter is a
12795 struct thread_info * now.
12796 (stop_all_lwps): Fetch ptid from thread.
12797 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
12798 (linux_resume_one_lwp): Fetch lwpid from thread.
12799 (linux_set_resume_request): Update, "entry" parameter is a
12800 struct thread_info * now. Fetch pid, lwpid from thread.
12801 (resume_status_pending_p): Update, "entry" parameter is a
12802 struct thread_info * now.
12803 (need_step_over_p): Ditto. Fetch lwpid from thread.
12804 (start_step_over): Fetch lwpid from thread.
12805 (linux_resume_one_thread): Update, "entry" parameter is a
12806 struct thread_info * now. Fetch lwpid from thread.
12807 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
12808 (proceed_one_lwp): Update, "entry" parameter is a
12809 struct thread_info * now. Fetch lwpid from thread.
12810 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
12811 struct thread_info * now.
12812 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
12813 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
12814 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
12816 (regsets_store_inferior_registers): Ditto.
12817 (fetch_register, store_register): Ditto.
12818 (linux_read_memory, linux_write_memory): Ditto.
12819 (linux_request_interrupt): Ditto.
12820 (linux_read_auxv): Ditto.
12821 (linux_xfer_siginfo): Ditto.
12822 (linux_qxfer_spu): Ditto.
12823 (linux_qxfer_libraries_svr4): Ditto.
12824 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
12825 moved to inferiors.h.
12827 (get_thread_lwp): Update.
12828 (struct lwp_info): Delete member "entry". Simplify comment for
12830 (all_lwps): Delete.
12831 * linux-mips-low.c (mips_read_description): Fetch lwpid from
12832 current_inferior directly.
12833 (update_watch_registers_callback): Update, "entry" parameter is a
12834 struct thread_info * now. Fetch pid from thread.
12835 (mips_linux_prepare_to_resume): Fetch ptid from thread.
12836 (mips_insert_point): Fetch lwpid from current_inferior.
12837 Pass &all_threads to find_inferior, not &all_lwps.
12838 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
12839 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
12841 (mips_stopped_data_address): Ditto.
12842 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
12844 * linux-tile-low.c (tile_arch_setup): Ditto.
12845 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
12846 (update_debug_registers_callback): Update, "entry" parameter is a
12847 struct thread_info * now. Fetch pid from thread.
12848 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
12849 Pass &all_threads to find_inferior, not &all_lwps.
12850 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
12851 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
12852 Pass &all_threads to find_inferior, not &all_lwps.
12853 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
12854 (i386_dr_low_get_status): Ditto.
12855 (x86_linux_prepare_to_resume): Fetch ptid from thread.
12856 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
12857 (x86_linux_read_description): Ditto.
12858 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
12860 2014-02-20 Doug Evans <dje@google.com>
12862 * inferiors.c (get_first_inferior): Fix buglet.
12864 2014-02-19 Doug Evans <dje@google.com>
12866 * gdbthread.h (add_thread): Change result type to struct thread_info *.
12867 * inferiors.c (add_thread): Change result type to struct thread_info *.
12868 All callers updated.
12869 (add_lwp): Call add_thread here instead of in callers.
12870 All callers updated.
12871 * linux-low.h (get_lwp_thread): Rewrite.
12872 (struct lwp_info): New member "thread".
12874 2014-02-19 Doug Evans <dje@google.com>
12876 * linux-low.c (add_lwp): Change result to struct lwp_info *.
12877 All callers updated.
12879 2014-02-19 Doug Evans <dje@google.com>
12881 * inferiors.c (add_thread): Fix whitespace.
12883 2014-02-19 Doug Evans <dje@google.com>
12885 * dll.c (clear_dlls): Replace accessing list implemention details
12887 * gdbthread.h (get_first_thread): Declare.
12888 * inferiors.c (for_each_inferior_with_data): New function.
12889 (get_first_thread): New function.
12890 (find_thread_ptid): Simplify.
12891 (get_first_inferior): New function.
12892 (clear_list): Delete.
12893 (one_inferior_p): New function.
12894 (clear_inferior_list): New function.
12895 (clear_inferiors): Update.
12896 * inferiors.h (for_each_inferior_with_data): Declare.
12897 (clear_inferior_list): Declare.
12898 (one_inferior_p): Declare.
12899 (get_first_inferior): Declare.
12900 * linux-low.c (linux_wait_for_event): Replace accessing list
12901 implemention details with API function.
12902 * server.c (target_running): Ditto.
12903 (accumulate_file_name_length): New function.
12904 (emit_dll_description): New function.
12905 (handle_qxfer_libraries): Replace accessing list implemention
12906 details with API function.
12907 (handle_qxfer_threads_worker): New function.
12908 (handle_qxfer_threads_proper): Replace accessing list implemention
12909 details with API function.
12910 (handle_query): Ditto.
12911 (visit_actioned_threads_callback_ftype): New typedef.
12912 (visit_actioned_threads_data): New struct.
12913 (visit_actioned_threads): Rewrite to be find_inferior callback.
12914 (resume): Call find_inferior.
12915 (handle_status): Replace accessing list implemention
12916 details with API function.
12917 (process_serial_event): Replace accessing list implemention details
12919 * target.c (set_desired_inferior): Replace accessing list implemention
12920 details with API function.
12921 * tracepoint.c (same_process_p): New function.
12922 (gdb_agent_about_to_close): Replace accessing list implemention
12923 details with API function.
12924 * win32-low.c (child_delete_thread): Replace accessing list
12925 implemention details with API function.
12926 (match_dll_by_basename): New function.
12927 (dll_is_loaded_by_basename): New function.
12928 (win32_ensure_ntdll_loaded): Replace accessing list implemention
12929 details call to dll_is_loaded_by_basename.
12931 2014-02-19 Doug Evans <dje@google.com>
12933 * dll.h (struct dll_info): Add comment.
12934 * gdbthread.h (struct thread_info): Add comment.
12935 (current_ptid): Simplify.
12936 * inferiors.c (add_process): Update.
12937 (remove_process): Update.
12938 * inferiors.h (struct process_info): Rename member "head" to "entry".
12939 * linux-low.c (delete_lwp): Update.
12941 (last_thread_of_process_p): Update.
12942 (kill_one_lwp_callback, linux_kill): Update.
12943 (status_pending_p_callback): Update.
12944 (wait_for_sigstop): Update. Simplify read of ptid.
12945 (start_step_over): Update.
12946 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
12947 (get_lwp_thread): Update.
12948 (struct lwp_info): Rename member "head" to "entry".
12949 * regcache.h (inferior_list_entry): Delete.
12950 * server.c (kill_inferior_callback): Update.
12951 (detach_or_kill_inferior_callback): Update.
12952 (print_started_pid): Update.
12953 (print_attached_pid): Update.
12954 (process_serial_event): Simplify read of ptid.
12955 * thread-db.c (thread_db_create_event): Update.
12956 (thread_db_get_tls_address): Update.
12957 * win32-low.c (current_inferior_ptid): Simplify.
12959 2014-02-19 Tom Tromey <tromey@redhat.com>
12961 * target.h (struct target_ops) <supports_btrace>: Add target_ops
12963 (target_supports_btrace): Update.
12965 2014-02-14 Yao Qi <yao@codesourcery.com>
12967 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
12968 (rsp-low-ipa.o): New target.
12970 2014-02-12 Tom Tromey <tromey@redhat.com>
12972 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
12973 convert_ascii_to_int.
12974 * regcache.c (registers_to_string): Likewise.
12975 * remote-utils.c (decode_M_packet): Likewise.
12976 * server.c (process_serial_event): Likewise.
12978 2014-02-12 Tom Tromey <tromey@redhat.com>
12980 * server.c (handle_query, handle_v_run): Use hex2bin, not
12982 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
12984 2014-02-12 Tom Tromey <tromey@redhat.com>
12986 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
12987 convert_int_to_ascii.
12988 * regcache.c (registers_to_string, collect_register_as_string):
12990 * remote-utils.c (look_up_one_symbol, relocate_instruction):
12992 * server.c (process_serial_event): Likewise.
12993 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
12994 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
12996 2014-02-12 Tom Tromey <tromey@redhat.com>
12998 * remote-utils.c (look_up_one_symbol, monitor_output): Use
12999 bin2hex, not hexify.
13000 * tracepoint.c (cmd_qtstatus): Likewise.
13002 2014-02-12 Tom Tromey <tromey@redhat.com>
13004 * remote-utils.c (monitor_output): Pass explicit length to
13007 2014-02-12 Tom Tromey <tromey@redhat.com>
13009 * tracepoint.c: Include rsp-low.h.
13010 * server.c: Include rsp-low.h.
13011 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
13012 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
13014 * remote-utils.c: Include rsp-low.h.
13015 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
13016 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
13017 (convert_int_to_ascii, convert_ascii_to_int): Move to
13019 * regcache.c: Include rsp-low.h.
13020 * ax.c: Include rsp-low.h.
13021 * Makefile.in (SFILES): Add common/rsp-low.c.
13022 (OBS): Add rsp-low.o.
13023 (rsp-low.o): New target.
13025 2014-02-12 Tom Tromey <tromey@redhat.com>
13027 * utils.h (pulongest, plongest, phex_nz): Don't declare.
13028 Include print-utils.h.
13029 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13030 (plongest, thirty_two, phex_nz): Remove.
13031 * Makefile.in (SFILES): Add common/print-utils.c.
13032 (OBS): Add print-utils.o.
13033 (print-utils-ipa.o): New target.
13034 (print-utils.o): New target.
13035 (IPA_OBJS): Add print-utils-ipa.o.
13037 2014-02-06 Tom Tromey <tromey@redhat.com>
13039 * Makefile.in (SFILES): Fix indentation.
13041 2014-02-05 Doug Evans <dje@google.com>
13043 * linux-low.c (linux_wait_for_event): Improve comment.
13044 (linux_wait_1): Keep current_inferior in sync with event_child.
13046 2014-01-22 Doug Evans <dje@google.com>
13048 * gdbthread.h (gdb_id_to_thread): Delete, unused.
13050 2014-01-22 Doug Evans <dje@google.com>
13052 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
13053 * configure: Regenerate.
13054 * config.in: Regenerate.
13055 * Makefile.in (SFILES): Add debug.c.
13056 (OBS): Add debug.o.
13057 * debug.c: New file.
13058 * debug.h: New file.
13059 * linux-aarch64-low.c (*): Update all debugging printfs to use
13060 debug_printf instead of fprintf.
13061 * linux-arm-low.c (*): Ditto.
13062 * linux-cris-low.c (*): Ditto.
13063 * linux-crisv32-low.c (*): Ditto.
13064 * linux-m32r-low.c (*): Ditto.
13065 * linux-sparc-low.c (*): Ditto.
13066 * linux-x86.c (*): Ditto.
13067 * linux-low.c (*): Ditto.
13068 (linux_wait_1): Add calls to debug_enter, debug_exit.
13069 (linux_wait): Remove redundant debugging printf.
13070 (stop_all_lwps): Add calls to debug_enter, debug_exit.
13071 (linux_resume, unstop_all_lwps): Ditto.
13072 * mem-break.c (*): Update all debugging printfs to use
13073 debug_printf instead of fprintf.
13074 * remote-utils.c (*): Ditto.
13075 * thread-db.c (*): Ditto.
13076 * server.c #include <ctype.h>, "gdb_vecs.h".
13077 (debug_threads): Moved to debug.c.
13078 (*): Update all debugging printfs to use debug_printf instead of
13080 (start_inferior): Replace call to fflush with call to debug_flush.
13081 (monitor_show_help): Mention set debug-format.
13082 (parse_debug_format_options): New function.
13083 (handle_monitor_command): Handle "monitor set debug-format".
13084 (gdbserver_usage): Mention --debug-format.
13085 (main): Parse --debug-format.
13086 * server.h (debug_threads): Declaration moved to debug.h.
13087 #include "debug.h".
13088 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
13089 trace_debug_1 that uses debug_printf.
13090 (tracepoint_look_up_symbols): Update all debugging printfs to use
13091 debug_printf instead of fprintf.
13093 2014-01-20 Baruch Siach <baruch@tkos.co.il>
13095 * linux-xtensa-low.c: Include asm/ptrace.h instead of
13098 2014-01-17 Pedro Alves <palves@redhat.com>
13101 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
13102 defined after including gdb_proc_service.h.
13104 2014-01-16 Doug Evans <dje@google.com>
13106 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
13107 (match_dll): Use it.
13109 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13111 * target.h (target_ops) <read_btrace>: Change parameters and
13112 return type to allow error reporting.
13113 * server.c (handle_qxfer_btrace): Support delta reads. Pass
13114 trace reading errors on.
13115 * linux-low.c (linux_low_read_btrace): Pass trace reading
13117 (linux_low_disable_btrace): New.
13119 2014-01-15 Doug Evans <dje@google.com>
13121 * inferiors.c (thread_id_to_gdb_id): Delete.
13122 * inferiors.h (thread_id_to_gdb_id): Delete.
13124 2014-01-13 Eli Zaretskii <eliz@gnu.org>
13126 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
13127 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
13130 2014-01-08 Pedro Alves <palves@redhat.com>
13132 * server.c (handle_status): Don't discard previous queued stop
13133 replies or thread's pending status here.
13134 (main) <disconnection>: Do it here instead.
13136 2014-01-08 Pedro Alves <palves@redhat.com>
13138 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
13139 * server.c (visit_actioned_threads, handle_pending_status): New
13141 (handle_v_cont): Factor out parts to ...
13142 (resume): ... this new function. If in all-stop, and a thread
13143 being resumed has a pending status, report it without actually
13145 (myresume): Adjust to use the new 'resume' function.
13146 (clear_pending_status_callback, set_pending_status_callback)
13147 (find_status_pending_thread_callback): New functions.
13148 (handle_status): Handle the case of multiple threads having
13149 interesting statuses to report. Report threads' real last signal
13150 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
13151 with an interesting thread to report the status for, instead of
13152 always reporting the status of the first thread.
13154 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13156 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
13157 * gdbreplay.c (gdbreplay_version): Likewise.
13159 2013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
13161 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
13162 iov.iov_len with the real length in use.
13164 2013-12-13 Joel Brobecker <brobecker@adacore.com>
13166 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
13167 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
13168 for all targets that use win32-low.c.
13169 * win32-low.c (win32_ensure_ntdll_loaded): New function.
13170 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
13172 2013-12-13 Pedro Alves <palves@redhat.com>
13174 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
13175 if equal to TARGET_WAITKIND_LOADED.
13176 * win32-low.c (cached_status): New static global.
13177 (win32_wait): Add declaration.
13178 (do_initial_child_stuff): Flush all initial pending debug events
13179 up to the initial breakpoint.
13180 (win32_wait): If CACHED_STATUS was set, return that instead
13181 of doing a real wait. Remove the code resuming the execution
13182 of the inferior after receiving a TARGET_WAITKIND_LOADED event
13183 during the initial phase. Also remove the code changing
13184 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
13185 TARGET_WAITKIND_STOPPED.
13187 2013-12-11 Yao Qi <yao@codesourcery.com>
13189 * notif.c (handle_notif_ack): Return 0 if no notification
13192 2013-11-20 Doug Evans <dje@google.com>
13194 * linux-low.c (linux_set_resume_request): Fix comment.
13196 2013-11-20 Doug Evans <dje@google.com>
13198 * linux-low.c (resume_status_pending_p): Tweak comment.
13200 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
13202 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
13203 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
13204 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
13205 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
13206 (srv_amd64_regobj): Add amd64-mpx.o.
13207 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
13208 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
13209 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
13210 * i387-fp.c (num_pl_bnd_register) Added constant.
13211 (num_pl_bnd_cfg_registers) Added constant.
13212 (struct i387_xsave) Added reserved area and MPX fields.
13213 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
13214 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
13216 (tdesc_i386_mpx_linux): Add MPX amd64 target.
13217 (init_registers_amd64_mpx_linux): Declare new function.
13218 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
13219 (x86_64_regmap): Add MPX registers.
13220 (x86_linux_read_description): Add MPX case.
13221 (initialize_low_arch): Initialize MPX targets.
13223 2013-11-18 Tom Tromey <tromey@redhat.com>
13225 * configure: Rebuild.
13226 * configure.ac: Don't check for stdlib.h.
13227 * gdbreplay.c: Unconditionally include stdlib.h.
13229 2013-11-18 Tom Tromey <tromey@redhat.com>
13231 * config.in: Rebuild.
13232 * configure: Rebuild.
13233 * configure.ac: Don't use AC_HEADER_DIRENT.
13235 2013-11-18 Tom Tromey <tromey@redhat.com>
13237 * server.h: Don't check HAVE_STRING_H.
13238 * gdbreplay.c: Don't check HAVE_STRING_H.
13239 * configure: Rebuild.
13241 2013-11-18 Tom Tromey <tromey@redhat.com>
13243 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
13246 2013-11-08 Tom Tromey <tromey@redhat.com>
13248 * configure, config.in: Rebuild.
13249 * configure.ac: Remove unused configury.
13251 2013-11-08 Tom Tromey <tromey@redhat.com>
13253 * acinclude.m4: Include common.m4, codeset.m4.
13254 * configure, config.in: Rebuild.
13255 * configure.ac: Use GDB_AC_COMMON.
13257 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
13259 * linux-s390-low.c (HWCAP_S390_TE): New define.
13260 (s390_arch_setup): Consider the TE field in the HWCAP for
13261 determining 'have_regset_tdb'.
13263 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
13266 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
13269 2013-10-02 Pedro Alves <palves@redhat.com>
13271 * server.c (process_serial_event): Don't output "GDBserver
13272 exiting" if GDB is connected through stdio.
13273 * target.c (mywait): Likewise, be silent if GDB is connected
13276 2013-10-01 Joel Brobecker <brobecker@adacore.com>
13278 * lynx-low.c (lynx_add_threads_after_attach): New function.
13279 (lynx_attach): Remove call to add_thread. Add call to
13280 lynx_add_threads_after_attach instead.
13282 2013-09-28 Mike Frysinger <vapier@gentoo.org>
13284 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
13285 * config.in, configure: Regenerated.
13287 2013-09-18 Yao Qi <yao@codesourcery.com>
13290 * server.c (start_inferior): Clear 'resume_info'.
13292 2013-09-16 Jiong Wang <jiwang@tilera.com>
13294 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
13297 2013-09-16 Jiong Wang <jiwang@tilera.com>
13299 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
13300 linux-tile-low.o to srv_tgtobj.
13302 2013-09-16 Will Newton <will.newton@linaro.org>
13304 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
13307 2013-09-06 Pedro Alves <palves@redhat.com>
13309 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
13310 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
13311 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
13312 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
13313 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
13314 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
13316 2013-09-06 Pedro Alves <palves@redhat.com>
13318 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
13319 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
13321 2013-09-06 Pedro Alves <palves@redhat.com>
13323 * linux-amd64-ipa.c: Include tracepoint.h.
13324 * linux-i386-ipa.c: Include tracepoint.h.
13326 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
13328 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
13329 (ps_get_thread_area): New function.
13331 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
13333 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
13334 (initialize_low_arch): Call init_registers_crisv32 rather than
13335 init_register_crisv32.
13337 2013-09-05 Pedro Alves <palves@redhat.com>
13339 * server.h (handle_vFile, hostio_last_error_from_errno): Move
13341 * hostio.h: ... this new file.
13342 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
13343 win32-low.c: Include hostio.h.
13345 2013-09-05 Pedro Alves <palves@redhat.com>
13347 * server.h (gdb_client_data, handler_func, callback_handler_func)
13348 (delete_file_handler, add_file_handler, append_callback_event)
13349 (delete_callback_event, start_event_loop, initialize_event_loop):
13350 Move to event-loop.h and include it.
13351 * event-loop.h: New file.
13353 2013-09-05 Pedro Alves <palves@redhat.com>
13355 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
13356 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
13357 (loaded_dll, unloaded_dll): Move to ...
13358 * dll.h: ... this new file.
13359 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
13361 2013-09-05 Pedro Alves <palves@redhat.com>
13363 * server.h (current_process, get_thread_process, all_processes)
13364 (add_inferior_to_list, for_each_inferior, current_inferior)
13365 (remove_inferior, add_process, remove_process, find_process_pid)
13366 (have_started_inferiors_p, have_attached_inferiors_p)
13367 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
13368 (clear_inferiors, find_inferior, find_inferior_id)
13369 (inferior_target_data, set_inferior_target_data)
13370 (inferior_regcache_data, set_inferior_regcache_data): Move to
13371 inferiors.h, and include it.
13372 * inferiors.h: New file.
13374 2013-09-05 Pedro Alves <palves@redhat.com>
13376 * server.h (struct emit_ops, current_insn_ptr, emit_error):
13380 2013-09-05 Pedro Alves <palves@redhat.com>
13382 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
13384 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
13385 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
13386 (handle_tracepoint_general_set, handle_tracepoint_query)
13387 (tracepoint_finished_step, tracepoint_was_hit)
13388 (release_while_stepping_state_list, current_traceframe)
13389 (in_readonly_region, traceframe_read_mem)
13390 (fetch_traceframe_registers, traceframe_read_sdata)
13391 (traceframe_read_info, struct fast_tpoint_collect_status)
13392 (fast_tracepoint_collecting, force_unlock_trace_buffer)
13393 (handle_tracepoit_bkpts, initialize_low_tracepoint)
13394 (supply_fast_tracepoint_registers)
13395 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
13396 (ipa_tdesc, claim_trampoline_space)
13397 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
13398 (agent_mem_read, agent_get_trace_state_variable_value)
13399 (agent_set_trace_state_variable_value, agent_tsv_read)
13400 (agent_mem_read_string, get_raw_reg_func_addr)
13401 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
13402 * tracepoint.h: ... this new file.
13404 2013-09-05 Pedro Alves <palves@redhat.com>
13406 * server.h (perror_with_name, error, fatal, warning, paddress)
13407 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
13409 * utils.h: New file.
13411 2013-09-05 Pedro Alves <palves@redhat.com>
13413 * server.h (remote_debug, noack_mode, transport_is_reliable)
13414 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
13415 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
13416 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
13417 (write_enn, initialize_async_io, enable_async_io)
13418 (disable_async_io, check_remote_input_interrupt_request)
13419 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
13420 (dead_thread_notify, prepare_resume_reply)
13421 (decode_address_to_semicolon, decode_address, decode_m_packet)
13422 (decode_M_packet, decode_X_packet, decode_xfer_write)
13423 (decode_search_memory_packet, unhexify, hexify)
13424 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
13425 (look_up_one_symbol, relocate_instruction)
13426 (monitor_output): Move to remote-utils.h, and include it.
13427 * remote-utils.h: New file.
13429 2013-09-05 Pedro Alves <palves@redhat.com>
13431 * server.h (_): Delete.
13433 2013-09-02 Pedro Alves <palves@redhat.com>
13435 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
13436 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
13438 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
13440 2013-09-02 Pierre Muller <muller@sourceware.org>
13442 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
13443 or WriteProcessMemory complete successfully and handle
13444 ERROR_PARTIAL_COPY error.
13446 2013-09-02 Pedro Alves <palves@redhat.com>
13448 * server.c (gdb_read_memory): Return -1 on traceframe memory read
13449 error instead of EIO.
13451 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
13454 * linux-low.c: Include filestuff.h.
13455 (linux_create_inferior) <pid == 0>: Call close_most_fds.
13456 * lynx-low.c: Include filestuff.h.
13457 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
13458 * server.c: Include filestuff.h.
13459 (main): Call notice_open_fds.
13460 * spu-low.c: Include filestuff.h.
13461 (spu_create_inferior) <pid == 0>: Call close_most_fds.
13463 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
13465 * Makefile.in: Explain why ../target and ../nat are not
13466 listed as include file search paths.
13467 (linux-waitpid.o): New object file rule.
13468 * configure.srv (srv_native_linux_obj): New variable.
13469 Replace all occurrences of linux native object files with
13470 $srv_native_linux_obj.
13471 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
13472 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
13473 (linux_enable_event_reporting): Remove declaration.
13474 (my_waitpid): Moved to common/linux-waitpid.c.
13475 (linux_wait_for_event): Pass ptid when calling
13476 linux_enable_event_reporting.
13477 (linux_supports_tracefork_flag): Remove.
13478 (linux_enable_event_reporting): Likewise.
13479 (linux_tracefork_grandchild): Remove.
13480 (STACK_SIZE): Moved to common/linux-ptrace.c.
13481 (linux_tracefork_child): Remove.
13482 (linux_test_for_tracefork): Remove.
13483 (linux_look_up_symbols): Call linux_supports_traceclone.
13484 (initialize_low): Remove call to linux_test_for_tracefork.
13485 * linux-low.h (PTRACE_TYPE_ARG3): Move to
13486 common/linux-ptrace.h.
13487 (PTRACE_TYPE_ARG4): Likewise.
13488 Include linux-ptrace.h.
13490 2013-08-21 Pedro Alves <palves@redhat.com>
13492 * config.in: Renegerate.
13494 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
13496 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
13497 (SFILES): Remove $(srcdir)/common/target-common.c and
13498 add $(srcdir)/target/waitstatus.c.
13499 (OBS): Remove target-common.o and add waitstatus.o.
13500 (server_h): Remove $(srcdir)/../common/target-common.h and
13501 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
13502 and $(srcdir)/../target/waitstatus.h.
13503 (target-common.o): Remove.
13504 (waitstatus.o): New target object file.
13505 * target.h: Do not include target-common.h and
13506 include target/resume.h, target/wait.h and
13507 target/waitstatus.h.
13509 2013-08-13 Luis Machado <lgustavo@codesourcery.com>
13511 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13512 to PTRACE_TYPE_ARG3.
13513 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13514 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
13516 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
13517 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
13519 2013-07-27 Jie Zhang <jie@codesourcery.com>
13520 Daniel Jacobowitz <dan@codesourcery.com>
13521 Yao Qi <yao@codesourcery.com>
13523 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
13524 (mips-linux-watch.o): New rule.
13525 (mips_linux_watch_h): New variable.
13526 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
13528 * linux-mips-low.c: Include mips-linux-watch.h.
13529 (struct arch_process_info, struct arch_lwp_info): New.
13530 (update_watch_registers_callback): New function.
13531 (mips_linux_new_process, mips_linux_new_thread) New functions.
13532 (mips_linux_prepare_to_resume, mips_insert_point): New
13534 (mips_remove_point, mips_stopped_by_watchpoint): New
13536 (rsp_bp_type_to_target_hw_bp_type): New function.
13537 (mips_stopped_data_address): New function.
13538 (the_low_target): Add watchpoint support functions.
13540 2013-07-27 Yao Qi <yao@codesourcery.com>
13542 * i386-low.c: Include break-common.h.
13543 (enum target_hw_bp_type): Remove.
13545 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
13547 * Makefile.in (SFILES): /common/target-common.c.
13548 (OBS): Add target-common.o.
13549 (server_h): Add $(srcdir)/../common/target-common.h.
13550 (target-common.o): New target.
13551 * server.c (queue_stop_reply_callback): Free
13552 status string after use.
13553 * target.c (target_waitstatus_to_string): Remove.
13554 * target.h: Include target-common.h.
13555 (resume_kind): Likewise.
13556 (target_waitkind): Likewise.
13557 (target_waitstatus): Likewise.
13558 (TARGET_WNOHANG): Likewise.
13560 2013-07-04 Yao Qi <yao@codesourcery.com>
13562 * Makefile.in (host_alias): Use @host_noncanonical@.
13563 (target_alias): Use @target_noncanonical@.
13564 * configure.ac: Use ACX_NONCANONICAL_TARGET and
13565 ACX_NONCANONICAL_HOST.
13566 * configure: Regenerated.
13569 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13571 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13572 * configure: Rebuild.
13573 * Makefile.in (version_host, version_target): Get from configure.
13574 (version.c): Use $(version_host) and $(version_target).
13576 2013-07-03 Pedro Alves <palves@redhat.com>
13578 * Makefile.in (config.status): Depend on development.sh.
13579 * acinclude.m4: Include libmcheck.m4.
13580 * configure: Regenerate.
13582 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13584 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
13585 attribute inside the parentheses.
13586 (winapi_DebugSetProcessKillOnExit): Ditto.
13587 (winapi_DebugBreakProcess): Ditto.
13588 (winapi_GenerateConsoleCtrlEvent): Ditto.
13590 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13592 * notif.h (notif_event): Add a dummy member to avoid compiler
13595 2013-07-01 Pedro Alves <palves@redhat.com>
13597 * hostio.c (HOSTIO_PATH_MAX): Define.
13598 (require_filename, handle_open, handle_unlink, handle_readlink):
13601 2013-07-01 Pedro Alves <palves@redhat.com>
13603 * server.h: Include "pathmax.h".
13604 * linux-low.c: Don't include sys/param.h.
13605 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
13607 * win32-low.c: Don't include sys/param.h.
13608 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
13610 2013-07-01 Pedro Alves <palves@redhat.com>
13612 * event-loop.c: Don't check HAVE_UNISTD_H before including
13614 * gdbreplay.c: Likewise.
13615 * remote-utils.c: Likewise.
13616 * server.c: Likewise.
13617 * configure.ac: Don't check for unistd.h.
13618 * configure: Regenerate.
13620 2013-06-28 Tom Tromey <tromey@redhat.com>
13622 * Makefile.in (version.c): Use version.in, not
13625 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13627 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13628 * configure: Rebuild.
13629 * Makefile.in (version_host, version_target): Get from configure.
13630 (version.c): Use $(version_host) and $(version_target).
13632 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13634 Fix trace-status to output user name without trailing colon.
13635 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
13637 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13639 Fix trace-status to output proper start-time and stop-time.
13640 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
13641 output start time and stop time in hex as gdb expects.
13643 2013-06-26 Pedro Alves <pedro@codesourcery.com>
13645 * tracepoint.c (build_traceframe_info_xml): Output trace state
13646 variables present in the trace buffer.
13648 2013-06-24 Tom Tromey <tromey@redhat.com>
13650 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
13652 (version.o): Remove.
13653 * gdbreplay.c: Include version.h.
13654 (version, host_name): Don't declare.
13655 * server.h: Include version.h.
13656 (version, host_name): Don't declare.
13658 2013-06-12 Pedro Alves <palves@redhat.com>
13660 * linux-x86-low.c (linux_is_elf64): Delete global.
13661 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
13662 with local linux_pid_exe_is_elf_64_file use.
13664 2013-06-11 Pedro Alves <palves@redhat.com>
13666 * linux-low.c (regset_disabled, disable_regset): New functions.
13667 (regsets_fetch_inferior_registers)
13668 (regsets_store_inferior_registers): Use them.
13669 (initialize_regsets_info); Don't allocate the disabled_regsets
13671 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
13674 2013-06-11 Pedro Alves <palves@redhat.com>
13676 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
13679 2013-06-11 Pedro Alves <palves@redhat.com>
13681 * linux-x86-low.c (initialize_low_arch): Call
13682 init_registers_x32_avx_linux.
13684 2013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13686 Fix compatibility with Android Bionic.
13687 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
13690 2013-06-07 Pedro Alves <palves@redhat.com>
13693 * Makefile.in (OBS): Add tdesc.o.
13694 (IPA_OBJS): Add tdesc-ipa.o.
13695 (tdesc-ipa.o): New rule.
13696 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
13698 * linux-low.c (new_inferior): Delete.
13699 (disabled_regsets, num_regsets): Delete.
13700 (linux_add_process): Adjust to set the new per-process
13702 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
13703 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
13704 was a stop. When calling arch_setup, switch the current inferior
13705 to the thread that got an event.
13706 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
13707 (regsets_fetch_inferior_registers)
13708 (regsets_store_inferior_registers): New regsets_info parameter.
13710 (linux_register_in_regsets): New regs_info parameter. Adjust to
13712 (register_addr, fetch_register, store_register): New usrregs_info
13713 parameter. Adjust to use it.
13714 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
13715 parameter regs_info. Adjust to use it.
13716 (linux_fetch_registers): Get the current inferior's regs_info, and
13718 (linux_store_registers): Ditto.
13719 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
13720 (initialize_low): Don't initialize the target_regsets here. Call
13721 initialize_low_arch.
13722 * linux-low.h (target_regsets): Delete declaration.
13723 (struct regsets_info): New.
13724 (struct usrregs_info): New.
13725 (struct regs_info): New.
13726 (struct process_info_private) <new_inferior>: New field.
13727 (struct linux_target_ops): Delete the num_regs, regmap, and
13728 regset_bitmap fields. New field regs_info.
13729 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
13730 * i387-fp.c (num_xmm_registers): Delete.
13731 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
13732 calls to new interface.
13733 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
13734 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
13735 Infer the number of xmm registers from the regcache's target
13737 * i387-fp.h (num_xmm_registers): Delete.
13738 * inferiors.c (add_thread): Don't install the thread's regcache
13740 * proc-service.c (gregset_info): Fetch the current inferior's
13741 regs_info. Adjust to use it.
13742 * regcache.c: Include tdesc.h.
13743 (register_bytes, reg_defs, num_registers)
13744 (gdbserver_expedite_regs): Delete.
13745 (get_thread_regcache): If the thread doesn't have a regcache yet,
13746 create one, instead of aborting gdbserver.
13747 (regcache_invalidate_one): Rename to ...
13748 (regcache_invalidate_thread): ... this.
13749 (regcache_invalidate_one): New.
13750 (regcache_invalidate): Only invalidate registers of the current
13752 (init_register_cache): Add target_desc parameter, and use it.
13753 (new_register_cache): Ditto. Assert the target description has a
13754 non zero registers_size.
13755 (regcache_cpy): Add assertions. Adjust.
13756 (realloc_register_cache, set_register_cache): Delete.
13757 (registers_to_string, registers_from_string): Adjust.
13758 (find_register_by_name, find_regno, find_register_by_number)
13759 (register_cache_size): Add target_desc parameter, and use it.
13760 (free_register_cache_thread, free_register_cache_thread_one)
13761 (regcache_release, register_cache_size): New.
13762 (register_size): Add target_desc parameter, and use it.
13763 (register_data, supply_register, supply_register_zeroed)
13764 (supply_regblock, supply_register_by_name, collect_register)
13765 (collect_register_as_string, collect_register_by_name): Adjust.
13766 * regcache.h (struct target_desc): Forward declare.
13767 (struct regcache) <tdesc>: New field.
13768 (init_register_cache, new_register_cache): Add target_desc
13770 (regcache_invalidate_thread): Declare.
13771 (regcache_invalidate_one): Delete declaration.
13772 (regcache_release): Declare.
13773 (find_register_by_number, register_cache_size, register_size)
13774 (find_regno): Add target_desc parameter.
13775 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
13777 * remote-utils.c: Include tdesc.h.
13778 (outreg, prepare_resume_reply): Adjust.
13779 * server.c: Include tdesc.h.
13780 (gdbserver_xmltarget): Delete declaration.
13781 (get_features_xml, process_serial_event): Adjust.
13782 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
13784 (struct process_info) <tdesc>: New field.
13785 (ipa_tdesc): Declare.
13786 * tdesc.c: New file.
13787 * tdesc.h: New file.
13788 * tracepoint.c: Include tdesc.h.
13789 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
13790 (get_context_regcache): Adjust to pass ipa_tdesc down.
13791 (do_action_at_tracepoint): Adjust to get the register cache size
13792 from the context regcache's description.
13793 (traceframe_walk_blocks): Adjust to get the register cache size
13794 from the current trace frame's description.
13795 (traceframe_get_pc): Adjust to get current trace frame's
13796 description and pass it down.
13797 (gdb_collect): Adjust to get the register cache size from the
13799 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
13800 (gdbserver_xmltarget): Delete.
13801 (initialize_low_tracepoint): Set the ipa's target description.
13802 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
13803 (initialize_low_tracepoint): Set the ipa's target description.
13804 * linux-x86-low.c: Include tdesc.h.
13805 [__x86_64__] (is_64bit_tdesc): New.
13806 (ps_get_thread_area, x86_get_thread_area): Use it.
13807 (i386_cannot_store_register): Rename to ...
13808 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
13809 (i386_cannot_fetch_register): Rename to ...
13810 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
13811 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
13813 (target_regsets): Rename to ...
13814 (x86_regsets): ... this.
13815 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
13817 (x86_siginfo_fixup): Use is_64bit_tdesc.
13818 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
13819 (tdesc_x32_avx_linux, tdesc_x32_linux)
13820 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
13822 (x86_linux_update_xmltarget): Delete.
13823 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
13824 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
13825 (AMD64_LINUX_USER64_CS): New.
13826 (x86_linux_read_description): New, based on
13827 x86_linux_update_xmltarget.
13828 (same_process_callback): New.
13829 (x86_arch_setup_process_callback): New.
13830 (x86_linux_update_xmltarget): New.
13831 (x86_regsets_info): New.
13832 (amd64_linux_regs_info): New.
13833 (i386_linux_usrregs_info): New.
13834 (i386_linux_regs_info): New.
13835 (x86_linux_regs_info): New.
13836 (x86_arch_setup): Reimplement.
13837 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
13838 (x86_emit_ops): Ditto.
13839 (the_low_target): Adjust. Install x86_linux_regs_info,
13840 x86_cannot_fetch_register, and x86_cannot_store_register.
13841 (initialize_low_arch): New.
13842 * linux-ia64-low.c (tdesc_ia64): Declare.
13843 (ia64_fetch_register): Adjust.
13844 (ia64_usrregs_info, regs_info): New globals.
13845 (ia64_regs_info): New function.
13846 (the_low_target): Adjust.
13847 (initialize_low_arch): New function.
13848 * linux-sparc-low.c (tdesc_sparc64): Declare.
13849 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
13851 (sparc_arch_setup): New function.
13852 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
13853 (the_low_target): Adjust.
13854 (initialize_low_arch): New function.
13855 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
13856 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
13857 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
13858 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
13859 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
13860 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
13861 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
13862 (tdesc_powerpc_isa205_vsx64l): Declare.
13863 (ppc_cannot_store_register, ppc_collect_ptrace_register)
13864 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
13865 (ppc_set_pc, ppc_get_hwcap): Adjust.
13866 (ppc_usrregs_info): Forward declare.
13867 (!__powerpc64__) ppc_regmap_adjusted: New global.
13868 (ppc_arch_setup): Adjust to the current process'es target
13870 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
13871 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
13872 (ppc_store_evrregset): Adjust.
13873 (target_regsets): Rename to ...
13874 (ppc_regsets): ... this, and make static.
13875 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
13876 (ppc_regs_info): New function.
13877 (the_low_target): Adjust.
13878 (initialize_low_arch): New function.
13879 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
13880 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
13881 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
13882 (tdesc_s390x_linux64v2): Declare.
13883 (s390_collect_ptrace_register, s390_supply_ptrace_register)
13884 (s390_fill_gregset, s390_store_last_break): Adjust.
13885 (target_regsets): Rename to ...
13886 (s390_regsets): ... this, and make static.
13887 (s390_get_pc, s390_set_pc): Adjust.
13888 (s390_get_hwcap): New target_desc parameter, and use it.
13889 [__s390x__] (have_hwcap_s390_high_gprs): New global.
13890 (s390_arch_setup): Adjust to set the current process'es target
13891 description. Don't adjust the regmap.
13892 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
13893 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
13894 (regs_info_3264): New globals.
13895 (s390_regs_info): New function.
13896 (the_low_target): Adjust.
13897 (initialize_low_arch): New function.
13898 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
13899 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
13900 [__mips64] (init_registers_mips_linux)
13901 (init_registers_mips_dsp_linux): Delete defines.
13902 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
13903 (have_dsp): New global.
13904 (mips_read_description): New, based on mips_arch_setup.
13905 (mips_arch_setup): Reimplement.
13906 (get_usrregs_info): New function.
13907 (mips_cannot_fetch_register, mips_cannot_store_register)
13908 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
13909 (mips_fill_fpregset, mips_store_fpregset): Adjust.
13910 (target_regsets): Rename to ...
13911 (mips_regsets): ... this, and make static.
13912 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
13913 (dsp_regs_info, regs_info): New globals.
13914 (mips_regs_info): New function.
13915 (the_low_target): Adjust.
13916 (initialize_low_arch): New function.
13917 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
13918 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
13920 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
13921 (arm_read_description): New, with bits factored from
13923 (arm_arch_setup): Reimplement.
13924 (target_regsets): Rename to ...
13925 (arm_regsets): ... this, and make static.
13926 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
13927 (arm_regs_info): New function.
13928 (the_low_target): Adjust.
13929 (initialize_low_arch): New function.
13930 * linux-m68k-low.c (tdesc_m68k): Declare.
13931 (target_regsets): Rename to ...
13932 (m68k_regsets): ... this, and make static.
13933 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
13934 (m68k_regs_info): New function.
13935 (m68k_arch_setup): New function.
13936 (the_low_target): Adjust.
13937 (initialize_low_arch): New function.
13938 * linux-sh-low.c (tdesc_sharch): Declare.
13939 (target_regsets): Rename to ...
13940 (sh_regsets): ... this, and make static.
13941 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
13942 (sh_regs_info, sh_arch_setup): New functions.
13943 (the_low_target): Adjust.
13944 (initialize_low_arch): New function.
13945 * linux-bfin-low.c (tdesc_bfin): Declare.
13946 (bfin_arch_setup): New function.
13947 (bfin_usrregs_info, regs_info): New globals.
13948 (bfin_regs_info): New function.
13949 (the_low_target): Adjust.
13950 (initialize_low_arch): New function.
13951 * linux-cris-low.c (tdesc_cris): Declare.
13952 (cris_arch_setup): New function.
13953 (cris_usrregs_info, regs_info): New globals.
13954 (cris_regs_info): New function.
13955 (the_low_target): Adjust.
13956 (initialize_low_arch): New function.
13957 * linux-cris-low.c (tdesc_crisv32): Declare.
13958 (cris_arch_setup): New function.
13959 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
13960 (cris_regs_info): New function.
13961 (the_low_target): Adjust.
13962 (initialize_low_arch): New function.
13963 * linux-m32r-low.c (tdesc_m32r): Declare.
13964 (m32r_arch_setup): New function.
13965 (m32r_usrregs_info, regs_info): New globals.
13966 (m32r_regs_info): Adjust.
13967 (initialize_low_arch): New function.
13968 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
13969 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
13970 (tic6x_usrregs_info): Forward declare.
13971 (tic6x_read_description): New function, based on ...
13972 (tic6x_arch_setup): ... this. Reimplement.
13973 (target_regsets): Rename to ...
13974 (tic6x_regsets): ... this, and make static.
13975 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
13976 (tic6x_regs_info): New function.
13977 (the_low_target): Adjust.
13978 (initialize_low_arch): New function.
13979 * linux-xtensa-low.c (tdesc_xtensa): Declare.
13980 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
13981 (target_regsets): Rename to ...
13982 (xtensa_regsets): ... this, and make static.
13983 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
13985 (xtensa_arch_setup, xtensa_regs_info): New functions.
13986 (the_low_target): Adjust.
13987 (initialize_low_arch): New function.
13988 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
13989 (nios2_arch_setup): Set the current process'es tdesc.
13990 (target_regsets): Rename to ...
13991 (nios2_regsets): ... this.
13992 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
13993 (nios2_regs_info): New function.
13994 (the_low_target): Adjust.
13995 (initialize_low_arch): New function.
13996 * linux-aarch64-low.c (tdesc_aarch64): Declare.
13997 (aarch64_arch_setup): Set the current process'es tdesc.
13998 (target_regsets): Rename to ...
13999 (aarch64_regsets): ... this.
14000 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
14001 (aarch64_regs_info): New function.
14002 (the_low_target): Adjust.
14003 (initialize_low_arch): New function.
14004 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
14006 (target_regsets): Rename to ...
14007 (tile_regsets): ... this.
14008 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
14009 (tile_regs_info): New function.
14010 (tile_arch_setup): Set the current process'es tdesc.
14011 (the_low_target): Adjust.
14012 (initialize_low_arch): New function.
14013 * spu-low.c (tdesc_spu): Declare.
14014 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
14015 * win32-arm-low.c (tdesc_arm): Declare.
14016 (arm_arch_setup): New function.
14017 (the_low_target): Install arm_arch_setup instead of
14018 init_registers_arm.
14019 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
14020 (init_windows_x86): Rename to ...
14021 (i386_arch_setup): ... this. Set `win32_tdesc'.
14022 (the_low_target): Adjust.
14023 * win32-low.c (win32_tdesc): New global.
14024 (child_add_thread): Don't create the thread cache here.
14025 (do_initial_child_stuff): Set the new process'es tdesc.
14026 * win32-low.h (struct target_desc): Forward declare.
14027 (win32_tdesc): Declare.
14028 * lynx-i386-low.c (tdesc_i386): Declare global.
14029 (lynx_i386_arch_setup): Set `lynx_tdesc'.
14030 * lynx-low.c (lynx_tdesc): New global.
14031 (lynx_add_process): Set the new process'es tdesc.
14032 * lynx-low.h (struct target_desc): Forward declare.
14033 (lynx_tdesc): Declare global.
14034 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
14035 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
14036 * nto-low.c (nto_tdesc): New global.
14037 (do_attach): Set the new process'es tdesc.
14038 * nto-low.h (struct target_desc): Forward declare.
14039 (nto_tdesc): Declare.
14040 * nto-x86-low.c (tdesc_i386): Declare.
14041 (nto_x86_arch_setup): Set `nto_tdesc'.
14043 2013-06-04 Gary Benson <gbenson@redhat.com>
14045 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
14046 to qSupported response when appropriate.
14047 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
14048 with nonzero-length annex.
14049 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
14050 arguments supplied in annex.
14052 2013-05-31 Doug Evans <dje@google.com>
14055 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
14056 64 bits in 64-cross-32 environment.
14058 2013-05-28 Pedro Alves <palves@redhat.com>
14060 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
14061 (aarch64-without-fpu.c): Delete rule.
14062 * configure.srv (aarch64*-*-linux*): Remove references to
14063 aarch64-without-fpu.o and aarch64-without-fpu.xml.
14064 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
14067 2013-05-24 Pedro Alves <palves@redhat.com>
14069 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
14070 instead of strchr/decode_address. Error if the range isn't split
14071 with a ','. Don't assume there's be a ':' in the action.
14073 2013-05-23 Yao Qi <yao@codesourcery.com>
14074 Pedro Alves <palves@redhat.com>
14076 * linux-low.c (lwp_in_step_range): New function.
14077 (linux_wait_1): If the thread was range stepping and stopped
14078 outside the stepping range, report the stop to GDB. Otherwise,
14079 continue stepping. Add range stepping debug output.
14080 (linux_set_resume_request): Copy the step range from the resume
14081 request to the lwp.
14082 (linux_supports_range_stepping): New.
14083 (linux_target_ops) <supports_range_stepping>: Set to
14084 linux_supports_range_stepping.
14085 * linux-low.h (struct linux_target_ops)
14086 <supports_range_stepping>: New field.
14087 (struct lwp_info) <step_range_start, step_range_end>: New fields.
14088 * linux-x86-low.c (x86_supports_range_stepping): New.
14089 (the_low_target) <supports_range_stepping>: Set to
14090 x86_supports_range_stepping.
14091 * server.c (handle_v_cont): Handle 'r' action.
14092 (handle_v_requests): Append ";r" if the target supports range
14094 * target.h (struct thread_resume) <step_range_start,
14095 step_range_end>: New fields.
14096 (struct target_ops) <supports_range_stepping>:
14098 (target_supports_range_stepping): New macro.
14100 2013-05-17 Joel Brobecker <brobecker@adacore.com>
14102 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
14103 confusion in comment.
14105 2013-05-17 Joel Brobecker <brobecker@adacore.com>
14107 * lynx-low.c (struct process_info_private): New type.
14108 (lynx_add_process): New function.
14109 (lynx_create_inferior, lynx_attach): Replace calls to
14110 add_process by calls to lynx_add_process.
14111 (lynx_resume): If PTID is null, then try using
14112 current_process()->private->last_wait_event_ptid.
14114 (lynx_clear_inferiors): Delete. The contents of that function
14115 has been inlined in lynx_mourn;
14116 (lynx_wait_1): Save the ptid in the process's private data.
14117 (lynx_mourn): Free the process' private data. Replace call
14118 to lynx_clear_inferiors by call to clear_inferiors.
14120 2013-05-17 Yao Qi <yao@codesourcery.com>
14122 * i386-low.c (i386_length_and_rw_bits): Move the comment to
14125 2013-05-16 Luis Machado <lgustavo@codesourcery.com>
14127 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
14128 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
14129 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
14130 PT_TEXT_END_ADDR guards. Update comments.
14131 (linux_target_op) <read_offsets>: Conditionally define to
14132 linux_read_offsets if the target is UCLIBC and if it defines
14133 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
14135 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
14136 Andrew Jenner <andrew@codesourcery.com>
14138 * Makefile.in (SFILES): Add linux-nios2-low.c.
14139 (clean): Add action to delete nios2-linux.c.
14140 (nios2-linux.c): New rule.
14141 * configure.srv: Add nios2*-*-linux*.
14142 * linux-nios2-low.c: New.
14144 2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
14146 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
14148 2013-04-25 Hui Zhu <hui@codesourcery.com>
14151 * ax.c (ax_printf): Add fflush.
14153 2013-04-22 Tom Tromey <tromey@redhat.com>
14155 * Makefile.in (SFILES): Add filestuff.c.
14156 (OBS): Add filestuff.o.
14157 (filestuff.o): New target.
14158 * config.in, configure: Rebuild.
14159 * configure.ac: Check for fdwalk, pipe2.
14161 2013-04-17 Pedro Alves <palves@redhat.com>
14163 * configure.ac (USE_THREAD_DB): Delete variable.
14164 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
14165 Don't AC_SUBST USE_THREAD_DB.
14166 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
14167 * config.in, configure: Regenerate.
14169 2013-04-16 Pedro Alves <palves@redhat.com>
14171 * linux-low.h (struct lwp_info) <thread_known>: Move under
14172 the USE_THREAD_DB #ifdef.
14174 2013-04-16 Pedro Alves <palves@redhat.com>
14176 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
14177 (linux-low.o): Delete rule.
14178 * linux-low.h: Always include "gdb_thread_db.h" instead of
14179 conditionally including thread_db.h.
14180 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
14183 2013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14185 * Makefile.in (install-only): Fix make install regression.
14187 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
14189 Convert man pages to texinfo, new gdbinit.5 texinfo page.
14190 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
14192 * gdbserver.1: Remove.
14194 2013-03-22 Pedro Alves <palves@redhat.com>
14196 * linux-low.c (handle_extended_wait): Don't call
14197 linux_enable_event_reporting.
14199 2013-03-15 Tony Theodore <tonyt@logyst.com>
14202 * Makefile.in (SHELL): Use @SHELL@.
14204 2013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
14206 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
14209 2013-03-13 Joel Brobecker <brobecker@adacore.com>
14211 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
14212 Remove extraneous NULL element.
14214 2013-03-13 Yao Qi <yao@codesourcery.com>
14216 * tracepoint.c (traceframe_read_tsv): Look for the last matched
14217 'V' block in trace frame.
14219 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14221 * target.h (struct target_ops): Add btrace ops.
14222 (target_supports_btrace): New macro.
14223 (target_enable_btrace): New macro.
14224 (target_disable_btrace): New macro.
14225 (target_read_btrace): New macro.
14226 * gdbthread.h (struct thread_info): Add btrace field.
14227 * server.c: Include btrace-common.h.
14228 (handle_btrace_general_set): New function.
14229 (handle_btrace_enable): New function.
14230 (handle_btrace_disable): New function.
14231 (handle_general_set): Call handle_btrace_general_set.
14232 (handle_qxfer_btrace): New function.
14233 (struct qxfer qxfer_packets[]): Add btrace entry.
14234 * inferiors.c (remove_thread): Disable btrace.
14235 * linux-low: Include linux-btrace.h.
14236 (linux_low_enable_btrace): New function.
14237 (linux_low_read_btrace): New function.
14238 (linux_target_ops): Add btrace ops.
14239 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
14240 Add srv_linux_btrace=yes.
14241 (x86_64-*-linux*): Add linux-btrace.o.
14242 Add srv_linux_btrace=yes.
14243 * configure.ac: Define HAVE_LINUX_BTRACE.
14244 * config.in: Regenerated.
14245 * configure: Regenerated.
14247 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14249 * server.c (handle_qxfer): Preserve error message if -3 is
14251 (qxfer): Document the -3 return value.
14253 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14255 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
14256 (linux_btrace_h): New variable.
14257 (linux-btrace.o): New rule.
14259 2013-03-08 Stan Shebs <stan@codesourcery.com>
14260 Hafiz Abid Qadeer <abidh@codesourcery.com>
14262 * tracepoint.c (trace_buffer_size): New global.
14263 (DEFAULT_TRACE_BUFFER_SIZE): New define.
14264 (init_trace_buffer): Change to one-argument function. Allocate
14265 trace buffer memory.
14266 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
14267 handle QTBuffer:size packet.
14268 (cmd_bigqtbuffer_size): New function.
14269 (initialize_tracepoint): Call init_trace_buffer with
14270 DEFAULT_TRACE_BUFFER_SIZE.
14271 * server.c (handle_query): Add QTBuffer:size in the
14274 2013-03-07 Yao Qi <yao@codesourcery.com>
14276 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
14277 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
14279 (cmd_qtsp): Adjust condition. Do post increment.
14280 Set cur_action and cur_step_action back to 0.
14282 2013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
14285 * linux-low.c (linux_write_memory): Return early success if LEN is
14288 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
14290 * configure.srv: Add x86_64-*-cygwin* as target.
14292 2013-02-28 Tom Tromey <tromey@redhat.com>
14294 * configure.ac: Invoke AC_SYS_LARGEFILE.
14295 * configure, config.in: Rebuild.
14297 2013-02-28 Corinna Vinschen <vinschen@redhat.com>
14299 * win32-low.c: Throughout, fix format strings and casts of
14300 printf-like functions to avoid type related warnings on all
14302 (get_child_debug_event): Print dwDebugEventCode as hex since
14303 that's how it's usually documented.
14305 2013-02-28 Yao Qi <yao@codesourcery.com>
14307 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
14310 2013-02-27 Jiong Wang <jiwang@tilera.com>
14312 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
14313 (reg-tilegx32.c): New rule.
14314 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
14315 * linux-tile-low.c (tile_arch_setup): New function. Invoke
14316 different register info initializer according to elf class.
14317 (init_registers_tilgx32): New function. The tilegx32 register info
14319 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
14320 (tile_store_gregset): Likewise.
14322 2013-02-27 Yao Qi <yao@codesourcery.com>
14324 * server.c (process_point_options): Print debug message when
14325 debug_threads is true.
14327 2013-02-26 Yao Qi <yao@codesourcery.com>
14329 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
14331 2013-02-19 Pedro Alves <palves@redhat.com>
14332 Kai Tietz <ktietz@redhat.com>
14336 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
14337 instead of strtoul to extract address from packet.
14338 (process_serial_event) <'z'>: Likewise.
14340 2013-02-18 Yao Qi <yao@codesourcery.com>
14342 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
14344 2013-02-14 Pedro Alves <palves@redhat.com>
14348 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
14349 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
14351 2013-02-14 Pedro Alves <palves@redhat.com>
14353 * tracepoint.c (cmd_qtdpsrc): Use savestring.
14355 2013-02-14 Pedro Alves <palves@redhat.com>
14357 * tracepoint.c (save_string): Delete.
14358 (add_tracepoint_action): Use savestring instead of save_string.
14360 2013-02-12 Pedro Alves <palves@redhat.com>
14362 * linux-xtensa-low.c: Ditto.
14363 * xtensa-xtregs.c: Ditto.
14365 2013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14367 * thread-db.c (thread_db_get_tls_address): NULL pointer check
14370 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14372 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
14373 aarch64_num_wp_regs and aarch64_num_bp_regs to
14374 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
14376 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14378 * linux-aarch64-low.c (ps_get_thread_area): Replace
14379 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
14381 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
14382 Marcus Shawcroft <marcus.shawcroft@arm.com>
14383 Nigel Stephens <nigel.stephens@arm.com>
14384 Yufeng Zhang <yufeng.zhang@arm.com>
14386 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
14387 (aarch64.c, aarch64-without-fpu.c): New targets.
14388 * configure.srv (aarch64*-*-linux*): New.
14389 * linux-aarch64-low.c: New file.
14391 2013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
14393 * linux-low.c (handle_extended_wait, linux_create_inferior)
14394 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
14395 (dequeue_one_deferred_signal, linux_resume_one_thread)
14396 (fetch_register, linux_write_memory, linux_enable_event_reporting)
14397 (linux_tracefork_grandchild, linux_test_for_tracefork)
14398 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
14399 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
14400 where the argument is 0.
14402 2013-01-25 Yao Qi <yao@codesourcery.com>
14404 * event-loop.c: Include "queue.h".
14405 (gdb_event_p): New typedef.
14406 (struct gdb_event) <next_event>: Remove.
14407 (event_queue): Change to QUEUE(gdb_event_p).
14408 (async_queue_event): Remove.
14409 (gdb_event_xfree): New.
14410 (initialize_event_loop): New.
14411 (process_event): Use API from QUEUE.
14412 (wait_for_event): Likewise.
14413 * server.c (main): Call initialize_event_loop.
14414 * server.h (initialize_event_loop): Declare.
14416 2013-01-18 Yao Qi <yao@codesourcery.com>
14418 * ax.h (struct eval_agent_expr_context): New.
14419 (gdb_eval_agent_expr): Update declaration.
14420 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
14421 TFRAME. Add new argument CTX.
14422 * server.h (struct eval_agent_expr_context): Declare.
14423 (agent_mem_read, agent_tsv_read): Update declaration.
14424 (agent_mem_read_string): Likewise.
14425 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
14426 (add_traceframe_block): Add new argument TPOINT.
14427 Increase TPOINT->traceframe_usage.
14428 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
14429 eval_tracepoint_agent_expr.
14430 (condition_true_at_tracepoint): Likewise.
14431 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
14432 (agent_mem_read_string, agent_tsv_read): Likewise.
14434 2013-01-16 Yao Qi <yao@codesourcery.com>
14436 * linux-low.c (linux_resume_one_lwp): Don't check
14437 'lwp->bp_reinsert != 0'.
14439 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14440 Pedro Alves <palves@redhat.com>
14442 * lynx-low.c (ptrace_request_to_str): Define a temporary
14443 macro and use it to simplify this function's implementation.
14445 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14447 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
14450 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14452 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
14454 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14456 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
14458 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14460 * lynx-low.c (lynx_resume): Use the resume_info parameter
14461 to determine the ptid for the lynx_ptrace call, unless
14462 it is equal to minus_one_ptid, in which case we use the
14463 ptid of the current_inferior.
14464 (lynx_wait_1): After having received a thread create/exit
14465 event, resume the inferior's execution using the signaling
14466 thread's ptid, rather than the old ptid.
14468 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14470 * lynx-low.c (lynx_resume): Delete variable ret.
14472 2013-01-01 Joel Brobecker <brobecker@adacore.com>
14474 * gdbreplay.c (gdbreplay_version): Update copyright year.
14475 * server.c (gdbserver_version): Likewise.
14477 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14479 * lynx-low.c (lynx_wait_1): Add debug trace before adding
14482 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14484 * lynx-low.c (ptrace_request_to_str): Add handling for
14485 PTRACE_GETTRACESIG.
14487 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14489 * lynx-low.c (lynx_attach): Delete variable new_process.
14491 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14493 * lynx-low.c (lynx_create_inferior): Delete variable
14496 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14498 * lynx-low.c (ptrace_request_to_str): Do not handle
14499 PTRACE_GETTHREADLIST if this macro does not exist.
14501 2012-12-15 Yao Qi <yao@codesourcery.com>
14503 * Makefile.in (OBS): Add notif.o.
14504 * notif.c, notif.h: New.
14505 * server.c: Include "notif.h".
14506 (struct vstop_notif) <next>: Remove.
14508 (queue_stop_reply): Update.
14509 (push_event, send_next_stop_reply): Remove.
14510 (discard_queued_stop_replies): Update.
14511 (notif_stop): New variable.
14512 (handle_v_stopped): Remove.
14513 (handle_v_requests): Don't call handle_v_stopped. Call
14514 handle_ack_notif instead.
14515 (queue_stop_reply_callback): Call notif_event_enque instead
14516 of queue_stop_reply.
14517 (handle_status): Don't call send_next_stop_reply, call
14518 notif_write_event instead.
14519 (kill_inferior_callback): Likewise.
14520 (detach_or_kill_inferior_callback): Likewise.
14521 (main): Call initialize_notif.
14522 (process_serial_event): Call QUEUE_is_empty.
14523 (handle_target_event): Call notif_push instead of push event.
14524 * server.h (push_event): Remove declaration.
14526 2012-12-10 Tom Tromey <tromey@redhat.com>
14528 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
14529 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
14532 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
14533 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
14534 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
14535 (amd64-linux-ipa.o, ax.o): Rewrite.
14536 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
14537 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
14538 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
14539 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
14540 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
14541 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
14542 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
14543 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
14544 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
14545 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
14546 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
14547 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
14548 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
14549 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
14550 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
14551 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
14552 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
14553 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
14554 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
14555 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
14556 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
14557 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
14558 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
14559 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
14560 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
14561 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
14562 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
14563 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
14564 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
14565 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
14566 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
14567 (reg-tilegx.o): Remove.
14568 (all_object_files): New macro.
14569 Include .deps files.
14570 * aclocal.m4, configure: Rebuild.
14571 * acinclude.m4: Include depstand.m4, lead-dot.m4.
14572 * configure.ac: Invoke ZW_CREATE_DEPDIR,
14573 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
14575 2012-12-05 Tom Tromey <tromey@redhat.com>
14578 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
14580 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
14582 * configure.ac: Check for linux/perf_event.h.
14583 * config.in: Regenerated.
14584 * configure: Regenerated.
14586 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
14588 * hostio.c (handle_readlink): Decrease buffer size
14589 parameter passed to readlink by one byte.
14591 2012-11-26 Yao Qi <yao@codesourcery.com>
14593 * configure.ac (build_warnings): Append '-Wempty-body'.
14594 * configure: Regenerated.
14595 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
14598 2012-11-15 Pierre Muller <muller@sourceware.org>
14600 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
14601 * config.in: Regenerate.
14602 * configure: Regenerate.
14603 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
14604 Use "gdb_wait.h" header instead of <sys/wait.h> header.
14605 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14606 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
14608 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
14609 instead of <sys/wait.h> header.
14610 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14612 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
14614 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
14615 (various make rules): Remove -DGDBSERVER
14617 2012-11-09 Yao Qi <yao@codesourcery.com>
14619 * spu-low.c (current_ptid): Move it to ..
14620 * gdbthread.h: ... here. New.
14621 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
14622 * server.c (myresume, process_serial_event): Likewise.
14623 * thread-db.c (thread_db_find_new_threads): Likewise.
14624 * tracepoint.c (run_inferior_command): Likewise.
14626 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
14628 * server.c (handle_search_memory_1): Include access length in
14631 2012-09-05 Michael Brandt <michael.brandt@axis.com>
14633 * linux-crisv32-low.c: Fix compile errors.
14635 2012-09-04 Yao Qi <yao@codesourcery.com>
14637 * tracepoint.c (cmd_qtsv): Adjust debug message.
14638 Don't check CUR_TPOINT.
14640 2012-08-28 Yao Qi <yao@codesourcery.com>
14642 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
14643 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
14644 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
14645 Remove declarations of xmalloc, xreallloc, xstrdup and
14647 * Makefile.in (libiberty_h): New.
14648 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
14649 (linux-bfin-low.o): Append dependency 'libiberty.h'.
14651 2012-08-23 Yao Qi <yao@codesourcery.com>
14653 * server.h: Remove declaration of 'xsnprintf'.
14655 2012-08-22 Keith Seitz <keiths@redhat.com>
14657 * server.h: Include build-gnulib-gbserver/config.h.
14658 * gdbreplay.c: Likewise.
14660 2012-08-08 Doug Evans <dje@google.com>
14662 * Makefile.in (SFILES): Add gdb_vecs.c.
14663 (OBS): Add gdb_vecs.o.
14664 (gdb_vecs_h, host_defs_h): New variables.
14665 (thread-db.o): Add $(gdb_vecs_h) dependency.
14666 (gdb_vecs.o): New rule.
14667 * thread-db.c: #include "gdb_vecs.h".
14668 (thread_db_load_search): Use a vector to iterate over path elements.
14669 Handle text appearing after "$pdir".
14671 * configure.ac: Add check for strstr.
14672 * config.in: Regenerate.
14673 * configure: Regenerate.
14675 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
14677 * hostio.c (handle_pread): If pread fails, fall back to attempting
14679 (handle_pwrite): Likewise for pwrite.
14681 2012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
14683 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
14684 between unsupported TYPE and unimplementable ADDR/LEN combination.
14685 (arm_insert_point): Act on new return value.
14687 2012-07-31 Pedro Alves <palves@redhat.com>
14689 * server.c (process_point_options): Only skip tokens if we find
14690 one that is unrecognized. Don't treat 'X' specially while
14691 skipping unrecognized tokens.
14693 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
14695 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
14696 to 4-byte-align HW breakpoint addresses for Thumb.
14698 2012-07-27 Yao Qi <yao@codesourcery.com>
14702 * server.h: Declare gdb_agent_about_to_close.
14703 * target.c (kill_inferior): Include "agent.h".
14704 New. Send command 'kill'.
14705 * target.h (kill_inferior): Removed macro.
14706 * tracepoint.c (gdb_agent_about_to_close): New.
14707 (gdb_agent_helper_thread): Handle command 'close'.
14708 Wait endlessly until the inferior stops.
14709 Install gdb_agent_remove_socket to atexit hook.
14710 (agent_socket_name): New static variable.
14711 (gdb_agent_socket_init): Replace local variable 'name' with
14712 'agent_socket_name'.
14713 (gdb_agent_remove_socket): New.
14715 2012-07-27 Yao Qi <yao@codesourcery.com>
14717 * server.c (process_point_options): Stop at 'X' when parsing.
14719 2012-07-19 Michael Eager <eager@eagercon.com>
14721 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
14723 * linux-x86-low.c (x86_insert_point, x86_remove_point):
14724 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
14725 hardware breakpoint.
14727 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14729 * gdbserver/linux-low.c (initialize_low): Call
14730 linux_ptrace_init_warnings.
14732 2012-07-02 Doug Evans <dje@google.com>
14734 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
14737 2012-07-02 Stan Shebs <stan@codesourcery.com>
14739 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
14740 (ax.o): Add it to build rule.
14742 (OBS): Add format.o.
14743 (IPA_OBS): Add format.o.
14744 * server.c (handle_query): Claim support for breakpoint commands.
14745 (process_point_options): Add command case.
14746 (process_serial_event): Leave running if there are printfs in
14748 * mem-break.h (any_persistent_commands): Declare.
14749 (add_breakpoint_commands): Declare.
14750 (gdb_no_commands_at_breakpoint): Declare.
14751 (run_breakpoint_commands): Declare.
14752 * mem-break.c (struct point_command_list): New struct.
14753 (struct breakpoint): New field command_list.
14754 (any_persistent_commands): New function.
14755 (add_commands_to_breakpoint): New function.
14756 (add_breakpoint_commands): New function.
14757 (gdb_no_commands_at_breakpoint): New function.
14758 (run_breakpoint_commands): New function.
14759 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
14761 * ax.c: Include format.h.
14762 (ax_printf): New function.
14763 (gdb_eval_agent_expr): Add printf opcode.
14765 2012-06-13 Yao Qi <yao@codesourcery.com>
14767 * server.c (start_inferior): Remove duplicated writes to fields
14768 'last_resume_kind' and 'last_status' of 'current_inferior'.
14770 2012-06-12 Yao Qi <yao@codesourcery.com>
14771 Pedro Alves <palves@redhat.com>
14773 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
14775 * server.c (handle_v_cont): Extend comment.
14777 2012-06-11 Yao Qi <yao@codesourcery.com>
14779 * linux-low.c (linux_attach): Add 'static'.
14781 2012-06-06 Yao Qi <yao@codesourcery.com>
14783 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
14785 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
14787 Fix gcc -flto compilation warning.
14788 * server.c (main): Make variable multi_mode and attach volatile.
14790 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14792 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
14793 if the platform doesn't know about it.
14795 2012-05-30 Jeff Kenton <jkenton@tilera.com>
14797 * Makefile.in (SFILES): Add linux-tile-low.c.
14798 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
14799 * configure.srv: Handle tilegx-*-linux*.
14800 * linux-tile-low.c: New file.
14802 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
14804 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
14806 2012-05-24 Pedro Alves <palves@redhat.com>
14810 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
14812 2012-05-24 Pedro Alves <palves@redhat.com>
14816 Replace target_signal with gdb_signal throughout.
14818 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
14820 * linux-low.c (linux_store_registers): Avoid the copying sequence
14821 when no data has been retrieved by ptrace.
14823 2012-05-22 Will Deacon <will.deacon@arm.com>
14825 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
14826 Include asm/ptrace.h.
14827 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
14830 2012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
14832 * linux-low.c (linux_store_registers): Don't re-retrieve data
14833 with ptrace that has already been obtained from /proc. Always
14834 copy any data retrieved with ptrace to the buffer supplied.
14836 2012-05-11 Yao Qi <yao@codesourcery.com>
14837 Pedro Alves <palves@redhat.com>
14839 * linux-low.c (enum stopping_threads_kind): New.
14840 (stopping_threads): Change type to `enum stopping_threads_kind'.
14841 (handle_extended_wait): If stopping and suspending threads, leave
14842 the new_lwp suspended too.
14843 (linux_wait_for_event): Adjust.
14844 (stop_all_lwps): Set `stopping_threads' to
14845 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
14846 whether we're suspending threads or just stopping them. Assert no
14849 2012-04-29 Yao Qi <yao@codesourcery.com>
14851 * server.h: Move some code to ...
14852 * gdbthread.h: ... here. New.
14853 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
14854 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
14855 (nto-low.o, win32-low.o): Likewise.
14856 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
14857 * regcache.c, remote-utils.c, server.c: Likewise.
14858 * target.c, tracepoint.c, win32-low.c: Likewise.
14860 2012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14862 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
14863 (PTRACE_ARG4_TYPE): Likewise.
14864 (PTRACE_XFER_TYPE): Likewise.
14865 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
14866 ptrace to PTRACE_ARG3_TYPE.
14867 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
14868 (PTRACE_ARG4_TYPE): Likewise.
14869 (PTRACE_XFER_TYPE): Likewise.
14870 (linux_detach_one_lwp): Cast fourth argument of
14871 ptrace to long then PTRACE_ARG4_TYPE.
14872 (regsets_fetch_inferior_registers): Cast third argument of
14873 ptrace to long then PTRACE_ARG3_TYPE.
14874 (regsets_store_inferior_registers): Likewise.
14876 2012-04-20 Pedro Alves <palves@redhat.com>
14878 * configure: Regenerate.
14880 2012-04-19 Pedro Alves <palves@redhat.com>
14882 * Makefile.in (GNULIB_BUILDDIR): New.
14883 (LIBGNU, INCGNU, GNULIB_H): Adjust.
14884 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
14885 (all, install-only, uninstall, clean-info, all-lib, clean): No
14886 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
14887 (maintainer-clean realclean distclean): Use subdir_do.
14889 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
14890 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
14891 * acinclude.m4: Include acx_configure_dir.m4.
14892 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
14893 calls. Call AC_PROG_RANLIB. Configure gnulib using
14896 (GNULIB_STDINT_H): Adjust.
14897 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
14898 * gdbreplay.c: Include build-gnulib/config.h.
14899 * server.h: Likewise.
14900 * aclocal.m4: Regenerate.
14901 * config.in: Regenerate.
14902 * configure: Regenerate.
14904 2012-04-19 Pedro Alves <palves@redhat.com>
14906 * Makefile.in (LIBGNU, INCGNU): Adjust.
14907 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
14908 (all, install-only, uninstall, clean-info, all-lib, clean)
14909 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
14910 * configure.ac: Adjust AC_OUTPUT output.
14911 * aclocal.m4: Regenerate.
14912 * configure: Regenerate.
14914 2012-04-19 Pedro Alves <palves@redhat.com>
14916 * Makefile.in (generated_files): New.
14917 (server_h): Remove the explicit dependency on config.h, and depend
14918 on $generated_files.
14920 2012-04-19 Pedro Alves <palves@redhat.com>
14922 * Makefile.in (INCGNU): Add -Ignulib.
14924 2012-04-19 Pedro Alves <palves@redhat.com>
14926 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
14927 (INCGNU): ... this, and spell out -I here.
14928 (GNULIB_LIB): Rename to ...
14929 (LIBGNU): ... this.
14930 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
14932 2012-04-19 Pedro Alves <palves@redhat.com>
14934 * config.in: Regenerate.
14936 2012-04-19 Pedro Alves <palves@redhat.com>
14938 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
14939 * server.h (memmem): Remove declaration.
14940 * config.in: Regenerate.
14941 * configure: Regenerate.
14943 2012-04-19 Yao Qi <yao@codesourcery.com>
14945 * Makefile.in (SFILES): Add common/vec.c.
14949 2012-04-19 Yao Qi <yao@codesourcery.com>
14951 * remote-utils.c (prepare_resume_reply): Replace with macro
14952 target_core_of_thread.
14953 * server.c (handle_qxfer_threads_proper): Likewise.
14954 * target.h (traget_core_of_thread): New macro.
14956 2012-04-18 Pedro Alves <palves@redhat.com>
14958 * aclocal.m4: Regenerate.
14959 * configure: Regenerate.
14961 2012-04-16 Yao Qi <yao@codesourcery.com>
14963 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
14964 duplicated on address.
14966 2012-04-16 Yao Qi <yao@codesourcery.com>
14968 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
14969 (struct tracepoint_action_ops) <send>: New field.
14970 (m_tracepoint_action_send, r_tracepoint_action_send): New.
14971 (agent_expr_send, x_tracepoint_action_send): New.
14972 (l_tracepoint_action_send): New.
14973 (cmd_qtdp): Download and install tracepoint
14974 according to `use_agent'.
14975 (run_inferior_command): Add one more parameter `len'.
14977 (tracepoint_send_agent): New.
14978 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
14980 2012-04-16 Yao Qi <yao@codesourcery.com>
14982 * tracepoint.c (download_tracepoints): Moved to ...
14983 (cmd_qtstart): ... here.
14985 2012-04-14 Yao Qi <yao@codesourcery.com>
14987 * tracepoint.c: Include inttypes.h.
14988 (struct collect_memory_action): Use sized types.
14989 (struct tracepoint): Likewise.
14990 (cmd_qtdp, stop_tracing): Update print specifiers.
14991 (cmd_qtp, response_tracepoint): Likewise.
14992 (collect_data_at_tracepoint): Likewise.
14993 (collect_data_at_step): Likewise.
14995 2012-04-14 Yao Qi <yao@codesourcery.com>
14997 Import gnulib module inttypes.
14998 * aclocal.m4, config.in, configure: Regenerated.
15000 2012-04-14 Yao Qi <yao@codesourcery.com>
15002 * Makefile.in (maintainer-clean, realclean, distclean): Remove
15003 Makefile and config.status at last.
15005 2012-04-13 Yao Qi <yao@codesourcery.com>
15007 * tracepoint.c: Include stdint.h unconditionally.
15009 2012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15011 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
15012 on BFD_HAVE_SYS_PROCFS_TYPE.
15013 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
15014 * configure: Regenerate.
15015 * config.in: Likewise.
15017 2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
15019 * Makefile.in (clean): Also remove x32.c x32-linux.c
15020 x32-avx.c x32-avx-linux.c.
15021 (x32.o): New target.
15023 (x32-linux.o): Likewise.
15024 (x32-linux.c): Likewise.
15025 (x32-avx.o): Likewise.
15026 (x32-avx.c): Likewise.
15027 (x32-avx-linux.o): Likewise.
15028 (x32-avx-linux.c): Likewise.
15030 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
15031 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
15032 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
15033 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
15034 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
15035 i386/x32-avx-linux.xml.
15037 * linux-x86-low.c (init_registers_x32_linux): New prototype.
15038 (init_registers_x32_avx_linux): Likwise.
15039 (x86_linux_update_xmltarget): Call init_registers_x32_linux
15040 or init_registers_x32_avx_linux if linux_is_elf64 is false.
15042 2012-04-13 Pedro Alves <palves@redhat.com>
15044 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
15045 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
15046 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
15047 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
15050 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15052 * linux-x86-low.c (compat_x32_clock_t): New.
15053 (compat_x32_siginfo_t): Likewise.
15054 (compat_x32_siginfo_from_siginfo): Likewise.
15055 (siginfo_from_compat_x32_siginfo): Likewise.
15056 (linux_is_elf64): Likewise.
15057 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
15058 and siginfo_from_compat_x32_siginfo for x32.
15059 (x86_arch_setup): Set linux_is_elf64.
15061 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15064 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
15066 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
15067 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
15068 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
15069 compatible with process.
15071 2012-04-12 Yao Qi <yao@codesourcery.com>
15073 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
15074 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
15075 (install-only, install-info, clean): Handle sub dir gnulib.
15076 (all-lib, am--refresh): New targets.
15077 (memmem.o): Remove target.
15078 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
15079 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
15080 (AC_REPLACE_FUNCS): Remove memmem.
15081 Invoke gl_INIT and AM_INIT_AUTOMAKE.
15082 (AC_OUTPUT): Generate Makefile in gnulib/.
15083 * aclocal.m4, config.in, configure: Regenerated.
15085 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
15087 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
15089 2012-04-05 Pedro Alves <palves@redhat.com>
15091 -Werror=strict-aliasing
15093 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
15096 2012-04-04 Pedro Alves <palves@redhat.com>
15098 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
15099 (sparc_store_gregset_from_stack, sparc_store_gregset)
15100 (sparc_breakpoint_at): Fix formatting.
15102 2012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15104 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
15106 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
15107 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
15108 * config.in: Regenerate.
15109 * configure: Likewise.
15111 2012-03-29 Pedro Alves <palves@redhat.com>
15113 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
15114 Correct ptrace arguments.
15116 2012-03-28 Pedro Alves <palves@redhat.com>
15118 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
15119 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
15120 (IA64_FR1_REGNUM): New defines.
15121 (ia64_fetch_register): New.
15122 (the_low_target): Install it.
15123 * linux-low.h (struct linux_target_ops) <fetch_register>: New
15125 * linux-low.c (linux_fetch_registers): Try the
15126 the_low_target.fetch_register hook first.
15128 * linux-arm-low.c (the_low_target): Adjust.
15129 * linux-bfin-low.c (the_low_target): Adjust.
15130 * linux-cris-low.c (the_low_target): Adjust.
15131 * linux-crisv32-low.c (the_low_target): Adjust.
15132 * linux-m32r-low.c (the_low_target): Adjust.
15133 * linux-m68k-low.c (the_low_target): Adjust.
15134 * linux-mips-low.c (the_low_target): Adjust.
15135 * linux-ppc-low.c (the_low_target): Adjust.
15136 * linux-s390-low.c (the_low_target): Adjust.
15137 * linux-sh-low.c (the_low_target): Adjust.
15138 * linux-sparc-low.c (the_low_target): Adjust.
15139 * linux-tic6x-low.c (the_low_target): Adjust.
15140 * linux-x86-low.c (the_low_target): Adjust.
15141 * linux-xtensa-low.c (the_low_target): Adjust.
15143 2012-03-26 Pedro Alves <palves@redhat.com>
15145 * server.c (handle_qxfer_libraries): Don't bail early if
15146 the_target->qxfer_libraries_svr4 is not NULL.
15148 2012-03-26 Pedro Alves <palves@redhat.com>
15150 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
15152 2012-03-23 Pedro Alves <palves@redhat.com>
15154 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
15155 "library-list-svr4" element's start tag when the the DSO list is
15158 2012-03-23 Pedro Alves <palves@redhat.com>
15160 * linux-low.c (read_one_ptr): Read the inferior's pointer through
15161 a variable whose type size is the same as the inferior's pointer
15164 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
15166 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
15168 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
15169 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
15170 * linux-low.h: Include <signal.h>.
15171 (struct siginfo): Remove forward declaration.
15172 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
15175 2012-03-21 Mike Frysinger <vapier@gentoo.org>
15177 * .gitignore: Ignore more files.
15179 2012-03-19 Pedro Alves <palves@redhat.com>
15180 Jan Kratochvil <jan.kratochvil@redhat.com>
15182 * server.c (cont_thread, general_thread): Add describing comments.
15183 (start_inferior): Clear `cont_thread'.
15184 (handle_v_cont): Don't set `cont_thread' if resuming all threads
15187 2012-03-15 Yao Qi <yao@codesourcery.com>
15189 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
15191 (cmd_qtdp): ... here.
15193 2012-03-15 Yao Qi <yao@codesourcery.com>
15195 * tracepoint.c (struct tracepoint_action_ops): New.
15196 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
15197 (m_tracepoint_action_download): New.
15198 (r_tracepoint_action_download): New.
15199 (x_tracepoint_action_download): New.
15200 (l_tracepoint_action_download): New.
15201 (add_tracepoint_action): Install `action->ops' according type.
15202 (download_tracepoint_1): Move code `download' function pointer
15203 of various tracepoint_action_ops.
15205 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15207 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
15208 linux_ptrace_attach_warnings.
15210 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15212 * Makefile.in (linux-ptrace.o): New.
15213 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
15214 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
15215 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
15216 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
15217 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
15219 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
15221 2012-03-08 Yao Qi <yao@codesourcery.com>
15222 Pedro Alves <palves@redhat.com>
15224 Fix PR server/13392.
15225 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
15226 offset of JMP insn.
15227 * tracepoint.c (remove_tracepoint): New.
15228 (cmd_qtdp): Call remove_tracepoint when failed to install.
15230 2012-03-07 Pedro Alves <palves@redhat.com>
15232 * linux-low.c (get_detach_signal): New.
15233 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
15234 Pass on pending signals to PTRACE_DETACH. Check the result of the
15236 * server.c (program_signals, program_signals_p): New.
15237 (handle_general_set): Handle QProgramSignals.
15238 * server.h (program_signals, program_signals_p): Declare.
15240 2012-03-05 Pedro Alves <palves@redhat.com>
15241 Jan Kratochvil <jan.kratochvil@redhat.com>
15243 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
15246 2012-03-03 Yao Qi <yao@codesourcery.com>
15248 * tracepoint.c (tracepoint_look_up_symbols): Update call to
15249 agent_look_up_symbols.
15251 2012-03-03 Yao Qi <yao@codesourcery.com>
15253 * Makefile.in (linux-low.o): Keep dependence on agent.h.
15254 (linux-x86-low.o): Likewise.
15255 * server.h: Remove in_process_agent_loaded.
15256 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
15260 2012-03-03 Yao Qi <yao@codesourcery.com>
15262 * tracepoint.c (gdb_agent_capability): New global.
15263 (in_process_agent_loaded_ust): Renamed to
15264 `in_process_agent_supports_ust'.
15266 (in_process_agent_supports_ust): Call agent_capability_check.
15267 (clear_installed_tracepoints): Assert that agent supports
15270 2012-03-03 Yao Qi <yao@codesourcery.com>
15272 * linux-low.c (linux_supports_agent): New.
15273 (linux_target_ops): Initialize field `supports_agent' with
15274 linux_supports_agent.
15275 * target.h (struct target_ops) <supports_agent>: New.
15276 (target_supports_agent): New macro.
15277 * server.c (handle_general_set): Handle packet 'QAgent'.
15278 (handle_query): Send `QAgent+'.
15279 * Makefile.in (server.o): Depends on agent.h.
15281 2012-03-03 Yao Qi <yao@codesourcery.com>
15283 * Makefile.in (OBS): Add agent.o.
15284 Add new rule for agent.o.
15285 Track dependence of tracepoint.c on agent.h.
15286 * tracepoint.c (run_inferior_command_1):
15287 (run_inferior_command): Call agent_run_command.
15288 (gdb_ust_connect_sync_socket): Deleted. Move it to
15290 (resume_thread, stop_thread): Likewise.
15291 (gdb_ust_socket_init): Renamed to ...
15292 (gdb_agent_socket_init): ... New.
15293 (gdb_ust_thread): Renamed to ...
15294 (gdb_agent_helper_thread): ... New.
15295 (gdb_ust_init): Move some code to ...
15296 (gdb_agent_init): ... here. New.
15297 [HAVE_UST]: Call gdb_ust_init.
15298 (initialize_tracepoint_ftlib): Call gdb_agent_init.
15299 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
15300 * config.in, configure: Regenerated.
15302 2012-03-02 Pedro Alves <palves@redhat.com>
15304 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
15305 * linux-low.c (struct simple_pid_list): New.
15306 (stopped_pids): New a struct simple_pid_list pointer.
15307 (add_to_pid_list, pull_pid_from_list): New.
15308 (handle_extended_wait): Don't assume the first signal new children
15309 report is SIGSTOP. Adjust call to pull_pid_from_list.
15310 (linux_wait_for_lwp): Adjust.
15312 2012-03-02 Yao Qi <yao@codesourcery.com>
15314 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
15317 2012-03-02 Yao Qi <yao@codesourcery.com>
15319 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
15320 `stop_pc' and `tpoint'. Update caller.
15322 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
15324 * linux-low.h (linux_target_ops): Add regset_bitmap member.
15325 * linux-low.c (use_linux_regsets): New macro.
15326 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
15327 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
15328 (linux_register_in_regsets): New function.
15329 (usr_fetch_inferior_registers): Skip registers covered by
15331 (usr_store_inferior_registers): Likewise.
15332 (usr_fetch_inferior_registers): New macro.
15333 (usr_store_inferior_registers): Likewise.
15334 (linux_fetch_registers): Handle mixed regset/non-regset targets.
15335 (linux_store_registers): Likewise.
15336 * linux-mips-low.c (init_registers_mips_dsp_linux): New
15338 (init_registers_mips64_dsp_linux): Likewise.
15339 (init_registers_mips_linux): New macro.
15340 (init_registers_mips_dsp_linux): Likewise.
15341 (mips_dsp_num_regs): Likewise.
15342 (DSP_BASE, DSP_CONTROL): New fallback macros.
15343 (mips_base_regs): New macro.
15344 (mips_regmap): Use it. Fix the size.
15345 (mips_dsp_regmap): New variable.
15346 (mips_dsp_regset_bitmap): Likewise.
15347 (mips_arch_setup): New function.
15348 (mips_cannot_fetch_register): Use the_low_target.regmap rather
15350 (mips_cannot_store_register): Likewise.
15351 (the_low_target): Update .arch_setup, .num_regs and .regmap
15352 initializers. Add .regset_bitmap initializer.
15353 * linux-arm-low.c (the_low_target): Add .regset_bitmap
15355 * linux-bfin-low.c (the_low_target): Likewise.
15356 * linux-cris-low.c (the_low_target): Likewise.
15357 * linux-crisv32-low.c (the_low_target): Likewise.
15358 * linux-ia64-low.c (the_low_target): Likewise.
15359 * linux-m32r-low.c (the_low_target): Likewise.
15360 * linux-m68k-low.c (the_low_target): Likewise.
15361 * linux-ppc-low.c (the_low_target): Likewise.
15362 * linux-s390-low.c (the_low_target): Likewise.
15363 * linux-sh-low.c (the_low_target): Likewise.
15364 * linux-sparc-low.c (the_low_target): Likewise.
15365 * linux-tic6x-low.c (the_low_target): Likewise.
15366 * linux-x86-low.c (the_low_target): Likewise.
15367 * linux-xtensa-low.c (the_low_target): Likewise.
15368 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
15369 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
15370 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
15372 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
15373 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
15375 2012-02-29 Yao Qi <yao@codesourcery.com>
15376 Pedro Alves <palves@redhat.com>
15378 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
15379 `step_over_finished' is true.
15381 2012-02-27 Pedro Alves <palves@redhat.com>
15383 * linux-low.c (pid_is_stopped): Delete, moved to common/.
15384 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
15386 2012-02-27 Pedro Alves <palves@redhat.com>
15389 * linux-low.c (pid_is_stopped): New.
15390 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
15392 2012-02-25 Luis Machado <lgustavo@codesourcery.com>
15394 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
15397 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
15399 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
15401 2012-02-24 Luis Machado <lgustavo@codesourcery>
15403 * server.c (handle_query): Advertise support for target-side
15404 breakpoint condition evaluation.
15405 (process_point_options): New function.
15406 (process_serial_event): When inserting a breakpoint, check for
15407 a target-side condition that should be evaluated.
15409 * mem-break.c: Include regcache.h and ax.h.
15410 (point_cond_list_t): New data structure.
15411 (breakpoint) <cond_list>: New field.
15412 (find_gdb_breakpoint_at): Make non-static.
15413 (delete_gdb_breakpoint_at): Clear any target-side
15415 (clear_gdb_breakpoint_conditions): New function.
15416 (add_condition_to_breakpoint): Likewise.
15417 (add_breakpoint_condition): Likewise.
15418 (gdb_condition_true_at_breakpoint): Likewise.
15419 (gdb_breakpoint_here): Return result directly instead
15420 of going through a local variable.
15422 * mem-break.h (find_gdb_breakpoint_at): New prototype.
15423 (clear_gdb_breakpoint_conditions): Likewise.
15424 (add_breakpoint_condition): Likewise.
15425 (gdb_condition_true_at_breakpoint): Likewise.
15427 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
15428 (need_step_over_p): Take target-side breakpoint condition into
15431 2012-02-24 Luis Machado <lgustavo@codesourcery>
15433 * server.h: Include tracepoint.h.
15434 (agent_mem_read, agent_get_trace_state_variable_value,
15435 agent_set_trace_state_variable_value,
15436 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
15437 get_set_tsv_func_addr): New prototypes.
15439 * ax.h: New include file.
15440 * ax.c: New source file.
15442 * tracepoint.c: Include ax.h.
15443 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
15444 agent_expr, eval_result_type): Move to ax.h.
15445 (parse_agent_expr): Rename to ...
15446 (gdb_parse_agent_expr): ... this, make it non-static and move
15448 (unparse_agent_expr) Rename to ...
15449 (gdb_unparse_agent_expr): ... this, make it non-static and move
15451 (eval_agent_expr): Rename to ...
15452 (eval_tracepoint_agent_expr): ... this.
15453 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
15454 forward declarations.
15455 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
15456 (agent_get_trace_state_variable_value): New function.
15457 (agent_set_trace_state_variable_value): New function.
15458 (cmd_qtdp): Call gdb_parse_agent_expr (...).
15459 (response_tracepoint): Call gdb_unparse_agent_expr (...).
15460 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
15461 (condition_true_at_tracepoint): Likewise.
15462 (parse_agent_expr): Rename to ...
15463 (gdb_parse_agent_expr): ... this and move to ax.c.
15464 (unparse_agent_expr): Rename to ...
15465 (gdb_unparse_agent_expr): ... this and move to ax.c.
15466 (gdb_agent_op_name): Move to ax.c.
15467 (eval_agent_expr): Rename to ...
15468 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
15470 (eval_tracepoint_agent_expr): New function.
15471 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
15473 (current_insn_ptr, emit_error, struct bytecode_address): Move to
15475 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
15476 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
15477 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
15478 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
15479 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
15480 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
15481 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
15482 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
15483 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
15484 (compile_bytecodes): Remove forward declaration.
15485 (is_goto_target): Move to ax.c.
15486 (compile_bytecodes): Move to ax.c and call
15487 agent_get_trace_state_variable_value (...) and
15488 agent_set_trace_state_variable_value (...).
15490 * Makefile.in: Update ax.c and IPA dependencies.
15492 2012-02-24 Pedro Alves <palves@redhat.com>
15494 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
15495 (cmd_bigqtbuffer_circular): ... this. Only handle
15496 'QTBuffer:circular:'.
15497 (handle_tracepoint_general_set): Adjust.
15499 2012-02-16 Yao Qi <yao@codesourcery.com>
15501 * inferiors.c: Move code to ...
15502 * dll.c: .... here. New.
15503 * server.h: Declare clear_dlls.
15504 * Makefile.in (SFILES): Add dll.c.
15508 2012-02-11 Yao Qi <yao@codesourcery.com>
15510 * server.c: (handle_monitor_command): Add a new parameter
15512 (handle_query): Update caller.
15514 2012-02-09 Joel Brobecker <brobecker@adacore.com>
15516 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
15517 * configure, config.in: Regenerate.
15518 * hostio.c: Provide an alternate implementation if HAVE_READLINK
15521 2012-02-02 Pedro Alves <palves@redhat.com>
15523 Try SIGKILL first, then PTRACE_KILL.
15524 * linux-low.c (linux_kill_one_lwp): New.
15525 (linux_kill_one_lwp): Rename to ...
15526 (kill_one_lwp_callback): ... this. Use the new
15527 linux_kill_one_lwp.
15529 2012-02-02 Pedro Alves <palves@redhat.com>
15531 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
15534 2012-01-27 Pedro Alves <palves@redhat.com>
15536 * linux-low.c (linux_child_pid_to_exec_file): Delete.
15537 (elf_64_file_p): Make static.
15538 (linux_pid_exe_is_elf_64_file): New.
15539 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
15540 Delete declarations.
15541 (linux_pid_exe_is_elf_64_file): Declare.
15542 * linux-x86-low.c (x86_arch_setup): Use
15543 linux_pid_exe_is_elf_64_file.
15545 2012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
15547 * linux-low.c (linux_wait_for_event_1): Rename to ...
15548 (linux_wait_for_event): ... here and merge it with former
15549 linux_wait_for_event - new variable wait_ptid, use it.
15550 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
15552 2012-01-23 Pedro Alves <palves@redhat.com>
15554 * server.c (main): Avoid yet another case of infinite loop while
15555 detaching/killing after a longjmp.
15557 2012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15560 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
15562 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
15564 * hostio.c (handle_readlink): New function.
15565 (handle_vFile): Call it to handle "vFile:readlink" packets.
15567 2012-01-20 Pedro Alves <palves@redhat.com>
15568 Ulrich Weigand <ulrich.weigand@linaro.org>
15570 * server.c (handle_v_requests): Only support vAttach and vRun to
15571 start multiple processes when in extended protocol mode.
15573 2012-01-17 Pedro Alves <palves@redhat.com>
15575 * tracepoint.c (initialize_tracepoint): Use mmap instead of
15576 memalign plus mprotect to allocate the scratch buffer.
15578 2012-01-13 Pedro Alves <palves@redhat.com>
15580 * server.c (attach_inferior): Clear `cont_thread'.
15582 2012-01-13 Pedro Alves <palves@redhat.com>
15584 * server.c (main): Avoid infinite loop while detaching/killing
15587 2012-01-09 Doug Evans <dje@google.com>
15589 * server.c (start_inferior): Set last_ptid in --wrapper case.
15591 2012-01-06 Yao Qi <yao@codesourcery.com>
15593 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
15595 [IN_PROCESS_AGENT] (debug_agent): New global variable.
15597 2012-01-04 Yao Qi <yao@codesourcery.com>
15599 * tracepoint.c (cmd_qtdp): Print debug message
15600 for static tracepoint.
15602 2012-01-04 Yao Qi <yao@codesourcery.com>
15604 * tracepoint.c (trace_vdebug): Differentiate debug message
15605 between gdbserver and IPA.
15607 2012-01-03 Yao Qi <yao@codesourcery.com>
15609 * tracepoint.c (tracepoint_was_hit): Don't collect for
15612 2012-01-02 Joel Brobecker <brobecker@adacore.com>
15614 * terminal.h: Reformat copyright header.
15616 2012-01-02 Joel Brobecker <brobecker@adacore.com>
15618 * server.c (gdbserver_version): Update copyright year.
15619 * gdbreplay.c (gdbreplay_version): Likewise.
15621 2011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
15623 * linux-low.c (linux_create_inferior): Put empty if clause for write.
15626 2011-12-18 Hui Zhu <teawater@gmail.com>
15627 * linux-low.c (linux_create_inferior): Save return value to ret.
15629 2011-12-18 Hui Zhu <teawater@gmail.com>
15631 * linux-low.c (linux_create_inferior): Save return value to ret.
15633 2011-12-16 Doug Evans <dje@google.com>
15635 * linux-low.c (linux_create_inferior): If stdio connection,
15636 redirect stdin from /dev/null, stdout to stderr.
15637 * remote-utils.c (remote_is_stdio): New static global.
15638 (remote_connection_is_stdio): New function.
15639 (remote_prepare): Handle stdio connection.
15640 (remote_open): Ditto.
15641 (remote_close): Don't close stdin for stdio connections.
15642 (read_prim,write_prim): New functions. Replace all calls to
15643 read/write to these.
15644 * server.c (main): Watch for "-" argument. Move call to
15645 remote_prepare before start_inferior.
15646 * server.h (STDIO_CONNECTION_NAME): New macro.
15647 (remote_connection_is_stdio): Declare.
15649 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
15650 in debugging output.
15652 2011-12-15 Yao Qi <yao@codesourcery.com>
15654 * tracepoint.c: Include sys/syscall.h.
15655 (gdb_ust_thread): Remove preprocessor conditional.
15657 2011-12-14 Pedro Alves <pedro@codesourcery.com>
15659 * linux-low.c (linux_detach_one_lwp): Call
15660 the_low_target.prepare_to_resume before detaching.
15662 2011-12-14 Yao Qi <yao@codesourcery.com>
15664 * tracepoint.c (gdb_ust_thread): Don't ignore return value
15667 2011-12-14 Yao Qi <yao@codesourcery.com>
15669 * i386-low.c (i386_low_stopped_data_address): Initialize local
15670 variable `control'.
15672 2011-12-13 Pedro Alves <pedro@codesourcery.com>
15676 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
15677 DR_CONTROL unless necessary. Extend comments.
15678 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
15679 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
15681 2011-12-13 Yao Qi <yao@codesourcery.com>
15683 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
15685 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
15687 2011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
15689 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
15690 Print new debug message for such case.
15692 2011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
15694 Fix overlapping memcpy.
15695 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
15696 the read_inferior_memory transfer.
15697 (delete_fast_tracepoint_jump): New variable buf. Use it for the
15698 write_inferior_memory transfer.
15699 (set_fast_tracepoint_jump): New variable buf. Use it for the
15700 read_inferior_memory and write_inferior_memory transfers.
15701 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
15702 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
15703 Use it for the write_inferior_memory transfer.
15704 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
15707 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15709 * linux-low.c (fetch_register, store_register): Make code
15710 consistent, fix formatting.
15712 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15714 * linux-low.c (usr_store_inferior_registers): Factor out code
15715 to handle individual registers into...
15716 (store_register): ... this new function.
15718 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
15720 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
15721 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
15722 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
15723 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
15724 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
15725 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
15726 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
15727 (srv_xmlfiles): Add new XML files.
15729 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
15731 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
15732 (init_registers_s390_linux32v1): Add prototype.
15733 (init_registers_s390_linux32v2): Likewise.
15734 (init_registers_s390_linux64v1): Likewise.
15735 (init_registers_s390_linux64v2): Likewise.
15736 (init_registers_s390x_linux64v1): Likewise.
15737 (init_registers_s390x_linux64v2): Likewise.
15738 (s390_num_regs): Increment to 52.
15739 (s390_regmap): Add orig_r2 register.
15740 (s390_num_regs_3264): Increment to 68.
15741 (s390_regmap_3264): Add orig_r2 register.
15742 (s390_collect_ptrace_register): Handle orig_r2 register.
15743 (s390_supply_ptrace_register): Likewise.
15744 (s390_fill_last_break): New function.
15745 (s390_store_last_break): Likewise.
15746 (s390_fill_system_call): New function.
15747 (s390_store_system_call): Likewise.
15748 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
15750 (s390_check_regset): New function.
15751 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
15752 NT_S390_SYSTEM_CALL regsets and use appropriate description.
15753 Update target_regsets for available register sets.
15755 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
15756 Jan Kratochvil <jan.kratochvil@redhat.com>
15758 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
15759 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
15761 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
15762 * linux-low.h (struct process_info_private): New member r_debug.
15763 * server.c (handle_qxfer_libraries): Call
15764 the_target->qxfer_libraries_svr4.
15765 (handle_qxfer_libraries_svr4): New function.
15766 (qxfer_packets): New entry "libraries-svr4".
15767 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
15768 * target.h (struct target_ops): New member qxfer_libraries_svr4.
15769 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
15770 PACKET_qXfer_libraries_svr4.
15772 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
15774 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
15775 PSW address/mask between 8-byte and 16-byte formats.
15776 (s390_supply_ptrace_register): Likewise.
15777 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
15778 basic addressing mode bit.
15780 2011-11-24 Stan Shebs <stan@codesourcery.com>
15782 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
15784 2011-11-17 Stan Shebs <stan@codesourcery.com>
15786 * tracepoint.c (struct tracepoint): New field traceframe_usage.
15787 (tracing_start_time): New global.
15788 (tracing_stop_time): New global.
15789 (tracing_user_name): New global.
15790 (tracing_notes): New global.
15791 (tracing_stop_note): New global.
15792 (cmd_qtstart): Set traceframe_usage, start_time.
15793 (stop_tracing): Set stop_time.
15794 (cmd_qtstatus): Report additional status.
15795 (cmd_qtp): New function.
15796 (handle_tracepoint_query): Call it.
15797 (cmd_qtnotes): New function.
15798 (handle_tracepoint_general_set): Call it.
15799 (get_timestamp): Rename from tsv_get_timestamp.
15801 2011-11-14 Stan Shebs <stan@codesourcery.com>
15802 Kwok Cheung Yeung <kcy@codesourcery.com>
15804 * linux-x86-low.c (small_jump_insn): New.
15805 (i386_install_fast_tracepoint_jump_pad): Add arguments for
15806 trampoline and error message, build a trampoline and issue a small
15807 jump instruction to it.
15808 (x86_install_fast_tracepoint_jump_pad): Add arguments for
15809 trampoline and error message.
15810 (x86_get_min_fast_tracepoint_insn_len): New.
15811 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
15812 * linux-low.h (struct linux_target_ops): Add arguments to
15813 install_fast_tracepoint_jump_pad operation, add new operation.
15814 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
15816 (linux_get_min_fast_tracepoint_insn_len): New function.
15817 (linux_target_op): Add new operation.
15818 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
15819 (gdb_trampoline_buffer_end): Ditto.
15820 (gdb_trampoline_buffer_error): Ditto.
15821 (struct ipa_sym_addresses): Add fields for new IPA variables.
15822 (symbol_list): Add entries for new IPA variables.
15823 (struct tracepoint): Add fields to hold the address range of the
15824 trampoline used by the tracepoint.
15825 (trampoline_buffer_head): New static variable.
15826 (trampoline_buffer_tail): Ditto.
15827 (claim_trampoline_space): New function.
15828 (have_fast_tracepoint_trampoline_buffer): New function.
15829 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
15831 (install_fast_tracepoint): Ditto, also add error buffer argument.
15832 (cmd_qtminftpilen): New function.
15833 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
15834 (fast_tracepoint_from_trampoline_address): New function.
15835 (fast_tracepoint_collecting): Handle trampoline as part of jump
15837 (set_trampoline_buffer_space): New function.
15838 (initialize_tracepoint): Initialize new IPA variables.
15839 * target.h (struct target_ops): Add arguments to
15840 install_fast_tracepoint_jump_pad operation, add new
15841 get_min_fast_tracepoint_insn_len operation.
15842 (target_get_min_fast_tracepoint_insn_len): New.
15843 (install_fast_tracepoint_jump_pad): Add arguments.
15844 * server.h (IPA_BUFSIZ): Define.
15845 * linux-i386-ipa.c: Include extra header files.
15846 (initialize_fast_tracepoint_trampoline_buffer): New function.
15847 (initialize_low_tracepoint): Call it.
15848 * server.h (set_trampoline_buffer_space): Declare.
15849 (claim_trampoline_space): Ditto.
15850 (have_fast_tracepoint_trampoline_buffer): Ditto.
15852 2011-11-14 Yao Qi <yao@codesourcery.com>
15854 * server.c (handle_query): Handle InstallInTrace for qSupported.
15855 * tracepoint.c (add_tracepoint): Sort list.
15856 (install_tracepoint, download_tracepoint): New.
15857 (cmd_qtdp): Call them to install and download tracepoints.
15858 (sort_tracepoints): Removed.
15859 (cmd_qtstart): Update.
15861 2011-11-14 Yao Qi <yao@codesourcery.com>
15863 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
15864 * mem-break.h: Declare.
15865 * tracepoint.c (cmd_qtstart): Move some code to ...
15866 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
15868 (download_tracepoints): Move some code to ...
15869 (download_tracepoint_1): ... here. New.
15871 2011-11-08 Yao Qi <yao@codesourcery.com>
15873 * remote-utils.c (relocate_instruction): A comment fix.
15875 2011-11-07 Joel Brobecker <brobecker@adacore.com>
15877 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
15878 (i386_dr_low_get_control, i386_dr_low_get_status): Use
15879 dr_status_mirror and dr_control_mirror from debug_reg_state.
15880 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
15881 (i386_initial_stuff): Remove use of deleted globals.
15882 (i386_get_thread_context, i386_set_thread_context,
15883 i386_thread_added): Use dr_status_mirror and dr_control_mirror
15884 from debug_reg_state.
15886 2011-11-05 Yao Qi <yao@codesourcery.com>
15888 * tracepoint.c (gdb_collect): Loop over tracepoints of same
15889 address as TPOINT's.
15891 2011-11-02 Stan Shebs <stan@codesourcery.com>
15893 * tracepoint.c (agent_mem_read_string): New function.
15894 (eval_agent_expr): Call it for tracenz.
15895 * server.c (handle_query): Report support for tracenz.
15897 2011-11-02 Yao Qi <yao@codesourcery.com>
15899 * tracepoint.c (cmd_qtstart): Remove unused local variables.
15901 2011-11-02 Yao Qi <yao@codesourcery.com>
15903 * target.h: Fix a typo in comment.
15905 2011-10-31 Pedro Alves <pedro@codesourcery.com>
15907 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
15908 clobber the breakpoints' shadows with fast tracepoint jumps.
15909 * mem-break.h (check_mem_write): Add `myaddr' parameter.
15910 * target.c (write_inferior_memory): Also pass MYADDR down to
15913 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
15915 * configure.ac: Check support for personality routine.
15916 * configure: Regenerate.
15917 * config.in: Likewise.
15918 * linux-low.c: Include <sys/personality.h>.
15919 Define ADDR_NO_RANDOMIZE if necessary.
15920 (linux_create_inferior): Disable address space randomization when
15921 forking inferior, if requested.
15922 (linux_supports_disable_randomization): New function.
15923 (linux_target_ops): Install it.
15924 * server.h (disable_randomization): Declare.
15925 * server.c (disable_randomization): New global variable.
15926 (handle_general_set): Handle QDisableRandomization.
15927 (handle_query): Likewise for qSupported.
15928 (main): Support --disable-randomization and --no-disable-randomization
15929 command line arguments.
15930 * target.h (struct target_ops): Add supports_disable_randomization.
15931 (target_supports_disable_randomization): New macro.
15933 2011-09-29 Mike Frysinger <vapier@gentoo.org>
15935 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
15937 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
15938 [!PT_GETDSBT] (target_loadmap): New definition.
15939 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
15940 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
15941 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
15942 and PT_GETDSBT to LINUX_LOADMAP.
15943 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
15944 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
15946 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
15948 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
15949 (arm_linux_hwbp_cap): New static variable.
15950 (arm_linux_get_hwbp_cap): Replace by ...
15951 (arm_linux_init_hwbp_cap): ... this new function.
15952 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
15953 (arm_linux_get_hw_watchpoint_count): Likewise.
15954 (arm_linux_get_hw_watchpoint_max_length): Likewise.
15955 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
15956 (arm_prepare_to_resume): Use perror_with_name instead of error.
15958 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
15960 * linux-arm-low.c: Include <signal.h>.
15961 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
15962 (struct arm_linux_hwbp_cap): New data type.
15963 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
15964 (struct arm_linux_hw_breakpoint): New data type.
15965 (MAX_BPTS, MAX_WPTS): Define.
15966 (struct arch_process_info, struct arch_lwp_info): New data types.
15967 (arm_linux_get_hwbp_cap): New function.
15968 (arm_linux_get_hw_breakpoint_count): Likewise.
15969 (arm_linux_get_hw_watchpoint_count): Likewise.
15970 (arm_linux_get_hw_watchpoint_max_length): Likewise.
15971 (arm_hwbp_control_initialize): Likewise.
15972 (arm_hwbp_control_is_enabled): Likewise.
15973 (arm_hwbp_control_is_initialized): Likewise.
15974 (arm_hwbp_control_disable): Likewise.
15975 (arm_linux_hw_breakpoint_equal): Likewise.
15976 (arm_linux_hw_point_initialize): Likewise.
15977 (struct update_registers_data): New data structure.
15978 (update_registers_callback: New function.
15979 (arm_insert_point): Likewise.
15980 (arm_remove_point): Likewise.
15981 (arm_stopped_by_watchpoint): Likewise.
15982 (arm_stopped_data_address): Likewise.
15983 (arm_new_process): Likewise.
15984 (arm_new_thread): Likewise.
15985 (arm_prepare_to_resume): Likewise.
15986 (the_low_target): Register arm_insert_point, arm_remove_point,
15987 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
15988 arm_new_thread, and arm_prepare_to_resume.
15990 2011-09-15 Stan Shebs <stan@codesourcery.com>
15992 * server.h (struct emit_ops): Add compare-goto fields.
15993 * tracepoint.c (gdb_agent_op_sizes): New table.
15994 (emit_eq_goto): New function.
15995 (emit_ne_goto): New function.
15996 (emit_lt_goto): New function.
15997 (emit_le_goto): New function.
15998 (emit_gt_goto): New function.
15999 (emit_ge_goto): New function.
16000 (is_goto_target): New function.
16001 (compile_bytecodes): Recognize special cases of compare-goto
16002 combinations and call specialized emitters for them.
16003 * linux-x86-low.c (amd64_emit_eq_goto): New function.
16004 (amd64_emit_ne_goto): New function.
16005 (amd64_emit_lt_goto): New function.
16006 (amd64_emit_le_goto): New function.
16007 (amd64_emit_gt_goto): New function.
16008 (amd64_emit_ge_goto): New function.
16009 (amd64_emit_ops): Add the new functions.
16010 (i386_emit_eq_goto): New function.
16011 (i386_emit_ne_goto): New function.
16012 (i386_emit_lt_goto): New function.
16013 (i386_emit_le_goto): New function.
16014 (i386_emit_gt_goto): New function.
16015 (i386_emit_ge_goto): New function.
16016 (i386_emit_ops): Add the new functions.
16018 2011-09-08 Stan Shebs <stan@codesourcery.com>
16020 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
16021 (i386_emit_epilogue): Restore %ebx.
16023 2011-08-31 Jie Zhang <jzhang918@gmail.com>
16025 * server.c (step_thread): Remove definition.
16026 (process_serial_event): Don't handle Hs.
16027 * server.h (step_thread): Remove declaration.
16028 * target.c (set_desired_inferior): Remove use of step_thread.
16030 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
16032 * linux-low.c: Include linux-procfs.h.
16033 (linux_attach_lwp_1): Update comments.
16034 (linux_attach): Scan for existing threads when attaching to a
16035 process that is the tgid.
16036 * Makefile.in: Update dependencies.
16038 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
16040 * configure.srv: Add linux-procfs.o dependencies.
16042 2011-08-14 Yao Qi <yao@codesourcery.com>
16044 * target.h (struct target_ops): Fix indent.
16045 * win32-low.c (win32_target_ops): Fix comment.
16047 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
16048 Yao Qi <yao@codesourcery.com>
16050 * Makefile.in (clean): Remove tic6x-*.c files.
16051 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
16052 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
16053 (tic6x-c64xp-linux.c): Likewise.
16054 * configure.srv: Add support for tic6x-*-uclinux.
16055 * linux-tic6x-low.c: New.
16056 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
16058 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
16059 Yao Qi <yao@codesourcery.com>
16061 * target.h (struct target_ops): Add read_loadmap.
16062 * linux-low.c (struct target_loadseg): New type.
16063 (struct target_loadmap): New type.
16064 (linux_read_loadmap): New function.
16065 (linux_target_ops): Add linux_read_loadmap.
16066 * server.c (handle_query): Support qXfer:fdpic:read packet.
16067 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
16070 2011-08-05 Eli Zaretskii <eliz@gnu.org>
16072 * win32-low.c: Include <stdint.h>.
16074 2011-07-22 Pedro Alves <pedro@codesourcery.com>
16076 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
16077 to the inferior here.
16078 (i386_remove_aligned_watchpoint): Ditto.
16079 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
16080 fit part of the watchpoint in the debug registers.
16081 (i386_update_inferior_debug_regs): New.
16082 (i386_low_insert_watchpoint): Work on a local mirror of the debug
16083 registers, and only update the inferior on success.
16084 (i386_low_remove_watchpoint): Ditto.
16086 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
16088 * linux-low.c (compare_ints, unique, list_threads, show_process,
16089 linux_core_of_thread): Delete.
16090 (linux_target_ops): Change linux_core_of_thread to
16091 linux_common_core_of_thread.
16092 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
16093 * utils.c (malloc_failure): Change type of argument.
16094 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
16095 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
16096 common/linux-osdata.c, common/ptid.c and common/buffer.c.
16097 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
16098 (IPA_OBJS): Add common-utils-ipa.o.
16099 (ptid_h, linux_osdata_h): New macros.
16100 (server_h): Add common/common-utils.h, common/xml-utils.h,
16101 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
16103 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
16104 ptid.o, buffer.o): New rules.
16105 (linux-low.o): Add common/linux-osdata.h as a dependency.
16106 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
16107 * configure.ac: Add AC_HEADER_DIRENT check.
16108 * config.in: Regenerate.
16109 * configure: Regenerate.
16110 * remote-utils.c (xml_escape_text): Delete.
16111 (buffer_grow, buffer_free, buffer_init, buffer_finish,
16112 buffer_xml_printf): Move to common/buffer.c.
16113 * server.c (main): Remove call to initialize_inferiors.
16114 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
16115 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
16116 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
16117 internal_error, gdb_assert, gdb_assert_fail): Delete.
16118 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
16119 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
16121 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
16122 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
16123 initialize_inferiors): Delete.
16125 2011-07-20 Pedro Alves <pedro@codesourcery.com>
16127 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
16130 2011-05-31 Pedro Alves <pedro@codesourcery.com>
16132 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
16134 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
16136 2011-05-26 Yao Qi <yao@codesourcery.com>
16138 * Makefile.in (thread-db.o): Track dependence to
16139 common/gdb_thread_db.h.
16140 * thread-db.c: include gdb_thread_db.h from right place.
16142 2011-05-16 Adrian Cornish <gnu@bluedreamer.com>
16144 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
16145 __FILE__ and __LINE__ to internal_error.
16147 2011-05-13 Doug Evans <dje@google.com>
16149 * thread-db.c (try_thread_db_load_from_sdir): New function.
16150 (try_thread_db_load_from_dir): New function.
16151 (thread_db_load_search): Handle $sdir, ignore $pdir.
16152 Remove trying of system directories if search of
16153 libthread-db-search-path fails, that is now done via $sdir.
16155 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
16157 * server.c (handle_query): Add EnableDisableTracepoints to the list
16158 of supported features.
16159 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
16161 (cmd_qtenable_disable): New.
16162 (cmd_qtstart): Install tracepoints even if disabled.
16163 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
16164 receiving a QTEnable or QTDisable packet.
16165 (gdb_collect): Skip data collection if fast tracepoint is disabled.
16166 (ust_marker_to_static_tracepoint): Do not ignore disabled static
16168 (gdb_probe): Skip data collection if static tracepoint is disabled.
16170 2011-05-10 Doug Evans <dje@google.com>
16172 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
16174 2011-05-04 Doug Evans <dje@google.com>
16176 * linux-low.c (linux_join): Skip process lookup.
16177 * spu-low.c (spu_join): Ditto.
16178 * server.c (join_inferiors_callback): Delete.
16179 (process_serial_event): For 'D' packet (detach) call join_inferior
16182 2011-05-04 Joseph Myers <joseph@codesourcery.com>
16184 * README: Don't mention xscale*-*-linux*.
16185 * configure.srv (xscale*-*-linux*): Don't handle target.
16187 2011-04-27 Nathan Froyd <froydnj@codesourcery.com>
16189 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
16191 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
16192 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
16193 (i386_emit_void_call_2): Likewise.
16195 2011-04-26 Yao Qi <yao@codesourcery.com>
16197 * linux-low.c: Move common macros to linux-ptrace.h.
16198 Include linux-ptrace.h.
16199 * Makefile.in (linux_ptrace_h): New.
16200 (linux-low.o): Depends on linux-ptrace.h.
16202 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
16204 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
16205 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
16206 (remote_prepare): New function with most of the TCP code from ...
16207 (remote_open): ... here. Detect PORT here unconditionally. Move also
16208 setting transport_is_reliable.
16209 * server.c (run_once): New variable.
16210 (gdbserver_usage): Document it.
16211 (main): Set run_once for `--once'. Call remote_prepare. Exit after
16212 the first run if RUN_ONCE.
16213 * server.h (run_once, remote_prepare): New declarations.
16215 2011-04-19 Tom Tromey <tromey@redhat.com>
16217 * win32-low.c (handle_load_dll): Remove duplicate "the".
16219 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
16221 Remove support for old Cygwin 1.5 versions.
16222 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
16223 function to avoid warning.
16224 (win32_add_one_solib): Use cygwin_conv_path function to avoid
16227 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
16229 * gdbserver/server.h (Macro _): Define it if not available.
16231 2011-03-14 Michael Snyder <msnyder@vmware.com>
16233 * hostio.c (handle_close): Remove unnecessary null test.
16235 2011-03-10 Joel Brobecker <brobecker@adacore.com>
16237 * Makefile.in (maintainer-clean realclean distclean): Remove
16238 "make ... subdir_do" command.
16240 2011-03-10 Michael Snyder <msnyder@vmware.com>
16242 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
16244 * server.c (handle_v_run): Free alloced buffer on early return.
16246 2011-03-09 Yao Qi <yao@codesourcery.com>
16249 2011-03-04 Yao Qi <yao@codesourcery.com>
16251 * Makefile.in: Remove GNU make feature --directory.
16253 2011-03-05 Yao Qi <yao@codesourcery.com>
16255 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16256 (subdir_do): New make target. Copied from gdb/Makefile.
16257 (maintainer-clean, realclean, distclean, clean): Call corresponding
16258 make targets in common/Makefile.
16260 2011-02-11 Yao Qi <yao@codesourcery.com>
16262 * configure.ac: Call AC_PROG_RANLIB.
16263 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16264 * configure: Regenerate.
16266 2011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
16268 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
16270 2011-03-06 Yao Qi <yao@codesourcery.com>
16272 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
16274 2011-03-05 Yao Qi <yao@codesourcery.com>
16276 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16277 (subdir_do): New make target. Copied from gdb/Makefile.
16278 (maintainer-clean, realclean, distclean, clean): Call corresponding
16279 make targets in common/Makefile.
16281 2011-03-04 Yao Qi <yao@codesourcery.com>
16283 * Makefile.in: Remove GNU make feature --directory.
16285 2011-03-04 Michael Snyder <msnyder@vmware.com>
16287 * server.c (queue_stop_reply): Call xmalloc not malloc.
16289 2011-03-02 Michael Snyder <msnyder@vmware.com>
16291 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
16293 2011-02-28 Michael Snyder <msnyder@vmware.com>
16295 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
16296 (cmd_qtframe): Ditto.
16297 (cmd_qtbuffer): Ditto.
16298 (cmd_bigqtbuffer): Ditto.
16300 * utils.c (decimal2str): Initialize 'width' to nine, then
16301 don't mess with it.
16303 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
16305 * hostio.c (require_data): Free *data, not data.
16307 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
16309 * hostio.c (require_data): Use free, not xfree.
16311 2011-02-27 Michael Snyder <msnyder@vmware.com>
16313 * server.c (handle_query): Discard unused value.
16315 * hostio.c (require_data): Free malloc memory before returning
16318 2011-02-26 Michael Snyder <msnyder@vmware.com>
16320 * linux-low.c (list_threads): Call closedir for dirent.
16322 2011-02-27 Michael Snyder <msnyder@vmware.com>
16324 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
16325 a case statement falls through.
16327 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
16329 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
16332 2011-02-26 Michael Snyder <msnyder@vmware.com>
16334 * utils.c (decimal2str): Eliminate dead code and dead param.
16335 (pulongest): Drop dead param from call to decimal2str.
16338 2011-02-24 Joel Brobecker <brobecker@adacore.com>
16340 Revert the following patch (not approved yet):
16341 2011-02-21 Hui Zhu <teawater@gmail.com>
16342 * tracepoint.c (tp_printf): New function.
16343 (eval_agent_expr): Handle gdb_agent_op_printf.
16345 2011-02-21 Hui Zhu <teawater@gmail.com>
16347 * tracepoint.c (tp_printf): New function.
16348 (eval_agent_expr): Handle gdb_agent_op_printf.
16350 2011-02-18 Tom Tromey <tromey@redhat.com>
16352 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
16353 (tracepoint.o): Likewise.
16354 * tracepoint.c (enum gdb_agent_op): Use ax.def.
16355 (gdb_agent_op_names): Likewise.
16357 2011-02-18 Tom Tromey <tromey@redhat.com>
16359 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
16360 gdb_agent_op_rot>: New constants.
16361 (gdb_agent_op_names): Add pick and roll.
16362 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
16365 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
16367 * aclocal.m4: Regenerated with aclocal-1.11.1.
16369 2011-02-14 Pedro Alves <pedro@codesourcery.com>
16371 * server.c (handle_qxfer_traceframe_info): New.
16372 (qxfer_packets): Register "traceframe-info".
16373 (handle_query): Report support for qXfer:traceframe-info:read+.
16374 * tracepoint.c (match_blocktype): New.
16375 (traceframe_find_block_type): Rename to ...
16376 (traceframe_walk_blocks): ... this. Add callback filter argument,
16378 (traceframe_find_block_type): New, reimplemented on top of
16379 traceframe_walk_blocks.
16380 (build_traceframe_info_xml): New.
16381 (traceframe_read_info): New.
16382 * server.h (traceframe_read_info): Declare.
16384 2011-02-11 Yao Qi <yao@codesourcery.com>
16386 * configure.ac: Call AC_PROG_RANLIB.
16387 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16388 * configure: Regenerate.
16390 2011-02-07 Pedro Alves <pedro@codesourcery.com>
16392 * server.c (gdb_read_memory): Change return semantics to allow
16394 (handle_search_memory_1): Adjust.
16395 (process_serial_event) <'m' packet>: Handle partial transfers.
16396 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
16398 2011-01-28 Pedro Alves <pedro@codesourcery.com>
16400 * regcache.c (init_register_cache): Initialize
16401 regcache->register_status.
16402 (free_register_cache): Release regcache->register_status.
16403 (regcache_cpy): Copy register_status.
16404 (registers_to_string): Print 'x's for unavailable registers.
16405 (supply_register): Mark the register's status valid or
16406 unavailable, depending on whether a buffer was passed in or not.
16407 (supply_register_zeroed): New.
16408 (supply_regblock): Mark the registers' status valid or
16409 unavailable, depending on whether a buffer was passed in or not.
16410 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
16411 (struct regcache): New `register_status' field.
16412 (supply_register_zeroed): Declare.
16413 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
16414 supply_register_zeroed, rather than passing a NULL buffer to
16416 * tracepoint.c (fetch_traceframe_registers): Update comment.
16418 2011-01-28 Pedro Alves <pedro@codesourcery.com>
16420 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
16423 2011-01-25 Pedro Alves <pedro@codesourcery.com>
16425 * server.h (decode_xfer_write): Change prototype.
16426 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
16427 and don't extract the annex here.
16428 * server.c (decode_xfer_read): Remove `annex' parameter,
16429 and don't extract the annex here.
16430 (decode_xfer): New.
16431 (struct qxfer): New.
16432 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
16433 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
16434 (handle_qxfer_statictrace): New functions, abstracted out from
16435 handle_query, and made to use the struct qxfer interface.
16436 (handle_threads_qxfer_proper): Rename to ...
16437 (handle_qxfer_threads_proper): ... this.
16438 (handle_threads_qxfer): Rename to ...
16439 (handle_qxfer_threads): ... this. Adjust.
16440 (qxfer_packets): New array.
16441 (handle_qxfer): New function.
16442 (handle_query): Use handle_qxfer.
16444 2011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
16446 * gdbreplay.c: Shorten lines of >= 80 columns.
16447 * linux-low.c: Ditto.
16448 * linux-ppc-low.c: Ditto.
16449 * linux-s390-low.c: Ditto.
16450 * linux-sparc-low.c: Ditto.
16451 * linux-x86-low.c: Ditto.
16452 * linux-xtensa-low.c: Ditto.
16453 * mem-break.c: Ditto.
16454 * nto-low.c: Ditto.
16455 * regcache.h: Ditto.
16456 * remote-utils.c: Ditto.
16459 * thread-db.c: Ditto.
16460 * tracepoint.c: Ditto.
16462 * win32-low.h: Ditto.
16464 2011-01-05 Joel Brobecker <brobecker@adacore.com>
16466 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
16469 2011-01-01 Joel Brobecker <brobecker@adacore.com>
16471 * server.c (gdbserver_version): Update copyright year in version
16473 * gdbreplay.c (gdbreplay_version): Ditto.
16475 2010-12-29 Jie Zhang <jie.zhang@analog.com>
16477 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
16478 * linux-bfin-low.c: New file.
16479 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
16480 PT_DATA_ADDR for BFIN targets.
16481 * Makefile.in (SFILES): Add linux-bfin-low.c.
16482 (clean): Remove reg-bfin.c.
16483 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
16484 * README: Mention supported Blackfin targets.
16486 2010-12-23 Mike Frysinger <vapier@gentoo.org>
16488 * .gitignore: New file.
16490 2010-11-16 Mike Frysinger <vapier@gentoo.org>
16492 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
16494 2010-10-22 Jie Zhang <jie@codesourcery.com>
16496 * Makefile.in: Add FLAGS_TO_PASS variable.
16497 (install): Remove dependency of install-only and recursively
16498 invoke make for install-only.
16500 2010-10-04 Doug Evans <dje@google.com>
16502 * Makefile.in (uninstall): Use $(DESTDIR).
16504 2010-09-24 Pedro Alves <pedro@codesourcery.com>
16508 * linux-x86-low.c (compat_siginfo_from_siginfo)
16509 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
16510 si_code is < 0. Check for si_code == SI_TIMER before checking for
16513 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16515 * lynx-i386-low.c: New file.
16516 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
16518 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16520 * lynx-low.c (ptrace_request_to_str): Remove handling for
16521 request values that have been removed in LynxOS 5.x.
16523 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16525 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
16528 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
16530 * configure.ac: Add --enable-inprocess-agent option.
16531 * configure: Rebuilt.
16533 2010-09-06 Yao Qi <yao@codesourcery.com>
16535 * linux-low.c (linux_kill): Remove unused variable.
16536 (linux_stabilize_threads): Likewise.
16537 * server.c (start_inferior): Likewise.
16538 (queue_stop_reply_callback): Likewise.
16539 * tracepoint.c (do_action_at_tracepoint): Likewise.
16541 2010-09-06 Yao Qi <yao@codesourcery.com>
16543 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
16546 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16548 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
16550 2010-09-06 Pedro Alves <pedro@codesourcery.com>
16552 * Makefile.in (install-only): Replace $IPA_DEPFILES with
16555 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16557 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
16558 gdbserver/lynx-ppc-low.c: New files.
16559 * Makefile.in (lynx_low_h): New variable.
16560 (lynx-low.o, lynx-ppc-low.o): New rules.
16561 * configure.ac: On LynxOS, link with -lnetinet.
16562 * configure.srv: Add handling of powerpc-*-lynxos* targets.
16563 * configure: regenerate.
16565 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16567 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
16568 * configure.ac: Add check for vasprintf and vsnprintf.
16569 * configure, config.in: Regenerate.
16570 * server.h (vasprintf, vsnprintf): Add conditional declarations.
16572 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16574 * gdbreplay.c: Move include of alloca.h up, next to include of
16576 * server.h: Add include of malloc.h.
16577 * mem-break.c: Remove include of malloc.h.
16578 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
16580 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16582 * Makefile.in (memmem.o): Build with -Wno-error.
16584 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16586 * utils.c (xsnprintf): Make non-static.
16587 * server.h: Add xsnprintf declaration.
16588 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
16589 replace calls to snprintf by calls to xsnprintf throughout.
16591 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16593 * configure.ac: Add configure check for alloca.
16594 * configure, config.in: Regenerate.
16595 * server.h: Include alloca.h if it exists.
16596 * gdbreplay.c: Include alloca.h if it exists.
16598 2010-08-28 Pedro Alves <pedro@codesourcery.com>
16600 * linux-low.c (__SIGRTMIN): Define if not already defined.
16601 (linux_create_inferior): Check for __ANDROID__ rather than
16603 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
16604 are already deferred.
16605 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
16606 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
16607 stopped and already has a pending signal to report.
16608 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
16609 a pending signal to report or is moving out of a jump pad.
16610 (linux_init_signals): Check for __ANDROID__ rather than
16613 2010-08-28 Pedro Alves <pedro@codesourcery.com>
16615 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
16616 debug_threads check. Avoid a linear search when not doing debug
16619 2010-08-27 Pedro Alves <pedro@codesourcery.com>
16621 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
16622 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
16623 (struct file_handler) <fd>: Change type to gdb_fildes_t.
16624 (process_event): Change local fd's type to gdb_fildes_t.
16625 (create_file_handler): Adjust prototype.
16626 (delete_file_handler): Adjust prototype.
16627 (handle_file_event): Adjust prototype. Use pfildes.
16628 (create_file_event): Adjsut prototype.
16629 * remote-utils.c (remote_desc, listen_desc): Change type to
16631 * server.h: New gdb_fildes_t typedef.
16632 [USE_WIN32API]: Include winsock2.h.
16633 (delete_file_handler, add_file_handler): Adjust prototypes.
16634 (pfildes): Declare.
16635 * utils.c (pfildes): New.
16637 2010-08-27 Pedro Alves <pedro@codesourcery.com>
16639 * configure.ac (build_warnings): Add -Wno-char-subscripts.
16640 * configure: Regenerate.
16642 2010-08-27 Pedro Alves <pedro@codesourcery.com>
16644 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
16645 (linux_done_accessing_memory): ... this.
16646 (linux_target_ops): Adjust.
16647 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
16648 * nto-low.c (nto_target_ops): Adjust comment.
16649 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
16650 * spu-low.c (spu_target_ops): Adjust comment.
16651 * target.h (target_ops): Rename unprepare_to_access_memory field
16652 to done_accessing_memory.
16653 (unprepare_to_access_memory): Rename to ...
16654 (done_accessing_memory): ... this.
16656 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16658 * linux-low.c (linux_prepare_to_access_memory): New.
16659 (linux_unprepare_to_access_memory): New.
16660 (linux_target_ops): Install them.
16661 * server.c (read_memory): Rename to ...
16662 (gdb_read_memory): ... this. Use
16663 prepare_to_access_memory/prepare_to_access_memory.
16664 (write_memory): Rename to ...
16665 (gdb_write_memory): ... this. Use
16666 prepare_to_access_memory/prepare_to_access_memory.
16667 (handle_search_memory_1): Adjust.
16668 (process_serial_event): Adjust.
16669 * target.h (struct target_ops): New fields
16670 prepare_to_access_memory and unprepare_to_access_memory.
16671 (prepare_to_access_memory, unprepare_to_access_memory): New.
16672 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
16673 prepare_to_access_memory/prepare_to_access_memory.
16674 * nto-low.c (nto_target_ops): Adjust.
16675 * spu-low.c (spu_target_ops): Adjust.
16676 * win32-low.c (win32_target_ops): Adjust.
16678 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16680 * Makefile.in (WARN_CFLAGS): Get it from configure.
16681 (WERROR_CFLAGS): New.
16682 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
16683 * configure.ac: Introduce --enable-werror, which adds -Werror to
16684 the compiler command line. Enabled by default. Disable with
16685 --disable-werror. Add -Wdeclaration-after-statement
16686 Wpointer-arith and -Wformat-nonliteral to warning flags.
16687 * configure: Regenerate.
16689 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16691 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
16693 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16695 * gdbreplay.c (remote_error): New.
16697 (expect): Use gdbchar. Check for error reading from GDB.
16698 Clarify sync error output.
16699 (play): Check for errors writing to GDB.
16700 * linux-low.c (sigchld_handler): Really ignore `write' errors.
16701 * remote-utils.c (getpkt): Check for errors writing to the remote
16704 2010-08-25 Pedro Alves <pedro@codesourcery.com>
16706 * linux-low.c (linux_wait_1): Move non-debugging code out of
16707 `debug_threads' control.
16709 2010-08-25 Pedro Alves <pedro@codesourcery.com>
16711 * linux-low.c (linux_wait_1): Don't set last_status here.
16712 * server.c (push_event, queue_stop_reply_callback): Assert we're
16713 not pushing a TARGET_WAITKIND_IGNORE event.
16714 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
16715 (myresume, handle_target_event): Set the thread's last_resume_kind
16716 and last_status from the target returned status.
16718 2010-08-25 Pedro Alves <pedro@codesourcery.com>
16722 * linux-x86-low.c (update_debug_registers_callback): New.
16723 (i386_dr_low_set_addr): Use it.
16724 (i386_dr_low_get_addr): New.
16725 (i386_dr_low_set_control): Use update_debug_registers_callback.
16726 (i386_dr_low_get_control): New.
16727 (i386_dr_low_get_status): Adjust.
16728 * linux-low.c (linux_stop_lwp): New.
16729 * linux-low.h (linux_stop_lwp): Declare.
16731 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
16732 argument instead of a i386_debug_reg_state.
16733 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
16734 a i386_debug_reg_state.
16735 (i386_insert_aligned_watchpoint): Adjust.
16736 (i386_remove_aligned_watchpoint): Adjust.
16737 (i386_low_stopped_data_address): Read the debug registers from the
16738 inferior instead of from the mirrors.
16739 * i386-low.h (struct i386_debug_reg_state): Extend comment.
16740 (i386_dr_low_get_addr): Declare.
16741 (i386_dr_low_get_control): Declare.
16742 (i386_dr_low_get_status): Change prototype.
16744 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
16745 (i386_dr_low_get_addr): New.
16746 (i386_dr_low_get_control): New.
16747 (i386_dr_low_get_status): Adjust prototype. Return
16749 (i386_initial_stuff): Clear dr_status_mirror and
16751 (i386_get_thread_context): Adjust.
16752 (i386_set_thread_context): Adjust.
16753 (i386_thread_added): Adjust.
16755 2010-08-24 Pedro Alves <pedro@codesourcery.com>
16757 * linux-low.h (linux_thread_area): Delete declaration.
16759 2010-08-11 Thomas Schwinge <thomas@codesourcery.com>
16761 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
16762 after its termination.
16764 2010-08-09 Pedro Alves <pedro@codesourcery.com>
16766 * linux-low.c (gdb_wants_lwp_stopped): Delete.
16767 (gdb_wants_all_stopped): Delete.
16768 (linux_wait_1): Don't call them.
16769 * server.c (handle_v_cont): Tag all threads as want-stopped.
16770 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
16771 stopped as "client-wants-stopped".
16773 2010-07-31 Pedro Alves <pedro@codesourcery.com>
16775 * Makefile.in (signals_h): New.
16776 (server_h): Depend on it.
16777 (server.o): Don't depend on $(signals_def).
16778 (signals.o): Depend on $(signals_def).
16780 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
16782 * Makefile.in (signals_def): New.
16783 (server_h): Append include/gdb/signals.h and signals_def.
16784 (server.o): Append signals_def.
16786 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
16788 * server.c (handle_target_event): Use target_signal_to_host for
16789 resume_info.sig initialization.
16790 * target.h (struct thread_resume) <sig>: New comment.
16792 2010-07-20 Ozkan Sezer <sezeroz@gmail.com>
16794 * server.c (handle_query): strcpy() the returned string from paddress()
16795 instead of sprintf().
16796 * utils.c (paddress): Return phex_nz().
16798 2010-07-07 Joel Brobecker <brobecker@adacore.com>
16800 * server.c (handle_v_cont): Call mourn_inferior if process
16802 (myresume): Likewise.
16804 2010-07-01 Pedro Alves <pedro@codesourcery.com>
16806 Static tracepoints, and integration with UST.
16808 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
16809 * mem-break.c (uninsert_all_breakpoints)
16810 (reinsert_all_breakpoints): New.
16811 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
16812 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
16813 (gdb_agent_ust_loaded, helper_thread_id)
16814 (gdb_agent_helper_thread_id): New macros.
16815 (struct ipa_sym_addresses): Add addr_ust_loaded,
16816 addr_helper_thread_id, addr_cmd_buf.
16817 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
16818 (in_process_agent_loaded_ust): New.
16819 (write_e_ust_not_loaded): New.
16820 (maybe_write_ipa_ust_not_loaded): New.
16821 (struct collect_static_trace_data_action): New.
16822 (enum tracepoint_type) <static_tracepoint>: New.
16823 (struct tracepoint) <handle>: Mention static tracepoints.
16824 (struct static_tracepoint_ctx): New.
16825 (CMD_BUF_SIZE): New.
16826 (add_tracepoint_action): Handle static tracepoint actions.
16827 (unprobe_marker_at): New.
16828 (clear_installed_tracepoints): Handle static tracepoints.
16829 (cmd_qtdp): Handle static tracepoints.
16830 (probe_marker_at): New.
16831 (cmd_qtstart): Handle static tracepoints.
16832 (response_tracepoint): Handle static tracepoints.
16833 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
16834 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
16835 (get_context_regcache): Handle static tracepoints.
16836 (do_action_at_tracepoint): Handle static tracepoint actions.
16837 (traceframe_find_block_type): Handle static trace data blocks.
16838 (traceframe_read_sdata): New.
16839 (download_tracepoints): Download static tracepoint actions.
16840 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
16841 (GDB_PROBE_NAME): New.
16843 (GET_UST_SYM): New.
16846 (ust_marker_to_static_tracepoint): New.
16848 (collect_ust_data_at_tracepoint): New.
16849 (gdb_ust_probe): New.
16850 (UNIX_PATH_MAX, SOCK_DIR): New.
16851 (gdb_ust_connect_sync_socket): New.
16852 (resume_thread, stop_thread): New.
16853 (run_inferior_command): New.
16854 (init_named_socket): New.
16855 (gdb_ust_socket_init): New.
16856 (cstr_to_hexstr): New.
16858 (first_marker, next_marker): New.
16859 (response_ust_marker): New.
16860 (cmd_qtfstm, cmd_qtsstm): New.
16861 (unprobe_marker_at, probe_marker_at): New.
16862 (cmd_qtstmat, gdb_ust_thread): New.
16863 (gdb_ust_init): New.
16864 (initialize_tracepoint_ftlib): Call gdb_ust_init.
16865 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
16866 (ST_REGENTRY): New.
16867 (x86_64_st_collect_regmap): New.
16868 (X86_64_NUM_ST_COLLECT_GREGS): New.
16869 (AMD64_RIP_REGNUM): New.
16870 (supply_static_tracepoint_registers): New.
16871 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
16872 (ST_REGENTRY): New.
16873 (i386_st_collect_regmap): New.
16874 (i386_NUM_ST_COLLECT_GREGS): New.
16875 (supply_static_tracepoint_registers): New.
16876 * server.c (handle_query): Handle qXfer:statictrace:read.
16877 <qSupported>: Report support for StaticTracepoints, and
16878 qXfer:statictrace:read features.
16879 * server.h (traceframe_read_sdata)
16880 (supply_static_tracepoint_registers): Declare.
16881 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
16882 (unpack_varlen_hex): Include in IPA build.
16883 * Makefile.in (ustlibs, ustinc): New.
16884 (IPA_OBJS): Add remote-utils-ipa.o.
16885 ($(IPA_LIB)): Link -ldl and -lpthread.
16887 (IPAGENT_CFLAGS): Add UST_CFLAGS.
16888 * config.in, configure: Regenerate.
16890 2010-06-20 Ian Lance Taylor <iant@google.com>
16891 Pedro Alves <pedro@codesourcery.com>
16893 * linux-x86-low.c (always_true): Delete.
16894 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
16895 trying to fool the compiler with always_true.
16897 2010-06-20 Pedro Alves <pedro@codesourcery.com>
16899 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
16900 conditions in gdbserver.
16902 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
16904 * spu-low.c (spu_read_memory): Wrap around local store limit.
16905 (spu_write_memory): Likewise.
16907 2010-06-15 Pedro Alves <pedro@codesourcery.com>
16909 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
16910 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
16912 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
16914 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
16915 uses with LONGEST uses.
16917 2010-06-14 Stan Shebs <stan@codesourcery.com>
16918 Pedro Alves <pedro@codesourcery.com>
16922 * linux-x86-low.c: Include limits.h.
16924 (always_true): New.
16927 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
16928 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
16929 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
16930 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
16931 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
16932 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
16933 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
16934 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
16935 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
16936 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
16937 (amd64_emit_void_call_2): New.
16938 (amd64_emit_ops): New.
16939 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
16940 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
16941 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
16942 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
16943 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
16944 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
16945 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
16946 (i386_emit_call, i386_emit_reg, i386_emit_pop)
16947 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
16948 (i386_emit_stack_adjust, i386_emit_int_call_1)
16949 (i386_emit_void_call_2): New.
16950 (i386_emit_ops): New.
16951 (x86_emit_ops): New.
16952 (the_low_target): Install x86_emit_ops.
16953 * server.h (struct emit_ops): New.
16954 (get_raw_reg_func_addr): Declare.
16955 (current_insn_ptr, emit_error): Declare.
16956 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
16957 (set_trace_state_variable_value): New defines.
16958 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
16959 addr_get_trace_state_variable_value and
16960 addr_set_trace_state_variable_value.
16961 (symbol_list): New fields for get_raw_reg,
16962 get_trace_state_variable_value and set_trace_state_variable_value.
16963 (condfn): New typedef.
16964 (struct tracepoint): New field `compiled_cond'.
16965 (do_action_at_tracepoint): Clear compiled_cond.
16966 (get_trace_state_variable_value, set_trace_state_variable_value):
16968 (condition_true_at_tracepoint): If there's a compiled condition,
16970 (current_insn_ptr, emit_error): New globals.
16971 (struct bytecode_address): New.
16972 (get_raw_reg_func_addr): New.
16973 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
16974 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
16975 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
16976 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
16977 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
16978 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
16979 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
16980 (compile_tracepoint_condition, compile_bytecodes): New.
16981 * target.h (emit_ops): Forward declare.
16982 (struct target_ops): New field emit_ops.
16983 (target_emit_ops): New.
16984 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
16985 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
16986 * linux-low.c (linux_emit_ops): New.
16987 (linux_target_ops): Install it.
16988 * linux-low.h (struct linux_target_ops): New field emit_ops.
16990 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
16992 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
16993 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
16995 2010-06-01 Pedro Alves <pedro@codesourcery.com>
16996 Stan Shebs <stan@codesourcery.com>
16998 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
16999 (all): Depend on $(extra_libraries).
17000 (install-only): Install the IPA.
17001 (IPA_OBJS, IPA_LIB): New.
17002 (clean): Remove the IPA lib.
17003 (IPAGENT_CFLAGS): New.
17004 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
17005 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
17006 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
17007 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
17008 * configure.ac: Check for atomic builtins support in the compiler.
17009 (IPA_DEPFILES, extra_libraries): Define.
17010 * configure.srv (ipa_obj): Add description.
17011 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
17012 (i[34567]86-*-linux*): Set ipa_obj.
17013 (x86_64-*-linux*): Set ipa_obj.
17014 * linux-low.c (stabilizing_threads): New.
17015 (supports_fast_tracepoints): New.
17016 (linux_detach): Stabilize threads before detaching.
17017 (handle_tracepoints): Handle internal tracing breakpoints. Assert
17018 the lwp is either not stabilizing, or is moving out of a jump pad.
17019 (linux_fast_tracepoint_collecting): New.
17020 (maybe_move_out_of_jump_pad): New.
17021 (enqueue_one_deferred_signal): New.
17022 (dequeue_one_deferred_signal): New.
17023 (linux_wait_for_event_1): If moving out of a jump pad, defer
17024 pending signals to later.
17025 (linux_stabilize_threads): New.
17026 (linux_wait_1): Check if threads need moving out of jump pads, and
17028 (stuck_in_jump_pad_callback): New.
17029 (move_out_of_jump_pad_callback): New.
17030 (lwp_running): New.
17031 (linux_resume_one_lwp): Handle moving out of jump pads.
17032 (linux_set_resume_request): Dequeue deferred signals.
17033 (need_step_over_p): Also step over fast tracepoint jumps.
17034 (start_step_over): Also uninsert fast tracepoint jumps.
17035 (finish_step_over): Also reinsert fast tracepoint jumps.
17036 (linux_install_fast_tracepoint_jump): New.
17037 (linux_target_ops): Install linux_stabilize_threads and
17038 linux_install_fast_tracepoint_jump_pad.
17039 * linux-low.h (linux_target_ops) <get_thread_area,
17040 install_fast_tracepoint_jump_pad>: New fields.
17041 (struct lwp_info) <collecting_fast_tracepoint,
17042 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
17043 (linux_get_thread_area): Declare.
17044 * linux-x86-low.c (jump_insn): New.
17045 (x86_get_thread_area): New.
17046 (append_insns): New.
17047 (push_opcode): New.
17048 (amd64_install_fast_tracepoint_jump_pad): New.
17049 (i386_install_fast_tracepoint_jump_pad): New.
17050 (x86_install_fast_tracepoint_jump_pad): New.
17051 (the_low_target): Install x86_get_thread_area and
17052 x86_install_fast_tracepoint_jump_pad.
17053 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
17054 (struct fast_tracepoint_jump): New.
17055 (fast_tracepoint_jump_insn): New.
17056 (fast_tracepoint_jump_shadow): New.
17057 (find_fast_tracepoint_jump_at): New.
17058 (fast_tracepoint_jump_here): New.
17059 (delete_fast_tracepoint_jump): New.
17060 (set_fast_tracepoint_jump): New.
17061 (uninsert_fast_tracepoint_jumps_at): New.
17062 (reinsert_fast_tracepoint_jumps_at): New.
17063 (set_breakpoint_at): Use write_inferior_memory.
17064 (uninsert_raw_breakpoint): Use write_inferior_memory.
17065 (check_mem_read): Mask out fast tracepoint jumps.
17066 (check_mem_write): Mask out fast tracepoint jumps.
17067 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
17068 (set_fast_tracepoint_jump): Declare.
17069 (delete_fast_tracepoint_jump)
17070 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
17071 (reinsert_fast_tracepoint_jumps_at): Declare.
17072 * regcache.c: Don't compile many functions when building the
17073 in-process agent library.
17074 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
17075 the register buffer in the heap.
17076 (free_register_cache): If the register buffer isn't owned by the
17077 regcache, don't free it.
17078 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
17079 pre-existing register caches.
17080 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
17082 (convert_ascii_to_int): : Constify `from' parameter type.
17083 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
17084 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
17085 the needed buffer in-place.
17086 (relocate_instruction): New.
17087 * server.c (handle_query) <qSymbols>: If the target supports
17088 tracepoints, give it a chance of looking up symbols. Report
17089 support for fast tracepoints.
17090 (handle_status): Stabilize threads.
17091 (process_serial_event): Adjust.
17092 * server.h (struct fast_tracepoint_jump): Forward declare.
17093 (struct process_info) <fast_tracepoint_jumps>: New field.
17094 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
17095 (decode_X_packet, decode_M_packet): Adjust.
17096 (relocate_instruction): Declare.
17097 (in_process_agent_loaded): Declare.
17098 (tracepoint_look_up_symbols): Declare.
17099 (struct fast_tpoint_collect_status): Declare.
17100 (fast_tracepoint_collecting): Declare.
17101 (force_unlock_trace_buffer): Declare.
17102 (handle_tracepoint_bkpts): Declare.
17103 (initialize_low_tracepoint)
17104 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
17105 * target.h (struct target_ops) <stabilize_threads,
17106 install_fast_tracepoint_jump_pad>: New fields.
17107 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
17108 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
17109 [HAVE_STDINT_H]: Include stdint.h.
17110 (trace_debug_1): Rename to ...
17111 (trace_vdebug): ... this.
17112 (trace_debug): Rename to ...
17113 (trace_debug_1): ... this. Add `level' parameter.
17114 (trace_debug): New.
17115 (ATTR_USED, ATTR_NOINLINE): New.
17116 (IP_AGENT_EXPORT): New.
17117 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
17118 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
17119 (about_to_request_buffer_space, trace_buffer_is_full)
17120 (stopping_tracepoint, expr_eval_result, error_tracepoint)
17121 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
17122 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
17123 (traceframe_write_count, traceframes_created)
17124 (trace_state_variables)
17125 New renaming defines.
17126 (struct ipa_sym_addresses): New.
17127 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
17128 (symbol_list): New.
17129 (ipa_sym_addrs): New.
17130 (all_tracepoint_symbols_looked_up): New.
17131 (in_process_agent_loaded): New.
17132 (write_e_ipa_not_loaded): New.
17133 (maybe_write_ipa_not_loaded): New.
17134 (tracepoint_look_up_symbols): New.
17135 (debug_threads) [IN_PROCESS_AGENT]: New.
17136 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
17137 (UNKNOWN_SIDE_EFFECTS): New.
17138 (stop_tracing): New.
17139 (flush_trace_buffer): New.
17140 (stop_tracing_bkpt): New.
17141 (flush_trace_buffer_bkpt): New.
17142 (read_inferior_integer): New.
17143 (read_inferior_uinteger): New.
17144 (read_inferior_data_pointer): New.
17145 (write_inferior_data_pointer): New.
17146 (write_inferior_integer): New.
17147 (write_inferior_uinteger): New.
17148 (struct collect_static_trace_data_action): Delete.
17149 (enum tracepoint_type): New.
17150 (struct tracepoint) <type>: New field `type'.
17151 <actions_str, step_actions, step_actions_str>: Only include in
17153 <orig_size, obj_addr_on_target, adjusted_insn_addr>
17154 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
17155 (tracepoints): Use IP_AGENT_EXPORT.
17156 (last_tracepoint): Don't include in the IPA.
17157 (stopping_tracepoint): Use IP_AGENT_EXPORT.
17158 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
17159 (alloced_trace_state_variables): New.
17160 (trace_state_variables): Use IP_AGENT_EXPORT.
17161 (traceframe_t): Delete unused variable.
17162 (circular_trace_buffer): Don't include in the IPA.
17163 (trace_buffer_start): Delete.
17164 (struct trace_buffer_control): New.
17165 (trace_buffer_free): Delete.
17166 (struct ipa_trace_buffer_control): New.
17167 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
17168 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
17170 (trace_buffer_ctrl): New.
17171 (TRACE_BUFFER_CTRL_CURR): New.
17172 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
17173 Reimplement as macros.
17174 (trace_buffer_wrap): Delete.
17175 (traceframe_write_count, traceframe_read_count)
17176 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
17177 (struct tracepoint_hit_ctx) <type>: New field.
17178 (struct fast_tracepoint_ctx): New.
17179 (memory_barrier): New.
17181 (record_tracepoint_error): Update atomically in the IPA.
17182 (clear_inferior_trace_buffer): New.
17183 (about_to_request_buffer_space): New.
17184 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
17185 updating the same buffer.
17186 (add_tracepoint): Default the tracepoint's type to trap
17187 tracepoint, and orig_size to -1.
17188 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
17189 internal variables.
17190 (create_trace_state_variable): New parameter `gdb'. Handle it.
17191 (clear_installed_tracepoints): Clear fast tracepoint jumps.
17192 (cmd_qtdp): Handle fast tracepoints.
17193 (cmd_qtdv): Adjust.
17194 (max_jump_pad_size): New.
17195 (gdb_jump_pad_head): New.
17196 (get_jump_space_head): New.
17197 (claim_jump_space): New.
17198 (sort_tracepoints): New.
17199 (MAX_JUMP_SIZE): New.
17200 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
17202 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
17203 support. Upload fast traceframes, and delete internal IPA
17205 (stop_tracing_handler): New.
17206 (flush_trace_buffer_handler): New.
17207 (cmd_qtstop): Upload fast tracepoints.
17208 (response_tracepoint): Handle fast tracepoints.
17209 (tracepoint_finished_step): Upload fast traceframes. Set the
17210 tracepoint hit context's tracepoint type.
17211 (handle_tracepoint_bkpts): New.
17212 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
17213 type. Add comment about fast tracepoints.
17214 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
17215 non-existing action_str field.
17216 (get_context_regcache): Handle fast tracepoints.
17217 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
17219 (fast_tracepoint_from_jump_pad_address): New.
17220 (fast_tracepoint_from_ipa_tpoint_address): New.
17221 (collecting_t): New.
17222 (force_unlock_trace_buffer): New.
17223 (fast_tracepoint_collecting): New.
17225 (gdb_collect): New.
17226 (write_inferior_data_ptr): New.
17227 (target_tp_heap): New.
17228 (target_malloc): New.
17229 (download_agent_expr): New.
17231 (download_tracepoints): New.
17232 (download_trace_state_variables): New.
17233 (upload_fast_traceframes): New.
17234 (IPA_FIRST_TRACEFRAME): New.
17235 (IPA_NEXT_TRACEFRAME_1): New.
17236 (IPA_NEXT_TRACEFRAME): New.
17237 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
17238 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
17239 (gdb_jump_pad_buffer_end): New.
17240 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
17241 (initialize_tracepoint): Adjust.
17242 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
17243 buffer. Initialize the low module.
17244 * utils.c (PREFIX, TOOLNAME): New.
17245 (malloc_failure): Use PREFIX.
17246 (error): In the IPA, an error causes an exit.
17247 (fatal, warning): Use PREFIX.
17248 (internal_error): Use TOOLNAME.
17249 (NUMCELLS): Increase to 10.
17250 * configure, config.in: Regenerate.
17252 2010-06-01 Pedro Alves <pedro@codesourcery.com>
17254 * server.c (handle_query) <qSupported>: Do two passes over the
17255 qSupported string to avoid nesting strtok.
17257 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17259 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
17261 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
17262 -Wl,--dynamic-list.
17263 * configure: Regenerate.
17264 * proc-service.list: New.
17266 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17268 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
17271 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
17273 * gdbreplay.c (remote_open): Check error return from socket() call by
17274 its equality to -1 not by it being negative.
17275 * remote-utils.c (remote_open): Likewise.
17277 2010-05-23 Pedro Alves <pedro@codesourcery.com>
17279 * config.h: Regenerate.
17281 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17283 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
17284 doesn't provide PTRACE_GET_THREAD_AREA.
17286 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17288 * linux-m68k-low.c: Include <asm/ptrace.h>
17289 (ps_get_thread_area): Implement.
17291 2010-05-03 Doug Evans <dje@google.com>
17293 * event-loop.c (struct callback_event): New struct.
17294 (callback_list): New global.
17295 (append_callback_event, delete_callback_event): New functions.
17296 (process_callback): New function.
17297 (start_event_loop): Call it.
17298 * remote-utils.c (NOT_SCHEDULED): Define.
17299 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
17300 moved out of readchar.
17301 (readchar): Rewrite. Call reschedule before returning.
17302 (reset_readchar): New function.
17303 (remote_close): Call it.
17304 (process_remaining, reschedule): New functions.
17305 * server.h (callback_handler_func): New typedef.
17306 (append_callback_event, delete_callback_event): Declare.
17308 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17310 * proc-service.c (ps_pglobal_lookup): Use
17311 thread_db_look_up_one_symbol.
17312 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
17313 parameter. Use it instead of all_symbols_looked_up.
17314 * server.h (struct process_info) <all_symbols_looked_up>: Delete
17316 (all_symbols_looked_up): Don't declare.
17317 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
17318 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
17320 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
17321 Set all_symbols_looked_up here.
17322 (thread_db_look_up_one_symbol): New.
17323 (thread_db_get_tls_address): Adjust.
17324 (thread_db_load_search, try_thread_db_load_1): Always allocate the
17325 thread_db object on the heap, and tentatively set it in the
17327 (thread_db_init): Don't set all_symbols_looked_up here.
17328 * linux-low.h (thread_db_look_up_one_symbol): Declare.
17330 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17332 * linux-low.c (linux_kill, linux_detach): Adjust.
17333 (status_pending_p_callback): Remove redundant statement. Check
17334 for !TARGET_WAITIKIND_IGNORE, instead of
17335 TARGET_WAITKIND_STOPPED.
17336 (handle_tracepoints): Make sure LWP is locked. Adjust.
17337 (linux_wait_for_event_1): Adjust.
17338 (linux_cancel_breakpoints): New.
17339 (unsuspend_one_lwp): New.
17340 (unsuspend_all_lwps): New.
17341 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
17342 (send_sigstop_callback): Change return type to int, add new
17343 `except' parameter and handle it.
17344 (suspend_and_send_sigstop_callback): New.
17345 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
17346 pass them down. If SUSPEND, also increment the lwp's suspend
17348 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
17349 (need_step_over_p): Don't consider suspended LWPs.
17350 (start_step_over): Adjust.
17351 (proceed_one_lwp): Change return type to int, add new `except'
17352 parameter and handle it.
17353 (unsuspend_and_proceed_one_lwp): New.
17354 (proceed_all_lwps): Use find_inferior instead of
17356 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
17357 also decrement the suspend count of LWPs. Pass `except' down,
17358 instead of hacking its suspend count.
17359 (linux_pause_all): Add `freeze' parameter. Adjust.
17360 (linux_unpause_all): New.
17361 (linux_target_ops): Install linux_unpause_all.
17362 * server.c (handle_status): Adjust.
17363 * target.h (struct target_ops): New fields `unpause_all' and
17364 `cancel_breakpoints'. Add new parameter to `pause_all'.
17365 (pause_all): Add new `freeze' parameter.
17366 (unpause_all): New.
17367 (cancel_breakpoints): New.
17368 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
17369 cancel breakpoints.
17370 (cmd_qtstart): Pause threads.
17371 (stop_tracing): Pause threads, and cancel breakpoints.
17372 * win32-low.c (win32_target_ops): Adjust.
17374 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17376 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
17377 the inferior right away from here...
17378 (linux_wait_1): ... to here, and adjust to check the thread's
17379 last_resume_kind instead of the lwp's step or stop_expected flags.
17381 2010-05-02 Pedro Alves <pedro@codesourcery.com>
17383 * README: Use consistent `GDB' and `GDBserver' spellings.
17385 2010-05-02 Pedro Alves <pedro@codesourcery.com>
17387 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
17388 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
17389 (linux_detach_one_lwp): Assume the lwp is stopped.
17390 (any_thread_of): Delete.
17391 (linux_detach): Stop all lwps here. Don't blindly delete all
17393 (delete_lwp_callback): New.
17394 (linux_mourn): Delete all lwps of the process that is gone.
17395 (linux_wait_1): Don't delete the last lwp of the process here.
17396 * mem-break.h (mark_breakpoints_out): Declare.
17397 * mem-break.c (mark_breakpoints_out): New.
17398 (free_all_breakpoints): Use it.
17399 * server.c (handle_target_event): If the process is gone, mark
17401 * thread-db.c (struct thread_db) <create_bp>: New field.
17402 (thread_db_enable_reporting): Fix prototype. Store a thread event
17403 breakpoint reference in the thread_db struct.
17404 (thread_db_load_search): Clear the thread_db object.
17405 (try_thread_db_load_1): Ditto.
17406 (switch_to_process): New.
17407 (disable_thread_event_reporting): Use it.
17408 (remove_thread_event_breakpoints): New.
17409 (thread_db_detach, thread_db_mourn): Use it.
17411 2010-05-01 Pedro Alves <pedro@codesourcery.com>
17413 * linux-low.c (linux_enable_event_reporting): New.
17414 (linux_wait_for_event_1, handle_extended_wait): Use it.
17416 2010-04-30 Pedro Alves <pedro@codesourcery.com>
17418 * linux-low.c (linux_kill_one_lwp, linux_kill)
17419 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
17420 (send_sigstop): Take an lwp_info as parameter instead. Queue a
17421 SIGSTOP even if the LWP is stopped.
17422 (send_sigstop_callback): New.
17423 (stop_all_lwps): Use send_sigstop_callback instead.
17424 (linux_resume_one_thread): Adjust.
17425 (proceed_one_lwp): Still proceed an LWP that the client has
17426 requested to stop, if we haven't reported it as stopped yet. Make
17427 sure that LWPs the client want stopped, have a pending SIGSTOP.
17429 2010-04-26 Doug Evans <dje@google.com>
17431 * server.c (handle_general_set): Make static.
17433 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
17434 Print received char after testing for error/eof instead of before.
17435 (input_interrupt): Tweak comment.
17437 2010-04-23 Doug Evans <dje@google.com>
17439 * server.c (start_inferior): Print inferior argv if --debug.
17441 2010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
17443 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
17444 * nto-x86-low.c: Include server.h
17446 2010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
17448 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
17449 be consistent with other sources of this directory.
17450 (init_registers_amd64): Correct name of source file of this function
17453 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17455 * configure.srv (x86_64-*-mingw*): New configuration for Windows
17456 64-bit executables.
17458 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17460 * win32-i386-low.c: Add 64-bit support.
17461 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
17462 (init_registers_amd64): Declare.
17463 (mappings): Add 64-bit version of array.
17464 (init_windows_x86): New function.
17465 (the_low_target): Change init_arch field to init_windows_x86.
17467 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17469 * win32-low.c: Adapt to support also 64-bit architecture.
17470 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
17471 (get_image_name): Use SIZE_T type for local variable `done'.
17472 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
17473 (toolhelp_get_dll_name): Idem.
17474 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
17475 Use uintptr_t typecast to avoid warning.
17476 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
17477 (handle_exception): Use phex_nz to avoid warning.
17478 (win32_wait): Remove unused local variable `process'.
17480 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17482 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
17485 2010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
17487 * configure.ac: Use `ws2_32' library for srv_mingw.
17488 * configure: Regenerate.
17489 * gdbreplay.c: Include winsock2.h instead of winsock.h.
17490 * remote-utils.c: Likewise.
17492 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
17494 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
17495 if __x86_64__ is defined.
17497 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17499 * configure: Regenerate.
17501 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17503 * server.c (handle_query): Handle 'qGetTIBAddr' query.
17504 * target.h (target_ops): New get_tib_address field.
17505 * win32-low.h (win32_thread_info): Add thread_local_base field.
17506 * win32-low.c (child_add_thread): Add tlb argument.
17507 Set thread_local_base field to TLB.
17508 (get_child_debug_event): Adapt to child_add_thread change.
17509 (win32_get_tib_address): New function.
17510 (win32_target_ops): Set get_tib_address field to
17511 win32_get_tib_address.
17512 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
17514 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17516 * linux-low.c (linux_mourn): Also remove the process.
17517 * server.c (handle_target_event): Don't remove the process here.
17518 * nto-low.c (nto_mourn): New.
17519 (nto_target_ops): Install it.
17520 * spu-low.c (spu_mourn): New.
17521 (spu_target_ops): Install it.
17522 * win32-low.c (win32_mourn): New.
17523 (win32_target_ops): Install it.
17525 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17527 * server.h (buffer_xml_printf): Remove redundant `;'.
17529 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17531 * regcache.c (set_register_cache): Invalidate regcaches before
17532 changing the register cache layout.
17533 (regcache_invalidate_one): Allow a NULL regcache.
17534 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
17535 regcaches before changing the register cache layout or the target
17538 2010-04-12 H.J. Lu <hongjiu.lu@intel.com>
17540 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
17541 variable warning on Linux/x86-64.
17543 2010-04-11 Pedro Alves <pedro@codesourcery.com>
17545 GDBserver disconnected tracing support.
17547 * linux-low.c (linux_remove_process): Delete.
17548 (add_lwp): Don't set last_resume_kind here.
17549 (linux_kill): Use `mourn'.
17550 (linux_detach): Use `thread_db_detach', and `mourn'.
17551 (linux_mourn): New.
17552 (linux_attach_lwp_1): Adjust comment.
17553 (linux_attach): last_resume_kind moved the thread_info; adjust.
17554 (status_pending_p_callback): Adjust.
17555 (linux_wait_for_event_1): Adjust.
17556 (count_events_callback, select_singlestep_lwp_callback)
17557 (select_event_lwp_callback, cancel_breakpoints_callback)
17558 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
17559 (proceed_one_lwp): Adjust.
17560 (linux_async): Add debug output.
17561 (linux_thread_stopped): New.
17562 (linux_pause_all): New.
17563 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
17565 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
17566 (thread_db_free): Delete declaration.
17567 (thread_db_detach, thread_db_mourn): Declare.
17568 * thread-db.c (thread_db_init): Use thread_db_mourn.
17569 (thread_db_free): Delete, split in two.
17570 (disable_thread_event_reporting): New.
17571 (thread_db_detach): New.
17572 (thread_db_mourn): New.
17574 * server.h (struct thread_info) <last_resume_kind>: New field.
17575 <attached>: Add comment.
17576 <gdb_detached>: New field.
17577 (handler_func): Change return type to int.
17578 (handle_serial_event, handle_target_event): Ditto.
17579 (gdb_connected): Declare.
17581 (disconnected_tracing): Declare.
17582 (stop_tracing): Declare.
17584 * server.c (handle_query) <qSupported>: Report support for
17585 disconnected tracing.
17586 (queue_stop_reply_callback): Account for running threads.
17587 (gdb_wants_thread_stopped): New.
17588 (gdb_wants_all_threads_stopped): New.
17589 (gdb_reattached_process): New.
17590 (handle_status): Clear the `gdb_detached' flag of all processes.
17591 In all-stop, stop all threads.
17592 (main): Be sure to leave tfind mode. Handle disconnected tracing.
17593 (process_serial_event): If the remote connection breaks, or if an
17594 exit was forced with "monitor exit", force an event loop exit.
17595 Handle disconnected tracing on detach.
17596 (handle_serial_event): Adjust.
17597 (handle_target_event): If GDB isn't connected, forward events back
17598 to the inferior, unless the last process exited, in which case,
17599 exit gdbserver. Adjust interface.
17601 * remote-utils.c (remote_open): Don't block in accept. Instead
17602 register an event loop source on the listen socket file
17603 descriptor. Refactor bits into ...
17604 (listen_desc): ... this new global.
17605 (gdb_connected): ... this new function.
17606 (enable_async_notification): ... this new function.
17607 (handle_accept_event): ... this new function.
17608 (remote_close): Clear remote_desc.
17610 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
17612 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
17614 (mourn_inferior): Define.
17615 (target_process_qsupported): Avoid the dangling else problem.
17616 (thread_stopped): Define.
17617 (pause_all): Define.
17618 (target_waitstatus_to_string): Declare.
17619 * target.c (target_waitstatus_to_string): New.
17621 * tracepoint.c (tracing): Make extern.
17622 (disconnected_tracing): New.
17623 (stop_tracing): Make extern. Handle tracing stops due to GDB
17625 (cmd_qtdisconnected): New.
17626 (cmd_qtstatus): Report disconnected tracing status in trace reply.
17627 (handle_tracepoint_general_set): Handle QTDisconnected.
17629 * event-loop.c (event_handler_func): Change return type to int.
17630 (process_event): Bail out if the event handler wants the event
17632 (handle_file_event): Ditto.
17633 (start_event_loop): Bail out if the event handler wants the event
17636 * nto-low.c (nto_target_ops): Adjust.
17637 * spu-low.c (spu_wait): Don't remove the process here.
17638 (spu_target_ops): Adjust.
17639 * win32-low.c (win32_wait): Don't remove the process here.
17640 (win32_target_ops): Adjust.
17642 2010-04-11 Pedro Alves <pedro@codesourcery.com>
17644 * regcache.c (realloc_register_cache): Invalidate inferior's
17645 regcache before recreating it.
17647 2010-04-09 Pedro Alves <pedro@codesourcery.com>
17649 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
17651 2010-04-09 Stan Shebs <stan@codesourcery.com>
17652 Pedro Alves <pedro@codesourcery.com>
17654 * server.h (LONGEST): New.
17655 (struct thread_info) <while_stepping>: New field.
17656 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
17658 (initialize_tracepoint, handle_tracepoint_general_set)
17659 (handle_tracepoint_query, tracepoint_finished_step)
17660 (tracepoint_was_hit, release_while_stepping_state_list):
17661 (current_traceframe): Declare.
17662 * server.c (handle_general_set): Handle tracepoint packets.
17663 (read_memory): New.
17664 (write_memory): New.
17665 (handle_search_memory_1): Use read_memory.
17666 (handle_query): Report support for conditional tracepoints, trace
17667 state variables, and tracepoint sources. Handle tracepoint
17669 (main): Initialize the tracepoints module.
17670 (process_serial_event): Handle traceframe reads/writes.
17672 * linux-low.c (handle_tracepoints): New.
17673 (linux_wait_1): Call it.
17674 (linux_resume_one_lwp): Handle while-stepping.
17675 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
17676 (linux_target_ops): Install them.
17677 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
17679 * linux-x86-low.c (x86_supports_tracepoints): New.
17680 (the_low_target). Install it.
17682 * mem-break.h (delete_breakpoint): Declare.
17683 * mem-break.c (delete_breakpoint): Make external.
17685 * target.h (struct target_ops): Add `supports_tracepoints',
17686 `read_pc', and `write_pc' fields.
17687 (target_supports_tracepoints): Define.
17688 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
17691 * regcache.h (struct regcache) <registers_owned>: New field.
17692 (init_register_cache, regcache_cpy): Declare.
17693 (regcache_read_pc, regcache_write_pc): Declare.
17694 (register_cache_size): Declare.
17695 (supply_regblock): Declare.
17696 * regcache.c (init_register_cache): New.
17697 (new_register_cache): Use it.
17698 (regcache_cpy): New.
17699 (register_cache_size): New.
17700 (supply_regblock): New.
17701 (regcache_read_pc, regcache_write_pc): New.
17703 * tracepoint.c: New.
17705 * Makefile.in (OBS): Add tracepoint.o.
17706 (tracepoint.o): New rule.
17708 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
17710 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
17712 (i386-mmx.c): Likewise.
17713 (i386-mmx-linux.o): Likewise.
17714 (i386-mmx-linux.c): Likewise.
17716 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
17717 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
17718 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
17719 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
17721 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
17722 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
17723 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
17725 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
17727 * Makefile.in (clean): Updated.
17729 (i386-avx.c): Likewise.
17730 (i386-avx-linux.o): Likewise.
17731 (i386-avx-linux.c): Likewise.
17732 (amd64-avx.o): Likewise.
17733 (amd64-avx.c): Likewise.
17734 (amd64-avx-linux.o): Likewise.
17735 (amd64-avx-linux.c): Likewise.
17737 * configure.srv (srv_i386_regobj): Add i386-avx.o.
17738 (srv_i386_linux_regobj): Add i386-avx-linux.o.
17739 (srv_amd64_regobj): Add amd64-avx.o.
17740 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
17741 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
17742 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
17743 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
17744 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
17745 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
17746 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
17748 * i387-fp.c: Include "i386-xstate.h".
17750 (i387_cache_to_xsave): Likewise.
17751 (i387_xsave_to_cache): Likewise.
17752 (x86_xcr0): Likewise.
17754 * i387-fp.h (i387_cache_to_xsave): Likewise.
17755 (i387_xsave_to_cache): Likewise.
17756 (x86_xcr0): Likewise.
17758 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
17759 * linux-crisv32-low.c (target_regsets): Likewise.
17760 * linux-m68k-low.c (target_regsets): Likewise.
17761 * linux-mips-low.c (target_regsets): Likewise.
17762 * linux-ppc-low.c (target_regsets): Likewise.
17763 * linux-s390-low.c (target_regsets): Likewise.
17764 * linux-sh-low.c (target_regsets): Likewise.
17765 * linux-sparc-low.c (target_regsets): Likewise.
17766 * linux-xtensa-low.c (target_regsets): Likewise.
17768 * linux-low.c: Include <sys/uio.h>.
17769 (regsets_fetch_inferior_registers): Support nt_type.
17770 (regsets_store_inferior_registers): Likewise.
17771 (linux_process_qsupported): New.
17772 (linux_target_ops): Add linux_process_qsupported.
17774 * linux-low.h (regset_info): Add nt_type.
17775 (linux_target_ops): Add process_qsupported.
17777 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
17779 (init_registers_i386_avx_linux): New.
17780 (init_registers_amd64_avx_linux): Likewise.
17781 (xmltarget_i386_linux_no_xml): Likewise.
17782 (xmltarget_amd64_linux_no_xml): Likewise.
17783 (PTRACE_GETREGSET): Likewise.
17784 (PTRACE_SETREGSET): Likewise.
17785 (x86_fill_xstateregset): Likewise.
17786 (x86_store_xstateregset): Likewise.
17787 (use_xml): Likewise.
17788 (x86_linux_update_xmltarget): Likewise.
17789 (x86_linux_process_qsupported): Likewise.
17790 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
17791 (x86_arch_setup): Don't call init_registers_amd64_linux nor
17792 init_registers_i386_linux here. Call
17793 x86_linux_update_xmltarget.
17794 (the_low_target): Add x86_linux_process_qsupported.
17796 * server.c (handle_query): Call target_process_qsupported.
17798 * target.h (target_ops): Add process_qsupported.
17799 (target_process_qsupported): New.
17801 2010-04-03 Pedro Alves <pedro@codesourcery.com>
17803 * inferiors.c (add_thread): Set last_status kind to
17804 TARGET_WAITKIND_IGNORE.
17805 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
17806 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
17807 (linux_wait_1): Move `thread' local definition to block that uses
17808 it. Don't NULL initialize `event_child'.
17809 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
17810 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
17811 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
17813 2010-04-01 Pedro Alves <pedro@codesourcery.com>
17815 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
17816 an extended waitstatus, or by a watchpoint.
17817 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
17818 thread was stepping or has been stopped by a watchpoint.
17820 2010-04-01 Pedro Alves <pedro@codesourcery.com>
17822 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
17823 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
17824 of another, then delete the previous, and validate all
17826 (validate_inserted_breakpoint): New.
17827 (delete_disabled_breakpoints): New.
17828 (validate_breakpoints): New.
17829 (check_mem_read): Validate breakpoints before trusting their
17830 shadow. Delete disabled breakpoints.
17831 (check_mem_write): Validate breakpoints before trusting they
17832 should be inserted. Delete disabled breakpoints.
17833 * mem-break.h (validate_breakpoints):
17834 * server.c (handle_query): Validate breakpoints when we see a
17837 2010-04-01 Pedro Alves <pedro@codesourcery.com>
17839 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
17840 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
17841 if we could tell there's a GDB breakpoint at stop_pc.
17842 (need_step_over_p): Don't do a step over if we find a GDB
17843 breakpoint at the resume PC.
17845 * mem-break.c (struct raw_breakpoint): New.
17846 (enum bkpt_type): New type `gdb_breakpoint'.
17847 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
17848 fields. New field `raw'.
17849 (find_raw_breakpoint_at): New.
17850 (set_raw_breakpoint_at): Handle refcounting. Create a raw
17851 breakpoint instead.
17852 (set_breakpoint_at): Adjust.
17853 (delete_raw_breakpoint): New.
17854 (release_breakpoint): New.
17855 (delete_breakpoint): Rename to...
17856 (delete_breakpoint_1): ... this. Add proc parameter. Use
17857 release_breakpoint. Return ENOENT.
17858 (delete_breakpoint): Reimplement.
17859 (find_breakpoint_at): Delete.
17860 (find_gdb_breakpoint_at): New.
17861 (delete_breakpoint_at): Delete.
17862 (set_gdb_breakpoint_at): New.
17863 (delete_gdb_breakpoint_at): New.
17864 (gdb_breakpoint_here): New.
17865 (set_reinsert_breakpoint): Use release_breakpoint.
17866 (uninsert_breakpoint): Rename to ...
17867 (uninsert_raw_breakpoint): ... this.
17868 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
17869 (reinsert_raw_breakpoint): Change parameter type to
17871 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
17873 (check_breakpoints): Adjust. Use release_breakpoint.
17874 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
17875 (breakpoint_inserted_here): Ditto.
17876 (check_mem_read): Adjust to iterate over raw breakpoints instead.
17877 Don't trust the breakpoint's shadow if it is not inserted.
17878 (check_mem_write): Adjust to iterate over raw breakpoints instead.
17879 (delete_all_breakpoints): Adjust.
17880 (free_all_breakpoints): Mark all breakpoints as uninserted, and
17881 use delete_breakpoint_1.
17883 * mem-break.h (breakpoints_supported): Delete declaration.
17884 (set_gdb_breakpoint_at): Declare.
17885 (gdb_breakpoint_here): Declare.
17886 (delete_breakpoint_at): Delete.
17887 (delete_gdb_breakpoint_at): Declare.
17889 * server.h (struct raw_breakpoint): Forward declare.
17890 (struct process_info): New field `raw_breakpoints'.
17892 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
17895 2010-03-24 Pedro Alves <pedro@codesourcery.com>
17897 * linux-low.c (status_pending_p_callback): Fix comment.
17898 (linux_wait_for_event_1): Move most of the internal breakpoint
17899 handling from here...
17900 (linux_wait_1): ... to here.
17901 (count_events_callback): New.
17902 (select_singlestep_lwp_callback): New.
17903 (select_event_lwp_callback): New.
17904 (cancel_breakpoints_callback): New.
17905 (select_event_lwp): New.
17906 (linux_wait_1): Simplify internal breakpoint handling. Give equal
17907 priority to all LWPs that have had events that should be reported
17908 to the client. Cancel breakpoints when about to reporting the
17909 event to the client, not while stopping lwps. No longer cancel
17910 finished single-steps here.
17911 (cancel_finished_single_step): Delete.
17912 (cancel_finished_single_steps): Delete.
17914 2010-03-24 Pedro Alves <pedro@codesourcery.com>
17916 * mem-break.c (enum bkpt_type): New.
17917 (struct breakpoint): New field `type'.
17918 (set_breakpoint_at): Change return type to struct breakpoint
17919 pointer. Set type to `other_breakpoint' by default.
17920 (delete_breakpoint): Rewrite, supporting more than one breakpoint
17921 in the breakpoint list.
17922 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
17923 (reinsert_breakpoint): Rename to ...
17924 (reinsert_raw_breakpoint): ... this.
17925 (reinsert_breakpoints_at): Adjust.
17926 * mem-break.h (struct breakpoint): Declare.
17927 (set_breakpoint_at): Change return type to struct breakpoint
17930 2010-03-24 Pedro Alves <pedro@codesourcery.com>
17932 * server.c (handle_query): Assign, not compare.
17934 2010-03-24 Pedro Alves <pedro@codesourcery.com>
17936 Teach linux gdbserver to step-over-breakpoints.
17938 * linux-low.c (can_hardware_single_step): New.
17939 (supports_breakpoints): New.
17940 (handle_extended_wait): If stopping threads, read the stop pc of
17941 the new cloned LWP.
17943 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
17944 low target doesn't support retrieving the PC.
17945 (add_lwp): Set last_resume_kind to resume_continue.
17946 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
17947 (linux_attach): Don't clear stop_expected. Set the lwp's
17948 last_resume_kind to resume_stop.
17949 (linux_detach_one_lwp): Don't check for removed breakpoints.
17950 (check_removed_breakpoint): Delete.
17951 (status_pending_p): Rename to ...
17952 (status_pending_p_callback): ... this. Don't check for removed
17953 breakpoints. Don't consider threads that are stopped from GDB's
17955 (linux_wait_for_lwp): Always read the stop_pc here.
17956 (cancel_breakpoint): New.
17957 (step_over_bkpt): New global.
17958 (linux_wait_for_event_1): Implement stepping over breakpoints.
17959 (gdb_wants_lwp_stopped): New.
17960 (gdb_wants_all_stopped): New.
17961 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
17962 single-step traps here. Store the thread's last reported target
17964 (send_sigstop): Don't clear stop_expected. Always set it,
17966 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
17967 (cancel_finished_single_step): New.
17968 (cancel_finished_single_steps): New.
17969 (wait_for_sigstop): Don't cancel finished single-step traps here.
17970 (linux_resume_one_lwp): Don't check for removed breakpoints.
17971 Don't set `step' on non-hardware step archs.
17972 (linux_set_resume_request): Ignore resume_stop requests if already
17973 stopping or stopped. Set the lwp's last_resume_kind.
17974 (resume_status_pending_p): Don't check for removed breakpoints.
17975 (need_step_over_p): New.
17976 (start_step_over): New.
17977 (finish_step_over): New.
17978 (linux_resume_one_thread): Always queue a sigstop for resume_stop
17979 requests. Clear the thread's last reported target waitstatus.
17980 Don't use the `suspended' flag. Don't consider pending breakpoints.
17981 (linux_resume): Start a step-over if necessary.
17982 (proceed_one_lwp): New.
17983 (proceed_all_lwps): New.
17984 (unstop_all_lwps): New.
17985 * linux-low.h (struct lwp_info): Rewrite comment for the
17986 `suspended' flag. Add the `stop_pc' field. Delete the
17987 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
17988 Add `'last_resume_kind' and `need_step_over' fields.
17989 * inferiors.c (struct thread_info): Delete, moved elsewhere.
17990 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
17991 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
17992 (set_raw_breakpoint_at): New.
17993 (set_breakpoint_at): Rewrite to use it.
17994 (reinsert_breakpoint_handler): Delete.
17995 (set_reinsert_breakpoint): New.
17996 (reinsert_breakpoint_by_bp): Delete.
17997 (delete_reinsert_breakpoints): New.
17998 (uninsert_breakpoint): Rewrite.
17999 (uninsert_breakpoints_at): New.
18000 (reinsert_breakpoint): Rewrite.
18001 (reinsert_breakpoints_at): New.
18002 (check_breakpoints): Rewrite.
18003 (breakpoint_here): New.
18004 (breakpoint_inserted_here): New.
18005 (check_mem_read): Adjust.
18006 * mem-break.h (breakpoints_supported, breakpoint_here)
18007 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
18008 (reinsert_breakpoint_by_bp): Delete declaration.
18009 (delete_reinsert_breakpoints): Declare.
18010 (reinsert_breakpoint): Delete declaration.
18011 (reinsert_breakpoints_at): Declare.
18012 (uninsert_breakpoint): Delete declaration.
18013 (uninsert_breakpoints_at): Declare.
18014 (check_breakpoints): Adjust prototype.
18015 * server.h: Adjust include order.
18016 (struct thread_info): Declare here. Add a `last_status' field.
18018 2010-03-23 Michael Snyder <msnyder@vmware.com>
18020 * server.c (crc32): New function.
18021 (handle_query): Add handling for 'qCRC:' request.
18023 2010-03-23 Pedro Alves <pedro@codesourcery.com>
18025 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
18026 lwp had been stopped by a watchpoint.
18028 2010-03-16 Pedro Alves <pedro@codesourcery.com>
18030 * server.h (internal_error): Declare.
18031 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
18032 * utils.c (internal_error): New function.
18034 2010-03-15 Andreas Schwab <schwab@redhat.com>
18036 * configure.srv: Fix typo setting srv_regobj.
18038 2010-03-15 Pedro Alves <pedro@codesourcery.com>
18040 * linux-low.c (fetch_register): Avoid passing a non string literal
18042 (usr_store_inferior_registers): Ditto.
18044 2010-03-14 Pedro Alves <pedro@codesourcery.com>
18046 * linux-low.c (linux_write_memory): Bail out early if peeking
18049 2010-03-14 Pedro Alves <pedro@codesourcery.com>
18051 * linux-low.h (struct lwp_info): New fields
18052 `stopped_by_watchpoint' and `stopped_data_address'.
18053 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
18054 here, and cache them in the lwp object.
18055 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
18057 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
18059 (linux_stopped_by_watchpoint): Rewrite.
18060 (linux_stopped_data_address): Rewrite.
18062 2010-03-06 Simo Melenius <simo.melenius@iki.fi>
18064 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
18065 switching the current inferior, not before.
18067 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
18069 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
18070 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
18071 i386-linux.c and amd64-linux.c.
18072 (reg-i386.o): Removed.
18073 (reg-i386.c): Likewise.
18074 (reg-i386-linux.o): Likewise.
18075 (reg-i386-linux.c): Likewise.
18076 (reg-x86-64.o): Likewise.
18077 (reg-x86-64.c): Likewise.
18078 (reg-x86-64-linux.o): Likewise.
18079 (reg-x86-64-linux.c): Likewise.
18081 (i386.c): Likewise.
18082 (i386-linux.o): Likewise.
18083 (i386-linux.c): Likewise.
18084 (amd64.o): Likewise.
18085 (amd64.c): Likewise.
18086 (amd64-linux.o): Likewise.
18087 (amd64-linux.c): Likewise.
18089 * configure.srv (srv_i386_regobj): New.
18090 (srv_i386_linux_regobj): Likewise.
18091 (srv_amd64_regobj): Likewise.
18092 (srv_amd64_linux_regobj): Likewise.
18093 (srv_i386_32bit_xmlfiles): Likewise.
18094 (srv_i386_64bit_xmlfiles): Likewise.
18095 (srv_i386_xmlfiles): Likewise.
18096 (srv_amd64_xmlfiles): Likewise.
18097 (srv_i386_linux_xmlfiles): Likewise.
18098 (srv_amd64_linux_xmlfiles): Likewise.
18099 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
18100 srv_xmlfiles to $srv_i386_xmlfiles.
18101 (i[34567]86-*-mingw32ce*): Likewise.
18102 (i[34567]86-*-mingw*): Likewise.
18103 (i[34567]86-*-nto*): Likewise.
18104 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
18105 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
18106 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
18107 (x86_64-*-linux*): Likewise.
18109 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
18110 (init_registers_amd64_linux): New.
18111 (x86_arch_setup): Replace init_registers_x86_64_linux with
18112 init_registers_amd64_linux.
18114 2010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
18116 * configure.ac: Check for libdl. If it is not available link against
18117 static libthread_db.
18118 * configure: Regenerate.
18120 2010-02-22 Pedro Alves <pedro@codesourcery.com>
18124 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
18125 handing a read watchpoint.
18126 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
18128 2010-02-12 Doug Evans <dje@google.com>
18130 * linux-low.c (linux_supports_tracefork_flag): Document.
18131 (linux_look_up_symbols): Add comment.
18133 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
18135 * regcache.c (supply_register): Clear regcache if buf is NULL.
18137 2010-02-02 Nicolas Roche <roche@sourceware.org>
18138 Joel Brobecker <brobecker@adacore.com>
18140 * inferiors.c (find_inferior): Add function documentation.
18141 (unloaded_dll): Handle the case where the unloaded dll has not
18142 been previously registered in the dll list.
18144 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
18146 * linux-arm-low.c (thumb_breakpoint_len): Delete.
18147 (thumb2_breakpoint): New.
18148 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
18150 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18152 * linux-low.c (get_stop_pc): Check for SIGTRAP.
18153 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
18156 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18158 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
18160 2010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
18162 * linux-s390-low.c (s390_collect_ptrace_register)
18163 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
18165 2010-01-21 Doug Evans <dje@google.com>
18167 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
18168 (PTRACE_ARG4_TYPE): New macro.
18169 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
18170 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
18171 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
18172 (usr_store_inferior_registers): Ditto.
18173 (linux_read_memory, linux_write_memory): Ditto.
18174 (linux_test_for_tracefork): Ditto.
18176 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
18177 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
18179 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18181 * proc-service.c (ps_lgetregs): Don't refetch registers from the
18184 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18186 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
18187 prototype to take a regcache. Adjust.
18189 2010-01-20 Pedro Alves <pedro@codesourcery.com>
18191 * regcache.h (struct thread_info): Forward declare.
18192 (struct regcache): New.
18193 (new_register_cache): Adjust prototype.
18194 (get_thread_regcache): Declare.
18195 (free_register_cache): Adjust prototype.
18196 (registers_to_string, registers_from_string): Ditto.
18197 (supply_register, supply_register_by_name, collect_register)
18198 (collect_register_as_string, collect_register_by_name): Ditto.
18199 * regcache.c (struct inferior_regcache_data): Delete.
18200 (get_regcache): Rename to ...
18201 (get_thread_regcache): ... this. Adjust. Switch inferior before
18202 fetching registers.
18203 (regcache_invalidate_one): Adjust.
18204 (regcache_invalidate): Fix prototype.
18205 (new_register_cache): Return the new register cache.
18206 (free_register_cache): Change prototype.
18207 (realloc_register_cache): Adjust.
18208 (registers_to_string): Change prototype to take a regcache. Adjust.
18209 (registers_from_string): Ditto.
18210 (register_data): Ditto.
18211 (supply_register): Ditto.
18212 (supply_register_by_name): Ditto.
18213 (collect_register): Ditto.
18214 (collect_register_as_string): Ditto.
18215 (collect_register_by_name): Ditto.
18216 * server.c (process_serial_event): Adjust.
18217 * linux-low.h (regset_fill_func, regset_store_func): Change
18219 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
18221 * linux-low.c (get_stop_pc): Adjust.
18222 (check_removed_breakpoint): Adjust.
18223 (linux_wait_for_event): Adjust.
18224 (linux_resume_one_lwp): Adjust.
18225 (fetch_register): Add regcache parameter. Adjust.
18226 (usr_store_inferior_registers): Ditto.
18227 (regsets_fetch_inferior_registers): Ditto.
18228 (regsets_store_inferior_registers): Ditto.
18229 (linux_fetch_registers, linux_store_registers): Ditto.
18230 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
18232 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
18234 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
18235 prototype to take a regcache.
18236 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
18237 * remote-utils.c (convert_ascii_to_int, outreg)
18238 (prepare_resume_reply): Change prototype to take a regcache.
18240 * target.h (struct target_ops) <fetch_registers, store_registers>:
18241 Change prototype to take a regcache.
18242 (fetch_inferior_registers, store_inferior_registers): Change
18243 prototype to take a regcache. Adjust.
18244 * proc-service.c (ps_lgetregs): Adjust.
18245 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
18246 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
18247 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
18248 take a regcache. Adjust.
18249 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
18250 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
18251 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
18252 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
18253 * linux-cris-low.c (cris_get_pc, cris_set_pc)
18254 (cris_cannot_fetch_register):
18255 (cris_breakpoint_at): Change prototype to take a regcache.
18257 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
18258 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
18259 to take a regcache. Adjust.
18260 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
18262 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
18263 take a regcache. Adjust.
18264 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
18265 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
18266 (m68k_set_pc): Change prototype to take a regcache. Adjust.
18267 * linux-mips-low.c (mips_get_pc):
18268 (mips_set_pc): Change prototype to take a regcache. Adjust.
18269 (mips_reinsert_addr): Adjust.
18270 (mips_collect_register): Change prototype to take a regcache.
18272 (mips_supply_register):
18273 (mips_collect_register_32bit, mips_supply_register_32bit)
18274 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
18275 (mips_store_fpregset): Ditto.
18276 * linux-ppc-low.c (ppc_supply_ptrace_register)
18277 (ppc_supply_ptrace_register): Ditto.
18278 (parse_spufs_run): Adjust.
18279 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
18280 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
18281 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
18282 take a regcache. Adjust.
18283 * linux-s390-low.c (s390_collect_ptrace_register)
18284 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
18285 (s390_set_pc): Change prototype to take a regcache. Adjust.
18286 (s390_arch_setup): Adjust.
18287 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
18288 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
18289 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
18290 (sparc_fill_gregset, sparc_store_gregset_from_stack)
18291 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
18293 (sparc_breakpoint_at): Adjust.
18294 * linux-xtensa-low.c (xtensa_fill_gregset):
18295 (xtensa_store_gregset):
18296 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
18297 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
18298 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
18299 prototype to take a regcache. Adjust.
18300 * win32-arm-low.c (arm_fetch_inferior_register)
18301 (arm_store_inferior_register): Change prototype to take a
18303 * win32-i386-low.c (i386_fetch_inferior_register)
18304 (i386_store_inferior_register): Change prototype to take a
18306 * win32-low.c (child_fetch_inferior_registers)
18307 (child_store_inferior_registers): Change prototype to take a
18309 (win32_wait): Adjust.
18310 (win32_fetch_inferior_registers): Change prototype to take a
18312 (win32_store_inferior_registers): Adjust.
18313 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
18314 store_inferior_register>: Change prototype to take a regcache.
18316 2010-01-20 Doug Evans <dje@google.com>
18318 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
18320 (linux_wait_for_event1, linux_init_signals): Ditto.
18321 (W_STOPCODE): Provide definition if missing.
18323 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
18325 * linux-low.c (linux_core_of_thread): New.
18326 (compare_ints, show_process, list_threads): New.
18327 (linux_qxfer_osdata): Report threads and cores.
18328 (linux_target_op): Register linux_core_of_thread.
18329 * remote-utils.c (prepare_resume_reply): Report the core.
18330 (buffer_xml_printf): Support %d specifier.
18331 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
18333 (handle_query): Handle qXfer:threads. Announce availability
18335 * target.h (struct target_ops): New field core_of_thread.
18337 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
18339 * Makefile.in (clean): Remove new generated files.
18340 (reg-s390.o, reg-s390.c): Remove rules.
18341 (reg-s390x.o, reg-s390x.c): Likewise.
18342 (s390-linux32.o, s390-linux32.c): Add rules.
18343 (s390-linux64.o, s390-linux64.c): Likewise.
18344 (s390x-linux64.o, s390x-linux64.c): Likewise.
18345 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
18346 * linux-s390-low.c: Include <elf.h>.
18347 (HWCAP_S390_HIGH_GPRS): Define if undefined.
18348 (init_registers_s390): Remove prototype.
18349 (init_registers_s390x): Likewise.
18350 (init_registers_s390_linux32): Add prototype.
18351 (init_registers_s390_linux64): Likewise.
18352 (init_registers_s390x_linux64): Likewise.
18353 (s390_num_regs_3264): New define.
18354 (s390_regmap_3264): New global variable.
18355 (s390_cannot_fetch_register): Remove obsolete check.
18356 (s390_cannot_store_register): Likewise.
18357 (s390_collect_ptrace_register): Handle upper/lower register halves.
18358 (s390_supply_ptrace_register): Likewise.
18359 (s390_fill_gregset): Update to register number changes.
18360 (s390_get_hwcap): New routine.
18361 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
18362 Install appropriate regmap and register set.
18364 2010-01-01 Joel Brobecker <brobecker@adacore.com>
18366 * server.c (gdbserver_version): Update copyright year to 2010.
18367 * gdbreplay.c (gdbreplay_version): Likewise.
18369 2009-12-28 Doug Evans <dje@google.com>
18371 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
18372 elf/external.h. Include <elf.h> instead but only if necessary.
18374 2009-12-28 Pedro Alves <pedro@codesourcery.com>
18376 * linux-low.c (linux_remove_process): Remove `detaching'
18377 parameter. Don't release/detach from thread_db here.
18378 (linux_kill): Release/detach from thread_db here, ...
18379 (linux_detach): ... and here, before actually detaching.
18380 (linux_wait_1): ... and here, when a process exits.
18381 * thread-db.c (any_thread_of): New.
18382 (thread_db_free): Switch the current inferior to a thread of the
18385 2009-12-21 Doug Evans <dje@google.com>
18387 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
18389 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
18390 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
18391 warning ifndef __NR_tkill. Move setting of errno there too.
18392 Delete unnecessary resetting of errno after syscall.
18393 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
18395 * configure.ac: Check for dladdr.
18396 * config.in: Regenerate.
18397 * configure: Regenerate.
18398 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
18399 (try_thread_db_load): Update.
18401 * linux-low.c (my_waitpid): Delete unnecessary prototype.
18403 2009-12-18 Doug Evans <dje@google.com>
18405 * event-loop.c: Include unistd.h if it exists.
18407 * linux-low.c (my_waitpid): Move definition away from being in
18408 between linux_tracefork_child/linux_test_for_tracefork.
18410 * gdb_proc_service.h (psaddr_t): Fix type.
18411 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
18412 signature to match glibc.
18414 2009-12-16 Doug Evans <dje@google.com>
18416 * linux-low.c (linux_read_memory): Fix argument to read.
18418 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18420 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
18421 events, don't leave current_inferior pointing at null.
18423 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18425 * win32-low.c (LOG): Delete.
18426 (OUTMSG): Output to stderr.
18427 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
18428 on compile time LOG macro.
18429 (win32_wait): Fix debug output.
18431 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18433 * win32-low.c (win32_add_one_solib): If the dll name is
18434 "ntdll.dll", prepend the system directory to the dll path.
18436 2009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
18438 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
18440 2009-11-17 Nathan Sidwell <nathan@codesourcery.com>
18441 Vladimir Prus <vladimir@codesourcery.com>
18443 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
18444 * configure.ac: Check for __mcoldfire__ and set
18445 gdb_cv_m68k_is_coldfire.
18446 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
18447 reg-cf.o and reg-m68k.o.
18448 * configure: Regenerated.
18450 2009-11-16 Pedro Alves <pedro@codesourcery.com>
18452 * linux-low.c (linux_remove_process): Add `detaching' parameter.
18453 Pass it to thread_db_free.
18454 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
18455 proper `detaching' argument to linux_remove_process.
18456 * linux-low.h (thread_db_free): Add `detaching' parameter.
18457 * thread-db.c (thread_db_init): Pass false as `detaching' argument
18459 (thread_db_free): Add `detaching' parameter. Only
18460 call td_ta_clear_event if detaching from process.
18462 2009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
18464 * thread-db.c (thread_db_free): Fix typo.
18466 2009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
18469 * thread-db.c (thread_db_free): Call td_ta_clear_event.
18471 2009-11-03 Nathan Sidwell <nathan@codesourcery.com>
18473 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
18474 with an i686 compiler.
18475 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
18477 * configure: Rebuilt.
18479 2009-10-29 Sandra Loosemore <sandra@codesourcery.com>
18483 * server.c (handle_search_memory_1): Correct read_addr initialization
18484 in loop for searching subsequent chunks.
18486 2009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
18488 * configure.ac: New --with-libthread-db option.
18489 * thread-db.c: Allow direct dependence on libthread_db.
18490 (thread_db_free): Adjust.
18491 * config.in: Regenerate.
18492 * configure: Likewise.
18494 2009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
18497 * thread-db.c (attach_thread): New function.
18498 (maybe_attach_thread): Return success/failure.
18499 (find_new_threads_callback): Adjust.
18500 (thread_db_find_new_threads): Loop until no new threads.
18502 2009-10-13 Pedro Alves <pedro@codesourcery.com>
18504 * proc-service.c (ps_lgetregs): Formatting.
18506 2009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
18508 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
18509 * configure.ac: Adjust.
18510 * linux-low.h (struct process_info_private): Move members to struct
18512 (thread_db_free, thread_db_handle_monitor_command): New prototype.
18513 * linux-low.c (linux_remove_process): Adjust.
18514 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
18515 * server.c (handle_query): Move code ...
18516 (handle_monitor_command): ... here. New function.
18517 * target.h (struct target_ops): New member.
18518 * thread-db.c (struct thread_db): New.
18519 (libthread_db_search_path): New variable.
18520 (thread_db_create_event, thread_db_enable_reporting)
18521 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
18522 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
18523 (try_thread_db_load_1, dladdr_to_soname): New functions.
18524 (try_thread_db_load, thread_db_load_search): New functions.
18525 (thread_db_init): Search for libthread_db.
18526 (thread_db_free): New function.
18527 (thread_db_handle_monitor_command): Likewise.
18528 * config.in: Regenerate.
18529 * configure: Regenerate.
18531 2009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
18533 * spu-low.c (spu_kill): Wait for inferior to terminate.
18534 Call clear_inferiors.
18535 (spu_detach): Call clear_inferiors.
18537 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18539 * aclocal.m4: Regenerate.
18540 * config.in: Likewise.
18541 * configure: Likewise.
18543 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18545 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
18546 (parse_spufs_run): New function.
18547 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
18548 (ppc_breakpoint_at): Handle SPU breakpoints.
18550 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18552 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
18553 (SPUFS_MAGIC): Define.
18554 (spu_enumerate_spu_ids): New function.
18555 (linux_qxfer_spu): New function.
18556 (linux_target_ops): Install linux_qxfer_spu.
18558 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18560 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
18561 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
18562 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
18563 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
18564 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
18565 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
18566 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
18567 (init_registers_powerpc_cell32l): Add prototype.
18568 (init_registers_powerpc_cell64l): Likewise.
18569 (ppc_arch_setup): Detect Cell/B.E. architecture.
18571 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18573 * Makefile.in (datarootdir): New variable.
18575 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18577 * linux-low.c (linux_write_memory): Update debugging output.
18578 * Makefile.in (clean): Add new descriptions.
18579 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
18580 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
18581 * configure.srv: Add new files for arm*-*-linux*.
18582 * linux-arm-low.c: Add new declarations.
18583 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
18584 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
18585 (HWCAP_VFPv3D16): New.
18586 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
18587 instead of __IWMMXT__.
18588 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
18589 (arm_arch_setup): New.
18590 (target_regsets): Remove #ifdef. Add VFP regset.
18591 (the_low_target): Use arm_arch_setup.
18593 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18595 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
18596 the main thread again.
18598 2009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
18600 Adding Neutrino gdbserver.
18601 * configure: Regenerated.
18602 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
18603 * configure.srv (i[34567]86-*-nto*): New target.
18604 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
18605 * remote-utils.c [__QNX__]: Include sys/iomgr.h
18606 (nto_comctrl) [__QNX__]: New function.
18607 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
18609 2009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
18611 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
18614 2009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
18615 Pedro Alves <pedro@codesourcery.com>
18617 * win32-i386-low.c (i386_get_thread_context): Handle systems that
18618 don't support CONTEXT_EXTENDED_REGISTERS.
18619 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
18620 (the_low_target): Install them.
18621 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
18622 failing with ERROR_PIPE_NOT_CONNECTED.
18624 2009-06-30 Doug Evans <dje@google.com>
18625 Pierre Muller <muller@ics.u-strasbg.fr>
18627 Add h/w watchpoint support to x86-linux, win32-i386.
18628 * Makefile.in (SFILES): Add i386-low.c
18629 (i386_low_h): Define.
18630 (i386-low.o): Add dependencies.
18631 (linux-x86-low.o): Add i386-low.h dependency.
18632 (win32-i386-low.o): Ditto.
18633 * i386-low.c: New file.
18634 * i386-low.h: New file.
18635 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
18636 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
18637 * linux-low.c (linux_add_process): Initialize arch_private.
18638 (linux_remove_process): Free arch_private.
18639 (add_lwp): Initialize arch_private.
18640 (delete_lwp): Free arch_private.
18641 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
18643 * linux-low.h (process_info_private): New member arch_private.
18644 (lwp_info): New member arch_private.
18645 (linux_target_ops): New members new_process, new_thread,
18647 (ptid_of): New macro.
18648 * linux-x86-low.c: Include stddef.h, i386-low.h.
18649 (arch_process_info): New struct.
18650 (arch_lwp_info): New struct.
18651 (x86_linux_dr_get, x86_linux_dr_set): New functions.
18652 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18653 (i386_dr_low_get_status): New function.
18654 (x86_insert_point, x86_remove_point): New functions.
18655 (x86_stopped_by_watchpoint): New function.
18656 (x86_stopped_data_address): New function.
18657 (x86_linux_new_process, x86_linux_new_thread): New functions.
18658 (x86_linux_prepare_to_resume): New function.
18659 (the_low_target): Add entries for insert_point, remove_point,
18660 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
18662 * server.c (debug_hw_points): New global.
18663 (monitor_show_help): Document set debug-hw-points.
18664 (handle_query): Process "set debug-hw-points".
18665 * server.h (debug_hw_points): Declare.
18666 (paddress): Declare.
18667 * utils.c (NUMCELLS, CELLSIZE): New macros.
18668 (get_sell, xsnprintf, paddress): New functions.
18669 * win32-arm-low.c (the_low_target): Add entries for insert_point,
18670 remove_point, stopped_by_watchpoint, stopped_data_address.
18671 * win32-i386-low.c: Include i386-low.h.
18672 (debug_reg_state): Replaces dr.
18673 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18674 (i386_dr_low_get_status): New function.
18675 (i386_insert_point, i386_remove_point): New functions.
18676 (i386_stopped_by_watchpoint): New function.
18677 (i386_stopped_data_address): New function.
18678 (i386_initial_stuff): Update.
18679 (get_thread_context,set_thread_context,i386_thread_added): Update.
18680 (the_low_target): Add entries for insert_point,
18681 remove_point, stopped_by_watchpoint, stopped_data_address.
18682 * win32-low.c (win32_insert_watchpoint): New function.
18683 (win32_remove_watchpoint): New function.
18684 (win32_stopped_by_watchpoint): New function.
18685 (win32_stopped_data_address): New function.
18686 (win32_target_ops): Add entries for insert_watchpoint,
18687 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
18688 * win32-low.h (win32_target_ops): New members insert_point,
18689 remove_point, stopped_by_watchpoint, stopped_data_address.
18691 2009-06-25 Pedro Alves <pedro@codesourcery.com>
18693 * server.c (process_serial_event): Re-return unsupported, not
18694 error, if the type isn't recognized. Re-allow supporting only
18695 insert or remove packets. Also call require_running for
18696 breakpoints. Add missing break statement to default case. Tidy.
18697 * target.h (struct target_ops): Rename insert_watchpoint to
18698 insert_point, and remove_watchpoint to remove_point.
18700 * linux-low.h (struct linux_target_ops): Likewise.
18701 * linux-low.c (linux_insert_watchpoint): Rename to ...
18702 (linux_insert_point): ... this. Adjust.
18703 (linux_remove_watchpoint): Rename to ...
18704 (linux_remove_point): ... this. Adjust.
18705 (linux_target_ops): Adjust.
18706 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
18707 (cris_insert_point): ... this.
18708 (cris_remove_watchpoint): Rename to ...
18709 (cris_remove_point): ... this.
18710 (the_low_target): Adjust.
18712 2009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
18714 * server.c (handle_v_kill): Pass signal_pid to
18715 kill_inferior if multi_process is zero.
18717 2009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
18719 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
18720 * target.h (target_ops): Comment for *_watchpoint to make it clear
18721 the functions can get types '0' and '1'.
18723 2009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
18725 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
18726 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
18727 * regcache.c (get_regcache): Likewise.
18728 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
18729 * win32-low.c (child_fetch_inferior_registers): Remove check for
18732 2009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
18733 Pedro Alves <pedro@codesourcery.com>
18735 * target.h (struct target_ops) <supports_multi_process>: New
18737 (target_supports_multi_process): New.
18738 * server.c (handle_query): Even if GDB reports support, only
18739 enable multi-process if the target also supports it. Report
18740 multi-process support only if the target backend supports it.
18741 * linux-low.c (linux_supports_multi_process): New function.
18742 (linux_target_ops): Install it as target_supports_multi_process
18745 2009-05-24 Doug Evans <dje@google.com>
18747 Global renaming of find_thread_pid to find_thread_ptid.
18748 * server.h (find_thread_ptid): Renamed from find_thread_pid.
18749 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
18750 All callers updated.
18752 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
18753 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
18756 * linux-low.c (get_stop_pc): Print pc if debug_threads.
18757 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
18758 (linux_resume_one_lwp): Ditto.
18760 2009-05-23 Doug Evans <dje@google.com>
18762 * linux-low.c (linux_resume_one_lwp): Change type of first arg
18763 from struct inferior_list_entry * to struct lwp_info *.
18764 All callers updated.
18766 2009-05-13 Doug Evans <dje@google.com>
18768 * linux-x86-low.c: Don't include assert.h.
18769 (x86_siginfo_fixup): Use fatal, not assert.
18770 (x86_arch_setup): Fix comment.
18772 2009-05-12 Doug Evans <dje@google.com>
18774 Biarch support for i386/amd64 gdbserver.
18775 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
18776 Add linux-x86-low.c.
18777 (linux-i386-low.o, linux-x86-64-low.o): Delete.
18778 (linux-x86-low.o): Add.
18779 * linux-x86-64-low.c: Delete.
18780 * linux-i386-low.c: Delete.
18781 * linux-x86-low.c: New file.
18782 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
18784 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
18786 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
18787 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
18788 (linux_child_pid_to_exec_file): New function.
18789 (elf_64_header_p, elf_64_file_p): New functions.
18790 (siginfo_fixup): New function.
18791 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
18792 give target a chance to convert layout.
18793 * linux-low.h (linux_target_ops): New member siginfo_fixup.
18794 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
18796 2009-05-07 Doug Evans <dje@google.com>
18798 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
18799 (regsets_store_inferior_registers): Ditto.
18801 2009-05-06 Pedro Alves <pedro@codesourcery.com>
18805 * linux-low.c (must_set_ptrace_flags): Delete.
18806 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
18808 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
18809 `lwp->must_set_ptrace_flags' instead.
18810 (linux_wait_for_event_1): Set ptrace options here.
18811 (linux_wait_1): ... not here.
18813 2009-04-30 Doug Evans <dje@google.com>
18815 * inferiors.c (started_inferior_callback): New function.
18816 (attached_inferior_callback): New function.
18817 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
18818 * server.c (print_started_pid, print_attached_pid): New functions.
18819 (detach_or_kill_for_exit): New function.
18820 (main): Call it instead of for_each_inferior (kill_inferior_callback).
18821 * server.h (have_started_inferiors_p): Declare.
18822 (have_attached_inferiors_p): Declare.
18824 * inferiors.c (remove_process): Fix memory leak, free process.
18825 * linux-low.c (linux_remove_process): New function.
18826 (linux_kill): Call it instead of remove_process.
18827 (linux_detach, linux_wait_1): Ditto.
18829 2009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
18831 * configure.srv: Add x86 Windows CE target.
18833 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
18835 * inferiors.c (get_thread_process): Make global.
18836 * server.h (get_thread_process): Add prototype.
18837 * thread-db.c (find_one_thread): Use get_thread_process
18838 instead of current_process.
18839 (thread_db_get_tls_address): Do not crash if called when
18840 thread layer is not yet initialized.
18842 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
18844 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
18845 * spu-low.c (current_tid): Rename to ...
18846 (current_ptid): ... this.
18847 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
18848 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
18849 ptid_get_lwp (current_ptid) instead of current_tid.
18850 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
18851 instead of current_tid. Use find_process_pid to verify pid
18852 argument is valid. Pass proper argument to remove_process.
18853 (spu_thread_alive): Compare current_ptid instead of current_tid.
18854 (spu_resume): Likewise.
18856 2009-04-02 Pedro Alves <pedro@codesourcery.com>
18858 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
18861 2009-04-01 Pedro Alves <pedro@codesourcery.com>
18863 Implement the multiprocess extensions, and add linux multiprocess
18866 * server.h (ULONGEST): Declare.
18867 (struct ptid, ptid_t): New.
18868 (minus_one_ptid, null_ptid): Declare.
18869 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
18870 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
18871 (struct inferior_list_entry): Change `id' type from unsigned from
18873 (struct sym_cache, struct breakpoint, struct
18874 process_info_private): Forward declare.
18875 (struct process_info): Declare.
18876 (current_process): Declare.
18877 (all_processes): Declare.
18878 (initialize_inferiors): Declare.
18879 (add_thread): Adjust to use ptid_t.
18880 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
18881 (add_process, remove_process, find_thread_pid): Declare.
18882 (find_inferior_id): Adjust to use ptid_t.
18883 (cont_thread, general_thread, step_thread): Change type to ptid_t.
18884 (multi_process): Declare.
18885 (push_event): Adjust to use ptid_t.
18886 (read_ptid, write_ptid): Declare.
18887 (prepare_resume_reply): Adjust to use ptid_t.
18888 (clear_symbol_cache): Declare.
18889 * inferiors.c (all_processes): New.
18890 (null_ptid, minus_one_ptid): New.
18891 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
18892 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
18893 (add_thread): Change unsigned long to ptid. Remove gdb_id
18895 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
18896 (gdb_id_to_thread): Rename to ...
18897 (find_thread_pid): ... this. Change unsigned long to ptid.
18898 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
18899 (loaded_dll, pull_pid_from_list): Adjust.
18900 (add_process, remove_process, find_process_pid)
18901 (get_thread_process, current_process, initialize_inferiors): New.
18902 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
18903 (struct target_waitstatus) <related_pid>: Ditto.
18904 (struct target_ops) <kill, detach>: Add `pid' argument. Change
18905 return type to int.
18906 (struct target_ops) <join>: Add `pid' argument.
18907 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
18908 (struct target_ops) <wait>: Add `ptid' field. Change return type
18910 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
18911 (mywait): Add `ptid' argument. Change return type to ptid_t.
18912 (target_pid_to_str): Declare.
18913 * target.c (set_desired_inferior): Adjust to use ptids.
18914 (mywait): Add new `ptid' argument. Adjust.
18915 (target_pid_to_str): New.
18916 * mem-break.h (free_all_breakpoints): Declare.
18917 * mem-break.c (breakpoints): Delelete.
18918 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
18919 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
18920 to use per-process breakpoint list.
18921 (free_all_breakpoints): New.
18922 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
18923 (symbol_cache, all_symbols_looked_up): Delete.
18925 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
18927 (prepare_resume_reply): Change ptid argument's type from unsigned
18928 long to ptid_t. Adjust. Implement W;process and X;process.
18929 (free_sym_cache, clear_symbol_cache): New.
18930 (look_up_one_symbol): Adjust to per-process symbol cache. *
18931 * server.c (cont_thread, general_thread, step_thread): Change type
18933 (attached): Delete.
18934 (multi_process): New.
18935 (last_ptid): Change type to ptid_t.
18936 (struct vstop_notif) <ptid>: Change type to ptid_t.
18937 (queue_stop_reply, push_event): Change `ptid' argument's type to
18939 (discard_queued_stop_replies): Add `pid' argument.
18940 (start_inferior): Adjust to use ptids. Adjust to mywait interface
18941 changes. Don't reference the `attached' global.
18942 (attach_inferior): Adjust to mywait interface changes.
18943 (handle_query): Adjust to use ptids. Parse GDB's qSupported
18944 features. Handle and report "multiprocess+". Handle
18946 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
18948 (handle_v_kill): New.
18949 (handle_v_stopped): Adjust to use target_pid_to_str.
18950 (handle_v_requests): Allow multiple attaches and runs when
18951 multiprocess extensions are in effect. Handle "vKill".
18952 (myresume): Adjust to use ptids.
18953 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
18954 (handle_status): Adjust to discard_queued_stop_replies interface
18956 (first_thread_of, kill_inferior_callback)
18957 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
18958 (main): Call initialize_inferiors. Adjust to use ptids, killing
18959 and detaching from all inferiors. Handle multiprocess packet
18961 * linux-low.h: Include gdb_proc_service.h.
18962 (struct process_info_private): New.
18963 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
18964 <lwpid_of>: Use ptid_get_lwp.
18965 (get_lwp_thread): Adjust.
18966 (struct lwp_info): Add `dead' member.
18967 (find_lwp_pid): Declare.
18968 * linux-low.c (thread_db_active): Delete.
18969 (new_inferior): Adjust comment.
18970 (inferior_pid): Delete.
18971 (linux_add_process): New.
18972 (handle_extended_wait): Adjust.
18973 (add_lwp): Change unsigned long to ptid.
18974 (linux_create_inferior): Add process to processes table. Adjust
18975 to use ptids. Don't set new_inferior here.
18976 (linux_attach_lwp): Rename to ...
18977 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
18978 it. Adjust to use ptids.
18979 (linux_attach_lwp): New.
18980 (linux_attach): Add process to processes table. Don't set
18982 (struct counter): New.
18983 (second_thread_of_pid_p, last_thread_of_process_p): New.
18984 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
18985 multiple processes.
18986 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
18987 processes. Remove process from process table.
18988 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
18989 to multiple processes.
18990 (any_thread_of): New.
18991 (linux_detach): Add `pid' argument, and handle it. Remove process
18992 from processes table.
18993 (linux_join): Add `pid' argument. Handle it.
18994 (linux_thread_alive): Change unsighed long argument to ptid_t.
18995 Consider dead lwps as not being alive.
18996 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
18997 threads we're not interested in.
18998 (same_lwp, find_lwp_pid): New.
18999 (linux_wait_for_lwp): Change `pid' argument's type from int to
19001 (linux_wait_for_event): Rename to ...
19002 (linux_wait_for_event_1): ... this. Change `pid' argument's type
19003 from int to ptid_t. Adjust.
19004 (linux_wait_for_event): New.
19005 (linux_wait_1): Add `ptid' argument. Change return type to
19006 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
19007 that exit from the process table.
19008 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
19010 (mark_lwp_dead): New.
19011 (wait_for_sigstop): Adjust to use ptids. If a process exits while
19012 stopping all threads, mark its main lwp as dead.
19013 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
19015 (fetch_register, usr_store_inferior_registers)
19016 (regsets_fetch_inferior_registers)
19017 (regsets_store_inferior_registers, linux_read_memory)
19018 (linux_write_memory): Inline `inferior_pid'.
19019 (linux_look_up_symbols): Adjust to use per-process
19020 `thread_db_active'.
19021 (linux_request_interrupt): Adjust to use ptids.
19022 (linux_read_auxv): Inline `inferior_pid'.
19023 (initialize_low): Don't reference thread_db_active.
19024 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
19025 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
19026 (ps_getpid): Return the pid of the current inferior.
19027 * thread-db.c (proc_handle, thread_agent): Delete.
19028 (thread_db_create_event, thread_db_enable_reporting): Adjust to
19030 (find_one_thread): Change argument type to ptid_t. Adjust to
19032 (maybe_attach_thread): Adjust to per-process data and ptids.
19033 (thread_db_find_new_threads): Ditto.
19034 (thread_db_init): Ditto.
19035 * spu-low.c (spu_create_inferior, spu_attach): Add process to
19036 processes table. Adjust to use ptids.
19037 (spu_kill, spu_detach): Adjust interface. Remove process from
19039 (spu_join, spu_thread_alive): Adjust interface.
19040 (spu_wait): Adjust interface. Remove process from processes
19041 table. Adjust to use ptids.
19042 * win32-low.c (current_inferior_tid): Delete.
19043 (current_inferior_ptid): New.
19044 (debug_event_ptid): New.
19045 (thread_rec): Take a ptid. Adjust.
19046 (child_add_thread): Add `pid' argument. Adjust to use ptids.
19047 (child_delete_thread): Ditto.
19048 (do_initial_child_stuff): Add `attached' argument. Add process to
19050 (child_fetch_inferior_registers, child_store_inferior_registers):
19052 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
19053 (win32_attach): Pass 1 to do_initial_child_stuff.
19054 (win32_kill): Adjust interface. Remove process from processes
19056 (win32_detach): Ditto.
19057 (win32_join): Adjust interface.
19058 (win32_thread_alive): Take a ptid.
19059 (win32_resume): Adjust to use ptids.
19060 (get_child_debug_event): Ditto.
19061 (win32_wait): Adjust interface. Remove exiting process from
19064 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19066 Non-stop mode support.
19068 * server.h (non_stop): Declare.
19069 (gdb_client_data, handler_func): Declare.
19070 (delete_file_handler, add_file_handler, start_event_loop):
19072 (handle_serial_event, handle_target_event, push_event)
19073 (putpkt_notif): Declare.
19074 * target.h (enum resume_kind): New.
19075 (struct thread_resume): Replace `step' field by `kind' field.
19076 (TARGET_WNOHANG): Define.
19077 (struct target_ops) <wait>: Add `options' argument.
19078 <supports_non_stop, async, start_non_stop>: New fields.
19079 (target_supports_non_stop, target_async): New.
19080 (start_non_stop): Declare.
19081 (mywait): Add `options' argument.
19082 * target.c (mywait): Add `options' argument. Print child exit
19083 notifications here.
19084 (start_non_stop): New.
19085 * server.c (non_stop, own_buf, mem_buf): New globals.
19086 (struct vstop_notif): New.
19087 (notif_queue): New global.
19088 (queue_stop_reply, push_event, discard_queued_stop_replies)
19089 (send_next_stop_reply): New.
19090 (start_inferior): Adjust to use resume_kind. Adjust to mywait
19092 (attach_inferior): In non-stop mode, don't wait for the target
19094 (handle_general_set): Handle QNonStop.
19095 (handle_query): When handling qC, return the current general
19096 thread, instead of the first thread of the list.
19097 (handle_query): If the backend supports non-stop mode, include
19098 QNonStop+ in the qSupported query response.
19099 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
19101 (handle_v_attach, handle_v_run): Handle non-stop mode.
19102 (handle_v_stopped): New.
19103 (handle_v_requests): Report support for vCont;t. Handle vStopped.
19104 (myresume): Adjust to use resume_kind. Handle non-stop.
19105 (queue_stop_reply_callback): New.
19106 (handle_status): Handle non-stop mode.
19107 (main): Clear non_stop flag on reconnection. Use the event-loop.
19108 Refactor serial protocol handling from here ...
19109 (process_serial_event): ... to this new function. When GDB
19110 selects any thread, select one here. In non-stop mode, wait until
19111 GDB acks all pending events before exiting.
19112 (handle_serial_event, handle_target_event): New.
19113 * remote-utils.c (remote_open): Install remote_desc in the event
19115 (remote_close): Remove remote_desc from the event loop.
19116 (putpkt_binary): Rename to...
19117 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
19118 (putpkt_binary): New as wrapper around putpkt_binary_1.
19119 (putpkt_notif): New.
19120 (prepare_resume_reply): In non-stop mode, don't change the
19122 * event-loop.c: New.
19123 * Makefile.in (OBJ): Add event-loop.o.
19124 (event-loop.o): New rule.
19126 * linux-low.h (pid_of): Moved here.
19128 (get_lwp_thread): Use lwpid_of.
19129 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
19130 * linux-low.c (pid_of): Delete.
19131 (inferior_pid): Use lwpid_of.
19132 (linux_event_pipe): New.
19133 (target_is_async_p): New.
19135 (handle_extended_wait): Use lwpid_of.
19136 (add_lwp): Don't set lwpid field.
19137 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
19138 (linux_kill_one_lwp): If killing a running lwp, stop it first.
19139 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
19140 (linux_detach_one_lwp): If detaching from a running lwp, stop it
19141 first. Adjust to linux_wait_for_event interface changes. Use
19143 (linux_detach): Don't delete the main lwp here.
19144 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
19145 (status_pending_p): Don't consider explicitly suspended lwps.
19146 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
19147 pointer. Add OPTIONS argument. Change return type to int. Use
19148 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
19149 (linux_wait_for_event): Take an integer pid instead of a lwp_info
19150 pointer. Add status pointer argument. Return a pid instead of a
19151 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
19152 changes. In non-stop mode, don't switch to a random thread.
19153 (linux_wait): Rename to...
19154 (linux_wait_1): ... this. Add target_options argument, and handle
19155 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
19156 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
19157 clean exit and signal exit code. Don't stop all threads in
19158 non-stop mode. In all-stop mode, only stop all threads when
19159 reporting a stop to GDB. Handle explicit thread stop requests.
19160 (async_file_flush, async_file_mark): New.
19162 (send_sigstop): Use lwpid_of.
19163 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
19164 interface changes. In non-stop mode, don't switch to a random
19166 (linux_resume_one_lwp): Use lwpid_of.
19167 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
19168 (linux_resume_one_thread): ... this. Handle resume_stop. In
19169 non-stop mode, don't look for pending flag in all threads.
19170 (resume_status_pending_p): Don't consider explicitly suspended
19172 (my_waitpid): Reimplement. Emulate __WALL.
19173 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19175 (sigchld_handler, linux_supports_non_stop, linux_async)
19176 (linux_start_non_stop): New.
19177 (linux_target_ops): Register linux_supports_non_stop, linux_async
19178 and linux_start_non_stop.
19179 (initialize_low): Install SIGCHLD handler.
19180 * thread-db.c (thread_db_create_event, find_one_thread)
19181 (thread_db_get_tls_address): Use lwpid_of.
19182 * win32-low.c (win32_detach): Adjust to use resume_kind.
19183 (win32_wait): Add `options' argument.
19184 * spu-low.c (spu_resume): Adjust to use resume_kind.
19185 (spu_wait): Add `options' argument.
19187 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19189 Decouple target code from remote protocol.
19191 * target.h (enum target_waitkind): New.
19192 (struct target_waitstatus): New.
19193 (struct target_ops) <wait>: Return an unsigned long. Take a
19194 target_waitstatus pointer instead of a char pointer.
19195 (mywait): Likewise.
19196 * target.c (mywait): Change prototype to return an unsigned long.
19197 Take a target_waitstatus pointer instead of a char pointer. Adjust.
19198 * server.h (thread_from_wait, old_thread_from_wait): Delete
19200 (prepare_resume_reply): Change prototype to take a
19202 * server.c (thread_from_wait, old_thread_from_wait): Delete.
19203 (last_status, last_ptid): New.
19204 (start_inferior): Remove "statusptr" argument. Adjust. Return a
19205 pid instead of a signal.
19206 (attach_inferior): Remove "status" and "signal" parameters.
19208 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
19210 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
19211 (handle_v_requests, myresume): Remove "status" and "signal"
19212 parameters. Adjust.
19213 (handle_status): New.
19214 (main): Delete local `status'. Adjust.
19215 * remote-utils.c: Include target.h.
19216 (prepare_resume_reply): Change prototype to take a
19217 target_waitstatus. Adjust.
19219 * linux-low.c (linux_wait): Adjust to new target_ops->wait
19221 * spu-low.c (spu_wait): Adjust.
19222 * win32-low.c (enum target_waitkind, struct target_waitstatus):
19224 (win32_wait): Adjust.
19226 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19228 * target.h (struct thread_resume): Delete leave_stopped member.
19229 (struct target_ops): Add a `n' argument to the `resume' callback.
19230 * server.c (start_inferior): Adjust.
19231 (handle_v_cont, myresume): Adjust.
19232 * linux-low.c (check_removed_breakpoint): Adjust to resume
19233 interface change, and to removed leave_stopped field.
19234 (resume_ptr): Delete.
19235 (struct thread_resume_array): New.
19236 (linux_set_resume_request): Add new `arg' parameter. Adjust to
19237 resume interface change.
19238 (linux_continue_one_thread, linux_queue_one_thread)
19239 (resume_status_pending_p): Check if the resume field is NULL
19240 instead of checking the leave_stopped member.
19241 (linux_resume): Adjust to the target resume interface change.
19242 * spu-low.c (spu_resume): Adjust to the target resume interface
19244 * win32-low.c (win32_detach, win32_resume): Ditto.
19246 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19248 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
19250 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
19252 (linux_continue_one_thread): Only preserve the stepping flag if
19253 there's a pending breakpoint.
19255 2009-03-31 Pedro Alves <pedro@codesourcery.com>
19257 * server.c (main): After the inferior having exited, call
19258 remote_close before exiting gdbserver.
19260 2009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
19262 Fix size of FPSCR in Power 7 processors.
19263 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
19264 (PPC_FEATURE_HAS_DFP): New #define.
19265 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
19268 2009-03-23 Pedro Alves <pedro@codesourcery.com>
19270 * server.c (handle_query) Whitespace and formatting.
19272 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19274 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
19275 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
19276 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
19277 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
19278 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
19279 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
19280 Makefile.in, configure.ac: Fix whitespace throughout.
19281 * configure: Regenerate.
19283 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19285 * inferiors.c (find_inferior): Make it safe for the callback
19286 function to delete the currently iterated inferior.
19288 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19290 * Makefile.in (linuw_low_h): Move higher.
19291 (thread-db.o): Depend on $(linux_low_h).
19293 2009-03-17 Pedro Alves <pedro@codesourcery.com>
19295 Rename "process" to "lwp" throughout.
19297 * linux-low.c (all_processes): Rename to...
19298 (all_lwps): ... this.
19299 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
19300 (add_process): Rename to ...
19301 (add_lwp): ... this. Adjust.
19302 (linux_create_inferior): Adjust.
19303 (linux_attach_lwp): Adjust.
19304 (linux_attach): Adjust.
19305 (linux_kill_one_process): Rename to ...
19306 (linux_kill_one_lwp): ... this. Adjust.
19307 (linux_kill): Adjust.
19308 (linux_detach_one_process): Rename to ...
19309 (linux_detach_one_lwp): ... this. Adjust.
19310 (linux_detach): Adjust.
19311 (check_removed_breakpoint): Adjust.
19312 (status_pending_p): Adjust.
19313 (linux_wait_for_process): Rename to ...
19314 (linux_wait_for_lwp): ... this. Adjust.
19315 (linux_wait_for_event): Adjust.
19316 (send_sigstop): Adjust.
19317 (wait_for_sigstop): Adjust.
19318 (stop_all_processes): Rename to ...
19319 (stop_all_lwps): ... this.
19320 (linux_resume_one_process): Rename to ...
19321 (linux_resume_one_lwp): ... this. Adjust.
19322 (linux_set_resume_request, linux_continue_one_thread)
19323 (linux_queue_one_thread, resume_status_pending_p)
19324 (usr_store_inferior_registers, regsets_store_inferior_registers)
19325 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19327 * linux-low.h (get_process): Rename to ...
19328 (get_lwp): ... this. Adjust.
19329 (get_thread_process): Rename to ...
19330 (get_thread_lwp): ... this. Adjust.
19331 (get_process_thread): Rename to ...
19332 (get_lwp_thread): ... this. Adjust.
19333 (struct process_info): Rename to ...
19334 (struct lwp_info): ... this.
19335 (all_processes): Rename to ...
19336 (all_lwps): ... this.
19337 * proc-service.c (ps_lgetregs): Adjust.
19338 * thread-db.c (thread_db_create_event, find_one_thread)
19339 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
19341 2009-03-14 Pedro Alves <pedro@codesourcery.com>
19343 * server.c (handle_query): Handle "qAttached".
19345 2009-03-13 Nathan Sidwell <nathan@codesourcery.com>
19347 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
19348 GPLv3, update license URL.
19350 2009-03-01 Doug Evans <dje@google.com>
19352 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
19353 (server_h): Add gdb_signals.h.
19354 (signals.o): Update.
19355 * server.h (target_signal_from_host,target_signal_to_host_p)
19356 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
19358 2009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
19360 * remote-utils.c (getpkt): Also generate remote-debug
19361 information if noack_mode is set.
19363 2009-02-06 Pedro Alves <pedro@codesourcery.com>
19365 * server.c (handle_query): Report qXfer:siginfo:read and
19366 qXfer:siginfo:write as supported and handle them.
19367 * target.h (struct target_ops) <qxfer_siginfo>: New field.
19368 * linux-low.c (linux_xfer_siginfo): New.
19369 (linux_target_ops): Set it.
19371 2009-01-26 Pedro Alves <pedro@codesourcery.com>
19373 * server.c (gdbserver_usage): Mention --remote-debug.
19374 (main): Accept '--remote-debug' switch.
19376 2009-01-18 Doug Evans <dje@google.com>
19378 * regcache.c (new_register_cache): No need to check result of xcalloc.
19379 * server.c (handle_search_memory): Back out calls to xmalloc,
19380 result is checked and error is returned to user upon failure.
19381 (handle_query): Ditto. Add more checks for result of malloc.
19382 (handle_v_cont): Check result of malloc, report error back to
19384 (handle_v_run): Ditto. Call freeargv.
19385 * server.h (freeargv): Declare.
19386 * utils.c (freeargv): New fn.
19388 2009-01-15 Doug Evans <dje@google.com>
19390 * gdbreplay.c (perror_with_name): Make arg const char *.
19391 * server.h (target_signal_to_name): Make return type const char *.
19392 * thread-db.c (thread_db_err_str): Make return type const char *.
19393 * utils.c (perror_with_name): Make arg const char *.
19395 2009-01-14 Pedro Alves <pedro@codesourcery.com>
19397 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
19398 when handling a EXIT_PROCESS_DEBUG_EVENT.
19400 2009-01-06 Joel Brobecker <brobecker@adacore.com>
19402 * gdbreplay.c (gdbreplay_version): Update copyright year.
19403 * server.c (gdbserver_version): Likewise.
19405 2009-01-05 Doug Evans <dje@google.com>
19407 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
19408 (handle_extended_wait): Improve comment.
19410 2008-12-13 Doug Evans <dje@google.com>
19412 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
19413 * server.h (ATTR_MALLOC): New macro.
19414 (xmalloc,xcalloc,xstrdup): Declare.
19415 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
19416 * inferiors.c: Ditto.
19417 * linux-low.c: Ditto.
19418 * mem-break.c: Ditto.
19419 * regcache.c: Ditto.
19420 * remote-utils.c: Ditto.
19423 * win32-low.c: Ditto.
19425 2008-12-12 Doug Evans <dje@google.com>
19427 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
19428 in debugging printf.
19430 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
19432 2008-12-09 Doug Evans <dje@google.com>
19434 * linux-low.h (struct process_info): Delete member tid, unused.
19435 * thread-db.c (find_one_thread): Update.
19436 (maybe_attach_thread): Update.
19438 2008-12-02 Pedro Alves <pedro@codesourcery.com>
19440 * target.h (struct target_ops): Add qxfer_osdata member.
19441 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
19443 (linux_qxfer_osdata): New functions.
19444 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
19446 * server.c (handle_query): Handle "qXfer:osdata:read:".
19447 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
19448 (buffer_xml_printf): New functions.
19449 * server.h (struct buffer): New.
19450 (buffer_grow_str, buffer_grow_str0): New macros.
19451 (buffer_grow, buffer_free, buffer_init, buffer_finish)
19452 (buffer_xml_printf): Declare.
19454 2008-11-24 Doug Evans <dje@google.com>
19456 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
19458 2008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
19460 * server.c (handle_v_run): Always use the supplied argument list.
19462 2008-11-19 Bob Wilson <bob.wilson@acm.org>
19464 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
19465 (xtensa_regmap_table): Add entry for scompare1.
19467 2008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
19469 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
19470 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
19471 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
19472 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
19473 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
19474 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
19475 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
19476 XML target descriptions.
19477 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
19478 when inferior is running on an ISA 2.05 or later processor. Add
19479 special case to return offset for full 64-bit slot of FPSCR when
19482 2008-11-14 Daniel Gutson <dgutson@codesourcery.com>
19484 * Makefile.in (SFILES, clean): Added sparc64 files.
19485 (reg-sparc64.o, reg-sparc64.c): New.
19486 * configure.srv (sparc*-*-linux*): New configuration.
19487 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
19488 syscall arguments for SPARC.
19489 (regsets_store_inferior_registers): Likewise.
19490 * linux-sparc-low.c: New file.
19492 2008-10-21 Doug Evans <dje@google.com>
19494 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
19495 (READLINE_DIR,READLINE_DEP): Delete.
19496 (INTERNAL_CFLAGS): Update.
19497 (LINTFLAGS): Update.
19499 2008-10-10 Pedro Alves <pedro@codesourcery.com>
19501 * server.c (handle_v_run): If GDB didn't specify an argv, use the
19502 whole argv from the last run, not just argv[0].
19504 2008-09-08 Pedro Alves <pedro@codesourcery.com>
19506 * regcache.c (new_register_cache): Return NULL if the register
19507 cache size isn't known yet.
19508 (free_register_cache): Avoid dereferencing a NULL regcache.
19510 2008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
19512 * configure.srv: Merge MIPS and MIPS64.
19514 2008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
19516 * Makefile.in (uninstall): Apply $(EXEEXT) too.
19518 2008-08-18 Luis Machado <luisgpm@br.ibm.com>
19520 * Makefile.in: Add required vsx dependencies.
19522 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
19523 Declare init_registers_powerpc_vsx32l.
19524 Declare init_registers_powerpc_vsx64l.
19525 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
19526 (ppc_arch_setup): Check for VSX in hwcap.
19527 (ppc_fill_vsxregset): New function.
19528 (ppc_store_vsxregset): New function.
19529 Add new VSX entry in regset_info target_regsets.
19531 * configure.srv: Add new VSX dependencies.
19533 2008-08-12 Pedro Alves <pedro@codesourcery.com>
19535 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
19536 (remote_open): Set or clear transport_is_reliable.
19537 (putpkt_binary): Don't expect acks in noack mode.
19538 (getpkt): Don't send ack/nac in noack mode.
19539 * server.c (handle_general_set): Handle QStartNoAckMode.
19540 (handle_query): If connected by tcp pass QStartNoAckMode+ in
19542 (main): Reset noack_mode on every connection.
19543 * server.h (noack_mode): Declare.
19545 2008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19547 * Makefile.in (GDBREPLAY_OBS): New variable.
19548 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
19550 2008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
19551 Daniel Jacobowitz <dan@codesourcery.com>
19553 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
19554 (usr_store_inferior_registers): Likewise.
19555 (regsets_store_inferior_registers): Likewise.
19557 2008-07-31 Rolf Jansen <rj@surtec.com>
19558 Pedro Alves <pedro@codesourcery.com>
19560 * configure.ac: Check for memmem declaration.
19561 * server.c [HAVE_MALLOC_H]: Include malloc.h.
19562 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
19563 (disable_packet_qfThreadInfo): Unconditionally compile.
19564 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
19565 * configure, config.in: Regenerate.
19567 2008-07-28 Doug Kwan <dougkwan@google.com>
19569 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
19570 (linux_write_memory): Remove declaration of errno.
19572 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
19574 * linux-low.c (handle_extended_wait): Do not use "status"
19575 variable uninitialized.
19577 2008-07-07 Pedro Alves <pedro@codesourcery.com>
19579 * server.c (handle_v_attach): Inhibit reporting dll changes.
19581 2008-06-27 Pedro Alves <pedro@codesourcery.com>
19583 * remote-utils.c (prepare_resume_reply): If requested, don't
19584 output "thread:TID" in the T stop reply.
19586 * server.c (disable_packet_vCont, disable_packet_Tthread)
19587 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
19588 (handle_query): If requested, disable support for qC, qfThreadInfo
19590 (handle_v_requests): If requested, disable support for vCont.
19591 (gdbserver_show_disableable): New.
19592 (main): Handle --disable-packet and --disable-packet=LIST.
19594 * server.h (disable_packet_vCont, disable_packet_Tthread)
19595 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
19597 2008-06-20 Carlos O'Donell <carlos@codesourcery.com>
19599 * server.c (gdbserver_usage): Mention --version.
19601 2008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
19603 * Makefile.in (gdbreplay.o): New rule.
19605 2008-06-06 Joseph Myers <joseph@codesourcery.com>
19607 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
19608 message, not gdbserver.
19610 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
19611 Nathan Sidwell <nathan@codesourcery.com>
19612 Joseph Myers <joseph@codesourcery.com>
19614 * acinclude.m4: Include ../../config/acx.m4.
19615 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
19616 * configure, config.in: Regenerate.
19617 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
19618 * server.c (gdbserver_version): Print PKGVERSION.
19619 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
19620 (main): Adjust gdbserver_usage calls.
19621 * gdbreplay.c (version, host_name): Add declarations.
19622 (gdbreplay_version, gdbreplay_usage): New.
19623 (main): Accept --version and --help options.
19625 2008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
19627 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
19628 (arm_breakpoint_at): Handle Thumb.
19629 (the_low_target): Add comment.
19631 2008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
19633 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
19635 2008-05-09 Doug Evans <dje@google.com>
19637 * server.h (decode_search_memory_packet): Declare.
19638 * remote-utils.c (decode_search_memory_packet): New fn.
19639 * server.c (handle_search_memory_1): New fn.
19640 (handle_search_memory): New fn.
19641 (handle_query): Process qSearch:memory packets.
19643 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
19645 * regcache.c (registers_length): Remove.
19646 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
19647 full register packet.
19648 * regcache.h (registers_length): Remove prototype.
19649 * server.h (PBUFSIZ): Define to 16384.
19651 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
19653 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
19654 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
19655 powerpc-64l.o, and powerpc-altivec64l.o.
19656 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
19657 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
19658 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
19659 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
19660 rs6000/power-linux.xml, and rs6000/power64-linux.xml
19663 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
19664 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
19665 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
19666 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
19667 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
19668 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
19669 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
19670 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
19671 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
19672 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
19675 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
19676 (init_registers_powerpc_32l): ... this new prototype.
19677 (init_registers_powerpc_32): Remove, replace by ...
19678 (init_registers_powerpc_altivec32l): ... this new prototype.
19679 (init_registers_powerpc_e500): Remove, replace by ...
19680 (init_registers_powerpc_e500l): ... this new prototype.
19681 (init_registers_ppc64): Remove, replace by ...
19682 (init_registers_powerpc_64l): ... this new prototype.
19683 (init_registers_powerpc_64): Remove, replace by ...
19684 (init_registers_powerpc_altivec64l): ... this new prototype.
19685 (ppc_num_regs): Set to 73.
19686 (PT_ORIG_R3, PT_TRAP): Define if necessary.
19687 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
19688 (ppc_cannot_store_register): Handle orig_r3 and trap.
19689 (ppc_arch_setup): Update init_registers_... calls.
19690 (ppc_fill_gregset): Handle orig_r3 and trap.
19692 * inferiors.c (clear_inferiors): Reset current_inferior.
19694 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
19696 * acinclude.m4: Add override.m4.
19697 * configure: Regenerate.
19699 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19701 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
19702 initial call to init_register_ppc64.
19704 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19706 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
19707 single powerpc*-*-linux* case.
19708 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
19710 2008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
19712 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
19713 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
19715 * linux-ppc-low.c: Include <elf.h>.
19716 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
19717 (ppc_hwcap): New global variable.
19718 (ppc_regmap): Remove __SPE__ #ifdef sections.
19719 (ppc_regmap_e500): New global variable.
19720 (ppc_cannot_store_register): Update __SPE__ special case.
19721 (ppc_get_hwcap): New function.
19722 (ppc_arch_setup): Use it to determine whether inferior supports
19723 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
19724 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
19725 Do not access registers if target does not support AltiVec.
19726 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
19727 Do not access registers if target does not support SPE.
19728 (target_regsets): Unconditionally include AltiVec and SPE regsets.
19730 2008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
19732 * linux-low.c (disabled_regsets, num_regsets): New.
19733 (use_regsets_p): Delete.
19734 (linux_wait_for_process): Clear disabled_regsets.
19735 (regsets_fetch_inferior_registers): Check and set it.
19736 (regsets_store_inferior_registers): Likewise.
19737 (linux_fetch_registers, linux_store_registers): Do not use
19739 (initialize_low): Allocate disabled_regsets.
19741 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
19743 * Makefile.in (LIBOBJS): New.
19744 (OBS): Use LIBOBJS.
19745 (memmem.o): New rule.
19746 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
19747 * configure: Regenerated.
19749 2008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
19751 * server.c (handle_query): Never return "unsupported" for
19752 qXfer:features:read queries.
19754 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
19756 * server.c (get_features_xml): Fix inverted condition.
19757 (handle_query): Always support qXfer:feature:read.
19759 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
19761 * server.c (wrapper_argv): New.
19762 (start_inferior): Handle wrapper_argv. If set, expect an extra
19764 (gdbserver_usage): Document --wrapper.
19765 (main): Parse --wrapper.
19767 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19769 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
19770 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
19771 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
19772 (ppc_set_pc): Likewise.
19773 (ppc_arch_setup): New function.
19774 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
19775 of collect_register.
19776 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
19778 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19780 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
19781 instead of linux-ppc64-low.o.
19782 * linux-ppc64-low.c: Remove file.
19783 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
19784 (linux-ppc64-low.o): Remove rule.
19786 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
19787 (init_registers_powerpc_64): Likewise.
19788 (ppc_regmap): Conditionally define depending on __powerpc64__.
19789 (ppc_cannot_store_register): Do not special-case "fpscr" when
19790 compiled on __powerpc64__.
19791 (ppc_collect_ptrace_register): New function.
19792 (ppc_supply_ptrace_register): New function.
19793 (ppc_breakpoint): Change type to "unsigned int".
19794 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
19795 (the_low_target): Conditionally provide initializers for the
19796 arch_setup member depending on __powerpc64__. Install
19797 collect_ptrace_register and supply_ptrace_register members.
19799 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19801 * regcache.h (gdbserver_xmltarget): Add extern declaration.
19802 * server.c (gdbserver_xmltarget): Define.
19803 (get_features_xml): Use it to replace "target.xml" and arch_string.
19805 * configure.srv: Remove srv_xmltarget. Add XML files that were
19806 mentioned there to srv_xmlfiles instead. Remove conditional tests
19807 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
19808 srv_xmlfiles and srv_regobj to include all possible choices.
19809 * configure.ac (srv_xmltarget): Remove.
19810 (srv_xmlfiles): Do not add "target.xml".
19811 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
19812 checks for supplementary target information.
19813 * configure: Regenerate.
19814 * Makefile.in (XML_TARGET): Remove.
19815 (target.xml): Remove rule.
19816 (clean): Do not clean up target.xml.
19817 (.PRECIOUS): Do not mention target.xml.
19819 * target.h (struct target_ops): Remove arch_string member.
19820 * linux-low.c (linux_arch_string): Remove.
19821 (linux_target_ops): Remove arch_string initializer.
19822 * linux-low.h (struct linux_target_ops): Remove arch_string member.
19823 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
19824 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
19825 * spu-low.c (spu_arch_string): Remove.
19826 (spu_target_ops): Remove arch_string initializer.
19827 * win32-low.c (win32_arch_string): Remove.
19828 (win32_target_ops): Remove arch_string initializer.
19829 * win32-low.h (struct win32_target_ops): Remove arch_string member.
19830 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
19831 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
19833 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19835 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
19836 by collect_ptrace_register and supply_ptrace_register hooks.
19837 * linux-low.c (fetch_register): Use supply_ptrace_register callback
19838 instead of checking for the_low_target.left_pad_xfer.
19839 (usr_store_inferior_registers): Use collect_ptrace_register callback
19840 instead of checking for the_low_target.left_pad_xfer.
19842 * linux-s390-low.c (s390_collect_ptrace_register): New function.
19843 (s390_supply_ptrace_register): Likewise.
19844 (s390_fill_gregset): Call s390_collect_ptrace_register.
19845 (the_low_target): Update.
19847 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
19848 (ppc_supply_ptrace_register): Likewise.
19849 (the_low_target): Update.
19851 * linux-i386-low.c (the_low_target): Update.
19852 * linux-x86-64-low.c (the_low_target): Update.
19854 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19856 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
19857 reg-s390.o and reg-s390x.o.
19859 * linux-low.c (new_inferior): New global variable.
19860 (linux_create_inferior, linux_attach): Set it.
19861 (linux_wait_for_process): Call the_low_target.arch_setup after the
19862 target has stopped for the first time.
19863 (initialize_low): Do not call the_low_target.arch_setup.
19865 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
19866 (s390_set_pc): Likewise.
19867 (s390_arch_setup): New function.
19868 (the_low_target): Use s390_arch_setup as arch_setup routine.
19870 * regcache.c (realloc_register_cache): New function.
19871 (set_register_cache): Call it for each existing regcache.
19873 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19875 * server.h (init_registers): Remove prototype.
19877 * linux-low.h (struct linux_target_ops): Add arch_setup field.
19878 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
19879 instead of init_registers ().
19880 * linux-arm-low.c (init_registers_arm): Add prototype.
19881 (init_registers_arm_with_iwmmxt): Likewise.
19882 (the_low_target): Add initializer for arch_setup field.
19883 * linux-cris-low.c (init_registers_cris): Add prototype.
19884 (the_low_target): Add initializer for arch_setup field.
19885 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
19886 (the_low_target): Add initializer for arch_setup field.
19887 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
19888 (the_low_target): Add initializer for arch_setup field.
19889 * linux-ia64-low.c (init_registers_ia64): Add prototype.
19890 (the_low_target): Add initializer for arch_setup field.
19891 * linux-m32r-low.c (init_registers_m32r): Add prototype.
19892 (the_low_target): Add initializer for arch_setup field.
19893 * linux-m68k-low.c (init_registers_m68k): Add prototype.
19894 (the_low_target): Add initializer for arch_setup field.
19895 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
19896 (init_registers_mips64_linux): Likewise.
19897 (the_low_target): Add initializer for arch_setup field.
19898 * linux-ppc-low.c (init_registers_ppc): Add prototype.
19899 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
19900 (the_low_target): Add initializer for arch_setup field.
19901 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
19902 (init_registers_powerpc_64): Likewise.
19903 (the_low_target): Add initializer for arch_setup field.
19904 * linux-s390-low.c (init_registers_s390): Add prototype.
19905 (init_registers_s390x): Likewise.
19906 (the_low_target): Add initializer for arch_setup field.
19907 * linux-sh-low.c (init_registers_sh): Add prototype.
19908 (the_low_target): Add initializer for arch_setup field.
19909 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
19910 (the_low_target): Add initializer for arch_setup field.
19911 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
19912 (the_low_target): Add initializer for arch_setup field.
19914 * win32-low.h (struct win32_target_ops): Add arch_setup field.
19915 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
19916 instead of init_registers ().
19917 * win32-arm-low.c (init_registers_arm): Add prototype.
19918 (the_low_target): Add initializer for arch_setup field.
19919 * win32-i386-low.c (init_registers_i386): Add prototype.
19920 (the_low_target): Add initializer for arch_setup field.
19922 * spu-low.c (init_registers_spu): Add prototype.
19923 (initialize_low): Call initialie_registers_spu () instead of
19924 initialize_registers ().
19926 2008-02-19 Pedro Alves <pedro@codesourcery.com>
19928 * server.c (handle_v_requests): When handling the vRun and vAttach
19929 packets, if already debugging a process, don't kill it. Return an
19932 2008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
19934 * server.c (handle_query): Correct length check.
19936 2008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
19938 * win32-low.c (do_initial_child_stuff): Add process handle
19939 parameter. Set current_process_handle and current_process_id from the
19940 parameters. Clear globals.
19941 (win32_create_inferior): Don't set current_process_handle and
19942 current_process_id here. Instead pass them on the call to
19943 do_initial_child_stuff.
19944 (win32_attach): Likewise.
19945 (win32_clear_inferiors): New.
19946 (win32_kill): Don't close the current process handle or the
19947 current thread handle here. Instead call win32_clear_inferiors.
19948 (win32_detach): Don't open a new handle to the process. Call
19949 win32_clear_inferiors.
19950 (win32_join): Don't rely on current_process_handle; open a new
19951 handle using the process id.
19952 (win32_wait): Call win32_clear_inferiors when the inferior process
19955 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
19957 * server.c (monitor_show_help): Add "exit".
19959 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
19961 * Makefile.in (SFILES): Add linux-xtensa-low.c.
19962 (clean): Add reg-xtensa.c.
19963 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
19964 * configure.srv (xtensa*-*-linux*) New target.
19965 * linux-xtensa-low.c: New.
19966 * xtensa-xtregs.c: New.
19968 2008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
19970 * hostio.c: Don't include errno.h.
19971 (errno_to_fileio_errno): Move to hostio-errno.
19972 * hostio.c: (hostio_error): Remove the error parameter. Defer the
19973 error number outputting to the target->hostio_last_error callback.
19974 (hostio_packet_error): Use FILEIO_EINVAL directly.
19975 (handle_open, handle_pread, hostio_error, handle_unlink): Update
19976 calls to hostio_error.
19977 * hostio-errno.c: New.
19978 * server.h (hostio_last_error_from_errno): Declare.
19979 * target.h (target_ops): Add hostio_last_error member.
19980 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
19981 as hostio_last_error handler.
19982 * spu-low.c (spu_target_ops): Likewise.
19983 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
19984 (wince_hostio_last_error): New functions.
19985 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
19986 as hostio_last_error handler.
19987 (win32_target_ops) [!_WIN32_WCE]: Register
19988 hostio_last_error_from_errno as hostio_last_error handler.
19989 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
19990 (hostio-errno.o): New rule.
19991 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
19992 * configure.srv (srv_hostio_err_objs): New variable. Default to
19994 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
19995 * configure: Regenerate.
19997 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
19999 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
20000 (linux_kill, linux_detach): Clean up the process list.
20001 * remote-utils.c (remote_open): Improve port number parsing.
20002 (putpkt_binary, input_interrupt): Only send interrupts if the target
20004 * server.c (extended_protocol): Make static.
20005 (attached): Define earlier.
20006 (exit_requested, response_needed, program_argv): New variables.
20007 (target_running): New.
20008 (start_inferior): Clear attached here.
20009 (attach_inferior): Set attached here.
20010 (require_running): Define.
20011 (handle_query): Use require_running and target_running. Implement
20013 (handle_v_attach, handle_v_run): New.
20014 (handle_v_requests): Use require_running. Handle vAttach and vRun.
20015 (gdbserver_usage): Update.
20016 (main): Redo argument parsing. Handle --debug and --multi. Handle
20017 --attach along with other options or after the port. Save
20018 program_argv. Support no initial program. Resynchronize
20019 communication with GDB after an error. Handle "monitor exit".
20020 Use require_running and target_running. Always allow the extended
20021 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
20022 restart in extended mode.
20023 * README: Refer to the GDB manual. Update --attach usage.
20025 2007-12-20 Andreas Schwab <schwab@suse.de>
20027 * linux-low.c (STACK_SIZE): Define.
20028 (linux_tracefork_child): Use it. Use __clone2 on ia64.
20029 (linux_test_for_tracefork): Likewise.
20031 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
20033 * linux-low.c (linux_wait_for_event): Update messages. Do not
20034 reinsert auto-delete breakpoints.
20035 * mem-break.c (struct breakpoint): Change return type of handler to
20037 (set_breakpoint_at): Update handler type.
20038 (reinsert_breakpoint_handler): Return 1 instead of calling
20040 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
20042 (check_breakpoints): Delete auto-delete breakpoints and return 2.
20043 * mem-break.h (set_breakpoint_at): Update handler type.
20044 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
20045 * win32-low.c (auto_delete_breakpoint): New.
20046 (get_child_debug_event): Use it.
20048 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
20050 * configure.ac: Check for pread and pwrite.
20051 * hostio.c (handle_pread): Fall back to lseek and read.
20052 (handle_pwrite): Fall back to lseek and write.
20053 * config.in, configure: Regenerated.
20055 2007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
20057 * server.c (myresume): Add own_buf argument.
20058 (main): Update calls.
20060 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
20062 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
20063 * remote-utils.c (remote_open): Do not call disable_async_io.
20064 (block_async_io): Delete.
20065 (unblock_async_io): Make static.
20066 (initialize_async_io): New.
20067 * server.c (handle_v_cont): Handle async I/O here.
20068 (myresume): Likewise. Move other common resume tasks here...
20069 (main): ... from here. Call initialize_async_io. Disable async
20070 I/O before the main loop.
20071 * server.h (initialize_async_io): Declare.
20072 (block_async_io, unblock_async_io): Delete prototypes.
20073 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
20075 2007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
20077 * remote-utils.c (readchar): Allow binary data in received messages.
20079 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20081 * win32-low.c (attaching): New global.
20082 (win32_create_inferior): Clear the `attaching' global.
20083 (win32_attach): Set the `attaching' global.
20084 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
20085 attaching. Only set a breakpoint at the entry point if not
20088 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20090 * server.c (main): Don't report dll events on the initial
20091 connection on attaches.
20093 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20095 * server.c (main): Relax numerical bases supported for the pid of
20096 the --attach command line argument.
20098 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20100 * win32-low.c (win32_attach): Call OpenProcess before
20101 DebugActiveProcess, not after. Add last error output to error
20104 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20106 * win32-low.c (win32_get_thread_context)
20107 (win32_set_thread_context): New functions.
20108 (thread_rec): Use win32_get_thread_context.
20109 (continue_one_thread, win32_resume): Use win32_set_thread_context.
20110 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
20113 2007-12-03 Leo Zayas
20114 Pedro Alves <pedro_alves@portugalmail.pt>
20116 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
20118 (child_add_thread): Minor cleanup.
20119 (child_continue): Resume artificially suspended threads before
20120 calling ContinueDebugEvent.
20121 (suspend_one_thread): New.
20122 (fake_breakpoint_event): New.
20123 (get_child_debug_event): Change return type to int. Check here if
20124 gdb sent an interrupt request. If a soft interrupt was requested,
20125 fake a breakpoint event. Return 0 if there is no event to handle,
20127 (win32_wait): Don't check here if gdb sent an interrupt request.
20128 Ensure there is a valid event to handle.
20129 (win32_request_interrupt): Add soft interruption method as last
20132 2007-12-03 Leo Zayas
20133 Pedro Alves <pedro_alves@portugalmail.pt>
20135 * win32-low.h (win32_thread_info): Add descriptions to the
20136 structure members. Replace `suspend_count' counter by a
20138 * win32-low.c (thread_rec): Update condition of when to get the
20139 context from the inferior. Rely on ContextFlags being set if it
20140 has already been retrieved. Only suspend the inferior thread if
20141 we haven't already. Warn if that fails.
20142 (continue_one_thread): s/suspend_count/suspended/. Only call
20143 ResumeThread once. Warn if that fails.
20145 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20147 * win32-low.c (win32_wait): Don't read from the inferior when it
20148 has already exited.
20150 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20152 * Makefile.in (win32_low_h): New variable.
20153 (win32-low.o): Add dependency on $(win32_low_h).
20154 (win32-arm-low.o, win32-i386-low.o): New rules.
20156 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20158 * hostio.c: Correct copyright year.
20160 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20162 * Makefile.in (OBS): Add hostio.o.
20163 (hostio.o): New rule.
20164 * server.h (handle_vFile): Declare.
20165 * hostio.c: New file.
20166 * server.c (handle_v_requests): Take packet_len and new_packet_len
20167 for binary packets. Call handle_vFile.
20168 (main): Update call to handle_v_requests.
20170 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
20172 * linux-low.c: Include <sched.h>.
20174 2007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
20176 * linux-low.c (linux_tracefork_grandchild): New.
20177 (linux_tracefork_child): Use clone.
20178 (linux_test_for_tracefork): Use clone; allocate and free a stack.
20180 2007-10-31 Joel Brobecker <brobecker@adacore.com>
20182 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
20184 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
20186 * linux-low.c (handle_extended_wait): Handle unexpected signals.
20188 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
20190 * inferiors.c (change_inferior_id): Delete.
20191 (add_pid_to_list, pull_pid_from_list): New.
20192 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
20193 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
20194 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
20195 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
20196 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
20197 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
20198 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
20199 (using_threads): Always set to 1.
20200 (handle_extended_wait): New.
20201 (add_process): Do not set TID.
20202 (linux_create_inferior): Set must_set_ptrace_flags.
20203 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
20204 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
20205 (linux_thread_alive): Rename TID argument to LWPID.
20206 (linux_wait_for_process): Handle unknown processes. Do not use TID.
20207 (linux_wait_for_event): Do not use TID or check using_threads. Update
20208 call to dead_thread_notify. Call handle_extended_wait.
20209 (linux_create_inferior): Use PTRACE_SETOPTIONS.
20210 (send_sigstop): Delete sigstop_sent.
20211 (wait_for_sigstop): Avoid TID.
20212 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
20213 (linux_test_for_tracefork): New.
20214 (linux_lookup_signals): Use thread_db_active and
20215 linux_supports_tracefork_flag.
20216 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
20217 * linux-low.h (get_process_thread): Avoid TID.
20218 (struct process_ifo): Move thread_known and tid to the end. Remove
20220 (linux_attach_lwp, thread_db_init): Update prototypes.
20221 * server.h (change_inferior_id): Delete prototype.
20222 (add_pid_to_list, pull_pid_from_list): New prototypes.
20223 * thread-db.c (thread_db_use_events): New.
20224 (find_first_thread): Rename to...
20225 (find_one_thread): ...this. Update callers and messages. Do not
20226 call fatal. Check thread_db_use_events. Do not call
20227 change_inferior_id or new_thread_notify.
20228 (maybe_attach_thread): Update. Do not call new_thread_notify.
20229 (thread_db_init): Set thread_db_use_events. Check use_events.
20230 * utils.c (fatal, warning): Correct message prefix.
20232 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
20234 * Makefile.in (clean): Remove new files.
20235 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
20236 (powerpc-64.o, powerpc-64.c): New rules.
20237 * configure.srv: Use alternate register sets for powerpc64-*-linux*
20238 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
20240 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
20242 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
20243 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
20244 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
20245 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
20246 (target_regsets): Add AltiVec and SPE register sets.
20247 * configure.ac: Check for AltiVec and SPE.
20248 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
20249 (ppc_fill_vrregset, ppc_store_vrregset): New.
20250 (target_regsets): Add AltiVec register set.
20251 * configure: Regenerated.
20253 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
20255 * linux-low.c (O_LARGEFILE): Define.
20256 (linux_read_memory): Use /proc/PID/mem.
20257 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
20258 * configure, config.in: Regenerated.
20260 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20262 * linux-low.c (linux_wait_for_event): Do not pass signals while
20265 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20267 * win32-low.c (create_process): New.
20268 (win32_create_inferior): Use create_process instead of
20269 CreateProcess. If create_process failed retry appending an ".exe"
20270 suffix. Store the GetLastError result immediatelly after
20271 create_process calls and use it on the call to error.
20273 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20275 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
20277 2007-08-23 Joel Brobecker <brobecker@adacore.com>
20279 * configure.ac: Switch license to GPLv3.
20281 2007-08-01 Michael Snyder <msnyder@access-company.com>
20283 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
20285 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
20287 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
20289 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
20290 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
20291 CloseToolhelp32Snapshot.
20292 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
20293 CloseToolhelp32Snapshot.
20295 2007-07-27 Michael Snyder <michael.snyder@access-company.com>
20297 * server.c (main): Check for inferior exit before main loop.
20299 2007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
20301 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
20302 instead of on tmp_desc.
20304 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
20305 Daniel Jacobowitz <dan@codesourcery.com>
20307 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
20308 (add_thread): Minor cleanups.
20309 (clear_inferiors): Move lower in the file. Clear the DLL
20311 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
20312 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
20313 (xml_escape_text): New.
20314 * server.c (handle_query): Handle qXfer:libraries:read. Report it
20316 (handle_v_cont): Report errors.
20317 (gdbserver_version): Update.
20318 (main): Correct size of own_buf. Do not report initial DLL events.
20319 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
20320 (unloaded_dll, xml_escape_text): New.
20321 * win32-low.c (enum target_waitkind): Update comments.
20322 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
20323 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
20324 (win32_EnumProcessModules, win32_GetModuleInformation)
20325 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
20326 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
20327 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
20328 (win32_Module32First, win32_Module32Next, load_toolhelp)
20329 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
20330 (get_child_debug_event): Handle DLL events.
20331 (win32_wait): Likewise.
20333 2007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20335 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
20336 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
20338 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20340 * win32-low.c (handle_output_debug_string): Ignore event if not
20343 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20345 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
20347 2007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
20349 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
20351 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
20353 * inferiors.c (change_inferior_id): Add comment.
20354 * linux-low.c (check_removed_breakpoint): Add an early
20355 prototype. Improve debug output.
20356 (linux_attach): Doc update.
20357 (linux_detach_one_process, linux_detach): Clean up before releasing
20359 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
20360 * linux-low.h (struct process_info): Doc improvement.
20361 * mem-break.c (delete_all_breakpoints): New.
20362 * mem-break.h (delete_all_breakpoints): New prototype.
20363 * thread-db.c (find_first_thread): New.
20364 (thread_db_create_event): Call it instead of
20365 thread_db_find_new_threads. Clean up unused variables.
20366 (maybe_attach_thread): Remove first thread handling.
20367 (thread_db_find_new_threads): Use find_first_thread.
20368 (thread_db_get_tls_address): Likewise.
20370 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
20372 * thread-db.c (thread_db_find_new_threads): Add prototype.
20373 (thread_db_create_event): Check for the main thread before adding
20375 (maybe_attach_thread): Only enable event reporting if TID == 0.
20376 (thread_db_get_tls_address): Check for new threads.
20378 2007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
20380 * linux-low.c (linux_create_inferior): Try execv before execvp.
20381 * spu-low.c (spu_create_inferior): Likewise.
20383 2007-06-13 Mike Frysinger <vapier@gentoo.org>
20385 * linux-low.c (linux_create_inferior): Change execv to execvp.
20386 * spu-low.c (spu_create_inferior): Likewies.
20388 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
20390 * Makefile.in (clean): Clean new files instead of deleted ones.
20391 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
20392 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
20394 * configure.srv: Specify XML files and new regformats for MIPS and
20396 * linux-mips-low.c (mips_num_regs): Set to only used registers.
20397 (mips_regmap): Do not fetch $0. Remove unused registers. Add
20398 an entry for the restart register.
20399 (mips_cannot_fetch_register, mips_cannot_store_register)
20400 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
20401 register names to match the XML descriptions.
20402 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
20403 restart register instead of $0.
20405 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20406 Markus Deuling <deuling@de.ibm.com>
20408 * remote-utils.c (decode_xfer_write): New function.
20409 * server.h (decode_xfer_write): Add prototype.
20410 * server.c (handle_query): Add PACKET_LEN argument. Support
20411 qXfer:spu:read and qXfer:spu:write packets.
20412 (main): Pass packet_len to handle_query.
20413 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
20414 * target.h (target_ops): Add qxfer_spu.
20416 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20418 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
20419 accessing non-seekable spufs files.
20421 2007-05-16 Markus Deuling <deuling@de.ibm.com>
20423 * server.c (handle_query): Add reply for qC packet.
20425 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20426 Leo Zayas <lerele@champenstudios@com>
20428 * server.h (check_remote_input_interrupt_request): New function.
20429 * remote_utils.c (INVALID_DESCRIPTOR): New define.
20430 (remote_desc): Initialize with INVALID_DESCRIPTOR.
20431 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
20432 (check_remote_input_interrupt_request): New function.
20433 * server.h (check_remote_input_interrupt_request): Declare.
20434 * win32-low.c (winapi_DebugBreakProcess,
20435 winapi_GenerateConsoleCtrlEvent): New typedefs.
20436 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
20438 (win32_wait): Check for remote interrupt request
20439 with check_remote_input_interrupt_request.
20440 (win32_request_interrupt): New function.
20441 (win32_target_op): Set request_interrupt to win32_request_interrupt.
20443 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20445 * win32-low.c (debug_registers_changed,
20446 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
20447 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
20448 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
20449 (thread_rec): Get context using the low target.
20450 (child_add_thread): Call thread_added on the low target,
20451 which does the same thing.
20453 (do_initial_child_stuff): Remove debug registers references.
20454 Set context using the low target. Resume threads after
20455 setting the contexts.
20456 (child_continue): Remove dead variable. Remove debug
20457 registers references.
20458 (child_fetch_inferior_registers): Go through the low target.
20459 (do_child_store_inferior_registers): Remove.
20460 (child_store_inferior_registers): Go through the low target.
20461 (win32_resume): Remove debug registers references.
20462 Set context using the low target.
20463 (handle_exception): Change return type to void. Don't record
20464 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
20465 first chance exception.
20466 (get_child_debug_event): Change return type to void. Remove
20467 goto loop. Always return after waiting for debug event.
20468 (win32_wait): Convert to switch statement. Handle spurious
20471 * win32-i386-low.c (debug_registers_changed,
20472 debug_registers_used): New.
20473 (initial_stuff): Rename to ...
20474 (i386_initial_stuff): ... this. Clear debug registers
20476 (store_debug_registers): Delete.
20477 (i386_get_thread_context): New.
20478 (load_debug_registers): Delete.
20479 (i386_set_thread_context): New.
20480 (i386_thread_added): New.
20481 (single_step): Rename to ...
20482 (i386_single_step): ... this.
20483 (do_fetch_inferior_registers): Rename to ...
20484 (i386_fetch_inferior_register): ... this.
20485 (i386_store_inferior_register): New.
20486 (the_low_target): Adapt to new interface.
20488 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
20489 (arm_get_thread_context): New.
20490 (arm_set_thread_context): New.
20492 (do_fetch_inferior_registers): Rename to ...
20493 (arm_fetch_inferior_register): ... this.
20494 (arm_store_inferior_register): New.
20495 (arm_wince_breakpoint): Reimplement as unsigned long.
20496 (arm_wince_breakpoint_len): Define.
20497 (the_low_target): Adapt to new interface.
20499 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
20500 load_debug_registers. Add get_thread_context, set_thread_context,
20501 thread_added and store_inferior_register. Rename
20502 fetch_inferior_registers to fetch_inferior_register.
20503 (regptr): Remove declaration.
20505 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20507 * linux-low.c (linux_detach): Change return type to int. Return 0.
20508 * spu-low.c (spu_detach): Likewise.
20510 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20512 * target.h (target_ops): Change return type of detach to int.
20514 (join_inferior): New.
20515 * server.c (main): Don't skip detach support on mingw32.
20516 If the inferior doesn't support detaching return error.
20517 Call join_inferior instead of using waitpid.
20518 * linux-low.c (linux_join): New.
20519 (linux_target_op): Add linux_join.
20520 * spu-low.c (spu_join): New.
20521 (spu_target_ops): Add spu_join.
20522 * win32-low.c (win32_detach): Adapt to new interface.
20523 Reopen current_process_handle before detaching. Issue a child
20524 resume before detaching.
20526 (win32_target_op): Add win32_join.
20528 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20530 * win32-low.c (win32-attach): Fix return value.
20531 * target.h (target_ops): Describe ATTACH return values.
20533 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20535 * win32-low.c (GETPROCADDRESS): Define.
20536 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
20537 (winapi_DebugSetProcessKillOnExit): Likewise.
20538 (win32_create_inferior): Force usage of ansi CreateProcessA.
20539 (win32_attach): Use GETPROCADDRESS.
20540 (win32_detach): Likewise.
20542 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20544 * win32-low.c (win32_wait): Don't use WSTOPSIG.
20546 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
20548 * win32-low.c: Commit leftover changes from 2007-03-29.
20550 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20552 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
20553 fields short instead of int. Add explicit padding.
20554 (i387_cache_to_fsave): Remove unnecessary casts.
20555 (i387_fsave_to_cache): Doc fix.
20556 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
20558 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20560 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
20561 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
20563 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20565 * configure.srv (arm*-*-mingw32ce*): Move near the other
20568 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20570 * configure.ac: Add errno checking.
20571 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
20572 sys/file.h and malloc.h.
20573 (AC_CHECK_DECLS): Add perror.
20574 (srv_mingwce): Handle.
20575 * configure.srv (i[34567]86-*-cygwin*): Add
20576 win32-i386-low.o to srv_tgtobj.
20577 (i[34567]86-*-mingw*): Likewise.
20578 (arm*-*-mingw32ce*): Add case.
20579 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20580 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
20581 [__MINGW32CE__] (strerror): New function.
20582 [__MINGW32CE__] (errno): Define to GetLastError.
20583 [__MINGW32CE__] (COUNTOF): New macro.
20584 (remote_open): Remove extra close call.
20585 * mem-break.c (delete_breakpoint_at): New function.
20586 * mem-break.h (delete_breakpoint_at): Declare.
20587 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20588 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
20589 [USE_WIN32API] (read, write): Add char* casts.
20590 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
20591 * server.h: Include wincecompat.h on Windows CE.
20592 [HAVE_ERRNO_H]: Check.
20593 (perror): Declare if not declared.
20594 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
20595 (perror_with_name): Remove errno declaration.
20596 * wincecompat.h: New.
20597 * wincecompat.c: New.
20598 * win32-low.h: New.
20599 * win32-arm-low.c: New.
20600 * win32-i386-low.c: New.
20601 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
20602 (OUTMSG2): Make it safe.
20604 (COUNTOF): New macro.
20605 (NUM_REGS): Get it from the low target.
20606 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
20607 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
20608 (thread_rec): Let low target handle debug registers.
20609 (child_add_thread): Likewise.
20610 (child_init_thread_list): Likewise.
20611 (continue_one_thread): Likewise.
20613 (do_child_fetch_inferior_registers): Move to ...
20614 * win32-i386-low.c: ... here, and rename to ...
20615 (do_fetch_inferior_registers): ... this.
20616 * win32-low.c (child_fetch_inferior_registers):
20617 Go through the low target.
20618 (do_child_store_inferior_registers): Use regptr.
20619 (strwinerror): New function.
20620 (win32_create_inferior): Handle Windows CE.
20621 Use strwinerror instead of strerror on Windows error
20622 codes. Add program to the error output.
20623 Don't close the main thread handle on Windows CE.
20624 (win32_attach): Use coredll.dll on Windows CE.
20625 (win32_kill): Close current process and current
20627 (win32_detach): Use coredll.dll on Windows CE.
20628 (win32_resume): Let low target handle debug registers, and
20630 (handle_exception): Add/Remove initial breakpoint. Avoid
20631 non-existant WSTOPSIG on Windows CE.
20632 (win32_read_inferior_memory): Cast to remove warning.
20633 (win32_arch_string): Go through the low target.
20634 (initialize_low): Call set_breakpoint_data with the low
20635 target's breakpoint.
20636 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
20637 FOP_REGNUM, mappings): Move to ...
20638 * win32-i386-low.c: ... here.
20639 * win32-low.c (win32_thread_info): Move to ...
20640 * win32-low.h: ... here.
20641 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
20642 win32-arm-low.c and wincecompat.c.
20643 (all:): Add $EXEEXT.
20644 (install-only:): Likewise.
20645 (gdbserver:): Likewise.
20646 (gdbreplay:): Likewise.
20647 * config.in: Regenerate.
20648 * configure: Regenerate.
20650 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20652 * win32-low.c: Rename typedef thread_info to
20653 win32_thread_info throughout.
20655 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20657 * win32-i386-low.c: Rename to ...
20658 * win32-low.c: ... this.
20659 * configure.srv: Replace win32-i386-low.o with win32-low.o.
20660 * Makefile.in: Likewise.
20662 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
20664 * remote-utils.c (monitor_output): Constify msg parameter.
20665 * server.h (monitor_output): Likewise.
20666 * win32-i386-low.c (handle_output_debug_string): New.
20667 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
20668 handle_output_debug_string.
20669 (get_child_debug_event): Likewise.
20671 2007-03-27 Mat Hostetter <mat@lcs.mit.edu>
20673 * server.c (main): Correct strtoul check.
20675 2007-03-27 Jon Ringle <jon@ringle.org>
20677 * linux-low.c: Check __ARCH_HAS_MMU__ also.
20679 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
20681 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
20683 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
20685 * terminal.h: Check HAVE_SGTTY_H.
20687 2007-02-27 Mat Hostetter <mat@lcs.mit.edu>
20689 * remote-utils.c (remote_open): Print out the assigned port number.
20691 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
20693 * remote-utils.c (monitor_output): New function.
20694 * server.c (debug_threads): Define here.
20695 (monitor_show_help): New function.
20696 (handle_query): Handle qRcmd.
20697 (main): Do not handle 'd' packet.
20698 * server.h (debug_threads, remote_debug, monitor_output): Declare.
20699 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
20702 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20704 * Makefile.in (EXEEXT): New.
20705 (clean): Use $(EXEEXT).
20707 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20709 * target.h (target_ops): Rename send_signal to request_interrupt,
20710 and remove enum target_signal parameter.
20711 * linux-low.c (linux_request_interrupt): Rename from
20712 linux_send_signal, and always send SIGINT.
20713 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
20714 and always send SIGINT.
20715 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
20717 (input_interrupt): Likewise.
20719 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20721 * server.c (get_features_xml): Check if target implemented
20723 * win32-i386-low.c (win32_arch_string): New.
20724 (win32_target_ops): Add win32_arch_string as arch_string member.
20726 2007-02-22 Markus Deuling <deuling@de.ibm.com>
20728 * spu-low.c (spu_arch_string): New.
20729 (spu_target_ops): Add spu_arch_string.
20731 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
20733 * remote-utils.c: Remove HAVE_TERMINAL_H check.
20734 * configure.ac: Do not check for terminal.h.
20735 * configure, config.in: Regenerated.
20737 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
20739 * Makefile.in (OBS): Add $(XML_BUILTIN).
20740 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
20742 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
20743 (arm-with-iwmmxt.c): New.
20744 * config.in, configure: Regenerate.
20745 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
20746 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
20747 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
20748 (arm*-*-linux*): Add iWMMXt and regset support.
20749 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
20750 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
20751 (arm_store_wmmxregset, target_regsets): New.
20752 * server.c (get_features_xml): Take annex argument. Check builtin
20754 (handle_query): Handle multiple annexes.
20756 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20758 * remote-utils.c [USE_WIN32API] (read, write): Define.
20759 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
20762 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
20764 * linux-i386-low.c (the_low_target): Set arch_string.
20765 * linux-x86-64-low.c (the_low_target): Likewise.
20766 * linux-low.c (linux_arch_string): New.
20767 (linux_target_ops): Add it.
20768 * linux-low.h (struct linux_target_ops): Add arch_string.
20769 * server.c (write_qxfer_response): Use const void * for DATA.
20770 (get_features_xml): New.
20771 (handle_query): Handle qXfer:features:read. Report it for qSupported.
20772 * target.h (struct target_ops): Add arch_string method.
20774 2007-01-03 Denis Pilat <denis.pilat@st.com>
20775 Daniel Jacobowitz <dan@codesourcery.com>
20777 * linux-low.c (linux_kill): Handle being called with no threads.
20778 * win32-i386-low.c (win32_kill): Likewise.
20779 (get_child_debug_event): Clear current_process_handle.
20781 2006-12-30 Denis PILAT <denis.pilat@st.com>
20782 Daniel Jacobowitz <dan@codesourcery.com>
20784 * remote-utils.c (remote_open): Check the type of specified
20785 serial port devices before opening them.
20786 * server.c (main): Kill the inferior if an error occurs during
20787 the first remote_open.
20789 2006-12-05 Markus Deuling <deuling@de.ibm.com>
20791 * README: Update supported targets.
20793 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
20795 * Makefile.in (clean): Remove reg-mips64.c.
20796 (reg-mips64.c, reg-mips64.o): New rules.
20797 * configure.srv: Handle mips64. Include regset support for mips.
20798 * linux-mips-low.c (union mips_register): New.
20799 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
20800 (mips_breakpoint, mips_breakpoint_at): Use int.
20801 (mips_collect_register, mips_supply_register)
20802 (mips_collect_register_32bit, mips_supply_register_32bit)
20803 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
20804 (mips_store_fpregset, target_regsets): New.
20805 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
20807 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
20809 * configure.srv: Add target "spu*-*-*".
20810 * Makefile.in (clean): Remove reg-spu.c.
20811 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
20812 * spu-low.c: New file.
20814 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
20816 * configure.ac: Correct td_thr_tls_get_addr test.
20817 * configure: Regenerated.
20819 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
20821 * linux-low.c (linux_wait_for_event): Reformat. Use the
20822 pass_signals array.
20823 * remote-utils.c (decode_address_to_semicolon): New.
20824 * server.c (pass_signals, handle_general_set): New.
20825 (handle_query): Mention QPassSignals for qSupported.
20826 (main): Call handle_general_set.
20827 * server.h (pass_signals, decode_address_to_semicolon): New.
20829 2006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
20831 * server.c (handle_query): Correct error handling for read_auxv.
20833 2005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
20835 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
20836 and srv_linux_thread_db to yes.
20837 * linux-s390-low.c (s390_fill_gregset): New function.
20838 (target_regsets): Define data structure.
20840 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
20842 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
20843 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
20844 * config.in, configure: Regenerated.
20845 * inferiors.c (gdb_id_to_thread): New function.
20846 (gdb_id_to_thread_id): Use it.
20847 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
20848 * linux-low.h (struct process_info): Add th member.
20849 (thread_db_get_tls_address): New prototype.
20850 * remote-utils.c (decode_address): Make non-static.
20851 * server.c (handle_query): Handle qGetTLSAddr.
20852 * server.h (gdb_id_to_thread, decode_address): New prototypes.
20853 * target.h (struct target_ops): Add get_tls_address.
20854 * thread-db.c (maybe_attach_thread): Save the thread handle.
20855 (thread_db_get_tls_address): New.
20857 2006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
20859 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
20860 (linux_resume_one_process): Take a siginfo_t *. Update all
20861 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
20862 (struct pending_signals): Add a siginfo_t.
20863 (linux_wait_for_process): Always set last_status.
20864 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
20865 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
20866 * linux-low.h (struct process_info): Add last_status.
20868 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
20870 * remote-utils.c (try_rle): New function.
20871 (putpkt_binary): Use it.
20873 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
20875 * Makefile.in (clean): Clean reg-x86-64-linux.c.
20876 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
20877 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
20878 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
20879 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
20882 2006-08-08 Richard Sandiford <richard@codesourcery.com>
20884 * server.c (terminal_fd): New variable.
20885 (old_foreground_pgrp): Likewise.
20886 (restore_old_foreground_pgrp): New function.
20887 (start_inferior): Record the terminal file descriptor in terminal_fd
20888 and its original foreground group in old_foreground_pgrp. Register
20889 restore_old_foreground_pgrp with atexit().
20891 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
20893 * server.c (handle_query): Correct qPart to qXfer.
20895 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
20897 * configure.ac: Check for more headers which are missing on
20898 Windows. Automatically supply -lwsock32 and USE_WIN32API.
20899 * configure.srv: Add Cygwin and mingw32.
20900 * remote-utils.c: Don't include headers unconditionally which
20901 are missing on mingw32. Include <winsock.h> for mingw32.
20902 (remote_open): Adjust for mingw32 support. Flush
20903 standard error after writing to it.
20904 (remote_close, putpkt_binary, input_interrupt, block_async_io)
20905 (unblock_async_io, enable_async_io, disable_async_io)
20906 (readchar, getpkt): Update for Winsock support.
20907 (prepare_resume_reply): Expect a protocol signal number.
20908 * server.c: Disable <sys/wait.h> on mingw32.
20909 (start_inferior): Adjust for mingw32 support. Flush
20910 standard error after writing to it.
20911 (attach_inferior): Likewise. Use protocol signal
20913 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
20915 * win32-i386-low.c: New file.
20916 * Makefile.in (XM_CLIBS): Set.
20917 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
20918 (win32-i386-low.o): New dependency rule.
20919 * linux-low.c (linux_wait): Use target signal numbers.
20920 * target.h (struct target_ops): Doc fix.
20921 * server.h (target_signal_to_name): New prototype.
20922 * gdbreplay.c: Don't include headers unconditionally which
20923 are missing on mingw32. Include <winsock.h> for mingw32.
20924 (remote_close, remote_open): Adjust for Winsock support.
20925 * configure, config.in: Regenerated.
20927 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20929 * server.c (decode_xfer_read, write_qxfer_response): New.
20930 (handle_query): Take a packet length argument. Handle
20931 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
20932 the qSupported response.
20933 (main): Update call to handle_query.
20935 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
20937 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
20938 (putpkt_binary): Renamed from putpkt and adjusted for binary
20940 (putpkt): New wrapper for putpkt_binary.
20941 (readchar): Don't mask off the high bit.
20942 (decode_X_packet): New function.
20943 * server.c (main): Call putpkt_binary if a handler sets the packet
20944 length. Save the length of the incoming packet. Handle 'X'.
20945 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
20947 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
20949 * server.c (handle_query): Handle qSupported.
20951 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
20953 * remote-utils.c (all_symbols_looked_up): New variable.
20954 (look_up_one_symbol): Check it.
20955 * server.h (look_up_one_symbol): New declaration.
20956 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
20958 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
20960 * Makefile.in (linux-arm-low.o): Update dependencies.
20961 * linux-arm-low.c: Include "gdb_proc_service.h".
20962 (PTRACE_GET_THREAD_AREA): Define.
20963 (ps_get_thread_area): New function.
20965 2006-05-09 Nathan Sidwell <nathan@codesourcery.com>
20967 * configure.srv (m68k*-*-uclinux*): New target.
20968 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
20969 (linux_resume_one_process): Remove extraneous cast.
20970 (linux_read_offsets): New.
20971 (linux_target_op): Add linux_read_offsets on mmuless systems.
20972 * server.c (handle_query): Add qOffsets logic.
20973 * target.h (struct target_ops): Add read_offsets.
20975 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
20977 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
20978 (PTRACE_GET_THREAD_AREA): Define.
20979 (ps_get_thread_area): New function.
20980 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
20981 (linux-x86-64-low.o): Update.
20983 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
20985 * configure.ac: Remove checks for prfpregset_t.
20986 * gdb_proc_service.h: New file.
20987 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
20988 new "gdb_proc_service.h".
20989 * proc-service.c: Likewise.
20990 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
20991 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
20992 * Makefile.in (gdb_proc_service_h): Updated.
20993 * configure, config.in: Regenerated.
20995 2006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
20997 * remote-utils.c (prepare_resume_reply): Move declaration
20998 of gdb_id_from_wait to the top of the block.
21000 2006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
21002 * linux-low.c (regsets_store_inferior_registers): Read the regset
21003 from the target before filling it.
21005 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21007 * server.c (attach_inferior): Return SIGTRAP for a successful
21010 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
21012 * Makefile.in (OBS): Add version.o.
21013 (STAGESTUFF): Delete.
21014 (version.o): Add dependencies.
21015 (version.c): Replace rule.
21016 (clean): Remove version.c.
21017 * server.c (gdbserver_version): New.
21018 (gdbserver_usage): Use printf.
21019 (main): Handle --version and --help.
21020 * server.h (version, host_name): Add declarations.
21022 2005-12-23 Eli Zaretskii <eliz@gnu.org>
21034 * linux-x86-64-low.c:
21036 * linux-s390-low.c:
21037 * linux-ppc64-low.c:
21039 * linux-mips-low.c:
21040 * linux-m68k-low.c:
21041 * linux-m32r-low.c:
21044 * linux-ia64-low.c:
21045 * linux-i386-low.c:
21046 * linux-crisv32-low.c:
21058 * gdbserver.1: Add (C) after Copyright. Update the FSF
21061 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
21063 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
21064 (arm_breakpoint_at): Recognize both breakpoints.
21065 (the_low_target): Use the correct breakpoint instruction.
21067 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
21069 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
21070 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
21071 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
21072 (the_low_target): Update.
21074 2005-10-25 Andreas Schwab <schwab@suse.de>
21076 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
21078 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
21079 (ia64_num_regs): Reduce to 462.
21081 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
21083 * acinclude.m4: Correct quoting.
21084 * aclocal.m4: Regenerated.
21086 Suggested by SZOKOVACS Robert <szo@ies.hu>:
21087 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
21088 (thread_db_init): Call thread_db_err_str.
21089 * configure.ac: Check for TD_VERSION.
21090 * config.in, configure: Regenerated.
21092 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21094 * server.h (error, fatal, warning): Add ATTR_FORMAT.
21096 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21098 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
21099 is not available. Define HAVE_PTRACE_GETREGS if it is.
21100 * config.in, configure: Regenerated.
21101 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
21102 * linux-i386-low.c, linux-m68k-low.c: Update to use
21103 HAVE_PTRACE_GETREGS.
21104 * linux-low.c (regsets_fetch_inferior_registers)
21105 (regsets_store_inferior_registers): Only return 0 if we processed
21107 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
21108 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
21110 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21112 * inferiors.c (struct thread_info): Add gdb_id.
21113 (add_thread): Add gdb_id argument.
21114 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
21115 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
21116 calls to add_thread.
21117 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
21118 * server.c (handle_query): Use thread_to_gdb_id.
21119 (handle_v_cont, main): Use gdb_id_to_thread_id.
21120 * server.h (add_thread): Update prototype.
21121 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
21124 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21126 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
21127 left-padded registers.
21128 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
21129 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
21131 2005-07-01 Steve Ellcey <sje@cup.hp.com>
21133 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
21134 * configure: Regenerate.
21135 * config.in: Regenerate.
21136 * server.h (NEED_DECLARATION_STRERROR):
21137 Replace with !HAVE_DECL_STRERROR.
21139 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
21141 * linux-low.c (linux_wait, linux_send_signal): Don't test
21142 an unsigned long variable for > 0 if it could be MAX_ULONG.
21143 * server.c (myresume): Likewise.
21144 * target.c (set_desired_inferior): Likewise.
21146 2005-06-13 Mark Kettenis <kettenis@gnu.org>
21148 * configure.ac: Simplify and improve check for socklen_t.
21149 * configure, config.in: Regenerate.
21151 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
21153 * acconfig.h: Remove.
21154 * configure.ac: Add a test for socklen_t. Use three-argument
21155 AC_DEFINE throughout.
21156 * config.in: Regenerated using autoheader 2.59.
21157 * configure: Regenerated.
21159 * gdbreplay.c (socklen_t): Provide a default.
21160 (remote_open): Use socklen_t.
21161 * remote-utils.c (socklen_t): Provide a default.
21162 (remote_open): Use socklen_t.
21163 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
21166 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
21168 * linux-low.c (linux_read_memory, linux_write_memory)
21169 (linux_read_auxv): Likewise.
21170 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
21171 (check_mem_write): Likewise.
21172 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
21174 * regcache.c (struct inferior_rgcache_data, registers_to_string)
21175 (registers_from_string, register_data): Likewise.
21176 * server.c (handle_query, main): Likewise.
21177 * server.h (convert_ascii_to_int, convert_int_to_ascii)
21178 (decode_M_packet): Likewise.
21179 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
21180 * target.h (struct target_ops): Update read_memory, write_memory,
21182 (read_inferior_memory, write_inferior_memory): Update.
21183 * linux-low.h (struct linux_target_ops): Change type of breakpoint
21184 to unsigned char *.
21185 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
21186 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
21187 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
21188 linux-s390-low.c, linux-sh-low.c: Update for changes in
21189 read_inferior_memory and the_low_target->breakpoint.
21191 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
21193 * Makefile.in (SFILES): Add linux-ppc64-low.c.
21194 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
21195 * configure.srv: Add powerpc64-*-linux*.
21196 * linux-ppc64-low.c: New file.
21198 2005-05-23 Orjan Friberg <orjanf@axis.com>
21200 * linux-cris-low.c: New file with support for CRIS.
21201 * linux-crisv32-low.c: Ditto for CRISv32.
21202 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
21203 (clean): Add reg-cris.c and reg-crisv32.c.
21204 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
21205 reg-crisv32.o, and reg-crisv32.c to make rules.
21206 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
21207 recognized targets.
21209 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
21211 * linux-low.c (fetch_register): Ensure buffer size is a multiple
21212 of sizeof (PTRACE_XFER_TYPE).
21213 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
21215 2005-05-12 Orjan Friberg <orjanf@axis.com>
21217 * target.h (struct target_ops): Add insert_watchpoint,
21218 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
21219 pointers for hardware watchpoint support.
21220 * linux-low.h (struct linux_target_ops): Ditto.
21221 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
21222 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
21223 to linux_target_ops.
21224 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
21226 * server.c (main): Recognize 'Z' and 'z' packets.
21228 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
21230 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
21231 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
21232 (the_low_target): Add new members.
21234 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21236 * proc-service.c (ps_lgetregs): Search all_processes instead of
21239 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21241 * server.c (start_inferior): Change return type to int.
21242 (attach_inferior): Change sigptr to int *.
21243 (handle_v_cont, handle_v_requests): Change signal to int *.
21244 (main): Change signal to int.
21246 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
21248 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
21249 * configure.srv: Add m32r*-*-linux*.
21250 * linux-m32r-low.c: New file.
21252 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
21254 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
21256 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21258 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
21259 Take unsigned long arguments for PIDs.
21260 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
21261 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
21262 (wait_for_sigstop, linux_resume_one_process)
21263 (regsets_fetch_inferior_registers, linux_send_signal)
21264 (linux_read_auxv): Likewise. Update the types of variables holding
21265 PIDs. Update format string specifiers.
21266 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
21267 * remote-utils.c (prepare_resume_reply): Likewise.
21268 * server.c (cont_thread, general_thread, step_thread)
21269 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
21271 (handle_query): Update format specifiers.
21272 (handle_v_cont, main): Use strtoul for thread IDs.
21273 * server.h (struct inferior_list_entry): Use unsigned long for ID.
21274 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
21275 (general_thread, step_thread, thread_from_wait)
21276 (old_thread_from_wait): Update.
21277 * target.h (struct thread_resume): Use unsigned long for THREAD.
21278 (struct target_ops): Use unsigned long for arguments to attach and
21281 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
21283 * acinclude.m4: Include bfd/bfd.m4 directly.
21284 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
21285 <agriffis@toolchain.org>.
21286 * aclocal.m4, configure: Regenerated.
21288 2005-01-07 Andrew Cagney <cagney@gnu.org>
21290 * configure.ac: Rename configure.in, require autoconf 2.59.
21291 * configure: Re-generate.
21293 2004-12-08 Daniel Jacobowitz <dan@debian.org>
21295 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
21296 LIBS when finished.
21297 * aclocal.m4: Regenerated.
21298 * configure: Regenerated.
21300 2004-11-21 Andreas Schwab <schwab@suse.de>
21302 * linux-m68k-low.c (m68k_num_gregs): Define.
21303 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
21304 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
21305 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
21306 (m68k_breakpoint_at): New. Add to the_low_target.
21308 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
21309 srv_linux_thread_db to yes.
21311 2004-10-20 Joel Brobecker <brobecker@gnat.com>
21313 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
21314 (ARCH_SET_FS): Likewise.
21315 (ARCH_GET_FS): Likewise.
21316 (ARCH_GET_GS): Likewise.
21318 2004-10-16 Daniel Jacobowitz <dan@debian.org>
21320 * linux-i386-low.c (ps_get_thread_area): New.
21321 * linux-x86-64-low.c (ps_get_thread_area): New.
21322 * linux-low.c: Include <sys/syscall.h>.
21323 (linux_kill_one_process): Don't kill the first thread here.
21324 (linux_kill): Kill the first thread here.
21325 (kill_lwp): New function.
21326 (send_sigstop, linux_send_signal): Use it.
21327 * proc-service.c: Clean up #ifdefs.
21328 (fpregset_info): Delete.
21329 (ps_lgetregs): Update and enable implementation.
21330 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
21332 * remote-utils.c (struct sym_cache, symbol_cache): New.
21333 (input_interrupt): Print a clearer message.
21334 (async_io_enabled): New variable.
21335 (enable_async_io, disable_async_io): Use it. Update comments.
21336 (look_up_one_symbol): Use the symbol cache.
21337 * thread-db.c (thread_db_look_up_symbols): New function.
21338 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
21340 2004-10-16 Daniel Jacobowitz <dan@debian.org>
21342 * configure.in: Test for -rdynamic.
21343 * configure: Regenerated.
21344 * Makefile (INTERNAL_LDFLAGS): New.
21345 (gdbserver, gdbreplay): Use it.
21347 2004-09-02 Andrew Cagney <cagney@gnu.org>
21349 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
21351 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
21353 * linux-low.c (linux_wait): Clear all_processes list also.
21355 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
21357 * linux-low.c: Include <errno.h>. Remove extern declaration of
21360 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
21362 * gdbreplay.c, server.h, utils.c: Update copyright years.
21364 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21366 * server.c (main): Print child status or termination signal from
21367 variable 'signal', not 'sig'.
21369 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21371 * linux-low.c (linux_read_memory): Change return type to
21372 int. Check for and return error from ptrace().
21373 * target.c (read_inferior_memory): Change return type to int. Pass
21374 back return status from the_target->read_memory().
21375 * target.h (struct target_ops): Adapt *read_memory() prototype.
21377 (read_inferior_memory): Adapt prototype.
21378 * server.c (main): Return an error packet if
21379 read_inferior_memory() returns an error.
21381 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
21383 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
21384 Unify with other clean targets.
21386 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21388 * server.c (handle_v_cont): Call set_desired_inferior.
21390 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21392 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
21394 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21396 * linux-low.c (linux_wait): Unblock async I/O.
21397 (linux_resume): Block and enable async I/O.
21398 * remote-utils.c (block_async_io, unblock_async_io): New functions.
21399 * server.h (block_async_io, unblock_async_io): Add prototypes.
21401 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21403 * remote-utils.c (remote_open): Print a status notice after
21404 opening a TCP port.
21405 * server.c (attach_inferior): Print a status notice after
21408 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21410 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
21412 2004-02-26 Daniel Jacobowitz <drow@mvista.com>
21414 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
21416 * server.c, target.h: Update copyright years.
21418 2004-02-25 Roland McGrath <roland@redhat.com>
21420 * target.h (struct target_ops): New member `read_auxv'.
21421 * server.c (handle_query): Handle qPart:auxv:read: query using that.
21422 * linux-low.c (linux_read_auxv): New function.
21423 (linux_target_ops): Initialize `read_auxv' member to that.
21425 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21427 Committed by Jim Blandy <jimb@redhat.com>.
21429 * linux-s390-low.c (s390_num_regs): Update.
21430 (s390_regmap): Remove control registers. Use __s390x__ predefine
21431 instead of GPR_SIZE to distiguish s390 and s390x targets.
21433 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
21435 * linux-low.c: Update copyright year.
21436 (check_removed_breakpoint): Clear pending_is_breakpoint.
21437 (linux_set_resume_request, linux_queue_one_thread)
21438 (resume_status_pending_p): New functions.
21439 (linux_continue_one_thread): Use process->resume.
21440 (linux_resume): Only resume threads if there are no pending events.
21441 * linux-low.h (struct process_info): Add resume request
21444 2004-01-30 Daniel Jacobowitz <drow@mvista.com>
21446 * regcache.c (new_register_cache): Clear the allocated register
21447 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
21449 2003-10-13 Daniel Jacobowitz <drow@mvista.com>
21451 * linux-low.c (linux_resume): Take a struct thread_resume *
21453 (linux_wait): Update call.
21454 (resume_ptr): New static variable.
21455 (linux_continue_one_thread): Renamed from
21456 linux_continue_one_process. Use resume_ptr.
21457 (linux_resume): Use linux_continue_one_thread.
21458 * server.c (handle_v_cont, handle_v_requests): New functions.
21459 (myresume): New function.
21460 (main): Handle 'v' case.
21461 * target.h (struct thread_resume): New type.
21462 (struct target_ops): Change argument of "resume" to struct
21464 (myresume): Delete macro.
21466 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
21468 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
21469 (uninstall): Support DESTDIR.
21471 Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
21473 * configure.srv: Add xscale*linux copy of arm*linux entry.
21475 2003-07-24 Daniel Jacobowitz <drow@mvista.com>
21477 * linux-arm-low.c (arm_reinsert_addr): New function.
21478 (the_low_target): Add arm_reinsert_addr.
21480 2003-07-08 Mark Kettenis <kettenis@gnu.org>
21482 * mem-break.c: Remove whitespace at end of file.
21484 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
21486 * configure.in: Check whether we need to prototype strerror.
21487 * server.h: Optionally prototype strerror.
21488 * gdbreplay.c (perror_with_name): Use strerror.
21489 * linux-low.c (linux_attach_lwp): Use strerror.
21490 * utils.c (perror_with_name): Use strerror.
21491 * config.in, configure: Regenerated.
21493 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
21495 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
21496 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
21498 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
21500 * Makefile.in (SFILES): Update.
21501 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
21502 low-sun3.c: Remove files.
21504 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
21506 * linux-low.c: Move comment to linux_thread_alive where it belonged.
21507 (linux_detach_one_process, linux_detach): New functions.
21508 (linux_target_ops): Add linux_detach.
21509 * server.c (main): Handle 'D' packet.
21510 * target.h (struct target_ops): Add "detach" member.
21511 (detach_inferior): Define.
21513 2003-06-13 Mark Kettenis <kettenis@gnu.org>
21515 From Kelley Cook <kelleycook@wideopenwest.com>:
21516 * configure.srv: Accept i[34567]86 variants.
21518 2003-06-05 Daniel Jacobowitz <drow@mvista.com>
21520 * linux-low.c (linux_wait_for_event): Correct comment typos.
21521 (linux_resume_one_process): Call check_removed_breakpoint.
21522 (linux_send_signal): New function.
21523 (linux_target_ops): Add linux_send_signal.
21524 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
21526 * target.h (struct target_ops): Add send_signal.
21528 2003-05-29 Jim Blandy <jimb@redhat.com>
21530 * linux-low.c (usr_store_inferior_registers): Transfer buf in
21531 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
21532 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
21533 away part of the register's value.
21535 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
21537 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
21538 (linux_wait_for_event, linux_init_signals): Likewise.
21540 2003-03-17 Daniel Jacobowitz <drow@mvista.com>
21542 * configure.in: Check for stdlib.h.
21543 * configure: Regenerated.
21544 * config.in: Regenerated.
21546 2003-01-04 Andreas Schwab <schwab@suse.de>
21548 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
21550 2003-01-02 Andrew Cagney <ac131313@redhat.com>
21552 * Makefile.in: Remove obsolete code.
21554 2002-11-20 Daniel Jacobowitz <drow@mvista.com>
21556 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
21557 defined(PT_FPR0_HI).
21559 2002-11-17 Stuart Hughes <seh@zee2.com>
21561 * linux-arm-low.c (arm_num_regs): Increase.
21562 (arm_regmap): Include status register.
21564 2002-11-17 Daniel Jacobowitz <drow@mvista.com>
21566 * linux-low.c (register_addr): Remove incorrect -1 check.
21568 2002-08-29 Daniel Jacobowitz <drow@mvista.com>
21570 * linux-low.c (linux_create_inferior): Call setpgid. Return
21572 (unstopped_p, linux_signal_pid): Remove.
21573 (linux_target_ops): Remove linux_signal_pid.
21574 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
21575 global instead of target method.
21576 * target.h (struct target_ops): Remove signal_pid. Update comment
21577 for create_inferior.
21578 * server.c (signal_pid): New variable.
21579 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
21580 gdbserver. Set the child to be the foreground process group.
21581 (attach_inferior): Set signal_pid.
21583 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
21585 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
21587 2002-08-20 Jim Blandy <jimb@redhat.com>
21589 * Makefile.in (LDFLAGS): Allow the configure script to establish a
21592 2002-08-01 Andrew Cagney <cagney@redhat.com>
21594 * Makefile.in: Make chill references obsolete.
21596 2002-07-24 Kevin Buettner <kevinb@redhat.com>
21598 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
21599 * configure: Regenerate.
21600 * config.in: Regenerate.
21602 2002-07-09 David O'Brien <obrien@FreeBSD.org>
21604 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
21605 (perror_with_name, remote_close, remote_open, expect, play): Static.
21607 2002-07-04 Michal Ludvig <mludvig@suse.cz>
21609 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
21610 byte offsets instead of an array of indexes.
21611 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
21613 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
21615 * regcache.c: Add comment.
21617 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
21619 * thread-db.c: New file.
21620 * proc-service.c: New file.
21621 * acinclude.m4: New file.
21622 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
21623 proc-service.o, and thread-db.o.
21624 (linux-low.o): Add USE_THREAD_DB.
21625 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
21626 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
21627 * aclocal.m4: Regenerated.
21628 * config.in: Regenerated.
21629 * configure: Regenerated.
21630 * configure.in: Check for proc_service.h, sys/procfs.h,
21631 thread_db.h, and linux/elf.h headrs.
21632 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
21633 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
21634 Check for -lthread_db and thread support.
21635 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
21636 PowerPC, and SuperH.
21637 * i387-fp.c: Constify arguments.
21638 * i387-fp.h: Likewise.
21639 * inferiors.c: (struct thread_info): Renamed from
21640 `struct inferior_info'. Remove PID member. Use generic inferior
21641 list header. All uses updated.
21642 (inferiors, signal_pid): Removed.
21643 (all_threads): New variable.
21644 (get_thread): Define.
21645 (add_inferior_to_list): New function.
21646 (for_each_inferior): New function.
21647 (change_inferior_id): New function.
21648 (add_inferior): Removed.
21649 (remove_inferior): New function.
21650 (add_thread): New function.
21651 (free_one_thread): New function.
21652 (remove_thread): New function.
21653 (clear_inferiors): Use for_each_inferior and free_one_thread.
21654 (find_inferior): New function.
21655 (find_inferior_id): New function.
21656 (inferior_target_data): Update argument type.
21657 (set_inferior_target_data): Likewise.
21658 (inferior_regcache_data): Likewise.
21659 (set_inferior_regcache_data): Likewise.
21660 * linux-low.c (linux_bp_reinsert): Remove.
21661 (all_processes, stopping_threads, using_thrads)
21662 (struct pending_signals, debug_threads, pid_of): New.
21663 (inferior_pid): Replace with macro.
21664 (struct inferior_linux_data): Remove.
21665 (get_stop_pc, add_process): New functions.
21666 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
21667 Use add_process and add_thread.
21668 (linux_attach_lwp): New function, based on old linux_attach. Use
21669 add_process and add_thread. Set stop_expected for new threads.
21670 (linux_attach): New function.
21671 (linux_kill_one_process): New function.
21672 (linux_kill): Kill all LWPs.
21673 (linux_thread_alive): Use find_inferior_id.
21674 (check_removed_breakpoints, status_pending_p): New functions.
21675 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
21676 Update. Use WNOHANG. Wait for cloned processes also. Update process
21677 struct for the found process.
21678 (linux_wait_for_event): New function.
21679 (linux_wait): Use it. Support LWPs.
21680 (send_sigstop, wait_for_sigstop, stop_all_processes)
21681 (linux_resume_one_process, linux_continue_one_process): New functions.
21682 (linux_resume): Support LWPs.
21683 (REGISTER_RAW_SIZE): Remove.
21684 (fetch_register): Use register_size instead. Call supply_register.
21685 (usr_store_inferior_registers): Likewise. Call collect_register.
21686 Fix recursive case.
21687 (regsets_fetch_inferior_registers): Improve error message.
21688 (regsets_store_inferior_registers): Add debugging.
21689 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
21690 (unstopped_p, linux_signal_pid): New functions.
21691 (linux_target_ops): Add linux_signal_pid.
21692 (linux_init_signals): New function.
21693 (initialize_low): Call it. Initialize using_threads.
21694 * regcache.c (inferior_regcache_data): Add valid
21696 (get_regcache): Fetch registers lazily. Add fetch argument
21697 and update all callers.
21698 (regcache_invalidate_one, regcache_invalidate): New
21700 (new_register_cache): Renamed from create_register_cache.
21701 Return the new regcache.
21702 (free_register_cache): Change argument to a void *.
21703 (registers_to_string, registers_from_string): Call get_regcache
21704 with fetch flag set.
21705 (register_data): Make static. Pass fetch flag to get_regcache.
21706 (supply_register): Call get_regcache with fetch flag clear.
21707 (collect_register): Call get_regcache with fetch flag set.
21708 (collect_register_as_string): New function.
21709 * regcache.h: Update.
21710 * remote-utils.c (putpkt): Flush after debug output and use
21712 Handle input interrupts while waiting for an ACK.
21713 (input_interrupt): Use signal_pid method.
21714 (getpkt): Flush after debug output and use stderr.
21715 (outreg): Use collect_register_as_string.
21716 (new_thread_notify, dead_thread_notify): New functions.
21717 (prepare_resume_reply): Check using_threads. Set thread_from_wait
21718 and general_thread.
21719 (look_up_one_symbol): Flush after debug output.
21720 * server.c (step_thread, server_waiting): New variables.
21721 (start_inferior): Don't use signal_pid. Update call to mywait.
21722 (attach_inferior): Update call to mywait.
21723 (handle_query): Handle qfThreadInfo and qsThreadInfo.
21724 (main): Don't fetch/store registers explicitly. Use
21725 set_desired_inferior. Support proposed ``Hs'' packet. Update
21727 * server.h: Update.
21728 (struct inferior_list, struct_inferior_list_entry): New.
21729 * target.c (set_desired_inferior): New.
21730 (write_inferior_memory): Constify.
21731 (mywait): New function.
21732 * target.h: Update.
21733 (struct target_ops): New signal_pid method.
21734 (mywait): Removed macro, added prototype.
21736 * linux-low.h (regset_func): Removed.
21737 (regset_fill_func, regset_store_func): New.
21738 (enum regset_type): New.
21739 (struct regset_info): Add type field. Use new operation types.
21740 (struct linux_target_ops): stop_pc renamed to get_pc.
21741 Add decr_pc_after_break and breakpoint_at.
21742 (get_process, get_thread_proess, get_process_thread)
21743 (strut process_info, all_processes, linux_attach_lwp)
21744 (thread_db_init): New.
21746 * linux-arm-low.c (arm_get_pc, arm_set_pc,
21747 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
21748 (the_low_target): Add new members.
21749 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
21750 (i386_store_fpxregset): Constify.
21751 (target_regsets): Add new kind identifier.
21752 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
21753 (i386_set_pc): Add debugging.
21754 (i386_breakpoint_at): New function.
21755 (the_low_target): Add new members.
21756 * linux-mips-low.c (mips_get_pc, mips_set_pc)
21757 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
21758 (mips_breakpoint_at): New.
21759 (the_low_target): Add new members.
21760 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
21761 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
21762 (the_low_target): Add new members.
21763 * linux-sh-low.c (sh_get_pc, sh_set_pc)
21764 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
21765 (the_low_target): Add new members.
21766 * linux-x86-64-low.c (target_regsets): Add new kind
21769 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
21771 From Martin Pool <mbp@samba.org>:
21772 * server.c (gdbserver_usage): New function.
21775 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
21777 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
21778 stop_at -> stop_pc.
21780 2002-05-04 Andrew Cagney <ac131313@redhat.com>
21782 * Makefile.in: Remove obsolete code.
21784 2002-04-24 Michal Ludvig <mludvig@suse.cz>
21786 * linux-low.c (regsets_fetch_inferior_registers),
21787 (regsets_store_inferior_registers): Removed cast to int from
21789 * regcache.h: Added declaration of struct inferior_info.
21791 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
21793 * inferiors.c (struct inferior_info): Add regcache_data.
21794 (add_inferior): Call create_register_cache.
21795 (clear_inferiors): Call free_register_cache.
21796 (inferior_regcache_data, set_inferior_regcache_data): New functions.
21797 * regcache.c (struct inferior_regcache_data): New.
21798 (registers): Remove.
21799 (get_regcache): New function.
21800 (create_register_cache, free_register_cache): New functions.
21801 (set_register_cache): Don't initialize the register cache here.
21802 (registers_to_string, registers_from_string, register_data): Call
21804 * regcache.h: Add prototypes.
21805 * server.h: Likewise.
21807 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
21809 * mem-break.c: New file.
21810 * mem-break.h: New file.
21811 * Makefile.in: Add mem-break.o rule; update server.h
21813 * inferiors.c (struct inferior_info): Add target_data
21815 (clear_inferiors): Free target_data member if set.
21816 (inferior_target_data, set_inferior_target_data): New functions.
21817 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
21818 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
21819 * linux-low.c (linux_bp_reinsert): New variable.
21820 (struct inferior_linux_data): New.
21821 (linux_create_inferior): Use set_inferior_target_data.
21822 (linux_attach): Likewise. Call add_inferior.
21823 (linux_wait_for_one_inferior): New function.
21824 (linux_wait): Call it.
21825 (linux_write_memory): Add const.
21826 (initialize_low): Call set_breakpoint_data.
21827 * linux-low.h (struct linux_target_ops): Add breakpoint
21829 * server.c (attach_inferior): Remove extra add_inferior
21831 * server.h: Include mem-break.h. Update inferior.c
21833 * target.c (read_inferior_memory)
21834 (write_inferior_memory): New functions.
21835 * target.h (read_inferior_memory)
21836 (write_inferior_memory): Change macros to prototypes.
21837 (struct target_ops): Update comments. Add const to write_memory
21840 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
21842 * linux-low.c (usr_store_inferior_registers): Support
21843 registers which are allowed to fail to store.
21844 * linux-low.h (linux_target_ops): Likewise.
21845 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
21846 (ppc_cannot_store_register): FPSCR may not be storable.
21848 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
21850 * server.h: Include <string.h> if HAVE_STRING_H.
21851 * ChangeLog: Correct paths in last ChangeLog entry.
21853 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
21855 * linux-low.h: Remove obsolete prototypes.
21856 (struct linux_target_ops): New.
21857 (extern the_low_target): New.
21858 * linux-low.c (num_regs, regmap): Remove declarations.
21859 (register_addr): Use the_low_target explicitly.
21860 (fetch_register): Likewise.
21861 (usr_fetch_inferior_registers): Likewise.
21862 (usr_store_inferior_registers): Likewise.
21863 * linux-arm-low.c (num_regs): Remove.
21864 (arm_num_regs): Define.
21865 (arm_regmap): Renamed from regmap, made static.
21866 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
21868 (arm_cannot_store_register): Renamed from cannot_store_register,
21870 (the_low_target): New.
21871 * linux-i386-low.c (num_regs): Remove.
21872 (i386_num_regs): Define.
21873 (i386_regmap): Renamed from regmap, made static.
21874 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
21876 (i386_cannot_store_register): Renamed from cannot_store_register,
21878 (the_low_target): New.
21879 * linux-ia64-low.c (num_regs): Remove.
21880 (ia64_num_regs): Define.
21881 (ia64_regmap): Renamed from regmap, made static.
21882 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
21884 (ia64_cannot_store_register): Renamed from cannot_store_register,
21886 (the_low_target): New.
21887 * linux-m68k-low.c (num_regs): Remove.
21888 (m68k_num_regs): Define.
21889 (m68k_regmap): Renamed from regmap, made static.
21890 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
21892 (m68k_cannot_store_register): Renamed from cannot_store_register,
21894 (the_low_target): New.
21895 * linux-mips-low.c (num_regs): Remove.
21896 (mips_num_regs): Define.
21897 (mips_regmap): Renamed from regmap, made static.
21898 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
21900 (mips_cannot_store_register): Renamed from cannot_store_register,
21902 (the_low_target): New.
21903 * linux-ppc-low.c (num_regs): Remove.
21904 (ppc_num_regs): Define.
21905 (ppc_regmap): Renamed from regmap, made static.
21906 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
21908 (ppc_cannot_store_register): Renamed from cannot_store_register,
21910 (the_low_target): New.
21911 * linux-s390-low.c (num_regs): Remove.
21912 (s390_num_regs): Define.
21913 (s390_regmap): Renamed from regmap, made static.
21914 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
21916 (s390_cannot_store_register): Renamed from cannot_store_register,
21918 (the_low_target): New.
21919 * linux-sh-low.c (num_regs): Remove.
21920 (sh_num_regs): Define.
21921 (sh_regmap): Renamed from regmap, made static.
21922 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
21924 (sh_cannot_store_register): Renamed from cannot_store_register,
21926 (the_low_target): New.
21927 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
21928 (the_low_target): New.
21930 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
21932 * Makefile.in: Add stamp-h target.
21933 * configure.in: Create stamp-h.
21934 * configure: Regenerated.
21936 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
21938 * inferiors.c: New file.
21939 * target.c: New file.
21940 * target.h: New file.
21941 * Makefile.in: Add target.o and inferiors.o. Update
21943 * linux-low.c (inferior_pid): New static variable,
21944 moved from server.c.
21945 (linux_create_inferior): Renamed from create_inferior.
21946 Call add_inferior. Return 0 on success instead of a PID.
21947 (linux_attach): Renamed from myattach.
21948 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
21949 (linux_thread_alive): Renamed from mythread_alive.
21950 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
21952 (linux_resume): Renamed from myresume. Add missing ``return 0''.
21953 (regsets_store_inferior_registers): Correct error message.
21954 Add missing ``return 0''.
21955 (linux_fetch_registers): Renamed from fetch_inferior_registers.
21956 (linux_store_registers): Renamed from store_inferior_registers.
21957 (linux_read_memory): Renamed from read_inferior_memory.
21958 (linux_write_memory): Renamed from write_inferior_memory.
21959 (linux_target_ops): New structure.
21960 (initialize_low): Call set_target_ops ().
21961 * remote-utils.c (unhexify): New function.
21962 (hexify): New function.
21963 (input_interrupt): Send signals to ``signal_pid''.
21964 * server.c (inferior_pid): Remove.
21965 (start_inferior): Update create_inferior call.
21966 (attach_inferior): Call add_inferior.
21967 (handle_query): New function.
21968 (main): Call handle_query for `q' packets.
21969 * server.h: Include "target.h". Remove obsolete prototypes.
21970 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
21972 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
21974 * Makefile.in: Add WARN_CFLAGS. Update configury
21976 * configure.in: Check for <string.h>
21977 * configure: Regenerate.
21978 * config.in: Regenerate.
21979 * gdbreplay.c: Include needed system headers.
21980 (remote_open): Remove strchr prototype.
21981 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
21982 * regcache.c (supply_register): Change buf argument to const void *.
21983 (supply_register_by_name): Likewise.
21984 (collect_register): Change buf argument to void *.
21985 (collect_register_by_name): Likewise.
21986 * regcache.h: Add missing prototypes.
21987 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
21988 * server.c (handle_query): New function.
21989 (attached): New static variable, moved out of main.
21990 (main): Quiet longjmp clobber warnings.
21991 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
21992 * utils.c (error): Remove NORETURN.