1 2020-04-08 Tom Tromey <tromey@adacore.com>
3 * win32-low.h (struct win32_target_ops) <decr_pc_after_break>: New
5 * win32-i386-low.c (the_low_target): Update.
6 * win32-arm-low.c (the_low_target): Update.
8 2020-04-08 Tom Tromey <tromey@adacore.com>
10 * win32-low.h (win32_process_target::read_pc)
11 (win32_process_target::write_pc): Declare.
12 * win32-low.c (win32_process_target::read_pc)
13 (win32_process_target::write_pc): New methods.
14 * win32-i386-low.c (i386_win32_get_pc, i386_win32_set_pc): New
16 (the_low_target): Update.
17 * win32-arm-low.c (arm_win32_get_pc, arm_win32_set_pc): New
19 (the_low_target): Update.
21 2020-04-08 Tom Tromey <tromey@adacore.com>
23 * win32-low.c (win32_kill, get_child_debug_event): Use
26 2020-04-08 Tom Tromey <tromey@adacore.com>
28 * win32-low.c (child_continue): Call continue_last_debug_event.
30 2020-04-08 Tom Tromey <tromey@adacore.com>
32 * win32-low.c (handle_exception): Remove.
33 (windows_nat::handle_ms_vc_exception): New function.
34 (get_child_debug_event): Add "continue_status" parameter.
38 2020-04-08 Tom Tromey <tromey@adacore.com>
40 * win32-low.c (windows_nat::handle_load_dll): Rename from
41 handle_load_dll. No longer static.
42 (windows_nat::handle_unload_dll): Rename from handle_unload_dll.
45 2020-04-08 Tom Tromey <tromey@adacore.com>
47 * win32-low.c (handle_output_debug_string): Add parameter. Change
49 (win32_kill, get_child_debug_event): Update.
51 2020-04-08 Tom Tromey <tromey@adacore.com>
53 * win32-low.c (current_process_handle, current_process_id)
54 (main_thread_id, last_sig, current_event, siginfo_er): Move to
57 2020-04-08 Tom Tromey <tromey@adacore.com>
59 * win32-low.c (get_image_name): Remove.
60 (handle_load_dll): Update.
62 2020-04-08 Tom Tromey <tromey@adacore.com>
64 * win32-low.c (windows_nat::thread_rec): Rename from thread_rec.
65 No longer static. Change parameters.
66 (child_add_thread, child_fetch_inferior_registers)
67 (child_store_inferior_registers, win32_resume)
68 (win32_get_tib_address): Update.
70 2020-04-08 Tom Tromey <tromey@adacore.com>
72 * win32-low.h (struct win32_target_ops): Use qualified names where
74 * win32-i386-low.c: Add "using namespace".
75 * win32-low.c: Add "using namespace".
76 * win32-arm-low.c: Add "using namespace".
78 2020-04-08 Tom Tromey <tromey@adacore.com>
80 * win32-low.c (delete_thread_info): Don't call CloseHandle.
82 2020-04-08 Tom Tromey <tromey@adacore.com>
84 * win32-low.c (win32_require_context, suspend_one_thread): Use
85 windows_thread_info::suspend.
86 (continue_one_thread): Use windows_thread_info::resume.
87 * configure.srv (srv_tgtobj): Add windows-nat.o when needed.
89 2020-04-08 Tom Tromey <tromey@adacore.com>
91 * win32-i386-low.c (update_debug_registers)
92 (i386_prepare_to_resume, i386_thread_added): Update.
94 2020-04-08 Tom Tromey <tromey@adacore.com>
96 * win32-low.c (child_add_thread): Use new.
97 (delete_thread_info): Use delete.
99 2020-04-08 Tom Tromey <tromey@adacore.com>
101 * win32-low.h (struct windows_thread_info): Remove.
103 2020-04-08 Tom Tromey <tromey@adacore.com>
105 * win32-low.h (struct windows_thread_info): Rename from
106 win32_thread_info. Remove typedef.
107 (struct win32_target_ops, win32_require_context): Update.
108 * win32-low.c (win32_get_thread_context)
109 (win32_set_thread_context, win32_prepare_to_resume)
110 (win32_require_context, thread_rec, child_add_thread)
111 (delete_thread_info, continue_one_thread)
112 (child_fetch_inferior_registers, child_store_inferior_registers)
113 (win32_resume, suspend_one_thread, win32_get_tib_address):
115 * win32-i386-low.c (update_debug_registers)
116 (win32_get_current_dr, i386_get_thread_context)
117 (i386_prepare_to_resume, i386_thread_added, i386_single_step)
118 (i386_fetch_inferior_register, i386_store_inferior_register):
120 * win32-arm-low.c (arm_get_thread_context)
121 (arm_fetch_inferior_register, arm_store_inferior_register):
124 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
126 * linux-low.h (struct linux_target_ops): Remove.
127 (the_low_target): Remove.
128 * linux-x86-low.cc (the_low_target): Remove.
129 * linux-aarch64-low.cc (the_low_target): Ditto.
130 * linux-arm-low.cc (the_low_target): Ditto.
131 * linux-bfin-low.cc (the_low_target): Ditto.
132 * linux-cris-low.cc (the_low_target): Ditto.
133 * linux-crisv32-low.cc (the_low_target): Ditto.
134 * linux-ia64-low.cc (the_low_target): Ditto.
135 * linux-m32r-low.cc (the_low_target): Ditto.
136 * linux-m68k-low.cc (the_low_target): Ditto.
137 * linux-mips-low.cc (the_low_target): Ditto.
138 * linux-nios2-low.cc (the_low_target): Ditto.
139 * linux-ppc-low.cc (the_low_target): Ditto.
140 * linux-riscv-low.cc (the_low_target): Ditto.
141 * linux-s390-low.cc (the_low_target): Ditto.
142 * linux-sh-low.cc (the_low_target): Ditto.
143 * linux-sparc-low.cc (the_low_target): Ditto.
144 * linux-tic6x-low.cc (the_low_target): Ditto.
145 * linux-tile-low.cc (the_low_target): Ditto.
146 * linux-xtensa-low.cc (the_low_target): Ditto.
148 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
150 Remove the 'get_ipa_tdesc_idx' linux target op and let a concrete
151 linux target define the op by overriding the declaration in
152 process_stratum_target.
154 * linux-low.h (struct linux_target_ops): Remove the op.
155 (class linux_process_target) <get_ipa_tdesc_idx>: Remove.
156 * linux-low.cc (linux_process_target::get_ipa_tdesc_idx): Remove.
157 * linux-x86-low.cc (class x86_target) <get_ipa_tdesc_idx>: Declare.
158 (x86_get_ipa_tdesc_idx): Turn into...
159 (x86_target::get_ipa_tdesc_idx): ...this.
160 (the_low_target): Remove the op field.
161 * linux-ppc-low.cc (class ppc_target) <get_ipa_tdesc_idx>: Declare.
162 (ppc_get_ipa_tdesc_idx): Turn into...
163 (ppc_target::get_ipa_tdesc_idx): ...this.
164 (the_low_target): Remove the op field.
165 * linux-s390-low.cc (class s390_target) <get_ipa_tdesc_idx>: Declare.
166 (s390_get_ipa_tdesc_idx): Turn into...
167 (s390_target::get_ipa_tdesc_idx): ...this.
168 (the_low_target): Remove the op field.
170 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
172 Turn the 'get_syscall_trapinfo' linux target op into a method
173 of process_stratum_target.
175 * linux-low.h (struct linux_target_ops): Remove the op.
176 (class linux_process_target) <get_syscall_trapinfo>
177 <gdb_catch_this_syscall>
178 <low_supports_catch_syscall>
179 <low_get_syscall_trapinfo>: Declare.
180 * linux-low.cc (get_syscall_trapinfo): Turn into...
181 (linux_process_target::get_syscall_trapinfo): ...this.
182 (linux_process_target::low_get_syscall_trapinfo): Define.
183 (gdb_catch_this_syscall_p): Turn into...
184 (linux_process_target::gdb_catch_this_syscall): ...this.
185 (linux_process_target::low_supports_catch_syscall): Define.
187 Update the callers below.
189 (linux_process_target::wait_1)
190 (linux_process_target::supports_catch_syscall)
192 * linux-x86-low.cc (class x86_target) <low_supports_catch_syscall>
193 <low_get_syscall_trapinfo>: Declare.
194 (x86_target::low_supports_catch_syscall): Define.
195 (x86_get_syscall_trapinfo): Turn into...
196 (x86_target::low_get_syscall_trapinfo): ...this.
197 (the_low_target): Remove the op field.
198 * linux-aarch64-low.cc (class aarch64_target)
199 <low_supports_catch_syscall>
200 <low_get_syscall_trapinfo>: Declare.
201 (aarch64_target::low_supports_catch_syscall): Define.
202 (aarch64_get_syscall_trapinfo): Turn into...
203 (aarch64_target::low_get_syscall_trapinfo): ...this.
204 (the_low_target): Remove the op field.
205 * linux-arm-low.cc (class arm_target) <low_supports_catch_syscall>
206 <low_get_syscall_trapinfo>: Declare.
207 (arm_target::low_supports_catch_syscall): Define.
208 (arm_get_syscall_trapinfo): Turn into...
209 (arm_target::low_get_syscall_trapinfo): ...this.
210 (the_low_target): Remove the op field.
211 * linux-ppc-low.cc (the_low_target): Remove the op field.
212 * linux-s390-low.cc (the_low_target): Remove the op field.
214 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
216 Remove the 'supports_hardware_single_step' linux target op and
217 override the process_stratum_target's op definition in
218 linux_process_target to return true.
220 * linux-low.h (struct linux_target_ops): Remove the op.
221 (class linux_process_target) <finish_step_over>
222 <maybe_hw_step>: Declare.
223 * linux-low.cc (can_hardware_single_step): Remove.
224 (maybe_hw_step): Turn into...
225 (linux_process_target::maybe_hw_step): ...this.
226 (finish_step_over): Turn into...
227 (linux_process_target::finish_step_over): ...this.
228 (linux_process_target::supports_hardware_single_step): Update
231 Update the callers below.
233 (linux_process_target::single_step)
234 (linux_process_target::resume_one_lwp_throw)
236 * linux-arm-low.cc (class arm_target)
237 <supports_hardware_single_step>: Declare.
238 (arm_supports_hardware_single_step): Turn into...
239 (arm_target::supports_hardware_single_step): ...this.
240 (the_low_target): Remove the op field.
241 * linux-x86-low.cc (x86_supports_hardware_single_step): Remove.
242 (the_low_target): Remove the op field.
243 * linux-aarch64-low.cc (aarch64_supports_hardware_single_step):
245 (the_low_target): Remove the op field.
246 * linux-bfin-low.cc (bfin_supports_hardware_single_step): Remove.
247 (the_low_target): Remove the op field.
248 * linux-crisv32-low.cc (cris_supports_hardware_single_step): Remove.
249 (the_low_target): Remove the op field.
250 * linux-m32r-low.cc (m32r_supports_hardware_single_step): Remove.
251 (the_low_target): Remove the op field.
252 * linux-m68k-low.cc (m68k_supports_hardware_single_step): Remove.
253 (the_low_target): Remove the op field.
254 * linux-ppc-low.cc (ppc_supports_hardware_single_step): Remove.
255 (the_low_target): Remove the op field.
256 * linux-s390-low.cc (s390_supports_hardware_single_step): Remove.
257 (the_low_target): Remove the op field.
258 * linux-sh-low.cc (sh_supports_hardware_single_step): Remove.
259 (the_low_target): Remove the op field.
260 * linux-tic6x-low.cc (tic6x_supports_hardware_single_step): Remove.
261 (the_low_target): Remove the op field.
262 * linux-tile-low.cc (tile_supports_hardware_single_step): Remove.
263 (the_low_target): Remove the op field.
264 * linux-xtensa-low.cc (xtensa_supports_hardware_single_step):
266 (the_low_target): Remove the op field.
268 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
270 Turn the 'supports_range_stepping' linux target op into a method
271 of linux_process_target.
273 * linux-low.h (struct linux_target_ops): Remove the op.
274 (class linux_process_target) <low_supports_range_stepping>: Declare.
275 * linux-low.cc (linux_process_target::low_supports_range_stepping):
277 (linux_process_target::supports_range_stepping): Update the call
279 * linux-x86-low.cc (class x86_target)
280 <low_supports_range_stepping>: Declare.
281 (x86_supports_range_stepping): Turn into...
282 (x86_target::low_supports_range_stepping): ...this.
283 (the_low_target): Remove the op field.
284 * linux-aarch64-low.cc (class aarch64_target)
285 <low_supports_range_stepping>: Declare.
286 (aarch64_supports_range_stepping): Turn into...
287 (aarch64_target::low_supports_range_stepping): ...this.
288 (the_low_target): Remove the op field.
289 * linux-arm-low.cc (the_low_target): Remove the op field.
290 * linux-bfin-low.cc (the_low_target): Ditto.
291 * linux-crisv32-low.cc (the_low_target): Ditto.
292 * linux-m32r-low.cc (the_low_target): Ditto.
293 * linux-m68k-low.cc (the_low_target): Ditto.
294 * linux-ppc-low.cc (the_low_target): Ditto.
295 * linux-s390-low.cc (the_low_target): Ditto.
296 * linux-sh-low.cc (the_low_target): Ditto.
297 * linux-tic6x-low.cc (the_low_target): Ditto.
298 * linux-tile-low.cc (the_low_target): Ditto.
299 * linux-xtensa-low.cc (the_low_target): Ditto.
301 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
303 Remove the 'emit_ops' linux target ops and let the concrete
304 linux target define the op by overriding the declaration of
305 process_stratum_target.
307 * linux-low.h (struct linux_target_ops): Remove the op.
308 (class linux_process_target) <emit_ops>: Remove.
309 * linux-low.cc (linux_process_target::emit_ops): Remove.
310 * linux-x86-low.cc (class x86_target) <emit_ops>: Declare.
311 (x86_emit_ops): Turn into...
312 (x86_target::emit_ops): ...this.
313 (the_low_target): Remove the op field.
314 * linux-aarch64-low.cc (class aarch64_target) <emit_ops>: Declare.
315 (aarch64_emit_ops): Turn into...
316 (aarch64_target::emit_ops): ...this.
317 (the_low_target): Remove the op field.
318 * linux-ppc-low.cc (class ppc_target) <emit_ops>: Declare.
319 (ppc_emit_ops): Turn into...
320 (ppc_target::emit_ops): ...this.
321 (the_low_target): Remove the op field.
322 * linux-s390-low.cc (class s390_target) <emit_ops>: Declare.
323 (s390_emit_ops): Turn into...
324 (s390_target::emit_ops): ...this.
325 (the_low_target): Remove the op field.
326 * linux-arm-low.cc (the_low_target): Remove the op field.
327 * linux-bfin-low.cc (the_low_target): Ditto.
328 * linux-crisv32-low.cc (the_low_target): Ditto.
329 * linux-m32r-low.cc (the_low_target): Ditto.
330 * linux-m68k-low.cc (the_low_target): Ditto.
331 * linux-sh-low.cc (the_low_target): Ditto.
332 * linux-tic6x-low.cc (the_low_target): Ditto.
333 * linux-tile-low.cc (the_low_target): Ditto.
334 * linux-xtensa-low.cc (the_low_target): Ditto.
336 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
338 Remove the 'install_fast_tracepoint_jump_pad' and
339 'get_min_fast_tracepoint_insn_len' linux target ops to let the
340 concrete linux target define the ops by overriding the declarations
341 of process_stratum_target.
343 * linux-low.h (struct linux_target_ops): Remove the ops.
344 (class linux_process_target) <supports_fast_tracepoints>
345 <install_fast_tracepoint_jump_pad>
346 <get_min_fast_tracepoint_insn_len>: Remove.
347 * linux-low.cc (linux_process_target::supports_fast_tracepoints)
348 (linux_process_target::install_fast_tracepoint_jump_pad)
349 (linux_process_target::get_min_fast_tracepoint_insn_len): Remove.
350 * linux-x86-low.cc (class x86_target) <supports_fast_tracepoints>
351 <install_fast_tracepoint_jump_pad>
352 <get_min_fast_tracepoint_insn_len>: Declare.
353 (x86_target::supports_fast_tracepoints): Define.
354 (x86_install_fast_tracepoint_jump_pad): Turn into...
355 (x86_target::install_fast_tracepoint_jump_pad): ...this.
356 (x86_get_min_fast_tracepoint_insn_len): Turn into...
357 (x86_target::get_min_fast_tracepoint_insn_len): ...this.
358 (the_low_target): Remove the op fields.
359 * linux-aarch64-low.cc (class aarch64_target)
360 <supports_fast_tracepoints>
361 <install_fast_tracepoint_jump_pad>
362 <get_min_fast_tracepoint_insn_len>: Declare.
363 (aarch64_target::supports_fast_tracepoints): Define.
364 (aarch64_install_fast_tracepoint_jump_pad): Turn into...
365 (aarch64_target::install_fast_tracepoint_jump_pad): ...this.
366 (aarch64_get_min_fast_tracepoint_insn_len): Turn into...
367 (aarch64_target::get_min_fast_tracepoint_insn_len): ...this.
368 (the_low_target): Remove the op fields.
369 * linux-ppc-low.cc (class ppc_target) <supports_fast_tracepoints>
370 <install_fast_tracepoint_jump_pad>
371 <get_min_fast_tracepoint_insn_len>: Declare.
372 (ppc_target::supports_fast_tracepoints): Define.
373 (ppc_install_fast_tracepoint_jump_pad): Turn into...
374 (ppc_target::install_fast_tracepoint_jump_pad): ...this.
375 (ppc_get_min_fast_tracepoint_insn_len): Turn into...
376 (ppc_target::get_min_fast_tracepoint_insn_len): ...this.
377 (the_low_target): Remove the op fields.
378 * linux-s390-low.cc (class s390_target) <supports_fast_tracepoints>
379 <install_fast_tracepoint_jump_pad>
380 <get_min_fast_tracepoint_insn_len>: Declare.
381 (s390_target::supports_fast_tracepoints): Define.
382 (s390_install_fast_tracepoint_jump_pad): Turn into...
383 (s390_target::install_fast_tracepoint_jump_pad): ...this.
384 (s390_get_min_fast_tracepoint_insn_len): Turn into...
385 (s390_target::get_min_fast_tracepoint_insn_len): ...this.
386 (the_low_target): Remove the op fields.
387 * linux-arm-low.cc (the_low_target): Remove the op fields.
388 * linux-bfin-low.cc (the_low_target): Ditto.
389 * linux-crisv32-low.cc (the_low_target): Ditto.
390 * linux-m32r-low.cc (the_low_target): Ditto.
391 * linux-m68k-low.cc (the_low_target): Ditto.
392 * linux-sh-low.cc (the_low_target): Ditto.
393 * linux-tic6x-low.cc (the_low_target): Ditto.
394 * linux-tile-low.cc (the_low_target): Ditto.
395 * linux-xtensa-low.cc (the_low_target): Ditto.
397 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
399 Turn the 'get_thread_area' linux target op into a method of
400 process_stratum_target.
402 * linux-low.h (struct linux_target_ops): Remove the op.
403 (class linux_process_target) <stuck_in_jump_pad>
404 <linux_fast_tracepoint_collecting>
405 <low_get_thread_area>: Declare.
406 * linux-low.cc (supports_fast_tracepoints): Remove.
407 (linux_fast_tracepoint_collecting): Turn into...
408 (linux_process_target::linux_fast_tracepoint_collecting): ...this.
409 (linux_process_target::low_get_thread_area): Define.
410 (stuck_in_jump_pad_callback): Turn into...
411 (linux_process_target::stuck_in_jump_pad): ...this.
413 Update the caller below.
415 (linux_process_target::stabilize_threads)
417 * linux-x86-low.cc (class x86_target) <low_get_thread_area>:
419 (x86_get_thread_area): Turn into...
420 (x86_target::low_get_thread_area): ...this.
421 (the_low_target): Remove the op field.
422 * linux-aarch64-low.cc (class aarch64_target) <low_get_thread_area>:
424 (aarch64_get_thread_area): Turn into...
425 (aarch64_target::low_get_thread_area): ...this.
426 (the_low_target): Remove the op field.
427 * linux-ppc-low.cc (class ppc_target) <low_get_thread_area>:
429 (ppc_get_thread_area): Turn into...
430 (ppc_target::low_get_thread_area): ...this.
431 (the_low_target): Remove the op field.
432 * linux-s390-low.cc (class s390_target) <low_get_thread_area>:
434 (s390_get_thread_area): Turn into...
435 (s390_target::low_get_thread_area): ...this.
436 (the_low_target): Remove the op field.
437 * linux-arm-low.cc (the_low_target): Remove the op field.
438 * linux-bfin-low.cc (the_low_target): Ditto.
439 * linux-crisv32-low.cc (the_low_target): Ditto.
440 * linux-m32r-low.cc (the_low_target): Ditto.
441 * linux-m68k-low.cc (the_low_target): Ditto.
442 * linux-sh-low.cc (the_low_target): Ditto.
443 * linux-tic6x-low.cc (the_low_target): Ditto.
444 * linux-tile-low.cc (the_low_target): Ditto.
445 * linux-xtensa-low.cc (the_low_target): Ditto.
447 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
449 Remote the 'supports_tracepoints' linux target op and let the
450 concrete linux target define it by overriding the op declared in
451 process_stratum_target.
453 * linux-low.h (struct linux_target_ops): Remove the op.
454 (class linux_process_target) <supports_tracepoints>: Remove.
455 * linux-low.cc (linux_process_target::supports_tracepoints): Remove.
456 * linux-x86-low.cc (class x86_target) <supports_tracepoints>:
458 (x86_supports_tracepoints): Turn into...
459 (x86_target::supports_tracepoints): ...this.
460 (the_low_target): Remove the op field.
461 * linux-aarch64-low.cc (class aarch64_target)
462 <supports_tracepoints>: Declare.
463 (aarch64_supports_tracepoints): Turn into...
464 (aarch64_target::supports_tracepoints): ...this.
465 (the_low_target): Remove the op field.
466 * linux-ppc-low.cc (class ppc_target) <supports_tracepoints>:
468 (ppc_supports_tracepoints): Turn into...
469 (ppc_target::supports_tracepoints): ...this.
470 (the_low_target): Remove the op field.
471 * linux-s390-low.cc (class s390_target) <supports_tracepoints>:
473 (s390_supports_tracepoints): Turn into...
474 (s390_target::supports_tracepoints): ...this.
475 (the_low_target): Remove the op field.
476 * linux-arm-low.cc (the_low_target): Remove the op field.
477 * linux-bfin-low.cc (the_low_target): Ditto.
478 * linux-crisv32-low.cc (the_low_target): Ditto.
479 * linux-m32r-low.cc (the_low_target): Ditto.
480 * linux-m68k-low.cc (the_low_target): Ditto.
481 * linux-sh-low.cc (the_low_target): Ditto.
482 * linux-tic6x-low.cc (the_low_target): Ditto.
483 * linux-tile-low.cc (the_low_target): Ditto.
484 * linux-xtensa-low.cc (the_low_target): Ditto.
486 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
488 Remove the 'process_qsupported' linux target op and let a concrete
489 linux target define the op by overriding the op declaration in
490 process_stratum_target.
492 * linux-low.h (struct linux_target_ops): Remove the op.
493 (class linux_process_target) <process_qsupported>: Remove.
494 * linux-low.cc (linux_process_target::process_qsupported): Remove.
495 * linux-x86-low.cc (class x86_target) <process_qsupported>: Declare.
496 (x86_linux_process_qsupported): Turn into...
497 (x86_target::process_qsupported): ...this.
498 (the_low_target): Remove the op field.
499 * linux-aarch64-low.cc (the_low_target): Remove the op
501 * linux-arm-low.cc (the_low_target): Ditto.
502 * linux-bfin-low.cc (the_low_target): Ditto.
503 * linux-crisv32-low.cc (the_low_target): Ditto.
504 * linux-m32r-low.cc (the_low_target): Ditto.
505 * linux-m68k-low.cc (the_low_target): Ditto.
506 * linux-ppc-low.cc (the_low_target): Ditto.
507 * linux-s390-low.cc (the_low_target): Ditto.
508 * linux-sh-low.cc (the_low_target): Ditto.
509 * linux-tic6x-low.cc (the_low_target): Ditto.
510 * linux-tile-low.cc (the_low_target): Ditto.
511 * linux-xtensa-low.cc (the_low_target): Ditto.
513 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
515 Turn the 'prepare_to_resume' linux target op into a method of
516 linux_process_target.
518 * linux-low.h (struct linux_target_ops): Remove the op.
519 (class linux_process_target) <low_prepare_to_resume>: Declare.
520 * linux-low.cc (linux_process_target::low_prepare_to_resume):
523 Update the callers below:
525 (linux_process_target::resume_one_lwp_throw)
526 (linux_process_target::low_prepare_to_resume)
528 * linux-x86-low.cc (class x86_target) <low_prepare_to_resume>:
530 (x86_target::low_prepare_to_resume): Define.
531 (the_low_target): Remove the op field.
532 * linux-aarch64-low.cc (class aarch64_target)
533 <low_prepare_to_resume>: Declare.
534 (aarch64_target::low_prepare_to_resume): Define.
535 (the_low_target): Remove the op field.
536 * linux-arm-low.cc (class arm_target) <low_prepare_to_resume>:
538 (arm_prepare_to_resume): Turn into...
539 (arm_target::low_prepare_to_resume): ...this.
540 (the_low_target): Remove the op field.
541 * linux-mips-low.cc (class mips_target) <low_prepare_to_resume>:
543 (mips_linux_prepare_to_resume): Turn into...
544 (mips_target::low_prepare_to_resume): ...this.
545 (the_low_target): Remove the op field.
546 * linux-bfin-low.cc (the_low_target): Remove the op field.
547 * linux-crisv32-low.cc (the_low_target): Ditto.
548 * linux-m32r-low.cc (the_low_target): Ditto.
549 * linux-m68k-low.cc (the_low_target): Ditto.
550 * linux-ppc-low.cc (the_low_target): Ditto.
551 * linux-s390-low.cc (the_low_target): Ditto.
552 * linux-sh-low.cc (the_low_target): Ditto.
553 * linux-tic6x-low.cc (the_low_target): Ditto.
554 * linux-tile-low.cc (the_low_target): Ditto.
555 * linux-xtensa-low.cc (the_low_target): Ditto.
557 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
559 Turn the 'new_process', 'delete_process', 'new_thread',
560 'delete_thread', and 'new_fork' linux target ops into methods
561 of linux_process_target.
563 * linux-low.h (struct linux_target_ops): Remove the ops.
564 (class linux_process_target) <add_linux_process>
569 <check_zombie_leaders>
575 <low_new_fork>: Declare.
576 * linux-low.cc (delete_lwp): Turn into...
577 (linux_process_target::delete_lwp): ...this.
578 (linux_process_target::low_delete_thread): Define.
579 (linux_add_process): Turn into...
580 (linux_process_target::add_linux_process): ...this.
581 (linux_process_target::low_new_process): Define.
582 (linux_process_target::low_delete_process): Define.
583 (linux_process_target::low_new_fork): Define.
584 (add_lwp): Turn into...
585 (linux_process_target::add_lwp): ...this.
586 (linux_process_target::low_new_thread): Define.
587 (linux_attach_lwp): Turn into...
588 (linux_process_target::attach_lwp): ...this.
589 (linux_detach_one_lwp): Turn into...
590 (linux_process_target::detach_one_lwp): ...this.
591 (linux_detach_lwp_callback): Remove and inline...
592 (linux_process_target::detach): ...here.
593 (check_zombie_leaders): Turn into...
594 (linux_process_target::check_zombie_leaders): ...this.
595 (filter_exit_event): Turn into...
596 (linux_process_target::filter_exit_event): ...this.
598 Update the callers below.
600 (linux_process_target::handle_extended_wait)
601 (linux_process_target::create_inferior)
602 (attach_proc_task_lwp_callback)
603 (linux_process_target::attach)
604 (linux_process_target::detach)
605 (linux_process_target::mourn)
606 * thread-db.cc (attach_thread)
608 * linux-x86-low.cc (class x86_target) <low_new_process>
612 <low_new_fork>: Declare.
613 (x86_linux_new_process): Turn into...
614 (x86_target::low_new_process): ...this.
615 (x86_linux_delete_process): Turn into...
616 (x86_target::low_delete_process): ...this.
617 (x86_target::low_new_thread): Define.
618 (x86_target::low_delete_thread): Define.
619 (x86_linux_new_fork): Turn into...
620 (x86_target::low_new_fork): ...this.
621 (the_low_target): Remove the op fields.
622 * linux-aarch64-low.cc (class aarch64_target) <low_new_process>
626 <low_new_fork>: Declare.
627 (aarch64_linux_new_process): Turn into...
628 (aarch64_target::low_new_process): ...this.
629 (aarch64_linux_delete_process): Turn into...
630 (aarch64_target::low_delete_process): ...this.
631 (aarch64_target::low_new_thread): Define.
632 (aarch64_target::low_delete_thread): Define.
633 (aarch64_linux_new_fork): Turn into...
634 (aarch64_target::low_new_fork): ...this.
635 (the_low_target): Remove the op fields.
636 * linux-arm-low.cc (class arm_target) <low_new_process>
640 <low_new_fork>: Declare.
641 (arm_new_process): Turn into...
642 (arm_target::low_new_process): ...this.
643 (arm_delete_process): Turn into...
644 (arm_target::low_delete_process): ...this.
645 (arm_new_thread): Turn into...
646 (arm_target::low_new_thread): ...this.
647 (arm_delete_thread): Turn into...
648 (arm_target::low_delete_thread): ...this.
649 (arm_new_fork): Turn into...
650 (arm_target::low_new_fork): ...this.
651 (the_low_target): Remove the op fields.
652 * linux-mips-low.cc (class mips_target) <low_new_process>
656 <low_new_fork>: Declare.
657 (mips_linux_new_process): Turn into...
658 (mips_target::low_new_process): ...this.
659 (mips_linux_delete_process): Turn into...
660 (mips_target::low_delete_process): ...this.
661 (mips_linux_new_thread): Turn into...
662 (mips_target::low_new_thread): ...this.
663 (mips_linux_delete_thread): Turn into...
664 (mips_target::low_delete_thread): ...this.
665 (mips_linux_new_fork): Turn into...
666 (mips_target::low_new_fork): ...this.
667 (the_low_target): Remove the op fields.
668 * linux-bfin-low.cc (the_low_target): Remove the op fields.
669 * linux-crisv32-low.cc (the_low_target): Ditto.
670 * linux-m32r-low.cc (the_low_target): Ditto.
671 * linux-m68k-low.cc (the_low_target): Ditto.
672 * linux-ppc-low.cc (the_low_target): Ditto.
673 * linux-s390-low.cc (the_low_target): Ditto.
674 * linux-sh-low.cc (the_low_target): Ditto.
675 * linux-tic6x-low.cc (the_low_target): Ditto.
676 * linux-tile-low.cc (the_low_target): Ditto.
677 * linux-xtensa-low.cc (the_low_target): Ditto.
679 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
681 Turn the 'siginfo_fixup' linux target op into a method of
682 linux_process_target.
684 * linux-low.h (struct linux_target_ops): Remove the op.
685 (class linux_process_target) <siginfo_fixup>
686 <low_siginfo_fixup>: Declare.
687 * linux-low.cc (siginfo_fixup): Turn into...
688 (linux_process_target::siginfo_fixup): ...this.
689 (linux_process_target::low_siginfo_fixup): Define.
690 * linux-x86-low.cc (class x86_target) <low_siginfo_fixup>: Declare.
691 (x86_siginfo_fixup): Turn into...
692 (x86_target::low_siginfo_fixup): ...this.
693 (the_low_target): Remove the op field.
694 * linux-aarch64-low.cc (class aarch64_target):
695 <low_siginfo_fixup>: Declare.
696 (aarch64_linux_siginfo_fixup): Turn into...
697 (aarch64_target::low_siginfo_fixup): ...this.
698 (the_low_target): Remove the op field.
699 * linux-arm-low.cc (the_low_target): Remove the op field.
700 * linux-bfin-low.cc (the_low_target): Ditto.
701 * linux-crisv32-low.cc (the_low_target): Ditto.
702 * linux-m32r-low.cc (the_low_target): Ditto.
703 * linux-m68k-low.cc (the_low_target): Ditto.
704 * linux-mips-low.cc (the_low_target): Ditto.
705 * linux-ppc-low.cc (the_low_target): Ditto.
706 * linux-s390-low.cc (the_low_target): Ditto.
707 * linux-sh-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.
712 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
714 Turn the 'collect_ptrace_register' and 'supply_ptrace_register'
715 linux target ops into methods of linux_process_target.
717 * linux-low.h (struct linux_target_ops): Remove the ops.
718 (class linux_process_target) <low_collect_ptrace_register>
719 <low_store_ptrace_register>: Declare.
720 * linux-low.cc (linux_process_target::low_collect_ptrace_register)
721 (linux_process_target::low_supply_ptrace_register): Define.
723 Update the callers below.
725 (linux_process_target::fetch_register)
726 (linux_process_target::store_register)
728 * linux-x86-low.cc (the_low_target): Remove the op fields.
729 * linux-aarch64-low.cc (the_low_target): Ditto.
730 * linux-arm-low.cc (the_low_target): Ditto.
731 * linux-bfin-low.cc (the_low_target): Ditto.
732 * linux-crisv32-low.cc (the_low_target): Ditto.
733 * linux-m32r-low.cc (the_low_target): Ditto.
734 * linux-m68k-low.cc (the_low_target): Ditto.
735 * linux-sh-low.cc (the_low_target): Ditto.
736 * linux-sparc-low.cc (the_low_target): Ditto.
737 * linux-tic6x-low.cc (the_low_target): Ditto.
738 * linux-tile-low.cc (the_low_target): Ditto.
739 * linux-xtensa-low.cc (the_low_target): Ditto.
740 * linux-mips-low.cc (class mips_target)
741 <low_collect_ptrace_register>
742 <low_supply_ptrace_register>: Declare.
743 (mips_collect_ptrace_register): Turn into ...
744 (mips_target::low_collect_ptrace_register): ...this.
745 (mips_supply_ptrace_register): Turn into...
746 (mips_target::low_supply_ptrace_register): ...this.
747 (the_low_target): Remove the op fields.
748 * linux-ppc-low.cc (class ppc_target)
749 <low_collect_ptrace_register>
750 <low_supply_ptrace_register>: Declare.
751 (ppc_collect_ptrace_register): Turn into ...
752 (ppc_target::low_collect_ptrace_register): ...this.
753 (ppc_supply_ptrace_register): Turn into ...
754 (ppc_target::low_supply_ptrace_register): ...this.
755 (ppc_fill_gregset): Update for the calls to
756 low_collect_ptrace_register.
757 (the_low_target): Remove the op fields.
758 * linux-s390-low.cc (class s390_target)
759 <low_collect_ptrace_register>
760 <low_supply_ptrace_register>: Declare.
761 (s390_collect_ptrace_register): Turn into ...
762 (s390_target::low_collect_ptrace_register): ...this.
763 (s390_supply_ptrace_register): Turn into ...
764 (s390_target::low_supply_ptrace_register): ...this.
765 (s390_fill_gregset): Update for the calls to
766 low_collect_ptrace_register.
767 (the_low_target): Remove the op fields.
769 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
771 Turn the 'stopped_by_watchpoint' and 'stopped_data_address' linux
772 target ops into methods of linux_process_target.
774 * linux-low.h (struct linux_target_ops): Remove the ops.
775 (class linux_process_target) <check_stopped_by_watchpoint>
776 <low_stopped_by_watchpoint>
777 <low_stopped_data_address>: Declare.
778 * linux-low.cc (check_stopped_by_watchpoint): Turn into...
779 (linux_process_target::check_stopped_by_watchpoint): ...this.
780 (linux_process_target::low_stopped_by_watchpoint): Define.
781 (linux_process_target::low_stopped_data_address): Define.
782 * linux-x86-low.cc (class x86_target) <low_stopped_by_watchpoint>
783 <low_stopped_data_address>: Declare.
784 (x86_stopped_by_watchpoint): Turn into...
785 (x86_target::low_stopped_by_watchpoint): ...this.
786 (x86_stopped_data_address): Turn into...
787 (x86_target::low_stopped_data_address): ...this.
788 (the_low_target): Remove the op fields.
789 * linux-aarch64-low.cc (class aarch64_target)
790 <low_stopped_by_watchpoint>
791 <low_stopped_data_address>: Declare.
792 (aarch64_stopped_by_watchpoint): Turn into...
793 (aarch64_target::low_stopped_by_watchpoint): ...this.
794 (aarch64_stopped_data_address): Turn into...
795 (aarch64_target::low_stopped_data_address): ...this.
796 (the_low_target): Remove the op fields.
797 * linux-arm-low.cc (class arm_target) <low_stopped_by_watchpoint>
798 <low_stopped_data_address>: Declare.
799 (arm_stopped_by_watchpoint): Turn into...
800 (arm_target::low_stopped_by_watchpoint): ...this.
801 (arm_stopped_data_address): Turn into...
802 (arm_target::low_stopped_data_address): ...this.
803 (the_low_target): Remove the op fields.
804 * linux-crisv32-low.cc (class crisv32_target)
805 <low_stopped_by_watchpoint>
806 <low_stopped_data_address>: Declare.
807 (cris_stopped_by_watchpoint): Turn into...
808 (crisv32_target::low_stopped_by_watchpoint): ...this.
809 (cris_stopped_data_address): Turn into...
810 (crisv32_target::low_stopped_data_address): ...this.
811 (the_low_target): Remove the op fields.
812 * linux-mips-low.cc (class mips_target) <low_stopped_by_watchpoint>
813 <low_stopped_data_address>: Declare.
814 (mips_stopped_by_watchpoint): Turn into...
815 (mips_target::low_stopped_by_watchpoint): ...this.
816 (mips_stopped_data_address): Turn into...
817 (mips_target::low_stopped_data_address): ...this.
818 (the_low_target): Remove the op fields.
819 * linux-bfin-low.cc (the_low_target): Remove the op fields.
820 * linux-m32r-low.cc (the_low_target): Ditto.
821 * linux-m68k-low.cc (the_low_target): Ditto.
822 * linux-ppc-low.cc (the_low_target): Ditto.
823 * linux-s390-low.cc (the_low_target): Ditto.
824 * linux-sh-low.cc (the_low_target): Ditto.
825 * linux-sparc-low.cc (the_low_target): Ditto.
826 * linux-tic6x-low.cc (the_low_target): Ditto.
827 * linux-tile-low.cc (the_low_target): Ditto.
828 * linux-xtensa-low.cc (the_low_target): Ditto.
830 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
832 Turn the 'insert_point' and 'remove_point' linux target ops into
833 methods of linux_process_target.
835 * linux-low.h (struct linux_target_ops): Remove the ops.
836 (class linux_process_target) <low_insert_point>
837 <low_remove_point>: Declare.
838 * linux-low.cc (linux_process_target::low_insert_point)
839 (linux_process_target::low_remove_point): Define.
840 (linux_process_target::insert_point)
841 (linux_process_target::remove_point): Update for calls to
842 low_insert_point and low_remove_point.
843 * linux-x86-low.cc (class x86_target) <low_insert_point>
844 <low_remove_point>: Declare.
845 (x86_insert_point): Turn into...
846 (x86_target::low_insert_point): ...this.
847 (x86_remove_point): Turn into...
848 (x86_target::low_remove_point): ...this.
849 (the_low_target): Remove the op fields.
850 * linux-aarch64-low.cc (class aarch64_target) <low_insert_point>
851 <low_remove_point>: Declare.
852 (aarch64_insert_point): Turn into...
853 (aarch64_target::low_insert_point): ...this.
854 (aarch64_remove_point): Turn into...
855 (aarch64_target::low_remove_point): ...this.
856 (the_low_target): Remove the op fields.
857 * linux-arm-low.cc (class arm_target) <low_insert_point>
858 <low_remove_point>: Declare.
859 (arm_insert_point): Turn into...
860 (arm_target::low_insert_point): ...this.
861 (arm_remove_point): Turn into...
862 (arm_target::low_remove_point): ...this.
863 (the_low_target): Remove the op fields.
864 * linux-crisv32-low.cc (class crisv32_target) <low_insert_point>
865 <low_remove_point>: Declare.
866 (crisv32_insert_point): Turn into...
867 (crisv32_target::low_insert_point): ...this.
868 (crisv32_remove_point): Turn into...
869 (crisv32_target::low_remove_point): ...this.
870 (the_low_target): Remove the op fields.
871 * linux-mips-low.cc (class mips_target) <low_insert_point>
872 <low_remove_point>: Declare.
873 (mips_insert_point): Turn into...
874 (mips_target::low_insert_point): ...this.
875 (mips_remove_point): Turn into...
876 (mips_target::low_remove_point): ...this.
877 (the_low_target): Remove the op fields.
878 * linux-ppc-low.cc (class ppc_target) <low_insert_point>
879 <low_remove_point>: Declare.
880 (ppc_insert_point): Turn into...
881 (ppc_target::low_insert_point): ...this.
882 (ppc_remove_point): Turn into...
883 (ppc_target::low_remove_point): ...this.
884 (the_low_target): Remove the op fields.
885 * linux-bfin-low.cc (the_low_target): Remove the op fields.
886 * linux-m32r-low.cc (the_low_target): Ditto.
887 * linux-m68k-low.cc (the_low_target): Ditto.
888 * linux-s390-low.cc (the_low_target): Ditto.
889 * linux-sh-low.cc (the_low_target): Ditto.
890 * linux-sparc-low.cc (the_low_target): Ditto.
891 * linux-tic6x-low.cc (the_low_target): Ditto.
892 * linux-tile-low.cc (the_low_target): Ditto.
893 * linux-xtensa-low.cc (the_low_target): Ditto.
895 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
897 Remove the 'supports_z_point_type' linux target op and let the
898 concrete linux target define it by overriding the op declared in
899 process_stratum_target.
901 * linux-low.cc (linux_process_target::supports_z_point_type):
903 * linux-low.h (struct linux_target_ops): Remove the op.
904 (class linux_process_target) <supports_z_point_type>: Remove.
905 * linux-x86-low.cc (class x86_target) <supports_z_point_type>:
907 (x86_supports_z_point_type): Turn into...
908 (x86_target::supports_z_point_type): ...this.
909 (the_low_target): Remove the op field.
910 * linux-aarch64-low.cc (class aarch64_target)
911 <supports_z_point_type>: Declare.
912 (aarch64_supports_z_point_type): Turn into...
913 (aarch64_target::supports_z_point_type): ...this.
914 (the_low_target): Remove the op field.
915 * linux-arm-low.cc (class arm_target) <supports_z_point_type>:
917 (arm_supports_z_point_type): Turn into...
918 (arm_target::supports_z_point_type): ...this.
919 (the_low_target): Remove the op field.
920 * linux-crisv32-low.cc (class crisv32_target)
921 <supports_z_point_type>: Declare.
922 (cris_supports_z_point_type): Turn into...
923 (crisv32_target::supports_z_point_type): ...this.
924 (the_low_target): Remove the op field.
925 * linux-mips-low.cc (class mips_target) <supports_z_point_type>:
927 (mips_supports_z_point_type): Turn into...
928 (mips_target::supports_z_point_type): ...this.
929 (the_low_target): Remove the op field.
930 * linux-ppc-low.cc (class ppc_target) <supports_z_point_type>:
932 (ppc_supports_z_point_type): Turn into...
933 (ppc_target::supports_z_point_type): ...this.
934 (the_low_target): Remove the op field.
935 * linux-s390-low.cc (class s390_target) <supports_z_point_type>:
937 (s390_supports_z_point_type): Turn into...
938 (s390_target::supports_z_point_type): ...this.
939 (the_low_target): Remove the op field.
940 * linux-bfin-low.cc (the_low_target): Remove the op field.
941 * linux-m32r-low.cc (the_low_target): Ditto.
942 * linux-m68k-low.cc (the_low_target): Ditto.
943 * linux-sh-low.cc (the_low_target): Ditto.
944 * linux-sparc-low.cc (the_low_target): Ditto.
945 * linux-tic6x-low.cc (the_low_target): Ditto.
946 * linux-tile-low.cc (the_low_target): Ditto.
947 * linux-xtensa-low.cc (the_low_target): Ditto.
949 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
951 Turn the 'breakpoint_at' linux target op into a method of
952 linux_process_target.
954 * linux-low.h (struct linux_target_ops): Remove the op.
955 (class linux_process_target) <low_breakpoint_at>: Declare.
957 Update the callers below:
959 * linux-low.cc (linux_process_target::save_stop_reason)
960 (linux_process_target::thread_still_has_status_pending)
961 (linux_process_target::wait_1)
963 * linux-x86-low.cc (class x86_target)
964 <low_breakpoint_at>: Declare.
965 (x86_breakpoint_at): Turn into...
966 (x86_target::low_breakpoint_at): ...this.
967 (the_low_target): Remove the op field.
968 * linux-aarch64-low.cc (class aarch64_target)
969 <low_breakpoint_at>: Declare.
970 (aarch64_breakpoint_at): Turn into...
971 (aarch64_target::low_breakpoint_at): ...this.
972 (the_low_target): Remove the op field.
973 * linux-arm-low.cc (class arm_target)
974 <low_breakpoint_at>: Declare.
975 (arm_target::low_breakpoint_at): Define.
976 (the_low_target): Remove the op field.
977 * linux-bfin-low.cc (class bfin_target)
978 <low_breakpoint_at>: Declare.
979 (bfin_breakpoint_at): Turn into...
980 (bfin_target::low_breakpoint_at): ...this.
981 (the_low_target): Remove the op field.
982 * linux-cris-low.cc (class cris_target)
983 <low_breakpoint_at>: Declare.
984 (cris_breakpoint_at): Turn into...
985 (cris_target::low_breakpoint_at): ...this.
986 (the_low_target): Remove the op field.
987 * linux-crisv32-low.cc (class crisv32_target)
988 <low_breakpoint_at>: Declare.
989 (crisv32_breakpoint_at): Turn into...
990 (crisv32_target::low_breakpoint_at): ...this.
991 (the_low_target): Remove the op field.
992 * linux-ia64-low.cc (class ia64_target)
993 <low_breakpoint_at>: Declare.
994 (ia64_target::low_breakpoint_at): Define.
995 * linux-m32r-low.cc (class m32r_target)
996 <low_breakpoint_at>: Declare.
997 (m32r_breakpoint_at): Turn into...
998 (m32r_target::low_breakpoint_at): ...this.
999 (the_low_target): Remove the op field.
1000 * linux-m68k-low.cc (class m68k_target)
1001 <low_breakpoint_at>: Declare.
1002 (m68k_breakpoint_at): Turn into...
1003 (m68k_target::low_breakpoint_at): ...this.
1004 (the_low_target): Remove the op field.
1005 * linux-mips-low.cc (class mips_target)
1006 <low_breakpoint_at>: Declare.
1007 (mips_breakpoint_at): Turn into...
1008 (mips_target::low_breakpoint_at): ...this.
1009 (the_low_target): Remove the op field.
1010 * linux-nios2-low.cc (class nios2_target)
1011 <low_breakpoint_at>: Declare.
1012 (nios2_breakpoint_at): Turn into...
1013 (nios2_target::low_breakpoint_at): ...this.
1014 (the_low_target): Remove the op field.
1015 * linux-ppc-low.cc (class ppc_target)
1016 <low_breakpoint_at>: Declare.
1017 (ppc_breakpoint_at): Turn into...
1018 (ppc_target::low_breakpoint_at): ...this.
1019 (the_low_target): Remove the op field.
1020 * linux-riscv-low.cc (class riscv_target)
1021 <low_breakpoint_at>: Declare.
1022 (riscv_breakpoint_at): Turn into...
1023 (riscv_target::low_breakpoint_at): ...this.
1024 (the_low_target): Remove the op field.
1025 * linux-s390-low.cc (class s390_target)
1026 <low_breakpoint_at>: Declare.
1027 (s390_breakpoint_at): Turn into...
1028 (s390_target::low_breakpoint_at): ...this.
1029 (the_low_target): Remove the op field.
1030 * linux-sh-low.cc (class sh_target)
1031 <low_breakpoint_at>: Declare.
1032 (sh_breakpoint_at): Turn into...
1033 (sh_target::low_breakpoint_at): ...this.
1034 (the_low_target): Remove the op field.
1035 * linux-sparc-low.cc (class sparc_target)
1036 <low_breakpoint_at>: Declare.
1037 (sparc_breakpoint_at): Turn into...
1038 (sparc_target::low_breakpoint_at): ...this.
1039 (the_low_target): Remove the op field.
1040 * linux-tic6x-low.cc (class tic6x_target)
1041 <low_breakpoint_at>: Declare.
1042 (tic6x_breakpoint_at): Turn into...
1043 (tic6x_target::low_breakpoint_at): ...this.
1044 (the_low_target): Remove the op field.
1045 * linux-tile-low.cc (class tile_target)
1046 <low_breakpoint_at>: Declare.
1047 (tile_breakpoint_at): Turn into...
1048 (tile_target::low_breakpoint_at): ...this.
1049 (the_low_target): Remove the op field.
1050 * linux-xtensa-low.cc (class xtensa_target)
1051 <low_breakpoint_at>: Declare.
1052 (xtensa_breakpoint_at): Turn into...
1053 (xtensa_target::low_breakpoint_at): ...this.
1054 (the_low_target): Remove the op field.
1056 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1058 Turn the 'decr_pc_after_break' linux_target_ops field into
1059 a method of linux_process_target.
1061 * linux-low.h (struct linux_target_ops)
1062 <decr_pc_after_break>: Remove.
1063 (class linux_process_target) <low_decr_pc_after_break>: New method
1065 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
1066 New method implementation.
1068 Update the users below.
1070 (linux_process_target::save_stop_reason)
1071 (linux_process_target::wait_1)
1072 * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
1074 (x86_target::low_decr_pc_after_break): New method implementation.
1075 (the_low_target): Remove the field.
1076 * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
1078 (bfin_target::low_decr_pc_after_break): New method implementation.
1079 (the_low_target): Remove the field.
1080 * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
1082 (m68k_target::low_decr_pc_after_break): New method implementation.
1083 (the_low_target): Remove the field.
1084 * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
1086 (s390_target::low_decr_pc_after_break): New method implementation.
1087 (the_low_target): Remove the field.
1088 * linux-aarch64-low.cc (the_low_target): Remove the field.
1089 * linux-arm-low.cc (the_low_target): Remove the field.
1090 * linux-cris-low.cc (the_low_target): Remove the field.
1091 * linux-crisv32-low.cc (the_low_target): Remove the field.
1092 * linux-m32r-low.cc (the_low_target): Remove the field.
1093 * linux-mips-low.cc (the_low_target): Remove the field.
1094 * linux-nios2-low.cc (the_low_target): Remove the field.
1095 * linux-ppc-low.cc (the_low_target): Remove the field.
1096 * linux-riscv-low.cc (the_low_target): Remove the field.
1097 * linux-sh-low.cc (the_low_target): Remove the field.
1098 * linux-sparc-low.cc (the_low_target): Remove the field.
1099 * linux-tic6x-low.cc (the_low_target): Remove the field.
1100 * linux-tile-low.cc (the_low_target): Remove the field.
1101 * linux-xtensa-low.cc (the_low_target): Remove the field.
1103 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1105 Remove the 'supports_software_single_step' linux target op and let
1106 the concrete linux target define it by overriding the op in
1107 process_stratum_target.
1108 Turn the 'get_next_pcs' linux target op into a method of
1109 linux_process_target.
1111 * linux-low.h (struct linux_target_ops): Remove the ops.
1112 (class linux_process_target) <supports_software_single_step>:
1114 <low_get_next_pcs>: Declare.
1115 * linux-low.cc (can_software_single_step): Remove.
1116 (linux_process_target::low_get_next_pcs): Define.
1117 (linux_process_target::supports_software_single_step): Remove.
1119 Update the callers below.
1121 (linux_process_target::handle_extended_wait)
1122 (linux_process_target::wait_1)
1123 (linux_process_target::install_software_single_step_breakpoints)
1124 (linux_process_target::single_step)
1125 (linux_process_target::thread_needs_step_over)
1126 (linux_process_target::proceed_one_lwp)
1127 (linux_process_target::supports_range_stepping)
1129 * linux-x86-low.cc (the_low_target): Remove the op field.
1130 * linux-aarch64-low.cc (the_low_target): Ditto.
1131 * linux-bfin-low.cc (the_low_target): Ditto.
1132 * linux-cris-low.cc (the_low_target): Ditto.
1133 * linux-crisv32-low.cc (the_low_target): Ditto.
1134 * linux-m32r-low.cc (the_low_target): Ditto.
1135 * linux-m68k-low.cc (the_low_target): Ditto.
1136 * linux-mips-low.cc (the_low_target): Ditto.
1137 * linux-nios2-low.cc (the_low_target): Ditto.
1138 * linux-ppc-low.cc (the_low_target): Ditto.
1139 * linux-riscv-low.cc (the_low_target): Ditto.
1140 * linux-s390-low.cc (the_low_target): Ditto.
1141 * linux-sh-low.cc (the_low_target): Ditto.
1142 * linux-sparc-low.cc (the_low_target): Ditto.
1143 * linux-tic6x-low.cc (the_low_target): Ditto.
1144 * linux-tile-low.cc (the_low_target): Ditto.
1145 * linux-xtensa-low.cc (the_low_target): Ditto.
1146 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
1147 <supports_software_single_step>: Declare.
1148 (arm_target::supports_software_single_step): Define.
1149 (arm_gdbserver_get_next_pcs): Turn into...
1150 (arm_target::low_get_next_pcs): ...this.
1151 (the_low_target): Remove the op field.
1153 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1155 Remove the 'sw_breakpoint_from_kind' linux target op, and let
1156 the concrete linux target define it by overriding the op
1157 in process_stratum_target.
1159 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
1161 * linux-low.h (struct linux_target_ops): Remove the op.
1162 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
1163 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
1165 (x86_sw_breakpoint_from_kind): Turn into...
1166 (x86_target::sw_breakpoint_from_kind): ...this.
1167 (the_low_target): Remove the op field.
1168 * linux-aarch64-low.cc (class aarch64_target)
1169 <sw_breakpoint_from_kind>: Declare.
1170 (aarch64_sw_breakpoint_from_kind): Turn into...
1171 (aarch64_target::sw_breakpoint_from_kind): ...this.
1172 (the_low_target): Remove the op field.
1173 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
1175 (arm_target::sw_breakpoint_from_kind): Define.
1176 (the_low_target): Remove the op field.
1177 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
1179 (bfin_sw_breakpoint_from_kind): Turn into...
1180 (bfin_target::sw_breakpoint_from_kind): ...this.
1181 (the_low_target): Remove the op field.
1182 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
1184 (cris_sw_breakpoint_from_kind): Turn into...
1185 (cris_target::sw_breakpoint_from_kind): ...this.
1186 (the_low_target): Remove the op field.
1187 * linux-crisv32-low.cc (class crisv32_target)
1188 <sw_breakpoint_from_kind>: Declare.
1189 (cris_sw_breakpoint_from_kind): Turn into...
1190 (crisv32_target::sw_breakpoint_from_kind): ...this.
1191 (the_low_target): Remove the op field.
1192 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
1194 (ia64_target::sw_breakpoint_from_kind): Define.
1195 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
1197 (m32r_sw_breakpoint_from_kind): Turn into...
1198 (m32r_target::sw_breakpoint_from_kind): ...this.
1199 (the_low_target): Remove the op field.
1200 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
1202 (m68k_sw_breakpoint_from_kind): Turn into...
1203 (m68k_target::sw_breakpoint_from_kind): ...this.
1204 (the_low_target): Remove the op field.
1205 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
1207 (mips_sw_breakpoint_from_kind): Turn into...
1208 (mips_target::sw_breakpoint_from_kind): ...this.
1209 (the_low_target): Remove the op field.
1210 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
1212 (nios2_sw_breakpoint_from_kind): Turn into...
1213 (nios2_target::sw_breakpoint_from_kind): ...this.
1214 (the_low_target): Remove the op field.
1215 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
1217 (ppc_sw_breakpoint_from_kind): Turn into...
1218 (ppc_target::sw_breakpoint_from_kind): ...this.
1219 (the_low_target): Remove the op field.
1220 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
1222 (riscv_sw_breakpoint_from_kind): Turn into...
1223 (riscv_target::sw_breakpoint_from_kind): ...this.
1224 (the_low_target): Remove the op field.
1225 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
1227 (s390_sw_breakpoint_from_kind): Turn into...
1228 (s390_target::sw_breakpoint_from_kind): ...this.
1229 (the_low_target): Remove the op field.
1230 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
1232 (sh_sw_breakpoint_from_kind): Turn into...
1233 (sh_target::sw_breakpoint_from_kind): ...this.
1234 (the_low_target): Remove the op field.
1235 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
1237 (sparc_sw_breakpoint_from_kind): Turn into...
1238 (sparc_target::sw_breakpoint_from_kind): ...this.
1239 (the_low_target): Remove the op field.
1240 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
1242 (tic6x_sw_breakpoint_from_kind): Turn into...
1243 (tic6x_target::sw_breakpoint_from_kind): ...this.
1244 (the_low_target): Remove the op field.
1245 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
1247 (tile_sw_breakpoint_from_kind): Turn into...
1248 (tile_target::sw_breakpoint_from_kind): ...this.
1249 (the_low_target): Remove the op field.
1250 * linux-xtensa-low.cc (class xtensa_target)
1251 <sw_breakpoint_from_kind>: Declare.
1252 (xtensa_sw_breakpoint_from_kind): Turn into...
1253 (xtensa_target::sw_breakpoint_from_kind): ...this.
1254 (the_low_target): Remove the op field.
1256 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1258 Remove the 'breakpoint_kind_from_pc' and
1259 'breakpoint_kind_from_current_state' linux target ops, and let the
1260 concrete linux target define them by overriding the ops of
1261 process_stratum_target.
1263 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
1265 (linux_process_target::breakpoint_kind_from_current_state): Remove.
1266 * linux-low.h (struct linux_target_ops): Remove ops.
1267 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
1268 <breakpoint_kind_from_current_state>: Remove.
1269 * linux-x86-low.cc (the_low_target): Remove the op fields.
1270 * linux-bfin-low.cc (the_low_target): Ditto.
1271 * linux-cris-low.cc (the_low_target): Ditto.
1272 * linux-crisv32-low.cc (the_low_target): Ditto.
1273 * linux-m32r-low.cc (the_low_target): Ditto.
1274 * linux-m68k-low.cc (the_low_target): Ditto.
1275 * linux-mips-low.cc (the_low_target): Ditto.
1276 * linux-nios2-low.cc (the_low_target): Ditto.
1277 * linux-ppc-low.cc (the_low_target): Ditto.
1278 * linux-s390-low.cc (the_low_target): Ditto.
1279 * linux-sh-low.cc (the_low_target): Ditto.
1280 * linux-sparc-low.cc (the_low_target): Ditto.
1281 * linux-tic6x-low.cc (the_low_target): Ditto.
1282 * linux-tile-low.cc (the_low_target): Ditto.
1283 * linux-xtensa-low.cc (the_low_target): Ditto.
1284 * linux-aarch64-low.cc (class aarch64_target)
1285 <breakpoint_kind_from_pc>
1286 <breakpoint_kind_from_current_state>: Declare.
1287 (aarch64_breakpoint_kind_from_pc): Turn into...
1288 (aarch64_target::breakpoint_kind_from_pc): ...this.
1289 (aarch64_breakpoint_kind_from_current_state): Turn into...
1290 (aarch64_target::breakpoint_kind_from_current_state): ...this.
1291 (the_low_target): Remove the op fields.
1292 * linux-arm-low.cc (class arm_target):
1293 <breakpoint_kind_from_pc>
1294 <breakpoint_kind_from_current_state>: Declare.
1295 (arm_target::breakpoint_kind_from_pc): Define.
1296 (arm_target::breakpoint_kind_from_current_state): Define.
1297 (the_low_target): Remove the op fields.
1298 * linux-riscv-low.cc (class riscv_target):
1299 <breakpoint_kind_from_pc>: Declare.
1300 (riscv_breakpoint_kind_from_pc): Turn into...
1301 (riscv_target::breakpoint_kind_from_pc): ...this.
1302 (the_low_target): Remove the op fields.
1304 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1306 Turn the 'get_pc' and 'set_pc' linux target ops into methods
1307 of linux_process_target.
1309 * linux-low.h (struct linux_target_ops): Remove the ops.
1310 (class linux_process_target) <low_supports_breakpoints>
1312 <low_set_pc>: Declare.
1313 * linux-low.cc (supports_breakpoints): Turn into...
1314 (linux_process_target::low_supports_breakpoints): ...this.
1315 (linux_process_target::low_get_pc): Define.
1316 (linux_process_target::low_set_pc): Define.
1318 Update the callers below.
1320 (linux_process_target::get_pc)
1321 (linux_process_target::save_stop_reason)
1322 (linux_process_target::maybe_move_out_of_jump_pad)
1323 (linux_process_target::wait_1)
1324 (linux_process_target::resume_one_lwp_throw)
1325 (linux_process_target::resume)
1326 (linux_process_target::proceed_all_lwps)
1327 (linux_process_target::read_pc)
1328 (linux_process_target::write_pc)
1330 * linux-x86-low.cc (class linux_process_target)
1331 <low_supports_breakpoints>
1333 <low_set_pc>: Declare.
1334 (x86_target::low_supports_breakpoints): Define.
1335 (x86_get_pc): Turn into...
1336 (x86_target::low_get_pc): ...this.
1337 (x86_set_pc): Turn into...
1338 (x86_target::low_set_pc): ...this.
1339 (the_low_target): Remove the op fields.
1340 * linux-arm-low.cc (class arm_target)
1341 <low_supports_breakpoints>
1343 <low_set_pc>: Declare.
1344 (arm_target::low_supports_breakpoints)
1345 (arm_target::low_get_pc)
1346 (arm_target::low_set_pc): Define.
1347 (the_low_target): Remove the op fields.
1348 * linux-bfin-low.cc (class bfin_target)
1349 <low_supports_breakpoints>
1351 <low_set_pc>: Declare.
1352 (bfin_target::low_supports_breakpoints)
1353 (bfin_target::low_get_pc)
1354 (bfin_target::low_set_pc): Define.
1355 (the_low_target): Remove the op fields.
1356 * linux-cris-low.cc (class cris_target)
1357 <low_supports_breakpoints>
1359 <low_set_pc>: Declare.
1360 (cris_target::low_supports_breakpoints)
1361 (cris_target::low_get_pc)
1362 (cris_target::low_set_pc): Define.
1363 (the_low_target): Remove the op fields.
1364 * linux-crisv32-low.cc (class crisv32_target)
1365 <low_supports_breakpoints>
1367 <low_set_pc>: Declare.
1368 (crisv32_target::low_supports_breakpoints)
1369 (crisv32_target::low_get_pc)
1370 (crisv32_target::low_set_pc): Define.
1371 (the_low_target): Remove the op fields.
1372 * linux-m32r-low.cc (class m32r_target)
1373 <low_supports_breakpoints>
1375 <low_set_pc>: Declare.
1376 (m32r_target::low_supports_breakpoints)
1377 (m32r_target::low_get_pc)
1378 (m32r_target::low_set_pc): Define.
1379 (the_low_target): Remove the op fields.
1380 * linux-m68k-low.cc (class m68k_target)
1381 <low_supports_breakpoints>
1383 <low_set_pc>: Declare.
1384 (m68k_target::low_supports_breakpoints)
1385 (m68k_target::low_get_pc)
1386 (m68k_target::low_set_pc): Define.
1387 (the_low_target): Remove the op fields.
1388 * linux-nios2-low.cc (class nios2_target)
1389 <low_supports_breakpoints>
1391 <low_set_pc>: Declare.
1392 (nios2_target::low_supports_breakpoints)
1393 (nios2_target::low_get_pc)
1394 (nios2_target::low_set_pc): Define.
1395 (the_low_target): Remove the op fields.
1396 * linux-sh-low.cc (class sh_target)
1397 <low_supports_breakpoints>
1399 <low_set_pc>: Declare.
1400 (sh_target::low_supports_breakpoints)
1401 (sh_target::low_get_pc)
1402 (sh_target::low_set_pc): Define.
1403 (the_low_target): Remove the op fields.
1404 * linux-xtensa-low.cc (class xtensa_target)
1405 <low_supports_breakpoints>
1407 <low_set_pc>: Declare.
1408 (xtensa_target::low_supports_breakpoints)
1409 (xtensa_target::low_get_pc)
1410 (xtensa_target::low_set_pc): Define.
1411 (the_low_target): Remove the op fields.
1412 * linux-sparc-low.cc (class sparc_target)
1413 <low_supports_breakpoints>
1414 <low_get_pc>: Declare.
1415 (sparc_target::low_supports_breakpoints)
1416 (sparc_target::low_get_pc): Define.
1417 (the_low_target): Remove the op fields.
1418 * linux-tile-low.cc (class tile_target)
1419 <low_supports_breakpoints>
1421 <low_set_pc>: Declare.
1422 (tile_target::low_supports_breakpoints)
1423 (tile_target::low_get_pc)
1424 (tile_target::low_set_pc): Define.
1425 (the_low_target): Remove the op fields.
1426 * linux-aarch64-low.cc (class aarch64_target)
1427 <low_supports_breakpoints>
1429 <low_set_pc>: Declare.
1430 (aarch64_target::low_supports_breakpoints): Define.
1431 (aarch64_get_pc): Turn into...
1432 (aarch64_target::low_get_pc): ...this.
1433 (aarch64_set_pc): Turn into...
1434 (aarch64_target::low_set_pc): ...this.
1435 (the_low_target): Remove the op fields.
1436 * linux-mips-low.cc (class mips_target)
1437 <low_supports_breakpoints>
1439 <low_set_pc>: Declare.
1440 (mips_target::low_supports_breakpoints): Define.
1441 (mips_get_pc): Turn into...
1442 (mips_target::low_get_pc): ...this.
1443 (mips_set_pc): Turn into...
1444 (mips_target::low_set_pc): ...this.
1445 (the_low_target): Remove the op fields.
1446 * linux-ppc-low.cc (class ppc_target)
1447 <low_supports_breakpoints>
1449 <low_set_pc>: Declare.
1450 (ppc_target::low_supports_breakpoints): Define.
1451 (ppc_get_pc): Turn into...
1452 (ppc_target::low_get_pc): ...this.
1453 (ppc_set_pc): Turn into...
1454 (ppc_target::low_set_pc): ...this.
1455 (the_low_target): Remove the op fields.
1456 * linux-riscv-low.cc (class riscv_target)
1457 <low_supports_breakpoints>
1459 <low_set_pc>: Declare.
1460 (riscv_target::low_supports_breakpoints): Define.
1461 (riscv_get_pc): Turn into...
1462 (riscv_target::low_get_pc): ...this.
1463 (riscv_set_pc): Turn into...
1464 (riscv_target::low_set_pc): ...this.
1465 (the_low_target): Remove the op fields.
1466 * linux-s390-low.cc (class s390_target)
1467 <low_supports_breakpoints>
1469 <low_set_pc>: Declare.
1470 (s390_target::low_supports_breakpoints): Define.
1471 (s390_get_pc): Turn into...
1472 (s390_target::low_get_pc): ...this.
1473 (s390_set_pc): Turn into...
1474 (s390_target::low_set_pc): ...this.
1475 (the_low_target): Remove the op fields.
1476 * linux-tic6x-low.cc (class tic6x_target)
1477 <low_supports_breakpoints>
1479 <low_set_pc>: Declare.
1480 (tic6x_target::low_supports_breakpoints): Define.
1481 (tic6x_get_pc): Turn into...
1482 (tic6x_target::low_get_pc): ...this.
1483 (tic6x_set_pc): Turn into...
1484 (tic6x_target::low_set_pc): ...this.
1485 (the_low_target): Remove the op fields.
1487 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1489 Turn some more static methods in linux-low into private methods
1490 of linux_process_target.
1492 * linux-low.cc (get_pc): Turn into...
1493 (linux_process_target::get_pc): ...this.
1494 (save_stop_reason): Turn into...
1495 (linux_process_target::save_stop_reason): ...this.
1496 (thread_still_has_status_pending_p): Turn into...
1497 (linux_process_target::thread_still_has_status_pending): ...this.
1498 (status_pending_p_callback): Turn into...
1499 (linux_process_target::status_pending_p_callback): ...this.
1500 (resume_stopped_resumed_lwps): Turn into...
1501 (linux_process_target::resume_stopped_resumed_lwps): ...this.
1502 (install_software_single_step_breakpoints): Turn into...
1503 (linux_process_target::install_software_single_step_breakpoints):
1505 (single_step): Turn into...
1506 (linux_process_target::single_step): ...this.
1507 (linux_resume_one_lwp_throw): Turn into...
1508 (linux_process_target::resume_one_lwp_throw): ...this.
1509 (linux_resume_one_lwp): Turn into...
1510 (linux_process_target::resume_one_lwp): ...this.
1511 (resume_status_pending_p): Turn into...
1512 (linux_process_target::resume_status_pending): ...this.
1513 (need_step_over_p): Turn into...
1514 (linux_process_target::thread_needs_step_over): ...this.
1515 (linux_resume_one_thread): Turn into...
1516 (linux_process_target::resume_one_thread): ...this.
1517 (proceed_one_lwp): Turn into...
1518 (linux_process_target::proceed_one_lwp): ...this.
1519 (unsuspend_and_proceed_one_lwp): Turn into...
1520 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
1522 Update the calls/references to the above functions below.
1524 (linux_process_target::handle_extended_wait)
1525 (linux_process_target::filter_event)
1526 (linux_process_target::wait_for_event_filtered)
1527 (linux_process_target::wait_1)
1528 (linux_process_target::move_out_of_jump_pad)
1529 (linux_process_target::start_step_over)
1530 (linux_process_target::resume)
1531 (linux_process_target::proceed_all_lwps)
1532 (regsets_store_inferior_registers)
1533 (linux_process_target::store_register)
1535 * linux-low.h (class linux_process_target)
1538 <thread_still_has_status_pending>
1539 <status_pending_p_callback>
1540 <resume_stopped_resumed_lwps>
1541 <install_software_single_step_breakpoints>
1543 <resume_one_lwp_throw>
1545 <resume_status_pending>
1546 <thread_needs_step_over>
1549 <unsuspend_and_proceed_one_lwp>: Declare.
1551 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1553 Turn the 'fetch_register' linux target op into a method of
1554 linux_process_target.
1556 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
1557 (class linux_process_target) <low_fetch_register>: Declare.
1558 * linux-x86-low.cc (the_low_target)
1559 * linux-aarch64-low.cc (the_low_target)
1560 * linux-arm-low.cc (the_low_target)
1561 * linux-bfin-low.cc (the_low_target)
1562 * linux-cris-low.cc (the_low_target)
1563 * linux-crisv32-low.cc (the_low_target)
1564 * linux-m32r-low.cc (the_low_target)
1565 * linux-m68k-low.cc (the_low_target)
1566 * linux-nios2-low.cc (the_low_target)
1567 * linux-ppc-low.cc (the_low_target)
1568 * linux-s390-low.cc (the_low_target)
1569 * linux-sh-low.cc (the_low_target)
1570 * linux-sparc-low.cc (the_low_target)
1571 * linux-tic6x-low.cc (the_low_target)
1572 * linux-tile-low.cc (the_low_target)
1573 * linux-xtensa-low.cc (the_low_target): Remove the op field.
1574 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
1576 (ia64_fetch_register): Turn into...
1577 (ia64_target::low_fetch_register): ...this.
1578 (the_low_target): Remove the op field.
1579 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
1581 (mips_fetch_register): Turn into...
1582 (mips_target::low_fetch_register): ...this.
1583 (the_low_target): Remove the op field.
1584 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
1586 (riscv_fetch_register): Turn into...
1587 (riscv_target::low_fetch_register): ...this.
1588 (the_low_target): Remove the op field.
1590 Update the callers below.
1592 * linux-low.cc (linux_process_target::fetch_registers)
1593 (linux_process_target::low_fetch_register)
1595 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1597 Turn the 'cannot_fetch_register' and 'cannot_store_register'
1598 linux target ops into methods of linux_process_target.
1600 * linux-low.h (struct linux_target_ops): Remove the low target ops.
1601 (class linux_process_target) <fetch_register>
1603 <usr_fetch_inferior_registers>
1604 <usr_store_inferior_registers>
1605 <low_cannot_fetch_register>
1606 <low_cannot_fetch_register> Declare.
1607 * linux-low.cc (fetch_register): Turn into...
1608 (linux_process_target::fetch_register): ...this.
1609 (store_register): Turn into ...
1610 (linux_process_target::store_register): ...this.
1611 (usr_fetch_inferior_registers): Turn into...
1612 (linux_process_target::usr_fetch_inferior_registers): ...this.
1613 (usr_store_inferior_registers): Turn into...
1614 (linux_process_target::usr_store_inferior_registers): ...this.
1615 * linux-x86-low.cc (class x86_target)
1616 <low_cannot_fetch_register>
1617 <low_cannot_store_register>: Declare.
1618 (x86_cannot_store_register): Turn into...
1619 (x86_target::low_cannot_store_register): ...this.
1620 (x86_cannot_fetch_register): Turn into...
1621 (x86_target::low_cannot_fetch_register): ...this.
1622 (the_low_target): Remove the target op fields.
1623 * linux-aarch64-low.cc (class aarch64_target)
1624 <low_cannot_fetch_register>
1625 <low_cannot_store_register>: Declare.
1626 (aarch64_target::low_cannot_fetch_register)
1627 (aarch64_target::low_cannot_store_register): Define.
1628 (the_low_target): Remove the op fields.
1629 * linux-arm-low.cc (class arm_target)
1630 <low_cannot_fetch_register>
1631 <low_cannot_store_register>: Declare.
1632 (arm_cannot_fetch_register): Turn into...
1633 (arm_target::low_cannot_fetch_register): ...this.
1634 (arm_cannot_store_register): Turn into...
1635 (arm_target::low_cannot_store_register): ...this.
1636 (the_low_target): Remove the op fields.
1637 * linux-bfin-low.cc (class bfin_target)
1638 <low_cannot_fetch_register>
1639 <low_cannot_store_register>: Declare.
1640 (bfin_cannot_fetch_register): Turn into...
1641 (bfin_target::low_cannot_fetch_register): ...this.
1642 (bfin_cannot_store_register): Turn into...
1643 (bfin_target::low_cannot_store_register): ...this.
1644 (the_low_target): Remove the op fields.
1645 * linux-cris-low.cc (class cris_target)
1646 <low_cannot_fetch_register>
1647 <low_cannot_store_register>: Declare.
1648 (cris_cannot_fetch_register): Turn into...
1649 (cris_target::low_cannot_fetch_register): ...this.
1650 (cris_cannot_store_register): Turn into...
1651 (cris_target::low_cannot_store_register): ...this.
1652 (the_low_target): Remove the op fields.
1653 * linux-crisv32-low.cc (class crisv32_target)
1654 <low_cannot_fetch_register>
1655 <low_cannot_store_register>: Declare.
1656 (crisv32_target::low_cannot_fetch_register)
1657 (crisv32_target::low_cannot_store_register): Define.
1658 (the_low_target): Remove the op fields.
1659 * linux-ia64-low.cc (class ia64_target)
1660 <low_cannot_fetch_register>
1661 <low_cannot_store_register>: Declare.
1662 (ia64_cannot_fetch_register): Turn into...
1663 (ia64_target::low_cannot_fetch_register): ...this.
1664 (ia64_cannot_store_register): Turn into...
1665 (ia64_target::low_cannot_store_register): ...this.
1666 (the_low_target): Remove the op fields.
1667 * linux-m32r-low.cc (class m32r_target)
1668 <low_cannot_fetch_register>
1669 <low_cannot_store_register>: Declare.
1670 (m32r_cannot_fetch_register): Turn into...
1671 (m32r_target::low_cannot_fetch_register): ...this.
1672 (m32r_cannot_store_register): Turn into...
1673 (m32r_target::low_cannot_store_register): ...this.
1674 (the_low_target): Remove the op fields.
1675 * linux-m68k-low.cc (class m68k_target)
1676 <low_cannot_fetch_register>
1677 <low_cannot_store_register>: Declare.
1678 (m68k_cannot_fetch_register): Turn into...
1679 (m68k_target::low_cannot_fetch_register): ...this.
1680 (m68k_cannot_store_register): Turn into...
1681 (m68k_target::low_cannot_store_register): ...this.
1682 (the_low_target): Remove the op fields.
1683 * linux-mips-low.cc (class mips_target)
1684 <low_cannot_fetch_register>
1685 <low_cannot_store_register>: Declare.
1686 (mips_cannot_fetch_register): Turn into...
1687 (mips_target::low_cannot_fetch_register): ...this.
1688 (mips_cannot_store_register): Turn into...
1689 (mips_target::low_cannot_store_register): ...this.
1690 (get_usrregs_info): Inline at the call sites in
1691 low_cannot_fetch_register and low_cannot_store_register,
1693 (the_low_target): Remove the op fields.
1694 * linux-nios2-low.cc (class nios2_target)
1695 <low_cannot_fetch_register>
1696 <low_cannot_store_register>: Declare.
1697 (nios2_cannot_fetch_register): Turn into...
1698 (nios2_target::low_cannot_fetch_register): ...this.
1699 (nios2_cannot_store_register): Turn into...
1700 (nios2_target::low_cannot_store_register): ...this.
1701 (the_low_target): Remove the op fields.
1702 * linux-ppc-low.cc (class ppc_target)
1703 <low_cannot_fetch_register>
1704 <low_cannot_store_register>: Declare.
1705 (ppc_cannot_fetch_register): Turn into...
1706 (ppc_target::low_cannot_fetch_register): ...this.
1707 (ppc_cannot_store_register): Turn into...
1708 (ppc_target::low_cannot_store_register): ...this.
1709 (the_low_target): Remove the op fields.
1710 * linux-riscv-low.cc (class riscv_target)
1711 <low_cannot_fetch_register>
1712 <low_cannot_store_register>: Declare.
1713 (riscv_target::low_cannot_fetch_register)
1714 (riscv_target::low_cannot_store_register): Define.
1715 (the_low_target): Remove the op fields.
1716 * linux-s390-low.cc (class s390_target)
1717 <low_cannot_fetch_register>
1718 <low_cannot_store_register>: Declare.
1719 (s390_cannot_fetch_register): Turn into...
1720 (s390_target::low_cannot_fetch_register): ...this.
1721 (s390_cannot_store_register): Turn into...
1722 (s390_target::low_cannot_store_register): ...this.
1723 (the_low_target): Remove the op fields.
1724 * linux-sh-low.cc (class sh_target)
1725 <low_cannot_fetch_register>
1726 <low_cannot_store_register>: Declare.
1727 (sh_cannot_fetch_register): Turn into...
1728 (sh_target::low_cannot_fetch_register): ...this.
1729 (sh_cannot_store_register): Turn into...
1730 (sh_target::low_cannot_store_register): ...this.
1731 (the_low_target): Remove the op fields.
1732 * linux-sparc-low.cc (class sparc_target)
1733 <low_cannot_fetch_register>
1734 <low_cannot_store_register>: Declare.
1735 (sparc_cannot_fetch_register): Turn into...
1736 (sparc_target::low_cannot_fetch_register): ...this.
1737 (sparc_cannot_store_register): Turn into...
1738 (sparc_target::low_cannot_store_register): ...this.
1739 (the_low_target): Remove the op fields.
1740 * linux-tic6x-low.cc (class tic6x_target)
1741 <low_cannot_fetch_register>
1742 <low_cannot_store_register>: Declare.
1743 (tic6x_cannot_fetch_register): Turn into...
1744 (tic6x_target::low_cannot_fetch_register): ...this.
1745 (tic6x_cannot_store_register): Turn into...
1746 (tic6x_target::low_cannot_store_register): ...this.
1747 (the_low_target): Remove the op fields.
1748 * linux-tile-low.cc (class tile_target)
1749 <low_cannot_fetch_register>
1750 <low_cannot_store_register>: Declare.
1751 (tile_cannot_fetch_register): Turn into...
1752 (tile_target::low_cannot_fetch_register): ...this.
1753 (tile_cannot_store_register): Turn into...
1754 (tile_target::low_cannot_store_register): ...this.
1755 (the_low_target): Remove the op fields.
1756 * linux-xtensa-low.cc (class xtensa_target)
1757 <low_cannot_fetch_register>
1758 <low_cannot_store_register>: Declare.
1759 (xtensa_target::low_cannot_fetch_register)
1760 (xtensa_target::low_cannot_store_register): Define.
1761 (the_low_target): Remove the op fields.
1763 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1765 Turn the 'regs_info' linux target op into a method of
1766 linux_process_target.
1768 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
1769 (class linux_process_target) <get_regs_info>: Define.
1771 Update the callers below.
1773 * linux-low.cc (linux_process_target::fetch_registers)
1774 (linux_process_target::store_registers)
1775 * proc-service.cc (gregset_info)
1777 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
1778 (x86_linux_regs_info): Turn into ...
1779 (x86_target::get_regs_info): ...this.
1780 (the_low_target): Remove the op field.
1781 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
1783 (aarch64_regs_info): Turn into ...
1784 (aarch64_target::get_regs_info): ...this.
1785 (the_low_target): Remove the op field.
1786 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
1787 (arm_regs_info): Turn into ...
1788 (arm_target::get_regs_info): ...this.
1789 (the_low_target): Remove the op field.
1790 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
1791 (bfin_regs_info): Turn into ...
1792 (bfin_target::get_regs_info): ...this.
1793 (the_low_target): Remove the op field.
1794 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
1795 (cris_regs_info): Turn into ...
1796 (cris_target::get_regs_info): ...this.
1797 (the_low_target): Remove the op field.
1798 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
1800 (crisv32_regs_info): Turn into ...
1801 (crisv32_target::get_regs_info): ...this.
1802 (the_low_target): Remove the op field.
1803 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
1804 (ia64_regs_info): Turn into ...
1805 (ia64_target::get_regs_info): ...this.
1806 (the_low_target): Remove the op field.
1807 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
1808 (m32r_regs_info): Turn into ...
1809 (m32r_target::get_regs_info): ...this.
1810 (the_low_target): Remove the op field.
1811 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
1812 (m68k_regs_info): Turn into ...
1813 (m68k_target::get_regs_info): ...this.
1814 (the_low_target): Remove the op field.
1815 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
1816 (mips_regs_info): Turn into ...
1817 (mips_target::get_regs_info): ...this.
1818 (the_low_target): Remove the op field.
1819 (get_usrregs_info): Update the call to the op.
1820 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
1821 (nios2_regs_info): Turn into ...
1822 (nios2_target::get_regs_info): ...this.
1823 (the_low_target): Remove the op field.
1824 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
1825 (ppc_regs_info): Turn into ...
1826 (ppc_target::get_regs_info): ...this.
1827 (the_low_target): Remove the op field.
1828 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
1829 (riscv_regs_info): Turn into ...
1830 (riscv_target::get_regs_info): ...this.
1831 (the_low_target): Remove the op field.
1832 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
1833 (s390_regs_info): Turn into ...
1834 (s390_target::get_regs_info): ...this.
1835 (the_low_target): Remove the op field.
1836 (s390_collect_ptrace_register)
1837 (s390_supply_ptrace_register)
1838 (s390_fill_gregset): Update the call to the op.
1839 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
1840 (sh_regs_info): Turn into ...
1841 (sh_target::get_regs_info): ...this.
1842 (the_low_target): Remove the op field.
1843 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
1844 (sparc_regs_info): Turn into ...
1845 (sparc_target::get_regs_info): ...this.
1846 (the_low_target): Remove the op field.
1847 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
1848 (tic6x_regs_info): Turn into ...
1849 (tic6x_target::get_regs_info): ...this.
1850 (the_low_target): Remove the op field.
1851 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
1852 (tile_regs_info): Turn into ...
1853 (tile_target::get_regs_info): ...this.
1854 (the_low_target): Remove the op field.
1855 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
1857 (xtensa_regs_info): Turn into ...
1858 (xtensa_target::get_regs_info): ...this.
1859 (the_low_target): Remove the op field.
1861 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1863 Turn the 'arch_setup' linux target op into a method of
1864 linux_process_target.
1866 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
1867 (class linux_process_target) <arch_setup_thread>
1868 <low_arch_setup>: New declarations.
1869 * linux-low.cc (linux_arch_setup): Delete.
1870 (linux_arch_setup_thread): Turn into...
1871 (linux_process_target::arch_setup_thread): ... this.
1873 Update the callers below.
1875 (linux_process_target::handle_extended_wait)
1876 (linux_process_target::post_create_inferior)
1877 (linux_process_target::filter_event)
1879 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
1881 (x86_linux_update_xmltarget): Turn into...
1882 (x86_target::update_xmltarget): ...this.
1883 (x86_linux_process_qsupported): Update the call to
1884 x86_linux_update_xmltarget.
1885 (x86_arch_setup): Turn into ...
1886 (x86_target::low_arch_setup): ...this.
1887 (the_low_target): Remove the op field.
1888 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
1890 (aarch64_arch_setup): Turn into ...
1891 (aarch64_target::low_arch_setup): ...this.
1892 (the_low_target): Remove the op field.
1893 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
1895 (arm_arch_setup): Turn into ...
1896 (arm_target::low_arch_setup): ...this.
1897 (the_low_target): Remove the op field.
1898 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
1900 (bfin_arch_setup): Turn into ...
1901 (bfin_target::low_arch_setup): ...this.
1902 (the_low_target): Remove the op field.
1903 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
1905 (cris_arch_setup): Turn into ...
1906 (cris_target::low_arch_setup): ...this.
1907 (the_low_target): Remove the op field.
1908 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
1910 (crisv32_arch_setup): Turn into ...
1911 (crisv32_target::low_arch_setup): ...this.
1912 (the_low_target): Remove the op field.
1913 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
1915 (ia64_arch_setup): Turn into ...
1916 (ia64_target::low_arch_setup): ...this.
1917 (the_low_target): Remove the op field.
1918 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
1920 (m32r_arch_setup): Turn into ...
1921 (m32r_target::low_arch_setup): ...this.
1922 (the_low_target): Remove the op field.
1923 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
1925 (m68k_arch_setup): Turn into ...
1926 (m68k_target::low_arch_setup): ...this.
1927 (the_low_target): Remove the op field.
1928 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
1930 (mips_arch_setup): Turn into ...
1931 (mips_target::low_arch_setup): ...this.
1932 (the_low_target): Remove the op field.
1933 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
1935 (nios2_arch_setup): Turn into ...
1936 (nios2_target::low_arch_setup): ...this.
1937 (the_low_target): Remove the op field.
1938 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
1940 (ppc_arch_setup): Turn into ...
1941 (ppc_target::low_arch_setup): ...this.
1942 (the_low_target): Remove the op field.
1943 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
1945 (riscv_arch_setup): Turn into ...
1946 (riscv_target::low_arch_setup): ...this.
1947 (the_low_target): Remove the op field.
1948 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
1950 (s390_arch_setup): Turn into ...
1951 (s390_target::low_arch_setup): ...this.
1952 (the_low_target): Remove the op field.
1953 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
1955 (sh_arch_setup): Turn into ...
1956 (sh_target::low_arch_setup): ...this.
1957 (the_low_target): Remove the op field.
1958 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
1960 (sparc_arch_setup): Turn into ...
1961 (sparc_target::low_arch_setup): ...this.
1962 (the_low_target): Remove the op field.
1963 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
1965 (tic6x_arch_setup): Turn into ...
1966 (tic6x_target::low_arch_setup): ...this.
1967 (the_low_target): Remove the op field.
1968 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
1970 (tile_arch_setup): Turn into ...
1971 (tile_target::low_arch_setup): ...this.
1972 (the_low_target): Remove the op field.
1973 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
1975 (xtensa_arch_setup): Turn into ...
1976 (xtensa_target::low_arch_setup): ...this.
1977 (the_low_target): Remove the op field.
1979 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1981 * linux-low.h (the_linux_target): New extern declaration.
1982 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
1984 (the_linux_target): Remove.
1985 * linux-x86-low.cc (class x86_target): New class.
1986 (the_x86_target): New static object.
1987 (the_linux_target): Define as pointer to the_x86_target.
1988 * linux-aarch64-low.cc (class aarch64_target): New class.
1989 (the_aarch64_target): New static object.
1990 (the_linux_target): Define as pointer to the_aarch64_target.
1991 * linux-arm-low.cc (class arm_target): New class.
1992 (the_arm_target): New static object.
1993 (the_linux_target): Define as pointer to the_arm_target.
1994 * linux-bfin-low.cc (class bfin_target): New class.
1995 (the_bfin_target): New static object.
1996 (the_linux_target): Define as pointer to the_bfin_target.
1997 * linux-cris-low.cc (class cris_target): New class.
1998 (the_cris_target): New static object.
1999 (the_linux_target): Define as pointer to the_cris_target.
2000 * linux-crisv32-low.cc (class crisv32_target): New class.
2001 (the_crisv32_target): New static object.
2002 (the_linux_target): Define as pointer to the_crisv32_target.
2003 * linux-ia64-low.cc (class ia64_target): New class.
2004 (the_ia64_target): New static object.
2005 (the_linux_target): Define as pointer to the_ia64_target.
2006 * linux-m32r-low.cc (class m32r_target): New class.
2007 (the_m32r_target): New static object.
2008 (the_linux_target): Define as pointer to the_m32r_target.
2009 * linux-m68k-low.cc (class m68k_target): New class.
2010 (the_m68k_target): New static object.
2011 (the_linux_target): Define as pointer to the_m68k_target.
2012 * linux-mips-low.cc (class mips_target): New class.
2013 (the_mips_target): New static object.
2014 (the_linux_target): Define as pointer to the_mips_target.
2015 * linux-nios2-low.cc (class nios2_target): New class.
2016 (the_nios2_target): New static object.
2017 (the_linux_target): Define as pointer to the_nios2_target.
2018 * linux-ppc-low.cc (class ppc_target): New class.
2019 (the_ppc_target): New static object.
2020 (the_linux_target): Define as pointer to the_ppc_target.
2021 * linux-riscv-low.cc (class riscv_target): New class.
2022 (the_riscv_target): New static object.
2023 (the_linux_target): Define as pointer to the_riscv_target.
2024 * linux-s390-low.cc (class s390_target): New class.
2025 (the_s390_target): New static object.
2026 (the_linux_target): Define as pointer to the_s390_target.
2027 * linux-sh-low.cc (class sh_target): New class.
2028 (the_sh_target): New static object.
2029 (the_linux_target): Define as pointer to the_sh_target.
2030 * linux-sparc-low.cc (class sparc_target): New class.
2031 (the_sparc_target): New static object.
2032 (the_linux_target): Define as pointer to the_sparc_target.
2033 * linux-tic6x-low.cc (class tic6x_target): New class.
2034 (the_tic6x_target): New static object.
2035 (the_linux_target): Define as pointer to the_tic6x_target.
2036 * linux-tile-low.cc (class tile_target): New class.
2037 (the_tile_target): New static object.
2038 (the_linux_target): Define as pointer to the_tile_target.
2039 * linux-xtensa-low.cc (class xtensa_target): New class.
2040 (the_xtensa_target): New static object.
2041 (the_linux_target): Define as pointer to the_xtensa_target.
2043 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2045 Turn some static functions in linux-low.cc into private methods of
2046 linux_process_target.
2048 * linux-low.cc (handle_extended_wait): Turn into ...
2049 (linux_process_target::handle_extended_wait): ...this. Call
2050 'mourn' on 'this' object instead of 'the_target'.
2051 (maybe_move_out_of_jump_pad): Turn into...
2052 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
2053 (linux_low_filter_event): Turn into...
2054 (linux_process_target::filter_event): ...this.
2055 (linux_wait_for_event_filtered): Turn into...
2056 (linux_process_target::wait_for_event_filtered): ...this.
2057 (linux_wait_for_event): Turn into...
2058 (linux_process_target::wait_for_event): ...this.
2059 (linux_wait_1): Turn into...
2060 (linux_process_target::wait_1): ...this.
2061 (wait_for_sigstop): Turn into...
2062 (linux_process_target::wait_for_sigstop): ...this.
2063 (move_out_of_jump_pad_callback): Turn into...
2064 (linux_process_target::move_out_of_jump_pad): ...this.
2065 (stop_all_lwps): Turn into...
2066 (linux_process_target::stop_all_lwps): ...this.
2067 (start_step_over): Turn into...
2068 (linux_process_target::start_step_over): ...this.
2069 (complete_ongoing_step_over): Turn into...
2070 (linux_process_target::complete_ongoing_step_over): ...this.
2071 (proceed_all_lwps): Turn into...
2072 (linux_process_target::proceed_all_lwps): ...this.
2073 (unstop_all_lwps): Turn into...
2074 (linux_process_target::unstop_all_lwps): ...this.
2076 * linux-low.h (class linux_process_target)
2077 <handle_extended_wait>
2078 <maybe_move_out_of_jump_pad>
2080 <wait_for_event_filtered>
2084 <move_out_of_jump_pad>
2087 <complete_ongoing_step_over>
2089 <unstop_all_lwps>: Declare.
2091 Update the callers below.
2093 * linux-low.cc (linux_process_target::attach): Update.
2094 (linux_process_target::stabilize_threads): Ditto.
2095 (linux_process_target::wait): Ditto.
2097 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2099 * linux-low.h (struct linux_target_ops): Update the comment for
2100 'cannot_store_register' to return 0 or 1.
2101 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
2104 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
2106 * config.in: Re-generate.
2107 * configure: Re-generate.
2109 2020-03-17 Kamil Rytarowski <n54@gmx.com>
2111 * regcache.cc (find_register_by_number): Update.
2112 * tdesc.cc (init_target_desc): Likewise.
2113 * tdesc.h (target_desc::reg_defs): Likewise.
2115 2020-03-12 Tom Tromey <tom@tromey.com>
2117 * configure: Rebuild.
2118 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
2119 (WIN32APILIBS): New subst.
2120 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
2122 (gdbsupport/%.o): Remove target.
2123 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
2124 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
2125 (WIN32APILIBS): New variable.
2126 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
2127 (gdbreplay$(EXEEXT)): Likewise.
2129 2020-03-12 Tom Tromey <tom@tromey.com>
2131 * config.in, configure: Rebuild.
2132 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
2133 * acinclude.m4: Include gettext-sister.m4.
2134 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
2136 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
2137 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
2139 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2141 * acinclude.m4: Update path to selftest.m4.
2143 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2145 * configure.ac: Don't source bfd/development.sh, move
2146 GDB_AC_COMMON higher.
2147 * configure: Re-generate.
2149 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2151 * configure: Re-generate.
2153 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
2155 * configure: Re-generate.
2157 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2159 * .dir-locals.el: New file.
2161 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2163 * .gitattributes: New file.
2165 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
2167 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
2168 reply into an S reply.
2169 * server.cc (disable_packet_T): New global.
2170 (captured_main): Set new global when appropriate.
2171 * server.h (disable_packet_T): Declare.
2173 2020-02-21 Tom Tromey <tom@tromey.com>
2175 * Makefile.in (mostlyclean): New target.
2177 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2179 * target.h (struct process_stratum_target): Remove.
2180 (class process_target): Rename to ...
2181 (class process_stratum_target): ... this.
2182 * linux-low.h (class linux_process_target): Derive from
2183 'process_stratum_target'.
2184 * linux-low.cc (linux_target_ops): Remove.
2185 (initialize_low): Set the_target to the singleton instance of
2186 linux_process_target.
2187 * lynx-low.h (class lynx_process_target): Derive from
2188 'process_stratum_target'.
2189 * lynx-low.cc (lynx_target_ops): Remove.
2190 (initialize_low): Set the_target to the singleton instance of
2191 lynx_process_target.
2192 * nto-low.h (class nto_process_target): Derive from
2193 'process_stratum_target'.
2194 * nto-low.cc (nto_target_ops): Remove.
2195 (initialize_low): Set the_target to the singleton instance of
2197 * win32-low.h (class win32_process_target): Derive from
2198 'process_stratum_target'.
2199 * win32-low.cc (win32_target_ops): Remove.
2200 (initialize_low): Set the_target to the singleton instance of
2201 win32_process_target.
2203 Replace 'the_target->pt' with 'the_target' in the uses below.
2205 * hostio.cc (hostio_error)
2210 * linux-aarch32-low.cc (arm_breakpoint_at)
2211 * linux-aarch64-low.cc (aarch64_breakpoint_at)
2212 * linux-arm-low.cc (arm_sigreturn_next_pc)
2214 (arm_get_syscall_trapinfo)
2215 * linux-cris-low.cc (cris_breakpoint_at)
2216 * linux-crisv32-low.cc (cris_breakpoint_at)
2217 * linux-low.cc (handle_extended_wait)
2220 (linux_process_target::breakpoint_kind_from_pc)
2222 * linux-m32r-low.cc (m32r_breakpoint_at)
2223 * linux-mips-low.cc (mips_breakpoint_at)
2224 * linux-nios2-low.cc (nios2_breakpoint_at)
2225 * linux-ppc-low.cc (ppc_breakpoint_at)
2226 * linux-s390-low.cc (s390_get_hwcap)
2227 * linux-sh-low.cc (sh_breakpoint_at)
2228 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
2229 (sparc_store_gregset_from_stack)
2230 (sparc_breakpoint_at)
2231 * linux-tic6x-low.cc (tic6x_breakpoint_at)
2232 * linux-tile-low.cc (tile_breakpoint_at)
2233 * linux-x86-low.cc (x86_breakpoint_at)
2234 * linux-xtensa-low.cc (xtensa_breakpoint_at)
2235 * mem-break.cc (bp_size)
2237 (insert_memory_breakpoint)
2238 (set_raw_breakpoint_at)
2239 (delete_raw_breakpoint)
2241 (uninsert_raw_breakpoint)
2242 (reinsert_raw_breakpoint)
2243 (validate_inserted_breakpoint)
2244 * regcache.cc (regcache_read_pc)
2246 * remote-utils.cc (putpkt_binary_1)
2249 (prepare_resume_reply)
2250 * server.cc (handle_general_set)
2253 (handle_qxfer_exec_file)
2254 (handle_qxfer_libraries_svr4)
2255 (handle_qxfer_osdata)
2256 (handle_qxfer_siginfo)
2257 (handle_qxfer_fdpic)
2261 (queue_stop_reply_callback)
2263 * target.cc (prepare_to_access_memory)
2264 (done_accessing_memory)
2265 (read_inferior_memory)
2266 (target_write_memory)
2267 (target_stop_and_wait)
2269 (target_mourn_inferior)
2270 (target_continue_no_signal)
2272 (target_supports_multi_process)
2275 (target_create_inferior)
2276 (target_post_create_inferior)
2278 (target_supports_fork_events)
2279 (target_supports_vfork_events)
2280 (target_supports_exec_events)
2281 (target_handle_new_gdb_connection)
2284 (fetch_inferior_registers)
2285 (store_inferior_registers)
2287 (target_supports_non_stop)
2289 (target_process_qsupported)
2290 (target_supports_catch_syscall)
2291 (target_get_ipa_tdesc_idx)
2292 (target_supports_tracepoints)
2293 (target_supports_fast_tracepoints)
2294 (target_get_min_fast_tracepoint_insn_len)
2295 (target_thread_stopped)
2297 (target_unpause_all)
2298 (target_stabilize_threads)
2299 (target_install_fast_tracepoint_jump_pad)
2301 (target_supports_disable_randomization)
2302 (target_supports_agent)
2303 (target_enable_btrace)
2304 (target_disable_btrace)
2305 (target_read_btrace)
2306 (target_read_btrace_conf)
2307 (target_supports_range_stepping)
2308 (target_supports_stopped_by_sw_breakpoint)
2309 (target_stopped_by_sw_breakpoint)
2310 (target_supports_stopped_by_hw_breakpoint)
2311 (target_supports_hardware_single_step)
2312 (target_stopped_by_hw_breakpoint)
2313 (target_breakpoint_kind_from_pc)
2314 (target_breakpoint_kind_from_current_state)
2315 (target_supports_software_single_step)
2316 (target_core_of_thread)
2317 (target_thread_name)
2318 (target_thread_handle)
2319 * win32-low.cc (do_initial_child_stuff)
2321 Rename target op default definitions listed below.
2323 * target.cc (process_target::post_create_inferior): Rename as ...
2324 (process_stratum_target::post_create_inferior): ... this.
2325 (process_target::prepare_to_access_memory): Rename as ...
2326 (process_stratum_target::prepare_to_access_memory): ... this.
2327 (process_target::done_accessing_memory): Rename as ...
2328 (process_stratum_target::done_accessing_memory): ... this.
2329 (process_target::look_up_symbols): Rename as ...
2330 (process_stratum_target::look_up_symbols): ... this.
2331 (process_target::supports_read_auxv): Rename as ...
2332 (process_stratum_target::supports_read_auxv): ... this.
2333 (process_target::read_auxv): Rename as ...
2334 (process_stratum_target::read_auxv): ... this.
2335 (process_target::supports_z_point_type): Rename as ...
2336 (process_stratum_target::supports_z_point_type): ... this.
2337 (process_target::insert_point): Rename as ...
2338 (process_stratum_target::insert_point): ... this.
2339 (process_target::remove_point): Rename as ...
2340 (process_stratum_target::remove_point): ... this.
2341 (process_target::stopped_by_sw_breakpoint): Rename as ...
2342 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
2343 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
2344 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
2345 (process_target::stopped_by_hw_breakpoint): Rename as ...
2346 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
2347 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
2348 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
2349 (process_target::supports_hardware_single_step): Rename as ...
2350 (process_stratum_target::supports_hardware_single_step): ... this.
2351 (process_target::stopped_by_watchpoint): Rename as ...
2352 (process_stratum_target::stopped_by_watchpoint): ... this.
2353 (process_target::stopped_data_address): Rename as ...
2354 (process_stratum_target::stopped_data_address): ... this.
2355 (process_target::supports_read_offsets): Rename as ...
2356 (process_stratum_target::supports_read_offsets): ... this.
2357 (process_target::read_offsets): Rename as ...
2358 (process_stratum_target::read_offsets): ... this.
2359 (process_target::supports_get_tls_address): Rename as ...
2360 (process_stratum_target::supports_get_tls_address): ... this.
2361 (process_target::get_tls_address): Rename as ...
2362 (process_stratum_target::get_tls_address): ... this.
2363 (process_target::hostio_last_error): Rename as ...
2364 (process_stratum_target::hostio_last_error): ... this.
2365 (process_target::supports_qxfer_osdata): Rename as ...
2366 (process_stratum_target::supports_qxfer_osdata): ... this.
2367 (process_target::qxfer_osdata): Rename as ...
2368 (process_stratum_target::qxfer_osdata): ... this.
2369 (process_target::supports_qxfer_siginfo): Rename as ...
2370 (process_stratum_target::supports_qxfer_siginfo): ... this.
2371 (process_target::qxfer_siginfo): Rename as ...
2372 (process_stratum_target::qxfer_siginfo): ... this.
2373 (process_target::supports_non_stop): Rename as ...
2374 (process_stratum_target::supports_non_stop): ... this.
2375 (process_target::async): Rename as ...
2376 (process_stratum_target::async): ... this.
2377 (process_target::start_non_stop): Rename as ...
2378 (process_stratum_target::start_non_stop): ... this.
2379 (process_target::supports_multi_process): Rename as ...
2380 (process_stratum_target::supports_multi_process): ... this.
2381 (process_target::supports_fork_events): Rename as ...
2382 (process_stratum_target::supports_fork_events): ... this.
2383 (process_target::supports_vfork_events): Rename as ...
2384 (process_stratum_target::supports_vfork_events): ... this.
2385 (process_target::supports_exec_events): Rename as ...
2386 (process_stratum_target::supports_exec_events): ... this.
2387 (process_target::handle_new_gdb_connection): Rename as ...
2388 (process_stratum_target::handle_new_gdb_connection): ... this.
2389 (process_target::handle_monitor_command): Rename as ...
2390 (process_stratum_target::handle_monitor_command): ... this.
2391 (process_target::core_of_thread): Rename as ...
2392 (process_stratum_target::core_of_thread): ... this.
2393 (process_target::supports_read_loadmap): Rename as ...
2394 (process_stratum_target::supports_read_loadmap): ... this.
2395 (process_target::read_loadmap): Rename as ...
2396 (process_stratum_target::read_loadmap): ... this.
2397 (process_target::process_qsupported): Rename as ...
2398 (process_stratum_target::process_qsupported): ... this.
2399 (process_target::supports_tracepoints): Rename as ...
2400 (process_stratum_target::supports_tracepoints): ... this.
2401 (process_target::read_pc): Rename as ...
2402 (process_stratum_target::read_pc): ... this.
2403 (process_target::write_pc): Rename as ...
2404 (process_stratum_target::write_pc): ... this.
2405 (process_target::supports_thread_stopped): Rename as ...
2406 (process_stratum_target::supports_thread_stopped): ... this.
2407 (process_target::thread_stopped): Rename as ...
2408 (process_stratum_target::thread_stopped): ... this.
2409 (process_target::supports_get_tib_address): Rename as ...
2410 (process_stratum_target::supports_get_tib_address): ... this.
2411 (process_target::get_tib_address): Rename as ...
2412 (process_stratum_target::get_tib_address): ... this.
2413 (process_target::pause_all): Rename as ...
2414 (process_stratum_target::pause_all): ... this.
2415 (process_target::unpause_all): Rename as ...
2416 (process_stratum_target::unpause_all): ... this.
2417 (process_target::stabilize_threads): Rename as ...
2418 (process_stratum_target::stabilize_threads): ... this.
2419 (process_target::supports_fast_tracepoints): Rename as ...
2420 (process_stratum_target::supports_fast_tracepoints): ... this.
2421 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
2422 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
2423 (process_target::emit_ops): Rename as ...
2424 (process_stratum_target::emit_ops): ... this.
2425 (process_target::supports_disable_randomization): Rename as ...
2426 (process_stratum_target::supports_disable_randomization): ... this.
2427 (process_target::supports_qxfer_libraries_svr4): Rename as ...
2428 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
2429 (process_target::qxfer_libraries_svr4): Rename as ...
2430 (process_stratum_target::qxfer_libraries_svr4): ... this.
2431 (process_target::supports_agent): Rename as ...
2432 (process_stratum_target::supports_agent): ... this.
2433 (process_target::enable_btrace): Rename as ...
2434 (process_stratum_target::enable_btrace): ... this.
2435 (process_target::disable_btrace): Rename as ...
2436 (process_stratum_target::disable_btrace): ... this.
2437 (process_target::read_btrace): Rename as ...
2438 (process_stratum_target::read_btrace): ... this.
2439 (process_target::read_btrace_conf): Rename as ...
2440 (process_stratum_target::read_btrace_conf): ... this.
2441 (process_target::supports_range_stepping): Rename as ...
2442 (process_stratum_target::supports_range_stepping): ... this.
2443 (process_target::supports_pid_to_exec_file): Rename as ...
2444 (process_stratum_target::supports_pid_to_exec_file): ... this.
2445 (process_target::pid_to_exec_file): Rename as ...
2446 (process_stratum_target::pid_to_exec_file): ... this.
2447 (process_target::supports_multifs): Rename as ...
2448 (process_stratum_target::supports_multifs): ... this.
2449 (process_target::multifs_open): Rename as ...
2450 (process_stratum_target::multifs_open): ... this.
2451 (process_target::multifs_unlink): Rename as ...
2452 (process_stratum_target::multifs_unlink): ... this.
2453 (process_target::multifs_readlink): Rename as ...
2454 (process_stratum_target::multifs_readlink): ... this.
2455 (process_target::breakpoint_kind_from_pc): Rename as ...
2456 (process_stratum_target::breakpoint_kind_from_pc): ... this.
2457 (process_target::breakpoint_kind_from_current_state): Rename as ...
2458 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
2459 (process_target::thread_name): Rename as ...
2460 (process_stratum_target::thread_name): ... this.
2461 (process_target::thread_handle): Rename as ...
2462 (process_stratum_target::thread_handle): ... this.
2463 (process_target::supports_software_single_step): Rename as ...
2464 (process_stratum_target::supports_software_single_step): ... this.
2465 (process_target::supports_catch_syscall): Rename as ...
2466 (process_stratum_target::supports_catch_syscall): ... this.
2467 (process_target::get_ipa_tdesc_idx): Rename as ...
2468 (process_stratum_target::get_ipa_tdesc_idx): ... this.
2470 2020-02-20 Pedro Alves <palves@redhat.com>
2472 * target.cc (set_target_ops): Simply copy the given target pointer
2473 instead of creating a copy of the pointed object.
2475 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2477 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
2480 * target.h (struct process_stratum_target): Remove the target op.
2481 (class process_target): Add the target op.
2482 (target_get_ipa_tdesc_idx): Update the macro.
2483 * target.cc (process_target::get_ipa_tdesc_idx): Define.
2485 Update the derived classes and callers below.
2487 * linux-low.cc (linux_target_ops): Update.
2488 (linux_get_ipa_tdesc_idx): Turn into ...
2489 (linux_process_target::get_ipa_tdesc_idx): ... this.
2490 * linux-low.h (class linux_process_target): Update.
2491 * lynx-low.cc (lynx_target_ops): Update.
2492 * nto-low.cc (nto_target_ops): Update.
2493 * win32-low.cc (win32_target_ops): Update.
2495 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2497 Turn process_stratum_target's supports_catch_syscall op into a
2498 method of process_target.
2500 * target.h (struct process_stratum_target): Remove the target op.
2501 (class process_target): Add the target op.
2502 (target_supports_catch_syscall): Update the macro.
2503 * target.cc (process_target::supports_catch_syscall): Define.
2505 Update the derived classes and callers below.
2507 * linux-low.cc (linux_target_ops): Update.
2508 (linux_supports_catch_syscall): Turn into ...
2509 (linux_process_target::supports_catch_syscall): ... this.
2510 * linux-low.h (class linux_process_target): Update.
2511 * lynx-low.cc (lynx_target_ops): Update.
2512 * nto-low.cc (nto_target_ops): Update.
2513 * win32-low.cc (win32_target_ops): Update.
2515 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2517 Turn process_stratum_target's supports_software_single_step op
2518 into a method of process_target.
2520 * target.h (struct process_stratum_target): Remove the target op.
2521 (class process_target): Add the target op.
2522 (target_supports_software_single_step): Update the macro.
2523 * target.cc (process_target::supports_software_single_step): Define.
2525 Update the derived classes and callers below.
2527 * linux-low.cc (linux_target_ops): Update.
2528 (linux_supports_software_single_step): Turn into ...
2529 (linux_process_target::supports_software_single_step): ... this.
2530 * linux-low.h (class linux_process_target): Update.
2531 * lynx-low.cc (lynx_target_ops): Update.
2532 * nto-low.cc (nto_target_ops): Update.
2533 * win32-low.cc (win32_target_ops): Update.
2535 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2537 Turn process_stratum_target's thread_name and thread_handle ops
2538 into methods of process_target.
2540 * target.h (struct process_stratum_target): Remove the target ops.
2541 (class process_target): Add the target ops.
2542 (target_thread_name): Update the macro.
2543 (target_thread_handle): Update the macro.
2544 * target.cc (process_target::thread_name): Define.
2545 (process_target::thread_handle): Define.
2547 Update the derived classes and callers below.
2549 * linux-low.cc (linux_target_ops): Update.
2550 (linux_process_target::thread_name): Define.
2551 (linux_process_target::thread_handle): Define.
2552 * linux-low.h (class linux_process_target): Update.
2553 * lynx-low.cc (lynx_target_ops): Update.
2554 * nto-low.cc (nto_target_ops): Update.
2555 * win32-low.cc (win32_target_ops): Update.
2557 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2559 Turn process_stratum_target's breakpoint_kind_from_pc,
2560 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
2561 ops into methods of process_target.
2563 * target.h (struct process_stratum_target): Remove the target op.
2564 (class process_target): Add the target op.
2565 (target_breakpoint_kind_from_pc): Update the macro.
2566 (target_breakpoint_kind_from_current_state): Update the macro.
2567 (default_breakpoint_kind_from_pc): Remove declaration.
2568 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
2569 (process_target::breakpoint_kind_from_pc): ... this.
2570 (process_target::breakpoint_kind_from_current_state): Define.
2572 Update the derived classes and callers below.
2574 * mem-break.cc (bp_size): Update.
2575 (bp_opcode): Update.
2576 * linux-low.cc (linux_target_ops): Update.
2577 (linux_wait_1): Update.
2578 (linux_breakpoint_kind_from_pc): Turn into ...
2579 (linux_process_target::breakpoint_kind_from_pc): ... this.
2580 (linux_sw_breakpoint_from_kind): Turn into ...
2581 (linux_process_target::sw_breakpoint_from_kind): ... this.
2582 (linux_breakpoint_kind_from_current_state): Turn into ...
2583 (linux_process_target::breakpoint_kind_from_current_state): ... this.
2584 * linux-low.h (class linux_process_target): Update.
2585 * lynx-low.cc (lynx_target_ops): Update.
2586 (lynx_process_target::sw_breakpoint_from_kind): Define.
2587 * lynx-low.h (class lynx_process_target): Update.
2588 * nto-low.cc (nto_target_ops): Update.
2589 (nto_sw_breakpoint_from_kind): Turn into ...
2590 (nto_process_target::sw_breakpoint_from_kind): ... this.
2591 * nto-low.h (class nto_process_target): Update.
2592 * win32-low.cc (win32_target_ops): Update.
2593 (win32_sw_breakpoint_from_kind): Turn into ...
2594 (win32_process_target::sw_breakpoint_from_kind): ... this.
2595 * win32-low.h (class win32_process_target): Update.
2597 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2599 Turn process_stratum_target's multifs_open, multifs_readlink,
2600 multifs_unlink ops into methods of process_target.
2602 * target.h (struct process_stratum_target): Remove the target ops.
2603 (class process_target): Add the target ops. Also add
2605 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
2607 (process_target::supports_multifs): Define.
2608 (process_target::multifs_open): Define.
2609 (process_target::multifs_readlink): Define.
2610 (process_target::multifs_unlink): Define.
2612 Update the derived classes and callers below.
2614 * hostio.cc (handle_setfs): Update.
2615 (handle_open): Update.
2616 (handle_unlink): Update.
2617 (handle_readlink): Update.
2618 * linux-low.cc (linux_target_ops): Update.
2619 (linux_process_target::supports_multifs): Define.
2620 (linux_process_target::multifs_open): Define.
2621 (linux_process_target::multifs_readlink): Define.
2622 (linux_process_target::multifs_unlink): Define.
2623 * linux-low.h (class linux_process_target): Update.
2624 * lynx-low.cc (lynx_target_ops): Update.
2625 * nto-low.cc (nto_target_ops): Update.
2626 * win32-low.cc (win32_target_ops): Update.
2628 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2630 Turn process_stratum_target's pid_to_exec_file op into a method
2633 * target.h (struct process_stratum_target): Remove the target op.
2634 (class process_target): Add the target op. Also add
2635 'supports_pid_to_exec_file'.
2636 * target.cc (process_target::pid_to_exec_file): Define.
2637 (process_target::supports_pid_to_exec_file): Define.
2639 Update the derived classes and callers below.
2641 * server.cc (handle_qxfer_exec_file): Update.
2642 (handle_query): Update.
2643 * linux-low.cc (linux_target_ops): Update.
2644 (linux_process_target::supports_pid_to_exec_file): Define.
2645 (linux_process_target::pid_to_exec_file): Define.
2646 * linux-low.h (class linux_process_target): Update.
2647 * lynx-low.cc (lynx_target_ops): Update.
2648 * nto-low.cc (nto_target_ops): Update.
2649 * win32-low.cc (win32_target_ops): Update.
2651 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2653 Turn process_stratum_target's supports_range_stepping op into a
2654 method of process_target.
2656 * target.h (struct process_stratum_target): Remove the target op.
2657 (class process_target): Add the target op.
2658 (target_supports_range_stepping): Update the macro.
2659 * target.cc (process_target::supports_range_stepping): Define.
2661 Update the derived classes and callers below.
2663 * linux-low.cc (linux_target_ops): Update.
2664 (linux_supports_range_stepping): Turn into ...
2665 (linux_process_target::supports_range_stepping): ... this.
2666 * linux-low.h (class linux_process_target): Update.
2667 * lynx-low.cc (lynx_target_ops): Update.
2668 * nto-low.cc (nto_target_ops): Update.
2669 * win32-low.cc (win32_target_ops): Update.
2671 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2673 Turn process_stratum_target's btrace-related ops (enable_btrace,
2674 disable_btrace, read_btrace, read_btrace_conf) into methods of
2677 * target.h (struct process_stratum_target): Remove the target ops.
2678 (class process_target): Add the target ops.
2679 (target_enable_btrace): Update.
2680 (target_disable_btrace): Update.
2681 (target_read_btrace): Update.
2682 (target_read_btrace_conf): Update.
2683 * target.cc (process_target::enable_btrace): Define.
2684 (process_target::disable_btrace): Define.
2685 (process_target::read_btrace): Define.
2686 (process_target::read_btrace_conf): Define.
2688 Update the derived classes and callers below.
2690 * linux-low.cc (linux_target_ops): Update.
2691 (linux_process_target:enable_btrace): Define as a wrapper around
2692 linux_enable_btrace.
2693 (linux_low_disable_btrace): Turn into ...
2694 (linux_process_target::disable_btrace): ... this.
2695 (linux_low_read_btrace): Turn into ...
2696 (linux_process_target::read_btrace): ... this.
2697 (linux_low_btrace_conf): Turn into ...
2698 (linux_process_target::read_btrace_conf): ... this.
2699 * linux-low.h (class linux_process_target): Update.
2700 * lynx-low.cc (lynx_target_ops): Update.
2701 * nto-low.cc (nto_target_ops): Update.
2702 * win32-low.cc (win32_target_ops): Update.
2704 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2706 Turn process_stratum_target's supports_agent op into a method of
2709 * target.h (struct process_stratum_target): Remove the target op.
2710 (class process_target): Add the target op.
2711 (target_supports_agent): Update the macro.
2712 * target.cc (process_target::supports_agent): Define.
2714 Update the derived classes and callers below.
2716 * linux-low.cc (linux_target_ops): Update.
2717 (linux_supports_agent): Turn into ...
2718 (linux_process_target::supports_agent): ... this.
2719 * linux-low.h (class linux_process_target): Update.
2720 * lynx-low.cc (lynx_target_ops): Update.
2721 * nto-low.cc (nto_target_ops): Update.
2722 * win32-low.cc (win32_target_ops): Update.
2724 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2726 Turn process_stratum_target's qxfer_libraries_svr4 op into a
2727 method of process_target.
2729 * target.h (struct process_stratum_target): Remove the target op.
2730 (class process_target): Add the target op. Also add
2731 'supports_qxfer_libraries_svr4'.
2732 * target.cc (process_target::qxfer_libraries_svr4): Define.
2733 (process_target::supports_qxfer_libraries_svr4): Define.
2735 Update the derived classes and callers below.
2737 * server.cc (handle_qxfer_libraries_svr4): Update.
2738 (handle_query): Update.
2739 * linux-low.cc (linux_target_ops): Update.
2740 (linux_process_target::supports_qxfer_libraries_svr4): Define.
2741 (linux_qxfer_libraries_svr4): Turn into ...
2742 (linux_process_target::qxfer_libraries_svr4): ... this.
2743 * linux-low.h (class linux_process_target): Update.
2744 * lynx-low.cc (lynx_target_ops): Update.
2745 * nto-low.cc (nto_target_ops): Update.
2746 * win32-low.cc (win32_target_ops): Update.
2748 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2750 Turn process_stratum_target's supports_disable_randomization op
2751 into a method of process_target.
2753 * target.h (struct process_stratum_target): Remove the target op.
2754 (class process_target): Add the target op.
2755 (target_supports_disable_randomization): Update the macro.
2756 * target.cc (process_target::supports_disable_randomization): Define.
2758 Update the derived classes and callers below.
2760 * linux-low.cc (linux_target_ops): Update.
2761 (linux_supports_disable_randomization): Turn into ...
2762 (linux_process_target::supports_disable_randomization): ... this.
2763 * linux-low.h (class linux_process_target): Update.
2764 * lynx-low.cc (lynx_target_ops): Update.
2765 * nto-low.cc (nto_target_ops): Update.
2766 * win32-low.cc (win32_target_ops): Update.
2768 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2770 Turn process_stratum_target's emit_ops op into a method of
2773 * target.h (struct process_stratum_target): Remove the target op.
2774 (class process_target): Add the target op.
2775 (target_emit_ops): Update the macro.
2776 * target.cc (process_target::emit_ops): Define.
2778 Update the derived classes and callers below.
2780 * linux-low.cc (linux_target_ops): Update.
2781 (linux_emit_ops): Turn into ...
2782 (linux_process_target::emit_ops): ... this.
2783 * linux-low.h (class linux_process_target): Update.
2784 * lynx-low.cc (lynx_target_ops): Update.
2785 * nto-low.cc (nto_target_ops): Update.
2786 * win32-low.cc (win32_target_ops): Update.
2788 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2790 Turn process_stratum_target's install_fast_tracepoint_jump_pad
2791 and get_min_fast_tracepoint_insn_len ops into methods of
2794 * target.h (struct process_stratum_target): Remove the target ops.
2795 (class process_target): Add the target ops. Also add
2796 'supports_fast_tracepoints'.
2797 (target_supports_fast_tracepoints): Update the macro.
2798 (target_get_min_fast_tracepoint_insn_len): Update the macro.
2799 (install_fast_tracepoint_jump_pad): Update and rename the macro
2801 (target_install_fast_tracepoint_jump_pad): ... this.
2802 * target.cc (process_target::supports_fast_tracepoints): Define.
2803 (process_target::install_fast_tracepoint_jump_pad): Define.
2804 (process_target::get_min_fast_tracepoint_insn_len): Define.
2806 Update the derived classes and callers below.
2808 * tracepoint.cc (install_fast_tracepoint): Update.
2809 * linux-low.cc (linux_target_ops): Update.
2810 (linux_process_target::supports_fast_tracepoints): Define.
2811 (linux_install_fast_tracepoint_jump_pad): Turn into ...
2812 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
2813 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
2814 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
2815 * linux-low.h (class linux_process_target): Update.
2816 * lynx-low.cc (lynx_target_ops): Update.
2817 * nto-low.cc (nto_target_ops): Update.
2818 * win32-low.cc (win32_target_ops): Update.
2820 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2822 Turn process_stratum_target's stabilize_threads op into a
2823 method of process_target.
2825 * target.h (struct process_stratum_target): Remove the target op.
2826 (class process_target): Add the target op.
2827 (target_stabilize_threads): Update the macro.
2828 * target.cc (process_target::stabilize_threads): Define.
2830 Update the derived classes and callers below.
2832 * server.cc (handle_status): Update.
2833 * tracepoint.cc (cmd_qtdp): Update.
2834 (cmd_qtstart): Update.
2835 * linux-low.cc (linux_target_ops): Update.
2836 (linux_stabilize_threads): Turn into ...
2837 (linux_process_target::stabilize_threads): ... this.
2838 (linux_wait_1): Update.
2839 * linux-low.h (class linux_process_target): Update.
2840 * lynx-low.cc (lynx_target_ops): Update.
2841 * nto-low.cc (nto_target_ops): Update.
2842 * win32-low.cc (win32_target_ops): Update.
2844 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2846 Turn process_stratum_target's pause_all and unpause_all ops
2847 into methods of process_target.
2849 * target.h (struct process_stratum_target): Remove the target ops.
2850 (class process_target): Add the target ops.
2851 (pause_all): Update the macro and rename to...
2852 (target_pause_all): ... this.
2853 (unpause_all): Update the macro and rename to...
2854 (target_unpause_all): ... this.
2855 * target.cc (process_target::pause_all): Define.
2856 (process_target::unpause_all): Define.
2858 Update the derived classes and callers below.
2860 * server.cc (handle_status): Update.
2861 * tracepoint.cc (clear_installed_tracepoints): Update.
2863 (cmd_qtstart): Update.
2864 (stop_tracing): Update.
2865 (cmd_qtstatus): Update.
2866 (upload_fast_traceframes): Update.
2867 (run_inferior_command): Update.
2868 * linux-low.cc (linux_target_ops): Update.
2869 (linux_pause_all): Turn into ...
2870 (linux_process_target::pause_all): ... this.
2871 (linux_unpause_all): Turn into ...
2872 (linux_process_target::unpause_all): ... this.
2873 (linux_process_target::prepare_to_access_memory): Update.
2874 (linux_process_target::done_accessing_memory): Update.
2875 * linux-low.h (class linux_process_target): Update.
2876 * lynx-low.cc (lynx_target_ops): Update.
2877 * nto-low.cc (nto_target_ops): Update.
2878 * win32-low.cc (win32_target_ops): Update.
2880 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2882 Turn process_stratum_target's get_tib_address op into a method of
2885 * target.h (struct process_stratum_target): Remove the target op.
2886 (class process_target): Add the target op. Also add
2887 'supports_get_tib_address'.
2888 * target.cc (process_target::get_tib_address): Define.
2889 (process_target::supports_get_tib_address): Define.
2891 Update the derived classes and callers below.
2893 * server.cc (handle_query): Update.
2894 * linux-low.cc (win32_target_ops): 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.
2898 (win32_process_target::supports_get_tib_address): Define.
2899 (win32_get_tib_address): Turn into ...
2900 (win32_process_target::get_tib_address): ... this.
2901 * win32-low.h (class win32_process_target): Update.
2903 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2905 Turn process_stratum_target's thread_stopped op into a method of
2908 * target.h (struct process_stratum_target): Remove the target op.
2909 (class process_target): Add the target op. Also add
2910 'supports_thread_stopped'.
2911 (target_thread_stopped): Update the macro.
2912 * target.cc (process_target::thread_stopped): Define.
2913 (process_target::supports_thread_stopped): Define.
2914 (prepare_to_access_memory): Update.
2916 Update the derived classes and callers below.
2918 * server.cc (queue_stop_reply_callback): Update.
2919 * linux-low.cc (linux_target_ops): Update.
2920 (linux_process_target::supports_thread_stopped): Define.
2921 (linux_thread_stopped): Turn into ...
2922 (linux_process_target::thread_stopped): ... this.
2923 * linux-low.h (class linux_process_target): Update.
2924 * lynx-low.cc (lynx_target_ops): Update.
2925 * nto-low.cc (nto_target_ops): Update.
2926 * win32-low.cc (win32_target_ops): Update.
2928 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2930 Turn process_stratum_target's read_pc and write_pc ops into
2931 methods of process_target.
2933 * target.h (struct process_stratum_target): Remove the target ops.
2934 (class process_target): Add the target ops.
2935 * target.cc (process_target::read_pc): Define.
2936 (process_target::write_pc): Define.
2938 Update the derived classes and callers below.
2940 * regcache.cc (regcache_read_pc): Update.
2941 (regcache_write_pc): Update.
2942 * linux-low.cc (linux_target_ops): Update.
2943 (linux_read_pc): Turn into ...
2944 (linux_process_target::read_pc): ... this.
2945 (linux_write_pc): Turn into ...
2946 (linux_process_target::write_pc): ... this.
2947 * linux-low.h (class linux_process_target): Update.
2948 * lynx-low.cc (lynx_target_ops): Update.
2949 * nto-low.cc (nto_target_ops): Update.
2950 * win32-low.cc (win32_target_ops): Update.
2952 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2954 Turn process_stratum_target's supports_tracepoints op into a
2955 method of process_target.
2957 * target.h (struct process_stratum_target): Remove the target op.
2958 (class process_target): Add the target op.
2959 (target_supports_tracepoints): Update the macro.
2960 * target.cc (process_target::supports_tracepoints): Define.
2962 Update the derived classes and callers below.
2964 * linux-low.cc (linux_target_ops): Update.
2965 (linux_supports_tracepoints): Turn into ...
2966 (linux_process_target::supports_tracepoints): ... this.
2967 * linux-low.h (class linux_process_target): Update.
2968 * lynx-low.cc (lynx_target_ops): Update.
2969 * nto-low.cc (nto_target_ops): Update.
2970 * win32-low.cc (win32_target_ops): Update.
2972 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2974 Turn process_stratum_target's process_qsupported op into a method
2977 * target.h (struct process_stratum_target): Remove the target op.
2978 (class process_target): Add the target op.
2979 (target_process_qsupported): Update the macro.
2980 * target.cc (process_target::process_qsupported): Define.
2982 Update the derived classes and callers below.
2984 * linux-low.cc (linux_target_ops): Update.
2985 (linux_process_qsupported): Turn into ...
2986 (linux_process_target::process_qsupported): ... this.
2987 * linux-low.h (class linux_process_target): Update.
2988 * lynx-low.cc (lynx_target_ops): Update.
2989 * nto-low.cc (nto_target_ops): Update.
2990 * win32-low.cc (win32_target_ops): Update.
2992 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2994 Turn process_stratum_target's read_loadmap op into a method of
2997 * target.h (struct process_stratum_target): Remove the target op.
2998 (class process_target): Add the target op. Also add
2999 'supports_read_loadmap'.
3000 * target.cc (process_target::read_loadmap): Define.
3001 (process_target::supports_read_loadmap): Define.
3003 Update the derived classes and callers below.
3005 * server.cc (handle_qxfer_fdpic): Update.
3006 (handle_query): Update.
3007 * linux-low.cc (linux_target_ops): Update.
3008 (linux_process_target::supports_read_loadmap): Define.
3009 (linux_read_loadmap): Turn into ...
3010 (linux_process_target::read_loadmap): ... this.
3011 * linux-low.h (class linux_process_target): Update.
3012 * lynx-low.cc (lynx_target_ops): Update.
3013 * nto-low.cc (nto_target_ops): Update.
3014 * win32-low.cc (win32_target_ops): Update.
3016 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3018 Turn process_stratum_target's core_of_thread op into a method of
3021 * target.h (struct process_stratum_target): Remove the target op.
3022 (class process_target): Add the target op.
3023 (target_core_of_thread): Update the macro.
3024 * target.cc (process_target::core_of_thread): Define.
3026 Update the derived classes and callers below.
3028 * linux-low.cc (linux_target_ops): Update.
3029 (linux_process_target::core_of_thread): Define.
3030 * linux-low.h (class linux_process_target): Update.
3031 * lynx-low.cc (lynx_target_ops): Update.
3032 * nto-low.cc (nto_target_ops): Update.
3033 * win32-low.cc (win32_target_ops): Update.
3035 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3037 Turn process_stratum_target's handle_monitor_command op into a
3038 method of process_target.
3040 * target.h (struct process_stratum_target): Remove the target op.
3041 (class process_target): Add the target op.
3042 (target_handle_monitor_command): Update the macro.
3043 * target.cc (process_target::handle_monitor_command): Define.
3045 Update the derived classes and callers below.
3047 * server.cc (handle_query): Update.
3048 * linux-low.cc (linux_target_ops): Update.
3049 (linux_process_target::handle_monitor_command): Define.
3050 * linux-low.h (class linux_process_target): Update.
3051 * lynx-low.cc (lynx_target_ops): Update.
3052 * nto-low.cc (nto_target_ops): Update.
3053 * win32-low.cc (win32_target_ops): Update.
3055 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3057 Turn process_stratum_target's handle_new_gdb_connection op into a
3058 method of process_target.
3060 * target.h (struct process_stratum_target): Remove the target op.
3061 (class process_target): Add the target op.
3062 (target_handle_new_gdb_connection): Update the macro.
3063 * target.cc (process_target::handle_new_gdb_connection): Define.
3065 Update the derived classes and callers below.
3067 * linux-low.cc (linux_target_ops): Update.
3068 (linux_handle_new_gdb_connection): Turn into ...
3069 (linux_process_target::handle_new_gdb_connection): ... 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_fork_events,
3078 supports_vfork_events, and supports_exec_events ops into methods
3081 * target.h (struct process_stratum_target): Remove the target ops.
3082 (class process_target): Add the target ops.
3083 (target_supports_fork_events): Update the macro.
3084 (target_supports_vfork_events): Update the macro.
3085 (target_supports_exec_events): Update the macro.
3086 * target.cc (process_target::supports_fork_events): Define.
3087 (process_target::supports_vfork_events): Define.
3088 (process_target::supports_exec_events): Define.
3090 Update the derived classes and callers below.
3092 * linux-low.cc (linux_target_ops): Update.
3093 (linux_supports_fork_events): Turn into ...
3094 (linux_process_target::supports_fork_events): ... this.
3095 (linux_supports_vfork_events): Turn into ...
3096 (linux_process_target::supports_vfork_events): ... this.
3097 (linux_supports_exec_events): Turn into ...
3098 (linux_process_target::supports_exec_events): ... this.
3099 * linux-low.h (class linux_process_target): Update.
3100 * lynx-low.cc (lynx_target_ops): Update.
3101 * nto-low.cc (nto_target_ops): Update.
3102 * win32-low.cc (win32_target_ops): Update.
3104 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3106 Turn process_stratum_target's supports_multi_process op into a
3107 method of process_target.
3109 * target.h (struct process_stratum_target): Remove the target op.
3110 (class process_target): Add the target op.
3111 * target.cc (process_target::supports_multi_process): Define.
3112 (target_supports_multi_process): Update.
3114 Update the derived classes and callers below.
3116 * linux-low.cc (linux_target_ops): Update.
3117 (linux_supports_multi_process): Turn into ...
3118 (linux_process_target::supports_multi_process): ... this.
3119 * linux-low.h (class linux_process_target): Update.
3120 * lynx-low.cc (lynx_target_ops): Update.
3121 * nto-low.cc (nto_target_ops): Update.
3122 * win32-low.cc (win32_target_ops): Update.
3124 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3126 Turn process_stratum_target's supports_non_stop, async, and
3127 start_non_stop ops into methods of process_target.
3129 * target.h (struct process_stratum_target): Remove the target ops.
3130 (class process_target): Add the target ops.
3131 (target_supports_non_stop): Update the macro.
3132 (target_async): Update the macro.
3133 (start_non_stop): Remove declaration.
3134 * target.cc (process_target::supports_non_stop): Define.
3135 (process_target::async): Define.
3136 (process_target::start_non_stop): Define.
3137 (start_non_stop): Remove.
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_supports_non_stop): Turn into ...
3145 (linux_process_target::supports_non_stop): ... this.
3146 (linux_async): Turn into ...
3147 (linux_process_target::async): ... this.
3148 (linux_start_non_stop): Turn into ...
3149 (linux_process_target::start_non_stop): ... this.
3150 * linux-low.h (class linux_process_target): Update.
3151 * lynx-low.cc (lynx_target_ops): Update.
3152 * nto-low.cc (nto_target_ops): Update.
3153 (nto_supports_non_stop): Remove; rely on the default behavior
3155 * win32-low.cc (win32_target_ops): Update.
3157 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3159 Turn process_stratum_target's qxfer_siginfo op into a method of
3162 * target.h (struct process_stratum_target): Remove the target op.
3163 (class process_target): Add the target op. Also add
3164 'supports_qxfer_siginfo'.
3165 * target.cc (process_target::qxfer_siginfo): Define.
3166 (process_target::supports_qxfer_siginfo): Define.
3168 Update the derived classes and callers below.
3170 * server.cc (handle_qxfer_siginfo): Update.
3171 (handle_query): Update.
3172 * linux-low.cc (linux_target_ops): Update.
3173 (linux_process_target::supports_qxfer_siginfo): Define.
3174 (linux_xfer_siginfo): Turn into ...
3175 (linux_process_target::qxfer_siginfo): ... this.
3176 * linux-low.h (class linux_process_target): Update.
3177 * lynx-low.cc (lynx_target_ops): Update.
3178 * nto-low.cc (nto_target_ops): Update.
3179 * win32-low.cc (win32_target_ops): Update.
3181 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3183 Turn process_stratum_target's qxfer_osdata op into a method of
3186 * target.h (struct process_stratum_target): Remove the target op.
3187 (class process_target): Add the target op. Also add
3188 'supports_qxfer_osdata'.
3189 * target.cc (process_target::qxfer_osdata): Define.
3190 (process_target::supports_qxfer_osdata): Define.
3192 Update the derived classes and callers below.
3194 * server.cc (handle_qxfer_osdata): Update.
3195 (handle_query): Update.
3196 * linux-low.cc (linux_target_ops): Update.
3197 (linux_process_target::supports_qxfer_osdata): Define.
3198 (linux_qxfer_osdata): Turn into ...
3199 (linux_process_target::qxfer_osdata): ... this.
3200 * linux-low.h (class linux_process_target): Update.
3201 * lynx-low.cc (lynx_target_ops): Update.
3202 * nto-low.cc (nto_target_ops): Update.
3203 * win32-low.cc (win32_target_ops): Update.
3205 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3207 Turn process_stratum_target's hostio_last_error op into a
3208 method of process_target.
3210 * target.h (struct process_stratum_target): Remove the target op.
3211 (class process_target): Add the target op.
3212 * target.cc: Add "hostio.h" to includes.
3213 (process_target::hostio_last_error): Define.
3215 Update the derived classes and callers below.
3217 * hostio.cc (hostio_error): Update.
3218 * linux-low.cc: Remove "hostio.h" from includes.
3219 (linux_target_ops): Update.
3220 * lynx-low.cc (lynx_target_ops): Update.
3221 * nto-low.cc (nto_target_ops): Update.
3222 * win32-low.h (class win32_process_target): Update.
3223 * win32-low.cc (win32_target_ops): Update.
3224 (wince_hostio_last_error): Turn into ...
3225 (win32_process_target::hostio_last_error): ... this.
3227 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3229 Turn process_stratum_target's get_tls_address op into a method of
3232 * target.h (struct process_stratum_target): Remove the target op.
3233 (class process_target): Add the target op. Also add
3234 'supports_get_tls_address'.
3235 * target.cc (process_target::get_tls_address): Define.
3236 (process_target::supports_get_tls_address): Define.
3238 Update the derived classes and callers below.
3240 * server.cc (handle_query): Update.
3241 * linux-low.cc (linux_target_ops): Update.
3242 (linux_process_target::supports_get_tls_address): Define.
3243 (linux_process_target::get_tls_address): Define.
3244 * linux-low.h (class linux_process_target): Update.
3245 * lynx-low.cc (lynx_target_ops): Update.
3246 * nto-low.cc (nto_target_ops): Update.
3247 * win32-low.cc (win32_target_ops): Update.
3249 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3251 Turn process_stratum_target's read_offsets op into a method of
3254 * target.h (struct process_stratum_target): Remove the target op.
3255 (class process_target): Add the target op. Also add
3256 'supports_read_offsets'.
3257 * target.cc (process_target::read_offsets): Define.
3258 (process_target::supports_read_offsets): Define.
3260 Update the derived classes and callers below.
3262 * server.cc (handle_query): Update.
3263 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
3264 (linux_target_ops): Update.
3265 (linux_process_target::supports_read_offsets): Define.
3266 (linux_read_offsets): Turn into ...
3267 (linux_process_target::read_offsets): ... this.
3268 * linux-low.h (class linux_process_target): Update.
3269 * lynx-low.cc (lynx_target_ops): Update.
3270 * nto-low.cc (nto_target_ops): Update.
3271 * win32-low.cc (win32_target_ops): Update.
3273 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3275 Turn process_stratum_target's stopped_by_watchpoint and
3276 stopped_data_address ops into methods of process_target.
3278 * target.h (struct process_stratum_target): Remove the target ops.
3279 (class process_target): Add the target ops.
3280 * target.cc (process_target::stopped_by_watchpoint): Define.
3281 (process_target::stopped_data_address): Define.
3283 Update the derived classes and callers below.
3285 * remote-utils.cc (prepare_resume_reply): Update.
3286 * linux-low.cc (linux_target_ops): Update.
3287 (linux_stopped_by_watchpoint): Turn into ...
3288 (linux_process_target::stopped_by_watchpoint): ... this.
3289 (linux_stopped_data_address): Turn into ...
3290 (linux_process_target::stopped_data_address): ... this.
3291 * linux-low.h (class linux_process_target): Update.
3292 * lynx-low.cc (lynx_target_ops): Update.
3293 * nto-low.cc (nto_target_ops): Update.
3294 (nto_stopped_by_watchpoint): Turn into ...
3295 (nto_process_target::stopped_by_watchpoint): ... this.
3296 (nto_stopped_data_address): Turn into ...
3297 (nto_process_target::stopped_data_address): ... this.
3298 * nto-low.h (class nto_process_target): Update.
3299 * win32-low.cc (win32_target_ops): Update.
3300 (win32_stopped_by_watchpoint): Turn into ...
3301 (win32_process_target::stopped_by_watchpoint): ... this.
3302 (win32_stopped_data_address): Turn into ...
3303 (win32_process_target::stopped_data_address): ... this.
3304 * win32-low.h (class win32_process_target): Update.
3306 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3308 Turn process_stratum_target's supports_hardware_single_step op into
3309 a method of process_target.
3311 * target.h (struct process_stratum_target): Remove the target op.
3312 (class process_target): Add the target op.
3313 (target_supports_hardware_single_step): Update the macro.
3314 (target_can_do_hardware_single_step): Remove declaration.
3315 * target.cc (process_target::supports_hardware_single_step): Define.
3316 (target_can_do_hardware_single_step): Remove.
3318 Update the derived classes and callers below.
3320 * linux-low.h (class linux_process_target): Update.
3321 * linux-low.cc (linux_target_ops): Update.
3322 (linux_supports_hardware_single_step): Turn into ...
3323 (linux_process_target::supports_hardware_single_step): ... this.
3324 * lynx-low.h (class lynx_process_target): Update.
3325 * lynx-low.cc (lynx_target_ops): Update.
3326 (lynx_process_target::supports_hardware_single_step): Define.
3327 * nto-low.h (class nto_process_target): Update.
3328 * nto-low.cc (nto_target_ops): Update.
3329 (nto_process_target::supports_hardware_single_step): Define.
3330 * win32-low.h (class win32_process_target): Update.
3331 * win32-low.cc (win32_target_ops): Update.
3332 (win32_process_target::supports_hardware_single_step): Define.
3334 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3336 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
3337 ops into methods of process_target.
3339 * target.h (struct process_stratum_target): Remove the target ops.
3340 (class process_target): Add the target ops.
3341 (target_stopped_by_hw_breakpoint): Update the macro.
3342 (target_supports_stopped_by_hw_breakpoint): Update the macro.
3343 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
3344 (process_target::supports_stopped_by_hw_breakpoint): Define.
3346 Update the derived classes and callers below.
3348 * linux-low.cc (linux_target_ops): Update.
3349 (linux_stopped_by_hw_breakpoint): Turn into ...
3350 (linux_process_target::stopped_by_hw_breakpoint): ... this.
3351 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
3352 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
3353 * linux-low.h (class linux_process_target): Update.
3354 * lynx-low.cc (lynx_target_ops): Update.
3355 * nto-low.cc (nto_target_ops): Update.
3356 * win32-low.cc (win32_target_ops): Update.
3358 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3360 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
3361 ops into methods of process_target.
3363 * target.h (struct process_stratum_target): Remove the target ops.
3364 (class process_target): Add the target ops.
3365 (target_stopped_by_sw_breakpoint): Update the macro.
3366 (target_supports_stopped_by_sw_breakpoint): Update the macro.
3367 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
3368 (process_target::supports_stopped_by_sw_breakpoint): Define.
3370 Update the derived classes and callers below.
3372 * linux-low.cc (linux_target_ops): Update.
3373 (linux_stopped_by_sw_breakpoint): Turn into ...
3374 (linux_process_target::stopped_by_sw_breakpoint): ... this.
3375 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
3376 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
3377 * linux-low.h (class linux_process_target): Update.
3378 * lynx-low.cc (lynx_target_ops): Update.
3379 * nto-low.cc (nto_target_ops): Update.
3380 * win32-low.cc (win32_target_ops): Update.
3382 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3384 Turn process_stratum_target's insert_point and remove_point ops
3385 into methods of process_target.
3387 * target.h (struct process_stratum_target): Remove the target ops.
3388 (class process_target): Add the target ops.
3389 * target.cc (process_target::insert_point): Define.
3390 (process_target::remove_point): Define.
3392 Update the derived classes and callers below.
3394 * mem-break.cc (set_raw_breakpoint_at): Update.
3395 (delete_raw_breakpoint): Update.
3396 (uninsert_raw_breakpoint): Update.
3397 (reinsert_raw_breakpoint): Update.
3398 * linux-low.cc (linux_target_ops): Update.
3399 (linux_insert_point): Turn into ...
3400 (linux_process_target::insert_point): ... this.
3401 (linux_remove_point): Turn into ...
3402 (linux_process_target::remove_point): ... this.
3403 * linux-low.h (class linux_process_target): Update.
3404 * lynx-low.cc (lynx_target_ops): Update.
3405 * nto-low.cc (nto_target_ops): Update.
3406 (nto_insert_point): Turn into ...
3407 (nto_process_target::insert_point): ... this.
3408 (nto_remove_point): Turn into ...
3409 (nto_process_target::remove_point): ... this.
3410 * nto-low.h (class nto_process_target): Update.
3411 * win32-low.cc (win32_target_ops): Update.
3412 (win32_insert_point): Turn into ...
3413 (win32_process_target::insert_point): ... this.
3414 (win32_remove_point): Turn into ...
3415 (win32_process_target::remove_point): ... this.
3416 * win32-low.h (class win32_process_target): Update.
3418 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3420 Turn process_stratum_target's supports_z_point_type op into a
3421 method of process_target.
3423 * target.h (struct process_stratum_target): Remove the target op.
3424 (class process_target): Add the target op.
3425 * target.cc (process_target::supports_z_point_type): Define.
3427 Update the derived classes and callers below.
3429 * mem-break.cc (z_type_supported): Update.
3430 * linux-low.cc (linux_target_ops): Update.
3431 (linux_supports_z_point_type): Turn into ...
3432 (linux_process_target::supports_z_point_type): ... this.
3433 * linux-low.h (class linux_process_target): Update.
3434 * lynx-low.cc (lynx_target_ops): Update.
3435 * nto-low.cc (nto_target_ops): Update.
3436 (nto_supports_z_point_type): Turn into ...
3437 (nto_process_target::supports_z_point_type): ... this.
3438 * nto-low.h (class nto_process_target): Update.
3439 * win32-low.cc (win32_target_ops): Update.
3440 (win32_supports_z_point_type): Turn into ...
3441 (win32_process_target::supports_z_point_type): ... this.
3442 * win32-low.h (class win32_process_target): Update.
3444 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3446 Turn process_stratum_target's read_auxv op into a method of
3449 * target.h (class process_stratum_target): Remove the target op.
3450 (struct process_target): Add the target op. Also add
3451 'supports_read_auxv'.
3452 * target.cc (process_target::read_auxv): Define.
3453 (process_target::supports_read_auxv): Define.
3455 Update the derived classes and callers below.
3457 * server.cc (handle_qxfer_auxv): Update.
3458 (handle_query): Update.
3459 * linux-low.cc (linux_target_ops): Update.
3460 (linux_process_target::supports_read_auxv): Define.
3461 (linux_read_auxv): Turn into ...
3462 (linux_process_target::read_auxv): ... this.
3463 * linux-low.h (class linux_process_target): Update.
3464 * lynx-low.cc (lynx_target_ops): Update.
3465 * nto-low.cc (nto_target_ops): Update.
3466 (nto_process_target::supports_read_auxv): Define.
3467 (nto_read_auxv): Turn into ...
3468 (nto_process_target::read_auxv): ... this.
3469 * nto-low.h (class nto_process_target): Update.
3470 * win32-low.cc (win32_target_ops): Update.
3472 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3474 Turn process_stratum_target's request_interrupt op into a method of
3477 * target.h (struct process_stratum_target): Remove the target op.
3478 (class process_target): Add the target op.
3480 Update the derived classes and callers below.
3482 * remote-utils.cc (putpkt_binary_1): Update.
3483 (input_interrupt): Update.
3485 * server.cc (handle_v_requests): Update.
3486 * linux-low.cc (linux_target_ops): Update.
3487 (linux_request_interrupt): Turn into ...
3488 (linux_process_target::request_interrupt): ... this.
3489 * linux-low.h (class linux_process_target): Update.
3490 * lynx-low.cc (lynx_target_ops): Update.
3491 (lynx_request_interrupt): Turn into ...
3492 (lynx_process_target::request_interrupt): ... this.
3493 * lynx-low.h (class lynx_process_target): Update.
3494 * nto-low.cc (nto_target_ops): Update.
3495 (nto_request_interrupt): Turn into ...
3496 (nto_process_target::request_interrupt): ... this.
3497 * nto-low.h (class nto_process_target): Update.
3498 * win32-low.cc (win32_target_ops): Update.
3499 (win32_request_interrupt): Turn into ...
3500 (win32_process_target::request_interrupt): ... this.
3501 * win32-low.h (class win32_process_target): Update.
3503 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3505 Turn process_stratum_target's look_up_symbols op into a method of
3508 * target.h (struct process_stratum_target): Remove the target op.
3509 (class process_target): Add the target op.
3510 * target.cc (process_target::look_up_symbols): Define.
3512 Update the derived classes and callers below.
3514 * server.cc (handle_query): Update.
3515 * linux-low.cc (linux_target_ops): Update.
3516 (linux_look_up_symbols): Turn into ...
3517 (linux_process_target::look_up_symbols): ... this.
3518 * linux-low.h (class linux_process_target): Update.
3519 * lynx-low.cc (lynx_target_ops): Update.
3520 * nto-low.cc (nto_target_ops): Update.
3521 * win32-low.cc (win32_target_ops): Update.
3523 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3525 Turn process_stratum_target's read_memory and write_memory
3526 ops into methods of process_target.
3528 * target.h (struct process_stratum_target): Remove the target ops.
3529 (class process_target): Add the target ops.
3531 Update the derived classes and callers below.
3533 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
3534 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
3535 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
3536 (arm_get_syscall_trapinfo): Update.
3537 * linux-cris-low.cc (cris_breakpoint_at): Update.
3538 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
3539 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
3540 * linux-mips-low.cc (mips_breakpoint_at): Update.
3541 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
3542 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
3543 * linux-sh-low.cc (sh_breakpoint_at): Update.
3544 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
3545 (sparc_store_gregset_from_stack): Update.
3546 (sparc_breakpoint_at): Update.
3547 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
3548 * linux-tile-low.cc (tile_breakpoint_at): Update.
3549 * linux-x86-low.cc (x86_breakpoint_at): Update.
3550 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
3551 * mem-brea.cc (insert_memory_breakpoint): Update.
3552 (validate_inserted_breakpoint): Update.
3553 * target.cc (read_inferior_memory): Update.
3554 (target_write_memory): Update.
3555 * linux-low.cc (linux_target_ops): Update.
3556 (linux_read_memory): Make a wrapper around the read_memory target
3558 (linux_process_target::read_memory): Rename from linux_read_memory.
3559 (linux_write_memory): Turn into ...
3560 (linux_process_target::write_memory): ... this.
3561 * linux-low.h (class linux_process_target): Update.
3562 * lynx-low.cc (lynx_target_ops): Update.
3563 (lynx_read_memory): Turn into ...
3564 (lynx_process_target::read_memory): ... this.
3565 (lynx_write_memory): Turn into ...
3566 (lynx_process_target::write_memory): ... this.
3567 * lynx-low.h (class lynx_process_target): Update.
3568 * nto-low.cc (nto_target_ops): Update.
3569 (nto_read_memory): Turn into ...
3570 (nto_process_target::read_memory): ... this.
3571 (nto_write_memory): Turn into ...
3572 (nto_process_target::write_memory): ... this.
3573 * nto-low.h (class nto_process_target): Update.
3574 * win32-low.cc (win32_target_ops): Update.
3575 (win32_read_inferior_memory): Turn into ...
3576 (win32_process_target::read_memory): ... this.
3577 (win32_write_inferior_memory): Turn into ...
3578 (win32_process_target::write_memory): ... this.
3579 * win32-low.h (class win32_process_target): Update.
3581 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3583 Turn process_stratum_target's prepare_to_access_memory and
3584 done_accessing_memory ops into methods of process_target.
3586 * target.h (struct process_stratum_target): Remove the target ops.
3587 (class process_target): Add the target ops.
3588 * target.cc (process_target::prepare_to_access_memory): Define.
3589 (process_target::done_accessing_memory): Define.
3590 (prepare_to_access_memory): Update.
3591 (done_accessing_memory): Update.
3593 Update the derived classes and callers below.
3595 * linux-low.cc (linux_target_ops): Update.
3596 (linux_prepare_to_access_memory): Turn into ...
3597 (linux_process_target::prepare_to_access_memory): ... this.
3598 (linux_done_accessing_memory): Turn into ...
3599 (linux_process_target::done_accessing_memory): ... this.
3600 * linux-low.h (class linux_process_target): Update.
3601 * lynx-low.cc (lynx_target_ops): Update.
3602 * nto-low.cc (nto_target_ops): Update.
3603 * win32-low.cc (win32_target_ops): Update.
3605 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3607 Turn process_stratum_target's fetch_registers and store_registers
3608 ops into methods of process_target.
3610 * target.h (struct process_stratum_target): Remove the target ops.
3611 (class process_target): Add the target ops.
3612 (fetch_inferior_registers): Update the macro.
3613 (store_inferior_registers): Update the macro.
3615 Update the derived classes and callers below.
3617 * linux-low.cc (linux_target_ops): Update.
3618 (linux_fetch_registers): Turn into ...
3619 (linux_process_target::fetch_registers): ... this.
3620 (linux_store_registers): Turn into ...
3621 (linux_process_target::store_registers): ... this.
3622 * linux-low.h (class linux_process_target): Update.
3623 * lynx-low.cc (lynx_target_ops): Update.
3624 (lynx_fetch_registers): Turn into ...
3625 (lynx_process_target::fetch_registers): ... this.
3626 (lynx_store_registers): Turn into ...
3627 (lynx_process_target::store_registers): ... this.
3628 * lynx-low.h (class lynx_process_target): Update.
3629 * nto-low.cc (nto_target_ops): Update.
3630 (nto_fetch_registers): Turn into ...
3631 (nto_process_target::fetch_registers): ... this.
3632 (nto_store_registers): Turn into ...
3633 (nto_process_target::store_registers): ... this.
3634 * nto-low.h (class nto_process_target): Update.
3635 * win32-low.cc (win32_target_ops): Update.
3636 (win32_fetch_inferior_registers): Turn into ...
3637 (win32_process_target::fetch_registers): ... this.
3638 (win32_store_inferior_registers): Turn into ...
3639 (win32_process_target::store_registers): ... this.
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 wait 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 * target.cc (target_wait): Update.
3653 * linux-low.cc (linux_target_ops): Update.
3654 (linux_wait): Turn into ...
3655 (linux_process_target::wait): ... this.
3656 * linux-low.h (class linux_process_target): Update.
3657 * lynx-low.cc (lynx_target_ops): Update.
3658 (lynx_wait): Turn into ...
3659 (lynx_process_target::wait): ... this.
3660 * lynx-low.h (class lynx_process_target): Update.
3661 * nto-low.cc (nto_target_ops): Update.
3662 (nto_wait): Turn into ...
3663 (nto_process_target::wait): ... this.
3664 * nto-low.h (class nto_process_target): Update.
3665 * win32-low.cc (win32_target_ops): Update.
3666 (win32_wait): Turn into ...
3667 (win32_process_target::wait): ... this.
3668 (do_initial_child_stuff): Update.
3669 * win32-low.h (class win32_process_target): Update.
3671 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3673 Turn process_stratum_target's resume op into a method of
3676 * target.h (struct process_stratum_target): Remove the target op.
3677 (class process_target): Add the target op.
3679 Update the derived classes and callers below.
3681 * server.cc (resume): Update.
3682 * target.cc (target_stop_and_wait): Update.
3683 (target_continue_no_signal): Update.
3684 (target_continue): Update.
3685 * linux-low.cc (linux_target_ops): Update.
3686 (linux_resume): Turn into ...
3687 (linux_process_target::resume): ... this.
3688 * linux-low.h (class linux_process_target): Update.
3689 * lynx-low.cc (lynx_target_ops): Update.
3690 (lynx_resume): Turn into ...
3691 (lynx_process_target::resume): ... this.
3692 * lynx-low.h (class lynx_process_target): Update.
3693 * nto-low.cc (nto_target_ops): Update.
3694 (nto_resume): Turn into ...
3695 (nto_process_target::resume): ... this.
3696 * nto-low.h (class nto_process_target): Update.
3697 * win32-low.cc (win32_target_ops): Update.
3698 (win32_resume): Turn into ...
3699 (win32_process_target::resume): ... this.
3700 (win32_process_target::detach): Update.
3701 (do_initial_child_stuff): Update.
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 thread_alive 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 (mythread_alive): Update the macro.
3713 Update the derived classes and callers below.
3715 * linux-low.cc (linux_target_ops): Update.
3716 (linux_thread_alive): Turn into ...
3717 (linux_process_target::thread_alive): ... this.
3718 (wait_for_sigstop): Update.
3719 * linux-low.h (class linux_process_target): Update.
3720 * lynx-low.cc (lynx_target_ops): Update.
3721 (lynx_thread_alive): Turn into ...
3722 (lynx_process_target::thread_alive): ... this.
3723 * lynx-low.h (class lynx_process_target): Update.
3724 * nto-low.cc (nto_target_ops): Update.
3725 (nto_thread_alive): Turn into ...
3726 (nto_process_target::thread_alive): ... this.
3727 * nto-low.h (class nto_process_target): Update.
3728 * win32-low.cc (win32_target_ops): Update.
3729 (win32_thread_alive): Turn into ...
3730 (win32_process_target::thread_alive): ... this.
3731 * win32-low.h (class win32_process_target): Update.
3733 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3735 Turn process_stratum_target's join op into a method of
3738 * target.h (struct process_stratum_target): Remove the target op.
3739 (class process_target): Add the target op.
3740 (join_inferior): Update the macro.
3742 Update the derived classes and callers below.
3744 * linux-low.cc (linux_target_ops): Update.
3745 (linux_join): Turn into ...
3746 (linux_process_target::join): ... this.
3747 * linux-low.h (class linux_process_target): Update.
3748 * lynx-low.cc (lynx_target_ops): Update.
3749 (lynx_join): Turn into ...
3750 (lynx_process_target::join): ... this.
3751 * lynx-low.h (class lynx_process_target): Update.
3752 * nto-low.cc (nto_target_ops): Update.
3753 (nto_process_target::join): Define.
3754 * nto-low.h (class nto_process_target): Update.
3755 * win32-low.cc (win32_target_ops): Update.
3756 (win32_join): Turn into ...
3757 (win32_process_target::join): ... this.
3758 * win32-low.h (class win32_process_target): Update.
3760 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3762 Turn process_stratum_target's mourn op into a method of
3765 * target.h (struct process_stratum_target): Remove the target op.
3766 (class process_target): Add the target op.
3768 Update the derived classes and callers below.
3770 * target.cc (target_mourn_inferior): Update.
3771 * linux-low.cc (linux_target_ops): Update.
3772 (linux_mourn): Turn into ...
3773 (linux_process_target::mourn): ... this.
3774 (handle_extended_wait): Update.
3775 (linux_process_target::kill): Update.
3776 (linux_process_target::detach): Update.
3777 * linux-low.h (class linux_process_target): Update.
3778 * lynx-low.cc (lynx_target_ops): Update.
3779 (lynx_mourn): Turn into ...
3780 (lynx_process_target::mourn): ... this.
3781 * lynx-low.h (class lynx_process_target): Update.
3782 * nto-low.cc (nto_target_ops): Update.
3783 (nto_mourn): Turn into ...
3784 (nto_process_target::mourn): ... this.
3785 * nto-low.h (class nto_process_target): Update.
3786 * win32-low.cc (win32_target_ops): Update.
3787 (win32_mourn): Turn into ...
3788 (win32_process_target::mourn): ... this.
3789 * win32-low.h (class win32_process_target): Update.
3791 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3793 Turn process_stratum_target's detach op into a method of
3796 * target.h (struct process_stratum_target): Remove the target op.
3797 (class process_target): Add the target op.
3798 (detach_inferior): Update the macro.
3800 Update the derived classes and callers below.
3802 * linux-low.cc (linux_target_ops): Update.
3803 (linux_detach): Turn into ...
3804 (linux_process_target::detach): ... this.
3805 * linux-low.h (class linux_process_target): Update.
3806 * lynx-low.cc (lynx_target_ops): Update.
3807 (lynx_detach): Turn into ...
3808 (lynx_process_target::detach): ... this.
3809 * lynx-low.h (class lynx_process_target): Update.
3810 * nto-low.cc (nto_target_ops): Update.
3811 (nto_detach): Turn into ...
3812 (nto_process_target::detach): ... this.
3813 * nto-low.h (class nto_process_target): Update.
3814 * win32-low.cc (win32_target_ops): Update.
3815 (win32_detach): Turn into ...
3816 (win32_process_target::detach): ... this.
3817 * win32-low.h (class win32_process_target): Update.
3819 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3821 Turn process_stratum_target's kill op into a method of
3824 * target.h (struct process_stratum_target): Remove the target op.
3825 (class process_target): Add the target op.
3827 Update the derived classes and callers below.
3829 * target.cc (kill_inferior): Update.
3830 * linux-low.cc (linux_target_ops): Update.
3831 (linux_kill): Turn into ...
3832 (linux_process_target::kill): ... this.
3833 * linux-low.h (class linux_process_target): Update.
3834 * lynx-low.cc (lynx_target_ops): Update.
3835 (lynx_kill): Turn into ...
3836 (lynx_process_target::kill): ... this.
3837 * lynx-low.h (class lynx_process_target): Update.
3838 * nto-low.cc (nto_target_ops): Update.
3839 (nto_kill): Turn into ...
3840 (nto_process_target::kill): ... this.
3841 * nto-low.h (class nto_process_target): Update.
3842 * win32-low.cc (win32_target_ops): Update.
3843 (win32_kill): Turn into ...
3844 (win32_process_target::kill): ... this.
3845 * win32-low.h (class win32_process_target): Update.
3847 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3849 Turn process_stratum_target's attach op into a method of
3852 * target.h (struct process_stratum_target): Remove the target op.
3853 (class process_target): Add the target op.
3854 (myattach): Update the macro.
3856 Update the derived classes and callers below.
3858 * linux-low.cc (linux_target_ops): Update.
3859 (linux_attach): Turn into ...
3860 (linux_process_target::attach): ... this.
3861 * linux-low.h (class linux_process_target): Update.
3862 * lynx-low.cc (lynx_target_ops): Update.
3863 (lynx_attach): Turn into ...
3864 (lynx_process_target::attach): ... this.
3865 * lynx-low.h (class lynx_process_target): Update.
3866 * nto-low.cc (nto_target_ops): Update.
3867 (nto_attach): Turn into ...
3868 (nto_process_target::attach): ... this.
3869 * nto-low.h (class nto_process_target): Update.
3870 * win32-low.cc (win32_target_ops): Update.
3871 (win32_attach): Turn into ...
3872 (win32_process_target::attach): ... this.
3873 * win32-low.h (class win32_process_target): Update.
3875 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3877 Turn process_stratum_target's post_create_inferior op into a method
3880 * target.h (struct process_stratum_target): Remove the target op.
3881 (class process_target): Add the target op.
3882 (target_post_create_inferior): Update the macro.
3883 * target.cc (process_target::post_create_inferior): Define.
3885 Update the derived classes and callers below.
3887 * linux-low.cc (linux_target_ops): Update.
3888 (linux_post_create_inferior): Turn into ...
3889 (linux_process_target::post_create_inferior): ... this.
3890 * linux-low.h (class linux_process_target): Update.
3891 * lynx-low.cc (lynx_target_ops): Update.
3892 * nto-low.cc (nto_target_ops): Update.
3893 * win32-low.cc (win32_target_ops): Update.
3895 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3897 Turn process_stratum_target's create_inferior op into a method of
3900 * target.h (struct process_stratum_target): Remove the target op.
3901 (class process_target): Add the target op.
3902 (create_inferior): Rename the macro to ...
3903 (target_create_inferior): ... this.
3905 Update the derived classes and callers below.
3907 * server.cc (handle_v_run): Update.
3908 (captured_main): Update.
3909 (process_serial_event): Update.
3910 * linux-low.cc (linux_target_ops): Update.
3911 (linux_create_inferior): Turn into ...
3912 (linux_process_target::create_inferior): ... this.
3913 * linux-low.h (class linux_process_target): Update.
3914 * lynx-low.cc (lynx_target_ops): Update.
3915 (lynx_create_inferior): Turn into ...
3916 (lynx_process_target::create_inferior): ... this.
3917 * lynx-low.h (class lynx_process_target): Update.
3918 * nto-low.cc (nto_target_ops): Update.
3919 (nto_create_inferior): Turn into ...
3920 (nto_process_target::create_inferior): ... this.
3921 * nto-low.h (class nto_process_target): Update.
3922 * win32-low.cc (win32_target_ops): Update.
3923 (win32_create_inferior): Turn into ...
3924 (win32_process_target::create_inferior): ... this.
3925 * win32-low.h (class win32_process_target): Update.
3927 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3929 * target.h (class process_target): New class definition.
3930 (struct process_stratum_target) <pt>: New field with type
3932 * linux-low.h (class linux_process_target): Define as a derived
3933 class of 'process_target'.
3934 * linux-low.cc (linux_target_ops): Add a linux_process_target*
3936 * lynx-low.h (class lynx_process_target): Define as a derived
3937 class of 'process_target'.
3938 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
3940 * nto-low.h (class nto_process_target): Define as a derived
3941 class of 'process_target'.
3942 * nto-low.cc (nto_target_ops): Add an nto_process_target*
3944 * win32-low.h (class win32_process_target): Define as a derived
3945 class of 'process_target'.
3946 * win32-low.cc (win32_target_ops): Add a win32_process_target*
3949 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
3951 * configure: Regenerate.
3953 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
3954 Andrew Burgess <andrew.burgess@embecosm.com>
3956 * linux-riscv-low.cc: New file.
3957 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
3958 and nat/riscv-linux-tdesc.c.
3959 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
3960 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
3963 2020-02-14 Tom Tromey <tom@tromey.com>
3965 * acinclude.m4: Don't include acx_configure_dir.m4.
3966 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
3967 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
3968 (all, install-only, uninstall, clean-info, clean)
3969 (maintainer-clean): Don't recurse.
3970 (subdir_do, all-lib): Remove.
3971 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
3973 (generated_files): Update.
3974 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
3975 * configure: Rebuild.
3976 * configure.ac: Don't configure gnulib or libiberty.
3979 2020-02-14 Eli Zaretskii <eliz@gnu.org>
3981 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
3982 preparing the command line for CreateProcess.
3983 (win32_create_inferior): Reflect the program name in debugging
3984 output that shows the process and its command line.
3986 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
3988 * Makefile.in: Rename source files from .c to .cc.
3989 * %.c: Rename to %.cc.
3990 * configure.ac: Rename server.c to server.cc.
3991 * configure: Re-generate.
3993 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
3995 * Makefile.in: Rename gdbsupport source files from .c to .cc.
3997 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
3999 * win32-low.c (win32_create_inferior): Set signal_pid.
4001 2020-02-12 Maciej W. Rozycki <macro@wdc.com>
4002 Pedro Alves <palves@redhat.com>
4004 Skip building gdbserver in a cross-configuration.
4005 * configure.srv: Set $gdbserver_host depending on whether $target
4006 is $host. Use $gdbserver_host instead of $host.
4008 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4010 * configure: Re-generate.
4012 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4014 * configure: Re-generate.
4016 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4018 * acinclude.m4: Update warning.m4 path.
4020 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
4022 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
4023 (handle_exception): Set siginfo_er.
4024 (win32_xfer_siginfo): New function.
4026 2020-02-07 Tom Tromey <tom@tromey.com>
4027 Pedro Alves <palves@redhat.com>
4029 * README: Update build documentation.
4030 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
4032 * configure.ac: Update paths.
4033 * configure: Rebuild.
4034 * acinclude.m4: Update paths.
4035 * Makefile.in: Update include paths.
4036 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
4037 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
4038 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
4039 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
4040 (%-generated.c): Update paths.
4041 * Move entire directory from ../gdb/gdbserver.
4043 2020-01-29 Maciej W. Rozycki <macro@wdc.com>
4045 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
4047 2020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4049 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
4050 assignment instead of srv_linux_obj.
4052 2020-01-28 Hannes Domani <ssbssa@yahoo.de>
4054 * server.c (handle_qxfer_libraries): Write segment-address with
4057 2020-01-24 Hannes Domani <ssbssa@yahoo.de>
4059 * Makefile.in (install-strip): New target.
4060 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
4061 * aclocal.m4: Regenerate.
4062 * configure: Regenerate.
4063 * configure.ac: Add AM_PROG_INSTALL_STRIP.
4065 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
4067 * Makefile.in (SFILES): Adjust paths to point to real files.
4068 (OBS): Move waitstatus.o to target/waitstatus.o.
4069 (TAGS): Transform paths appropriately.
4071 (nat/%.o): ... this pattern rule.
4073 (target/%.o): ... this pattern rule.
4074 * configure.srv: Adjust paths throughout to include nat/ prefix
4075 with the revant files.
4076 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
4077 * configure: Regenerate.
4079 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
4081 * Makefile.in (TAGS): Remove config files from the recipe.
4083 2020-01-14 Tom Tromey <tom@tromey.com>
4085 * configure: Rebuild.
4086 * configure.ac: Remove any checks that were added to common.m4.
4087 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
4090 2020-01-14 Tom Tromey <tom@tromey.com>
4092 * server.h: Include config.h.
4093 * gdbreplay.c: Include config.h.
4094 * configure: Rebuild.
4095 * configure.ac: Don't source common.host.
4096 * acinclude.m4: Update path.
4097 * Makefile.in (INCSUPPORT): New variable.
4098 (INCLUDE_CFLAGS): Add INCSUPPORT.
4099 (SFILES): Update paths.
4100 (version-generated.c): Update path to create-version.sh.
4101 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
4103 2020-01-14 Tom Tromey <tom@tromey.com>
4105 * configure.ac (LIBS): Use WIN32APILIBS.
4106 (USE_WIN32API): Don't define.
4107 * configure: Rebuild.
4109 2020-01-14 Tom Tromey <tom@tromey.com>
4111 * configure: Rebuild.
4113 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4115 * Makefile.in (%-generated.c): Remove rule for files from
4118 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4120 * configure: Re-generate.
4122 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4124 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
4126 * tracepoint.c (stop_tracing, flush_trace_buffer,
4127 about_to_request_buffer_space, get_trace_state_variable_value,
4128 set_trace_state_variable_value, gdb_collect): Add declaration.
4130 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4132 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
4133 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
4134 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
4135 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
4136 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
4139 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4141 * inferiors.c: Include gdbsupport/common-inferior.h.
4143 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4145 * hostio-errno.c: Include hostio.h.
4147 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4149 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
4152 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4154 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
4155 * linux-arm-tdesc.h: Include arch/arm.h.
4157 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4159 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
4161 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4163 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
4164 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
4166 2020-01-10 Pedro Alves <palves@redhat.com>
4168 * fork-child.c (post_fork_inferior): Pass target down to
4170 * inferiors.c (switch_to_thread): Add process_stratum_target
4172 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
4173 * nto-low.c (nto_target_ops): Now a process_stratum_target.
4174 * linux-low.c (linux_target_ops): Now a process_stratum_target.
4175 * remote-utils.c (prepare_resume_reply): Pass the target to
4177 * target.c (the_target): Now a process_stratum_target.
4178 (done_accessing_memory): Pass the target to switch_to_thread.
4179 (set_target_ops): Ajust to use process_stratum_target.
4180 * target.h (struct target_ops): Rename to ...
4181 (struct process_stratum_target): ... this.
4182 (the_target, set_target_ops): Adjust.
4183 (prepare_to_access_memory): Adjust comment.
4184 * win32-low.c (child_xfer_memory): Adjust to use
4185 process_stratum_target.
4186 (win32_target_ops): Now a process_stratum_target.
4188 2020-01-06 Eli Zaretskii <eliz@gnu.org>
4189 Pedro Alves <palves@redhat.com>
4191 * win32-low.c (get_child_debug_event): Extract the fatal exception
4192 from the exit status and convert to the equivalent Posix signal
4194 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
4195 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
4197 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
4199 * Makefile.in: Use INSTALL_PROGRAM_ENV.
4201 2020-01-01 Joel Brobecker <brobecker@adacore.com>
4203 * server.c (gdbserver_version): Change copyright year to 2020.
4204 * gdbreplay.c (gdbreplay_version): Likewise.
4206 2019-12-19 Christian Biesinger <cbiesinger@google.com>
4208 * configure: Regenerate.
4209 * configure.ac: Quote variable arguments of test.
4211 2019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
4213 * Makefile.in: Fix build with GNU Make 3.81
4215 2019-12-16 Tom Tromey <tromey@adacore.com>
4217 * server.c (get_exec_file): Constify result.
4219 2019-12-10 Christian Biesinger <cbiesinger@google.com>
4221 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
4222 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
4223 * config.in: Regenerate.
4224 * configure: Regenerate.
4225 * configure.ac: Don't check for strerror.
4226 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
4227 Call safe_strerror instead of strerror.
4228 * server.h (strerror): Remove this now-unnecessary declaration.
4229 * tracepoint.c (init_named_socket): Call safe_strerror instead of
4231 (gdb_agent_helper_thread): Likewise.
4232 * utils.c (perror_with_name): Likewise.
4234 2019-11-26 Tom Tromey <tom@tromey.com>
4236 * configure, config.in: Rebuild.
4238 2019-11-26 Tom Tromey <tom@tromey.com>
4240 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
4241 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
4243 * configure, config.in: Rebuild.
4245 2019-11-26 Tom Tromey <tom@tromey.com>
4247 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
4248 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
4249 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
4250 * acinclude.m4: Include ax_pthread.m4.
4251 * config.in, configure: Rebuild.
4253 2019-11-26 Christian Biesinger <cbiesinger@google.com>
4255 * debug.c (debug_set_output): Call safe_strerror instead of
4257 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
4258 (linux_kill_one_lwp): Likewise.
4259 (linux_detach_one_lwp): Likewise.
4260 (linux_wait_for_event_filtered): Likewise.
4261 (store_register): Likewise.
4262 * lynx-low.c (lynx_attach): Likewise.
4263 * mem-break.c (insert_memory_breakpoint): Likewise.
4264 (remove_memory_breakpoint): Likewise.
4265 (delete_fast_tracepoint_jump): Likewise.
4266 (set_fast_tracepoint_jump): Likewise.
4267 (uninsert_fast_tracepoint_jumps_at): Likewise.
4268 (reinsert_fast_tracepoint_jumps_at): Likewise.
4269 * nto-low.c (nto_xfer_memory): Likewise.
4270 (nto_resume): Likewise.
4272 2019-11-20 Luis Machado <luis.machado@linaro.org>
4274 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
4275 instead of register count.
4276 * tdesc.c (tdesc_contains_feature): New function.
4277 * tdesc.h (tdesc_contains_feature): New prototype.
4279 2019-11-15 Christian Biesinger <cbiesinger@google.com>
4281 * Makefile.in: Add safe-strerror.c.
4282 * configure: Regenerate.
4283 * configure.ac: Don't source common.host.
4285 2019-11-15 Christian Biesinger <cbiesinger@google.com>
4287 * config.in: Regenerate.
4288 * configure: Regenerate.
4290 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
4292 * ax.c (ax_printf): Handle size_t_arg.
4294 2019-11-06 Christian Biesinger <cbiesinger@google.com>
4296 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
4297 * mi/mi-main.c (output_cores): Likewise.
4298 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
4299 (linux_xfer_osdata_modules): Likewise.
4300 * remote.c (register_remote_support_xml): Likewise.
4301 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
4302 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
4304 2019-11-01 Christian Biesinger <cbiesinger@google.com>
4306 * configure: Regenerate.
4307 * configure.ac: Remove check for strerror_r.
4309 2019-10-31 Christian Biesinger <cbiesinger@google.com>
4311 * config.in: Regenerate.
4312 * configure: Regenerate.
4313 * configure.ac: Also check for strerror_r.
4315 2019-10-31 Christian Biesinger <cbiesinger@google.com>
4317 * ax.h (debug_agent): Remove duplicate declaration.
4319 2019-10-26 Tom de Vries <tdevries@suse.de>
4321 * linux-aarch64-low.c: Fix typos in comments.
4322 * linux-arm-low.c: Same.
4323 * linux-low.c: Same.
4324 * linux-ppc-low.c: Same.
4325 * proc-service.c: Same.
4328 * tracepoint.c: Same.
4329 * win32-low.c: Same.
4331 2019-10-25 Tom Tromey <tromey@adacore.com>
4333 * utils.c (xstrdup): Remove.
4335 2019-10-23 Tom Tromey <tom@tromey.com>
4337 * configure, config.in: Rebuild.
4339 2019-10-23 Tom Tromey <tom@tromey.com>
4341 * configure: Rebuild.
4342 * acinclude.m4: Use m4_include, not sinclude.
4344 2019-10-17 Tom Tromey <tromey@adacore.com>
4346 * configure: Rebuild.
4347 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
4348 in AC_CONFIG_FILES invocation.
4349 * Makefile.in (stamp-h, Makefile): Use new-style config.status
4352 2019-10-16 Christian Biesinger <cbiesinger@google.com>
4354 * server.c: Include xml-builtin.h.
4355 (get_xml_features): Don't declare xml_builtins here.
4357 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4359 * Makefile.in: Remove references to vec-ipa.o.
4361 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4363 * Makefile.in: Remove references to vec.c.
4365 2019-10-02 Christian Biesinger <cbiesinger@google.com>
4367 * server.c (server_waiting): Change to bool.
4368 (extended_protocol): Likewise.
4369 (response_needed): Likewise.
4370 (exit_requested): Likewise.
4371 (run_once): Likewise.
4372 (report_no_resumed): Likewise.
4373 (non_stop): Likewise.
4374 (disable_packet_vCont): Likewise.
4375 (disable_packet_Tthread): Likewise.
4376 (disable_packet_qC): Likewise.
4377 (disable_packet_qfThreadInfo): Likewise.
4378 (handle_general_set): Update.
4379 (handle_detach): Update.
4380 (handle_monitor_command): Update.
4381 (handle_query): Update.
4382 (captured_main): Update.
4383 (process_serial_event): Update.
4384 * server.h (server_waiting): Change to bool.
4385 (disable_packet_vCont): Likewise.
4386 (disable_packet_Tthread): Likewise.
4387 (disable_packet_qC): Likewise.
4388 (disable_packet_qfThreadInfo): Likewise.
4389 (run_once): Likewise.
4390 (non_stop): Likewise.
4391 * target.c (target_stop_and_wait): Update.
4393 2019-10-02 Tom Tromey <tromey@adacore.com>
4395 * Makefile.in (SFILES): Add common-inferior.c.
4396 (OBS): Add common-inferior.o.
4397 * server.c (startup_with_shell): Don't define.
4399 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
4401 * linux-low.c (linux_low_read_btrace): Update for change to
4404 2019-09-20 Christian Biesinger <cbiesinger@google.com>
4406 * debug.c (debug_threads): Remove comment in favor of the header.
4407 * debug.h (using_threads): Add declaration.
4408 (debug_threads): Add comment.
4409 * linux-aarch64-low.c: Include debug.h and remove declaration of
4411 * nto-low.c: Likewise.
4412 * remote-utils.c: Likewise.
4413 * thread-db.c: Likewise.
4415 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
4417 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
4418 and powerpc-cell64l-ipa.o.
4419 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
4420 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
4421 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
4424 * spu-low.c: Remove file.
4426 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
4427 (parse_spufs_run): Remove.
4428 (ppc_get_pc): Remove Cell/B.E. support.
4429 (ppc_set_pc): Likewise.
4430 (ppc_breakpoint_at): Likewise.
4431 (ppc_arch_setup): Likewise.
4432 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
4433 tdesc_powerpc_cell32l.
4434 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
4435 or init_registers_powerpc_cell32l.
4436 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
4437 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
4438 or init_registers_powerpc_cell32l.
4439 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
4440 (init_registers_powerpc_cell32l): Remove prototype.
4441 (init_registers_powerpc_cell64l): Likewise.
4443 * target.h (struct target_ops): Remove qxfer_spu member.
4444 * server.c (handle_qxfer_spu): Remove.
4445 (qxfer_packets): Remove entry for "spu".
4446 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
4447 * linux-low.c (SPUFS_MAGIC): Remove.
4448 (spu_enumerate_spu_ids): Remove.
4449 (linux_qxfer_spu): Remove.
4450 (linux_target_ops): Remove qxfer_spu member.
4451 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
4452 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
4453 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
4455 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4457 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
4458 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
4459 * config.in: Regenerate.
4460 * configure: Regenerate.
4462 2019-08-15 Tom Tromey <tromey@adacore.com>
4464 * target.c (target_write_memory): Use gdb::byte_vector.
4466 2019-08-15 Tom Tromey <tromey@adacore.com>
4468 * tracepoint.c (write_inferior_data_pointer)
4469 (write_inferior_integer, write_inferior_int8)
4470 (write_inferior_uinteger, m_tracepoint_action_download)
4471 (r_tracepoint_action_download, x_tracepoint_action_download)
4472 (l_tracepoint_action_download, clear_inferior_trace_buffer)
4473 (download_agent_expr, download_tracepoint_1)
4474 (download_trace_state_variables, upload_fast_traceframes): Update.
4475 * server.c (gdb_write_memory): Update.
4476 * remote-utils.c (relocate_instruction): Update.
4477 * proc-service.c (ps_pdwrite): Update.
4478 * mem-break.c (remove_memory_breakpoint)
4479 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
4480 (uninsert_fast_tracepoint_jumps_at)
4481 (reinsert_fast_tracepoint_jumps_at): Update.
4482 * linux-x86-low.c (append_insns)
4483 (i386_install_fast_tracepoint_jump_pad)
4484 (amd64_write_goto_address, i386_write_goto_address): Update.
4485 * linux-s390-low.c (append_insns, s390_write_goto_address):
4487 * linux-ppc-low.c (ppc_relocate_instruction)
4488 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
4489 (ppc_write_goto_address): Update.
4490 * linux-aarch64-low.c (append_insns): Update.
4491 * target.h (struct target_ops): Update.
4492 (write_inferior_memory): Don't declare.
4493 * target.c (target_write_memory): Rename from
4494 write_inferior_memory. Remove old target_write_memory.
4496 2019-08-15 Tom Tromey <tromey@adacore.com>
4498 * target.c (write_inferior_memory): Use std::vector.
4500 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
4503 * configure.ac: Drop enable-libmcheck support.
4504 * configure, config.in: Rebuild.
4505 * acinclude.m4: Don't include it.
4507 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4509 * configure.srv: Remove Arm xml files.
4511 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4513 * configure.srv: Add new files. Remove xml generated files.
4514 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
4516 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
4517 * linux-aarch32-tdesc.c: New file.
4518 * linux-aarch32-tdesc.h: New file.
4519 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
4520 * linux-arm-low.c (init_registers_arm, tdesc_arm)
4521 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
4522 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
4523 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
4524 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
4525 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
4526 (arm_read_description): Call arm_linux_read_description.
4527 (initialize_low_arch): Don't init registers.
4528 * linux-arm-tdesc.c: New file.
4529 * linux-arm-tdesc.h: New file.
4531 2019-07-10 Alan Hayward <alan.hayward@arm.com>
4533 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
4534 Move counter inside for.
4535 (arm_read_description): Check ptrace earlier.
4536 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
4538 2019-07-09 Tom Tromey <tom@tromey.com>
4540 * configure: Rebuild.
4541 * configure.ac: Change common to gdbsupport.
4542 * acinclude.m4: Change common to gdbsupport.
4543 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
4544 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
4545 common to gdbsupport.
4546 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
4547 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
4548 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
4549 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
4550 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
4551 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
4552 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
4553 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
4554 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
4555 common to gdbsupport.
4557 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4559 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
4561 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
4563 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4565 * configure.srv: Remove legacy xml.
4566 * linux-aarch64-low.c (initialize_low_arch): Remove
4567 initialize_low_tdesc call.
4568 * linux-aarch64-tdesc-selftest.c: Remove file.
4569 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
4570 * linux-x86-low.c (initialize_low_arch): Remove
4571 initialize_low_tdesc call.
4572 * linux-x86-tdesc-selftest.c: Remove file.
4573 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
4575 2019-06-20 Tom de Vries <tdevries@suse.de>
4577 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
4578 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
4580 2019-06-19 Tom de Vries <tdevries@suse.de>
4582 * debug.h (debug_write): Change return type to ssize_t.
4583 * debug.c (debug_write): Same.
4585 2019-06-14 Tom Tromey <tom@tromey.com>
4587 * configure.ac: Use new path to gnulib.
4588 * configure: Rebuild.
4589 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
4592 2019-06-11 Tom Tromey <tom@tromey.com>
4594 * Makefile.in (SFILES): Add alloc.c.
4596 (IPA_OBJS): Add alloc-ipa.o.
4597 (alloc-ipa.o): New target.
4598 (%.o: ../%.c): New pattern rule.
4600 2019-06-10 Tom Tromey <tromey@adacore.com>
4602 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
4603 end warning with a newline.
4604 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
4606 * thread-db.c (attach_thread): Don't end warning with a newline.
4607 (thread_db_notice_clone): Likewise.
4608 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
4610 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
4611 end warning with a newline.
4613 2019-06-04 Pedro Alves <palves@redhat.com>
4615 * server.c (captured_main): Use make_unique_xstrdup.
4617 2019-06-02 Tom Tromey <tom@tromey.com>
4619 * gdbreplay.c (fromhex): Remove.
4620 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
4622 2019-05-29 Tom Tromey <tromey@adacore.com>
4624 * configure: Rebuild.
4626 2019-05-06 Kevin Buettner <kevinb@redhat.com>
4628 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
4629 sign extension code on 32-bit builds.
4631 2019-05-03 Eli Zaretskii <eliz@gnu.org>
4634 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
4636 2019-04-19 Tom Tromey <tom@tromey.com>
4638 * server.c (struct vstop_notif): Derive from notif_event.
4640 (queue_stop_reply): Update.
4641 (remove_all_on_match_ptid): Change type. Rewrite.
4642 (discard_queued_stop_replies): Rewrite.
4643 (in_queued_stop_replies_ptid): Change type.
4644 (in_queued_stop_replies): Rewrite.
4645 (notif_stop): Update.
4646 (queue_stop_reply_callback): Update.
4647 (captured_main): Don't call initialize_notif.
4648 (push_stop_notification): Update.
4649 * notif.c (notif_write_event, handle_notif_ack)
4650 (notif_event_enque, notif_push): Update.
4651 (notif_event_xfree, initialize_notif): Remove.
4652 * notif.h (struct notif_event): Include <list>, not
4654 (struct notif_server) <queue>: Now a std::list.
4655 (notif_event_p): Remove typedef.
4656 (initialize_notif): Don't declare.
4657 (struct notif_event): Add virtual destructor.
4659 2019-04-17 Alan Hayward <alan.hayward@arm.com>
4661 * ax.c (ax_vdebug): Call debug_printf.
4662 * debug.c (debug_write): New function.
4663 * debug.h (debug_write): New declaration.
4664 * linux-low.c (sigchld_handler): Call debug_write.
4666 2019-04-17 Alan Hayward <alan.hayward@arm.com>
4668 * debug.c (debug_set_output): New function.
4669 (debug_vprintf): Send output to debug_file.
4670 (debug_flush): Likewise.
4671 * debug.h (debug_set_output): New declaration.
4672 * server.c (handle_monitor_command): Add debug-file option.
4673 (captured_main): Likewise.
4675 2019-04-17 Alan Hayward <alan.hayward@arm.com>
4677 * debug.c (remote_debug): Add definition.
4678 * debug.h (remote_debug): Add declaration.
4679 * hostio.c (remote_debug): Remove declaration.
4680 * remote-utils.c (struct ui_file): Likewise.
4681 (remote_debug): Likewise.
4682 * remote-utils.h (remote_debug): Likewise,
4683 * server.c (remote_debug): Remove definition.
4685 2019-04-10 Kevin Buettner <kevinb@redhat.com>
4687 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
4688 when using a 64-bit gdbserver.
4690 2019-04-09 Tom Tromey <tromey@adacore.com>
4692 * linux-low.c (select_event_lwp): Use find_thread_in_random.
4694 2019-04-08 Tom Tromey <tom@tromey.com>
4696 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
4698 (linux_resume_one_lwp): Likewise.
4700 2019-04-08 Tom Tromey <tom@tromey.com>
4702 * gdbreplay.c: Update.
4703 * linux-low.c: Update.
4706 2019-04-08 Tom Tromey <tom@tromey.com>
4708 * server.c: Use C++ exception handling.
4709 * linux-low.c: Use C++ exception handling.
4710 * gdbreplay.c: Use C++ exception handling.
4712 2019-04-08 Tom Tromey <tom@tromey.com>
4714 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
4715 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
4716 (captured_main, main): Update.
4717 * gdbreplay.c (main): Update.
4719 2019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4721 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
4722 value in argument pointer, return 1 if the entry is found and 0
4723 otherwise. Move comment.
4724 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
4725 * linux-low.h (linux_get_auxv): Declare.
4726 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
4728 2019-04-05 Tom Tromey <tromey@adacore.com>
4730 * server.c (gdbserver_usage): Use upper-case for metasyntactic
4733 2019-03-28 Alan Hayward <alan.hayward@arm.com>
4735 * linux-low.c (AT_HWCAP2): Add define if not already included.
4737 2019-03-26 Alan Hayward <alan.hayward@arm.com>
4739 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
4740 (aarch64_arch_setup): Call linux_get_hwcap.
4741 * linux-arm-low.c (arm_get_hwcap): Remove function.
4742 (arm_read_description): Call linux_get_hwcap.
4743 * linux-low.c (linux_get_auxv): New function.
4744 (linux_get_hwcap): Likewise.
4745 (linux_get_hwcap2): Likewise.
4746 * linux-low.h (linux_get_hwcap): New declaration.
4747 (linux_get_hwcap2): Likewise.
4748 * linux-ppc-low.c (ppc_get_auxv): Remove function.
4749 (ppc_arch_setup): Call linux_get_hwcap.
4750 * linux-s390-low.c (s390_get_hwcap): Remove function.
4751 (s390_arch_setup): Call linux_get_hwcap.
4753 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4754 Jiong Wang <jiong.wang@arm.com>
4756 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
4757 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
4759 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
4761 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4762 Jiong Wang <jiong.wang@arm.com>
4764 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
4765 (aarch64_get_hwcap): New function.
4766 (aarch64_arch_setup): Read APIA hwcap.
4768 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4769 Jiong Wang <jiong.wang@arm.com>
4771 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
4772 (initialize_low_tracepoint): Likewise.
4773 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
4774 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
4775 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
4776 (aarch64_linux_read_description): Likewise.
4777 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
4779 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4781 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
4782 i386_create_target_description for 'segments' parameter.
4783 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
4784 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
4785 * win32-i386-low.c (i386_arch_setup): Likewise.
4787 2019-03-12 Tom Tromey <tromey@adacore.com>
4789 * linux-low.c (iterate_over_lwps): Update.
4791 2019-03-06 Tom Tromey <tom@tromey.com>
4793 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
4794 (captured_main): Use SCOPE_EXIT.
4796 2019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
4798 * configure.srv: Use '$enable_unittest' instead of '$development'
4799 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
4802 2019-02-27 Tom Tromey <tromey@adacore.com>
4804 * gdbreplay.c (logchar): Handle \r\n.
4806 2019-02-07 Alan Hayward <alan.hayward@arm.com>
4808 * linux-low.c (linux_attach): Add process before lwp.
4809 * server.c (attach_inferior): Check if already attached.
4811 2019-02-07 Tom Tromey <tom@tromey.com>
4813 * x86-tdesc.h: Rename include guard.
4814 * x86-low.h: Add include guard.
4815 * wincecompat.h: Rename include guard.
4816 * win32-low.h: Add include guard.
4817 * utils.h: Rename include guard.
4818 * tracepoint.h: Rename include guard.
4819 * tdesc.h: Rename include guard.
4820 * target.h: Rename include guard.
4821 * server.h: Rename include guard.
4822 * remote-utils.h: Rename include guard.
4823 * regcache.h: Rename include guard.
4824 * nto-low.h: Rename include guard.
4825 * notif.h: Add include guard.
4826 * mem-break.h: Rename include guard.
4827 * lynx-low.h: Add include guard.
4828 * linux-x86-tdesc.h: Add include guard.
4829 * linux-s390-tdesc.h: Add include guard.
4830 * linux-ppc-tdesc-init.h: Add include guard.
4831 * linux-low.h: Add include guard.
4832 * linux-aarch64-tdesc.h: Add include guard.
4833 * linux-aarch32-low.h: Add include guard.
4834 * inferiors.h: Rename include guard.
4835 * i387-fp.h: Rename include guard.
4836 * hostio.h: Rename include guard.
4837 * gdbthread.h: Rename include guard.
4838 * gdb_proc_service.h: Rename include guard.
4839 * event-loop.h: Rename include guard.
4840 * dll.h: Rename include guard.
4841 * debug.h: Rename include guard.
4842 * ax.h: Rename include guard.
4844 2018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
4847 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
4848 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
4850 2019-01-25 Tom Tromey <tom@tromey.com>
4852 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
4854 2019-01-25 Tom Tromey <tom@tromey.com>
4856 * win32-low.c: Fix common/ includes.
4857 * win32-i386-low.c: Fix common/ includes.
4858 * tracepoint.c: Fix common/ includes.
4859 * thread-db.c: Fix common/ includes.
4860 * target.h: Fix common/ includes.
4861 * symbol.c: Fix common/ includes.
4862 * spu-low.c: Fix common/ includes.
4863 * server.h: Fix common/ includes.
4864 * server.c: Fix common/ includes.
4865 * remote-utils.c: Fix common/ includes.
4866 * regcache.h: Fix common/ includes.
4867 * regcache.c: Fix common/ includes.
4868 * nto-x86-low.c: Fix common/ includes.
4869 * notif.h: Fix common/ includes.
4870 * mem-break.h: Fix common/ includes.
4871 * lynx-low.c: Fix common/ includes.
4872 * lynx-i386-low.c: Fix common/ includes.
4873 * linux-x86-tdesc-selftest.c: Fix common/ includes.
4874 * linux-x86-low.c: Fix common/ includes.
4875 * linux-low.c: Fix common/ includes.
4876 * inferiors.h: Fix common/ includes.
4877 * i387-fp.c: Fix common/ includes.
4878 * hostio.c: Fix common/ includes.
4879 * hostio-errno.c: Fix common/ includes.
4880 * gdbthread.h: Fix common/ includes.
4881 * gdbreplay.c: Fix common/ includes.
4882 * fork-child.c: Fix common/ includes.
4883 * event-loop.c: Fix common/ includes.
4885 (enum gdb_agent_op): Fix common/ includes.
4887 2019-01-21 Tom Tromey <tom@tromey.com>
4889 * tracepoint.c: Fix includes.
4890 * remote-utils.c: Fix includes.
4891 * linux-x86-low.c: Fix includes.
4893 2019-01-01 Joel Brobecker <brobecker@adacore.com>
4895 * gdbreplay.c (gdbreplay_version): Update copyright year in
4897 * server.c (gdbserver_version): Likewise.
4899 2018-12-05 Alan Hayward <alan.hayward@arm.com>
4901 * linux-low.c (add_lwp): Switch ordering.
4903 2018-11-29 Tom Tromey <tom@tromey.com>
4905 * win32-low.c (win32_join): Take pid, not process.
4906 * target.h (struct target_ops) <join>: Change argument type.
4907 (join_inferior): Change argument name.
4908 * spu-low.c (spu_join): Take pid, not process.
4909 * server.c (handle_detach): Preserve pid before destroying
4911 * lynx-low.c (lynx_join): Take pid, not process.
4912 * linux-low.c (linux_join): Take pid, not process.
4914 2018-11-23 Alan Hayward <alan.hayward@arm.com>
4916 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
4917 (aarch64_cannot_fetch_register): Likewise.
4918 (struct linux_target_ops): Update references.
4920 2018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4922 * linux-ppc-low.c: Include nat/linux-ptrace.h.
4924 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4926 * configure.srv (ipa_ppc_linux_regobj): Add
4927 powerpc-isa207-htm-vsx32l-ipa.o and
4928 powerpc-isa207-htm-vsx64l-ipa.o.
4929 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
4930 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
4931 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
4932 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
4933 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
4934 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
4935 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
4936 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
4937 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
4938 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
4939 (init_registers_powerpc_isa207_htm_vsx32l)
4940 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
4941 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
4942 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
4943 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
4944 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
4945 (ppc_store_tm_ctarregset): New functions.
4946 (ppc_regsets): Add entries for HTM regsets.
4947 (ppc_arch_setup): Set htm in features struct when needed. Set
4948 sizes for the HTM regsets.
4949 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
4950 (initialize_low_arch): Call
4951 init_registers_powerpc_isa207_htm_vsx32l and
4952 init_registers_powerpc_isa207_htm_vsx64l.
4953 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
4954 PPC_TDESC_ISA207_HTM_VSX.
4955 (initialize_low_tracepoint): Call
4956 init_registers_powerpc_isa207_htm_vsx32l and
4957 init_registers_powerpc_isa207_htm_vsx64l.
4959 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4961 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
4962 rs6000/power-linux-pmu.xml to srv_xmlfiles.
4963 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
4964 (ppc_store_pmuregset): New functions.
4965 (ppc_regsets): Add entries for ebb and pmu regsets.
4966 (ppc_arch_setup): Set isa207 in features struct if the ebb and
4967 pmu regsets are available. Set sizes for these regsets.
4969 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4971 * configure.srv (ipa_ppc_linux_regobj): Add
4972 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
4973 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
4974 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
4975 rs6000/powerpc-isa207-vsx32l.xml, and
4976 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
4977 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
4978 <PPC_TDESC_ISA207_VSX>: New enum value.
4979 (init_registers_powerpc_isa207_vsx32l): Declare.
4980 (init_registers_powerpc_isa207_vsx64l): Declare.
4981 * linux-ppc-low.c (ppc_fill_tarregset): New function.
4982 (ppc_store_tarregset): New function.
4983 (ppc_regsets): Add entry for the TAR regset.
4984 (ppc_arch_setup): Set isa207 in features struct when needed. Set
4985 size for the TAR regsets.
4986 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
4987 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
4988 and init_registers_powerpc_isa207_vsx64l.
4989 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
4990 (initialize_low_tracepoint): Call
4991 init_registers_powerpc_isa207_vsx32l and
4992 init_registers_powerpc_isa207_vsx64l.
4994 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4995 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4997 * configure.srv (ipa_ppc_linux_regobj): Add
4998 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
4999 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
5000 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
5001 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
5002 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
5003 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
5004 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
5005 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5006 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
5007 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
5008 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
5009 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
5010 (ppc_hwcap): Add comment.
5011 (ppc_hwcap2): New global.
5012 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
5013 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
5014 (ppc_regsets): Add entries for the DSCR and PPR regsets.
5015 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
5016 when needed. Set sizes for the the DSCR and PPR regsets.
5017 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
5018 (initialize_low_arch): Call
5019 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5020 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5021 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5022 PPC_TDESC_ISA205_PPR_DSCR_VSX.
5023 (initialize_low_tracepoint): Call
5024 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5025 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5027 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5029 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
5031 2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
5032 Simon Marchi <simark@simark.ca>
5034 * acinclude.m4: Include "../selftest.m4".
5035 * configure: Regenerate.
5036 * configure.ac: Use "GDB_AC_SELFTEST".
5037 * configure.srv: Use "$enable_unittests" instead of
5038 "$development" when checking whether unit tests have been
5040 * server.c (captured_main): Update message informing that
5041 selftests have been disabled.
5043 2018-10-04 Tom Tromey <tom@tromey.com>
5045 * configure: Rebuild.
5047 2018-10-04 Tom Tromey <tom@tromey.com>
5049 * server.c (handle_status): Rename inner "thread".
5050 (process_serial_event): Declare "res" in 'm' case.
5051 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
5052 (iterate_over_lwps): Rename inner "thread".
5053 (linux_qxfer_libraries_svr4): Rename inner "len".
5054 * gdbthread.h (find_thread_in_random): Rename inner "thread".
5056 2018-10-01 Gary Benson <gbenson@redhat.com>
5058 * gdb_proc_service.h: Moved common code to
5059 common/gdb_proc_service.h.
5061 2018-10-01 Gary Benson <gbenson@redhat.com>
5063 * gdb_proc_service.h: Synchronize comments and whitespace with
5064 GDB's version of this file.
5066 2018-09-25 Tom Tromey <tom@tromey.com>
5068 * configure: Rebuild.
5069 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
5071 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5073 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
5074 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
5075 ($(IPA_LIB)): Sort IPA_OBJS.
5077 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5079 * Makefile.in: Remove references to $(ADD_DEPS).
5081 2018-09-16 Tom Tromey <tom@tromey.com>
5083 * remote-utils.c (remote_open): Use GNU style for metasyntactic
5085 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
5088 2018-09-05 Tom Tromey <tom@tromey.com>
5090 * configure: Rebuild.
5092 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
5095 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
5097 2018-08-27 Tom Tromey <tom@tromey.com>
5100 * configure: Rebuild.
5102 2018-08-27 Tom Tromey <tom@tromey.com>
5104 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
5105 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
5106 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
5107 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
5108 (s390x_emit_stack_adjust): Add casts to unsigned char.
5110 2018-08-22 Simon Marchi <simon.marchi@ericsson.com>
5114 * server.h (struct client_state) <disable_randomization>:
5117 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5119 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
5121 (mips_supply_ptrace_register): Likewise.
5123 2018-07-22 Tom Tromey <tom@tromey.com>
5125 * configure: Rebuild.
5127 2018-07-22 Tom Tromey <tom@tromey.com>
5129 * win32-low.c (win32_create_inferior): Remove unused variables.
5130 * gdbreplay.c (remote_open): Remove unused variable.
5131 * remote-utils.c (remote_prepare): Remove unused variable.
5132 * x86-tdesc.h (X86_TDESC_H): Define.
5133 (amd64_expedite_regs): Define conditionally.
5134 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
5135 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
5136 * remote-utils.c (readchar): Remove unused variable.
5138 2018-07-13 Pedro Alves <palves@redhat.com>
5140 * linux-low.c (linux_kill): Change parameter to process_info
5141 pointer instead of pid. Adjust.
5142 * lynx-low.c (lynx_kill): Likewise.
5143 * nto-low.c (nto_kill): Likewise.
5144 * spu-low.c (spu_kill): Likewise.
5145 * win32-low.c (win32_kill): Likewise.
5146 * server.c (handle_v_kill, kill_inferior_callback)
5147 (detach_or_kill_for_exit): Adjust.
5148 * target.c (kill_inferior): Change parameter to process_info
5149 pointer instead of pid. Adjust.
5150 * target.h (struct target_ops) <kill>: Change parameter to
5151 process_info pointer instead of pid. Adjust all implementations
5153 (kill_inferior): Likewise.
5155 2018-07-13 Pedro Alves <palves@redhat.com>
5157 * linux-low.c (linux_detach, linux_join): Change parameter to
5158 process_info pointer instead of pid. Adjust.
5159 * lynx-low.c (lynx_detach, lynx_join): Likewise.
5160 * nto-low.c (nto_detach): Likewise.
5161 * spu-low.c (spu_detach, spu_join): Likewise.
5162 * win32-low.c (win32_detach, win32_join): Likewise.
5163 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
5164 * target.h (struct target_ops) <detach, join>: Change parameter to
5165 process_info pointer instead of pid. Adjust all implementations
5167 (detach_inferior, join_inferior): Rename 'pid' parameter to
5170 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
5171 Jan Kratochvil <jan.kratochvil@redhat.com>
5172 Paul Fertser <fercerpav@gmail.com>
5173 Tsutomu Seki <sekiriki@gmail.com>
5175 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
5176 (OBS): Add 'common/netstuff.o'.
5177 (GDBREPLAY_OBS): Likewise.
5178 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
5179 (remote_open): Implement support for IPv6
5181 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
5183 (handle_accept_event): Accept connections from IPv6 sources.
5184 (remote_prepare): Handle IPv6-style hostnames; implement
5185 support for IPv6 connections.
5186 (remote_open): Implement support for printing connections from
5189 2018-07-11 Pedro Alves <palves@redhat.com>
5192 * mem-break.c (any_persistent_commands): Add process_info
5193 parameter and use it instead of relying on the current process.
5194 Change return type to bool.
5195 * mem-break.h (any_persistent_commands): Add process_info
5196 parameter and change return type to bool.
5197 * server.c (handle_detach): Remove require_running_or_return call.
5198 Look up the process_info for the process we're about to detach.
5199 If not found, return back error to GDB. Adjust
5200 any_persistent_commands call to pass down a process pointer.
5202 2018-07-11 Pedro Alves <palves@redhat.com>
5204 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
5205 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
5206 instead of collect_register_by_name.
5207 * regcache.c (regcache_raw_get_unsigned_by_name): New.
5208 * regcache.h (regcache_raw_get_unsigned_by_name): New.
5210 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
5211 Pedro Alves <palves@redhat.com>
5213 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
5215 2018-07-03 Tom Tromey <tom@tromey.com>
5217 * linux-low.c: Update.
5218 * lynx-low.c: Update.
5219 * mem-break.c: Update.
5220 * nto-low.c: Update.
5221 * remote-utils.c: Update.
5223 * spu-low.c: Update.
5225 * win32-low.c: Update.
5227 2018-07-03 Tom Tromey <tom@tromey.com>
5231 2018-07-03 Tom Tromey <tom@tromey.com>
5233 * linux-low.c: Update.
5235 2018-07-03 Tom Tromey <tom@tromey.com>
5239 2018-07-03 Tom Tromey <tom@tromey.com>
5241 * linux-low.c: Update.
5242 * linux-mips-low.c: Update.
5243 * lynx-low.c: Update.
5244 * nto-low.c: Update.
5245 * remote-utils.c: Update.
5247 * spu-low.c: Update.
5249 * thread-db.c: Update.
5251 2018-07-03 Tom Tromey <tom@tromey.com>
5253 * linux-low.c: Update.
5254 * linux-mips-low.c: Update.
5255 * lynx-low.c: Update.
5256 * mem-break.c: Update.
5257 * nto-low.c: Update.
5258 * remote-utils.c: Update.
5260 * spu-low.c: Update.
5262 * tracepoint.c: Update.
5264 2018-07-03 Tom Tromey <tom@tromey.com>
5266 * linux-low.c: Update.
5267 * linux-ppc-low.c: Update.
5268 * linux-x86-low.c: Update.
5269 * proc-service.c: Update.
5271 * spu-low.c: Update.
5272 * thread-db.c: Update.
5273 * win32-low.c: Update.
5275 2018-07-03 Tom Tromey <tom@tromey.com>
5277 * linux-low.c: Update.
5278 * lynx-low.c: Update.
5279 * nto-low.c: Update.
5280 * remote-utils.c: Update.
5281 * spu-low.c: Update.
5282 * thread-db.c: Update.
5283 * win32-low.c: Update.
5285 2018-06-29 Joel Brobecker <brobecker@adacore.com>
5287 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
5288 parameter in call to 'amd64_create_target_description'.
5290 2018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5292 * x86-tdesc.h: Remove executable permission flag.
5294 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5296 * configure.ac: Remove AC_PREREQ, add missing quoting.
5297 * configure: Re-generate.
5298 * config.in: Re-generate.
5299 * aclocal.m4: Re-generate.
5301 2018-06-18 Simon Marchi <simon.marchi@ericsson.com>
5303 * tracepoint.h (current_traceframe): Remove declaration.
5305 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5307 * linux-aarch64-low.c (is_sve_tdesc): New function.
5308 (aarch64_sve_regs_copy_to_regcache): Likewise.
5309 (aarch64_sve_regs_copy_from_regcache): Likewise.
5310 (aarch64_regs_info): Add SVE checks.
5311 (initialize_low_arch): Initialize SVE.
5313 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5315 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
5317 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5319 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
5320 (initialize_low_tracepoint): Likewise
5321 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
5322 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
5324 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
5326 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
5328 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5330 * server.h (PBUFSIZ): Increase size
5332 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5334 * regcache.c (regcache::raw_compare): New function.
5335 * regcache.h (regcache::raw_compare): New declaration.
5337 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5339 * regcache.c (new_register_cache): Use new.
5340 (free_register_cache): Use delete.
5341 (register_data): Use const.
5342 (supply_register): Move body inside regcache.
5343 (regcache::raw_supply): New override function.
5344 (collect_register): Move body inside regcache.
5345 (regcache::raw_collect): New override function.
5346 (regcache::get_register_status): New override function.
5347 * regcache.h (struct regcache): Inherit from reg_buffer_common.
5349 2018-06-09 Tom Tromey <tom@tromey.com>
5351 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
5353 (event_queue): Use std::queue.
5354 (gdb_event_xfree): Remove.
5355 (initialize_event_loop, process_event, wait_for_event): Update.
5357 2018-06-08 Stan Cox <scox@redhat.com>
5359 * win32-low.c (win32_create_inferior): last_ptid and last_status
5360 moved to client_state.
5362 2018-06-08 Pedro Alves <palves@redhat.com>
5364 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
5365 common/common-exceptions.o, common/common-utils.o,
5366 common/errors.o, common/print-utils.o and utils.o.
5367 * gdbreplay.c: Include "common-defs.h" instead of the two
5368 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
5369 string.h or alloca.h.
5370 (perror_with_name): Delete.
5371 (remote_open): Use xstrdup instead of strdup.
5372 (main): Rename to ...
5373 (captured_main): ... this.
5376 2018-06-08 Tom Tromey <tom@tromey.com>
5378 * linux-low.c (linux_low_read_btrace): Update.
5380 2018-06-04 Stan Cox <scox@redhat.com>
5382 * server.h (struct client_state): New.
5383 * server.c (cont_thread, general_thread, multi_process)
5384 (report_fork_events, report_vfork_events, report_exec_events)
5385 (report_thread_events, swbreak_feature, hwbreak_feature)
5386 (vCont_supported, disable_randomization, pass_signals)
5387 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
5388 Moved to client_state.
5389 * remote-utils.c (remote_debug, noack_mode)
5390 (transport_is_reliable): Moved to client_state.
5391 * tracepoint.c (current_traceframe): Moved to client_state.
5394 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
5395 linux-low.c, remote-utils.h, target.c: Use client_state.
5397 2018-05-31 Alan Hayward <alan.hayward@arm.com>
5399 * configure.srv: Add new c/h file.
5401 2018-05-31 Alan Hayward <alan.hayward@arm.com>
5403 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
5406 2018-05-25 Maciej W. Rozycki <macro@mips.com>
5408 * gdb.arch/mips-fpregset-core.exp: New test.
5409 * gdb.arch/mips-fpregset-core.c: New test source.
5411 2018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
5414 * hostio.c (require_int): Do not report overflow for integers
5415 between 0xfffffff and 0x7fffffff.
5417 2018-05-22 Maciej W. Rozycki <macro@mips.com>
5419 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
5420 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
5421 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
5423 (the_low_target): Wire them.
5425 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5427 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
5428 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
5429 mode. Call collect_register_by_name with vscr using
5430 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
5431 (ppc_store_vrregset): Add and set vscr_offset variable as in
5432 ppc_fill_vrregset. Call supply_register_by_name with vscr using
5435 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5437 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
5438 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
5439 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
5441 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5443 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
5444 (ppc_store_vsxregset): Likewise.
5445 (ppc_fill_vrregset): Likewise.
5446 (ppc_store_vrregset): Likewise.
5447 (ppc_fill_evrregset): Likewise.
5448 (ppc_store_evrregset): Likewise.
5449 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
5450 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
5453 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5455 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
5456 wordsize of the inferior. Call ppc_linux_target_wordsize.
5458 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5460 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
5461 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
5462 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
5463 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
5464 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
5465 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
5466 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
5467 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
5468 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
5469 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
5470 (tdesc_powerpc_e500l): Remove.
5471 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
5472 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
5473 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
5474 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
5476 (ppc_arch_setup): Remove target description matching code. Fill a
5477 ppc_linux_features struct and call ppc_linux_match_description
5480 2018-05-22 Maciej W. Rozycki <macro@mips.com>
5482 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
5483 width of the requested register exceeds the width of the
5485 (mips_cannot_store_register): Likewise.
5487 2018-05-21 Maciej W. Rozycki <macro@mips.com>
5489 * linux-mips-low.c (mips_fetch_register): New function. Update
5491 (mips_store_gregset): Supply 0 rather than $restart for $zero.
5492 (the_low_target): Wire `mips_fetch_register'.
5494 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5496 * lynx-i386-low.c (LYNXOS_178): New macro.
5497 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
5498 the layout on LynxOS-178.
5499 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
5500 handle floating point registers that are not supported by
5503 2018-05-10 Tom Tromey <tom@tromey.com>
5505 * configure: Rebuild.
5507 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5510 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
5511 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
5512 Use it to set the expedite_regs field in the given tdesc.
5513 * x86-tdesc.h: New file.
5514 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
5515 Adjust following the addition of the new expedite_regs parameter
5516 to init_target_desc.
5517 * linux-tic6x-low.c (tic6x_read_description): Likewise.
5518 * linux-x86-tdesc.c: #include "x86-tdesc.h".
5519 (i386_linux_read_description, amd64_linux_read_description):
5520 Adjust following the addition of the new expedite_regs parameter
5521 to init_target_desc.
5522 * lynx-i386-low.c: #include "x86-tdesc.h".
5523 (lynx_i386_arch_setup): Adjust following the addition of the new
5524 expedite_regs parameter to init_target_desc.
5525 * nto-x86-low.c: #include "x86-tdesc.h".
5526 (nto_x86_arch_setup): Adjust following the addition of the new
5527 expedite_regs parameter to init_target_desc.
5528 * win32-i386-low.c: #include "x86-tdesc.h".
5529 (i386_arch_setup): Adjust following the addition of the new
5530 expedite_regs parameter to init_target_desc.
5532 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5535 * win32-low.c (win32_create_inferior): Add call to my_wait
5536 setting last_status global.
5538 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5541 * win32-low.c (create_process): Only call gdb_tilde_expand if
5542 inferior_cwd is not NULL.
5544 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
5546 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
5547 registers to the cache if their values have changed.
5548 (i387_xsave_to_cache): Provide default values for x87 control
5549 registers when these features are available, but disabled.
5550 * regcache.c (supply_register_by_name_zeroed): New function.
5551 * regcache.h (supply_register_by_name_zeroed): Declare new
5554 2018-05-07 Tom Tromey <tom@tromey.com>
5556 * configure: Rebuild.
5558 2018-05-04 Tom Tromey <tom@tromey.com>
5560 * configure: Rebuild.
5562 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5563 Pedro Alves <palves@redhat.com>
5565 * linux-aarch64-low.c (aarch64_stopped_data_address):
5568 2018-04-27 Tom Tromey <tom@tromey.com>
5570 * configure: Rebuild.
5572 2018-04-23 Tom Tromey <tom@tromey.com>
5574 * configure: Rebuild.
5576 2018-04-19 Simon Marchi <simon.marchi@ericsson.com>
5578 * Makefile.in (depcomp): Add "..".
5579 (all_deps_files): New and use it.
5581 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5583 * configure.srv (aarch64*-*-linux*): Don't include xml.
5584 (i[34567]86-*-cygwin*): Likewise.
5585 (i[34567]86-*-linux*): Likewise.
5586 (i[34567]86-*-lynxos*): Likewise.
5587 (i[34567]86-*-mingw32ce*): Likewise.
5588 (i[34567]86-*-mingw*): Likewise.
5589 (i[34567]86-*-nto*): Likewise.
5590 (tic6x-*-uclinux): Likewise.
5591 (x86_64-*-linux*): Likewise.
5592 (x86_64-*-mingw*): Likewise.
5593 (x86_64-*-cygwin*): Likewise.
5595 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5597 * tdesc.c: Remove xml parameter.
5599 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5601 * server.c (get_features_xml): Remove cast.
5602 * tdesc.c (void target_desc::accept): Fill in function.
5603 (tdesc_get_features_xml): Remove old xml creation.
5604 (print_xml_feature::visit_pre): Add xml vistor.
5605 * tdesc.h (struct target_desc): Make xmltarget mutable.
5606 (tdesc_get_features_xml): Remove declaration.
5608 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5610 * tdesc.c (tdesc_architecture_name): Add new function.
5611 (tdesc_osabi_name): Likewise.
5612 (tdesc_get_features_xml): Use new functions.
5614 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5616 * tdesc.c (tdesc_create_flags): Remove.
5617 (tdesc_add_flag): Likewise.
5618 (tdesc_named_type): Likewise.
5619 (tdesc_create_union): Likewise.
5620 (tdesc_create_struct): Likewise.
5621 (tdesc_create_vector): Likewise.
5622 (tdesc_add_bitfield): Likewise.
5623 (tdesc_add_field): Likewise.
5624 (tdesc_set_struct_size): Likewise.
5626 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5628 * tdesc.c (~target_desc): Remove implictly deleted items.
5629 (init_target_desc): Iterate all features.
5630 (tdesc_get_features_xml): Use vector.
5631 (tdesc_create_feature): Create feature.
5632 * tdesc.h (tdesc_feature) Remove
5633 (target_desc): Add features.
5635 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5637 * Makefile.in: Add common/tdesc.c
5638 * tdesc.c (init_target_desc): init all reg_defs from register
5640 (tdesc_create_reg): Create tdesc_reg.
5641 * tdesc.h (tdesc_feature): Add register vector.
5643 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
5645 * tdesc.h (struct target_desc) <features>: Change type to
5646 std::vector<std::string>.
5647 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
5649 (tdesc_get_features_xml): Likewise.
5650 (tdesc_create_feature): Likewise.
5652 2018-03-26 Alan Hayward <alan.hayward@arm.com>
5654 * regcache.c (find_register_by_number): Return a ref.
5655 (find_regno): Use references.
5656 (register_size): Likewise.
5657 (register_data): Likewise.
5658 * tdesc.c (target_desc::~target_desc): Remove free calls.
5659 (target_desc::operator==): Use std::vector compare.
5660 (init_target_desc): Use reference.
5661 (tdesc_create_reg): Use reg constructors.
5662 * tdesc.h (struct target_desc): Replace pointer with object.
5664 2018-03-23 Alan Hayward <alan.hayward@arm.com>
5666 * regcache.c (find_register_by_number): Make static.
5667 (find_regno): Use find_register_by_number
5668 * regcache.h (struct reg): Remove declaration.
5670 2018-03-23 Alan Hayward <alan.hayward@arm.com>
5672 * tdesc.c (target_desc::~target_desc): Move to here.
5673 (target_desc::operator==): Likewise.
5674 * tdesc.h (target_desc::~target_desc): Move from here.
5675 (target_desc::operator==): Likewise.
5677 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
5679 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
5681 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5683 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
5685 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
5686 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
5687 and init_registers_s390_gs_linux64.
5689 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5691 * linux-s390-low.c (s390_fill_gs): Remove function.
5692 (s390_fill_gsbc): Remove function.
5693 (s390_regsets): Set fill functions for the guarded storage regsets
5696 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5698 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
5699 the word size. Add comment.
5700 (s390_get_wordsize): New function.
5701 (s390_arch_setup): No longer select a temporary tdesc to fetch the
5702 pswm with it. Instead, use s390_get_wordsize to determine the
5703 word size first and derive the correct tdesc from that directly.
5705 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
5707 * Makefile.in: Include silent-rules.mk.
5708 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
5709 (COMPILE): Add ECHO_CXX.
5710 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5711 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5712 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
5713 (version-generated.c): Add ECHO_GEN.
5714 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
5715 (IPAGENT_COMPILE): Add ECHO_CXX.
5716 (%-generated.c): Add ECHO_REGDAT.
5718 2018-03-14 Tom Tromey <tom@tromey.com>
5721 * ax.c (ax_printf): Special case for NULL.
5723 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5725 * linux-low.c (linux_qxfer_libraries_svr4): Use
5726 xml_escape_text_append.
5728 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5730 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
5732 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5734 * server.c (handle_general_set): Remove unnecessary xstrdup.
5736 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5738 * server.c (parse_debug_format_options): Adjust to
5739 delim_string_to_char_ptr_vec changes.
5740 * thread-db.c (thread_db_load_search): Adjust to
5741 dirnames_to_char_ptr_vec changes.
5743 2018-03-01 Markus Metzger <markus.t.metzger@intel.com>
5745 * target.h (target_enable_btrace, target_disable_btrace)
5746 (target_read_btrace, target_read_btrace_conf): Turn macro into
5747 inline function. Throw error if target method is not defined.
5748 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
5749 check for btrace target method. Be prepared to handle exceptions
5750 from btrace target methods.
5752 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5754 * server.c (captured_main): Change order of error message printed
5755 when the current working directory cannot be found.
5757 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5759 * server.c: Include "filenames.h" and "pathstuff.h".
5760 (program_name): Delete variable.
5761 (program_path): New anonymous class.
5762 (get_exec_wrapper): Use "program_path" instead of
5764 (handle_v_run): Likewise.
5765 (captured_main): Likewise.
5766 (process_serial_event): Likewise.
5768 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5770 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
5771 (OBJS): Add "pathstuff.o".
5772 * server.c (current_directory): New global variable.
5773 (captured_main): Initialize "current_directory".
5775 2018-02-26 Alan Hayward <alan.hayward@arm.com>
5777 * tdesc.c: Use common/tdesc.h.
5778 * tdesc.h: Likewise.
5780 2018-02-20 Alan Hayward <alan.hayward@arm.com>
5781 Simon Marchi <simon.marchi@ericsson.com>
5783 * Makefile.in: Switch order of make rules.
5785 2018-02-19 Alan Hayward <alan.hayward@arm.com>
5787 * Makefile.in: Add common directory in build.
5788 * configure.ac: Add common reference.
5789 * configure: Regenerate.
5791 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
5793 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
5794 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
5795 * spu-low.c (spu_target_ops): Likewise.
5796 * win32-low.c (win32_target_ops): Likewise.
5797 * server.c (supported_btrace_packets): Report packets unconditionally.
5798 * target.h (target_ops) <supports_btrace>: Remove.
5799 (target_supports_btrace): Remove.
5801 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
5803 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
5804 (handle_btrace_disable): Change return type to void. Use exceptions
5806 (handle_btrace_general_set): Catch exception and copy message to
5809 2018-02-08 Tom Tromey <tom@tromey.com>
5811 * linux-low.c (install_software_single_step_breakpoints): Use
5812 make_scoped_restore.
5813 * inferiors.c (make_cleanup_restore_current_thread): Remove.
5814 (do_restore_current_thread_cleanup): Remove.
5815 * gdbthread.h (make_cleanup_restore_current_thread): Don't
5818 2018-02-08 Tom Tromey <tom@tromey.com>
5820 * mem-break.c (set_raw_breakpoint_at): Use
5821 gdb::unique_xmalloc_ptr.
5823 2018-01-30 Pedro Alves <palves@redhat.com>
5826 * target.c (target_terminal::terminal_state): Rename to ...
5827 (target_terminal::m_terminal_state): ... this.
5829 2018-01-19 James Clarke <jrtc27@jrtc27.com>
5831 * linux-low.c (handle_extended_wait): Surround call to
5832 thread_db_notice_clone with #ifdef USE_THREAD_DB.
5834 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
5836 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
5837 linux_ptrace_attach_fail_reason_string now returning an
5839 (linux_attach): Likewise.
5840 * thread-db.c (attach_thread): Likewise.
5842 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
5845 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
5846 checking for fs_base/gs_base fields in struct user_regs_struct.
5847 * configure: Regenerate.
5849 2018-01-16 Yao Qi <yao.qi@linaro.org>
5852 * linux-low.c (fetch_register): Call supply_register instead of
5855 2018-01-08 Yao Qi <yao.qi@linaro.org>
5856 Simon Marchi <simon.marchi@ericsson.com>
5858 * Makefile.in (OBS): Remove selftest.o.
5859 * configure.ac: Set srv_selftest_objs if $development is true.
5860 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
5861 * configure: Re-generated.
5862 * server.c (captured_main): Wrap variable selftest_filter with
5865 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
5867 * server.c (parse_debug_format_options): Return std::string.
5868 (handle_monitor_command, captured_main): Adjust.
5870 2018-01-05 Pedro Alves <palves@redhat.com>
5873 * server.c (captured_main): Pass quiet=false to
5874 save_original_signals_state.
5876 2018-01-01 Joel Brobecker <brobecker@adacore.com>
5878 * gdbreplay.c (gdbreplay_version): Update copyright year in
5880 * server.c (gdbserver_version): Likewise.
5882 2017-12-08 Tom Tromey <tom@tromey.com>
5884 * ax.c (ax_printf): Update.
5886 2017-12-07 Yao Qi <yao.qi@linaro.org>
5888 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
5889 aarch64_linux_read_description.
5890 * linux-amd64-ipa.c (idx2mask): New array.
5891 (get_ipa_tdesc): Move idx2mask out.
5892 (initialize_low_tracepoint): Initialize target descriptions.
5893 * linux-i386-ipa.c (idx2mask): New array.
5894 (get_ipa_tdesc): Move idx2mask out.
5895 (initialize_low_tracepoint): Initialize target descriptions.
5897 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
5899 * tdesc.c (struct tdesc_type): Change return type.
5900 (tdesc_add_flag): Change parameter type.
5901 (tdesc_add_bitfield): Likewise.
5902 (tdesc_add_field): Likewise.
5903 (tdesc_set_struct_size): Likewise.
5905 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
5907 * regcache.c (registers_to_string): Remove unused variable.
5909 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5911 * inferiors.c (for_each_inferior_with_data): Remove.
5912 * inferiors.h (for_each_inferior_with_data): Remove.
5913 * server.c (handle_qxfer_threads_worker): Change parameter type.
5914 (handle_qxfer_threads_proper): Use for_each_thread.
5916 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5918 * inferiors.c (for_each_inferior): Remove.
5919 (clear_inferiors): Use for_each_thread.
5920 * inferiors.h (for_each_inferior): Remove.
5921 * linux-low.c (linux_wait_for_event_filtered): Use
5923 (linux_stabilize_threads): Likewise.
5924 * regcache.c (regcache_release): Likewise.
5925 * server.c (gdb_wants_all_threads_stopped): Likewise.
5926 (clear_pending_status_callback): Remove.
5927 (handle_status): Use for_each_thread.
5928 (captured_main): Likewise.
5929 * win32-low.c (child_init_thread_list): Likewise.
5930 (win32_clear_inferiors): Likewise.
5931 (fake_breakpoint_event): Likewise.
5933 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5935 * inferiors.h (find_inferior): Remove.
5936 * inferiors.c (find_inferior): Remove.
5938 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5940 * linux-low.c (resume_status_pending_p): Update comment.
5941 (need_step_over_p): Update comment.
5943 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5945 * linux-low.c (proceed_one_lwp): Return void, change parameter
5947 (unsuspend_and_proceed_one_lwp): Likewise.
5948 (proceed_all_lwps): Use for_each_thread.
5949 (unstop_all_lwps): Likewise.
5951 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5953 * linux-low.c (linux_resume_one_thread): Return void, take
5955 (linux_resume): Use for_each_thread.
5957 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5959 * linux-low.c (send_sigstop_callback): Return void, change
5960 parameter type. Rename to...
5961 (send_sigstop): ... this.
5962 (suspend_and_send_sigstop_callback): Return void, change parameter
5964 (suspend_and_send_sigstop): ... this.
5965 (stop_all_lwps): Use for_each_thread.
5967 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5969 * linux-low.c (lwp_running): Return bool, remove unused
5971 (linux_stabilize_threads): Use find_thread.
5973 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5975 * linux-low.c (select_singlestep_lwp_callback): Remove.
5976 (count_events_callback): Remove.
5977 (select_event_lwp_callback): Remove.
5978 (select_event_lwp): Use find_thread/for_each_thread.
5980 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5982 * linux-low.c (not_stopped_callback): Return bool, take filter
5984 (linux_wait_for_event_filtered): Use find_thread.
5985 (linux_wait_1): Likewise.
5987 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5989 * linux-low.c (same_lwp): Remove.
5990 (find_lwp_pid): Use find_thread.
5992 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5994 * linux-low.c (delete_lwp_callback): Remove.
5995 (linux_mourn): Use for_each_thread.
5997 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5999 * linux-low.c (linux_detach_lwp_callback): Return void, remove
6000 args parameter, don't check for pid.
6001 (linux_detach): Use for_each_thread.
6003 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6005 * linux-low.c (struct counter): Remove.
6006 (second_thread_of_pid_p): Remove.
6007 (last_thread_of_process_p): Use find_thread.
6009 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6011 * inferiors.c (find_inferior_in_random): Remove.
6012 * inferiors.h (find_inferior_in_random): Remove.
6013 * linux-low.c (status_pending_p_callback): Return bool, accept
6014 parameter ptid directly.
6015 (linux_wait_for_event_filtered): Use find_thread_in_random.
6016 (linux_wait_1): Likewise.
6018 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6020 * inferiors.c (find_inferior_id): Remove.
6021 (find_thread_ptid): Move implemention from find_inferior_id to
6023 * inferiors.h (find_inferior_id): Remove.
6024 * server.c (handle_status): Use find_thread_ptid.
6025 (process_serial_event): Likewise.
6026 * thread-db.c (find_one_thread): Likewise.
6027 (thread_db_thread_handle): Likewise.
6028 * win32-low.c (thread_rec): Likewise.
6029 (child_delete_thread): Likewise.
6030 (win32_thread_alive): Likewise.
6031 (get_child_debug_event): Likewise.
6033 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6035 * linux-mips-low.c (update_watch_registers_callback): Return
6036 void, remove pid_p parameter, don't check for pid.
6037 (mips_insert_point, mips_remove_point): Use for_each_thread.
6039 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6041 * lynx.low (lynx_delete_thread_callback): Remove.
6042 (lynx_mourn): Use for_each_thread.
6044 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6046 * regcache.c (regcache_invalidate_one): Remove.
6047 (regcache_invalidate_pid): use for_each_thread.
6049 2017-11-26 Tom Tromey <tom@tromey.com>
6051 * linux-low.c (linux_create_inferior): Update.
6053 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
6055 * spu-low.c (spu_create_inferior): Fix typo in argument name.
6057 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6059 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
6060 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6061 * linux-aarch64-tdesc-selftest.c: New file.
6062 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6064 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6066 * configure.srv: Add new file.
6067 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6068 * linux-aarch64-tdesc-selftest.c: New file.
6069 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6071 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6073 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
6074 * linux-aarch64-low.c (initialize_low_arch): Remove init.
6075 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
6077 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6079 * configure.srv: Add new files.
6080 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
6081 aarch64_linux_read_description.
6082 * linux-aarch64-low.c (aarch64_linux_read_description):
6083 Merge with aarch64_arch_setup.
6084 (aarch64_arch_setup): Call aarch64_linux_read_description.
6085 * linux-aarch64-tdesc.c: New file.
6086 * linux-aarch64-tdesc.h: New file.
6088 2017-11-24 Yao Qi <yao.qi@linaro.org>
6090 * configure.srv: Set $srv_regobj for tic6x-linux.
6091 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
6092 (tic6x_read_description): Move some code to tic6x_arch_setup.
6093 (tic6x_tdesc_test): New function.
6094 (initialize_low_arch): Call selftests::register_test.
6096 2017-11-22 Yao Qi <yao.qi@linaro.org>
6098 * remote-utils.c (prepare_resume_reply): Use memcpy.
6100 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6102 * linux-low.c (kill_one_lwp_callback): Return void, take
6103 argument directly, don't filter on pid.
6104 (linux_kill): Use for_each_thread.
6106 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6108 * linux-low.c (need_step_over_p): Return bool, remove dummy
6110 (linux_resume, proceed_all_lwps): Use find_thread.
6112 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6114 * linux-low.c (resume_status_pending_p): Return bool, remove
6116 (linux_resume): Use find_thread.
6118 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6120 * linux-low.c (struct thread_resume_array): Remove.
6121 (linux_set_resume_request): Return void, take arguments
6123 (linux_resume): Use for_each_thread.
6125 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6127 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
6128 return bool, remove data argument.
6129 (linux_stabilize_threads): Use find_thread.
6131 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6133 * linux-low.c (unsuspend_one_lwp): Remove.
6134 (unsuspend_all_lwps): Use for_each_thread, inline code from
6137 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6139 * gdbthread.h (find_thread): Add overload with ptid_t filter.
6140 * linux-low.c (struct iterate_over_lwps_args): Remove.
6141 (iterate_over_lwps_filter): Remove.
6142 (iterate_over_lwps): Use find_thread.
6144 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6146 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
6147 (linux_handle_new_gdb_connection): Use for_each_thread, inline
6148 code from reset_lwp_ptrace_options_callback.
6150 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6152 * linux-arm-low.c (struct update_registers_data): Remove.
6153 (update_registers_callback): Return void, take arguments
6154 directly, don't check thread's pid.
6155 (arm_insert_point, arm_remove_point): Use for_each_thread.
6157 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6159 * win32-low.c (continue_one_thread): Return void, take argument
6161 (child_continue): Use for_each_thread.
6163 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6165 * win32-i386-low.c (update_debug_registers_callback): Rename
6167 (update_debug_registers): ... this, return void, remove pid_p arg.
6168 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
6170 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
6172 * inferiors.h (struct process_info): Add constructor, initialize
6174 <syscalls_to_catch>: Change type to std::vector<int>.
6175 * inferiors.c (add_process): Allocate process_info with new.
6176 (remove_process): Free process_info with delete.
6177 * linux-low.c (handle_extended_wait): Adjust.
6178 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
6179 * server.c (handle_general_set): Adjust.
6181 2017-11-16 Pedro Alves <palves@redhat.com>
6183 * remote-utils.c (remote_close): Block SIGIO signals instead of
6184 uninstalling the SIGIO handler.
6186 2017-11-16 Alan Hayward <alan.hayward@arm.com>
6188 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
6190 2017-11-16 Yao Qi <yao.qi@linaro.org>
6192 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
6193 (tic6x_store_gregset): Likewise.
6194 (tic6x_usrregs_info): Move it up.
6196 2017-11-15 Alan Hayward <alan.hayward@arm.com>
6198 * Makefile.in: Update arch rules.
6199 * configure.srv: Explicitly mark arch/ files.
6201 2017-11-13 Andreas Schwab <schwab@suse.de>
6203 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
6205 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6207 2017-11-06 Pedro Alves <palves@redhat.com>
6209 * config.in, configure: Regenerate.
6211 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6213 * target.c (struct thread_search): Remove.
6214 (thread_search_callback): Remove.
6215 (prepare_to_access_memory): Use for_each_thread instead of
6216 find_inferior. Inline code from thread_search_callback.
6218 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6220 * server.c (struct visit_actioned_threads_data): Remove.
6221 (visit_actioned_threads): Change prototype to take arguments
6223 (resume): Use find_thread instead of find_inferior.
6225 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6227 * server.c (queue_stop_reply_callback): Change prototype, return
6229 (find_status_pending_thread_callback): Remove.
6230 (handle_status): Replace find_inferior with find_thread and
6233 2017-10-25 Alan Hayward <alan.hayward@arm.com>
6235 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
6237 (aarch64_store_gregset): Likewise.
6238 (aarch64_fill_fpregset): Likewise.
6239 (aarch64_store_fpregset): Likewise.
6241 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
6243 * gdbthread.h (find_thread, for_each_thread): New functions.
6244 * inferiors.c (thread_of_pid): Remove.
6245 (find_any_thread_of_pid): Use find_thread.
6246 * linux-low.c (num_lwps): Use for_each_thread.
6248 2017-10-17 Yao Qi <yao.qi@linaro.org>
6250 * Makefile.in: Remove one rule.
6251 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
6253 2017-10-17 Yao Qi <yao.qi@linaro.org>
6255 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
6256 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
6258 2017-10-17 Yao Qi <yao.qi@linaro.org>
6260 * configure.srv: Rename arm.o with arch/arm.o.
6262 2017-10-17 Yao Qi <yao.qi@linaro.org>
6264 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
6265 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
6266 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
6267 (arch-i386.o, arch-amd64.o): Remove rules.
6268 (arch/%.o): New rule.
6269 Update POSTCOMPILE and COMPILE.pre.
6270 * configure.ac: Invoke AC_CONFIG_COMMANDS.
6271 * configure: Re-generated.
6272 * configure.srv: Replace arch-i386.o with arch/i386.o.
6273 Replace arch-amd64.o with arch/amd64.o.
6275 2017-10-16 Yao Qi <yao.qi@linaro.org>
6277 * configure: Regenerated.
6279 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6281 * inferiors.h: (struct inferior_list): Remove.
6282 (struct inferior_list_entry); Remove.
6283 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
6284 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
6285 get_first_inferior): Remove.
6286 (for_each_inferior, for_each_inferior_with_data, find_inferior,
6287 find_inferior_id, find_inferior_in_random): Change signature.
6288 * inferiors.c (all_threads): Change type to
6289 std::list<thread_info *>.
6290 (get_thread): Remove macro.
6291 (find_inferior, find_inferior_id): Change signature, implement
6293 (find_inferior_in_random): Change signature, implement using
6294 find_thread_in_random.
6295 (for_each_inferior, for_each_inferior_with_data): Change
6296 signature, implement using for_each_thread.
6297 (add_inferior_to_list, remove_inferior): Remove.
6298 (add_thread, get_first_thread, thread_of_pid,
6299 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
6300 (get_first_inferior, one_inferior_p, clear_inferior_list):
6302 (clear_inferiors, get_thread_process): Update.
6303 * gdbthread.h: Include <list>.
6304 (struct thread_info) <entry>: Remove field.
6306 (all_threads): Change type to std::list<thread_info *>.
6307 (get_first_inferior): Add doc.
6308 (find_thread, for_each_thread, find_thread_in_random): New
6310 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
6311 * linux-arm-low.c (update_registers_callback): Update.
6312 * linux-low.c (second_thread_of_pid_p): Update.
6313 (kill_one_lwp_callback, linux_detach_lwp_callback,
6314 delete_lwp_callback, status_pending_p_callback, same_lwp,
6315 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
6316 iterate_over_lwps, not_stopped_callback,
6317 resume_stopped_resumed_lwps, count_events_callback,
6318 select_singlestep_lwp_callback, select_event_lwp_callback,
6319 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
6320 suspend_and_send_sigstop_callback, wait_for_sigstop,
6321 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
6322 lwp_running, linux_set_resume_request, resume_status_pending_p,
6323 need_step_over_p, start_step_over, linux_resume_one_thread,
6324 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
6325 reset_lwp_ptrace_options_callback): Update.
6326 * linux-mips-low.c (update_watch_registers_callback): Update.
6327 * regcache.c (regcache_invalidate_one, regcache_invalidate):
6329 (free_register_cache_thread_one): Remove.
6330 (regcache_release): Update.
6331 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
6332 handle_qxfer_threads_worker): Update.
6333 (handle_query): Update, use list iterator.
6334 (visit_actioned_threads, handle_pending_status,
6335 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
6336 clear_pending_status_callback, set_pending_status_callback,
6337 find_status_pending_thread_callback, handle_status,
6338 process_serial_event): Update.
6339 * target.c (thread_search_callback): Update.
6340 * thread-db.c (thread_db_get_tls_address): Update.
6341 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
6343 * win32-i386-low.c (update_debug_registers_callback): Update.
6344 * win32-low.c (delete_thread_info, child_delete_thread,
6345 continue_one_thread, suspend_one_thread,
6346 get_child_debug_event): Adjust.
6348 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6350 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
6351 * inferiors.h: Include <list>.
6352 (struct process_info) <entry>: Remove field.
6354 (pid_of): Change macro to function.
6355 (ptid_of, lwpid_of): Remove macro.
6356 (all_processes): Change type to std::list<process_info *>.
6357 (ALL_PROCESSES): Remove macro.
6358 (for_each_process, find_process): New function.
6359 * inferiors.c (all_processes): Change type to
6360 std::list<process_info *>.
6361 (find_thread_process): Adjust.
6362 (add_process): Likewise.
6363 (remove_process): Likewise.
6364 (find_process_pid): Likewise.
6365 (get_first_process): Likewise.
6366 (started_inferior_callback): Remove.
6367 (have_started_inferiors_p): Adjust.
6368 (attached_inferior_callback): Remove.
6369 (have_attached_inferiors_p): Adjust.
6370 * linux-low.c (check_zombie_leaders): Likewise.
6371 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
6372 (x86_linux_update_xmltarget): Adjust.
6373 * server.c (handle_query): Likewise.
6374 (gdb_reattached_process): Remove.
6375 (handle_status): Adjust.
6376 (kill_inferior_callback): Likewise.
6377 (detach_or_kill_inferior): Remove.
6378 (print_started_pid): Likewise.
6379 (print_attached_pid): Likewise.
6380 (detach_or_kill_for_exit): Update.
6381 (process_serial_event): Likewise.
6382 * linux-arm-low.c (arm_new_fork): Likewise.
6384 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6386 * dll.h: Include <list>.
6387 (struct dll_info): Add constructor.
6388 <entry>: Remove field.
6389 (all_dlls): Change type to std::list<dll_info>.
6390 * dll.c: Include <algorithm>.
6391 (get_dll): Remove macro.
6392 (all_dlls): Change type to std::list<dll_info *>.
6393 (free_one_dll): Remove.
6394 (match_dll): Likewise.
6395 (loaded_dll): Adjust.
6396 (unloaded_dll): Adjust to all_dlls type change, use
6397 std::find_if. Inline code from match_dll.
6398 (clear_dlls): Adjust to all_dlls type change.
6399 * server.c (emit_dll_description): Remove.
6400 (handle_qxfer_libraries): Adjust to all_dlls type change,
6401 integrate emit_dll_description's functionality.
6403 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6405 * linux-low.h (struct linux_target_ops) <delete_process>: New
6407 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
6408 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
6409 (struct linux_target_ops): Add delete_process callback.
6410 * linux-arm-low.c (arm_delete_process): New.
6411 (struct linux_target_ops): Add delete_process callback.
6412 * linux-bfin-low.c (struct linux_target_ops): Likewise.
6413 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
6414 * linux-m32r-low.c (struct linux_target_ops): Likewise.
6415 * linux-mips-low.c (mips_linux_delete_process): New.
6416 (struct linux_target_ops): Add delete_process callback.
6417 * linux-ppc-low.c (struct linux_target_ops): Likewise.
6418 * linux-s390-low.c (struct linux_target_ops): Likewise.
6419 * linux-sh-low.c (struct linux_target_ops): Likewise.
6420 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
6421 * linux-tile-low.c (struct linux_target_ops): Likewise.
6422 * linux-x86-low.c (x86_linux_delete_process): New.
6423 (struct linux_target_ops): Add delete_process callback.
6424 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
6426 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6428 * linux-aarch64-low.c (the_low_target): Add thread delete
6430 * linux-arm-low.c (arm_delete_thread): New function.
6431 (the_low_target): Add thread delete callback.
6432 * linux-bfin-low.c (the_low_target): Likewise.
6433 * linux-crisv32-low.c (the_low_target): Likewise.
6434 * linux-low.c (delete_lwp): Invoke delete_thread callback if
6436 * linux-low.h (struct linux_target_ops) <delete_thread>: New
6438 * linux-m32r-low.c (the_low_target): Add thread delete callback.
6439 * linux-mips-low.c (mips_linux_delete_thread): New function.
6440 (the_low_target): Add thread delete callback.
6441 * linux-ppc-low.c (the_low_target): Likewise.
6442 * linux-s390-low.c (the_low_target): Likewise.
6443 * linux-sh-low.c (the_low_target): Likewise.
6444 * linux-tic6x-low.c (the_low_target): Likewise.
6445 * linux-tile-low.c (the_low_target): Likewise.
6446 * linux-x86-low.c (the_low_target): Likewise.
6447 * linux-xtensa-low.c (the_low_target): Likewise.
6449 2017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
6451 * win32-low.c: Include "common-inferior.h".
6453 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6455 * inferiors.c (set_inferior_cwd): New function.
6456 * server.c (handle_general_set): Handle QSetWorkingDir packet.
6457 (handle_query): Inform that QSetWorkingDir is supported.
6458 * win32-low.c (create_process): Pass the inferior's cwd to
6461 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6463 * inferiors.c (current_inferior_cwd): New global variable.
6464 (get_inferior_cwd): New function.
6465 * inferiors.h (struct process_info) <cwd>: New field.
6467 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6469 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
6470 (OBS): Add gdb_tilde_expand.o.
6472 2017-10-02 Simon Marchi <simon.marchi@ericsson.com>
6474 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
6475 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
6477 2017-09-29 Pedro Alves <palves@redhat.com>
6479 * ax.c (gdb_parse_agent_expr): Constify.
6480 * ax.h (gdb_parse_agent_expr): Constify.
6481 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
6483 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
6484 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
6485 * remote-utils.h (read_ptid): Constify.
6486 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
6487 (process_point_options, process_serial_event): Constify.
6488 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
6489 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
6490 (cmd_qtbuffer): Constify.
6492 2017-09-29 Pedro Alves <palves@redhat.com>
6494 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
6497 2017-09-29 Pedro Alves <palves@redhat.com>
6499 * linux-low.c (handle_extended_wait): Pass parent thread instead
6500 of process to thread_db_notice_clone.
6501 * linux-low.h (thread_db_notice_clone): Replace parent process
6502 parameter with parent thread parameter.
6503 * thread-db.c (find_one_thread): Add comment.
6504 (thread_db_notice_clone): Replace parent process parameter with
6505 parent thread parameter. Temporarily switch to the parent thread.
6507 2017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
6509 * gdbthread.h: Include "common-gdbthread.h".
6510 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
6511 "if" when validating the ptid.
6512 * remote-utils.c: Include "gdbthread.h".
6513 (prepare_resume_reply): Use "switch_to_thread".
6514 * target.c (done_accessing_memory): Likewise.
6516 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6518 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
6519 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
6520 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
6521 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
6522 s390x-gs-linux64-ipa.o to ipa_obj.
6523 * linux-s390-low.c (HWCAP_S390_GS): New define.
6524 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
6526 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
6527 (s390_arch_setup): Check for guarded-storage support and choose
6529 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
6530 init_registers_s390x_gs_linux64.
6531 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
6533 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
6534 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
6536 2017-09-22 Simon Marchi <simon.marchi@ericsson.com>
6538 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
6540 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6542 * linux-low.h (struct lwp_info): Add new field, thread_handle.
6543 (thread_db_thread_handle): Declare.
6544 * linux-low.c (linux_target_ops): Initialize thread_handle.
6545 * server.c (handle_qxfer_threads_worker): Add support for
6547 * target.h (struct target_ops): Add new function pointer,
6549 (target_thread_handle): Define.
6550 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
6552 (thread_db_thread_handle): New function.
6554 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6556 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
6557 * linux-low.h (thread_db_notice_clone): Declare.
6558 * thread-db.c (thread_db_notice_clone): New function.
6560 2017-09-21 Pedro Alves <palves@redhat.com>
6562 * server.c (gdb_read_memory, handle_status, process_serial_event)
6563 (handle_serial_event, handle_target_event): Adjust to
6564 set_desired_thread prototype change.
6565 * target.c (set_desired_thread): Remove 'use_general' parameter
6567 * target.h (set_desired_thread): Remove 'use_general' parameter.
6569 2017-09-20 Tom Tromey <tom@tromey.com>
6571 * target.c (target_terminal::terminal_state): Define.
6572 (target_terminal::init): Rename from target_terminal_init.
6573 (target_terminal::inferior): Rename from
6574 target_terminal_inferior.
6575 (target_terminal::ours): Rename from target_terminal_ours.
6576 (target_terminal::ours_for_output, target_terminal::info): New.
6578 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6580 * server.c (accumulate_file_name_length): Remove.
6581 (emit_dll_description): Adjust to std::string change.
6582 (handle_qxfer_libraries): Use std::string to hold document.
6584 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6586 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
6587 return type of xml_escape_text.
6588 * server.c (emit_dll_description): Likewise.
6590 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6592 * server.c (captured_main): Accept argument for --selftest.
6593 Update run_tests call.
6594 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
6595 when registering selftests.
6597 2017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
6599 * regcache.c (get_thread_regcache): Update code to use "std::vector"
6600 instead of "VEC" for "target_desc.reg_defs".
6601 (regcache_cpy): Likewise.
6602 (registers_to_string): Likewise.
6603 (registers_from_string): Likewise.
6604 (find_regno): Likewise.
6605 (supply_regblock): Likewise.
6606 (regcache_raw_read_unsigned): Likewise.
6607 * tdesc.c (init_target_desc): Likewise.
6608 (tdesc_create_reg): Likewise.
6609 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
6610 (struct target_desc) <reg_defs>: Convert to "std::vector".
6611 (target_desc): Do not initialize "reg_defs".
6612 (~target_desc): Update code to use "std::vector" instead of "VEC"
6613 for "target_desc.reg_defs".
6614 (operator==): Likewise.
6616 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6618 * inferiors.h (thread_to_gdb_id): Remove.
6619 * inferiors.c (thread_to_gdb_id): Remove.
6620 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
6621 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
6622 lynx_store_registers, lynx_read_memory, lynx_write_memory):
6624 * nto-low.c (nto_fetch_registers, nto_store_registers,
6625 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
6627 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6629 * inferiors.h (gdb_id_to_thread_id): Remove.
6630 * inferiors.c (gdb_id_to_thread_id): Remove.
6631 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
6632 removal. Move pid declaration closer to where it's used.
6634 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6636 * server.c (handle_detach): New function.
6637 (process_serial_event): Move code out, call handle_detach.
6639 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6641 * server.c (require_running): Rename to ...
6642 (require_running_or_return): ... this ...
6643 (require_running_or_break): ... and this.
6644 (handle_query, process_serial_event): Adjust.
6646 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6648 * linux-low.c (linux_set_resume_request): Remove unused
6651 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6653 * server.c (first_thread_of): Remove.
6654 (process_serial_event): Replace usage of first_thread_of with
6655 find_any_thread_of_pid.
6656 * tracepoint.c (same_process_p): Remove.
6657 (gdb_agent_about_to_close): Replace usage of same_process_p with
6658 find_any_thread_of_pid.
6659 * linux-x86-low.c (same_process_callback): Remove.
6660 (x86_arch_setup_process_callback): Replace usage of
6661 same_process_callback with find_any_thread_of_pid.
6662 * thread-db.c (any_thread_of): Remove.
6663 (switch_to_process): Replace usage of any_thread_of with
6664 find_any_thread_of_pid.
6665 * inferiors.c (thread_pid_matches_callback): Remove.
6666 (find_thread_process): Adjust to use find_any_thread_of_pid.
6668 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6670 * regcache.c (get_thread_regcache): Guard calls to "memset"
6673 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6675 * linux-low.c (handle_extended_wait): Use
6676 "allocate_target_description" instead of "XNEW".
6677 * linux-x86-low.c (initialize_low_arch): Likewise.
6679 2017-09-05 Yao Qi <yao.qi@linaro.org>
6681 * configure.srv (srv_i386_regobj): Remove.
6682 (srv_amd64_regobj): Remove.
6683 (srv_regobj): Set it to "" for x86 non-linux targets.
6684 * linux-x86-tdesc.c (i386_linux_read_description):
6685 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
6686 (init_registers_i386): Remove the declaration.
6687 (tdesc_i386): Remove the declaration.
6688 (lynx_i386_arch_setup): Call i386_create_target_description.
6689 * nto-x86-low.c: Likewise.
6690 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
6691 [!__x86_64__]: include arch/i386.h.
6692 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
6694 2017-09-05 Yao Qi <yao.qi@linaro.org>
6696 * configure.srv (srv_amd64_linux_xmlfiles): Remove
6697 i386/amd64-XXX-linux from it.
6699 2017-09-05 Yao Qi <yao.qi@linaro.org>
6701 * configure.srv: Empty srv_amd64_linux_regobj if $development is
6703 (ipa_amd64_linux_regobj): Remove.
6704 (ipa_x32_linux_regobj): Remove.
6706 2017-09-05 Yao Qi <yao.qi@linaro.org>
6708 * Makefile.in (arch-amd64.o): New rule.
6709 * configure.srv: Append arch-amd64.o.
6710 * linux-amd64-ipa.c: Include common/x86-xstate.h.
6711 (get_ipa_tdesc): Call amd64_linux_read_description.
6712 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
6713 and init_registers_amd64_XXX.
6714 * linux-x86-low.c (x86_linux_read_description): Call
6715 amd64_linux_read_description.
6716 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
6717 (initialize_low_arch): Don't call init_registers_x32_XXX and
6718 init_registers_amd64_XXX.
6719 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
6720 and tdesc_amd64_XXX.
6721 [__x86_64__] (amd64_tdesc_test): New function.
6722 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
6723 and init_registers_amd64_XXX.
6724 * linux-x86-tdesc.c: Include arch/amd64.h.
6725 (xcr0_to_tdesc_idx): New function.
6726 (i386_linux_read_description): New function.
6727 (amd64_get_ipa_tdesc_idx): New function.
6728 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
6729 (amd64_get_ipa_tdesc): Declare.
6731 2017-09-05 Yao Qi <yao.qi@linaro.org>
6733 * configure.srv (srv_i386_linux_xmlfiles): Remove
6734 i386/i386-XXX-linux.xml from it.
6736 2017-09-05 Yao Qi <yao.qi@linaro.org>
6738 * configure.srv: Set srv_i386_linux_regobj empty if $development
6740 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
6741 initialize_low_tdesc.
6742 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
6743 with #if initialize_low_tdesc.
6744 * linux-x86-tdesc-selftest.c: New file.
6745 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
6747 2017-09-05 Yao Qi <yao.qi@linaro.org>
6749 * Makefile.in (arch-i386.o): New rule.
6750 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
6751 (x86_64-*-linux*): Likewise.
6752 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
6753 include arch/i386.h.
6754 (i386_linux_read_description): Remove code and call
6755 i386_create_target_description.
6756 * tdesc.c (allocate_target_description): New function.
6757 * tdesc.h (set_tdesc_architecture): Remove declaration.
6758 (set_tdesc_osabi): Likewise.
6760 2017-09-05 Yao Qi <yao.qi@linaro.org>
6762 * linux-x86-tdesc.c: Don't include <inttypes.h>.
6763 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
6764 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
6766 * server.c (get_features_xml): Call tdesc_get_features_xml.
6767 * tdesc.c (set_tdesc_architecture): New function.
6768 (set_tdesc_osabi): New function.
6769 (tdesc_get_features_xml): New function.
6770 (tdesc_create_feature): Add an argument.
6771 * tdesc.h (struct target_desc) <features>: New field.
6772 <arch, osabi>: New field.
6773 (~target_desc): xfree features, arch, and osabi.
6774 (target_desc::oerator==): Don't compare .xmltarget.
6775 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
6776 (set_tdesc_osabi): Likewise.
6777 (tdesc_get_features_xml): Likewise.
6779 2017-09-05 Yao Qi <yao.qi@linaro.org>
6781 * linux-x86-tdesc.c: Include selftest.h.
6782 (i386_tdesc_test): New function.
6783 (initialize_low_tdesc): Call selftests::register_test.
6784 * tdesc.h: Include regdef.h.
6785 (target_desc): Override operator == and !=.
6787 2017-09-05 Yao Qi <yao.qi@linaro.org>
6789 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
6790 (ipa_obj): Likewise.
6791 * linux-i386-ipa.c: Include common/x86-xstate.h
6792 (get_ipa_tdesc): Call i386_linux_read_description.
6793 (initialize_low_tracepoint): Don't call init_registers_XXX
6794 functions, call initialize_low_tdesc instead.
6795 * linux-x86-low.c (x86_linux_read_description): Call
6796 i386_linux_read_description.
6797 (initialize_low_arch): Don't call init_registers_i386_XXX
6798 functions, call initialize_low_tdesc.
6799 * linux-x86-tdesc.c: New file.
6800 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
6801 (i386_get_ipa_tdesc_idx): Declare.
6802 (i386_get_ipa_tdesc): Declare.
6803 (initialize_low_tdesc): Declare.
6805 2017-09-05 Yao Qi <yao.qi@linaro.org>
6807 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
6810 2017-09-05 Yao Qi <yao.qi@linaro.org>
6812 * Makefile.in (IPA_OBJS): Add vec-ipa.o
6813 * regcache.c (get_thread_regcache): Use VEC_length.
6814 (init_register_cache): Likewise.
6815 (regcache_cpy): Likewise.
6816 (registers_to_string): Iterate reg_defs via VEC_iterate.
6817 (find_regno): Likewise.
6818 (find_register_by_number): Use VEC_index.
6819 (register_size): Call find_register_by_number.
6820 (register_data): Call find_register_by_number.
6821 (supply_regblock): Use VEC_length.
6822 (regcache_raw_read_unsigned): Likewise.
6823 * tdesc.c (init_target_desc): Iterate reg_defs via
6825 (default_description): Update initializer.
6826 (copy_target_description): Don't update field num_registers.
6827 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
6828 <num_registers>: Remove.
6830 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
6832 * Makefile.in (.SECONDARY): Define target.
6834 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
6836 * linux-low.c (linux_wait_1): Adjust.
6837 * server.c (queue_stop_reply_callback): Adjust.
6839 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
6841 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
6842 QEnvironmentUnset and QEnvironmentReset packets.
6843 (handle_query): Inform remote that QEnvironmentHexEncoded,
6844 QEnvironmentUnset and QEnvironmentReset are supported.
6846 2017-08-25 Simon Marchi <simon.marchi@ericsson.com>
6848 * inferiors.h (inferior_target_data): Rename to ...
6849 (thread_target_data): ... this.
6850 (inferior_regcache_data): Rename to ...
6851 (thread_regcache_data): ... this.
6852 (set_inferior_regcache_data): Rename to ...
6853 (set_thread_regcache_data): ... this.
6854 * inferiors.c (inferior_target_data): Rename to ...
6855 (thread_target_data): ... this.
6856 (inferior_regcache_data): Rename to ...
6857 (thread_regcache_data): ... this.
6858 (set_inferior_regcache_data): Rename to ...
6859 (set_thread_regcache_data): ... this.
6860 (free_one_thread): Update.
6861 * linux-low.h (get_thread_lwp): Update.
6862 * regcache.c (get_thread_regcache): Update.
6863 (regcache_invalidate_thread): Update.
6864 (free_register_cache_thread): Update.
6865 * win32-i386-low.c (update_debug_registers_callback): Update.
6866 (win32_get_current_dr): Update.
6867 * win32-low.c (thread_rec): Update.
6868 (delete_thread_info): Update.
6869 (continue_one_thread): Update.
6870 (suspend_one_thread): Update.
6872 2017-08-24 Simon Marchi <simon.marchi@ericsson.com>
6874 * inferiors.c (set_inferior_target_data): Remove.
6875 * inferiors.h (set_inferior_target_data): Remove.
6877 2017-08-18 Yao Qi <yao.qi@linaro.org>
6879 * Makefile.in (OBS): Add selftest.o.
6880 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
6881 * configure, config.in: Re-generated.
6882 * server.c: Include common/sefltest.h.
6883 (captured_main): Handle option --selftest.
6885 2017-08-09 Yao Qi <yao.qi@linaro.org>
6887 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
6888 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
6889 i386-avx-mpx.o and i386-mmx.o.
6890 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
6891 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
6892 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
6893 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
6894 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
6895 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
6896 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
6897 i386/amd64-avx-mpx.xml.
6899 2017-08-09 Yao Qi <yao.qi@linaro.org>
6901 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
6902 and x32-avx-avx512.o.
6903 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
6904 i386/x32-avx-avx512.xml.
6906 2017-07-26 Simon Marchi <simon.marchi@ericsson.com>
6908 * tracepoint.h (enum class fast_tpoint_collect_result): New
6910 (fast_tracepoint_collecting): Change return type to
6911 fast_tpoint_collect_result.
6912 * tracepoint.c (fast_tracepoint_collecting): Likewise.
6913 * linux-low.h: Include tracepoint.h.
6914 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
6915 fast_tpoint_collect_result.
6916 * linux-low.c (handle_tracepoints): Adjust.
6917 (linux_fast_tracepoint_collecting): Change return type to
6918 fast_tpoint_collect_result.
6919 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
6920 linux_wait_1, stuck_in_jump_pad_callback,
6921 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
6922 proceed_one_lwp): Adjust to type change.
6924 2017-07-10 Yao Qi <yao.qi@linaro.org>
6926 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
6928 2017-06-29 Yao Qi <yao.qi@linaro.org>
6930 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
6932 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
6934 2017-06-20 Simon Marchi <simon.marchi@ericsson.com>
6936 * Makefile.in (IPA_OBJS): Sort and format one item per line.
6938 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
6940 * linux-low.c (linux_create_inferior): Adjust code to access the
6941 environment information via 'gdb_environ' class.
6942 * lynx-low.c (lynx_create_inferior): Likewise.
6943 * server.c (our_environ): Make it an instance of 'gdb_environ'.
6944 (get_environ): Return a pointer to 'our_environ'.
6945 (captured_main): Initialize 'our_environ'.
6946 * server.h (get_environ): Adjust prototype.
6947 * spu-low.c (spu_create_inferior): Adjust code to access the
6948 environment information via 'gdb_environ' class.
6950 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6952 * linux-low.c (linux_read_memory, linux_write_memory): Remove
6953 usage of "register" keyword.
6955 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6957 * configure: Re-generate.
6959 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6961 * configure: Re-generate.
6963 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6965 * Makefile.in (COMPILE.pre): Add "-x c++".
6967 2017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
6969 * fork-child.c: Conditionally include <signal.h>.
6971 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6973 * server.c (handle_general_set): Handle new packet
6974 "QStartupWithShell".
6975 (handle_query): Add "QStartupWithShell" to the list of supported
6977 (gdbserver_usage): Add help text explaining the
6978 new "--startup-with-shell" and "--no-startup-with-shell" CLI
6980 (captured_main): Recognize and act upon the presence of the new
6983 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6984 Pedro Alves <palves@redhat.com>
6986 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
6987 * configure: Regenerate.
6988 * configure.srv (srv_linux_obj): Add "fork-child.o" and
6990 (i[34567]86-*-lynxos*): Likewise.
6991 (spu*-*-*): Likewise.
6992 * fork-child.c: New file.
6993 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
6995 (linux_ptrace_fun): New function.
6996 (linux_create_inferior): Adjust function prototype to reflect
6997 change on "target.h". Adjust function code to use
6999 (linux_request_interrupt): Delete "signal_pid".
7000 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7001 (lynx_ptrace_fun): New function.
7002 (lynx_create_inferior): Adjust function prototype to reflect
7003 change on "target.h". Adjust function code to use
7005 * nto-low.c (nto_create_inferior): Adjust function prototype and
7006 code to reflect change on "target.h". Update comments.
7007 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
7008 "common-terminal.h" and "environ.h".
7009 (terminal_fd): Moved to fork-child.c.
7010 (old_foreground_pgrp): Likewise.
7011 (restore_old_foreground_pgrp): Likewise.
7012 (last_status): Make it global.
7013 (last_ptid): Likewise.
7014 (our_environ): New variable.
7015 (startup_with_shell): Likewise.
7016 (program_name): Likewise.
7017 (program_argv): Rename to...
7018 (program_args): ...this.
7019 (wrapper_argv): New variable.
7020 (start_inferior): Delete function.
7021 (get_exec_wrapper): New function.
7022 (get_exec_file): Likewise.
7023 (get_environ): Likewise.
7024 (prefork_hook): Likewise.
7025 (post_fork_inferior): Likewise.
7026 (postfork_hook): Likewise.
7027 (postfork_child_hook): Likewise.
7028 (handle_v_run): Update code to deal with arguments coming from the
7029 remote host. Update calls from "start_inferior" to
7031 (captured_main): Likewise. Initialize environment variable. Call
7033 * server.h (post_fork_inferior): New prototype.
7034 (get_environ): Likewise.
7035 (last_status): Declare.
7036 (last_ptid): Likewise.
7037 (signal_pid): Likewise.
7038 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7039 (spu_ptrace_fun): New function.
7040 (spu_create_inferior): Adjust function prototype to reflect change
7041 on "target.h". Adjust function code to use "fork_inferior".
7042 * target.c (target_terminal_init): New function.
7043 (target_terminal_inferior): Likewise.
7044 (target_terminal_ours): Likewise.
7045 * target.h: Include <vector>.
7046 (struct target_ops) <create_inferior>: Update prototype.
7047 (create_inferior): Update macro.
7048 * utils.c (gdb_flush_out_err): New function.
7049 * win32-low.c (win32_create_inferior): Adjust function prototype
7050 and code to reflect change on "target.h".
7052 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7054 * inferiors.c (switch_to_thread): New function.
7056 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7058 * Makefile.in (SFILE): Add "common/job-control.c".
7059 (OBS): Add "job-control.o".
7061 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7063 * Makefile: Remove "@host_makefile_frag@".
7065 2017-05-05 Pedro Alves <palves@redhat.com>
7067 * configure: Regenerate.
7069 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7071 * configure: Regenerate.
7073 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7075 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
7076 software_single_step change of return type to
7077 std::vector<CORE_ADDR>.
7078 * linux-low.c (install_software_single_step_breakpoints):
7080 * linux-low.h (install_software_single_step_breakpoints):
7083 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7085 * remote-utils.c: Include "gdb_termios.h" instead of
7087 * terminal.h: Delete file.
7089 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7091 * server.c: Include <vector>.
7092 <program_argv, wrapper_argv>: Convert to std::vector.
7093 (start_inferior): Rewrite function to use C++.
7094 (handle_v_run): Likewise. Update code that calculates the argv
7095 based on the vRun packet; use C++.
7096 (captured_main): Likewise.
7098 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7100 * server.c (handle_v_cont): Initialize thread_resume::thread
7103 2017-04-05 Pedro Alves <palves@redhat.com>
7105 * configure: Regenerate.
7107 2017-04-05 Pedro Alves <palves@redhat.com>
7109 * gdbreplay.c (sync_error): Constify.
7110 * linux-x86-low.c (push_opcode): Constify.
7112 2017-04-05 Pedro Alves <palves@redhat.com>
7114 * win32-low.c (get_child_debug_event)
7115 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
7116 Report TARGET_WAITKIND_SPURIOUS instead.
7118 2017-04-05 Pedro Alves <palves@redhat.com>
7120 * remote-utils.c (remote_prepare, remote_open): Constify.
7121 * remote-utils.h (remote_prepare, remote_open): Constify.
7122 * server.c (captured_main): Constify 'port' handling.
7124 2017-04-04 Simon Marchi <simon.marchi@ericsson.com>
7126 * Makefile.in (clean): Clear .deps.
7128 2017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
7130 * .gitignore: Remove generated files, replace with wildcard.
7131 * (clean): Replace removal of generated files with wildcard.
7132 (version.c): Replace with...
7133 (version-generated.c): ...this.
7134 (xml-builtin.c): Replace with...
7135 (xml-builtin-generated.c): ...this.
7136 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
7137 (%.c: *regformats*): Replace with...
7138 (%-generated.c: *regformats*): ...this.
7140 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7142 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
7143 (xtensa_fill_gregset): Call collect_register_by_name for
7145 (xtensa_store_gregset): Call supply_register_by_name for
7148 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7150 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
7151 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
7152 (xtensa_store_gregset): Call supply_register for all registers in
7153 a0_regnum..a0_regnum + C0_NREGS range.
7155 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7157 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
7158 (ax-ipa.o: ax.c): Remove.
7159 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
7160 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
7161 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
7162 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
7163 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
7165 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7167 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
7168 (print-utils-ipa.o: ../common/print-utils.c): Remove.
7169 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
7170 (errors-ipa.o: ../common/errors.c): Remove.
7171 (format-ipa.o: ../common/format.c): Remove.
7172 (common-utils-ipa.o: ../common/common-utils.c): Remove.
7174 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7176 * Makefile.in (%-ipa.o: %.c): New rule.
7177 (tracepoint-ipa.o: tracepoint.c): Remove.
7178 (utils-ipa.o: utils.c): Remove.
7179 (remote-utils-ipa.o: remote-utils.c): Remove.
7180 (regcache-ipa.o: regcache.c): Remove.
7181 (i386-linux-ipa.o: i386-linux.c): Remove.
7182 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
7183 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
7184 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
7185 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
7186 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
7187 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
7188 (amd64-linux-ipa.o: amd64-linux.c): Remove.
7189 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
7190 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
7191 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
7192 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
7193 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
7194 (aarch64-ipa.o: aarch64.c): Remove.
7195 (s390-linux32-ipa.o: s390-linux32.c): Remove.
7196 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
7197 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
7198 (s390-linux64-ipa.o: s390-linux64.c): Remove.
7199 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
7200 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
7201 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
7202 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
7203 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
7204 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
7205 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
7206 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
7207 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
7208 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
7209 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
7210 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
7211 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
7212 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
7213 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
7214 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
7215 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
7216 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
7217 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
7218 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
7219 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
7220 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
7221 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
7222 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
7223 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
7224 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
7225 (tdesc-ipa.o: tdesc.c): Remove.
7226 (x32-linux-ipa.o: x32-linux.c): Remove.
7227 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
7228 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
7230 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7232 * Makefile.in (%.o: ../arch/%.c): New rule.
7233 (arm.o: ../arch/arm.c): Remove.
7234 (arm-linux.o: ../arch/arm-linux.c): Remove.
7235 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
7236 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
7238 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7240 * Makefile.in (%.o: ../nat/%.c): New rule.
7241 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
7242 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
7243 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
7244 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
7245 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
7246 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
7247 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
7248 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
7249 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
7250 (linux-personality.o: ../nat/linux-personality.c): Remove.
7251 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
7252 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
7253 (x86-linux.o: ../nat/x86-linux.c): Remove.
7254 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
7255 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
7257 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7259 * Makefile.in (%.o: ../common/%.c): New rule.
7260 (signals.o: ../common/signals.c): Remove.
7261 (print-utils.o: ../common/print-utils.c): Remove.
7262 (rsp-low.o: ../common/rsp-low.c): Remove.
7263 (common-utils.o: ../common/common-utils.c): Remove.
7264 (posix-strerror.o: ../common/posix-strerror.c): Remove.
7265 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
7266 (vec.o: ../common/vec.c): Remove.
7267 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
7268 (xml-utils.o: ../common/xml-utils.c): Remove.
7269 (ptid.o: ../common/ptid.c): Remove.
7270 (buffer.o: ../common/buffer.c): Remove.
7271 (format.o: ../common/format.c): Remove.
7272 (filestuff.o: ../common/filestuff.c): Remove.
7273 (agent.o: ../common/agent.c): Remove.
7274 (errors.o: ../common/errors.c): Remove.
7275 (environ.o: ../common/environ.c): Remove.
7276 (common-debug.o: ../common/common-debug.c): Remove.
7277 (cleanups.o: ../common/cleanups.c): Remove.
7278 (common-exceptions.o: ../common/common-exceptions.c): Remove.
7279 (fileio.o: ../common/fileio.c): Remove.
7280 (common-regcache.o: ../common/common-regcache.c): Remove.
7281 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
7282 (new-op.o: ../common/new-op.c): Remove.
7283 (btrace-common.o: ../common/btrace-common.c): Remove.
7285 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7287 * Makefile.in (%.o: ../target/%.c): New rule.
7288 (waitstatus.o: ../target/waitstatus.c): Remove.
7290 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7293 (%.c: ../regformats/%.dat,
7294 (%.c: ../regformats/arm/%.dat,
7295 (%.c: ../regformats/i386/%.dat,
7296 (%.c: ../regformats/rs6000/%.dat): New rules.
7297 (aarch64.c): Remove.
7298 (reg-arm.c): Remove.
7299 (arm-with-iwmmxt.c): Remove.
7300 (arm-with-vfpv2.c): Remove.
7301 (arm-with-vfpv3.c): Remove.
7302 (arm-with-neon.c): Remove.
7303 (reg-bfin.c): Remove.
7304 (reg-cris.c): Remove.
7305 (reg-crisv32.c): Remove.
7307 (i386-linux.c): Remove.
7308 (i386-avx.c): Remove.
7309 (i386-avx-linux.c): Remove.
7310 (i386-avx-avx512.c): Remove.
7311 (i386-avx-avx512-linux.c): Remove.
7312 (i386-mpx.c): Remove.
7313 (i386-mpx-linux.c): Remove.
7314 (i386-avx-mpx-avx512-pku.c): Remove.
7315 (i386-avx-mpx-avx512-pku-linux.c): Remove.
7316 (i386-avx-mpx.c): Remove.
7317 (i386-avx-mpx-linux.c): Remove.
7318 (i386-mmx.c): Remove.
7319 (i386-mmx-linux.c): Remove.
7320 (reg-ia64.c): Remove.
7321 (reg-m32r.c): Remove.
7322 (reg-m68k.c): Remove.
7324 (mips-linux.c): Remove.
7325 (mips-dsp-linux.c): Remove.
7326 (mips64-linux.c): Remove.
7327 (mips64-dsp-linux.c): Remove.
7328 (nios2-linux.c): Remove.
7329 (powerpc-32.c): Remove.
7330 (powerpc-32l.c): Remove.
7331 (powerpc-altivec32l.c): Remove.
7332 (powerpc-cell32l.c): Remove.
7333 (powerpc-vsx32l.c): Remove.
7334 (powerpc-isa205-32l.c): Remove.
7335 (powerpc-isa205-altivec32l.c): Remove.
7336 (powerpc-isa205-vsx32l.c): Remove.
7337 (powerpc-e500l.c): Remove.
7338 (powerpc-64l.c): Remove.
7339 (powerpc-altivec64l.c): Remove.
7340 (powerpc-cell64l.c): Remove.
7341 (powerpc-vsx64l.c): Remove.
7342 (powerpc-isa205-64l.c): Remove.
7343 (powerpc-isa205-altivec64l.c): Remove.
7344 (powerpc-isa205-vsx64l.c): Remove.
7345 (s390-linux32.c): Remove.
7346 (s390-linux32v1.c): Remove.
7347 (s390-linux32v2.c): Remove.
7348 (s390-linux64.c): Remove.
7349 (s390-linux64v1.c): Remove.
7350 (s390-linux64v2.c): Remove.
7351 (s390-te-linux64.c): Remove.
7352 (s390-vx-linux64.c): Remove.
7353 (s390-tevx-linux64.c): Remove.
7354 (s390x-linux64.c): Remove.
7355 (s390x-linux64v1.c): Remove.
7356 (s390x-linux64v2.c): Remove.
7357 (s390x-te-linux64.c): Remove.
7358 (s390x-vx-linux64.c): Remove.
7359 (s390x-tevx-linux64.c): Remove.
7360 (tic6x-c64xp-linux.c): Remove.
7361 (tic6x-c64x-linux.c): Remove.
7362 (tic6x-c62x-linux.c): Remove.
7364 (reg-sparc64.c): Remove.
7365 (reg-spu.c): Remove.
7367 (amd64-linux.c): Remove.
7368 (amd64-avx.c): Remove.
7369 (amd64-avx-linux.c): Remove.
7370 (amd64-avx-avx512.c): Remove.
7371 (amd64-avx-avx512-linux.c): Remove.
7372 (amd64-mpx.c): Remove.
7373 (amd64-mpx-linux.c): Remove.
7374 (amd64-avx-mpx-avx512-pku.c): Remove.
7375 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
7376 (amd64-avx-mpx.c): Remove.
7377 (amd64-avx-mpx-linux.c): Remove.
7379 (x32-linux.c): Remove.
7380 (x32-avx.c): Remove.
7381 (x32-avx-linux.c): Remove.
7382 (x32-avx-avx512.c): Remove.
7383 (x32-avx-avx512-linux.c): Remove.
7384 (reg-xtensa.c): Remove.
7385 (reg-tilegx.c): Remove.
7386 (reg-tilegx32.c): Remove.
7388 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
7390 * Makefile.in (SFILES): Add "common/environ.c".
7391 (OBJS): Add "common/environ.h".
7393 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7395 * configure.ac: Check if the fs_base and gs_base members of
7396 `struct user_regs_struct' exist.
7397 * config.in: Regenerated.
7398 * configure: Likewise.
7400 2017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
7402 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
7404 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
7405 (get_next_pcs_syscall_next_pc): Likewise.
7407 2016-12-23 Luis Machado <lgustavo@codesourcery.com>
7409 * win32-i386-low.c: Fix incorrect reference to a couple source files.
7410 * nto-x86-low.c: Likewise.
7412 2016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
7414 * Makefile.in: Include disable-implicit-rules.mk.
7416 2016-11-23 Pedro Alves <palves@redhat.com>
7418 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
7419 (debug_vprintf): Use std::chrono::steady_clock instead of
7420 gettimeofday. Use '.' instead of ':'.
7421 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
7422 (get_timestamp): Use std::chrono::steady_clock instead of
7425 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7427 * Makefile.in: Fix whitespace formatting.
7429 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7431 * Makefile.in (SFILES, OBS): Flatten list and order
7434 2016-11-23 Pedro Alves <palves@redhat.com>
7436 * event-loop.c (handle_file_event): Use warning.
7437 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
7438 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
7441 2016-11-23 Pedro Alves <palves@redhat.com>
7443 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
7445 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
7446 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
7447 debug_printf and debug_flush for debug output.
7448 * server.c (handle_general_set): Likewise.
7449 * thread-db.c (try_thread_db_load): Use debug_printf for debug
7452 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7454 * Makefile.in (.c.o): Replace rule with ...
7455 (%.o: %.c): ... this one.
7457 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7459 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
7460 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
7462 * configure.ac: Remove checks for the make program.
7463 * configure: Re-generate.
7465 2016-10-28 Pedro Alves <palves@redhat.com>
7467 * Makefile.in (CXX_DIALECT): Get from configure.
7468 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
7469 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
7470 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
7471 * config.in: Regenerate.
7472 * configure: Regenerate.
7474 2016-10-27 Yao Qi <yao.qi@linaro.org>
7476 * linux-low.c (linux_supports_range_stepping): Return true if
7477 can_software_single_step return true.
7479 2016-10-27 Yao Qi <yao.qi@linaro.org>
7481 * inferiors.c (find_inferior_in_random): New function.
7482 * inferiors.h (find_inferior_in_random): Declare.
7483 * linux-low.c (linux_wait_for_event_filtered): Call
7484 find_inferior_in_random instead of find_inferior.
7486 2016-10-27 Yao Qi <yao.qi@linaro.org>
7488 * linux-low.c (linux_wait_1): If single-step breakpoints are
7489 inserted, remove them.
7491 2016-10-26 Pedro Alves <palves@redhat.com>
7493 * linux-low.c (handle_extended_wait): Link parent/child fork
7495 (linux_wait_1): Unlink them.
7496 (linux_set_resume_request): Ignore resume requests for
7497 already-resumed and unhandled fork child threads.
7498 * linux-low.h (struct lwp_info) <fork_relative>: New field.
7499 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
7501 (handle_v_requests) <vCont>: Don't call require_running.
7502 * server.h (in_queued_stop_replies): New declaration.
7504 2016-10-24 Yao Qi <yao.qi@linaro.org>
7507 * linux-aarch64-low.c (append_insns): Cast the return value to
7510 2016-10-10 Yao Qi <yao.qi@linaro.org>
7512 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
7514 2016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
7516 * target.c (target_supports_multi_process): New function, moved
7518 * target.h (target_supports_multi_process): ... here. Remove
7521 2016-10-05 Tom Tromey <tom@tromey.com>
7524 * tracepoint.c (handle_tracepoint_bkpts): Check
7525 ipa_error_tracepoint, not ipa_stopping_tracepoint.
7527 2016-10-05 Yao Qi <yao.qi@linaro.org>
7529 * configure.srv: Update the path of arm-*.xml files.
7531 2016-10-05 Terry Guo <terry.guo@arm.com>
7532 Yao Qi <yao.qi@linaro.org>
7534 * Makefile.in: Adjust the path of rules.
7535 * configure.srv: Update the path of xml files.
7536 * regformats/arm-with-iwmmxt.dat: Regenerated.
7537 * regformats/arm-with-neon.dat: Likewise.
7538 * regformats/arm-with-vfpv2.dat: Likewise.
7539 * regformats/arm-with-vfpv3.dat Likewise.
7541 2016-09-30 Yao Qi <yao.qi@linaro.org>
7544 * target.c (target_stop_and_wait): Don't call
7545 target_continue_no_signal, use resume_stop instead.
7547 2016-09-26 Yao Qi <yao.qi@linaro.org>
7549 * linux-low.c (linux_wait_1): Call debug_exit.
7551 2016-09-23 Pedro Alves <palves@redhat.com>
7553 * Makefile.in (SFILES): Add common/new-op.c.
7554 (OBS): Add common/new-op.o.
7555 (new-op.o): New rule.
7557 2016-09-21 Simon Marchi <simon.marchi@ericsson.com>
7559 * .gitinore: Ignore more files.
7561 2016-09-21 Yao Qi <yao.qi@linaro.org>
7563 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
7566 2016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
7568 * server.c (start_inferior): Call target_mourn_inferior instead of
7569 mourn_inferior; pass ptid_t argument to it.
7571 (handle_target_event): Likewise.
7572 * target.c (target_mourn_inferior): New function.
7573 * target.h (mourn_inferior): Delete macro.
7575 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
7577 * linux-low.c (lwp_is_stepping): New function.
7579 2016-09-06 Carl Love <cel@us.ibm.com>
7581 * server.c (start_inferior): Fixed comment, requested comment change
7582 didn't get updated correctly. Removed reference to ptrace () call as
7583 it is only true on Linux systems.
7585 2016-09-06 Carl Love <cel@us.ibm.com>
7587 * server.c (start_inferior): Do not call
7588 function target_post_create_inferior () if the
7589 inferior process has already exited.
7591 2016-09-05 Pedro Alves <palves@redhat.com>
7593 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
7594 (COMPILE.pre, CC_LD): Use CXX directly.
7595 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
7596 * acinclude.m4: Don't include build-with-cxx.m4.
7597 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
7598 * configure: Regenerate.
7600 2016-09-02 Akash Trehan <akash.trehan123@gmail.com>
7603 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
7604 call writing data to own_buf.
7606 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7608 * target.c (mywait): Call target_wait instead of
7610 (target_wait): New function.
7612 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7614 * server.c (start_inferior): New variable 'ptid'. Replace calls
7615 to the_target->resume by target_continue{,_no_signal}, depending
7617 * target.c (target_stop_and_wait): Call target_continue_no_signal
7618 instead of the_target->resume.
7619 (target_continue): New function.
7621 2016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
7623 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
7625 2016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7628 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
7630 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
7631 * linux-arm-low.c (ps_get_thread_area): Likewise.
7632 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
7633 * linux-m68k-low.c (ps_get_thread_area): Likewise.
7634 * linux-mips-low.c (ps_get_thread_area): Likewise.
7635 * linux-nios2-low.c (ps_get_thread_area): Likewise.
7636 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
7637 * linux-x86-low.c (ps_get_thread_area): Likewise.
7638 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
7640 2016-08-19 Pedro Alves <palves@redhat.com>
7642 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
7644 2016-08-19 Pedro Alves <palves@redhat.com>
7646 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
7647 comment. Use memcpy instead of casting through unsigned long.
7649 2016-08-19 Pedro Alves <palves@redhat.com>
7651 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
7652 allocating around 0x80000000.
7654 2016-08-19 Pedro Alves <palves@redhat.com>
7657 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
7658 (x32-avx512-linux-ipa.o): New rules.
7659 * configure.ac (x86_64-*-linux*): New x32 check.
7660 * configure.srv (ipa_x32_linux_regobj): New.
7661 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
7662 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
7664 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
7666 * configure: Regenerate.
7668 2016-08-09 Pedro Alves <palves@redhat.com>
7671 * Makefile.in (OBS): Add signals-state-save-restore.o.
7672 (signals-state-save-restore.o): New rule.
7673 * config.in: Regenerate.
7674 * configure: Regenerate.
7675 * linux-low.c: Include "signals-state-save-restore.h".
7676 (linux_create_inferior): Call
7677 restore_original_signals_state.
7678 * server.c: Include "dispositions-save-restore.h".
7679 (captured_main): Call save_original_signals_state.
7681 2016-08-05 Pedro Alves <palves@redhat.com>
7683 * configure: Regenerate.
7685 2016-08-04 Yao Qi <yao.qi@linaro.org>
7687 * linux-low.c (regsets_fetch_inferior_registers): Check
7688 errno is ESRCH or not.
7690 2016-08-02 Yao Qi <yao.qi@linaro.org>
7692 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
7693 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
7694 (thread_db_load_search): Update.
7695 (try_thread_db_load_1): Don't look for td_ta_event_addr,
7696 td_ta_set_event and td_ta_event_getmsg.
7698 2016-07-26 Pedro Alves <palves@redhat.com>
7701 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
7702 of unsigned long for 64-bit registers and use uint32_t instead of
7703 unsigned int for 32-bit registers.
7705 2016-07-26 Pedro Alves <palves@redhat.com>
7707 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
7710 2016-07-21 Tom Tromey <tom@tromey.com>
7712 * configure: Rebuild.
7714 2016-07-21 Yao Qi <yao.qi@linaro.org>
7716 * mem-break.c (find_gdb_breakpoint): Cast bp to
7717 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
7719 2016-07-21 Yao Qi <yao.qi@linaro.org>
7721 * server.c (handle_v_requests): Support s and S actions
7722 if target_supports_software_single_step return true.
7724 2016-07-21 Yao Qi <yao.qi@linaro.org>
7726 * linux-low.c (resume_stopped_resumed_lwps): If resume request
7727 is resume_step, call maybe_hw_step.
7728 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
7730 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
7732 (proceed_one_lwp): If resume request is resume_step, install
7733 reinsert breakpoints and call maybe_hw_step.
7735 2016-07-21 Yao Qi <yao.qi@linaro.org>
7737 * linux-low.c (proceed_one_lwp): Declare.
7738 (linux_resume_one_thread): Remove local variable 'step'.
7739 Lift code enqueue signal. Call proceed_one_lwp instead of
7740 linux_resume_one_lwp.
7742 2016-07-21 Yao Qi <yao.qi@linaro.org>
7744 * linux-low.c (linux_resume_one_thread): Call
7745 enqueue_pending_signal.
7747 2016-07-21 Yao Qi <yao.qi@linaro.org>
7749 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
7750 * inferiors.c (do_restore_current_thread_cleanup): New function.
7751 (make_cleanup_restore_current_thread): Likewise.
7752 * linux-low.c (install_software_single_step_breakpoints): Call
7753 make_cleanup_restore_current_thread. Switch current_thread to
7756 2016-07-21 Yao Qi <yao.qi@linaro.org>
7758 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
7759 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
7760 (clone_one_breakpoint): Likewise.
7761 (delete_reinsert_breakpoints): Change parameter to thread.
7763 (has_reinsert_breakpoints): Likewise.
7764 (uninsert_reinsert_breakpoints): Likewise.
7765 (reinsert_reinsert_breakpoints): Likewise.
7766 * mem-break.h (set_reinsert_breakpoint): Update declaration.
7767 (delete_reinsert_breakpoints): Likewise.
7768 (reinsert_reinsert_breakpoints): Likewise.
7769 (uninsert_reinsert_breakpoints): Likewise.
7770 (has_reinsert_breakpoints): Likewise.
7772 2016-07-21 Yao Qi <yao.qi@linaro.org>
7774 * inferiors.c (get_thread_process): Make parameter const.
7775 * inferiors.h (get_thread_process): Update declaration.
7776 * mem-break.c (clone_all_breakpoints): Remove all parameters.
7777 Add new parameters child_thread and parent_thread. Callers
7779 * mem-break.h (clone_all_breakpoints): Update declaration.
7781 2016-07-21 Yao Qi <yao.qi@linaro.org>
7783 * mem-break.c (struct breakpoint) <cond_list>: Remove.
7784 <command_list, handler>: Remove.
7785 (struct gdb_breakpoint): New.
7786 (struct other_breakpoint): New.
7787 (struct reinsert_breakpoint): New.
7788 (is_gdb_breakpoint): New function.
7789 (any_persistent_commands): Update command_list if
7790 is_gdb_breakpoint returns true.
7791 (set_breakpoint): Create breakpoints according to their types.
7792 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
7793 (set_gdb_breakpoint_1): Likewise.
7794 (set_gdb_breakpoint): Likewise.
7795 (clear_breakpoint_conditions): Change parameter type to
7796 'struct gdb_breakpoint *'.
7797 (clear_breakpoint_commands): Likewise.
7798 (clear_breakpoint_conditions_and_commands): Likewise.
7799 (add_condition_to_breakpoint): Likewise.
7800 (add_breakpoint_condition): Likewise.
7801 (add_commands_to_breakpoint): Likewise.
7802 (check_breakpoints): Check other_breakpoint.
7803 (clone_one_breakpoint): Clone breakpopint according to its type.
7804 * mem-break.h (struct gdb_breakpoint): Declare.
7805 (set_gdb_breakpoint): Update declaration.
7806 (clear_breakpoint_conditions_and_commands): Likewise.
7807 (add_breakpoint_condition): Likewise.
7808 (add_breakpoint_commands): Likewise.
7809 * server.c (process_point_options): Change parameter type to
7810 'struct gdb_breakpoint *'.
7812 2016-07-21 Yao Qi <yao.qi@linaro.org>
7814 * mem-break.c (set_breakpoint_at): Rename it to ...
7815 (set_breakpoint_type_at): ... it.
7816 (set_breakpoint_at): Call set_breakpoint_type_at.
7817 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
7818 * mem-break.h (set_breakpoint_at): Update comments.
7820 2016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
7822 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
7824 (nios2_store_gregset): Likewise.
7826 2016-07-01 Pedro Alves <palves@redhat.com>
7827 Antoine Tremblay <antoine.tremblay@ericsson.com>
7829 * linux-low.c: Change interface to take the target lwp_info
7830 pointer directly and return void. Handle detaching from a zombie
7832 (linux_detach_lwp_callback): New function.
7833 (linux_detach): Detach from the leader thread after detaching from
7836 2016-06-28 Yao Qi <yao.qi@linaro.org>
7838 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
7839 for variable new_offset.
7840 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
7841 (aarch64_ftrace_insn_reloc_cb): Likewise.
7842 (aarch64_ftrace_insn_reloc_tb): Likewise.
7843 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
7844 PRIx64 instead of PRIx32.
7846 2016-06-28 Yao Qi <yao.qi@linaro.org>
7848 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
7849 (the_low_target): Install arm_get_syscall_trapinfo.
7851 2016-06-28 Yao Qi <yao.qi@linaro.org>
7853 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
7855 (the_low_target): Install aarch64_get_syscall_trapinfo.
7857 2016-06-28 Yao Qi <yao.qi@linaro.org>
7859 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
7861 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
7862 Remove parameter sysno.
7863 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
7866 2016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7868 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
7869 (s390_emit_ne_goto): Likewise.
7870 (s390_emit_lt_goto): Likewise.
7871 (s390_emit_le_goto): Likewise.
7872 (s390_emit_gt_goto): Likewise.
7873 (s390_emit_ge_goto): Likewise.
7874 (s390x_emit_eq_goto): Likewise.
7875 (s390x_emit_ne_goto): Likewise.
7876 (s390x_emit_lt_goto): Likewise.
7877 (s390x_emit_le_goto): Likewise.
7878 (s390x_emit_gt_goto): Likewise.
7879 (s390x_emit_ge_goto): Likewise.
7880 (s390_emit_ops_impl): Mark variable static.
7881 (s390x_emit_ops): Likewise.
7883 2016-06-17 Yao Qi <yao.qi@linaro.org>
7885 * linux-low.c (handle_extended_wait): Call
7886 uninsert_reinsert_breakpoints for the parent process. Remove
7887 reinsert breakpoints from the child process. Reinsert them to
7888 the parent process when vfork is done.
7889 * mem-break.c (uninsert_reinsert_breakpoints): New function.
7890 (reinsert_reinsert_breakpoints): New function.
7891 * mem-break.h (uninsert_reinsert_breakpoints): Declare
7892 (reinsert_reinsert_breakpoints): Declare.
7894 2016-06-17 Yao Qi <yao.qi@linaro.org>
7896 * linux-low.c (handle_extended_wait): If the parent is doing
7897 step-over, remove the reinsert breakpoints from the forked child.
7899 2016-06-17 Yao Qi <yao.qi@linaro.org>
7901 * linux-low.c (unsuspend_all_lwps): Declare.
7902 (linux_low_filter_event): If thread exited, call finish_step_over.
7903 If step-over is finished, unsuspend other threads.
7905 2016-06-17 Yao Qi <yao.qi@linaro.org>
7907 * linux-low.c (linux_resume_one_lwp_throw): Assert
7908 has_reinsert_breakpoints returns false.
7909 * mem-break.c (delete_disabled_breakpoints): Assert
7910 bp type isn't reinsert_breakpoint.
7912 2016-06-17 Yao Qi <yao.qi@linaro.org>
7914 * linux-low.c (maybe_hw_step): New function.
7915 (linux_resume_one_lwp_throw): Call maybe_hw_step.
7916 (finish_step_over): Switch current_thread to lwp temporarily,
7917 and assert has_reinsert_breakpoints returns true.
7918 (proceed_one_lwp): Call maybe_hw_step.
7919 * mem-break.c (has_reinsert_breakpoints): New function.
7920 * mem-break.h (has_reinsert_breakpoints): Declare.
7922 2016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
7924 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
7926 2016-05-17 Yao Qi <yao.qi@linaro.org>
7928 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
7929 instead of find_inferior.
7931 2016-05-05 Yao Qi <yao.qi@linaro.org>
7933 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
7934 Initialize res to zero.
7936 2016-05-05 Yao Qi <yao.qi@linaro.org>
7938 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
7941 2016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7943 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
7944 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
7945 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
7947 2016-04-28 Par Olsson <par.olsson@windriver.com>
7948 Simon Marchi <simon.marchi@ericsson.com>
7950 * tracepoint.c (write_inferior_int8): New function.
7951 (cmd_qtenable_disable): Write enable flag using
7952 write_inferior_int8.
7954 2016-04-25 Yao Qi <yao.qi@linaro.org>
7956 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
7957 (need_step_over_p): Return zero if the LWP has pending signals
7958 can be delivered on software single step target.
7960 2016-04-25 Yao Qi <yao.qi@linaro.org>
7962 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
7963 return instead of error.
7965 2016-04-22 Yao Qi <yao.qi@linaro.org>
7967 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
7970 2016-04-22 Yao Qi <yao.qi@linaro.org>
7972 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
7973 signal when stepping over breakpoint with software single
7976 2016-04-21 Pedro Alves <palves@redhat.com>
7978 * linux-s390-low.c (s390_collect_ptrace_register)
7979 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
7981 (s390_check_regset): Use void * instead of gdb_byte *.
7983 2016-04-20 Pedro Alves <palves@redhat.com>
7985 * configure: Renegerate.
7987 2016-04-20 Yao Qi <yao.qi@linaro.org>
7989 * linux-aarch32-low.c: Include "arch/arm-linux.h".
7990 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
7992 (arm_store_gregset): Likewise.
7994 2016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
7996 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
7997 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
7998 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
7999 (amd64-avx-mpx-linux.c): New rules.
8000 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
8001 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
8002 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
8003 (srv_amd64_regobj): Add amd64-avx-mpx.o.
8004 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
8005 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
8006 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
8007 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
8008 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
8009 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
8010 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
8011 * linux-x86-low.c (x86_linux_read_description): Add case for
8012 X86_XSTATE_AVX_MPX_MASK.
8013 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
8014 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
8015 init_registers_i386_avx_mpx_linux.
8016 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8017 (initialize_low_tracepoint): Call
8018 init_registers_i386_avx_mpx_linux.
8019 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8020 (initialize_low_tracepoint): Call
8021 init_registers_amd64_avx_mpx_linux.
8022 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
8023 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
8024 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
8027 2016-04-18 Pedro Alves <palves@redhat.com>
8029 * configure: Regenerate.
8031 2016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
8033 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
8034 (aarch64_emit_sub): Likewise.
8036 2016-04-12 Pedro Alves <palves@redhat.com>
8038 * utils.c (prepare_to_throw_exception): Delete.
8040 2016-04-05 Simon Marchi <simon.marchi@ericsson.com>
8042 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
8044 2016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
8046 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
8048 2016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
8050 * linux-aarch64-ipa.c: Add <elf.h> include.
8051 * linux-ppc-ipa.c: Add <elf.h> include.
8052 * linux-s390-ipa.c: Add <elf.h> include.
8054 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8056 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
8057 (get_raw_reg_ptr): Likewise.
8058 (get_trace_state_variable_value_ptr): Likewise.
8059 (set_trace_state_variable_value_ptr): Likewise.
8060 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
8063 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
8064 Marcin Kościelnicki <koriakin@0x04.net>
8067 * linux-ppc-low.c (emit_insns): New function.
8068 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
8069 (ppc_emit_prologue): New function.
8070 (ppc_emit_epilogue): New function.
8071 (ppc_emit_add): New function.
8072 (ppc_emit_sub): New function.
8073 (ppc_emit_mul): New function.
8074 (ppc_emit_lsh): New function.
8075 (ppc_emit_rsh_signed): New function.
8076 (ppc_emit_rsh_unsigned): New function.
8077 (ppc_emit_ext): New function.
8078 (ppc_emit_zero_ext): New function.
8079 (ppc_emit_log_not): New function.
8080 (ppc_emit_bit_and): New function.
8081 (ppc_emit_bit_or): New function.
8082 (ppc_emit_bit_xor): New function.
8083 (ppc_emit_bit_not): New function.
8084 (ppc_emit_equal): New function.
8085 (ppc_emit_less_signed): New function.
8086 (ppc_emit_less_unsigned): New function.
8087 (ppc_emit_ref): New function.
8088 (ppc_emit_const): New function.
8089 (ppc_emit_reg): New function.
8090 (ppc_emit_pop): New function.
8091 (ppc_emit_stack_flush): New function.
8092 (ppc_emit_swap): New function.
8093 (ppc_emit_stack_adjust): New function.
8094 (ppc_emit_call): New function.
8095 (ppc_emit_int_call_1): New function.
8096 (ppc_emit_void_call_2): New function.
8097 (ppc_emit_if_goto): New function.
8098 (ppc_emit_goto): New function.
8099 (ppc_emit_eq_goto): New function.
8100 (ppc_emit_ne_goto): New function.
8101 (ppc_emit_lt_goto): New function.
8102 (ppc_emit_le_goto): New function.
8103 (ppc_emit_gt_goto): New function.
8104 (ppc_emit_ge_goto): New function.
8105 (ppc_write_goto_address): New function.
8106 (ppc_emit_ops_impl): New static variable.
8107 (ppc64v1_emit_prologue): New function.
8108 (ppc64v2_emit_prologue): New function.
8109 (ppc64_emit_epilogue): New function.
8110 (ppc64_emit_add): New function.
8111 (ppc64_emit_sub): New function.
8112 (ppc64_emit_mul): New function.
8113 (ppc64_emit_lsh): New function.
8114 (ppc64_emit_rsh_signed): New function.
8115 (ppc64_emit_rsh_unsigned): New function.
8116 (ppc64_emit_ext): New function.
8117 (ppc64_emit_zero_ext): New function.
8118 (ppc64_emit_log_not): New function.
8119 (ppc64_emit_bit_and): New function.
8120 (ppc64_emit_bit_or): New function.
8121 (ppc64_emit_bit_xor): New function.
8122 (ppc64_emit_bit_not): New function.
8123 (ppc64_emit_equal): New function.
8124 (ppc64_emit_less_signed): New function.
8125 (ppc64_emit_less_unsigned): New function.
8126 (ppc64_emit_ref): New function.
8127 (ppc64_emit_const): New function.
8128 (ppc64v1_emit_reg): New function.
8129 (ppc64v2_emit_reg): New function.
8130 (ppc64_emit_pop): New function.
8131 (ppc64_emit_stack_flush): New function.
8132 (ppc64_emit_swap): New function.
8133 (ppc64v1_emit_call): New function.
8134 (ppc64v2_emit_call): New function.
8135 (ppc64v1_emit_int_call_1): New function.
8136 (ppc64v2_emit_int_call_1): New function.
8137 (ppc64v1_emit_void_call_2): New function.
8138 (ppc64v2_emit_void_call_2): New function.
8139 (ppc64_emit_if_goto): New function.
8140 (ppc64_emit_eq_goto): New function.
8141 (ppc64_emit_ne_goto): New function.
8142 (ppc64_emit_lt_goto): New function.
8143 (ppc64_emit_le_goto): New function.
8144 (ppc64_emit_gt_goto): New function.
8145 (ppc64_emit_ge_goto): New function.
8146 (ppc64v1_emit_ops_impl): New static variable.
8147 (ppc64v2_emit_ops_impl): New static variable.
8148 (ppc_emit_ops): New function.
8149 (linux_low_target): Wire in ppc_emit_ops.
8151 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
8152 Marcin Kościelnicki <koriakin@0x04.net>
8155 * Makefile.in: Add powerpc-*-ipa.o
8156 * configure.srv: Add ipa_obj for powerpc*-linux.
8157 * linux-ppc-ipa.c: New file.
8158 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
8160 (PPC_FIELD): New macro.
8161 (PPC_SEXT): New macro.
8162 (PPC_OP6): New macro.
8163 (PPC_BO): New macro.
8164 (PPC_LI): New macro.
8165 (PPC_BD): New macro.
8166 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
8167 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
8168 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
8169 (ppc_get_thread_area): New function.
8170 (is_elfv2_inferior): New function.
8171 (gen_ds_form): New function.
8172 (GEN_STD): New macro.
8173 (GEN_STDU): New macro.
8174 (GEN_LD): New macro.
8175 (GEN_LDU): New macro.
8176 (gen_d_form): New function.
8177 (GEN_ADDI): New macro.
8178 (GEN_ADDIS): New macro.
8179 (GEN_LI): New macro.
8180 (GEN_LIS): New macro.
8181 (GEN_ORI): New macro.
8182 (GEN_ORIS): New macro.
8183 (GEN_LWZ): New macro.
8184 (GEN_STW): New macro.
8185 (GEN_STWU): New macro.
8186 (gen_xfx_form): New function.
8187 (GEN_MFSPR): New macro.
8188 (GEN_MTSPR): New macro.
8189 (GEN_MFCR): New macro.
8190 (GEN_MTCR): New macro.
8191 (GEN_SYNC): New macro.
8192 (GEN_LWSYNC): New macro.
8193 (gen_x_form): New function.
8194 (GEN_OR): New macro.
8195 (GEN_MR): New macro.
8196 (GEN_LWARX): New macro.
8197 (GEN_STWCX): New macro.
8198 (GEN_CMPW): New macro.
8199 (gen_md_form): New function.
8200 (GEN_RLDICL): New macro.
8201 (GEN_RLDICR): New macro.
8202 (gen_i_form): New function.
8204 (GEN_BL): New macro.
8205 (gen_b_form): New function.
8206 (GEN_BNE): New macro.
8207 (GEN_LOAD): New macro.
8208 (GEN_STORE): New macro.
8209 (gen_limm): New function.
8210 (gen_atomic_xchg): New function.
8211 (gen_call): New function.
8212 (ppc_relocate_instruction): New function.
8213 (ppc_install_fast_tracepoint_jump_pad): New function.
8214 (ppc_get_min_fast_tracepoint_insn_len): New function.
8215 (ppc_get_ipa_tdesc_idx): New function.
8216 (the_low_target): Wire in the new functions.
8217 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
8219 * linux-ppc-tdesc.h: New file.
8221 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8223 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8224 (alloc_jump_pad_buffer): New function.
8225 * linux-amd64-ipa.c: Add <sys/mman.h> include.
8226 (alloc_jump_pad_buffer): New function.
8227 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
8228 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8229 (alloc_jump_pad_buffer): New function.
8230 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
8231 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
8232 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
8233 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
8235 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8237 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
8238 * linux-amd64-ipa.c: Likewise.
8239 * linux-i386-ipa.c: Likewise.
8240 * linux-s390-ipa.c: Likewise.
8241 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
8242 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
8243 set_trace_state_variable_value_ptr.
8244 (struct ipa_sym_addresses): Likewise.
8245 (symbol_list): Likewise.
8246 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
8247 accessing gdb_collect directly.
8248 (gdb_collect_ptr_type): New typedef.
8249 (get_raw_reg_ptr_type): New typedef.
8250 (get_trace_state_variable_value_ptr_type): New typedef.
8251 (set_trace_state_variable_value_ptr_type): New typedef.
8252 (gdb_collect_ptr): New global.
8253 (get_raw_reg_ptr): New global.
8254 (get_trace_state_variable_value_ptr): New global.
8255 (set_trace_state_variable_value_ptr): New global.
8256 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
8257 accessing get_raw_reg directly.
8258 (get_get_tsv_func_addr): Likewise for
8259 get_trace_state_variable_value_ptr.
8260 (get_set_tsv_func_addr): Likewise for
8261 set_trace_state_variable_value_ptr.
8262 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
8264 2016-03-30 Simon Marchi <simon.marchi@ericsson.com>
8266 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
8268 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8270 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
8272 (relocate_instruction): Remove own_buf.
8273 * server.c (own_buf): Make global.
8274 (handle_v_requests): Make global.
8275 * server.h (own_buf): New declaration.
8276 (handle_v_requests): New prototype.
8278 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8281 * linux-s390-low.c (add_insns): New function.
8282 (s390_emit_prologue): New function.
8283 (s390_emit_epilogue): New function.
8284 (s390_emit_add): New function.
8285 (s390_emit_sub): New function.
8286 (s390_emit_mul): New function.
8287 (s390_emit_lsh): New function.
8288 (s390_emit_rsh_signed): New function.
8289 (s390_emit_rsh_unsigned): New function.
8290 (s390_emit_ext): New function.
8291 (s390_emit_log_not): New function.
8292 (s390_emit_bit_and): New function.
8293 (s390_emit_bit_or): New function.
8294 (s390_emit_bit_xor): New function.
8295 (s390_emit_bit_not): New function.
8296 (s390_emit_equal): New function.
8297 (s390_emit_less_signed): New function.
8298 (s390_emit_less_unsigned): New function.
8299 (s390_emit_ref): New function.
8300 (s390_emit_if_goto): New function.
8301 (s390_emit_goto): New function.
8302 (s390_write_goto_address): New function.
8303 (s390_emit_litpool): New function.
8304 (s390_emit_const): New function.
8305 (s390_emit_call): New function.
8306 (s390_emit_reg): New function.
8307 (s390_emit_pop): New function.
8308 (s390_emit_stack_flush): New function.
8309 (s390_emit_zero_ext): New function.
8310 (s390_emit_swap): New function.
8311 (s390_emit_stack_adjust): New function.
8312 (s390_emit_set_r2): New function.
8313 (s390_emit_int_call_1): New function.
8314 (s390_emit_void_call_2): New function.
8315 (s390_emit_eq_goto): New function.
8316 (s390_emit_ne_goto): New function.
8317 (s390_emit_lt_goto): New function.
8318 (s390_emit_le_goto): New function.
8319 (s390_emit_gt_goto): New function.
8320 (s390_emit_ge_goto): New function.
8321 (s390x_emit_prologue): New function.
8322 (s390x_emit_epilogue): New function.
8323 (s390x_emit_add): New function.
8324 (s390x_emit_sub): New function.
8325 (s390x_emit_mul): New function.
8326 (s390x_emit_lsh): New function.
8327 (s390x_emit_rsh_signed): New function.
8328 (s390x_emit_rsh_unsigned): New function.
8329 (s390x_emit_ext): New function.
8330 (s390x_emit_log_not): New function.
8331 (s390x_emit_bit_and): New function.
8332 (s390x_emit_bit_or): New function.
8333 (s390x_emit_bit_xor): New function.
8334 (s390x_emit_bit_not): New function.
8335 (s390x_emit_equal): New function.
8336 (s390x_emit_less_signed): New function.
8337 (s390x_emit_less_unsigned): New function.
8338 (s390x_emit_ref): New function.
8339 (s390x_emit_if_goto): New function.
8340 (s390x_emit_const): New function.
8341 (s390x_emit_call): New function.
8342 (s390x_emit_reg): New function.
8343 (s390x_emit_pop): New function.
8344 (s390x_emit_stack_flush): New function.
8345 (s390x_emit_zero_ext): New function.
8346 (s390x_emit_swap): New function.
8347 (s390x_emit_stack_adjust): New function.
8348 (s390x_emit_int_call_1): New function.
8349 (s390x_emit_void_call_2): New function.
8350 (s390x_emit_eq_goto): New function.
8351 (s390x_emit_ne_goto): New function.
8352 (s390x_emit_lt_goto): New function.
8353 (s390x_emit_le_goto): New function.
8354 (s390x_emit_gt_goto): New function.
8355 (s390x_emit_ge_goto): New function.
8356 (s390_emit_ops): New function.
8357 (struct linux_target_ops): Fill in emit_ops hook.
8359 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8362 * Makefile.in: Add s390 IPA files.
8363 * configure.srv: Build IPA for s390.
8364 * linux-s390-ipa.c: New file.
8365 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
8366 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
8367 (tdesc_s390_linux32): Likewise.
8368 (init_registers_s390_linux32v1): Likewise.
8369 (tdesc_s390_linux32v1): Likewise.
8370 (init_registers_s390_linux32v2): Likewise.
8371 (tdesc_s390_linux32v2): Likewise.
8372 (init_registers_s390_linux64): Likewise.
8373 (tdesc_s390_linux64): Likewise.
8374 (init_registers_s390_linux64v1): Likewise.
8375 (tdesc_s390_linux64v1): Likewise.
8376 (init_registers_s390_linux64v2): Likewise.
8377 (tdesc_s390_linux64v2): Likewise.
8378 (init_registers_s390_te_linux64): Likewise.
8379 (tdesc_s390_te_linux64): Likewise.
8380 (init_registers_s390_vx_linux64): Likewise.
8381 (tdesc_s390_vx_linux64): Likewise.
8382 (init_registers_s390_tevx_linux64): Likewise.
8383 (tdesc_s390_tevx_linux64): Likewise.
8384 (init_registers_s390x_linux64): Likewise.
8385 (tdesc_s390x_linux64): Likewise.
8386 (init_registers_s390x_linux64v1): Likewise.
8387 (tdesc_s390x_linux64v1): Likewise.
8388 (init_registers_s390x_linux64v2): Likewise.
8389 (tdesc_s390x_linux64v2): Likewise.
8390 (init_registers_s390x_te_linux64): Likewise.
8391 (tdesc_s390x_te_linux64): Likewise.
8392 (init_registers_s390x_vx_linux64): Likewise.
8393 (tdesc_s390x_vx_linux64): Likewise.
8394 (init_registers_s390x_tevx_linux64): Likewise.
8395 (tdesc_s390x_tevx_linux64): Likewise.
8396 (have_hwcap_s390_vx): New static variable.
8397 (s390_arch_setup): Fill have_hwcap_s390_vx.
8398 (s390_get_thread_area): New function.
8399 (s390_ft_entry_gpr_esa): New const.
8400 (s390_ft_entry_gpr_zarch): New const.
8401 (s390_ft_entry_misc): New const.
8402 (s390_ft_entry_fr): New const.
8403 (s390_ft_entry_vr): New const.
8404 (s390_ft_main_31): New const.
8405 (s390_ft_main_64): New const.
8406 (s390_ft_exit_fr): New const.
8407 (s390_ft_exit_vr): New const.
8408 (s390_ft_exit_misc): New const.
8409 (s390_ft_exit_gpr_esa): New const.
8410 (s390_ft_exit_gpr_zarch): New const.
8411 (append_insns): New function.
8412 (s390_relocate_instruction): New function.
8413 (s390_install_fast_tracepoint_jump_pad): New function.
8414 (s390_get_min_fast_tracepoint_insn_len): New function.
8415 (s390_get_ipa_tdesc_idx): New function.
8416 (struct linux_target_ops): Wire in the above functions.
8417 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
8418 * linux-s390-tdesc.h: New file.
8420 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8422 * linux-s390-low.c (s390_supports_tracepoints): New function.
8423 (struct linux_target_ops): Fill supports_tracepoints hook.
8425 2016-03-18 Yao Qi <yao.qi@linaro.org>
8427 * linux-low.c (lwp_signal_can_be_delivered): New function.
8428 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
8430 2016-03-18 Yao Qi <yao.qi@linaro.org>
8432 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
8433 0 if signal is enqueued. Remove 'signal' from one debugging
8434 message. Move one debugging message to some lines below.
8435 Remove code setting 'signal' to 0.
8437 2016-03-18 Yao Qi <yao.qi@linaro.org>
8439 * linux-low.c (linux_low_filter_event): Remove redundant
8440 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
8442 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
8444 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
8445 (struct linux_target_ops): Wire in the above.
8447 2016-03-03 Yao Qi <yao.qi@linaro.org>
8449 * linux-low.c: Update comments to start_step_over.
8451 2016-03-03 Yao Qi <yao.qi@linaro.org>
8454 * linux-low.c (handle_extended_wait): Set child suspended
8455 if event_lwp->bp_reinsert isn't zero.
8457 2016-03-02 Yao Qi <yao.qi@linaro.org>
8459 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
8460 enqueue_pending_signal.
8462 2016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
8464 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
8467 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8469 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
8470 (s390_regmap_3264) [!__s390x__]: New global.
8471 (s390_collect_ptrace_register): Skip map entries containing -1.
8472 (s390_supply_ptrace_register): Ditto.
8473 (s390_fill_gprs_high): New function.
8474 (s390_store_gprs_high): New function.
8475 (s390_regsets): Add NT_S390_HIGH_GPRS.
8476 (s390_get_hwcap): Enable on 31-bit.
8477 (have_hwcap_s390_high_gprs): Enable on 31-bit.
8478 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
8479 Detect NT_S390_HIGH_GPRS.
8480 (s390_usrregs_info_3264): Enable on 31-bit.
8481 (s390_regs_info): Enable regs_info_3264 on 31-bit.
8482 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
8484 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8487 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
8488 * configure.srv: Ditto.
8489 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
8490 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
8491 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
8492 (init_registers_amd64_linux): Remove prototype.
8493 (tdesc_amd64_linux): Remove declaration.
8494 (get_ipa_tdesc): New function.
8495 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8496 initialize remaining tdescs.
8497 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
8498 (init_registers_i386_linux): Remove prototype.
8499 (tdesc_i386_linux): Remove declaration.
8500 (get_ipa_tdesc): New function.
8501 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8502 initialize remaining tdescs.
8503 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
8504 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
8505 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
8506 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
8507 (x86_get_ipa_tdesc_idx): New function.
8508 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
8509 * linux-x86-tdesc.h: New file.
8510 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
8511 (target_get_ipa_tdesc_idx): New macro.
8512 * tracepoint.c (ipa_tdesc_idx): New macro.
8513 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
8514 (symbol_list): Add ipa_tdesc_idx.
8515 (cmd_qtstart): Write ipa_tdesc_idx in the target.
8516 (ipa_tdesc): Remove.
8517 (ipa_tdesc_idx): New variable.
8518 (get_context_regcache): Use get_ipa_tdesc.
8519 (gdb_collect): Ditto.
8521 * tracepoint.h (get_ipa_tdesc): New prototype.
8522 (ipa_tdesc): Remove.
8524 2016-02-24 Pedro Alves <palves@redhat.com>
8526 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
8527 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
8528 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
8529 Factor out common code between the USE_SIGTRAP_SIGINFO and
8530 !USE_SIGTRAP_SIGINFO blocks.
8531 (linux_low_filter_event): Call save_stop_reason instead of
8532 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
8534 (linux_wait_1): Update comments.
8536 2016-02-24 Wei-cheng Wang <cole945@gmail.com>
8538 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
8539 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
8540 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
8541 ppc_insert_point, ppc_remove_point.
8543 2016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
8545 * linux-s390-low.c (s390_supports_z_point_type): New function.
8546 (struct linux_target_ops): Wire s390_supports_z_point_type in.
8548 2016-02-16 Yao Qi <yao.qi@linaro.org>
8550 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
8551 PC. Get pc from regcache_read_pc.
8553 2016-02-12 Yao Qi <yao.qi@linaro.org>
8555 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
8556 or linux_get_pc_32bit.
8557 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
8559 2016-02-12 Yao Qi <yao.qi@linaro.org>
8561 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
8562 arm_linux_get_next_pcs_fixup.
8564 2016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
8566 * tracepoint.c (x_tracepoint_action_download): Change
8567 write_inferior_data_ptr to write_inferior_data_pointer.
8568 (cmd_qtstart): Likewise.
8569 (write_inferior_data_ptr): Remove.
8570 (download_agent_expr): Change write_inferior_data_ptr to
8571 write_inferior_data_pointer.
8572 (download_tracepoint_1): Likewise.
8573 (download_tracepoint): Likewise.
8574 (download_trace_state_variables): Likewise.
8576 2016-02-11 Wei-cheng Wang <cole945@gmail.com>
8577 Marcin Kościelnicki <koriakin@0x04.net>
8579 * tracepoint.c (struct tracepoint_action_ops): Remove.
8580 (struct tracepoint_action): Remove ops.
8581 (m_tracepoint_action_download, r_tracepoint_action_download)
8582 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
8583 size and offset accordingly.
8584 (m_tracepoint_action_ops, r_tracepoint_action_ops)
8585 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
8586 (tracepoint_action_send, tracepoint_action_download): New functions.
8587 Helpers for trace action handlers.
8588 (add_tracepoint_action): Remove setup actions ops.
8589 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
8591 2016-02-10 Yao Qi <yao.qi@linaro.org>
8593 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
8595 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8597 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
8599 * configure: Regenerate.
8601 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8603 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
8604 void * to gdb_byte *.
8605 * linux-low.c (siginfo_fixup): Likewise.
8606 (linux_xfer_siginfo): Likewise.
8607 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
8609 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
8611 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
8613 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
8615 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
8617 * linux-x86-low.c [__x86_64__]: Include
8618 "nat/amd64-linux-siginfo.h".
8619 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
8620 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
8621 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
8622 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
8623 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
8624 (cpt_si_fd, si_timerid, si_overrun): Move from
8625 nat/amd64-linux-siginfo.c.
8626 * Makefile.in (amd64-linux-siginfo.o:): New rule.
8628 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
8630 * server.c (skip_to_semicolon): Remove.
8631 (process_point_options): Use strchrnul instead of
8634 2016-01-26 Yao Qi <yao.qi@linaro.org>
8636 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
8637 * linux-low.c (install_software_single_step_breakpoints): Don't
8638 call regcache_read_pc.
8639 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
8642 2016-01-26 Yao Qi <yao.qi@linaro.org>
8644 * linux-low.c (install_software_single_step_breakpoints): Call
8645 regcache_read_pc instead of get_pc.
8647 2016-01-26 Yao Qi <yao.qi@linaro.org>
8649 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
8650 (unblock_async_io): Rename to ...
8651 (block_unblock_async_io): ... it. New function.
8652 (enable_async_io): Don't install SIGIO handler. Unblock it
8654 (disable_async_io): Don't ignore SIGIO. Block it instead.
8655 (initialize_async_io): Install SIGIO handler. Don't call
8658 2016-01-26 Yao Qi <yao.qi@linaro.org>
8660 * remote-utils.c (getpkt): If the buffer isn't empty, and the
8661 first character is '\003', call *the_target->request_interrupt.
8663 2016-01-25 Yao Qi <yao.qi@linaro.org>
8665 * remote-utils.c (new_thread_notify): Remove.
8666 (dead_thread_notify): Likewise.
8667 * remote-utils.h (new_thread_notify): Remove declaration.
8668 (dead_thread_notify): Likewise.
8670 2016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
8672 * gdb.trace/pending.exp: Fix expected message on continue.
8674 2016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
8676 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
8677 it works properly on big-endian machines where sizeof (CORE_ADDR)
8680 2016-01-21 Pedro Alves <palves@redhat.com>
8682 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
8683 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
8684 * configure: Regenerate.
8686 2016-01-21 Yao Qi <yao.qi@linaro.org>
8688 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
8689 is_thumb and set it according to CPSR saved on the stack.
8690 (get_next_pcs_syscall_next_pc): Pass is_thumb to
8691 arm_sigreturn_next_pc.
8693 2016-01-18 Yao Qi <yao.qi@linaro.org>
8695 * linux-low.c (linux_set_pc_64bit): New function.
8696 (linux_get_pc_64bit): New function.
8697 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
8699 * linux-sparc-low.c (debug_threads): Remove declaration.
8700 (sparc_get_pc): Remove.
8701 (the_low_target): Use linux_get_pc_64bit instead of
8703 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
8704 (the_low_target): Use linux_get_pc_64bit and
8707 2016-01-18 Yao Qi <yao.qi@linaro.org>
8709 * linux-arm-low.c (debug_threads): Remove declaration.
8710 (arm_get_pc, arm_set_pc): Remove.
8711 (the_low_target): Use linux_get_pc_32bit and
8713 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
8714 (the_low_target): Use linux_get_pc_32bit and
8716 * linux-cris-low.c (debug_threads): Remove declaration.
8717 (cris_get_pc, cris_set_pc,): Remove.
8718 (the_low_target): Use linux_get_pc_32bit and
8720 * linux-crisv32-low.c (debug_threads): Remove declaration.
8721 (cris_get_pc, cris_set_pc): Remove.
8722 (the_low_target): Use linux_get_pc_32bit and
8724 * linux-low.c: Include inttypes.h.
8725 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
8726 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
8727 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
8728 (the_low_target): Use linux_get_pc_32bit and
8730 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
8731 (the_low_target): Use linux_get_pc_32bit and
8733 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
8734 (the_low_target): Use linux_get_pc_32bit and
8736 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
8737 (the_low_target): Use linux_get_pc_32bit and
8739 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
8740 (the_low_target): Use linux_get_pc_32bit and
8743 2016-01-18 Gary Benson <gbenson@redhat.com>
8745 * configure.ac (AC_FUNC_FORK): New check.
8746 * config.in: Regenerate.
8747 * configure: Likewise.
8749 2016-01-14 Yao Qi <yao.qi@linaro.org>
8751 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
8752 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
8753 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
8754 arm_get_next_pcs_ctor.
8756 2016-01-12 Josh Stone <jistone@redhat.com>
8757 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8759 * inferiors.h: Include "gdb_vecs.h".
8760 (struct process_info): Add syscalls_to_catch.
8761 * inferiors.c (remove_process): Free syscalls_to_catch.
8762 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
8763 syscall_return stops.
8764 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
8765 * server.c (handle_general_set): Handle QCatchSyscalls.
8766 (handle_query): Report support for QCatchSyscalls.
8767 * target.h (struct target_ops): Add supports_catch_syscall.
8768 (target_supports_catch_syscall): New macro.
8769 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
8770 (struct lwp_info): Add syscall_state.
8771 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
8772 Maintain syscall_state and syscalls_to_catch across exec.
8773 (get_syscall_trapinfo): New function, proxy to the_low_target.
8774 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
8775 (linux_low_filter_event): Toggle syscall_state entry/return for
8776 syscall traps, and set it ignored for all others.
8777 (gdb_catching_syscalls_p): New function.
8778 (gdb_catch_this_syscall_p): New function.
8779 (linux_wait_1): Handle SYSCALL_SIGTRAP.
8780 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
8781 (linux_supports_catch_syscall): New function.
8782 (linux_target_ops): Install it.
8783 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
8784 (the_low_target): Install it.
8786 2016-01-12 Mike Frysinger <vapier@gentoo.org>
8788 * acinclude.m4: Include new ../warning.m4 file.
8789 * configure: Regenerated.
8790 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
8792 2016-01-12 Mike Frysinger <vapier@gentoo.org>
8794 * ax.c (is_goto_target): Mark static.
8795 * linux-low.c (register_addr): Likewise.
8796 (linux_fetch_registers, linux_store_registers): Likewise.
8797 * mem-break.c (any_persistent_commands): Fix old prototype.
8798 (add_commands_to_breakpoint): Mark static.
8799 * regcache.c (find_register_by_name): Delete unused func.
8800 * remote-utils.c (hex_or_minus_one): Mark static.
8801 * server.c (monitor_show_help): Mark static.
8802 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
8803 handle_v_requests): Likewise.
8805 2016-01-12 Pedro Alves <palves@redhat.com>
8807 Remove use of the registered trademark symbol throughout.
8809 2016-01-08 Yao Qi <yao.qi@linaro.org>
8811 * remote-utils.c (getpkt): If c is '\003', call target hook
8814 2016-01-06 Yao Qi <yao.qi@linaro.org>
8816 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
8817 linux-aarch32-low.c.
8818 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8819 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
8820 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8821 (thumb2_breakpoint): Declare.
8822 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
8823 linux-aarch32-low.h.
8824 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8825 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
8826 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8828 2016-01-01 Joel Brobecker <brobecker@adacore.com>
8830 * gdbreplay.c (gdbreplay_version): Change copyright year in
8832 * server.c (gdbserver_version): Likewise.
8834 2015-12-28 Patrick Palka <patrick@parcs.ath.cx>
8836 * server.c (crc32_table): Delete.
8837 (crc32): Use libiberty's xcrc32 function.
8839 2015-12-22 Joel Brobecker <brobecker@adacore.com>
8841 * lynx-low.c (lynx_delete_thread_callback): New function.
8842 (lynx_mourn): Properly delete our process and all of its
8843 threads. Remove call to clear_inferiors.
8845 2015-12-22 Joel Brobecker <brobecker@adacore.com>
8847 * target.c (thread_search_callback): Add check that
8848 the thread_stopped target callback is not NULL before
8851 2015-12-21 Yao Qi <yao.qi@linaro.org>
8853 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
8856 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8858 * server.c (handle_query): Call target_supports_software_single_step.
8860 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8862 * linux-low.c (single_step): New function.
8863 (linux_resume_one_lwp_throw): Call single_step.
8864 (start_step_over): Likewise.
8866 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8868 * Makefile.in (SFILES): Append arch/arm-linux.c,
8869 arch/arm-get-next-pcs.c.
8870 (arm-linux.o): New rule.
8871 (arm-get-next-pcs.o): New rule.
8872 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
8874 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
8875 to linux-aarch32-low.c.
8876 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8877 (arm_breakpoint_len, thumb_breakpoint): Likewise.
8878 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
8879 (thumb2_breakpoint_len): Likewise.
8880 (arm_is_thumb_mode): Make non-static.
8881 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
8882 from linux-aarch32-low.c.
8883 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8884 (arm_breakpoint_len, thumb_breakpoint): Likewise.
8885 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
8886 (thumb2_breakpoint_len): Likewise.
8887 (arm_is_thumb_mode): New declaration.
8888 * linux-arm-low.c: Include arch/arm-linux.h
8889 aarch/arm-get-next-pcs.h, sys/syscall.h.
8890 (get_next_pcs_ops): New struct.
8891 (get_next_pcs_addr_bits_remove): New function.
8892 (get_next_pcs_is_thumb): New function.
8893 (get_next_pcs_read_memory_unsigned_integer): Likewise.
8894 (arm_sigreturn_next_pc): Likewise.
8895 (get_next_pcs_syscall_next_pc): Likewise.
8896 (arm_gdbserver_get_next_pcs): Likewise.
8897 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
8899 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
8900 * server.h: Include gdb_vecs.h.
8902 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8904 * Makefile.in (SFILES): Append common/common-regcache.c.
8905 (OBS): Append common-regcache.o.
8906 (common-regcache.o): New rule.
8907 * regcache.c (init_register_cache): Initialize cache to
8909 (regcache_raw_read_unsigned): New function.
8910 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
8911 register_status enum.
8913 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8915 * linux-aarch64-low.c (the_low_targets): Rename
8916 breakpoint_reinsert_addr to get_next_pcs.
8917 * linux-arm-low.c (the_low_targets): Likewise.
8918 * linux-bfin-low.c (the_low_targets): Likewise.
8919 * linux-cris-low.c (the_low_targets): Likewise.
8920 * linux-crisv32-low.c (the_low_targets): Likewise.
8921 * linux-low.c (can_software_single_step): Likewise.
8922 (install_software_single_step_breakpoints): New function.
8923 (start_step_over): Use install_software_single_step_breakpoints.
8924 * linux-low.h: New CORE_ADDR vector.
8925 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
8927 * linux-mips-low.c (the_low_targets): Likewise.
8928 * linux-nios2-low.c (the_low_targets): Likewise.
8929 * linux-sparc-low.c (the_low_targets): Likewise.
8931 2015-12-17 Pedro Alves <palves@redhat.com>
8933 * linux-low.c (linux_kill_one_lwp): Remove references to
8935 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
8937 (linux_init_signals): Delete.
8938 (initialize_low): Adjust.
8939 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
8941 2015-12-16 Pedro Alves <palves@redhat.com>
8943 * configure.ac (compiler warning flags): When testing a
8944 -Wno-foo option, check whether -Wfoo works instead.
8945 * configure: Regenerate.
8947 2015-12-11 Don Breazeal <donb@codesourcery.com>
8949 * server.c (process_serial_event): Don't exit from gdbserver
8950 in remote mode if there are still active inferiors.
8952 2015-12-11 Yao Qi <yao.qi@linaro.org>
8954 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
8955 arm_breakpoint_at if the process is 32-bit.
8957 2015-12-11 Yao Qi <yao.qi@linaro.org>
8959 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
8962 2015-12-07 Yao Qi <yao.qi@linaro.org>
8964 * configure.srv: Append arm.o to srv_tgtobj for
8965 aarch64*-*-linux* target.
8966 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
8967 from linux-arm-low.c.
8968 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8969 (arm_breakpoint_len, thumb_breakpoint): Likewise.
8970 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
8971 (thumb2_breakpoint_len): Likewise.
8972 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
8973 (arm_breakpoint_kinds): Likewise.
8974 (arm_breakpoint_kind_from_pc): Likewise.
8975 (arm_sw_breakpoint_from_kind): Likewise.
8976 (arm_breakpoint_kind_from_current_state): Likewise.
8977 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
8978 (arm_sw_breakpoint_from_kind): Declare.
8979 (arm_breakpoint_kind_from_current_state): Declare.
8980 (arm_breakpoint_at): Declare.
8981 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
8982 arm_sw_breakpoint_from_kind if process is 32-bit.
8983 (aarch64_breakpoint_kind_from_pc): New function.
8984 (aarch64_breakpoint_kind_from_current_state): New function.
8985 (the_low_target): Initialize fields breakpoint_kind_from_pc
8986 and breakpoint_kind_from_current_state.
8987 * linux-arm-low.c (arm_breakpoint_kinds): Move to
8988 linux-aarch32-low.c.
8989 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
8990 (arm_breakpoint, arm_breakpoint_len): Likewise.
8991 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
8992 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8993 (arm_is_thumb_mode): Likewise.
8994 (arm_breakpoint_at): Likewise.
8995 (arm_breakpoint_kind_from_pc): Likewise.
8996 (arm_sw_breakpoint_from_kind): Likewise.
8997 (arm_breakpoint_kind_from_current_state): Likewise.
9000 2015-08-04 Yao Qi <yao.qi@linaro.org>
9002 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
9003 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
9004 * server.c (extended_protocol): Remove "static".
9005 * server.h (extended_protocol): Declare it.
9007 2015-12-04 Josh Stone <jistone@redhat.com>
9009 * target.h (struct target_ops) <arch_setup>: Rename to ...
9010 (struct target_ops) <post_create_inferior>: ... this.
9011 (target_arch_setup): Rename to ...
9012 (target_post_create_inferior): ... this, calling post_create_inferior.
9013 * server.c (start_inferior): Update target_arch_setup calls to
9014 target_post_create_inferior.
9015 * linux-low.c (linux_low_ptrace_options): Forward declare.
9016 (linux_arch_setup): Update its comment for general use.
9017 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
9018 (struct linux_target_ops): Use linux_post_create_inferior.
9019 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
9020 to post_create_inferior.
9021 * nto-low.c (struct nto_target_ops): Likewise.
9022 * spu-low.c (struct spu_target_ops): Likewise.
9023 * win32-low.c (struct win32_target_ops): Likewise.
9025 2015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
9027 * linux-arm-low.c: Remove duplicate arch/arm.h include.
9029 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9031 * linux-arm-low.c (arm_reinsert_addr): Remove function.
9032 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
9033 * linux-cris-low.c (cris_reinsert_addr> Remove function.
9034 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9035 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
9036 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9037 * linux-mips-low.c (mips_reinsert_addr): Remove function.
9038 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9039 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
9040 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9041 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
9042 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9044 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9046 * linux-low.c (linux_look_up_symbols): Don't call
9047 linux_supports_traceclone.
9048 * linux-low.h (thread_db_init): Remove use_events argument.
9049 * thread-db.c (thread_db_use_event): Remove global variable.
9050 (struct thread_db) <td_thr_event_enable_p>: Remove field.
9051 (struct thread_db) <td_create_bp>: Remove field.
9052 (thread_db_create_event): Remove function.
9053 (thread_db_enable_reporting): Likewise.
9054 (find_one_thread): Don't check for thread_db_use_events.
9055 (attach_thread): Likewise.
9056 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
9057 (try_thread_db_load_1): Don't check for thread_db_use_events.
9058 (thread_db_init): Remove use_events argument and thread events
9060 (remove_thread_event_breakpoints): Remove function.
9061 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
9063 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9065 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
9067 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9068 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
9069 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9070 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
9071 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
9073 * linux-crisv32-low.c (cris_supports_hardware_single_step):
9075 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9076 * linux-low.c (can_hardware_single_step): Use
9077 supports_hardware_single_step.
9078 (can_software_single_step): New function.
9079 (start_step_over): Call can_software_single_step.
9080 (linux_supports_hardware_single_step): New function.
9081 (struct target_ops) <supports_software_single_step>: Initialize.
9082 * linux-low.h (struct linux_target_ops)
9083 <supports_hardware_single_step>: Initialize.
9084 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
9085 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9086 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
9087 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
9088 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
9089 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9090 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
9091 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9092 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
9093 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
9095 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
9096 (struct linux_target_ops) <tile_supports_hardware_single_step>:
9098 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
9099 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9100 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
9102 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9103 * target.h (struct target_ops): <supports_software_single_step>:
9105 (target_supports_software_single_step): New macro.
9107 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9109 * linux-low.c (linux_wait_1): Fix pc advance condition.
9110 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
9111 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
9113 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9115 * linux-arm-low.c (arm_is_thumb_mode): New function.
9116 (arm_breakpoint_at): Use arm_is_thumb_mode.
9117 (arm_breakpoint_kind_from_current_state): New function.
9118 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
9120 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
9121 (linux_breakpoint_kind_from_current_state): New function.
9122 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
9123 * linux-low.h (struct linux_target_ops)
9124 <breakpoint_kind_from_current_state>: New field.
9125 * target.h (struct target_ops): Likewise.
9126 (target_breakpoint_kind_from_current_state): New macro.
9128 2015-11-30 Pedro Alves <palves@redhat.com>
9130 * linux-low.c (linux_resume): Wake up the event loop before
9133 2015-11-30 Pedro Alves <palves@redhat.com>
9135 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
9137 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
9139 * target.c (struct thread_search): New structure.
9140 (thread_search_callback): New function.
9141 (prev_general_thread): New global.
9142 (prepare_to_access_memory, done_accessing_memory): New functions.
9143 * target.h (prepare_to_access_memory, done_accessing_memory):
9144 Replace macros with function declarations.
9146 2015-11-30 Pedro Alves <palves@redhat.com>
9149 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
9150 report TARGET_WAITKIND_NO_RESUMED.
9151 * remote-utils.c (prepare_resume_reply): Handle
9152 TARGET_WAITKIND_NO_RESUMED.
9153 * server.c (report_no_resumed): New global.
9154 (handle_query) <qSupported>: Handle "no-resumed+". Report
9155 "no-resumed+" support.
9156 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
9157 return error if the client doesn't support no-resumed events.
9158 (push_stop_notification): New function.
9159 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
9160 events if the client supports them.
9162 2015-11-30 Pedro Alves <palves@redhat.com>
9164 * linux-low.c (thread_still_has_status_pending_p): Don't check
9166 (lwp_resumed): New function.
9167 (status_pending_p_callback): Return early if the LWP is not
9168 supposed to be resumed.
9170 2015-11-30 Pedro Alves <palves@redhat.com>
9172 * linux-low.c (handle_extended_wait): Assert that the LWP's
9173 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
9174 thread create events, leave the new child's status pending.
9175 (linux_low_filter_event): If GDB wants to hear about thread exit
9176 events, leave the LWP marked dead and don't delete it.
9177 (linux_wait_for_event_filtered): Don't check for thread exit.
9178 (filter_exit_event): New function.
9179 (linux_wait_1): Use it, when returning an exit event.
9180 (linux_resume_one_lwp_throw): Assert that the LWP's
9181 waitstatus is TARGET_WAITKIND_IGNORE.
9182 * remote-utils.c (prepare_resume_reply): Handle
9183 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
9184 * server.c (report_thread_events): New global.
9185 (handle_general_set): Handle QThreadEvents.
9186 (handle_query) <qSupported>: Handle and report QThreadEvents+;
9187 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
9188 TARGET_WAITKIND_THREAD_EXITED.
9189 * server.h (report_thread_events): Declare.
9191 2015-11-30 Pedro Alves <palves@redhat.com>
9193 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
9194 the thread's last_resume_kind was resume_stop.
9196 2015-11-30 Pedro Alves <palves@redhat.com>
9198 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
9201 2015-11-30 Pedro Alves <palves@redhat.com>
9203 * server.c (handle_v_requests): Handle vCtrlC.
9205 2015-11-30 Pedro Alves <palves@redhat.com>
9207 * gdbthread.h (find_any_thread_of_pid): Declare.
9208 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
9210 * server.c (handle_query): If current_thread is NULL, look for
9211 another thread of the selected process.
9213 2015-11-26 Daniel Colascione <dancol@dancol.org>
9214 Simon Marchi <simon.marchi@ericsson.com>
9216 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
9217 * server.c (handle_qxfer_threads_worker): Refactor to include thread
9219 * target.h (struct target_ops) <thread_name>: New field.
9220 (target_thread_name): New macro.
9222 2015-11-23 Joel Brobecker <brobecker@adacore.com>
9224 * regcache.h (regcache_invalidate_pid): Add declaration.
9225 * regcache.c (regcache_invalidate_pid): New function, extracted
9226 from regcache_invalidate.
9227 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
9228 Add trivial documentation comment.
9229 * lynx-low.c: Use regcache_invalidate_pid instead of
9230 regcache_invalidate.
9232 2015-11-23 Joel Brobecker <brobecker@adacore.com>
9234 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
9235 and Elf64_auxv_t if the target is Android.
9237 2015-11-22 Doug Evans <xdje42@gmail.com>
9239 * target.h: #include <sys/types.h>.
9241 2015-11-19 Pedro Alves <palves@redhat.com>
9243 * linux-low.c (linux_process_qsupported): Change prototype.
9245 * linux-low.h (struct linux_target_ops) <process_qsupported>:
9247 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
9248 and adjust to loop over all features.
9249 * server.c (handle_query) <qSupported>: Adjust to call
9250 target_process_qsupported once, passing it a vector of unprocessed
9252 * target.h (struct target_ops) <process_qsupported>: Change
9254 (target_process_qsupported): Adjust.
9256 2015-11-19 Pedro Alves <palves@redhat.com>
9258 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
9260 * configure: Regenerate.
9262 2015-11-19 Pedro Alves <palves@redhat.com>
9264 * configure: Regenerate.
9266 2015-11-19 Yao Qi <yao.qi@linaro.org>
9268 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
9271 2015-11-19 Yao Qi <yao.qi@linaro.org>
9273 * linux-aarch64-low.c (enum aarch64_operand_type): New.
9274 (struct aarch64_operand): Move enum out.
9276 2015-11-19 Yao Qi <yao.qi@linaro.org>
9278 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
9279 struct user_fpsimd_state *.
9280 (aarch64_store_fpregset): Likewise.
9282 2015-11-19 Yao Qi <yao.qi@linaro.org>
9284 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
9285 struct user_pt_regs *.
9286 (aarch64_store_gregset): Likewise.
9288 2015-11-18 Pedro Alves <palves@redhat.com>
9290 * Makefile.in (all_object_files): Add $IPA_OBJS.
9292 2015-11-17 Pedro Alves <palves@redhat.com>
9294 * win32-low.c (win32_resume): Use gdb_signal_from_host,
9295 GDB_SIGNAL_0 and gdb_signal_to_string.
9297 2015-11-17 Pedro Alves <palves@redhat.com>
9299 * win32-low.c (handle_output_debug_string): Remove parameter.
9300 (win32_kill): Remove our_status local and adjust call to
9301 handle_output_debug_string.
9302 (get_child_debug_event): Adjust call to
9303 handle_output_debug_string.
9305 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9307 * linux-mips-low.c (mips_fill_gregset): Add cast.
9308 (mips_store_gregset): Likewise.
9309 (mips_fill_fpregset): Likewise.
9310 (mips_store_fpregset): Likewise.
9312 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9314 * linux-mips-low.c (mips_add_watchpoint): Rename private to
9317 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9319 * linux-mips-low.c (mips_linux_new_thread): Change type of
9320 watch_type to enum target_hw_bp_type.
9322 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9324 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
9325 Change return type to arm_hwbp_type.
9327 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9329 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
9330 (arm_store_gregset): Likewise.
9331 * linux-arm-low.c (arm_get_hwcap): Likewise.
9332 (arm_read_description): Likewise.
9334 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9336 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
9338 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9340 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
9341 (ppc_fill_vsxregset): Likewise.
9342 (ppc_store_vsxregset): Likewise.
9343 (ppc_fill_vrregset): Likewise.
9344 (ppc_store_vrregset): Likewise.
9345 (ppc_fill_evrregset): Likewise.
9346 (ppc_store_evrregset): Likewise.
9348 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9350 * linux-ppc-low.c (ppc_usrregs_info): Remove
9351 forward-declaration.
9352 (ppc_arch_setup): Move lower in file.
9354 2015-10-30 Simon Marchi <simon.marchi@ericsson.com>
9356 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
9357 (ps_pdwrite): Likewise.
9359 2015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
9361 * linux-arm-low.c (arm_new_thread): Move pointer dereference
9362 to after assert checks.
9364 2015-10-29 Simon Marchi <simon.marchi@ericsson.com>
9366 * proc-service.c (ps_pdread): Add/adjust casts.
9367 (ps_pdwrite): Add/adjust casts.
9369 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9371 * server.c (handle_search_memory_1): Cast return value of
9374 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9376 * server.c (write_qxfer_response): Change type of data to
9379 2015-10-29 Pedro Alves <palves@redhat.com>
9381 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
9383 2015-10-29 Pedro Alves <palves@redhat.com>
9385 * tracepoint.c (clear_installed_tracepoints): Add casts.
9387 2015-10-29 Pedro Alves <palves@redhat.com>
9389 * server.c (handle_v_cont, process_serial_event): Add enum
9390 gdb_signal casts to signal parsing code.
9392 2015-10-29 Pedro Alves <palves@redhat.com>
9394 * linux-low.h (NULL_REGSET): Define.
9395 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9396 * linux-arm-low.c (arm_regsets): Likewise.
9397 * linux-crisv32-low.c (cris_regsets): Likewise.
9398 * linux-m68k-low.c (m68k_regsets): Likewise.
9399 * linux-mips-low.c (mips_regsets): Likewise.
9400 * linux-nios2-low.c (nios2_regsets): Likewise.
9401 * linux-ppc-low.c (ppc_regsets): Likewise.
9402 * linux-s390-low.c (s390_regsets): Likewise.
9403 * linux-sh-low.c (sh_regsets): Likewise.
9404 * linux-sparc-low.c (sparc_regsets): Likewise.
9405 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9406 * linux-tile-low.c (tile_regsets): Likewise.
9407 * linux-x86-low.c (x86_regsets): Likewise.
9408 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9410 2015-10-29 Pedro Alves <palves@redhat.com>
9412 * linux-low.h (NULL_REGSET): Define.
9413 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9414 * linux-arm-low.c (arm_regsets): Likewise.
9415 * linux-crisv32-low.c (cris_regsets): Likewise.
9416 * linux-m68k-low.c (m68k_regsets): Likewise.
9417 * linux-mips-low.c (mips_regsets): Likewise.
9418 * linux-nios2-low.c (nios2_regsets): Likewise.
9419 * linux-ppc-low.c (ppc_regsets): Likewise.
9420 * linux-s390-low.c (s390_regsets): Likewise.
9421 * linux-sh-low.c (sh_regsets): Likewise.
9422 * linux-sparc-low.c (sparc_regsets): Likewise.
9423 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9424 * linux-tile-low.c (tile_regsets): Likewise.
9425 * linux-x86-low.c (x86_regsets): Likewise.
9426 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9428 2015-10-26 Doug Evans <dje@google.com>
9430 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
9432 2015-10-26 Doug Evans <dje@google.com>
9434 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
9436 2015-10-26 Doug Evans <dje@google.com>
9438 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
9440 (attach_thread, find_new_threads_callback): Ditto.
9442 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9444 * mem-break.h (set_breakpoint_data): Remove.
9446 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9448 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
9449 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9450 (initialize_low): Remove set_breakpoint_data call.
9451 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
9452 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
9453 (initialize_low): Remove set_breakpoint_data call.
9454 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
9455 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9456 (initialize_low): Remove set_breakpoint_data call.
9458 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9460 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
9461 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
9462 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
9463 * target.h (target_breakpoint_kind_from_pc): New macro.
9465 2015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
9467 * linux-low.c (default_breakpoint_kind_from_pc): New function.
9468 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
9469 the default breakpoint kind.
9471 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9473 * linux-arm-low.c (arm_supports_z_point_type): Add software
9476 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9478 * linux-arm-low.c: Refactor breakpoint definitions.
9479 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
9480 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
9482 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9484 * Makefile.in: Add arm.c/o.
9485 * configure.srv: Likewise.
9486 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
9487 (arm_breakpoint_kind_from_pc): New function.
9488 (arm_sw_breakpoint_from_kind): Return proper kind.
9489 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
9491 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9493 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
9495 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
9496 (struct raw_breakpoint) <size>: Remove.
9497 (struct raw_breakpoint) <kind>: Add.
9498 (bp_size): New function.
9499 (bp_opcode): Likewise.
9500 (find_raw_breakpoint_at): Adjust for kind.
9501 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
9502 (remove_memory_breakpoint): Adjust for kind call bp_size.
9503 (set_raw_breakpoint_at): Adjust for kind.
9504 (set_breakpoint): Likewise.
9505 (set_breakpoint_at): Call breakpoint_kind_from_pc.
9506 (delete_raw_breakpoint): Adjust for kind.
9507 (delete_breakpoint): Likewise.
9508 (find_gdb_breakpoint): Likewise.
9509 (set_gdb_breakpoint_1): Likewise.
9510 (set_gdb_breakpoint): Likewise.
9511 (delete_gdb_breakpoint_1): Likewise.
9512 (delete_gdb_breakpoint): Likewise.
9513 (uninsert_raw_breakpoint): Likewise.
9514 (reinsert_raw_breakpoint): Likewise.
9515 (set_breakpoint_data): Remove.
9516 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
9517 (check_mem_read): Adjust for kind call bp_size.
9518 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
9519 (clone_one_breakpoint): Adjust for kind.
9520 * mem-break.h (set_gdb_breakpoint): Likewise.
9521 (delete_gdb_breakpoint): Likewise.
9522 * server.c (process_serial_event): Likewise.
9524 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9526 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
9527 (struct linux_target_ops) <breakpoint>: Remove.
9528 (struct linux_target_ops) <breakpoint_len>: Remove.
9529 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9530 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9531 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
9532 (arm_sw_breakpoint_from_kind): New function.
9533 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
9534 (struct linux_target_ops) <breakpoint>: Remove.
9535 (struct linux_target_ops) <breakpoint_len>: Remove.
9536 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9537 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9538 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
9539 (struct linux_target_ops) <breakpoint>: Remove.
9540 (struct linux_target_ops) <breakpoint_len>: Remove.
9541 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9542 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9543 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
9544 (struct linux_target_ops) <breakpoint>: Remove.
9545 (struct linux_target_ops) <breakpoint_len>: Remove.
9546 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9547 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9548 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
9549 and sw_breakpoint_from_kind to increment the pc.
9550 (linux_breakpoint_kind_from_pc): New function.
9551 (linux_sw_breakpoint_from_kind): New function.
9552 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
9553 (initialize_low): Call breakpoint_kind_from_pc and
9554 sw_breakpoint_from_kind to replace breakpoint_data/len.
9555 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
9557 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
9558 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
9559 (struct linux_target_ops) <breakpoint>: Remove.
9560 (struct linux_target_ops) <breakpoint_len>: Remove.
9561 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9562 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9563 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
9564 (struct linux_target_ops) <breakpoint>: Remove.
9565 (struct linux_target_ops) <breakpoint_len>: Remove.
9566 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9567 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9568 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
9569 (struct linux_target_ops) <breakpoint>: Remove.
9570 (struct linux_target_ops) <breakpoint_len>: Remove.
9571 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9572 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9573 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
9574 (struct linux_target_ops) <breakpoint>: Remove.
9575 (struct linux_target_ops) <breakpoint_len>: Remove.
9576 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9577 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9578 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
9579 (struct linux_target_ops) <breakpoint>: Remove.
9580 (struct linux_target_ops) <breakpoint_len>: Remove.
9581 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9582 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9583 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
9584 (struct linux_target_ops) <breakpoint>: Remove.
9585 (struct linux_target_ops) <breakpoint_len>: Remove.
9586 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9587 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9588 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
9589 (struct linux_target_ops) <breakpoint>: Remove.
9590 (struct linux_target_ops) <breakpoint_len>: Remove.
9591 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9592 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9593 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
9594 (struct linux_target_ops) <breakpoint>: Remove.
9595 (struct linux_target_ops) <breakpoint_len>: Remove.
9596 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9597 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9598 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
9599 (struct linux_target_ops) <breakpoint>: Remove.
9600 (struct linux_target_ops) <breakpoint_len>: Remove.
9601 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9602 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9603 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
9604 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
9605 (struct linux_target_ops) <breakpoint>: Remove.
9606 (struct linux_target_ops) <breakpoint_len>: Remove.
9607 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9608 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9609 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
9610 (struct linux_target_ops) <breakpoint>: Remove.
9611 (struct linux_target_ops) <breakpoint_len>: Remove.
9612 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9613 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9615 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9617 * linux-cris-low.c (cris_get_pc): Remove void arg.
9619 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9621 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
9624 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9626 * inferiors.c (thread_pid_matches_callback): New function.
9627 (find_thread_process): New function.
9628 (remove_thread): Reset current_thread.
9629 (remove_process): Assert threads have been removed first.
9631 2015-10-15 Yao Qi <yao.qi@linaro.org>
9633 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
9635 (aarch64_remove_point): Likewise.
9636 * regcache.c (regcache_register_size): New function.
9638 2015-10-12 Yao Qi <yao.qi@linaro.org>
9640 * linux-aarch64-low.c: Update all callers as emit_load_store
9641 is renamed to aarch64_emit_load_store.
9643 2015-10-12 Yao Qi <yao.qi@linaro.org>
9645 * linux-aarch64-low.c: Update all callers of function renaming
9646 from emit_insn to aarch64_emit_insn.
9648 2015-10-12 Yao Qi <yao.qi@linaro.org>
9650 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
9651 arch/aarch64-insn.h.
9652 (struct aarch64_memory_operand): Likewise.
9654 (emit_insn): Move to arch/aarch64-insn.c.
9655 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
9656 (emit_load_store): Move to arch/aarch64-insn.c.
9657 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
9658 (can_encode_int32): Remove.
9660 2015-10-12 Yao Qi <yao.qi@linaro.org>
9662 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
9663 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
9664 (aarch64_relocate_instruction): Likewise.
9665 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
9666 (struct aarch64_insn_visitor): Likewise.
9668 2015-10-12 Yao Qi <yao.qi@linaro.org>
9670 * linux-aarch64-low.c (struct aarch64_insn_data): New.
9671 (struct aarch64_insn_visitor): New.
9672 (struct aarch64_insn_relocation_data): New.
9673 (aarch64_ftrace_insn_reloc_b): New function.
9674 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
9675 (aarch64_ftrace_insn_reloc_cb): Likewise.
9676 (aarch64_ftrace_insn_reloc_tb): Likewise.
9677 (aarch64_ftrace_insn_reloc_adr): Likewise.
9678 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
9679 (aarch64_ftrace_insn_reloc_others): Likewise.
9681 (aarch64_relocate_instruction): Use visitor.
9683 2015-10-12 Yao Qi <yao.qi@linaro.org>
9685 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
9686 int. Add argument buf.
9687 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
9688 aarch64_relocate_instruction.
9690 2015-10-12 Yao Qi <yao.qi@linaro.org>
9692 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
9693 argument insn. Remove local variable insn. Don't call
9695 (aarch64_install_fast_tracepoint_jump_pad): Call
9698 2015-09-30 Yao Qi <yao.qi@linaro.org>
9700 * linux-aarch64-low.c (emit_movk): Shorten a long line.
9701 (emit_load_store_pair): Likewise.
9703 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9705 * dll.c (match_dll): Add cast(s).
9706 (unloaded_dll): Likewise.
9707 * linux-low.c (second_thread_of_pid_p): Likewise.
9708 (delete_lwp_callback): Likewise.
9709 (count_events_callback): Likewise.
9710 (select_event_lwp_callback): Likewise.
9711 (linux_set_resume_request): Likewise.
9712 * server.c (accumulate_file_name_length): Likewise.
9713 (emit_dll_description): Likewise.
9714 (handle_qxfer_threads_worker): Likewise.
9715 (visit_actioned_threads): Likewise.
9716 * thread-db.c (any_thread_of): Likewise.
9717 * tracepoint.c (same_process_p): Likewise.
9718 (match_blocktype): Likewise.
9719 (build_traceframe_info_xml): Likewise.
9721 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9723 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
9725 (gdb_unparse_agent_expr): Likewise.
9726 * hostio.c (require_data): Likewise.
9727 (handle_pread): Likewise.
9728 * linux-low.c (disable_regset): Likewise.
9729 (fetch_register): Likewise.
9730 (store_register): Likewise.
9731 (get_dynamic): Likewise.
9732 (linux_qxfer_libraries_svr4): Likewise.
9733 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
9734 (set_fast_tracepoint_jump): Likewise.
9735 (uninsert_fast_tracepoint_jumps_at): Likewise.
9736 (reinsert_fast_tracepoint_jumps_at): Likewise.
9737 (validate_inserted_breakpoint): Likewise.
9738 (clone_agent_expr): Likewise.
9739 * regcache.c (init_register_cache): Likewise.
9740 * remote-utils.c (putpkt_binary_1): Likewise.
9741 (decode_M_packet): Likewise.
9742 (decode_X_packet): Likewise.
9743 (look_up_one_symbol): Likewise.
9744 (relocate_instruction): Likewise.
9745 (monitor_output): Likewise.
9746 * server.c (handle_search_memory): Likewise.
9747 (handle_qxfer_exec_file): Likewise.
9748 (handle_qxfer_libraries): Likewise.
9749 (handle_qxfer): Likewise.
9750 (handle_query): Likewise.
9751 (handle_v_cont): Likewise.
9752 (handle_v_run): Likewise.
9753 (captured_main): Likewise.
9754 * target.c (write_inferior_memory): Likewise.
9755 * thread-db.c (try_thread_db_load_from_dir): Likewise.
9756 * tracepoint.c (init_trace_buffer): Likewise.
9757 (add_tracepoint_action): Likewise.
9758 (add_traceframe): Likewise.
9759 (add_traceframe_block): Likewise.
9760 (cmd_qtdpsrc): Likewise.
9761 (cmd_qtdv): Likewise.
9762 (cmd_qtstatus): Likewise.
9763 (response_source): Likewise.
9764 (response_tsv): Likewise.
9765 (cmd_qtnotes): Likewise.
9766 (gdb_collect): Likewise.
9767 (initialize_tracepoint): Likewise.
9769 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9771 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
9772 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
9773 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
9775 (enum aarch64_condition_codes): New enum.
9776 (w0): New static global.
9779 (struct aarch64_memory_operand) <type>: New
9780 MEMORY_OPERAND_POSTINDEX type.
9781 (postindex_memory_operand): New helper function.
9782 (emit_ret): New function.
9783 (emit_load_store_pair): New function, factored out of emit_stp
9784 with support for MEMORY_OPERAND_POSTINDEX.
9785 (emit_stp): Rewrite using emit_load_store_pair.
9786 (emit_ldp): New function.
9787 (emit_load_store): Likewise.
9788 (emit_ldr): Mention post-index instruction in comment.
9789 (emit_ldrh): New function.
9790 (emit_ldrb): New function.
9791 (emit_ldrsw): Mention post-index instruction in comment.
9792 (emit_str): Likewise.
9793 (emit_subs): New function.
9794 (emit_cmp): Likewise.
9795 (emit_and): Likewise.
9796 (emit_orr): Likewise.
9797 (emit_orn): Likewise.
9798 (emit_eor): Likewise.
9799 (emit_mvn): Likewise.
9800 (emit_lslv): Likewise.
9801 (emit_lsrv): Likewise.
9802 (emit_asrv): Likewise.
9803 (emit_mul): Likewise.
9804 (emit_sbfm): Likewise.
9805 (emit_sbfx): Likewise.
9806 (emit_ubfm): Likewise.
9807 (emit_ubfx): Likewise.
9808 (emit_csinc): Likewise.
9809 (emit_cset): Likewise.
9810 (emit_nop): Likewise.
9811 (emit_ops_insns): New helper function.
9812 (emit_pop): Likewise.
9813 (emit_push): Likewise.
9814 (aarch64_emit_prologue): New function.
9815 (aarch64_emit_epilogue): Likewise.
9816 (aarch64_emit_add): Likewise.
9817 (aarch64_emit_sub): Likewise.
9818 (aarch64_emit_mul): Likewise.
9819 (aarch64_emit_lsh): Likewise.
9820 (aarch64_emit_rsh_signed): Likewise.
9821 (aarch64_emit_rsh_unsigned): Likewise.
9822 (aarch64_emit_ext): Likewise.
9823 (aarch64_emit_log_not): Likewise.
9824 (aarch64_emit_bit_and): Likewise.
9825 (aarch64_emit_bit_or): Likewise.
9826 (aarch64_emit_bit_xor): Likewise.
9827 (aarch64_emit_bit_not): Likewise.
9828 (aarch64_emit_equal): Likewise.
9829 (aarch64_emit_less_signed): Likewise.
9830 (aarch64_emit_less_unsigned): Likewise.
9831 (aarch64_emit_ref): Likewise.
9832 (aarch64_emit_if_goto): Likewise.
9833 (aarch64_emit_goto): Likewise.
9834 (aarch64_write_goto_address): Likewise.
9835 (aarch64_emit_const): Likewise.
9836 (aarch64_emit_call): Likewise.
9837 (aarch64_emit_reg): Likewise.
9838 (aarch64_emit_pop): Likewise.
9839 (aarch64_emit_stack_flush): Likewise.
9840 (aarch64_emit_zero_ext): Likewise.
9841 (aarch64_emit_swap): Likewise.
9842 (aarch64_emit_stack_adjust): Likewise.
9843 (aarch64_emit_int_call_1): Likewise.
9844 (aarch64_emit_void_call_2): Likewise.
9845 (aarch64_emit_eq_goto): Likewise.
9846 (aarch64_emit_ne_goto): Likewise.
9847 (aarch64_emit_lt_goto): Likewise.
9848 (aarch64_emit_le_goto): Likewise.
9849 (aarch64_emit_gt_goto): Likewise.
9850 (aarch64_emit_ge_got): Likewise.
9851 (aarch64_emit_ops_impl): New static global variable.
9852 (aarch64_emit_ops): New target function, return
9853 &aarch64_emit_ops_impl.
9854 (struct linux_target_ops): Install it.
9856 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9858 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
9859 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
9861 * linux-aarch64-ipa.c: New file.
9862 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
9864 (aarch64_get_thread_area): New target method.
9865 (extract_signed_bitfield): New helper function.
9866 (aarch64_decode_ldr_literal): New function.
9867 (enum aarch64_opcodes): New enum.
9868 (struct aarch64_register): New struct.
9869 (struct aarch64_operand): New struct.
9870 (x0): New static global.
9879 (aarch64_register): New helper function.
9880 (register_operand): Likewise.
9881 (immediate_operand): Likewise.
9882 (struct aarch64_memory_operand): New struct.
9883 (offset_memory_operand): New helper function.
9884 (preindex_memory_operand): Likewise.
9885 (enum aarch64_system_control_registers): New enum.
9886 (ENCODE): New macro.
9887 (emit_insn): New helper function.
9888 (emit_b): New function.
9889 (emit_bcond): Likewise.
9890 (emit_cb): Likewise.
9891 (emit_tb): Likewise.
9892 (emit_blr): Likewise.
9893 (emit_stp): Likewise.
9894 (emit_ldp_q_offset): Likewise.
9895 (emit_stp_q_offset): Likewise.
9896 (emit_load_store): Likewise.
9897 (emit_ldr): Likewise.
9898 (emit_ldrsw): Likewise.
9899 (emit_str): Likewise.
9900 (emit_ldaxr): Likewise.
9901 (emit_stxr): Likewise.
9902 (emit_stlr): Likewise.
9903 (emit_data_processing_reg): Likewise.
9904 (emit_data_processing): Likewise.
9905 (emit_add): Likewise.
9906 (emit_sub): Likewise.
9907 (emit_mov): Likewise.
9908 (emit_movk): Likewise.
9909 (emit_mov_addr): Likewise.
9910 (emit_mrs): Likewise.
9911 (emit_msr): Likewise.
9912 (emit_sevl): Likewise.
9913 (emit_wfe): Likewise.
9914 (append_insns): Likewise.
9915 (can_encode_int32_in): New helper function.
9916 (aarch64_relocate_instruction): New function.
9917 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
9918 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
9919 (struct linux_target_ops): Install aarch64_get_thread_area,
9920 aarch64_install_fast_tracepoint_jump_pad and
9921 aarch64_get_min_fast_tracepoint_insn_len.
9923 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9925 * Makefile.in (aarch64-insn.o): New rule.
9926 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
9928 2015-09-21 Yao Qi <yao.qi@linaro.org>
9930 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
9932 2015-09-21 Yao Qi <yao.qi@linaro.org>
9934 * tracepoint.c (max_jump_pad_size): Remove.
9936 2015-09-18 Yao Qi <yao.qi@linaro.org>
9938 * linux-aarch64-low.c: Don't include sys/uio.h.
9939 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
9941 2015-09-16 Wei-cheng Wang <cole945@gmail.com>
9943 * tracepoint.c (eval_result_type): Change prototype.
9944 (condition_true_at_tracepoint): Fix argument to compiled_cond.
9946 2015-09-15 Pedro Alves <palves@redhat.com>
9948 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
9949 Check whether to report exec events instead of checking whether
9950 multiprocess is enabled.
9952 2015-09-15 Pedro Alves <palves@redhat.com>
9955 * remote-utils.c (prepare_resume_reply): Merge
9956 TARGET_WAITKIND_VFORK_DONE switch case with the
9957 TARGET_WAITKIND_FORKED case.
9959 2015-09-15 Yao Qi <yao.qi@linaro.org>
9961 * server.c (handle_query): Check string comparison using
9962 "else if" instead of "if".
9964 2015-09-15 Yao Qi <yao.qi@linaro.org>
9966 * server.c (vCont_supported): New global variable.
9967 (handle_query): Set vCont_supported to 1 if "vContSupported+"
9968 matches. Append ";vContSupported+" to own_buf.
9969 (handle_v_requests): Append ";s;S" to own_buf if target supports
9970 hardware single step or vCont_supported is false.
9971 (capture_main): Set vCont_supported to zero.
9973 2015-09-15 Yao Qi <yao.qi@linaro.org>
9975 * linux-low.c (linux_supports_conditional_breakpoints): Rename
9977 (linux_supports_hardware_single_step): ... New function.
9978 (linux_target_ops): Update.
9979 * lynx-low.c (lynx_target_ops): Set field
9980 supports_hardware_single_step to target_can_do_hardware_single_step.
9981 * nto-low.c (nto_target_ops): Likewise.
9982 * spu-low.c (spu_target_ops): Likewise.
9983 * win32-low.c (win32_target_ops): Likewise.
9984 * target.c (target_can_do_hardware_single_step): New function.
9985 * target.h (struct target_ops) <supports_conditional_breakpoints>:
9986 Remove. <supports_hardware_single_step>: New field.
9987 (target_supports_conditional_breakpoints): Remove.
9988 (target_supports_hardware_single_step): New macro.
9989 (target_can_do_hardware_single_step): Declare.
9990 * server.c (handle_query): Use target_supports_hardware_single_step
9991 instead of target_supports_conditional_breakpoints.
9993 2015-09-15 Yao Qi <yao.qi@linaro.org>
9995 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
9997 (struct linux_target_ops the_low_target): Install
9998 aarch64_linux_siginfo_fixup.
10000 2015-09-11 Don Breazeal <donb@codesourcery.com>
10001 Luis Machado <lgustavo@codesourcery.com>
10003 * linux-low.c (linux_mourn): Static declaration.
10004 (linux_arch_setup): Move in front of
10005 handle_extended_wait.
10006 (linux_arch_setup_thread): New function.
10007 (handle_extended_wait): Handle exec events. Call
10008 linux_arch_setup_thread. Make event_lwp argument a
10009 pointer-to-a-pointer.
10010 (check_zombie_leaders): Do not check stopped threads.
10011 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
10012 (linux_low_filter_event): Add lwp and thread for exec'ing
10013 non-leader thread if leader thread has been deleted.
10014 Refactor code into linux_arch_setup_thread and call it.
10015 Pass child lwp pointer by reference to handle_extended_wait.
10016 (linux_wait_for_event_filtered): Update comment.
10017 (linux_wait_1): Prevent clobbering exec event status.
10018 (linux_supports_exec_events): New function.
10019 (linux_target_ops) <supports_exec_events>: Initialize new member.
10020 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
10022 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
10023 * server.c (report_exec_events): New global variable.
10024 (handle_query): Handle qSupported query for exec-events feature.
10025 (captured_main): Initialize report_exec_events.
10026 * server.h (report_exec_events): Declare new global variable.
10027 * target.h (struct target_ops) <supports_exec_events>: New
10029 (target_supports_exec_events): New macro.
10030 * win32-low.c (win32_target_ops) <supports_exec_events>:
10031 Initialize new member.
10033 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
10035 * linux-low.c (linux_low_enable_btrace): Remove.
10036 (linux_target_ops): Replace linux_low_enable_btrace with
10037 linux_enable_btrace.
10039 2015-09-03 Yao Qi <yao.qi@linaro.org>
10041 * linux-aarch64-low.c (aarch64_insert_point): Call
10042 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
10045 2015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10047 * linux-low.c (check_stopped_by_breakpoint): Use
10048 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
10050 2015-08-27 Pedro Alves <palves@redhat.com>
10052 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
10054 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
10056 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
10057 the XNEW-family equivalent.
10058 (compile_bytecodes): Likewise.
10059 * dll.c (loaded_dll): Likewise.
10060 * event-loop.c (append_callback_event): Likewise.
10061 (create_file_handler): Likewise.
10062 (create_file_event): Likewise.
10063 * hostio.c (handle_open): Likewise.
10064 * inferiors.c (add_thread): Likewise.
10065 (add_process): Likewise.
10066 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
10067 * linux-arm-low.c (arm_new_process): Likewise.
10068 (arm_new_thread): Likewise.
10069 * linux-low.c (add_to_pid_list): Likewise.
10070 (linux_add_process): Likewise.
10071 (handle_extended_wait): Likewise.
10072 (add_lwp): Likewise.
10073 (enqueue_one_deferred_signal): Likewise.
10074 (enqueue_pending_signal): Likewise.
10075 (linux_resume_one_lwp_throw): Likewise.
10076 (linux_resume_one_thread): Likewise.
10077 (linux_read_memory): Likewise.
10078 (linux_write_memory): Likewise.
10079 * linux-mips-low.c (mips_linux_new_process): Likewise.
10080 (mips_linux_new_thread): Likewise.
10081 (mips_add_watchpoint): Likewise.
10082 * linux-x86-low.c (initialize_low_arch): Likewise.
10083 * lynx-low.c (lynx_add_process): Likewise.
10084 * mem-break.c (set_raw_breakpoint_at): Likewise.
10085 (set_breakpoint): Likewise.
10086 (add_condition_to_breakpoint): Likewise.
10087 (add_commands_to_breakpoint): Likewise.
10088 (clone_agent_expr): Likewise.
10089 (clone_one_breakpoint): Likewise.
10090 * regcache.c (new_register_cache): Likewise.
10091 * remote-utils.c (look_up_one_symbol): Likewise.
10092 * server.c (queue_stop_reply): Likewise.
10093 (start_inferior): Likewise.
10094 (queue_stop_reply_callback): Likewise.
10095 (handle_target_event): Likewise.
10096 * spu-low.c (fetch_ppc_memory): Likewise.
10097 (store_ppc_memory): Likewise.
10098 * target.c (set_target_ops): Likewise.
10099 * thread-db.c (thread_db_load_search): Likewise.
10100 (try_thread_db_load_1): Likewise.
10101 * tracepoint.c (add_tracepoint): Likewise.
10102 (add_tracepoint_action): Likewise.
10103 (create_trace_state_variable): Likewise.
10104 (cmd_qtdpsrc): Likewise.
10105 (cmd_qtro): Likewise.
10106 (add_while_stepping_state): Likewise.
10107 * win32-low.c (child_add_thread): Likewise.
10108 (get_image_name): Likewise.
10110 2015-08-25 Yao Qi <yao.qi@linaro.org>
10112 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
10114 2015-08-25 Yao Qi <yao.qi@linaro.org>
10116 * Makefile.in (aarch64-linux.o): New rule.
10117 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
10119 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
10120 (aarch64_init_debug_reg_state): Make it extern.
10121 (aarch64_linux_prepare_to_resume): Remove.
10123 2015-08-25 Yao Qi <yao.qi@linaro.org>
10125 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
10126 lwp_arch_private_info and ptid_of_lwp.
10128 2015-08-25 Yao Qi <yao.qi@linaro.org>
10130 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
10131 Find proc_info by find_process_pid. All callers updated.
10133 2015-08-25 Yao Qi <yao.qi@linaro.org>
10135 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
10137 (debug_reg_change_callback): Remove.
10138 (aarch64_notify_debug_reg_change): Remove.
10140 2015-08-25 Yao Qi <yao.qi@linaro.org>
10142 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
10143 Call current_lwp_ptid.
10145 2015-08-25 Yao Qi <yao.qi@linaro.org>
10147 * linux-aarch64-low.c (debug_reg_change_callback): Use
10150 2015-08-25 Yao Qi <yao.qi@linaro.org>
10152 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
10154 2015-08-25 Yao Qi <yao.qi@linaro.org>
10156 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
10158 2015-08-25 Yao Qi <yao.qi@linaro.org>
10160 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
10163 2015-08-25 Yao Qi <yao.qi@linaro.org>
10165 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
10167 (debug_reg_change_callback): Remove argument entry and add argument
10168 lwp. Remove local variable thread. Don't print thread id in the
10169 debugging output. Don't check whether pid of thread equals to pid.
10170 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
10171 iterate_over_lwps instead find_inferior.
10173 2015-08-24 Pedro Alves <palves@redhat.com>
10175 * inferiors.c (get_first_process): New function.
10176 * inferiors.h (get_first_process): New declaration.
10177 * remote-utils.c (read_ptid): Default to the first process in the
10178 list, instead of to the current thread's process.
10180 2015-08-24 Pedro Alves <palves@redhat.com>
10182 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
10183 * event-loop.c: Likewise.
10184 * remote-utils.c: Likewise.
10185 * tracepoint.c: Likewise.
10187 2015-08-24 Pedro Alves <palves@redhat.com>
10189 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
10192 2015-08-21 Pedro Alves <palves@redhat.com>
10194 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
10195 instead of literal 1.
10197 2015-08-21 Pedro Alves <palves@redhat.com>
10199 * tdesc.c (default_description): Explicitly zero-initialize.
10201 2015-08-21 Pedro Alves <palves@redhat.com>
10204 * inferiors.c (remove_thread): Discard any pending stop reply for
10206 * server.c (remove_all_on_match_pid): Rename to ...
10207 (remove_all_on_match_ptid): ... this. Work with a filter ptid
10209 (discard_queued_stop_replies): Change parameter to a ptid. Now
10211 (handle_v_kill, kill_inferior_callback, captured_main)
10212 (process_serial_event): Adjust.
10213 * server.h (discard_queued_stop_replies): Declare.
10215 2015-08-21 Pedro Alves <palves@redhat.com>
10217 * linux-low.c (wait_for_sigstop): Always switch to no thread
10218 selected if the previously current thread dies.
10219 * lynx-low.c (lynx_request_interrupt): Use the first thread's
10220 process instead of the current thread's.
10221 * remote-utils.c (input_interrupt): Don't check if there's no
10223 * server.c (gdb_read_memory, gdb_write_memory): If setting the
10224 current thread to the general thread fails, error out.
10225 (handle_qxfer_auxv, handle_qxfer_libraries)
10226 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
10227 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
10228 (handle_query): Check if there's a thread selected instead of
10229 checking whether there's any thread in the thread list.
10230 (handle_qxfer_threads, handle_qxfer_btrace)
10231 (handle_qxfer_btrace_conf): Don't error out early if there's no
10232 thread in the thread list.
10233 (handle_v_cont, myresume): Don't set the current thread to the
10235 (process_serial_event) <Hg handling>: Also set thread_id if the
10236 previous general thread is still alive.
10237 (process_serial_event) <g/G handling>: If setting the current
10238 thread to the general thread fails, error out.
10239 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
10240 thread's lwp instead of the current thread's.
10241 * target.c (set_desired_thread): If the desired thread was not
10242 found, leave the current thread pointing to NULL. Return an int
10243 (boolean) indicating success.
10244 * target.h (set_desired_thread): Change return type to int.
10246 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
10248 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
10249 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
10251 (ps_get_thread_area): New function.
10253 2015-08-19 Gary Benson <gbenson@redhat.com>
10255 * hostio.c (handle_pread): Do not attempt to read more data
10256 than hostio_reply_with_data can fit in a packet.
10258 2015-08-18 Joel Brobecker <brobecker@adacore.com>
10260 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
10262 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
10264 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
10266 2015-08-06 Pedro Alves <palves@redhat.com>
10268 * tracepoint.c (expr_eval_result): Now an int.
10270 2015-08-06 Pedro Alves <palves@redhat.com>
10272 * gdbthread.h (struct regcache): Forward declare.
10273 (struct thread_info) <regcache_data>: Now a struct regcache
10275 * inferiors.c (inferior_regcache_data)
10276 (set_inferior_regcache_data): Now work with struct regcache
10278 * inferiors.h (struct regcache): Forward declare.
10279 (inferior_regcache_data, set_inferior_regcache_data): Now work
10280 with struct regcache pointers.
10281 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
10282 (free_register_cache_thread): Remove struct regcache pointer
10285 2015-08-06 Pedro Alves <palves@redhat.com>
10287 * server.c (captured_main): On error, print the exception message
10288 to stderr, and if run_once is set, throw a quit.
10290 2015-08-06 Pedro Alves <palves@redhat.com>
10292 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
10293 the current thread.
10295 2015-08-06 Pedro Alves <palves@redhat.com>
10297 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
10298 reading beyond the passed in buffer length.
10300 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
10302 * tracepoint.c (symbol_list) <required>: Remove.
10304 2015-08-06 Pedro Alves <palves@redhat.com>
10306 * linux-low.c (handle_extended_wait): Set the fork child's suspend
10307 count if stopping and suspending threads.
10308 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
10309 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
10310 (linux_detach): Complete an ongoing step-over.
10311 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
10313 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
10314 (linux_wait_1): If passing a signal to the inferior after
10315 finishing a step-over, unsuspend and re-resume all lwps. If we
10316 see a single-step event but the thread should be continuing, don't
10317 pass the trap to gdb.
10318 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
10319 internal_error instead of gdb_assert.
10320 (enqueue_pending_signal): New function.
10321 (check_ptrace_stopped_lwp_gone): Add debug output.
10322 (start_step_over): Use internal_error instead of gdb_assert.
10323 (complete_ongoing_step_over): New function.
10324 (linux_resume_one_thread): Don't resume a suspended thread.
10325 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
10328 2015-08-06 Pedro Alves <palves@redhat.com>
10330 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
10331 (linux_thread_alive): Use lwp_is_marked_dead.
10332 (extended_event_reported): Delete.
10333 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
10334 instead of extended_event_reported.
10335 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
10337 (lwp_is_marked_dead): New function.
10338 (lwp_running): Use lwp_is_marked_dead.
10339 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
10342 2015-08-06 Pedro Alves <palves@redhat.com>
10344 * linux-low.c (linux_wait_1): Move fork event output out of the
10345 !report_to_gdb check. Pass event_child->waitstatus to
10346 target_waitstatus_to_string instead of ourstatus.
10348 2015-08-04 Yao Qi <yao.qi@linaro.org>
10350 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
10351 if current_thread is 32 bit.
10353 2015-08-04 Yao Qi <yao.qi@linaro.org>
10355 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
10356 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
10357 * server.c (extended_protocol): Remove "static".
10358 * server.h (extended_protocol): Declare it.
10360 2015-08-04 Yao Qi <yao.qi@linaro.org>
10362 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
10363 both aarch64 and aarch32.
10364 (aarch64_set_pc): Likewise.
10366 2015-08-04 Yao Qi <yao.qi@linaro.org>
10368 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
10369 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
10370 arm-with-neon.xml to srv_xmlfiles.
10371 * linux-aarch64-low.c: Include linux-aarch32-low.h.
10372 (is_64bit_tdesc): New function.
10373 (aarch64_linux_read_description): New function.
10374 (aarch64_arch_setup): Call aarch64_linux_read_description.
10375 (regs_info): Rename to regs_info_aarch64.
10376 (aarch64_regs_info): Return right regs_info.
10377 (initialize_low_arch): Call initialize_low_arch_aarch32.
10379 2015-08-04 Yao Qi <yao.qi@linaro.org>
10381 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
10382 * linux-aarch32-low.c: New file.
10383 * linux-aarch32-low.h: New file.
10384 * linux-arm-low.c (arm_fill_gregset): Move it to
10385 linux-aarch32-low.c.
10386 (arm_store_gregset): Likewise.
10387 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
10388 (arm_store_vfpregset): Call arm_store_vfpregset_num.
10389 (arm_arch_setup): Check if PTRACE_GETREGSET works.
10390 (regs_info): Rename to regs_info_arm.
10391 (arm_regs_info): Return regs_info_aarch32 if
10392 have_ptrace_getregset is 1 and target description is
10393 arm_with_neon or arm_with_vfpv3.
10394 (initialize_low_arch): Don't call init_registers_arm_with_neon.
10395 Call initialize_low_arch_aarch32 instead.
10397 2015-08-04 Yao Qi <yao.qi@linaro.org>
10399 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
10400 * linux-low.c: ... here.
10401 * linux-low.h (have_ptrace_getregset): Declare it.
10403 2015-08-04 Pedro Alves <palves@redhat.com>
10405 * thread-db.c (struct thread_db): Use new typedefs.
10406 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
10408 (disable_thread_event_reporting): Cast result of dlsym to
10409 destination function pointer type.
10410 (thread_db_mourn): Use td_ta_delete_ftype.
10412 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
10414 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
10416 (CDX_BREAKPOINT): Define for R2.
10417 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
10418 (the_low_target): Add comments.
10420 2015-07-30 Yao Qi <yao.qi@linaro.org>
10422 * linux-arm-low.c (arm_hwcap): Remove it.
10423 (arm_read_description): New local variable arm_hwcap. Don't
10424 set arm_hwcap to zero.
10426 2015-07-30 Yao Qi <yao.qi@linaro.org>
10428 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
10429 Use regcache->tdesc instead.
10430 (arm_store_wmmxregset): Likewise.
10431 (arm_fill_vfpregset): Likewise.
10432 (arm_store_vfpregset): Likewise.
10434 2015-07-30 Yao Qi <yao.qi@linaro.org>
10436 * linux-arm-low.c: Include arch/arm.h.
10437 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
10438 (arm_store_gregset): Likewise.
10440 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
10442 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
10443 ptrace's 4th parameter.
10445 2015-07-27 Yao Qi <yao.qi@linaro.org>
10447 * configure.srv (case aarch64*-*-linux*): Don't set
10450 2015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
10452 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
10454 * linux-arm-low.c: Likewise.
10455 * linux-cris-low.c: Likewise.
10456 * linux-crisv32-low.c: Likewise.
10457 * linux-low.c: Likewise.
10458 * linux-m68k-low.c: Likewise.
10459 * linux-mips-low.c: Likewise.
10460 * linux-nios2-low.c: Likewise.
10461 * linux-s390-low.c: Likewise.
10462 * linux-sparc-low.c: Likewise.
10463 * linux-tic6x-low.c: Likewise.
10464 * linux-tile-low.c: Likewise.
10465 * linux-x86-low.c: Likewise.
10467 2015-07-24 Pedro Alves <palves@redhat.com>
10469 * config.in: Regenerate.
10470 * configure: Regenerate.
10472 2015-07-24 Pedro Alves <palves@redhat.com>
10474 * acinclude.m4: Include ../ptrace.m4.
10475 * configure.ac: Call GDB_AC_PTRACE.
10476 * config.in, configure: Regenerate.
10478 2015-07-24 Yao Qi <yao.qi@linaro.org>
10480 * linux-low.c (linux_create_inferior): Remove setting to
10481 proc->priv->new_inferior.
10482 (linux_attach): Likewise.
10483 (linux_low_filter_event): Likewise.
10484 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
10486 2015-07-24 Yao Qi <yao.qi@linaro.org>
10488 * linux-low.c (linux_arch_setup): New function.
10489 (linux_low_filter_event): If proc->tdesc is NULL and
10490 proc->attached is true, call the_low_target.arch_setup.
10491 Otherwise, keep status pending, and return.
10492 (linux_resume_one_lwp_throw): Don't call get_pc if
10493 thread->while_stepping isn't NULL. Don't call
10494 get_thread_regcache if proc->tdesc is NULL.
10495 (need_step_over_p): Return 0 if proc->tdesc is NULL.
10496 (linux_target_ops): Install arch_setup.
10497 * server.c (start_inferior): Call the_target->arch_setup.
10498 * target.h (struct target_ops) <arch_setup>: New field.
10499 (target_arch_setup): New marco.
10500 * lynx-low.c (lynx_target_ops): Update.
10501 * nto-low.c (nto_target_ops): Update.
10502 * spu-low.c (spu_target_ops): Update.
10503 * win32-low.c (win32_target_ops): Update.
10505 2015-07-24 Yao Qi <yao.qi@linaro.org>
10507 * linux-low.c (linux_add_process): Don't set
10508 proc->priv->new_inferior.
10509 (linux_create_inferior): Set proc->priv->new_inferior to 1.
10510 (linux_attach): Likewise.
10512 2015-07-24 Yao Qi <yao.qi@linaro.org>
10514 * server.c (start_inferior): Code refactor.
10516 2015-07-24 Yao Qi <yao.qi@linaro.org>
10518 * server.c (process_serial_event): Set general_thread.
10520 2015-07-21 Yao Qi <yao.qi@linaro.org>
10522 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
10523 aarch64_linux_get_debug_reg_capacity.
10525 2015-07-17 Yao Qi <yao.qi@linaro.org>
10527 * Makefile.in (aarch64-linux-hw-point.o): New rule.
10528 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
10529 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
10530 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
10531 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
10532 (AARCH64_HWP_ALIGNMENT): Likewise.
10533 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
10534 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
10535 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
10536 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
10537 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
10538 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
10539 (struct aarch64_debug_reg_state): Likewise.
10540 (struct arch_lwp_info): Likewise.
10541 (aarch64_align_watchpoint): Likewise.
10542 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
10543 (aarch64_watchpoint_length): Likewise.
10544 (aarch64_point_encode_ctrl_reg): Likewise
10545 (aarch64_point_is_aligned): Likewise.
10546 (aarch64_align_watchpoint): Likewise.
10547 (aarch64_linux_set_debug_regs):
10548 (aarch64_dr_state_insert_one_point): Likewise.
10549 (aarch64_dr_state_remove_one_point): Likewise.
10550 (aarch64_handle_breakpoint): Likewise.
10551 (aarch64_handle_aligned_watchpoint): Likewise.
10552 (aarch64_handle_unaligned_watchpoint): Likewise.
10553 (aarch64_handle_watchpoint): Likewise.
10555 2015-07-17 Yao Qi <yao.qi@linaro.org>
10557 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
10558 and don't aarch64_get_debug_reg_state. All callers update.
10559 (aarch64_handle_aligned_watchpoint): Likewise.
10560 (aarch64_handle_unaligned_watchpoint): Likewise.
10561 (aarch64_handle_watchpoint): Likewise.
10562 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
10563 (aarch64_remove_point): Likewise.
10565 2015-07-17 Yao Qi <yao.qi@linaro.org>
10567 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
10569 (aarch64_handle_unaligned_watchpoint): Likewise.
10571 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10573 Revert the previous 3 commits:
10574 Move gdb_regex* to common/
10575 Move linux_find_memory_regions_full & co.
10576 gdbserver build-id attribute generator
10578 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10579 Jan Kratochvil <jan.kratochvil@redhat.com>
10581 gdbserver build-id attribute generator.
10582 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
10583 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
10584 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
10586 (get_dynamic): Use find_pdhr to traverse program headers.
10587 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
10588 (compare_mapping_entry_range, struct find_memory_region_callback_data)
10589 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
10590 (get_hex_build_id): New.
10591 (linux_qxfer_libraries_svr4): Add optional build-id attribute
10592 to reply XML document.
10594 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10595 Jan Kratochvil <jan.kratochvil@redhat.com>
10597 * target.c: Include target/target-utils.h and fcntl.h.
10598 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
10599 (target_fileio_read_stralloc): New functions.
10601 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10603 * Makefile.in (OBS): Add gdb_regex.o.
10604 (gdb_regex.o): New.
10605 * config.in: Rebuilt.
10606 * configure: Rebuilt.
10608 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10609 Jan Kratochvil <jan.kratochvil@redhat.com>
10611 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
10612 * Makefile.in (OBS): Add target-utils.o.
10613 (linux-maps.o, target-utils.o): New.
10614 * configure.srv (srv_linux_obj): Add linux-maps.o.
10616 2015-07-15 Pierre Langlois <pierre.langlois@arm.com>
10618 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
10619 function, return 1.
10620 (the_low_target): Install it.
10622 2015-07-14 Pedro Alves <palves@redhat.com>
10624 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
10625 Instead, ignore ECHILD, and throw an error for other errnos.
10627 2015-07-10 Pedro Alves <palves@redhat.com>
10629 * event-loop.c (struct callback_event) <data>: Change type to
10630 gdb_client_data instance instead of gdb_client_data pointer.
10631 (append_callback_event): Adjust.
10633 2015-07-10 Pierre Langlois <pierre.langlois@arm.com>
10635 * linux-aarch64-low.c: Add comments for each linux_target_ops
10636 method. Remove comments already covered in target_ops and
10637 linux_target_ops definitions.
10638 (the_low_target): Add comments for each unimplemented method.
10640 2015-07-09 Yao Qi <yao.qi@linaro.org>
10642 * linux-aarch64-low.c (aarch64_regmap): Remove.
10643 (aarch64_usrregs_info): Remove.
10644 (regs_info): Set field usrregs to NULL.
10646 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
10648 * linux-low.c: Include "rsp-low.h"
10649 (linux_low_encode_pt_config, linux_low_encode_raw): New.
10650 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
10651 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
10652 (handle_btrace_enable_pt): New.
10653 (handle_btrace_general_set): Support "pt".
10654 (handle_btrace_conf_general_set): Support "pt:size".
10656 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10658 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
10661 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10663 * linux-aarch64-low.c: Remove comment about endianness.
10664 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
10665 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
10668 2015-06-24 Gary Benson <gbenson@redhat.com>
10670 * linux-i386-ipa.c (stdint.h): Do not include.
10671 * lynx-i386-low.c (stdint.h): Likewise.
10672 * lynx-ppc-low.c (stdint.h): Likewise.
10673 * mem-break.c (stdint.h): Likewise.
10674 * thread-db.c (stdint.h): Likewise.
10675 * tracepoint.c (stdint.h): Likewise.
10676 * win32-low.c (stdint.h): Likewise.
10678 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
10680 * server.c (write_qxfer_response): Update call to
10681 remote_escape_output.
10683 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
10684 Jan Kratochvil <jan.kratochvil@redhat.com>
10686 Merge multiple hex conversions.
10687 * gdbreplay.c (tohex): Rename to 'fromhex'.
10688 (logchar): Use fromhex.
10690 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10692 * server.c (handle_qxfer_libraries): Set `version' attribute for
10695 2015-06-10 Gary Benson <gbenson@redhat.com>
10697 * target.h (struct target_ops) <multifs_open>: New field.
10698 <multifs_unlink>: Likewise.
10699 <multifs_readlink>: Likewise.
10700 * linux-low.c (nat/linux-namespaces.h): New include.
10701 (linux_target_ops): Initialize the_target->multifs_open,
10702 the_target->multifs_unlink and the_target->multifs_readlink.
10703 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
10704 * hostio.c (hostio_fs_pid): New static variable.
10705 (hostio_handle_new_gdb_connection): New function.
10706 (handle_setfs): Likewise.
10707 (handle_open): Use the_target->multifs_open as appropriate.
10708 (handle_unlink): Use the_target->multifs_unlink as appropriate.
10709 (handle_readlink): Use the_target->multifs_readlink as
10711 (handle_vFile): Handle vFile:setfs packets.
10712 * server.c (handle_query): Call hostio_handle_new_gdb_connection
10713 after target_handle_new_gdb_connection.
10715 2015-06-10 Gary Benson <gbenson@redhat.com>
10717 * configure.ac (AC_CHECK_FUNCS): Add setns.
10718 * config.in: Regenerate.
10719 * configure: Likewise.
10720 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
10721 (linux-namespaces.o): New rule.
10722 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
10724 2015-06-09 Gary Benson <gbenson@redhat.com>
10726 * hostio.c (handle_open): Process mode argument with
10727 fileio_to_host_mode.
10729 2015-06-01 Yao Qi <yao.qi@linaro.org>
10731 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
10732 * linux-x86-low.c: Likewise.
10734 2015-05-28 Don Breazeal <donb@codesourcery.com>
10736 * linux-low.c (handle_extended_wait): Initialize
10737 thread_info.last_resume_kind for new fork children.
10739 2015-05-15 Pedro Alves <palves@redhat.com>
10741 * target.h (target_handle_new_gdb_connection): Rewrite using if
10742 wrapped in do/while.
10744 2015-05-14 Joel Brobecker <brobecker@adacore.com>
10746 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
10747 * configure, config.in: Regenerate.
10748 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
10751 2015-05-12 Don Breazeal <donb@codesourcery.com>
10753 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
10754 PTRACE_EVENT_VFORK_DONE.
10755 (linux_low_ptrace_options, extended_event_reported): Add vfork
10757 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
10758 and "vforkdone" for RSP 'T' Stop Reply Packet.
10759 * server.h (report_vfork_events): Declare
10762 2015-05-12 Don Breazeal <donb@codesourcery.com>
10764 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
10765 (the_low_target) <new_fork>: Initialize new member.
10766 * linux-arm-low.c (arm_new_fork): New function.
10767 (the_low_target) <new_fork>: Initialize new member.
10768 * linux-low.c (handle_extended_wait): Call new target function
10770 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
10771 * linux-mips-low.c (mips_add_watchpoint): New function
10772 extracted from mips_insert_point.
10773 (the_low_target) <new_fork>: Initialize new member.
10774 (mips_linux_new_fork): New function.
10775 (mips_insert_point): Call mips_add_watchpoint.
10776 * linux-x86-low.c (x86_linux_new_fork): New function.
10777 (the_low_target) <new_fork>: Initialize new member.
10779 2015-05-12 Don Breazeal <donb@codesourcery.com>
10781 * linux-low.c (handle_extended_wait): Implement return value,
10782 rename argument 'event_child' to 'event_lwp', handle
10783 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
10784 (linux_low_ptrace_options): New function.
10785 (linux_low_filter_event): Call linux_low_ptrace_options,
10786 use different argument fo linux_enable_event_reporting,
10787 use return value from handle_extended_wait.
10788 (extended_event_reported): New function.
10789 (linux_wait_1): Call extended_event_reported and set
10790 status to report fork events.
10791 (linux_write_memory): Add pid to debug message.
10792 (reset_lwp_ptrace_options_callback): New function.
10793 (linux_handle_new_gdb_connection): New function.
10794 (linux_target_ops): Initialize new structure member.
10795 * linux-low.h (struct lwp_info) <waitstatus>: New member.
10796 * lynx-low.c: Initialize new structure member.
10797 * remote-utils.c (prepare_resume_reply): Implement stop reason
10798 "fork" for "T" stop message.
10799 * server.c (handle_query): Call handle_new_gdb_connection.
10800 * server.h (report_fork_events): Declare global flag.
10801 * target.h (struct target_ops) <handle_new_gdb_connection>:
10803 (target_handle_new_gdb_connection): New macro.
10804 * win32-low.c: Initialize new structure member.
10806 2015-05-12 Don Breazeal <donb@codesourcery.com>
10808 * mem-break.c (APPEND_TO_LIST): Define macro.
10809 (clone_agent_expr): New function.
10810 (clone_one_breakpoint): New function.
10811 (clone_all_breakpoints): New function.
10812 * mem-break.h: Declare new functions.
10814 2015-05-12 Don Breazeal <donb@codesourcery.com>
10816 * linux-low.c (linux_supports_fork_events): New function.
10817 (linux_supports_vfork_events): New function.
10818 (linux_target_ops): Initialize new structure members.
10819 (initialize_low): Call linux_check_ptrace_features.
10820 * lynx-low.c (lynx_target_ops): Initialize new structure
10822 * server.c (report_fork_events, report_vfork_events):
10824 (handle_query): Add new features to qSupported packet and
10826 (captured_main): Initialize new global variables.
10827 * target.h (struct target_ops) <supports_fork_events>:
10829 <supports_vfork_events>: New member.
10830 (target_supports_fork_events): New macro.
10831 (target_supports_vfork_events): New macro.
10832 * win32-low.c (win32_target_ops): Initialize new structure
10835 2015-05-12 Gary Benson <gbenson@redhat.com>
10837 * server.c (handle_qxfer_exec_file): Use current process
10840 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
10842 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
10843 Remove HAVE_PTRACE_GETREGS conditionals.
10844 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
10845 instead of PTRACE_GETREGS and PTRACE_SETREGS.
10847 2015-05-08 Yao Qi <yao.qi@linaro.org>
10849 * linux-low.c (linux_supports_conditional_breakpoints): New
10851 (linux_target_ops): Install new target method.
10852 * lynx-low.c (lynx_target_ops): Install NULL hook for
10853 supports_conditional_breakpoints.
10854 * nto-low.c (nto_target_ops): Likewise.
10855 * spu-low.c (spu_target_ops): Likewise.
10856 * win32-low.c (win32_target_ops): Likewise.
10857 * server.c (handle_query): Check
10858 target_supports_conditional_breakpoints.
10859 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10861 (target_supports_conditional_breakpoints): New macro.
10863 2015-05-06 Pedro Alves <palves@redhat.com>
10866 * server.c (start_inferior): If the process exits, mourn it.
10868 2015-04-21 Gary Benson <gbenson@redhat.com>
10870 * hostio.c (fileio_open_flags_to_host): Factored out to
10871 fileio_to_host_openflags in common/fileio.c. Single use
10874 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
10876 * linux-xtensa-low.c (xtensa_fill_gregset)
10877 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
10880 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
10882 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
10883 (regs_info): Replace usrregs pointer with NULL.
10885 2015-04-17 Gary Benson <gbenson@redhat.com>
10887 * target.h (struct target_ops) <pid_to_exec_file>: New field.
10888 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
10889 * server.c (handle_qxfer_exec_file): New function.
10890 (qxfer_packets): Add exec-file entry.
10891 (handle_query): Report qXfer:exec-file:read as supported packet.
10893 2015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
10895 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
10897 2015-04-09 Gary Benson <gbenson@redhat.com>
10899 * hostio-errno.c (errno_to_fileio_error): Remove function.
10900 Update caller to use remote_fileio_to_fio_error.
10902 2015-04-09 Yao Qi <yao.qi@linaro.org>
10904 * linux-low.c (linux_insert_point): Call
10905 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
10906 (linux_remove_point): Call remove_memory_breakpoint if type is
10908 * linux-x86-low.c (x86_insert_point): Don't call
10909 insert_memory_breakpoint.
10910 (x86_remove_point): Don't call remove_memory_breakpoint.
10912 2015-04-01 Pedro Alves <palves@redhat.com>
10913 Cleber Rosa <crosa@redhat.com>
10915 * server.c (gdbserver_usage): Reorganize and extend the usage
10918 2015-03-24 Pedro Alves <palves@redhat.com>
10920 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
10921 output. Also dump TRAP_TRACE.
10922 (linux_low_filter_event): In debug output, distinguish a
10923 resume_stop SIGSTOP from a delayed SIGSTOP.
10925 2015-03-24 Gary Benson <gbenson@redhat.com>
10927 * linux-x86-low.c (x86_linux_new_thread): Moved to
10929 (x86_linux_prepare_to_resume): Likewise.
10931 2015-03-24 Gary Benson <gbenson@redhat.com>
10933 * Makefile.in (x86-linux-dregs.o): New rule.
10934 * configure.srv: Add x86-linux-dregs.o to relevant targets.
10935 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
10936 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
10937 (x86_linux_dr_get): Likewise.
10938 (x86_linux_dr_set): Likewise.
10939 (update_debug_registers_callback): Likewise.
10940 (x86_linux_dr_set_addr): Likewise.
10941 (x86_linux_dr_get_addr): Likewise.
10942 (x86_linux_dr_set_control): Likewise.
10943 (x86_linux_dr_get_control): Likewise.
10944 (x86_linux_dr_get_status): Likewise.
10945 (x86_linux_update_debug_registers): Likewise.
10947 2015-03-24 Gary Benson <gbenson@redhat.com>
10949 * linux-x86-low.c (x86_linux_update_debug_registers):
10950 New function, factored out from...
10951 (x86_linux_prepare_to_resume): ...this.
10953 2015-03-24 Gary Benson <gbenson@redhat.com>
10955 * linux-x86-low.c (x86_linux_dr_get): Update comments.
10956 (x86_linux_dr_set): Likewise.
10957 (update_debug_registers_callback): Likewise.
10958 (x86_linux_dr_set_addr): Likewise.
10959 (x86_linux_dr_get_addr): Likewise.
10960 (x86_linux_dr_set_control): Likewise.
10961 (x86_linux_dr_get_control): Likewise.
10962 (x86_linux_dr_get_status): Likewise.
10963 (x86_linux_prepare_to_resume): Likewise.
10965 2015-03-24 Gary Benson <gbenson@redhat.com>
10967 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
10968 Use perror_with_name. Pass string through gettext.
10969 (x86_linux_dr_set): Likewise.
10971 2015-03-24 Gary Benson <gbenson@redhat.com>
10973 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
10974 (x86_linux_dr_set_addr): ...this.
10975 (x86_dr_low_get_addr): Rename to...
10976 (x86_linux_dr_get_addr): ...this.
10977 (x86_dr_low_set_control): Rename to...
10978 (x86_linux_dr_set_control): ...this.
10979 (x86_dr_low_get_control): Rename to...
10980 (x86_linux_dr_get_control): ...this.
10981 (x86_dr_low_get_status): Rename to...
10982 (x86_linux_dr_get_status): ...this.
10983 (x86_dr_low): Update with new function names.
10985 2015-03-24 Gary Benson <gbenson@redhat.com>
10987 * Makefile.in (x86-linux.o): New rule.
10988 * configure.srv: Add x86-linux.o to relevant targets.
10989 * linux-low.c (lwp_set_arch_private_info): New function.
10990 (lwp_arch_private_info): Likewise.
10991 * linux-x86-low.c: Include nat/x86-linux.h.
10992 (arch_lwp_info): Removed structure.
10993 (update_debug_registers_callback):
10994 Use lwp_set_debug_registers_changed.
10995 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
10996 and lwp_set_debug_registers_changed.
10997 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
10999 2015-03-24 Gary Benson <gbenson@redhat.com>
11001 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
11002 * linux-arm-low.c (arm_new_thread): Likewise.
11003 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
11004 * linux-mips-low.c (mips_linux_new_thread): Likewise.
11005 * linux-x86-low.c (x86_linux_new_thread): Likewise.
11006 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
11008 2015-03-24 Gary Benson <gbenson@redhat.com>
11010 * linux-low.c (ptid_of_lwp): New function.
11011 (lwp_is_stopped): Likewise.
11012 (lwp_stop_reason): Likewise.
11013 * linux-x86-low.c (update_debug_registers_callback):
11014 Use lwp_is_stopped.
11015 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
11018 2015-03-24 Gary Benson <gbenson@redhat.com>
11020 * linux-low.h (linux_stop_lwp): Remove declaration.
11022 2015-03-24 Gary Benson <gbenson@redhat.com>
11024 * linux-low.h: Include nat/linux-nat.h.
11025 * linux-low.c (iterate_over_lwps_args): New structure.
11026 (iterate_over_lwps_filter): New function.
11027 (iterate_over_lwps): Likewise.
11028 * linux-x86-low.c (update_debug_registers_callback):
11029 Update signature to what iterate_over_lwps expects.
11030 Remove PID check that iterate_over_lwps now performs.
11031 (x86_dr_low_set_addr): Use iterate_over_lwps.
11032 (x86_dr_low_set_control): Likewise.
11034 2015-03-24 Gary Benson <gbenson@redhat.com>
11036 * linux-x86-low.c (x86_debug_reg_state): New function.
11037 (x86_linux_prepare_to_resume): Use the above.
11039 2015-03-24 Gary Benson <gbenson@redhat.com>
11041 * linux-low.c (current_lwp_ptid): New function.
11042 * linux-x86-low.c: Include nat/linux-nat.h.
11043 (x86_dr_low_get_addr): Use current_lwp_ptid.
11044 (x86_dr_low_get_control): Likewise.
11045 (x86_dr_low_get_status): Likewise.
11047 2015-03-20 Pedro Alves <palves@redhat.com>
11049 * tracepoint.c (cmd_qtstatus): Make "str" const.
11051 2015-03-20 Pedro Alves <palves@redhat.com>
11053 * server.c (handle_general_set): Make "req_str" const.
11055 2015-03-19 Pedro Alves <palves@redhat.com>
11057 * linux-low.c (linux_resume_one_lwp): Rename to ...
11058 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
11059 instead call perror_with_name.
11060 (check_ptrace_stopped_lwp_gone): New function.
11061 (linux_resume_one_lwp): Reimplement as wrapper around
11062 linux_resume_one_lwp_throw that swallows errors if the LWP is
11065 2015-03-19 Pedro Alves <palves@redhat.com>
11067 * linux-low.c (count_events_callback, select_event_lwp_callback):
11068 No longer check whether the thread has resume_stop as last resume
11071 2015-03-19 Pedro Alves <palves@redhat.com>
11073 * linux-low.c (count_events_callback, select_event_lwp_callback):
11074 Use the lwp's status_pending_p field, not the thread's.
11076 2015-03-19 Pedro Alves <palves@redhat.com>
11078 * linux-low.c (select_event_lwp_callback): Update comments to
11079 no longer mention SIGTRAP.
11081 2015-03-18 Gary Benson <gbenson@redhat.com>
11083 * server.c (handle_query): Do not report vFile:fstat as supported.
11085 2015-03-11 Gary Benson <gbenson@redhat.com>
11087 * hostio.c (sys/types.h): New include.
11088 (sys/stat.h): Likewise.
11089 (common-remote-fileio.h): Likewise.
11090 (handle_fstat): New function.
11091 (handle_vFile): Handle vFile:fstat packets.
11093 2015-03-11 Gary Benson <gbenson@redhat.com>
11095 * configure.ac (AC_CHECK_MEMBERS): Add checks for
11096 struct stat.st_blocks and struct stat.st_blksize.
11097 * configure: Regenerate.
11098 * config.in: Likewise.
11099 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
11100 (OBS): Add common-remote-fileio.o.
11101 (common-remote-fileio.o): New rule.
11103 2015-03-09 Pedro Alves <palves@redhat.com>
11105 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
11106 'struct sockaddr' pointer in 'accept' call.
11108 2015-03-09 Pedro Alves <palves@redhat.com>
11111 2015-03-07 Pedro Alves <palves@redhat.com>
11112 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11113 or <winsock2.h> here. Instead include "gdb_socket.h".
11114 (remote_open): Use union gdb_sockaddr_u.
11115 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11116 or <winsock2.h> here. Instead include "gdb_socket.h".
11117 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11118 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11120 (init_named_socket, gdb_agent_helper_thread): Use union
11123 2015-03-07 Pedro Alves <palves@redhat.com>
11125 * configure.ac (build_warnings): Move
11126 -Wdeclaration-after-statement to the C-specific set.
11127 * configure: Regenerate.
11129 2015-03-07 Pedro Alves <palves@redhat.com>
11131 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11132 or <winsock2.h> here. Instead include "gdb_socket.h".
11133 (remote_open): Use union gdb_sockaddr_u.
11134 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11135 or <winsock2.h> here. Instead include "gdb_socket.h".
11136 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11137 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11139 (init_named_socket, gdb_agent_helper_thread): Use union
11142 2015-03-07 Pedro Alves <palves@redhat.com>
11144 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
11147 2015-03-06 Yao Qi <yao.qi@linaro.org>
11149 * linux-aarch64-low.c (aarch64_insert_point): Use
11150 show_debug_regs as a boolean.
11151 (aarch64_remove_point): Likewise.
11153 2015-03-05 Pedro Alves <palves@redhat.com>
11155 * lynx-low.c (lynx_target_ops): Install NULL hooks for
11156 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
11157 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
11158 * nto-low.c (nto_target_ops): Likewise.
11159 * spu-low.c (spu_target_ops): Likewise.
11160 * win32-low.c (win32_target_ops): Likewise.
11162 2015-03-04 Pedro Alves <palves@redhat.com>
11164 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
11165 Decide whether a breakpoint triggered based on the SIGTRAP's
11167 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
11168 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
11169 (linux_low_filter_event): Check for breakpoints before checking
11171 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
11173 (linux_stopped_by_sw_breakpoint)
11174 (linux_supports_stopped_by_sw_breakpoint)
11175 (linux_stopped_by_hw_breakpoint)
11176 (linux_supports_stopped_by_hw_breakpoint): New functions.
11177 (linux_target_ops): Install new target methods.
11179 2015-03-04 Pedro Alves <palves@redhat.com>
11181 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
11182 * server.c (swbreak_feature, hwbreak_feature): New globals.
11183 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
11184 (captured_main): Clear swbreak_feature and hwbreak_feature.
11185 * server.h (swbreak_feature, hwbreak_feature): Declare.
11186 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
11187 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
11188 supports_stopped_by_hw_breakpoint>: New fields.
11189 (target_supports_stopped_by_sw_breakpoint)
11190 (target_stopped_by_sw_breakpoint)
11191 (target_supports_stopped_by_hw_breakpoint)
11192 (target_stopped_by_hw_breakpoint): Declare.
11194 2015-03-04 Pedro Alves <palves@redhat.com>
11196 enum lwp_stop_reason -> enum target_stop_reason
11197 * linux-low.c (check_stopped_by_breakpoint): Adjust.
11198 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
11199 (linux_wait_1, stuck_in_jump_pad_callback)
11200 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
11201 (linux_stopped_by_watchpoint):
11202 * linux-low.h (enum lwp_stop_reason): Delete.
11203 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
11204 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11206 2015-03-04 Yao Qi <yao.qi@linaro.org>
11208 * Makefile.in (SFILES): Add linux-aarch64-low.c.
11210 2015-03-03 Gary Benson <gbenson@redhat.com>
11212 * hostio.c (handle_vFile): Fix prefix lengths.
11214 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
11216 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
11219 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
11221 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
11222 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
11223 (clean): Add "rm -f" for above C files.
11224 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
11225 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
11226 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
11227 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
11228 * linux-s390-low.c (HWCAP_S390_VX): New macro.
11229 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
11230 (init_registers_s390x_vx_linux64)
11231 (init_registers_s390x_tevx_linux64)
11232 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
11233 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
11235 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
11236 (s390_store_vxrs_high): New functions.
11237 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
11239 (s390_arch_setup): Add logic for selecting one of the new target
11240 descriptions. Activate the new vector regsets if applicable.
11241 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
11242 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
11243 and init_registers_s390x_tevx_linux64.
11245 2015-03-01 Pedro Alves <palves@redhat.com>
11247 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
11250 2015-02-27 Pedro Alves <palves@redhat.com>
11252 * linux-x86-low.c (u_debugreg_offset): New function.
11253 (x86_linux_dr_get, x86_linux_dr_set): Use it.
11255 2015-02-27 Pedro Alves <palves@redhat.com>
11257 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
11258 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
11259 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
11260 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
11261 (ps_lsetfpregs, ps_getpid)
11262 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
11263 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
11264 (ps_lsetxregs, ps_plog): Declare.
11266 2015-02-27 Pedro Alves <palves@redhat.com>
11268 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
11269 IP_AGENT_EXPORT_FUNC.
11270 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
11271 IP_AGENT_EXPORT_FUNC.
11272 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
11273 (IP_AGENT_EXPORT): Delete.
11274 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11275 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11276 (gdb_trampoline_buffer_error, collecting, gdb_collect)
11277 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
11278 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
11279 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
11280 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
11281 (traceframe_read_count, traceframe_write_count)
11282 (traceframes_created, trace_state_variables, get_raw_reg)
11283 (get_trace_state_variable_value, set_trace_state_variable_value)
11284 (ust_loaded, helper_thread_id, cmd_buf): Use
11285 IPA_SYM_EXPORTED_NAME.
11286 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
11287 (tracepoints) Use IP_AGENT_EXPORT_VAR.
11288 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
11289 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11290 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
11291 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
11292 EXTERN_C_PUSH/EXTERN_C_POP.
11293 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
11294 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
11295 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11296 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
11297 (traceframe_write_count, traceframe_read_count)
11298 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
11299 (about_to_request_buffer_space, get_trace_state_variable_value)
11300 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
11301 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
11302 EXTERN_C_PUSH/EXTERN_C_POP.
11303 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
11304 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
11305 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
11306 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11307 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11308 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11309 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
11310 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
11312 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
11313 (IP_AGENT_EXPORT_VAR_DECL): Define.
11314 (tracing): Declare.
11315 (gdb_agent_get_raw_reg): Declare.
11317 2015-02-27 Tom Tromey <tromey@redhat.com>
11318 Pedro Alves <palves@redhat.com>
11320 Rename symbols whose names are reserved C++ keywords throughout.
11322 2015-02-27 Pedro Alves <palves@redhat.com>
11324 * Makefile.in (COMPILER): New, get it from autoconf.
11325 (CXX): Get from autoconf instead.
11326 (COMPILE.pre): Use COMPILER.
11327 (CC-LD): Rename to ...
11328 (CC_LD): ... this. Use COMPILER.
11329 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
11330 (CXX_FOR_TARGET): Default to g++ instead of gcc.
11331 * acinclude.m4: Include build-with-cxx.m4.
11332 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
11333 Disable -Werror by default if building in C++ mode.
11334 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
11335 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
11336 the C++ compiler. Save/restore CXXFLAGS too.
11337 * configure: Regenerate.
11339 2015-02-27 Pedro Alves <palves@redhat.com>
11341 * acinclude.m4: Include libiberty.m4.
11342 * configure.ac: Call libiberty_INIT.
11343 * config.in, configure: Regenerate.
11345 2015-02-26 Pedro Alves <palves@redhat.com>
11347 * linux-low.c (linux_wait_1): When incrementing the PC past a
11348 program breakpoint always use the_low_target.breakpoint_len as
11349 increment, rather than the maximum between that and
11350 the_low_target.decr_pc_after_break.
11352 2015-02-23 Pedro Alves <palves@redhat.com>
11354 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
11355 thread was doing a step-over; always adjust the PC if
11356 we stepped over a permanent breakpoint.
11357 (linux_wait_1): If we stepped over breakpoint that was on top of a
11358 permanent breakpoint, manually advance the PC past it.
11360 2015-02-23 Pedro Alves <palves@redhat.com>
11362 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
11364 (x86_fill_gregset, x86_store_gregset): Use it when handling
11367 2015-02-20 Pedro Alves <palves@redhat.com>
11369 * thread-db.c: Include "nat/linux-procfs.h".
11370 (thread_db_init): Skip listing new threads if the kernel supports
11371 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
11373 2015-02-20 Pedro Alves <palves@redhat.com>
11375 * linux-low.c (status_pending_p_callback): Use ptid_match.
11377 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
11379 PR breakpoints/16812
11380 * linux-low.c (wstatus_maybe_breakpoint): Remove.
11381 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
11382 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
11384 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
11386 PR breakpoints/15956
11387 * tracepoint.c (cmd_qtinit): Add check for current_thread.
11389 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11391 * linux-low.c (linux_low_btrace_conf): Print size.
11392 * server.c (handle_btrace_conf_general_set): New.
11393 (hanle_general_set): Call handle_btrace_conf_general_set.
11394 (handle_query): Report Qbtrace-conf:bts:size as supported.
11396 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11398 * linux-low.c (linux_low_enable_btrace): Update parameters.
11399 (linux_low_btrace_conf): New.
11400 (linux_target_ops)<to_btrace_conf>: Initialize.
11401 * server.c (current_btrace_conf): New.
11402 (handle_btrace_enable): Rename to ...
11403 (handle_btrace_enable_bts): ... this. Pass ¤t_btrace_conf
11404 to target_enable_btrace. Update comment. Update users.
11405 (handle_qxfer_btrace_conf): New.
11406 (qxfer_packets): Add btrace-conf entry.
11407 (handle_query): Report qXfer:btrace-conf:read as supported packet.
11408 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
11409 (target_ops)<read_btrace_conf>: New.
11410 (target_enable_btrace): Update parameters.
11411 (target_read_btrace_conf): New.
11413 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11415 * server.c (handle_btrace_general_set): Remove call to
11416 target_supports_btrace.
11417 (supported_btrace_packets): New.
11418 (handle_query): Call supported_btrace_packets.
11419 * target.h: include btrace-common.h.
11420 (btrace_target_info): Removed.
11421 (supports_btrace, target_supports_btrace): Update parameters.
11423 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11425 * Makefile.in (SFILES): Add common/btrace-common.c.
11426 (OBS): Add common/btrace-common.o.
11427 (btrace-common.o): Add build rules.
11428 * linux-low: Include btrace-common.h.
11429 (linux_low_read_btrace): Use struct btrace_data. Call
11430 btrace_data_init and btrace_data_fini.
11432 2015-02-06 Pedro Alves <palves@redhat.com>
11434 * thread-db.c (find_new_threads_callback): Add debug output.
11436 2015-02-04 Pedro Alves <palves@redhat.com>
11438 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
11439 (resume_stopped_resumed_lwps): New function.
11440 (linux_wait_for_event_filtered): Use it.
11442 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11444 * Makefile.in (SFILES): Add linux-personality.c.
11445 (linux-personality.o): New rule.
11446 * configure.srv (srv_linux_obj): Add linux-personality.o to the
11447 list of objects to be built.
11448 * linux-low.c: Include nat/linux-personality.h.
11449 (linux_create_inferior): Remove code to disable address space
11450 randomization (moved to ../nat/linux-personality.c). Create
11451 cleanup to disable address space randomization.
11453 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11455 * Makefile.in (posix-strerror.o): New rule.
11456 (mingw-strerror.o): Likewise.
11457 * configure: Regenerated.
11458 * configure.ac: Source file ../common/common.host. Initialize new
11459 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
11461 2015-01-14 Yao Qi <yao@codesourcery.com>
11463 * Makefile.in (SFILES): Add nat/ppc-linux.c.
11464 (ppc-linux.o): New rule.
11465 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
11466 * configure.ac: AC_CHECK_FUNCS(getauxval).
11467 * config.in: Re-generated.
11468 * configure: Re-generated.
11469 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
11470 ppc64_64bit_inferior_p
11472 2015-01-14 Yao Qi <yao@codesourcery.com>
11474 * linux-ppc-low.c: Include "nat/ppc-linux.h".
11475 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
11476 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
11477 (PT_ORIG_R3, PT_TRAP): Likewise.
11478 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
11479 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
11480 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
11482 2015-01-10 Joel Brobecker <brobecker@adacore.com>
11484 * i387-fp.c (i387_cache_to_xsave): In look over
11485 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
11486 zmmh_low_space field by use of zmmh_high_space.
11488 2015-01-09 Pedro Alves <palves@redhat.com>
11490 * linux-low.c (step_over_bkpt): Move higher up in the file.
11491 (handle_extended_wait): Don't store the stop_pc here.
11492 (get_stop_pc): Adjust comments and rename to ...
11493 (check_stopped_by_breakpoint): ... this. Record whether the LWP
11494 stopped for a software breakpoint or hardware breakpoint.
11495 (thread_still_has_status_pending_p): New function.
11496 (status_pending_p_callback): Use
11497 thread_still_has_status_pending_p. If the event is no longer
11498 interesting, resume the LWP.
11499 (handle_tracepoints): Add assert.
11500 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
11501 (wstatus_maybe_breakpoint): New function.
11502 (cancel_breakpoint): Delete function.
11503 (check_stopped_by_watchpoint): New function, factored out from
11504 linux_low_filter_event.
11505 (lp_status_maybe_breakpoint): Delete function.
11506 (linux_low_filter_event): Remove filter_ptid argument.
11507 Leave thread group exits pending here. Store the LWP's stop PC.
11508 Always leave events pending.
11509 (linux_wait_for_event_filtered): Pull all events out of the
11510 kernel, and leave them all pending.
11511 (count_events_callback, select_event_lwp_callback): Consider all
11513 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
11514 (select_event_lwp): Only give preference to the stepping LWP in
11515 all-stop mode. Adjust comments.
11516 (ignore_event): New function.
11517 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
11518 references to cancel_breakpoints. Adjust to renames. Also give
11519 equal priority to all LWPs that have had events in non-stop mode.
11520 If reporting a software breakpoint event, unadjust the LWP's PC.
11521 (linux_wait): If linux_wait_1 returned an ignored event, retry.
11522 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
11524 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
11525 (resume_status_pending_p): Use thread_still_has_status_pending_p.
11526 (linux_stopped_by_watchpoint): Adjust.
11527 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
11528 * linux-low.h (enum lwp_stop_reason): New.
11529 (struct lwp_info) <stop_pc>: Adjust comment.
11530 <stopped_by_watchpoint>: Delete field.
11531 <stop_reason>: New field.
11532 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11533 * mem-break.c (software_breakpoint_inserted_here)
11534 (hardware_breakpoint_inserted_here): New function.
11535 * mem-break.h (software_breakpoint_inserted_here)
11536 (hardware_breakpoint_inserted_here): Declare.
11537 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
11538 (cancel_breakpoints): Delete.
11539 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
11540 (upload_fast_traceframes): Remove references to
11541 cancel_breakpoints.
11543 2015-01-09 Pedro Alves <palves@redhat.com>
11545 * thread-db.c (find_new_threads_callback): Ignore thread if the
11546 kernel thread ID is -1.
11548 2015-01-09 Pedro Alves <palves@redhat.com>
11550 * linux-low.c (linux_attach_fail_reason_string): Move to
11551 nat/linux-ptrace.c, and rename.
11552 (linux_attach_lwp): Update comment.
11553 (attach_proc_task_lwp_callback): New function.
11554 (linux_attach): Adjust to rename and use
11555 linux_proc_attach_tgid_threads.
11556 (linux_attach_fail_reason_string): Delete declaration.
11558 2015-01-01 Joel Brobecker <brobecker@adacore.com>
11560 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
11561 * server.c (gdbserver_version): Likewise.
11563 2014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
11565 * remote-utils.c: Include ctype.h.
11566 (input_interrupt): Explicitly handle the case when the char
11567 received is the NUL byte. Improve the printing of non-ASCII
11570 2014-12-16 Joel Brobecker <brobecker@adacore.com>
11572 * linux-low.c (linux_low_filter_event): Update call to
11573 linux_enable_event_reporting following the addition of
11574 a new parameter to that function.
11576 2014-12-16 Catalin Udma <catalin.udma@freescale.com>
11579 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
11580 (AARCH64_FPCR_REGNO): Likewise.
11581 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
11582 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
11583 (aarch64_store_fpregset): Likewise.
11585 2014-12-15 Joel Brobecker <brobecker@adacore.com>
11587 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
11588 Remove FIXME comment about assumption about N.
11590 2014-12-13 Joel Brobecker <brobecker@adacore.com>
11592 * configure.ac: If large-file support is disabled in GDBserver,
11593 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
11594 * configure: Regenerate.
11596 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11598 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
11599 warning upon ENODATA from ptrace.
11600 * linux-s390-low.c (s390_store_tdb): New.
11601 (s390_regsets): Add regset for NT_S390_TDB.
11603 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11605 * linux-low.c (regsets_store_inferior_registers): Skip regsets
11606 without a fill_function.
11607 * linux-s390-low.c (s390_fill_last_break): Remove.
11608 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
11609 (s390_arch_setup): Use regset's size instead of fill_function for
11610 loop end condition.
11612 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11614 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
11615 the regset's store function when ptrace returned an error.
11616 * regcache.c (get_thread_regcache): Invalidate register cache
11617 before fetching inferior's registers.
11619 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11621 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
11622 while-loop as for-loop.
11623 (regsets_store_inferior_registers): Likewise.
11625 2014-11-28 Yao Qi <yao@codesourcery.com>
11627 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
11628 * config.in, configure: Re-generate.
11629 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
11632 2014-11-21 Yao Qi <yao@codesourcery.com>
11634 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
11635 (AC_CHECK_HEADERS): Remove malloc.h.
11636 * configure: Re-generated.
11637 * config.in: Re-generated.
11638 * server.h: Don't include alloca.h and malloc.h.
11639 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
11640 Don't include malloc.h.
11642 2014-11-17 Joel Brobecker <brobecker@adacore.com>
11644 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
11645 corresponding ERRNO check in same block.
11647 2014-11-12 Pedro Alves <palves@redhat.com>
11649 * server.c (cont_thread): Update comment.
11650 (start_inferior, attach_inferior): No longer clear cont_thread.
11651 (handle_v_cont): No longer set cont_thread.
11652 (captured_main): Clear cont_thread each time a GDB connects.
11654 2014-11-12 Pedro Alves <palves@redhat.com>
11656 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
11657 thread, and don't resume all threads if the Hc thread has exited.
11659 2014-11-12 Pedro Alves <palves@redhat.com>
11661 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
11662 the process group instead of to a specific LWP.
11664 2014-10-15 Pedro Alves <palves@redhat.com>
11667 * win32-arm-low.c (arm_set_thread_context): Remove current_event
11669 (arm_set_thread_context): Delete.
11670 (the_low_target): Adjust.
11671 * win32-i386-low.c (debug_registers_changed)
11672 (debug_registers_used): Delete.
11673 (update_debug_registers_callback): New function.
11674 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
11675 needing to update their debug registers.
11676 (win32_get_current_dr): New function.
11677 (x86_dr_low_get_addr, x86_dr_low_get_control)
11678 (x86_dr_low_get_status): Fetch the debug register from the thread
11680 (i386_initial_stuff): Adjust.
11681 (i386_get_thread_context): Remove current_event parameter. Don't
11682 clear debug_registers_changed nor copy DR values to
11684 (i386_set_thread_context): Delete.
11685 (i386_prepare_to_resume): New function.
11686 (i386_thread_added): Mark the thread as needing to update irs
11688 (the_low_target): Remove i386_set_thread_context and install
11689 i386_prepare_to_resume.
11690 * win32-low.c (win32_get_thread_context): Adjust.
11691 (win32_set_thread_context): Use SetThreadContext
11693 (win32_prepare_to_resume): New function.
11694 (win32_require_context): New function, factored out from ...
11695 (thread_rec): ... this.
11696 (continue_one_thread): Call win32_prepare_to_resume on each thread
11697 we're about to continue.
11698 (win32_resume): Call win32_prepare_to_resume on the event thread.
11699 * win32-low.h (struct win32_thread_info)
11700 <debug_registers_changed>: New field.
11701 (struct win32_target_ops): Change prototype of set_thread_context,
11702 delete set_thread_context and add prepare_to_resume.
11703 (win32_require_context): New declaration.
11705 2014-10-08 Gary Benson <gbenson@redhat.com>
11707 * server.h: Do not include common-exceptions.h.
11709 2014-10-08 Gary Benson <gbenson@redhat.com>
11711 * server.h: Do not include cleanups.h.
11713 2014-09-30 James Hogan <james.hogan@imgtec.com>
11715 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
11716 mips64-dsp-linux.c.
11718 2014-09-23 Yao Qi <yao@codesourcery.com>
11720 * linux-low.c (lp_status_maybe_breakpoint): New function.
11721 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
11722 (count_events_callback): Likewise.
11723 (select_event_lwp_callback): Likewise.
11724 (cancel_breakpoints_callback): Likewise.
11726 2014-09-19 Don Breazeal <donb@codesourcery.com>
11728 * linux-low.c (handle_extended_wait): Call
11729 linux_ptrace_get_extended_event.
11730 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
11731 linux_is_extended_waitstatus.
11733 2014-09-16 Joel Brobecker <brobecker@adacore.com>
11735 * Makefile.in (CPPFLAGS): Define.
11736 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
11737 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
11739 2014-09-16 Gary Benson <gbenson@redhat.com>
11741 * inferiors.h (current_inferior): Renamed as...
11742 (current_thread): New variable. All uses updated.
11743 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
11744 (maybe_move_out_of_jump_pad): Likewise.
11745 (cancel_breakpoint): Likewise.
11746 (linux_low_filter_event): Likewise.
11747 (wait_for_sigstop): Likewise.
11748 (linux_resume_one_lwp): Likewise.
11749 (need_step_over_p): Likewise.
11750 (start_step_over): Likewise.
11751 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
11752 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
11753 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
11754 and save_inferior as saved_thread.
11755 * regcache.c (get_thread_regcache): Renamed saved_inferior as
11757 (regcache_invalidate_thread): Likewise.
11758 * remote-utils.c (prepare_resume_reply): Likewise.
11759 * thread-db.c (thread_db_get_tls_address): Likewise.
11760 (disable_thread_event_reporting): Likewise.
11761 (remove_thread_event_breakpoints): Likewise.
11762 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
11764 * target.h (set_desired_inferior): Renamed as...
11765 (set_desired_thread): New declaration. All uses updated.
11766 * server.c (myresume): Updated comment to reference thread instead
11768 (handle_serial_event): Likewise.
11769 (handle_target_event): Likewise.
11771 2014-09-12 Tom Tromey <tromey@redhat.com>
11772 Gary Benson <gbenson@redhat.com>
11774 * regcache.h: Include common-regcache.h.
11775 (regcache_read_pc): Don't declare.
11776 * regcache.c (get_thread_regcache_for_ptid): New function.
11778 2014-09-11 Tom Tromey <tromey@redhat.com>
11779 Gary Benson <gbenson@redhat.com>
11781 * symbol.c: New file.
11782 * Makefile.in (SFILES): Add symbol.c.
11783 (OBS): Add symbol.o.
11785 2014-09-11 Gary Benson <gbenson@redhat.com>
11787 * target.c (target_stop_ptid, target_continue_ptid): New
11790 2014-09-11 Tom Tromey <tromey@redhat.com>
11791 Gary Benson <gbenson@redhat.com>
11793 * target.h: Include target/target.h.
11794 * target.c (target_read_memory, target_read_uint32)
11795 (target_write_memory): New functions.
11797 2014-09-11 Gary Benson <gbenson@redhat.com>
11799 * server.h (debug_hw_points): Don't declare.
11800 * server.c (debug_hw_points): Don't define. Replace all uses
11801 with show_debug_regs.
11802 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
11803 all uses with show_debug_regs.
11805 2014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
11807 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
11808 endianness into account.
11809 (ppc_supply_ptrace_register): Likewise.
11811 2014-09-03 James Hogan <james.hogan@imgtec.com>
11813 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
11814 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
11816 2014-09-03 Gary Benson <gbenson@redhat.com>
11818 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
11819 ALL_DEBUG_ADDRESS_REGISTERS.
11821 2014-09-02 Gary Benson <gbenson@redhat.com>
11823 * i386-low.h: Renamed as...
11824 * x86-low.h: New file. All type, function and variable name
11825 prefixes changed from "i386_" to "x86_". All references updated.
11826 * i386-low.c: Renamed as...
11827 * x86-low.c: New file. All type, function and variable name
11828 prefixes changed from "i386_" to "x86_". All references updated.
11830 2014-09-02 Gary Benson <gbenson@redhat.com>
11832 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
11833 (x86_linux_new_thread): Likewise.
11835 2014-08-29 Gary Benson <gbenson@redhat.com>
11837 * server.h (setjmp.h): Do not include.
11838 (toplevel): Do not declare.
11839 (common-exceptions.h): Include.
11840 (cleanups.h): Likewise.
11841 * server.c (toplevel): Do not define.
11842 (exit_code): New static global.
11843 (detach_or_kill_for_exit_cleanup): New function.
11844 (main): New function. Original main renamed to...
11845 (captured_main): New function.
11846 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
11848 2014-08-29 Gary Benson <gbenson@redhat.com>
11850 * Makefile.in (SFILES): Add common/common-exceptions.c.
11851 (OBS): Add common-exceptions.o.
11852 (common-exceptions.o): New rule.
11853 * utils.c (prepare_to_throw_exception): New function.
11855 2014-08-29 Gary Benson <gbenson@redhat.com>
11857 * config.in: Regenerate.
11858 * configure: Likewise.
11860 2014-08-29 Gary Benson <gbenson@redhat.com>
11862 * Makefile.in (SFILES): Add common/cleanups.c.
11864 (cleanups.o): New rule.
11866 2014-08-29 Gary Benson <gbenson@redhat.com>
11868 * utils.c (internal_vwarning): New function.
11870 2014-08-28 Gary Benson <gbenson@redhat.com>
11872 * utils.h (fatal): Remove declaration.
11873 * utils.c (fatal): Remove function.
11875 2014-08-28 Gary Benson <gbenson@redhat.com>
11877 * tracepoint.c (gdb_agent_init): Replace fatal with
11879 (initialize_tracepoint): Likewise.
11881 2014-08-28 Gary Benson <gbenson@redhat.com>
11883 * remote-utils.c (remote_prepare): Replace fatal with error.
11885 2014-08-28 Gary Benson <gbenson@redhat.com>
11887 * linux-low.c (linux_async): Replace fatal with warning.
11888 Tidy up and return.
11889 (linux_start_non_stop): Return -1 if linux_async failed.
11891 2014-08-28 Gary Benson <gbenson@redhat.com>
11893 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
11895 (i386_dr_low_get_addr): Remove vague comment.
11896 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
11899 2014-08-28 Gary Benson <gbenson@redhat.com>
11901 * inferiors.c (get_thread_process): Replace check with gdb_assert.
11902 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
11904 (linux_resume_one_lwp): Likewise.
11905 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
11907 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
11908 with internal_error.
11909 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
11910 (init_register_cache): Replace fatal with gdb_assert_not_reached.
11911 (find_register_by_name): Replace fatal with internal_error.
11912 (find_regno): Likewise.
11913 * tdesc.c (init_target_desc): Replace check with gdb_assert.
11914 * thread-db.c (thread_db_create_event): Likewise.
11915 (thread_db_load_search): Likewise.
11916 (try_thread_db_load_1): Likewise.
11917 * tracepoint.c (get_jump_space_head): Replace fatal with
11919 (claim_trampoline_space): Likewise.
11920 (have_fast_tracepoint_trampoline_buffer): Likewise.
11921 (cmd_qtstart): Likewise.
11922 (stop_tracing): Likewise.
11923 (fast_tracepoint_collecting): Likewise.
11924 (target_malloc): Likewise.
11925 (download_tracepoint): Likewise.
11926 (download_trace_state_variables): Replace check with gdb_assert.
11927 (upload_fast_traceframes): Replace fatal with internal_error.
11929 2014-08-19 Tom Tromey <tromey@redhat.com>
11930 Gary Benson <gbenson@redhat.com>
11932 * Makefile.in (SFILES): Add common/common-debug.c.
11933 (OBS): Add common-debug.o.
11934 (common-debug.o): New rule.
11935 * debug.h (debug_printf): Don't declare.
11936 * debug.c (debug_printf): Renamed and rewritten as...
11937 (debug_vprintf): New function.
11939 2014-08-19 Gary Benson <gbenson@redhat.com>
11941 * utils.h: Do not include print-utils.h.
11943 2014-08-19 Tom Tromey <tromey@redhat.com>
11944 Gary Benson <gbenson@redhat.com>
11946 * server.h: Add static assertion.
11947 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
11949 2014-08-19 Tom Tromey <tromey@redhat.com>
11950 Gary Benson <gbenson@redhat.com>
11952 * Makefile.in (SFILES): Add common/errors.c.
11953 (OBS): Add errors.o.
11954 (IPA_OBS): Add errors-ipa.o.
11955 (errors.o): New rule.
11956 (errors-ipa.o): Likewise.
11957 * utils.h (perror_with_name, error, warning): Don't declare.
11958 * utils.c (warning): Renamed and rewritten as...
11959 (vwarning): New function.
11960 (error): Renamed and rewritten as...
11961 (verror): New function.
11962 (internal_error): Renamed and rewritten as...
11963 (internal_verror): New function.
11965 2014-08-07 Gary Benson <gbenson@redhat.com>
11967 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
11968 * configure: Regenerate.
11969 * config.in: Likewise.
11970 * server.h: Do not include errno.h.
11971 * event-loop.c: Likewise.
11972 * hostio-errno.c: Likewise.
11973 * linux-low.c: Likewise.
11974 * remote-utils.c: Likewise.
11975 * spu-low.c: Likewise.
11976 * utils.c: Likewise.
11977 * gdbreplay.c: Unconditionally include errno.h.
11979 2014-08-07 Gary Benson <gbenson@redhat.com>
11981 * server.h: Do not include string.h.
11982 * event-loop.c: Likewise.
11983 * linux-low.c: Likewise.
11984 * regcache.c: Likewise.
11985 * remote-utils.c: Likewise.
11986 * spu-low.c: Likewise.
11987 * utils.c: Likewise.
11989 2014-08-07 Gary Benson <gbenson@redhat.com>
11991 * server.h: Do not include gdb_assert.h.
11993 2014-08-07 Gary Benson <gbenson@redhat.com>
11995 * server.h: Do not include common-utils.h.
11997 2014-08-07 Gary Benson <gbenson@redhat.com>
11999 * server.h: Do not include ptid.h.
12000 * notif.h: Likewise.
12002 2014-08-07 Gary Benson <gbenson@redhat.com>
12004 * server.h: Do not include gdb_locale.h.
12006 2014-08-07 Gary Benson <gbenson@redhat.com>
12008 * server.h: Do not include gdb/signals.h.
12009 * win32-low.c: Likewise.
12011 2014-08-07 Gary Benson <gbenson@redhat.com>
12013 * server.h: Do not include pathmax.h.
12015 2014-08-07 Gary Benson <gbenson@redhat.com>
12017 * server.h: Do not include libiberty.h.
12018 * linux-bfin-low.c: Likewise.
12020 2014-08-07 Gary Benson <gbenson@redhat.com>
12022 * server.h: Do not include ansidecl.h.
12024 2014-08-07 Gary Benson <gbenson@redhat.com>
12026 * linux-x86-low.c: Do not include stddef.h.
12027 * lynx-ppc-low.c: Likewise.
12028 * tracepoint.c: Likewise.
12030 2014-08-07 Gary Benson <gbenson@redhat.com>
12032 * server.h: Do not include stdarg.h.
12033 * nto-low.c: Likewise.
12035 2014-08-07 Gary Benson <gbenson@redhat.com>
12037 * server.h: Do not include stdlib.h.
12038 * inferiors.c: Likewise.
12039 * linux-low.c: Likewise.
12040 * regcache.c: Likewise.
12041 * spu-low.c: Likewise.
12042 * tracepoint.c: Likewise.
12043 * utils.c: Likewise.
12045 2014-08-07 Gary Benson <gbenson@redhat.com>
12047 * server.h: Do not include stdio.h.
12048 * linux-low.c: Likewise.
12049 * remote-utils.c: Likewise.
12050 * spu-low.c: Likewise.
12051 * utils.c: Likewise.
12052 * wincecompat.c: Likewise.
12054 2014-08-06 Gary Benson <gbenson@redhat.com>
12056 * regcache.c (init_register_cache): Move conditionals inside if.
12058 2014-08-06 Gary Benson <gbenson@redhat.com>
12060 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
12062 2014-07-31 Gary Benson <gbenson@redhat.com>
12064 * ax.h: Do not include server.h.
12065 * gdbthread.h: Likewise.
12066 * lynx-low.h: Likewise.
12067 * notif.h: Likewise.
12069 2014-07-30 Gary Benson <gbenson@redhat.com>
12071 * server.h: Include common-defs.h.
12072 Do not include config.h or build-gnulib-gdbserver/config.h.
12074 2014-07-30 Gary Benson <gbenson@redhat.com>
12076 * hostio-errno.c: Move server.h to top of includes list.
12077 * inferiors.c: Likewise.
12078 * linux-x86-low.c: Likewise.
12079 * notif.c: Include server.h.
12081 2014-07-24 Tom Tromey <tromey@redhat.com>
12082 Gary Benson <gbenson@redhat.com>
12084 * server.h (CORE_ADDR): Now unsigned.
12086 2014-07-16 Pedro Alves <palves@redhat.com>
12088 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
12090 2014-07-15 Pedro Alves <palves@redhat.com>
12092 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
12095 2014-07-11 Pedro Alves <palves@redhat.com>
12097 * linux-low.c (kill_wait_lwp): New function, based on
12098 kill_one_lwp_callback, but use my_waitpid directly.
12099 (kill_one_lwp_callback, linux_kill): Use it.
12101 2014-06-23 Pedro Alves <palves@redhat.com>
12103 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
12104 before setting DR0..DR3.
12106 2014-06-20 Gary Benson <gbenson@redhat.com>
12108 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
12109 * configure: Regenerated.
12110 * config.in: Likewise.
12112 2014-06-20 Gary Benson <gbenson@redhat.com>
12114 * Makefile.in (SFILES): Update locations for files moved
12115 from common to nat.
12116 (object file files): Reordered.
12118 2014-06-20 Gary Benson <gbenson@redhat.com>
12120 * i386-low.h (i386_dr_low_can_set_addr): Removed.
12121 (i386_dr_low_set_addr): Likewise.
12122 (i386_dr_low_get_addr): Likewise.
12123 (i386_dr_low_can_set_control): Likewise.
12124 (i386_dr_low_set_control): Likewise.
12125 (i386_dr_low_get_control): Likewise.
12126 (i386_dr_low_get_status): Likewise.
12127 (i386_get_debug_register_length): Likewise.
12128 * linux-x86-low.c (i386_dr_low_set_addr):
12129 Changed signature. Made static.
12130 (i386_dr_low_get_addr): Likewise.
12131 (i386_dr_low_set_control): Likewise.
12132 (i386_dr_low_get_control): Likewise.
12133 (i386_dr_low_get_status): Likewise.
12134 (i386_dr_low): New global variable.
12135 * win32-i386-low.c (i386_dr_low_set_addr):
12136 Changed signature. Made static.
12137 (i386_dr_low_get_addr): Likewise.
12138 (i386_dr_low_set_control): Likewise.
12139 (i386_dr_low_get_control): Likewise.
12140 (i386_dr_low_get_status): Likewise.
12141 (i386_dr_low): New global variable.
12143 2014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
12145 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
12146 * Makefile.in (AR, AR_FLAGS): Define.
12147 * configure: Regenerate.
12149 2014-06-19 Gary Benson <gbenson@redhat.com>
12151 * Makefile.in (i386-dregs.o): New rule.
12152 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
12153 * i386-low.c (target.h): Remove include.
12154 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
12155 (DR_CONTROL_SHIFT): Likewise.
12156 (DR_CONTROL_SIZE): Likewise.
12157 (DR_RW_EXECUTE): Likewise.
12158 (DR_RW_WRITE): Likewise.
12159 (DR_RW_READ): Likewise.
12160 (DR_RW_IORW): Likewise.
12161 (DR_LEN_1): Likewise.
12162 (DR_LEN_2): Likewise.
12163 (DR_LEN_4): Likewise.
12164 (DR_LEN_8): Likewise.
12165 (DR_LOCAL_ENABLE_SHIFT): Likewise.
12166 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
12167 (DR_ENABLE_SIZE): Likewise.
12168 (DR_LOCAL_SLOWDOWN): Likewise.
12169 (DR_GLOBAL_SLOWDOWN): Likewise.
12170 (DR_CONTROL_RESERVED): Likewise.
12171 (I386_DR_CONTROL_MASK): Likewise.
12172 (I386_DR_VACANT): Likewise.
12173 (I386_DR_LOCAL_ENABLE): Likewise.
12174 (I386_DR_GLOBAL_ENABLE): Likewise.
12175 (I386_DR_DISABLE): Likewise.
12176 (I386_DR_SET_RW_LEN): Likewise.
12177 (I386_DR_GET_RW_LEN): Likewise.
12178 (I386_DR_WATCH_HIT): Likewise.
12179 (i386_wp_op_t): Likewise.
12180 (i386_show_dr): Likewise.
12181 (i386_length_and_rw_bits): Likewise.
12182 (i386_insert_aligned_watchpoint): Likewise.
12183 (i386_remove_aligned_watchpoint): Likewise.
12184 (i386_handle_nonaligned_watchpoint): Likewise.
12185 i386_update_inferior_debug_regs(): Likewise.
12186 (i386_dr_insert_watchpoint): Likewise.
12187 (i386_dr_remove_watchpoint): Likewise.
12188 (i386_dr_region_ok_for_watchpoint): Likewise.
12189 (i386_dr_stopped_data_address): Likewise.
12190 (i386_dr_stopped_by_watchpoint): Likewise.
12192 2014-06-19 Gary Benson <gbenson@redhat.com>
12194 * i386-low.c (i386_dr_show): Renamed to
12195 i386_show_dr and made static. All uses updated.
12196 (i386_dr_length_and_rw_bits): Renamed to
12197 i386_length_and_rw_bits and made static.
12199 (i386_dr_insert_aligned_watchpoint): Renamed to
12200 i386_insert_aligned_watchpoint and made static.
12202 (i386_dr_remove_aligned_watchpoint): Renamed to
12203 i386_remove_aligned_watchpoint and made static.
12205 (i386_dr_update_inferior_debug_regs): Renamed to
12206 i386_update_inferior_debug_regs and made static.
12209 2014-06-18 Gary Benson <gbenson@redhat.com>
12211 * i386-low.h (i386_dr_low_can_set_addr): New macro.
12212 (i386_dr_low_can_set_control): Likewise.
12213 (i386_get_debug_register_length): Likewise.
12214 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
12215 (i386_dr_low_can_set_control): Likewise.
12216 (i386_get_debug_register_length): Likewise.
12218 2014-06-17 Gary Benson <gbenson@redhat.com>
12220 * i386-low.h (i386-dregs.h): New include.
12221 (DR_FIRSTADDR): Now in i386-dregs.h.
12222 (DR_LASTADDR): Likewise.
12223 (DR_NADDR): Likewise.
12224 (DR_STATUS): Likewise.
12225 (DR_CONTROL): Likewise.
12226 (i386_debug_reg_state): Likewise.
12227 (i386_dr_insert_watchpoint): Likewise.
12228 (i386_dr_remove_watchpoint): Likewise.
12229 (i386_dr_region_ok_for_watchpoint): Likewise.
12230 (i386_dr_stopped_data_address): Likewise.
12231 (i386_dr_stopped_by_watchpoint): Likewise.
12232 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
12234 2014-06-18 Gary Benson <gbenson@redhat.com>
12236 * i386-low.h (i386_low_insert_watchpoint): Renamed to
12237 i386_dr_insert_watchpoint.
12238 (i386_low_remove_watchpoint): Renamed to
12239 i386_dr_remove_watchpoint.
12240 (i386_low_region_ok_for_watchpoint): Renamed to
12241 i386_dr_region_ok_for_watchpoint.
12242 (i386_low_stopped_data_address): Renamed to
12243 i386_dr_stopped_data_address.
12244 (i386_low_stopped_by_watchpoint): Renamed to
12245 i386_dr_stopped_by_watchpoint.
12246 * i386-low.c (i386_show_dr): Renamed to
12247 i386_dr_show and made nonstatic. All uses updated.
12248 (i386_length_and_rw_bits): Renamed to
12249 i386_dr_length_and_rw_bits and made nonstatic.
12251 (i386_insert_aligned_watchpoint): Renamed to
12252 i386_dr_insert_aligned_watchpoint and made nonstatic.
12254 (i386_remove_aligned_watchpoint): Renamed to
12255 i386_dr_remove_aligned_watchpoint and made nonstatic.
12257 (i386_update_inferior_debug_regs): Renamed to
12258 i386_dr_update_inferior_debug_regs and made nonstatic.
12260 (i386_low_insert_watchpoint): Renamed to
12261 i386_dr_insert_watchpoint. All uses updated.
12262 (i386_low_remove_watchpoint): Renamed to
12263 i386_dr_remove_watchpoint. All uses updated.
12264 (i386_low_region_ok_for_watchpoint): Renamed to
12265 i386_dr_region_ok_for_watchpoint. All uses updated.
12266 (i386_low_stopped_data_address): Renamed to
12267 i386_dr_stopped_data_address. All uses updated.
12268 (i386_low_stopped_by_watchpoint): Renamed to
12269 i386_dr_stopped_by_watchpoint. All uses updated.
12271 2014-06-18 Gary Benson <gbenson@redhat.com>
12273 * i386-low.c (i386_dr_low_can_set_addr): New macro.
12274 (i386_dr_low_can_set_control): Likewise.
12275 (i386_insert_aligned_watchpoint): New check.
12277 2014-06-18 Gary Benson <gbenson@redhat.com>
12279 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
12282 2014-06-18 Gary Benson <gbenson@redhat.com>
12284 * i386-low.c (i386_length_and_rw_bits): Use internal_error
12285 instead of fatal and error.
12286 (i386_handle_nonaligned_watchpoint): Likewise.
12288 2014-06-18 Gary Benson <gbenson@redhat.com>
12290 * i386-low.c (i386_get_debug_register_length): New macro.
12291 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
12292 (i386_show_dr): Use debug_printf instead of fprintf. Use
12293 phex to format values.
12295 2014-06-18 Gary Benson <gbenson@redhat.com>
12297 * i386-low.h: Comment changes.
12298 * i386-low.c: Likewise.
12300 2014-06-18 Gary Benson <gbenson@redhat.com>
12302 * i386-low.c: Whitespace changes.
12304 2014-06-12 Tom Tromey <tromey@redhat.com>
12306 * utils.c (freeargv): Remove.
12308 2014-06-12 Tom Tromey <tromey@redhat.com>
12310 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
12311 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
12312 (parse_debug_format_options): Likewise.
12313 (gdbserver_usage): Likewise.
12314 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
12315 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
12316 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
12318 ($(LIBGNU)): Depend on libiberty.
12319 (all-lib): Recurse into all subdirs.
12320 (install-only): Invoke "install" target in subdirs.
12321 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
12323 * configure: Rebuild.
12324 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
12325 for vasprintf, vsnprintf, or gettimeofday.
12326 * configure.srv: Don't add safe-ctype.o or lbasename.o to
12329 2014-06-05 Joel Brobecker <brobecker@adacore.com>
12331 * development.sh: Delete.
12332 * Makefile.in (config.status): Adjust dependency on development.sh.
12333 * configure.ac: Adjust development.sh source call.
12334 * configure: Regenerate.
12336 2014-06-02 Pedro Alves <palves@redhat.com>
12338 * ax.c (gdb_free_agent_expr): New function.
12339 * ax.h (gdb_free_agent_expr): New declaration.
12340 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
12342 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
12344 (clear_breakpoint_conditions_and_commands): New function.
12345 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
12346 (clear_breakpoint_conditions_and_commands): New declaration.
12348 2014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12350 * linux-aarch64-low.c (asm/ptrace.h): Include.
12352 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12354 Fix TLS access for -static -pthread.
12355 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
12356 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
12357 (thread_db_load_search, try_thread_db_load_1): Initialize it.
12359 2014-05-20 Pedro Alves <palves@redhat.com>
12361 * linux-aarch64-low.c (aarch64_insert_point)
12362 (aarch64_remove_point): No longer check whether the type is
12363 supported here. Adjust to new interface.
12364 (the_low_target): Install aarch64_supports_z_point_type as
12365 supports_z_point_type method.
12366 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
12367 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
12368 instead of a Z packet char. Adjust.
12369 (arm_supports_z_point_type): New function.
12370 (arm_insert_point, arm_remove_point): Adjust to new interface.
12371 (the_low_target): Install arm_supports_z_point_type.
12372 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
12373 (cris_insert_point, cris_remove_point): Adjust to new interface.
12374 Don't check whether the type is supported here.
12375 (the_low_target): Install cris_supports_z_point_type.
12376 * linux-low.c (linux_supports_z_point_type): New function.
12377 (linux_insert_point, linux_remove_point): Adjust to new interface.
12378 * linux-low.h (struct linux_target_ops) <insert_point,
12379 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
12380 raw_breakpoint pointer parameter.
12381 <supports_z_point_type>: New method.
12382 * linux-mips-low.c (mips_supports_z_point_type): New function.
12383 (mips_insert_point, mips_remove_point): Adjust to new interface.
12384 Use mips_supports_z_point_type.
12385 (the_low_target): Install mips_supports_z_point_type.
12386 * linux-ppc-low.c (the_low_target): Install NULL as
12387 supports_z_point_type method.
12388 * linux-s390-low.c (the_low_target): Install NULL as
12389 supports_z_point_type method.
12390 * linux-sparc-low.c (the_low_target): Install NULL as
12391 supports_z_point_type method.
12392 * linux-x86-low.c (x86_supports_z_point_type): New function.
12393 (x86_insert_point): Adjust to new insert_point interface. Use
12394 insert_memory_breakpoint. Adjust to new
12395 i386_low_insert_watchpoint interface.
12396 (x86_remove_point): Adjust to remove_point interface. Use
12397 remove_memory_breakpoint. Adjust to new
12398 i386_low_remove_watchpoint interface.
12399 (the_low_target): Install x86_supports_z_point_type.
12400 * lynx-low.c (lynx_target_ops): Install NULL as
12401 supports_z_point_type callback.
12402 * nto-low.c (nto_supports_z_point_type): New.
12403 (nto_insert_point, nto_remove_point): Adjust to new interface.
12404 (nto_target_ops): Install nto_supports_z_point_type.
12405 * mem-break.c: Adjust intro comment.
12406 (struct raw_breakpoint) <raw_type, size>: New fields.
12407 <inserted>: Update comment.
12408 <shlib_disabled>: Delete field.
12409 (enum bkpt_type) <gdb_breakpoint>: Delete value.
12410 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
12411 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
12412 (raw_bkpt_type_to_target_hw_bp_type): New function.
12413 (find_enabled_raw_code_breakpoint_at): New function.
12414 (find_raw_breakpoint_at): New type and size parameters. Use them.
12415 (insert_memory_breakpoint): New function, based off
12416 set_raw_breakpoint_at.
12417 (remove_memory_breakpoint): New function.
12418 (set_raw_breakpoint_at): Reimplement.
12419 (set_breakpoint): New, based on set_breakpoint_at.
12420 (set_breakpoint_at): Reimplement.
12421 (delete_raw_breakpoint): Go through the_target->remove_point
12422 instead of assuming memory breakpoints.
12423 (find_gdb_breakpoint_at): Delete.
12424 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
12425 (find_gdb_breakpoint): New function.
12426 (set_gdb_breakpoint_at): Delete.
12427 (z_type_supported): New function.
12428 (set_gdb_breakpoint_1): New function, loosely based off
12429 set_gdb_breakpoint_at.
12430 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
12431 (delete_gdb_breakpoint_at): Delete.
12432 (delete_gdb_breakpoint_1): New function, loosely based off
12433 delete_gdb_breakpoint_at.
12434 (delete_gdb_breakpoint): New function.
12435 (clear_gdb_breakpoint_conditions): Rename to ...
12436 (clear_breakpoint_conditions): ... this. Don't handle a NULL
12438 (add_condition_to_breakpoint): Make static.
12439 (add_breakpoint_condition): Take a struct breakpoint pointer
12440 instead of an address. Adjust.
12441 (gdb_condition_true_at_breakpoint): Rename to ...
12442 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
12444 (gdb_condition_true_at_breakpoint): Reimplement.
12445 (add_breakpoint_commands): Take a struct breakpoint pointer
12446 instead of an address. Adjust.
12447 (gdb_no_commands_at_breakpoint): Rename to ...
12448 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
12449 parameter. Return true if no breakpoint was found. Change debug
12451 (gdb_no_commands_at_breakpoint): Reimplement.
12452 (run_breakpoint_commands): Rename to ...
12453 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
12454 and change return type to boolean.
12455 (run_breakpoint_commands): New function.
12456 (gdb_breakpoint_here): Also check for Z1 breakpoints.
12457 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
12458 breakpoint. Go through the_target->remove_point instead of
12459 assuming memory breakpoint.
12460 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
12461 software and hardware breakpoints.
12462 (reinsert_raw_breakpoint): Go through the_target->insert_point
12463 instead of assuming memory breakpoint.
12464 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
12465 software and hardware breakpoints.
12466 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
12467 Check both software and hardware breakpoints.
12468 (validate_inserted_breakpoint): Assert the breakpoint is a
12469 software breakpoint. Set the inserted flag to -1 instead of
12470 setting shlib_disabled.
12471 (delete_disabled_breakpoints): Adjust.
12472 (validate_breakpoints): Only validate software breakpoints.
12473 Adjust to inserted flag change.
12474 (check_mem_read, check_mem_write): Skip breakpoint types other
12475 than software breakpoints. Adjust to inserted flag change.
12476 * mem-break.h (enum raw_bkpt_type): New enum.
12477 (raw_breakpoint, struct process_info): Forward declare.
12478 (Z_packet_to_target_hw_bp_type): Delete declaration.
12479 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
12480 (set_gdb_breakpoint, delete_gdb_breakpoint)
12481 (clear_breakpoint_conditions): New declarations.
12482 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
12483 (breakpoint_inserted_here): Update comment.
12484 (add_breakpoint_condition, add_breakpoint_commands): Replace
12485 address parameter with a breakpoint pointer parameter.
12486 (gdb_breakpoint_here): Update comment.
12487 (delete_gdb_breakpoint_at): Delete.
12488 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
12489 * server.c (process_point_options): Take a struct breakpoint
12490 pointer instead of an address. Adjust.
12491 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
12492 delete_gdb_breakpoint.
12493 * spu-low.c (spu_target_ops): Install NULL as
12494 supports_z_point_type method.
12495 * target.h: Include mem-break.h.
12496 (struct target_ops) <prepare_to_access_memory>: Update comment.
12497 <supports_z_point_type>: New field.
12498 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12499 instead of a char. Also take a raw breakpoint pointer.
12500 * win32-arm-low.c (the_low_target): Install NULL as
12501 supports_z_point_type.
12502 * win32-i386-low.c (i386_supports_z_point_type): New function.
12503 (i386_insert_point, i386_remove_point): Adjust to new interface.
12504 (the_low_target): Install i386_supports_z_point_type.
12505 * win32-low.c (win32_supports_z_point_type): New function.
12506 (win32_insert_point, win32_remove_point): Adjust to new interface.
12507 (win32_target_ops): Install win32_supports_z_point_type.
12508 * win32-low.h (struct win32_target_ops):
12509 <supports_z_point_type>: New method.
12510 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12511 instead of a char. Also take a raw breakpoint pointer.
12513 2014-05-20 Pedro Alves <palves@redhat.com>
12515 * mem-break.h: Include break-common.h.
12516 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12517 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
12518 (Z_packet_to_target_hw_bp_type): New declaration.
12519 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
12520 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
12521 (Z_PACKET_ACCESS_WP): Delete macros.
12522 (Z_packet_to_hw_type): Delete function.
12523 * i386-low.h: Don't include break-common.h here.
12524 (Z_packet_to_hw_type): Delete declaration.
12525 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
12526 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12527 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
12528 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12529 * linux-aarch64-low.c: Don't include break-common.h here.
12530 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12531 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
12532 (Z_packet_to_target_hw_bp_type): Delete function.
12533 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
12535 (mips_insert_point, mips_remove_point): Use
12536 Z_packet_to_target_hw_bp_type.
12538 2014-05-20 Pedro Alves <palves@redhat.com>
12540 * linux-aarch64-low.c: Include break-common.h.
12541 (enum target_point_type): Delete.
12542 (Z_packet_to_point_type): Rename to ...
12543 (Z_packet_to_target_hw_bp_type): ... this, and return a
12544 target_hw_bp_type instead.
12545 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
12546 instead of an enum target_point_type.
12547 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
12549 (aarch64_dr_state_insert_one_point)
12550 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
12551 (aarch64_handle_aligned_watchpoint)
12552 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
12553 Take an enum target_hw_bp_type instead of an enum
12555 (aarch64_supports_z_point_type): New function.
12556 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
12557 use Z_packet_to_target_hw_bp_type.
12559 2014-05-20 Joel Brobecker <brobecker@adacore.com>
12561 * configure.ac: Only use -Werror by default when DEVELOPMENT
12563 * configure: Regenerate.
12565 2014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
12567 Fix gdbserver qGetTLSAddr for x86_64 -m32.
12568 * linux-x86-low.c (X86_64_USER_REGS): New.
12569 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
12571 2014-04-28 Yao Qi <yao@codesourcery.com>
12573 * Makefile.in (i386-avx512.c): Fix the typo of generated file
12576 2014-04-25 Pedro Alves <palves@redhat.com>
12579 * linux-low.c (linux_attach_fail_reason_string): New function.
12580 (linux_attach_lwp): Delete.
12581 (linux_attach_lwp_1): Rename to ...
12582 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
12583 argument. Remove "initial" parameter. Return int instead of
12584 void. Don't error or warn here.
12585 (linux_attach): Adjust to call linux_attach_lwp. Call error on
12586 failure to attach to the tgid. Call warning when failing to
12588 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
12589 argument. Remove "initial" parameter. Return int instead of
12590 void. Don't error or warn here.
12591 (linux_attach_fail_reason_string): New declaration.
12592 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
12593 interface change. Use linux_attach_fail_reason_string.
12595 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
12596 Walfred Tedeschi <walfred.tedeschi@intel.com>
12598 * Makefile.in: Added rules to handle new files
12599 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
12600 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
12601 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
12602 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
12603 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
12604 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
12605 x32-avx512-linux.o.
12606 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
12607 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
12608 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
12609 i386/x32-avx512.xml.
12610 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
12611 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
12612 i386/x32-avx512-linux.xml.
12613 * i387-fp.c (num_avx512_k_registers): New constant for number
12615 (num_avx512_zmmh_low_registers): New constant for number of
12616 lower ZMM registers (0-15).
12617 (num_avx512_zmmh_high_registers): New constant for number of
12618 higher ZMM registers (16-31).
12619 (num_avx512_ymmh_registers): New contant for number of higher
12620 YMM registers (ymm16-31 added by avx521 on x86_64).
12621 (num_avx512_xmm_registers): New constant for number of higher
12622 XMM registers (xmm16-31 added by AVX512 on x86_64).
12623 (struct i387_xsave): Add space for AVX512 registers.
12624 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
12625 Add code to handle AVX512 registers.
12626 (i387_xsave_to_cache): Add code to handle AVX512 registers.
12627 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
12628 prototypei from generated file.
12629 (tdesc_amd64_avx512_linux): Likewise.
12630 (init_registers_x32_avx512_linux): Likewise.
12631 (tdesc_x32_avx512_linux): Likewise.
12632 (init_registers_i386_avx512_linux): Likewise.
12633 (tdesc_i386_avx512_linux): Likewise.
12634 (x86_64_regmap): Add AVX512 registers.
12635 (x86_linux_read_description): Add code to handle AVX512 XSTATE
12637 (initialize_low_arch): Add code to initialize AVX512 registers.
12639 2014-04-23 Pedro Alves <palves@redhat.com>
12641 * mem-break.c (find_gdb_breakpoint_at): Make static.
12642 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
12644 2014-04-23 Pedro Alves <palves@redhat.com>
12646 * i386-low.c: Don't include break-common.h here.
12647 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12648 prototype to take target_hw_bp_type as argument instead of a Z
12650 * i386-low.h: Include break-common.h here.
12651 (Z_packet_to_hw_type): Declare.
12652 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12654 * linux-x86-low.c (x86_insert_point): Convert the packet number to
12655 a target_hw_bp_type before calling i386_low_insert_watchpoint.
12656 (x86_remove_point): Convert the packet number to a
12657 target_hw_bp_type before calling i386_low_remove_watchpoint.
12658 * win32-i386-low.c (i386_insert_point): Convert the packet number
12659 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
12660 (i386_remove_point): Convert the packet number to a
12661 target_hw_bp_type before calling i386_low_remove_watchpoint.
12663 2014-04-23 Pedro Alves <palves@redhat.com>
12665 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
12667 2014-04-10 Pedro Alves <palves@redhat.com>
12669 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
12670 Check if the condition or command is NULL before checking if the
12671 breakpoint is known. On success, return true.
12672 * mem-break.h (add_breakpoint_condition): Document return.
12673 (add_breakpoint_commands): Add describing comment.
12674 * server.c (skip_to_semicolon): New function.
12675 (process_point_options): Use it.
12677 2014-04-09 Pedro Alves <palves@redhat.com>
12679 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
12682 2014-02-27 Pedro Alves <palves@redhat.com>
12685 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
12687 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
12689 (last_thread_of_process_p): Take a PID argument instead of a
12691 (linux_wait_for_lwp): Delete.
12692 (num_lwps, check_zombie_leaders, not_stopped_callback): New
12694 (linux_low_filter_event): New function, party factored out from
12695 linux_wait_for_event.
12696 (linux_wait_for_event): Rename to ...
12697 (linux_wait_for_event_filtered): ... this. Add new filter ptid
12698 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
12699 sigsuspend. Check for zombie leaders.
12700 (linux_wait_for_event): Reimplement as wrapper around
12701 linux_wait_for_event_filtered.
12702 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
12703 a normal or signal exit is seen, it's the whole process exiting.
12704 (wait_for_sigstop): No longer a for_each_inferior callback.
12705 Rewrite on top of linux_wait_for_event_filtered.
12706 (stop_all_lwps): Call wait_for_sigstop directly.
12707 * server.c (resume, handle_target_event): Handle
12708 TARGET_WAITKIND_NO_RESUMED.
12710 2014-02-26 Joel Brobecker <brobecker@adacore.com>
12712 * win32-low.c (psapi_get_dll_name,
12713 * win32_CreateToolhelp32Snapshot): Delete.
12714 (win32_CreateToolhelp32Snapshot, win32_Module32First)
12715 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
12717 (handle_load_dll): Add function description.
12718 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
12720 2014-02-26 Joel Brobecker <brobecker@adacore.com>
12722 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
12724 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
12725 base address when calling win32_add_one_solib.
12726 (handle_load_dll): Delete local variable load_addr.
12727 Remove 0x1000 offset applied to DLL base address when calling
12728 win32_add_one_solib.
12729 (handle_unload_dll): Add comment.
12731 2014-02-26 Joel Brobecker <brobecker@adacore.com>
12733 * win32-low.c (win32_add_all_dlls): Renames
12734 win32_ensure_ntdll_loaded. Rewrite function documentation.
12735 Adjust implementation to always load all DLLs.
12736 Add 0x1000 offset to DLL base address when calling
12737 win32_add_one_solib.
12738 (child_initialization_done): New static global.
12739 (do_initial_child_stuff): Set child_initialization_done to
12740 zero during child initialization, and 1 after. Replace call
12741 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
12743 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
12744 (handle_unload_dll): Add function documentation.
12745 (get_child_debug_event): Ignore load and unload DLL events
12746 during child initialization.
12748 2014-02-20 Doug Evans <dje@google.com>
12750 Remove global all_lwps.
12751 * inferiors.h (ptid_of): Move here from linux-low.h.
12752 (pid_of, lwpid_of): Ditto.
12753 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
12754 parameter is a struct thread_info * now.
12755 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
12756 directly. Pass &all_threads to find_inferior instead of &all_lwps.
12757 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
12759 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
12760 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
12761 * linux-arm-low.c (update_registers_callback): Update, "entry"
12762 parameter is a struct thread_info * now.
12763 Fetch lwpid from current_inferior directly.
12764 (arm_insert_point): Pass &all_threads to find_inferior instead of
12766 (arm_remove_point): Ditto.
12767 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
12768 (arm_prepare_to_resume): Fetch pid from thread.
12769 (arm_read_description): Fetch lwpid from current_inferior directly.
12770 * linux-low.c (all_lwps): Delete.
12771 (delete_lwp): Delete call to remove_inferior.
12772 (handle_extended_wait): Fetch lwpid from thread.
12773 (add_lwp): Don't set lwp->entry.id. Remove call to
12774 add_inferior_to_list.
12775 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
12776 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
12777 (kill_one_lwp_callback): Ditto.
12778 (linux_kill): Don't dereference NULL pointer.
12779 Fetch ptid,lwpid from thread.
12780 (get_detach_signal): Fetch ptid from thread.
12781 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
12782 Simplify call to regcache_invalidate_thread.
12783 (delete_lwp_callback): Update, "entry" parameter is a
12784 struct thread_info * now. Fetch pid from thread.
12785 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
12786 (status_pending_p_callback): Update, "entry" parameter is a
12787 struct thread_info * now. Fetch ptid from thread.
12788 (find_lwp_pid): Update, "entry" parameter is a
12789 struct thread_info * now.
12790 (linux_wait_for_lwp): Fetch pid from thread.
12791 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
12792 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
12793 (enqueue_one_deferred_signal): Fetch lwpid from thread.
12794 (dequeue_one_deferred_signal): Ditto.
12795 (cancel_breakpoint): Fetch ptid from current_inferior.
12796 (linux_wait_for_event): Pass &all_threads to find_inferior,
12797 not &all_lwps. Fetch ptid, lwpid from thread.
12798 (count_events_callback): Update, "entry" parameter is a
12799 struct thread_info * now.
12800 (select_singlestep_lwp_callback): Ditto.
12801 (select_event_lwp_callback): Ditto.
12802 (cancel_breakpoints_callback): Ditto.
12803 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
12805 (select_event_lwp): Ditto. Fetch ptid from event_thread.
12806 (unsuspend_one_lwp): Update, "entry" parameter is a
12807 struct thread_info * now.
12808 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
12810 (linux_stabilize_threads): Ditto. And for for_each_inferior.
12811 Fetch lwpid from thread, not lwp.
12812 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
12813 Pass &all_threads to find_inferior, not &all_lwps.
12814 (send_sigstop): Fetch lwpid from thread, not lwp.
12815 (send_sigstop_callback): Update, "entry" parameter is a
12816 struct thread_info * now.
12817 (suspend_and_send_sigstop_callback): Ditto.
12818 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
12819 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
12820 struct thread_info * now.
12821 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
12823 (lwp_running): Update, "entry" parameter is a
12824 struct thread_info * now.
12825 (stop_all_lwps): Fetch ptid from thread.
12826 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
12827 (linux_resume_one_lwp): Fetch lwpid from thread.
12828 (linux_set_resume_request): Update, "entry" parameter is a
12829 struct thread_info * now. Fetch pid, lwpid from thread.
12830 (resume_status_pending_p): Update, "entry" parameter is a
12831 struct thread_info * now.
12832 (need_step_over_p): Ditto. Fetch lwpid from thread.
12833 (start_step_over): Fetch lwpid from thread.
12834 (linux_resume_one_thread): Update, "entry" parameter is a
12835 struct thread_info * now. Fetch lwpid from thread.
12836 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
12837 (proceed_one_lwp): Update, "entry" parameter is a
12838 struct thread_info * now. Fetch lwpid from thread.
12839 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
12840 struct thread_info * now.
12841 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
12842 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
12843 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
12845 (regsets_store_inferior_registers): Ditto.
12846 (fetch_register, store_register): Ditto.
12847 (linux_read_memory, linux_write_memory): Ditto.
12848 (linux_request_interrupt): Ditto.
12849 (linux_read_auxv): Ditto.
12850 (linux_xfer_siginfo): Ditto.
12851 (linux_qxfer_spu): Ditto.
12852 (linux_qxfer_libraries_svr4): Ditto.
12853 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
12854 moved to inferiors.h.
12856 (get_thread_lwp): Update.
12857 (struct lwp_info): Delete member "entry". Simplify comment for
12859 (all_lwps): Delete.
12860 * linux-mips-low.c (mips_read_description): Fetch lwpid from
12861 current_inferior directly.
12862 (update_watch_registers_callback): Update, "entry" parameter is a
12863 struct thread_info * now. Fetch pid from thread.
12864 (mips_linux_prepare_to_resume): Fetch ptid from thread.
12865 (mips_insert_point): Fetch lwpid from current_inferior.
12866 Pass &all_threads to find_inferior, not &all_lwps.
12867 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
12868 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
12870 (mips_stopped_data_address): Ditto.
12871 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
12873 * linux-tile-low.c (tile_arch_setup): Ditto.
12874 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
12875 (update_debug_registers_callback): Update, "entry" parameter is a
12876 struct thread_info * now. Fetch pid from thread.
12877 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
12878 Pass &all_threads to find_inferior, not &all_lwps.
12879 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
12880 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
12881 Pass &all_threads to find_inferior, not &all_lwps.
12882 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
12883 (i386_dr_low_get_status): Ditto.
12884 (x86_linux_prepare_to_resume): Fetch ptid from thread.
12885 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
12886 (x86_linux_read_description): Ditto.
12887 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
12889 2014-02-20 Doug Evans <dje@google.com>
12891 * inferiors.c (get_first_inferior): Fix buglet.
12893 2014-02-19 Doug Evans <dje@google.com>
12895 * gdbthread.h (add_thread): Change result type to struct thread_info *.
12896 * inferiors.c (add_thread): Change result type to struct thread_info *.
12897 All callers updated.
12898 (add_lwp): Call add_thread here instead of in callers.
12899 All callers updated.
12900 * linux-low.h (get_lwp_thread): Rewrite.
12901 (struct lwp_info): New member "thread".
12903 2014-02-19 Doug Evans <dje@google.com>
12905 * linux-low.c (add_lwp): Change result to struct lwp_info *.
12906 All callers updated.
12908 2014-02-19 Doug Evans <dje@google.com>
12910 * inferiors.c (add_thread): Fix whitespace.
12912 2014-02-19 Doug Evans <dje@google.com>
12914 * dll.c (clear_dlls): Replace accessing list implemention details
12916 * gdbthread.h (get_first_thread): Declare.
12917 * inferiors.c (for_each_inferior_with_data): New function.
12918 (get_first_thread): New function.
12919 (find_thread_ptid): Simplify.
12920 (get_first_inferior): New function.
12921 (clear_list): Delete.
12922 (one_inferior_p): New function.
12923 (clear_inferior_list): New function.
12924 (clear_inferiors): Update.
12925 * inferiors.h (for_each_inferior_with_data): Declare.
12926 (clear_inferior_list): Declare.
12927 (one_inferior_p): Declare.
12928 (get_first_inferior): Declare.
12929 * linux-low.c (linux_wait_for_event): Replace accessing list
12930 implemention details with API function.
12931 * server.c (target_running): Ditto.
12932 (accumulate_file_name_length): New function.
12933 (emit_dll_description): New function.
12934 (handle_qxfer_libraries): Replace accessing list implemention
12935 details with API function.
12936 (handle_qxfer_threads_worker): New function.
12937 (handle_qxfer_threads_proper): Replace accessing list implemention
12938 details with API function.
12939 (handle_query): Ditto.
12940 (visit_actioned_threads_callback_ftype): New typedef.
12941 (visit_actioned_threads_data): New struct.
12942 (visit_actioned_threads): Rewrite to be find_inferior callback.
12943 (resume): Call find_inferior.
12944 (handle_status): Replace accessing list implemention
12945 details with API function.
12946 (process_serial_event): Replace accessing list implemention details
12948 * target.c (set_desired_inferior): Replace accessing list implemention
12949 details with API function.
12950 * tracepoint.c (same_process_p): New function.
12951 (gdb_agent_about_to_close): Replace accessing list implemention
12952 details with API function.
12953 * win32-low.c (child_delete_thread): Replace accessing list
12954 implemention details with API function.
12955 (match_dll_by_basename): New function.
12956 (dll_is_loaded_by_basename): New function.
12957 (win32_ensure_ntdll_loaded): Replace accessing list implemention
12958 details call to dll_is_loaded_by_basename.
12960 2014-02-19 Doug Evans <dje@google.com>
12962 * dll.h (struct dll_info): Add comment.
12963 * gdbthread.h (struct thread_info): Add comment.
12964 (current_ptid): Simplify.
12965 * inferiors.c (add_process): Update.
12966 (remove_process): Update.
12967 * inferiors.h (struct process_info): Rename member "head" to "entry".
12968 * linux-low.c (delete_lwp): Update.
12970 (last_thread_of_process_p): Update.
12971 (kill_one_lwp_callback, linux_kill): Update.
12972 (status_pending_p_callback): Update.
12973 (wait_for_sigstop): Update. Simplify read of ptid.
12974 (start_step_over): Update.
12975 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
12976 (get_lwp_thread): Update.
12977 (struct lwp_info): Rename member "head" to "entry".
12978 * regcache.h (inferior_list_entry): Delete.
12979 * server.c (kill_inferior_callback): Update.
12980 (detach_or_kill_inferior_callback): Update.
12981 (print_started_pid): Update.
12982 (print_attached_pid): Update.
12983 (process_serial_event): Simplify read of ptid.
12984 * thread-db.c (thread_db_create_event): Update.
12985 (thread_db_get_tls_address): Update.
12986 * win32-low.c (current_inferior_ptid): Simplify.
12988 2014-02-19 Tom Tromey <tromey@redhat.com>
12990 * target.h (struct target_ops) <supports_btrace>: Add target_ops
12992 (target_supports_btrace): Update.
12994 2014-02-14 Yao Qi <yao@codesourcery.com>
12996 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
12997 (rsp-low-ipa.o): New target.
12999 2014-02-12 Tom Tromey <tromey@redhat.com>
13001 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
13002 convert_ascii_to_int.
13003 * regcache.c (registers_to_string): Likewise.
13004 * remote-utils.c (decode_M_packet): Likewise.
13005 * server.c (process_serial_event): Likewise.
13007 2014-02-12 Tom Tromey <tromey@redhat.com>
13009 * server.c (handle_query, handle_v_run): Use hex2bin, not
13011 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
13013 2014-02-12 Tom Tromey <tromey@redhat.com>
13015 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
13016 convert_int_to_ascii.
13017 * regcache.c (registers_to_string, collect_register_as_string):
13019 * remote-utils.c (look_up_one_symbol, relocate_instruction):
13021 * server.c (process_serial_event): Likewise.
13022 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
13023 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
13025 2014-02-12 Tom Tromey <tromey@redhat.com>
13027 * remote-utils.c (look_up_one_symbol, monitor_output): Use
13028 bin2hex, not hexify.
13029 * tracepoint.c (cmd_qtstatus): Likewise.
13031 2014-02-12 Tom Tromey <tromey@redhat.com>
13033 * remote-utils.c (monitor_output): Pass explicit length to
13036 2014-02-12 Tom Tromey <tromey@redhat.com>
13038 * tracepoint.c: Include rsp-low.h.
13039 * server.c: Include rsp-low.h.
13040 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
13041 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
13043 * remote-utils.c: Include rsp-low.h.
13044 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
13045 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
13046 (convert_int_to_ascii, convert_ascii_to_int): Move to
13048 * regcache.c: Include rsp-low.h.
13049 * ax.c: Include rsp-low.h.
13050 * Makefile.in (SFILES): Add common/rsp-low.c.
13051 (OBS): Add rsp-low.o.
13052 (rsp-low.o): New target.
13054 2014-02-12 Tom Tromey <tromey@redhat.com>
13056 * utils.h (pulongest, plongest, phex_nz): Don't declare.
13057 Include print-utils.h.
13058 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13059 (plongest, thirty_two, phex_nz): Remove.
13060 * Makefile.in (SFILES): Add common/print-utils.c.
13061 (OBS): Add print-utils.o.
13062 (print-utils-ipa.o): New target.
13063 (print-utils.o): New target.
13064 (IPA_OBJS): Add print-utils-ipa.o.
13066 2014-02-06 Tom Tromey <tromey@redhat.com>
13068 * Makefile.in (SFILES): Fix indentation.
13070 2014-02-05 Doug Evans <dje@google.com>
13072 * linux-low.c (linux_wait_for_event): Improve comment.
13073 (linux_wait_1): Keep current_inferior in sync with event_child.
13075 2014-01-22 Doug Evans <dje@google.com>
13077 * gdbthread.h (gdb_id_to_thread): Delete, unused.
13079 2014-01-22 Doug Evans <dje@google.com>
13081 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
13082 * configure: Regenerate.
13083 * config.in: Regenerate.
13084 * Makefile.in (SFILES): Add debug.c.
13085 (OBS): Add debug.o.
13086 * debug.c: New file.
13087 * debug.h: New file.
13088 * linux-aarch64-low.c (*): Update all debugging printfs to use
13089 debug_printf instead of fprintf.
13090 * linux-arm-low.c (*): Ditto.
13091 * linux-cris-low.c (*): Ditto.
13092 * linux-crisv32-low.c (*): Ditto.
13093 * linux-m32r-low.c (*): Ditto.
13094 * linux-sparc-low.c (*): Ditto.
13095 * linux-x86.c (*): Ditto.
13096 * linux-low.c (*): Ditto.
13097 (linux_wait_1): Add calls to debug_enter, debug_exit.
13098 (linux_wait): Remove redundant debugging printf.
13099 (stop_all_lwps): Add calls to debug_enter, debug_exit.
13100 (linux_resume, unstop_all_lwps): Ditto.
13101 * mem-break.c (*): Update all debugging printfs to use
13102 debug_printf instead of fprintf.
13103 * remote-utils.c (*): Ditto.
13104 * thread-db.c (*): Ditto.
13105 * server.c #include <ctype.h>, "gdb_vecs.h".
13106 (debug_threads): Moved to debug.c.
13107 (*): Update all debugging printfs to use debug_printf instead of
13109 (start_inferior): Replace call to fflush with call to debug_flush.
13110 (monitor_show_help): Mention set debug-format.
13111 (parse_debug_format_options): New function.
13112 (handle_monitor_command): Handle "monitor set debug-format".
13113 (gdbserver_usage): Mention --debug-format.
13114 (main): Parse --debug-format.
13115 * server.h (debug_threads): Declaration moved to debug.h.
13116 #include "debug.h".
13117 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
13118 trace_debug_1 that uses debug_printf.
13119 (tracepoint_look_up_symbols): Update all debugging printfs to use
13120 debug_printf instead of fprintf.
13122 2014-01-20 Baruch Siach <baruch@tkos.co.il>
13124 * linux-xtensa-low.c: Include asm/ptrace.h instead of
13127 2014-01-17 Pedro Alves <palves@redhat.com>
13130 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
13131 defined after including gdb_proc_service.h.
13133 2014-01-16 Doug Evans <dje@google.com>
13135 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
13136 (match_dll): Use it.
13138 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13140 * target.h (target_ops) <read_btrace>: Change parameters and
13141 return type to allow error reporting.
13142 * server.c (handle_qxfer_btrace): Support delta reads. Pass
13143 trace reading errors on.
13144 * linux-low.c (linux_low_read_btrace): Pass trace reading
13146 (linux_low_disable_btrace): New.
13148 2014-01-15 Doug Evans <dje@google.com>
13150 * inferiors.c (thread_id_to_gdb_id): Delete.
13151 * inferiors.h (thread_id_to_gdb_id): Delete.
13153 2014-01-13 Eli Zaretskii <eliz@gnu.org>
13155 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
13156 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
13159 2014-01-08 Pedro Alves <palves@redhat.com>
13161 * server.c (handle_status): Don't discard previous queued stop
13162 replies or thread's pending status here.
13163 (main) <disconnection>: Do it here instead.
13165 2014-01-08 Pedro Alves <palves@redhat.com>
13167 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
13168 * server.c (visit_actioned_threads, handle_pending_status): New
13170 (handle_v_cont): Factor out parts to ...
13171 (resume): ... this new function. If in all-stop, and a thread
13172 being resumed has a pending status, report it without actually
13174 (myresume): Adjust to use the new 'resume' function.
13175 (clear_pending_status_callback, set_pending_status_callback)
13176 (find_status_pending_thread_callback): New functions.
13177 (handle_status): Handle the case of multiple threads having
13178 interesting statuses to report. Report threads' real last signal
13179 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
13180 with an interesting thread to report the status for, instead of
13181 always reporting the status of the first thread.
13183 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13185 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
13186 * gdbreplay.c (gdbreplay_version): Likewise.
13188 2013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
13190 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
13191 iov.iov_len with the real length in use.
13193 2013-12-13 Joel Brobecker <brobecker@adacore.com>
13195 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
13196 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
13197 for all targets that use win32-low.c.
13198 * win32-low.c (win32_ensure_ntdll_loaded): New function.
13199 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
13201 2013-12-13 Pedro Alves <palves@redhat.com>
13203 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
13204 if equal to TARGET_WAITKIND_LOADED.
13205 * win32-low.c (cached_status): New static global.
13206 (win32_wait): Add declaration.
13207 (do_initial_child_stuff): Flush all initial pending debug events
13208 up to the initial breakpoint.
13209 (win32_wait): If CACHED_STATUS was set, return that instead
13210 of doing a real wait. Remove the code resuming the execution
13211 of the inferior after receiving a TARGET_WAITKIND_LOADED event
13212 during the initial phase. Also remove the code changing
13213 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
13214 TARGET_WAITKIND_STOPPED.
13216 2013-12-11 Yao Qi <yao@codesourcery.com>
13218 * notif.c (handle_notif_ack): Return 0 if no notification
13221 2013-11-20 Doug Evans <dje@google.com>
13223 * linux-low.c (linux_set_resume_request): Fix comment.
13225 2013-11-20 Doug Evans <dje@google.com>
13227 * linux-low.c (resume_status_pending_p): Tweak comment.
13229 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
13231 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
13232 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
13233 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
13234 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
13235 (srv_amd64_regobj): Add amd64-mpx.o.
13236 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
13237 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
13238 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
13239 * i387-fp.c (num_pl_bnd_register) Added constant.
13240 (num_pl_bnd_cfg_registers) Added constant.
13241 (struct i387_xsave) Added reserved area and MPX fields.
13242 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
13243 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
13245 (tdesc_i386_mpx_linux): Add MPX amd64 target.
13246 (init_registers_amd64_mpx_linux): Declare new function.
13247 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
13248 (x86_64_regmap): Add MPX registers.
13249 (x86_linux_read_description): Add MPX case.
13250 (initialize_low_arch): Initialize MPX targets.
13252 2013-11-18 Tom Tromey <tromey@redhat.com>
13254 * configure: Rebuild.
13255 * configure.ac: Don't check for stdlib.h.
13256 * gdbreplay.c: Unconditionally include stdlib.h.
13258 2013-11-18 Tom Tromey <tromey@redhat.com>
13260 * config.in: Rebuild.
13261 * configure: Rebuild.
13262 * configure.ac: Don't use AC_HEADER_DIRENT.
13264 2013-11-18 Tom Tromey <tromey@redhat.com>
13266 * server.h: Don't check HAVE_STRING_H.
13267 * gdbreplay.c: Don't check HAVE_STRING_H.
13268 * configure: Rebuild.
13270 2013-11-18 Tom Tromey <tromey@redhat.com>
13272 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
13275 2013-11-08 Tom Tromey <tromey@redhat.com>
13277 * configure, config.in: Rebuild.
13278 * configure.ac: Remove unused configury.
13280 2013-11-08 Tom Tromey <tromey@redhat.com>
13282 * acinclude.m4: Include common.m4, codeset.m4.
13283 * configure, config.in: Rebuild.
13284 * configure.ac: Use GDB_AC_COMMON.
13286 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
13288 * linux-s390-low.c (HWCAP_S390_TE): New define.
13289 (s390_arch_setup): Consider the TE field in the HWCAP for
13290 determining 'have_regset_tdb'.
13292 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
13295 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
13298 2013-10-02 Pedro Alves <palves@redhat.com>
13300 * server.c (process_serial_event): Don't output "GDBserver
13301 exiting" if GDB is connected through stdio.
13302 * target.c (mywait): Likewise, be silent if GDB is connected
13305 2013-10-01 Joel Brobecker <brobecker@adacore.com>
13307 * lynx-low.c (lynx_add_threads_after_attach): New function.
13308 (lynx_attach): Remove call to add_thread. Add call to
13309 lynx_add_threads_after_attach instead.
13311 2013-09-28 Mike Frysinger <vapier@gentoo.org>
13313 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
13314 * config.in, configure: Regenerated.
13316 2013-09-18 Yao Qi <yao@codesourcery.com>
13319 * server.c (start_inferior): Clear 'resume_info'.
13321 2013-09-16 Jiong Wang <jiwang@tilera.com>
13323 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
13326 2013-09-16 Jiong Wang <jiwang@tilera.com>
13328 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
13329 linux-tile-low.o to srv_tgtobj.
13331 2013-09-16 Will Newton <will.newton@linaro.org>
13333 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
13336 2013-09-06 Pedro Alves <palves@redhat.com>
13338 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
13339 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
13340 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
13341 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
13342 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
13343 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
13345 2013-09-06 Pedro Alves <palves@redhat.com>
13347 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
13348 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
13350 2013-09-06 Pedro Alves <palves@redhat.com>
13352 * linux-amd64-ipa.c: Include tracepoint.h.
13353 * linux-i386-ipa.c: Include tracepoint.h.
13355 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
13357 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
13358 (ps_get_thread_area): New function.
13360 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
13362 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
13363 (initialize_low_arch): Call init_registers_crisv32 rather than
13364 init_register_crisv32.
13366 2013-09-05 Pedro Alves <palves@redhat.com>
13368 * server.h (handle_vFile, hostio_last_error_from_errno): Move
13370 * hostio.h: ... this new file.
13371 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
13372 win32-low.c: Include hostio.h.
13374 2013-09-05 Pedro Alves <palves@redhat.com>
13376 * server.h (gdb_client_data, handler_func, callback_handler_func)
13377 (delete_file_handler, add_file_handler, append_callback_event)
13378 (delete_callback_event, start_event_loop, initialize_event_loop):
13379 Move to event-loop.h and include it.
13380 * event-loop.h: New file.
13382 2013-09-05 Pedro Alves <palves@redhat.com>
13384 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
13385 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
13386 (loaded_dll, unloaded_dll): Move to ...
13387 * dll.h: ... this new file.
13388 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
13390 2013-09-05 Pedro Alves <palves@redhat.com>
13392 * server.h (current_process, get_thread_process, all_processes)
13393 (add_inferior_to_list, for_each_inferior, current_inferior)
13394 (remove_inferior, add_process, remove_process, find_process_pid)
13395 (have_started_inferiors_p, have_attached_inferiors_p)
13396 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
13397 (clear_inferiors, find_inferior, find_inferior_id)
13398 (inferior_target_data, set_inferior_target_data)
13399 (inferior_regcache_data, set_inferior_regcache_data): Move to
13400 inferiors.h, and include it.
13401 * inferiors.h: New file.
13403 2013-09-05 Pedro Alves <palves@redhat.com>
13405 * server.h (struct emit_ops, current_insn_ptr, emit_error):
13409 2013-09-05 Pedro Alves <palves@redhat.com>
13411 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
13413 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
13414 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
13415 (handle_tracepoint_general_set, handle_tracepoint_query)
13416 (tracepoint_finished_step, tracepoint_was_hit)
13417 (release_while_stepping_state_list, current_traceframe)
13418 (in_readonly_region, traceframe_read_mem)
13419 (fetch_traceframe_registers, traceframe_read_sdata)
13420 (traceframe_read_info, struct fast_tpoint_collect_status)
13421 (fast_tracepoint_collecting, force_unlock_trace_buffer)
13422 (handle_tracepoit_bkpts, initialize_low_tracepoint)
13423 (supply_fast_tracepoint_registers)
13424 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
13425 (ipa_tdesc, claim_trampoline_space)
13426 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
13427 (agent_mem_read, agent_get_trace_state_variable_value)
13428 (agent_set_trace_state_variable_value, agent_tsv_read)
13429 (agent_mem_read_string, get_raw_reg_func_addr)
13430 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
13431 * tracepoint.h: ... this new file.
13433 2013-09-05 Pedro Alves <palves@redhat.com>
13435 * server.h (perror_with_name, error, fatal, warning, paddress)
13436 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
13438 * utils.h: New file.
13440 2013-09-05 Pedro Alves <palves@redhat.com>
13442 * server.h (remote_debug, noack_mode, transport_is_reliable)
13443 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
13444 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
13445 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
13446 (write_enn, initialize_async_io, enable_async_io)
13447 (disable_async_io, check_remote_input_interrupt_request)
13448 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
13449 (dead_thread_notify, prepare_resume_reply)
13450 (decode_address_to_semicolon, decode_address, decode_m_packet)
13451 (decode_M_packet, decode_X_packet, decode_xfer_write)
13452 (decode_search_memory_packet, unhexify, hexify)
13453 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
13454 (look_up_one_symbol, relocate_instruction)
13455 (monitor_output): Move to remote-utils.h, and include it.
13456 * remote-utils.h: New file.
13458 2013-09-05 Pedro Alves <palves@redhat.com>
13460 * server.h (_): Delete.
13462 2013-09-02 Pedro Alves <palves@redhat.com>
13464 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
13465 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
13467 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
13469 2013-09-02 Pierre Muller <muller@sourceware.org>
13471 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
13472 or WriteProcessMemory complete successfully and handle
13473 ERROR_PARTIAL_COPY error.
13475 2013-09-02 Pedro Alves <palves@redhat.com>
13477 * server.c (gdb_read_memory): Return -1 on traceframe memory read
13478 error instead of EIO.
13480 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
13483 * linux-low.c: Include filestuff.h.
13484 (linux_create_inferior) <pid == 0>: Call close_most_fds.
13485 * lynx-low.c: Include filestuff.h.
13486 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
13487 * server.c: Include filestuff.h.
13488 (main): Call notice_open_fds.
13489 * spu-low.c: Include filestuff.h.
13490 (spu_create_inferior) <pid == 0>: Call close_most_fds.
13492 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
13494 * Makefile.in: Explain why ../target and ../nat are not
13495 listed as include file search paths.
13496 (linux-waitpid.o): New object file rule.
13497 * configure.srv (srv_native_linux_obj): New variable.
13498 Replace all occurrences of linux native object files with
13499 $srv_native_linux_obj.
13500 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
13501 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
13502 (linux_enable_event_reporting): Remove declaration.
13503 (my_waitpid): Moved to common/linux-waitpid.c.
13504 (linux_wait_for_event): Pass ptid when calling
13505 linux_enable_event_reporting.
13506 (linux_supports_tracefork_flag): Remove.
13507 (linux_enable_event_reporting): Likewise.
13508 (linux_tracefork_grandchild): Remove.
13509 (STACK_SIZE): Moved to common/linux-ptrace.c.
13510 (linux_tracefork_child): Remove.
13511 (linux_test_for_tracefork): Remove.
13512 (linux_look_up_symbols): Call linux_supports_traceclone.
13513 (initialize_low): Remove call to linux_test_for_tracefork.
13514 * linux-low.h (PTRACE_TYPE_ARG3): Move to
13515 common/linux-ptrace.h.
13516 (PTRACE_TYPE_ARG4): Likewise.
13517 Include linux-ptrace.h.
13519 2013-08-21 Pedro Alves <palves@redhat.com>
13521 * config.in: Renegerate.
13523 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
13525 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
13526 (SFILES): Remove $(srcdir)/common/target-common.c and
13527 add $(srcdir)/target/waitstatus.c.
13528 (OBS): Remove target-common.o and add waitstatus.o.
13529 (server_h): Remove $(srcdir)/../common/target-common.h and
13530 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
13531 and $(srcdir)/../target/waitstatus.h.
13532 (target-common.o): Remove.
13533 (waitstatus.o): New target object file.
13534 * target.h: Do not include target-common.h and
13535 include target/resume.h, target/wait.h and
13536 target/waitstatus.h.
13538 2013-08-13 Luis Machado <lgustavo@codesourcery.com>
13540 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13541 to PTRACE_TYPE_ARG3.
13542 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13543 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
13545 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
13546 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
13548 2013-07-27 Jie Zhang <jie@codesourcery.com>
13549 Daniel Jacobowitz <dan@codesourcery.com>
13550 Yao Qi <yao@codesourcery.com>
13552 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
13553 (mips-linux-watch.o): New rule.
13554 (mips_linux_watch_h): New variable.
13555 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
13557 * linux-mips-low.c: Include mips-linux-watch.h.
13558 (struct arch_process_info, struct arch_lwp_info): New.
13559 (update_watch_registers_callback): New function.
13560 (mips_linux_new_process, mips_linux_new_thread) New functions.
13561 (mips_linux_prepare_to_resume, mips_insert_point): New
13563 (mips_remove_point, mips_stopped_by_watchpoint): New
13565 (rsp_bp_type_to_target_hw_bp_type): New function.
13566 (mips_stopped_data_address): New function.
13567 (the_low_target): Add watchpoint support functions.
13569 2013-07-27 Yao Qi <yao@codesourcery.com>
13571 * i386-low.c: Include break-common.h.
13572 (enum target_hw_bp_type): Remove.
13574 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
13576 * Makefile.in (SFILES): /common/target-common.c.
13577 (OBS): Add target-common.o.
13578 (server_h): Add $(srcdir)/../common/target-common.h.
13579 (target-common.o): New target.
13580 * server.c (queue_stop_reply_callback): Free
13581 status string after use.
13582 * target.c (target_waitstatus_to_string): Remove.
13583 * target.h: Include target-common.h.
13584 (resume_kind): Likewise.
13585 (target_waitkind): Likewise.
13586 (target_waitstatus): Likewise.
13587 (TARGET_WNOHANG): Likewise.
13589 2013-07-04 Yao Qi <yao@codesourcery.com>
13591 * Makefile.in (host_alias): Use @host_noncanonical@.
13592 (target_alias): Use @target_noncanonical@.
13593 * configure.ac: Use ACX_NONCANONICAL_TARGET and
13594 ACX_NONCANONICAL_HOST.
13595 * configure: Regenerated.
13598 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13600 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13601 * configure: Rebuild.
13602 * Makefile.in (version_host, version_target): Get from configure.
13603 (version.c): Use $(version_host) and $(version_target).
13605 2013-07-03 Pedro Alves <palves@redhat.com>
13607 * Makefile.in (config.status): Depend on development.sh.
13608 * acinclude.m4: Include libmcheck.m4.
13609 * configure: Regenerate.
13611 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13613 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
13614 attribute inside the parentheses.
13615 (winapi_DebugSetProcessKillOnExit): Ditto.
13616 (winapi_DebugBreakProcess): Ditto.
13617 (winapi_GenerateConsoleCtrlEvent): Ditto.
13619 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13621 * notif.h (notif_event): Add a dummy member to avoid compiler
13624 2013-07-01 Pedro Alves <palves@redhat.com>
13626 * hostio.c (HOSTIO_PATH_MAX): Define.
13627 (require_filename, handle_open, handle_unlink, handle_readlink):
13630 2013-07-01 Pedro Alves <palves@redhat.com>
13632 * server.h: Include "pathmax.h".
13633 * linux-low.c: Don't include sys/param.h.
13634 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
13636 * win32-low.c: Don't include sys/param.h.
13637 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
13639 2013-07-01 Pedro Alves <palves@redhat.com>
13641 * event-loop.c: Don't check HAVE_UNISTD_H before including
13643 * gdbreplay.c: Likewise.
13644 * remote-utils.c: Likewise.
13645 * server.c: Likewise.
13646 * configure.ac: Don't check for unistd.h.
13647 * configure: Regenerate.
13649 2013-06-28 Tom Tromey <tromey@redhat.com>
13651 * Makefile.in (version.c): Use version.in, not
13654 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13656 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13657 * configure: Rebuild.
13658 * Makefile.in (version_host, version_target): Get from configure.
13659 (version.c): Use $(version_host) and $(version_target).
13661 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13663 Fix trace-status to output user name without trailing colon.
13664 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
13666 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13668 Fix trace-status to output proper start-time and stop-time.
13669 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
13670 output start time and stop time in hex as gdb expects.
13672 2013-06-26 Pedro Alves <pedro@codesourcery.com>
13674 * tracepoint.c (build_traceframe_info_xml): Output trace state
13675 variables present in the trace buffer.
13677 2013-06-24 Tom Tromey <tromey@redhat.com>
13679 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
13681 (version.o): Remove.
13682 * gdbreplay.c: Include version.h.
13683 (version, host_name): Don't declare.
13684 * server.h: Include version.h.
13685 (version, host_name): Don't declare.
13687 2013-06-12 Pedro Alves <palves@redhat.com>
13689 * linux-x86-low.c (linux_is_elf64): Delete global.
13690 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
13691 with local linux_pid_exe_is_elf_64_file use.
13693 2013-06-11 Pedro Alves <palves@redhat.com>
13695 * linux-low.c (regset_disabled, disable_regset): New functions.
13696 (regsets_fetch_inferior_registers)
13697 (regsets_store_inferior_registers): Use them.
13698 (initialize_regsets_info); Don't allocate the disabled_regsets
13700 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
13703 2013-06-11 Pedro Alves <palves@redhat.com>
13705 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
13708 2013-06-11 Pedro Alves <palves@redhat.com>
13710 * linux-x86-low.c (initialize_low_arch): Call
13711 init_registers_x32_avx_linux.
13713 2013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13715 Fix compatibility with Android Bionic.
13716 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
13719 2013-06-07 Pedro Alves <palves@redhat.com>
13722 * Makefile.in (OBS): Add tdesc.o.
13723 (IPA_OBJS): Add tdesc-ipa.o.
13724 (tdesc-ipa.o): New rule.
13725 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
13727 * linux-low.c (new_inferior): Delete.
13728 (disabled_regsets, num_regsets): Delete.
13729 (linux_add_process): Adjust to set the new per-process
13731 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
13732 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
13733 was a stop. When calling arch_setup, switch the current inferior
13734 to the thread that got an event.
13735 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
13736 (regsets_fetch_inferior_registers)
13737 (regsets_store_inferior_registers): New regsets_info parameter.
13739 (linux_register_in_regsets): New regs_info parameter. Adjust to
13741 (register_addr, fetch_register, store_register): New usrregs_info
13742 parameter. Adjust to use it.
13743 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
13744 parameter regs_info. Adjust to use it.
13745 (linux_fetch_registers): Get the current inferior's regs_info, and
13747 (linux_store_registers): Ditto.
13748 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
13749 (initialize_low): Don't initialize the target_regsets here. Call
13750 initialize_low_arch.
13751 * linux-low.h (target_regsets): Delete declaration.
13752 (struct regsets_info): New.
13753 (struct usrregs_info): New.
13754 (struct regs_info): New.
13755 (struct process_info_private) <new_inferior>: New field.
13756 (struct linux_target_ops): Delete the num_regs, regmap, and
13757 regset_bitmap fields. New field regs_info.
13758 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
13759 * i387-fp.c (num_xmm_registers): Delete.
13760 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
13761 calls to new interface.
13762 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
13763 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
13764 Infer the number of xmm registers from the regcache's target
13766 * i387-fp.h (num_xmm_registers): Delete.
13767 * inferiors.c (add_thread): Don't install the thread's regcache
13769 * proc-service.c (gregset_info): Fetch the current inferior's
13770 regs_info. Adjust to use it.
13771 * regcache.c: Include tdesc.h.
13772 (register_bytes, reg_defs, num_registers)
13773 (gdbserver_expedite_regs): Delete.
13774 (get_thread_regcache): If the thread doesn't have a regcache yet,
13775 create one, instead of aborting gdbserver.
13776 (regcache_invalidate_one): Rename to ...
13777 (regcache_invalidate_thread): ... this.
13778 (regcache_invalidate_one): New.
13779 (regcache_invalidate): Only invalidate registers of the current
13781 (init_register_cache): Add target_desc parameter, and use it.
13782 (new_register_cache): Ditto. Assert the target description has a
13783 non zero registers_size.
13784 (regcache_cpy): Add assertions. Adjust.
13785 (realloc_register_cache, set_register_cache): Delete.
13786 (registers_to_string, registers_from_string): Adjust.
13787 (find_register_by_name, find_regno, find_register_by_number)
13788 (register_cache_size): Add target_desc parameter, and use it.
13789 (free_register_cache_thread, free_register_cache_thread_one)
13790 (regcache_release, register_cache_size): New.
13791 (register_size): Add target_desc parameter, and use it.
13792 (register_data, supply_register, supply_register_zeroed)
13793 (supply_regblock, supply_register_by_name, collect_register)
13794 (collect_register_as_string, collect_register_by_name): Adjust.
13795 * regcache.h (struct target_desc): Forward declare.
13796 (struct regcache) <tdesc>: New field.
13797 (init_register_cache, new_register_cache): Add target_desc
13799 (regcache_invalidate_thread): Declare.
13800 (regcache_invalidate_one): Delete declaration.
13801 (regcache_release): Declare.
13802 (find_register_by_number, register_cache_size, register_size)
13803 (find_regno): Add target_desc parameter.
13804 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
13806 * remote-utils.c: Include tdesc.h.
13807 (outreg, prepare_resume_reply): Adjust.
13808 * server.c: Include tdesc.h.
13809 (gdbserver_xmltarget): Delete declaration.
13810 (get_features_xml, process_serial_event): Adjust.
13811 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
13813 (struct process_info) <tdesc>: New field.
13814 (ipa_tdesc): Declare.
13815 * tdesc.c: New file.
13816 * tdesc.h: New file.
13817 * tracepoint.c: Include tdesc.h.
13818 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
13819 (get_context_regcache): Adjust to pass ipa_tdesc down.
13820 (do_action_at_tracepoint): Adjust to get the register cache size
13821 from the context regcache's description.
13822 (traceframe_walk_blocks): Adjust to get the register cache size
13823 from the current trace frame's description.
13824 (traceframe_get_pc): Adjust to get current trace frame's
13825 description and pass it down.
13826 (gdb_collect): Adjust to get the register cache size from the
13828 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
13829 (gdbserver_xmltarget): Delete.
13830 (initialize_low_tracepoint): Set the ipa's target description.
13831 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
13832 (initialize_low_tracepoint): Set the ipa's target description.
13833 * linux-x86-low.c: Include tdesc.h.
13834 [__x86_64__] (is_64bit_tdesc): New.
13835 (ps_get_thread_area, x86_get_thread_area): Use it.
13836 (i386_cannot_store_register): Rename to ...
13837 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
13838 (i386_cannot_fetch_register): Rename to ...
13839 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
13840 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
13842 (target_regsets): Rename to ...
13843 (x86_regsets): ... this.
13844 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
13846 (x86_siginfo_fixup): Use is_64bit_tdesc.
13847 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
13848 (tdesc_x32_avx_linux, tdesc_x32_linux)
13849 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
13851 (x86_linux_update_xmltarget): Delete.
13852 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
13853 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
13854 (AMD64_LINUX_USER64_CS): New.
13855 (x86_linux_read_description): New, based on
13856 x86_linux_update_xmltarget.
13857 (same_process_callback): New.
13858 (x86_arch_setup_process_callback): New.
13859 (x86_linux_update_xmltarget): New.
13860 (x86_regsets_info): New.
13861 (amd64_linux_regs_info): New.
13862 (i386_linux_usrregs_info): New.
13863 (i386_linux_regs_info): New.
13864 (x86_linux_regs_info): New.
13865 (x86_arch_setup): Reimplement.
13866 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
13867 (x86_emit_ops): Ditto.
13868 (the_low_target): Adjust. Install x86_linux_regs_info,
13869 x86_cannot_fetch_register, and x86_cannot_store_register.
13870 (initialize_low_arch): New.
13871 * linux-ia64-low.c (tdesc_ia64): Declare.
13872 (ia64_fetch_register): Adjust.
13873 (ia64_usrregs_info, regs_info): New globals.
13874 (ia64_regs_info): New function.
13875 (the_low_target): Adjust.
13876 (initialize_low_arch): New function.
13877 * linux-sparc-low.c (tdesc_sparc64): Declare.
13878 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
13880 (sparc_arch_setup): New function.
13881 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
13882 (the_low_target): Adjust.
13883 (initialize_low_arch): New function.
13884 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
13885 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
13886 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
13887 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
13888 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
13889 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
13890 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
13891 (tdesc_powerpc_isa205_vsx64l): Declare.
13892 (ppc_cannot_store_register, ppc_collect_ptrace_register)
13893 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
13894 (ppc_set_pc, ppc_get_hwcap): Adjust.
13895 (ppc_usrregs_info): Forward declare.
13896 (!__powerpc64__) ppc_regmap_adjusted: New global.
13897 (ppc_arch_setup): Adjust to the current process'es target
13899 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
13900 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
13901 (ppc_store_evrregset): Adjust.
13902 (target_regsets): Rename to ...
13903 (ppc_regsets): ... this, and make static.
13904 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
13905 (ppc_regs_info): New function.
13906 (the_low_target): Adjust.
13907 (initialize_low_arch): New function.
13908 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
13909 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
13910 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
13911 (tdesc_s390x_linux64v2): Declare.
13912 (s390_collect_ptrace_register, s390_supply_ptrace_register)
13913 (s390_fill_gregset, s390_store_last_break): Adjust.
13914 (target_regsets): Rename to ...
13915 (s390_regsets): ... this, and make static.
13916 (s390_get_pc, s390_set_pc): Adjust.
13917 (s390_get_hwcap): New target_desc parameter, and use it.
13918 [__s390x__] (have_hwcap_s390_high_gprs): New global.
13919 (s390_arch_setup): Adjust to set the current process'es target
13920 description. Don't adjust the regmap.
13921 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
13922 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
13923 (regs_info_3264): New globals.
13924 (s390_regs_info): New function.
13925 (the_low_target): Adjust.
13926 (initialize_low_arch): New function.
13927 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
13928 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
13929 [__mips64] (init_registers_mips_linux)
13930 (init_registers_mips_dsp_linux): Delete defines.
13931 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
13932 (have_dsp): New global.
13933 (mips_read_description): New, based on mips_arch_setup.
13934 (mips_arch_setup): Reimplement.
13935 (get_usrregs_info): New function.
13936 (mips_cannot_fetch_register, mips_cannot_store_register)
13937 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
13938 (mips_fill_fpregset, mips_store_fpregset): Adjust.
13939 (target_regsets): Rename to ...
13940 (mips_regsets): ... this, and make static.
13941 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
13942 (dsp_regs_info, regs_info): New globals.
13943 (mips_regs_info): New function.
13944 (the_low_target): Adjust.
13945 (initialize_low_arch): New function.
13946 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
13947 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
13949 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
13950 (arm_read_description): New, with bits factored from
13952 (arm_arch_setup): Reimplement.
13953 (target_regsets): Rename to ...
13954 (arm_regsets): ... this, and make static.
13955 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
13956 (arm_regs_info): New function.
13957 (the_low_target): Adjust.
13958 (initialize_low_arch): New function.
13959 * linux-m68k-low.c (tdesc_m68k): Declare.
13960 (target_regsets): Rename to ...
13961 (m68k_regsets): ... this, and make static.
13962 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
13963 (m68k_regs_info): New function.
13964 (m68k_arch_setup): New function.
13965 (the_low_target): Adjust.
13966 (initialize_low_arch): New function.
13967 * linux-sh-low.c (tdesc_sharch): Declare.
13968 (target_regsets): Rename to ...
13969 (sh_regsets): ... this, and make static.
13970 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
13971 (sh_regs_info, sh_arch_setup): New functions.
13972 (the_low_target): Adjust.
13973 (initialize_low_arch): New function.
13974 * linux-bfin-low.c (tdesc_bfin): Declare.
13975 (bfin_arch_setup): New function.
13976 (bfin_usrregs_info, regs_info): New globals.
13977 (bfin_regs_info): New function.
13978 (the_low_target): Adjust.
13979 (initialize_low_arch): New function.
13980 * linux-cris-low.c (tdesc_cris): Declare.
13981 (cris_arch_setup): New function.
13982 (cris_usrregs_info, regs_info): New globals.
13983 (cris_regs_info): New function.
13984 (the_low_target): Adjust.
13985 (initialize_low_arch): New function.
13986 * linux-cris-low.c (tdesc_crisv32): Declare.
13987 (cris_arch_setup): New function.
13988 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
13989 (cris_regs_info): New function.
13990 (the_low_target): Adjust.
13991 (initialize_low_arch): New function.
13992 * linux-m32r-low.c (tdesc_m32r): Declare.
13993 (m32r_arch_setup): New function.
13994 (m32r_usrregs_info, regs_info): New globals.
13995 (m32r_regs_info): Adjust.
13996 (initialize_low_arch): New function.
13997 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
13998 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
13999 (tic6x_usrregs_info): Forward declare.
14000 (tic6x_read_description): New function, based on ...
14001 (tic6x_arch_setup): ... this. Reimplement.
14002 (target_regsets): Rename to ...
14003 (tic6x_regsets): ... this, and make static.
14004 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
14005 (tic6x_regs_info): New function.
14006 (the_low_target): Adjust.
14007 (initialize_low_arch): New function.
14008 * linux-xtensa-low.c (tdesc_xtensa): Declare.
14009 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
14010 (target_regsets): Rename to ...
14011 (xtensa_regsets): ... this, and make static.
14012 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
14014 (xtensa_arch_setup, xtensa_regs_info): New functions.
14015 (the_low_target): Adjust.
14016 (initialize_low_arch): New function.
14017 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
14018 (nios2_arch_setup): Set the current process'es tdesc.
14019 (target_regsets): Rename to ...
14020 (nios2_regsets): ... this.
14021 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
14022 (nios2_regs_info): New function.
14023 (the_low_target): Adjust.
14024 (initialize_low_arch): New function.
14025 * linux-aarch64-low.c (tdesc_aarch64): Declare.
14026 (aarch64_arch_setup): Set the current process'es tdesc.
14027 (target_regsets): Rename to ...
14028 (aarch64_regsets): ... this.
14029 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
14030 (aarch64_regs_info): New function.
14031 (the_low_target): Adjust.
14032 (initialize_low_arch): New function.
14033 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
14035 (target_regsets): Rename to ...
14036 (tile_regsets): ... this.
14037 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
14038 (tile_regs_info): New function.
14039 (tile_arch_setup): Set the current process'es tdesc.
14040 (the_low_target): Adjust.
14041 (initialize_low_arch): New function.
14042 * spu-low.c (tdesc_spu): Declare.
14043 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
14044 * win32-arm-low.c (tdesc_arm): Declare.
14045 (arm_arch_setup): New function.
14046 (the_low_target): Install arm_arch_setup instead of
14047 init_registers_arm.
14048 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
14049 (init_windows_x86): Rename to ...
14050 (i386_arch_setup): ... this. Set `win32_tdesc'.
14051 (the_low_target): Adjust.
14052 * win32-low.c (win32_tdesc): New global.
14053 (child_add_thread): Don't create the thread cache here.
14054 (do_initial_child_stuff): Set the new process'es tdesc.
14055 * win32-low.h (struct target_desc): Forward declare.
14056 (win32_tdesc): Declare.
14057 * lynx-i386-low.c (tdesc_i386): Declare global.
14058 (lynx_i386_arch_setup): Set `lynx_tdesc'.
14059 * lynx-low.c (lynx_tdesc): New global.
14060 (lynx_add_process): Set the new process'es tdesc.
14061 * lynx-low.h (struct target_desc): Forward declare.
14062 (lynx_tdesc): Declare global.
14063 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
14064 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
14065 * nto-low.c (nto_tdesc): New global.
14066 (do_attach): Set the new process'es tdesc.
14067 * nto-low.h (struct target_desc): Forward declare.
14068 (nto_tdesc): Declare.
14069 * nto-x86-low.c (tdesc_i386): Declare.
14070 (nto_x86_arch_setup): Set `nto_tdesc'.
14072 2013-06-04 Gary Benson <gbenson@redhat.com>
14074 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
14075 to qSupported response when appropriate.
14076 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
14077 with nonzero-length annex.
14078 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
14079 arguments supplied in annex.
14081 2013-05-31 Doug Evans <dje@google.com>
14084 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
14085 64 bits in 64-cross-32 environment.
14087 2013-05-28 Pedro Alves <palves@redhat.com>
14089 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
14090 (aarch64-without-fpu.c): Delete rule.
14091 * configure.srv (aarch64*-*-linux*): Remove references to
14092 aarch64-without-fpu.o and aarch64-without-fpu.xml.
14093 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
14096 2013-05-24 Pedro Alves <palves@redhat.com>
14098 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
14099 instead of strchr/decode_address. Error if the range isn't split
14100 with a ','. Don't assume there's be a ':' in the action.
14102 2013-05-23 Yao Qi <yao@codesourcery.com>
14103 Pedro Alves <palves@redhat.com>
14105 * linux-low.c (lwp_in_step_range): New function.
14106 (linux_wait_1): If the thread was range stepping and stopped
14107 outside the stepping range, report the stop to GDB. Otherwise,
14108 continue stepping. Add range stepping debug output.
14109 (linux_set_resume_request): Copy the step range from the resume
14110 request to the lwp.
14111 (linux_supports_range_stepping): New.
14112 (linux_target_ops) <supports_range_stepping>: Set to
14113 linux_supports_range_stepping.
14114 * linux-low.h (struct linux_target_ops)
14115 <supports_range_stepping>: New field.
14116 (struct lwp_info) <step_range_start, step_range_end>: New fields.
14117 * linux-x86-low.c (x86_supports_range_stepping): New.
14118 (the_low_target) <supports_range_stepping>: Set to
14119 x86_supports_range_stepping.
14120 * server.c (handle_v_cont): Handle 'r' action.
14121 (handle_v_requests): Append ";r" if the target supports range
14123 * target.h (struct thread_resume) <step_range_start,
14124 step_range_end>: New fields.
14125 (struct target_ops) <supports_range_stepping>:
14127 (target_supports_range_stepping): New macro.
14129 2013-05-17 Joel Brobecker <brobecker@adacore.com>
14131 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
14132 confusion in comment.
14134 2013-05-17 Joel Brobecker <brobecker@adacore.com>
14136 * lynx-low.c (struct process_info_private): New type.
14137 (lynx_add_process): New function.
14138 (lynx_create_inferior, lynx_attach): Replace calls to
14139 add_process by calls to lynx_add_process.
14140 (lynx_resume): If PTID is null, then try using
14141 current_process()->private->last_wait_event_ptid.
14143 (lynx_clear_inferiors): Delete. The contents of that function
14144 has been inlined in lynx_mourn;
14145 (lynx_wait_1): Save the ptid in the process's private data.
14146 (lynx_mourn): Free the process' private data. Replace call
14147 to lynx_clear_inferiors by call to clear_inferiors.
14149 2013-05-17 Yao Qi <yao@codesourcery.com>
14151 * i386-low.c (i386_length_and_rw_bits): Move the comment to
14154 2013-05-16 Luis Machado <lgustavo@codesourcery.com>
14156 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
14157 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
14158 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
14159 PT_TEXT_END_ADDR guards. Update comments.
14160 (linux_target_op) <read_offsets>: Conditionally define to
14161 linux_read_offsets if the target is UCLIBC and if it defines
14162 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
14164 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
14165 Andrew Jenner <andrew@codesourcery.com>
14167 * Makefile.in (SFILES): Add linux-nios2-low.c.
14168 (clean): Add action to delete nios2-linux.c.
14169 (nios2-linux.c): New rule.
14170 * configure.srv: Add nios2*-*-linux*.
14171 * linux-nios2-low.c: New.
14173 2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
14175 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
14177 2013-04-25 Hui Zhu <hui@codesourcery.com>
14180 * ax.c (ax_printf): Add fflush.
14182 2013-04-22 Tom Tromey <tromey@redhat.com>
14184 * Makefile.in (SFILES): Add filestuff.c.
14185 (OBS): Add filestuff.o.
14186 (filestuff.o): New target.
14187 * config.in, configure: Rebuild.
14188 * configure.ac: Check for fdwalk, pipe2.
14190 2013-04-17 Pedro Alves <palves@redhat.com>
14192 * configure.ac (USE_THREAD_DB): Delete variable.
14193 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
14194 Don't AC_SUBST USE_THREAD_DB.
14195 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
14196 * config.in, configure: Regenerate.
14198 2013-04-16 Pedro Alves <palves@redhat.com>
14200 * linux-low.h (struct lwp_info) <thread_known>: Move under
14201 the USE_THREAD_DB #ifdef.
14203 2013-04-16 Pedro Alves <palves@redhat.com>
14205 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
14206 (linux-low.o): Delete rule.
14207 * linux-low.h: Always include "gdb_thread_db.h" instead of
14208 conditionally including thread_db.h.
14209 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
14212 2013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14214 * Makefile.in (install-only): Fix make install regression.
14216 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
14218 Convert man pages to texinfo, new gdbinit.5 texinfo page.
14219 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
14221 * gdbserver.1: Remove.
14223 2013-03-22 Pedro Alves <palves@redhat.com>
14225 * linux-low.c (handle_extended_wait): Don't call
14226 linux_enable_event_reporting.
14228 2013-03-15 Tony Theodore <tonyt@logyst.com>
14231 * Makefile.in (SHELL): Use @SHELL@.
14233 2013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
14235 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
14238 2013-03-13 Joel Brobecker <brobecker@adacore.com>
14240 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
14241 Remove extraneous NULL element.
14243 2013-03-13 Yao Qi <yao@codesourcery.com>
14245 * tracepoint.c (traceframe_read_tsv): Look for the last matched
14246 'V' block in trace frame.
14248 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14250 * target.h (struct target_ops): Add btrace ops.
14251 (target_supports_btrace): New macro.
14252 (target_enable_btrace): New macro.
14253 (target_disable_btrace): New macro.
14254 (target_read_btrace): New macro.
14255 * gdbthread.h (struct thread_info): Add btrace field.
14256 * server.c: Include btrace-common.h.
14257 (handle_btrace_general_set): New function.
14258 (handle_btrace_enable): New function.
14259 (handle_btrace_disable): New function.
14260 (handle_general_set): Call handle_btrace_general_set.
14261 (handle_qxfer_btrace): New function.
14262 (struct qxfer qxfer_packets[]): Add btrace entry.
14263 * inferiors.c (remove_thread): Disable btrace.
14264 * linux-low: Include linux-btrace.h.
14265 (linux_low_enable_btrace): New function.
14266 (linux_low_read_btrace): New function.
14267 (linux_target_ops): Add btrace ops.
14268 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
14269 Add srv_linux_btrace=yes.
14270 (x86_64-*-linux*): Add linux-btrace.o.
14271 Add srv_linux_btrace=yes.
14272 * configure.ac: Define HAVE_LINUX_BTRACE.
14273 * config.in: Regenerated.
14274 * configure: Regenerated.
14276 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14278 * server.c (handle_qxfer): Preserve error message if -3 is
14280 (qxfer): Document the -3 return value.
14282 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14284 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
14285 (linux_btrace_h): New variable.
14286 (linux-btrace.o): New rule.
14288 2013-03-08 Stan Shebs <stan@codesourcery.com>
14289 Hafiz Abid Qadeer <abidh@codesourcery.com>
14291 * tracepoint.c (trace_buffer_size): New global.
14292 (DEFAULT_TRACE_BUFFER_SIZE): New define.
14293 (init_trace_buffer): Change to one-argument function. Allocate
14294 trace buffer memory.
14295 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
14296 handle QTBuffer:size packet.
14297 (cmd_bigqtbuffer_size): New function.
14298 (initialize_tracepoint): Call init_trace_buffer with
14299 DEFAULT_TRACE_BUFFER_SIZE.
14300 * server.c (handle_query): Add QTBuffer:size in the
14303 2013-03-07 Yao Qi <yao@codesourcery.com>
14305 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
14306 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
14308 (cmd_qtsp): Adjust condition. Do post increment.
14309 Set cur_action and cur_step_action back to 0.
14311 2013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
14314 * linux-low.c (linux_write_memory): Return early success if LEN is
14317 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
14319 * configure.srv: Add x86_64-*-cygwin* as target.
14321 2013-02-28 Tom Tromey <tromey@redhat.com>
14323 * configure.ac: Invoke AC_SYS_LARGEFILE.
14324 * configure, config.in: Rebuild.
14326 2013-02-28 Corinna Vinschen <vinschen@redhat.com>
14328 * win32-low.c: Throughout, fix format strings and casts of
14329 printf-like functions to avoid type related warnings on all
14331 (get_child_debug_event): Print dwDebugEventCode as hex since
14332 that's how it's usually documented.
14334 2013-02-28 Yao Qi <yao@codesourcery.com>
14336 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
14339 2013-02-27 Jiong Wang <jiwang@tilera.com>
14341 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
14342 (reg-tilegx32.c): New rule.
14343 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
14344 * linux-tile-low.c (tile_arch_setup): New function. Invoke
14345 different register info initializer according to elf class.
14346 (init_registers_tilgx32): New function. The tilegx32 register info
14348 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
14349 (tile_store_gregset): Likewise.
14351 2013-02-27 Yao Qi <yao@codesourcery.com>
14353 * server.c (process_point_options): Print debug message when
14354 debug_threads is true.
14356 2013-02-26 Yao Qi <yao@codesourcery.com>
14358 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
14360 2013-02-19 Pedro Alves <palves@redhat.com>
14361 Kai Tietz <ktietz@redhat.com>
14365 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
14366 instead of strtoul to extract address from packet.
14367 (process_serial_event) <'z'>: Likewise.
14369 2013-02-18 Yao Qi <yao@codesourcery.com>
14371 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
14373 2013-02-14 Pedro Alves <palves@redhat.com>
14377 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
14378 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
14380 2013-02-14 Pedro Alves <palves@redhat.com>
14382 * tracepoint.c (cmd_qtdpsrc): Use savestring.
14384 2013-02-14 Pedro Alves <palves@redhat.com>
14386 * tracepoint.c (save_string): Delete.
14387 (add_tracepoint_action): Use savestring instead of save_string.
14389 2013-02-12 Pedro Alves <palves@redhat.com>
14391 * linux-xtensa-low.c: Ditto.
14392 * xtensa-xtregs.c: Ditto.
14394 2013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14396 * thread-db.c (thread_db_get_tls_address): NULL pointer check
14399 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14401 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
14402 aarch64_num_wp_regs and aarch64_num_bp_regs to
14403 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
14405 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14407 * linux-aarch64-low.c (ps_get_thread_area): Replace
14408 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
14410 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
14411 Marcus Shawcroft <marcus.shawcroft@arm.com>
14412 Nigel Stephens <nigel.stephens@arm.com>
14413 Yufeng Zhang <yufeng.zhang@arm.com>
14415 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
14416 (aarch64.c, aarch64-without-fpu.c): New targets.
14417 * configure.srv (aarch64*-*-linux*): New.
14418 * linux-aarch64-low.c: New file.
14420 2013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
14422 * linux-low.c (handle_extended_wait, linux_create_inferior)
14423 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
14424 (dequeue_one_deferred_signal, linux_resume_one_thread)
14425 (fetch_register, linux_write_memory, linux_enable_event_reporting)
14426 (linux_tracefork_grandchild, linux_test_for_tracefork)
14427 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
14428 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
14429 where the argument is 0.
14431 2013-01-25 Yao Qi <yao@codesourcery.com>
14433 * event-loop.c: Include "queue.h".
14434 (gdb_event_p): New typedef.
14435 (struct gdb_event) <next_event>: Remove.
14436 (event_queue): Change to QUEUE(gdb_event_p).
14437 (async_queue_event): Remove.
14438 (gdb_event_xfree): New.
14439 (initialize_event_loop): New.
14440 (process_event): Use API from QUEUE.
14441 (wait_for_event): Likewise.
14442 * server.c (main): Call initialize_event_loop.
14443 * server.h (initialize_event_loop): Declare.
14445 2013-01-18 Yao Qi <yao@codesourcery.com>
14447 * ax.h (struct eval_agent_expr_context): New.
14448 (gdb_eval_agent_expr): Update declaration.
14449 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
14450 TFRAME. Add new argument CTX.
14451 * server.h (struct eval_agent_expr_context): Declare.
14452 (agent_mem_read, agent_tsv_read): Update declaration.
14453 (agent_mem_read_string): Likewise.
14454 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
14455 (add_traceframe_block): Add new argument TPOINT.
14456 Increase TPOINT->traceframe_usage.
14457 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
14458 eval_tracepoint_agent_expr.
14459 (condition_true_at_tracepoint): Likewise.
14460 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
14461 (agent_mem_read_string, agent_tsv_read): Likewise.
14463 2013-01-16 Yao Qi <yao@codesourcery.com>
14465 * linux-low.c (linux_resume_one_lwp): Don't check
14466 'lwp->bp_reinsert != 0'.
14468 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14469 Pedro Alves <palves@redhat.com>
14471 * lynx-low.c (ptrace_request_to_str): Define a temporary
14472 macro and use it to simplify this function's implementation.
14474 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14476 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
14479 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14481 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
14483 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14485 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
14487 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14489 * lynx-low.c (lynx_resume): Use the resume_info parameter
14490 to determine the ptid for the lynx_ptrace call, unless
14491 it is equal to minus_one_ptid, in which case we use the
14492 ptid of the current_inferior.
14493 (lynx_wait_1): After having received a thread create/exit
14494 event, resume the inferior's execution using the signaling
14495 thread's ptid, rather than the old ptid.
14497 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14499 * lynx-low.c (lynx_resume): Delete variable ret.
14501 2013-01-01 Joel Brobecker <brobecker@adacore.com>
14503 * gdbreplay.c (gdbreplay_version): Update copyright year.
14504 * server.c (gdbserver_version): Likewise.
14506 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14508 * lynx-low.c (lynx_wait_1): Add debug trace before adding
14511 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14513 * lynx-low.c (ptrace_request_to_str): Add handling for
14514 PTRACE_GETTRACESIG.
14516 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14518 * lynx-low.c (lynx_attach): Delete variable new_process.
14520 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14522 * lynx-low.c (lynx_create_inferior): Delete variable
14525 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14527 * lynx-low.c (ptrace_request_to_str): Do not handle
14528 PTRACE_GETTHREADLIST if this macro does not exist.
14530 2012-12-15 Yao Qi <yao@codesourcery.com>
14532 * Makefile.in (OBS): Add notif.o.
14533 * notif.c, notif.h: New.
14534 * server.c: Include "notif.h".
14535 (struct vstop_notif) <next>: Remove.
14537 (queue_stop_reply): Update.
14538 (push_event, send_next_stop_reply): Remove.
14539 (discard_queued_stop_replies): Update.
14540 (notif_stop): New variable.
14541 (handle_v_stopped): Remove.
14542 (handle_v_requests): Don't call handle_v_stopped. Call
14543 handle_ack_notif instead.
14544 (queue_stop_reply_callback): Call notif_event_enque instead
14545 of queue_stop_reply.
14546 (handle_status): Don't call send_next_stop_reply, call
14547 notif_write_event instead.
14548 (kill_inferior_callback): Likewise.
14549 (detach_or_kill_inferior_callback): Likewise.
14550 (main): Call initialize_notif.
14551 (process_serial_event): Call QUEUE_is_empty.
14552 (handle_target_event): Call notif_push instead of push event.
14553 * server.h (push_event): Remove declaration.
14555 2012-12-10 Tom Tromey <tromey@redhat.com>
14557 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
14558 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
14561 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
14562 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
14563 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
14564 (amd64-linux-ipa.o, ax.o): Rewrite.
14565 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
14566 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
14567 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
14568 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
14569 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
14570 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
14571 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
14572 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
14573 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
14574 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
14575 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
14576 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
14577 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
14578 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
14579 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
14580 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
14581 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
14582 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
14583 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
14584 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
14585 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
14586 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
14587 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
14588 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
14589 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
14590 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
14591 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
14592 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
14593 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
14594 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
14595 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
14596 (reg-tilegx.o): Remove.
14597 (all_object_files): New macro.
14598 Include .deps files.
14599 * aclocal.m4, configure: Rebuild.
14600 * acinclude.m4: Include depstand.m4, lead-dot.m4.
14601 * configure.ac: Invoke ZW_CREATE_DEPDIR,
14602 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
14604 2012-12-05 Tom Tromey <tromey@redhat.com>
14607 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
14609 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
14611 * configure.ac: Check for linux/perf_event.h.
14612 * config.in: Regenerated.
14613 * configure: Regenerated.
14615 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
14617 * hostio.c (handle_readlink): Decrease buffer size
14618 parameter passed to readlink by one byte.
14620 2012-11-26 Yao Qi <yao@codesourcery.com>
14622 * configure.ac (build_warnings): Append '-Wempty-body'.
14623 * configure: Regenerated.
14624 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
14627 2012-11-15 Pierre Muller <muller@sourceware.org>
14629 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
14630 * config.in: Regenerate.
14631 * configure: Regenerate.
14632 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
14633 Use "gdb_wait.h" header instead of <sys/wait.h> header.
14634 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14635 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
14637 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
14638 instead of <sys/wait.h> header.
14639 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14641 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
14643 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
14644 (various make rules): Remove -DGDBSERVER
14646 2012-11-09 Yao Qi <yao@codesourcery.com>
14648 * spu-low.c (current_ptid): Move it to ..
14649 * gdbthread.h: ... here. New.
14650 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
14651 * server.c (myresume, process_serial_event): Likewise.
14652 * thread-db.c (thread_db_find_new_threads): Likewise.
14653 * tracepoint.c (run_inferior_command): Likewise.
14655 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
14657 * server.c (handle_search_memory_1): Include access length in
14660 2012-09-05 Michael Brandt <michael.brandt@axis.com>
14662 * linux-crisv32-low.c: Fix compile errors.
14664 2012-09-04 Yao Qi <yao@codesourcery.com>
14666 * tracepoint.c (cmd_qtsv): Adjust debug message.
14667 Don't check CUR_TPOINT.
14669 2012-08-28 Yao Qi <yao@codesourcery.com>
14671 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
14672 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
14673 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
14674 Remove declarations of xmalloc, xreallloc, xstrdup and
14676 * Makefile.in (libiberty_h): New.
14677 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
14678 (linux-bfin-low.o): Append dependency 'libiberty.h'.
14680 2012-08-23 Yao Qi <yao@codesourcery.com>
14682 * server.h: Remove declaration of 'xsnprintf'.
14684 2012-08-22 Keith Seitz <keiths@redhat.com>
14686 * server.h: Include build-gnulib-gbserver/config.h.
14687 * gdbreplay.c: Likewise.
14689 2012-08-08 Doug Evans <dje@google.com>
14691 * Makefile.in (SFILES): Add gdb_vecs.c.
14692 (OBS): Add gdb_vecs.o.
14693 (gdb_vecs_h, host_defs_h): New variables.
14694 (thread-db.o): Add $(gdb_vecs_h) dependency.
14695 (gdb_vecs.o): New rule.
14696 * thread-db.c: #include "gdb_vecs.h".
14697 (thread_db_load_search): Use a vector to iterate over path elements.
14698 Handle text appearing after "$pdir".
14700 * configure.ac: Add check for strstr.
14701 * config.in: Regenerate.
14702 * configure: Regenerate.
14704 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
14706 * hostio.c (handle_pread): If pread fails, fall back to attempting
14708 (handle_pwrite): Likewise for pwrite.
14710 2012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
14712 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
14713 between unsupported TYPE and unimplementable ADDR/LEN combination.
14714 (arm_insert_point): Act on new return value.
14716 2012-07-31 Pedro Alves <palves@redhat.com>
14718 * server.c (process_point_options): Only skip tokens if we find
14719 one that is unrecognized. Don't treat 'X' specially while
14720 skipping unrecognized tokens.
14722 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
14724 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
14725 to 4-byte-align HW breakpoint addresses for Thumb.
14727 2012-07-27 Yao Qi <yao@codesourcery.com>
14731 * server.h: Declare gdb_agent_about_to_close.
14732 * target.c (kill_inferior): Include "agent.h".
14733 New. Send command 'kill'.
14734 * target.h (kill_inferior): Removed macro.
14735 * tracepoint.c (gdb_agent_about_to_close): New.
14736 (gdb_agent_helper_thread): Handle command 'close'.
14737 Wait endlessly until the inferior stops.
14738 Install gdb_agent_remove_socket to atexit hook.
14739 (agent_socket_name): New static variable.
14740 (gdb_agent_socket_init): Replace local variable 'name' with
14741 'agent_socket_name'.
14742 (gdb_agent_remove_socket): New.
14744 2012-07-27 Yao Qi <yao@codesourcery.com>
14746 * server.c (process_point_options): Stop at 'X' when parsing.
14748 2012-07-19 Michael Eager <eager@eagercon.com>
14750 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
14752 * linux-x86-low.c (x86_insert_point, x86_remove_point):
14753 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
14754 hardware breakpoint.
14756 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14758 * gdbserver/linux-low.c (initialize_low): Call
14759 linux_ptrace_init_warnings.
14761 2012-07-02 Doug Evans <dje@google.com>
14763 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
14766 2012-07-02 Stan Shebs <stan@codesourcery.com>
14768 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
14769 (ax.o): Add it to build rule.
14771 (OBS): Add format.o.
14772 (IPA_OBS): Add format.o.
14773 * server.c (handle_query): Claim support for breakpoint commands.
14774 (process_point_options): Add command case.
14775 (process_serial_event): Leave running if there are printfs in
14777 * mem-break.h (any_persistent_commands): Declare.
14778 (add_breakpoint_commands): Declare.
14779 (gdb_no_commands_at_breakpoint): Declare.
14780 (run_breakpoint_commands): Declare.
14781 * mem-break.c (struct point_command_list): New struct.
14782 (struct breakpoint): New field command_list.
14783 (any_persistent_commands): New function.
14784 (add_commands_to_breakpoint): New function.
14785 (add_breakpoint_commands): New function.
14786 (gdb_no_commands_at_breakpoint): New function.
14787 (run_breakpoint_commands): New function.
14788 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
14790 * ax.c: Include format.h.
14791 (ax_printf): New function.
14792 (gdb_eval_agent_expr): Add printf opcode.
14794 2012-06-13 Yao Qi <yao@codesourcery.com>
14796 * server.c (start_inferior): Remove duplicated writes to fields
14797 'last_resume_kind' and 'last_status' of 'current_inferior'.
14799 2012-06-12 Yao Qi <yao@codesourcery.com>
14800 Pedro Alves <palves@redhat.com>
14802 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
14804 * server.c (handle_v_cont): Extend comment.
14806 2012-06-11 Yao Qi <yao@codesourcery.com>
14808 * linux-low.c (linux_attach): Add 'static'.
14810 2012-06-06 Yao Qi <yao@codesourcery.com>
14812 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
14814 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
14816 Fix gcc -flto compilation warning.
14817 * server.c (main): Make variable multi_mode and attach volatile.
14819 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14821 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
14822 if the platform doesn't know about it.
14824 2012-05-30 Jeff Kenton <jkenton@tilera.com>
14826 * Makefile.in (SFILES): Add linux-tile-low.c.
14827 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
14828 * configure.srv: Handle tilegx-*-linux*.
14829 * linux-tile-low.c: New file.
14831 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
14833 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
14835 2012-05-24 Pedro Alves <palves@redhat.com>
14839 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
14841 2012-05-24 Pedro Alves <palves@redhat.com>
14845 Replace target_signal with gdb_signal throughout.
14847 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
14849 * linux-low.c (linux_store_registers): Avoid the copying sequence
14850 when no data has been retrieved by ptrace.
14852 2012-05-22 Will Deacon <will.deacon@arm.com>
14854 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
14855 Include asm/ptrace.h.
14856 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
14859 2012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
14861 * linux-low.c (linux_store_registers): Don't re-retrieve data
14862 with ptrace that has already been obtained from /proc. Always
14863 copy any data retrieved with ptrace to the buffer supplied.
14865 2012-05-11 Yao Qi <yao@codesourcery.com>
14866 Pedro Alves <palves@redhat.com>
14868 * linux-low.c (enum stopping_threads_kind): New.
14869 (stopping_threads): Change type to `enum stopping_threads_kind'.
14870 (handle_extended_wait): If stopping and suspending threads, leave
14871 the new_lwp suspended too.
14872 (linux_wait_for_event): Adjust.
14873 (stop_all_lwps): Set `stopping_threads' to
14874 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
14875 whether we're suspending threads or just stopping them. Assert no
14878 2012-04-29 Yao Qi <yao@codesourcery.com>
14880 * server.h: Move some code to ...
14881 * gdbthread.h: ... here. New.
14882 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
14883 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
14884 (nto-low.o, win32-low.o): Likewise.
14885 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
14886 * regcache.c, remote-utils.c, server.c: Likewise.
14887 * target.c, tracepoint.c, win32-low.c: Likewise.
14889 2012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14891 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
14892 (PTRACE_ARG4_TYPE): Likewise.
14893 (PTRACE_XFER_TYPE): Likewise.
14894 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
14895 ptrace to PTRACE_ARG3_TYPE.
14896 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
14897 (PTRACE_ARG4_TYPE): Likewise.
14898 (PTRACE_XFER_TYPE): Likewise.
14899 (linux_detach_one_lwp): Cast fourth argument of
14900 ptrace to long then PTRACE_ARG4_TYPE.
14901 (regsets_fetch_inferior_registers): Cast third argument of
14902 ptrace to long then PTRACE_ARG3_TYPE.
14903 (regsets_store_inferior_registers): Likewise.
14905 2012-04-20 Pedro Alves <palves@redhat.com>
14907 * configure: Regenerate.
14909 2012-04-19 Pedro Alves <palves@redhat.com>
14911 * Makefile.in (GNULIB_BUILDDIR): New.
14912 (LIBGNU, INCGNU, GNULIB_H): Adjust.
14913 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
14914 (all, install-only, uninstall, clean-info, all-lib, clean): No
14915 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
14916 (maintainer-clean realclean distclean): Use subdir_do.
14918 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
14919 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
14920 * acinclude.m4: Include acx_configure_dir.m4.
14921 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
14922 calls. Call AC_PROG_RANLIB. Configure gnulib using
14925 (GNULIB_STDINT_H): Adjust.
14926 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
14927 * gdbreplay.c: Include build-gnulib/config.h.
14928 * server.h: Likewise.
14929 * aclocal.m4: Regenerate.
14930 * config.in: Regenerate.
14931 * configure: Regenerate.
14933 2012-04-19 Pedro Alves <palves@redhat.com>
14935 * Makefile.in (LIBGNU, INCGNU): Adjust.
14936 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
14937 (all, install-only, uninstall, clean-info, all-lib, clean)
14938 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
14939 * configure.ac: Adjust AC_OUTPUT output.
14940 * aclocal.m4: Regenerate.
14941 * configure: Regenerate.
14943 2012-04-19 Pedro Alves <palves@redhat.com>
14945 * Makefile.in (generated_files): New.
14946 (server_h): Remove the explicit dependency on config.h, and depend
14947 on $generated_files.
14949 2012-04-19 Pedro Alves <palves@redhat.com>
14951 * Makefile.in (INCGNU): Add -Ignulib.
14953 2012-04-19 Pedro Alves <palves@redhat.com>
14955 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
14956 (INCGNU): ... this, and spell out -I here.
14957 (GNULIB_LIB): Rename to ...
14958 (LIBGNU): ... this.
14959 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
14961 2012-04-19 Pedro Alves <palves@redhat.com>
14963 * config.in: Regenerate.
14965 2012-04-19 Pedro Alves <palves@redhat.com>
14967 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
14968 * server.h (memmem): Remove declaration.
14969 * config.in: Regenerate.
14970 * configure: Regenerate.
14972 2012-04-19 Yao Qi <yao@codesourcery.com>
14974 * Makefile.in (SFILES): Add common/vec.c.
14978 2012-04-19 Yao Qi <yao@codesourcery.com>
14980 * remote-utils.c (prepare_resume_reply): Replace with macro
14981 target_core_of_thread.
14982 * server.c (handle_qxfer_threads_proper): Likewise.
14983 * target.h (traget_core_of_thread): New macro.
14985 2012-04-18 Pedro Alves <palves@redhat.com>
14987 * aclocal.m4: Regenerate.
14988 * configure: Regenerate.
14990 2012-04-16 Yao Qi <yao@codesourcery.com>
14992 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
14993 duplicated on address.
14995 2012-04-16 Yao Qi <yao@codesourcery.com>
14997 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
14998 (struct tracepoint_action_ops) <send>: New field.
14999 (m_tracepoint_action_send, r_tracepoint_action_send): New.
15000 (agent_expr_send, x_tracepoint_action_send): New.
15001 (l_tracepoint_action_send): New.
15002 (cmd_qtdp): Download and install tracepoint
15003 according to `use_agent'.
15004 (run_inferior_command): Add one more parameter `len'.
15006 (tracepoint_send_agent): New.
15007 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
15009 2012-04-16 Yao Qi <yao@codesourcery.com>
15011 * tracepoint.c (download_tracepoints): Moved to ...
15012 (cmd_qtstart): ... here.
15014 2012-04-14 Yao Qi <yao@codesourcery.com>
15016 * tracepoint.c: Include inttypes.h.
15017 (struct collect_memory_action): Use sized types.
15018 (struct tracepoint): Likewise.
15019 (cmd_qtdp, stop_tracing): Update print specifiers.
15020 (cmd_qtp, response_tracepoint): Likewise.
15021 (collect_data_at_tracepoint): Likewise.
15022 (collect_data_at_step): Likewise.
15024 2012-04-14 Yao Qi <yao@codesourcery.com>
15026 Import gnulib module inttypes.
15027 * aclocal.m4, config.in, configure: Regenerated.
15029 2012-04-14 Yao Qi <yao@codesourcery.com>
15031 * Makefile.in (maintainer-clean, realclean, distclean): Remove
15032 Makefile and config.status at last.
15034 2012-04-13 Yao Qi <yao@codesourcery.com>
15036 * tracepoint.c: Include stdint.h unconditionally.
15038 2012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15040 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
15041 on BFD_HAVE_SYS_PROCFS_TYPE.
15042 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
15043 * configure: Regenerate.
15044 * config.in: Likewise.
15046 2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
15048 * Makefile.in (clean): Also remove x32.c x32-linux.c
15049 x32-avx.c x32-avx-linux.c.
15050 (x32.o): New target.
15052 (x32-linux.o): Likewise.
15053 (x32-linux.c): Likewise.
15054 (x32-avx.o): Likewise.
15055 (x32-avx.c): Likewise.
15056 (x32-avx-linux.o): Likewise.
15057 (x32-avx-linux.c): Likewise.
15059 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
15060 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
15061 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
15062 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
15063 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
15064 i386/x32-avx-linux.xml.
15066 * linux-x86-low.c (init_registers_x32_linux): New prototype.
15067 (init_registers_x32_avx_linux): Likwise.
15068 (x86_linux_update_xmltarget): Call init_registers_x32_linux
15069 or init_registers_x32_avx_linux if linux_is_elf64 is false.
15071 2012-04-13 Pedro Alves <palves@redhat.com>
15073 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
15074 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
15075 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
15076 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
15079 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15081 * linux-x86-low.c (compat_x32_clock_t): New.
15082 (compat_x32_siginfo_t): Likewise.
15083 (compat_x32_siginfo_from_siginfo): Likewise.
15084 (siginfo_from_compat_x32_siginfo): Likewise.
15085 (linux_is_elf64): Likewise.
15086 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
15087 and siginfo_from_compat_x32_siginfo for x32.
15088 (x86_arch_setup): Set linux_is_elf64.
15090 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15093 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
15095 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
15096 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
15097 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
15098 compatible with process.
15100 2012-04-12 Yao Qi <yao@codesourcery.com>
15102 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
15103 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
15104 (install-only, install-info, clean): Handle sub dir gnulib.
15105 (all-lib, am--refresh): New targets.
15106 (memmem.o): Remove target.
15107 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
15108 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
15109 (AC_REPLACE_FUNCS): Remove memmem.
15110 Invoke gl_INIT and AM_INIT_AUTOMAKE.
15111 (AC_OUTPUT): Generate Makefile in gnulib/.
15112 * aclocal.m4, config.in, configure: Regenerated.
15114 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
15116 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
15118 2012-04-05 Pedro Alves <palves@redhat.com>
15120 -Werror=strict-aliasing
15122 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
15125 2012-04-04 Pedro Alves <palves@redhat.com>
15127 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
15128 (sparc_store_gregset_from_stack, sparc_store_gregset)
15129 (sparc_breakpoint_at): Fix formatting.
15131 2012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15133 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
15135 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
15136 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
15137 * config.in: Regenerate.
15138 * configure: Likewise.
15140 2012-03-29 Pedro Alves <palves@redhat.com>
15142 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
15143 Correct ptrace arguments.
15145 2012-03-28 Pedro Alves <palves@redhat.com>
15147 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
15148 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
15149 (IA64_FR1_REGNUM): New defines.
15150 (ia64_fetch_register): New.
15151 (the_low_target): Install it.
15152 * linux-low.h (struct linux_target_ops) <fetch_register>: New
15154 * linux-low.c (linux_fetch_registers): Try the
15155 the_low_target.fetch_register hook first.
15157 * linux-arm-low.c (the_low_target): Adjust.
15158 * linux-bfin-low.c (the_low_target): Adjust.
15159 * linux-cris-low.c (the_low_target): Adjust.
15160 * linux-crisv32-low.c (the_low_target): Adjust.
15161 * linux-m32r-low.c (the_low_target): Adjust.
15162 * linux-m68k-low.c (the_low_target): Adjust.
15163 * linux-mips-low.c (the_low_target): Adjust.
15164 * linux-ppc-low.c (the_low_target): Adjust.
15165 * linux-s390-low.c (the_low_target): Adjust.
15166 * linux-sh-low.c (the_low_target): Adjust.
15167 * linux-sparc-low.c (the_low_target): Adjust.
15168 * linux-tic6x-low.c (the_low_target): Adjust.
15169 * linux-x86-low.c (the_low_target): Adjust.
15170 * linux-xtensa-low.c (the_low_target): Adjust.
15172 2012-03-26 Pedro Alves <palves@redhat.com>
15174 * server.c (handle_qxfer_libraries): Don't bail early if
15175 the_target->qxfer_libraries_svr4 is not NULL.
15177 2012-03-26 Pedro Alves <palves@redhat.com>
15179 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
15181 2012-03-23 Pedro Alves <palves@redhat.com>
15183 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
15184 "library-list-svr4" element's start tag when the the DSO list is
15187 2012-03-23 Pedro Alves <palves@redhat.com>
15189 * linux-low.c (read_one_ptr): Read the inferior's pointer through
15190 a variable whose type size is the same as the inferior's pointer
15193 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
15195 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
15197 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
15198 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
15199 * linux-low.h: Include <signal.h>.
15200 (struct siginfo): Remove forward declaration.
15201 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
15204 2012-03-21 Mike Frysinger <vapier@gentoo.org>
15206 * .gitignore: Ignore more files.
15208 2012-03-19 Pedro Alves <palves@redhat.com>
15209 Jan Kratochvil <jan.kratochvil@redhat.com>
15211 * server.c (cont_thread, general_thread): Add describing comments.
15212 (start_inferior): Clear `cont_thread'.
15213 (handle_v_cont): Don't set `cont_thread' if resuming all threads
15216 2012-03-15 Yao Qi <yao@codesourcery.com>
15218 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
15220 (cmd_qtdp): ... here.
15222 2012-03-15 Yao Qi <yao@codesourcery.com>
15224 * tracepoint.c (struct tracepoint_action_ops): New.
15225 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
15226 (m_tracepoint_action_download): New.
15227 (r_tracepoint_action_download): New.
15228 (x_tracepoint_action_download): New.
15229 (l_tracepoint_action_download): New.
15230 (add_tracepoint_action): Install `action->ops' according type.
15231 (download_tracepoint_1): Move code `download' function pointer
15232 of various tracepoint_action_ops.
15234 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15236 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
15237 linux_ptrace_attach_warnings.
15239 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15241 * Makefile.in (linux-ptrace.o): New.
15242 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
15243 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
15244 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
15245 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
15246 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
15248 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
15250 2012-03-08 Yao Qi <yao@codesourcery.com>
15251 Pedro Alves <palves@redhat.com>
15253 Fix PR server/13392.
15254 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
15255 offset of JMP insn.
15256 * tracepoint.c (remove_tracepoint): New.
15257 (cmd_qtdp): Call remove_tracepoint when failed to install.
15259 2012-03-07 Pedro Alves <palves@redhat.com>
15261 * linux-low.c (get_detach_signal): New.
15262 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
15263 Pass on pending signals to PTRACE_DETACH. Check the result of the
15265 * server.c (program_signals, program_signals_p): New.
15266 (handle_general_set): Handle QProgramSignals.
15267 * server.h (program_signals, program_signals_p): Declare.
15269 2012-03-05 Pedro Alves <palves@redhat.com>
15270 Jan Kratochvil <jan.kratochvil@redhat.com>
15272 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
15275 2012-03-03 Yao Qi <yao@codesourcery.com>
15277 * tracepoint.c (tracepoint_look_up_symbols): Update call to
15278 agent_look_up_symbols.
15280 2012-03-03 Yao Qi <yao@codesourcery.com>
15282 * Makefile.in (linux-low.o): Keep dependence on agent.h.
15283 (linux-x86-low.o): Likewise.
15284 * server.h: Remove in_process_agent_loaded.
15285 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
15289 2012-03-03 Yao Qi <yao@codesourcery.com>
15291 * tracepoint.c (gdb_agent_capability): New global.
15292 (in_process_agent_loaded_ust): Renamed to
15293 `in_process_agent_supports_ust'.
15295 (in_process_agent_supports_ust): Call agent_capability_check.
15296 (clear_installed_tracepoints): Assert that agent supports
15299 2012-03-03 Yao Qi <yao@codesourcery.com>
15301 * linux-low.c (linux_supports_agent): New.
15302 (linux_target_ops): Initialize field `supports_agent' with
15303 linux_supports_agent.
15304 * target.h (struct target_ops) <supports_agent>: New.
15305 (target_supports_agent): New macro.
15306 * server.c (handle_general_set): Handle packet 'QAgent'.
15307 (handle_query): Send `QAgent+'.
15308 * Makefile.in (server.o): Depends on agent.h.
15310 2012-03-03 Yao Qi <yao@codesourcery.com>
15312 * Makefile.in (OBS): Add agent.o.
15313 Add new rule for agent.o.
15314 Track dependence of tracepoint.c on agent.h.
15315 * tracepoint.c (run_inferior_command_1):
15316 (run_inferior_command): Call agent_run_command.
15317 (gdb_ust_connect_sync_socket): Deleted. Move it to
15319 (resume_thread, stop_thread): Likewise.
15320 (gdb_ust_socket_init): Renamed to ...
15321 (gdb_agent_socket_init): ... New.
15322 (gdb_ust_thread): Renamed to ...
15323 (gdb_agent_helper_thread): ... New.
15324 (gdb_ust_init): Move some code to ...
15325 (gdb_agent_init): ... here. New.
15326 [HAVE_UST]: Call gdb_ust_init.
15327 (initialize_tracepoint_ftlib): Call gdb_agent_init.
15328 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
15329 * config.in, configure: Regenerated.
15331 2012-03-02 Pedro Alves <palves@redhat.com>
15333 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
15334 * linux-low.c (struct simple_pid_list): New.
15335 (stopped_pids): New a struct simple_pid_list pointer.
15336 (add_to_pid_list, pull_pid_from_list): New.
15337 (handle_extended_wait): Don't assume the first signal new children
15338 report is SIGSTOP. Adjust call to pull_pid_from_list.
15339 (linux_wait_for_lwp): Adjust.
15341 2012-03-02 Yao Qi <yao@codesourcery.com>
15343 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
15346 2012-03-02 Yao Qi <yao@codesourcery.com>
15348 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
15349 `stop_pc' and `tpoint'. Update caller.
15351 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
15353 * linux-low.h (linux_target_ops): Add regset_bitmap member.
15354 * linux-low.c (use_linux_regsets): New macro.
15355 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
15356 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
15357 (linux_register_in_regsets): New function.
15358 (usr_fetch_inferior_registers): Skip registers covered by
15360 (usr_store_inferior_registers): Likewise.
15361 (usr_fetch_inferior_registers): New macro.
15362 (usr_store_inferior_registers): Likewise.
15363 (linux_fetch_registers): Handle mixed regset/non-regset targets.
15364 (linux_store_registers): Likewise.
15365 * linux-mips-low.c (init_registers_mips_dsp_linux): New
15367 (init_registers_mips64_dsp_linux): Likewise.
15368 (init_registers_mips_linux): New macro.
15369 (init_registers_mips_dsp_linux): Likewise.
15370 (mips_dsp_num_regs): Likewise.
15371 (DSP_BASE, DSP_CONTROL): New fallback macros.
15372 (mips_base_regs): New macro.
15373 (mips_regmap): Use it. Fix the size.
15374 (mips_dsp_regmap): New variable.
15375 (mips_dsp_regset_bitmap): Likewise.
15376 (mips_arch_setup): New function.
15377 (mips_cannot_fetch_register): Use the_low_target.regmap rather
15379 (mips_cannot_store_register): Likewise.
15380 (the_low_target): Update .arch_setup, .num_regs and .regmap
15381 initializers. Add .regset_bitmap initializer.
15382 * linux-arm-low.c (the_low_target): Add .regset_bitmap
15384 * linux-bfin-low.c (the_low_target): Likewise.
15385 * linux-cris-low.c (the_low_target): Likewise.
15386 * linux-crisv32-low.c (the_low_target): Likewise.
15387 * linux-ia64-low.c (the_low_target): Likewise.
15388 * linux-m32r-low.c (the_low_target): Likewise.
15389 * linux-m68k-low.c (the_low_target): Likewise.
15390 * linux-ppc-low.c (the_low_target): Likewise.
15391 * linux-s390-low.c (the_low_target): Likewise.
15392 * linux-sh-low.c (the_low_target): Likewise.
15393 * linux-sparc-low.c (the_low_target): Likewise.
15394 * linux-tic6x-low.c (the_low_target): Likewise.
15395 * linux-x86-low.c (the_low_target): Likewise.
15396 * linux-xtensa-low.c (the_low_target): Likewise.
15397 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
15398 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
15399 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
15401 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
15402 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
15404 2012-02-29 Yao Qi <yao@codesourcery.com>
15405 Pedro Alves <palves@redhat.com>
15407 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
15408 `step_over_finished' is true.
15410 2012-02-27 Pedro Alves <palves@redhat.com>
15412 * linux-low.c (pid_is_stopped): Delete, moved to common/.
15413 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
15415 2012-02-27 Pedro Alves <palves@redhat.com>
15418 * linux-low.c (pid_is_stopped): New.
15419 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
15421 2012-02-25 Luis Machado <lgustavo@codesourcery.com>
15423 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
15426 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
15428 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
15430 2012-02-24 Luis Machado <lgustavo@codesourcery>
15432 * server.c (handle_query): Advertise support for target-side
15433 breakpoint condition evaluation.
15434 (process_point_options): New function.
15435 (process_serial_event): When inserting a breakpoint, check for
15436 a target-side condition that should be evaluated.
15438 * mem-break.c: Include regcache.h and ax.h.
15439 (point_cond_list_t): New data structure.
15440 (breakpoint) <cond_list>: New field.
15441 (find_gdb_breakpoint_at): Make non-static.
15442 (delete_gdb_breakpoint_at): Clear any target-side
15444 (clear_gdb_breakpoint_conditions): New function.
15445 (add_condition_to_breakpoint): Likewise.
15446 (add_breakpoint_condition): Likewise.
15447 (gdb_condition_true_at_breakpoint): Likewise.
15448 (gdb_breakpoint_here): Return result directly instead
15449 of going through a local variable.
15451 * mem-break.h (find_gdb_breakpoint_at): New prototype.
15452 (clear_gdb_breakpoint_conditions): Likewise.
15453 (add_breakpoint_condition): Likewise.
15454 (gdb_condition_true_at_breakpoint): Likewise.
15456 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
15457 (need_step_over_p): Take target-side breakpoint condition into
15460 2012-02-24 Luis Machado <lgustavo@codesourcery>
15462 * server.h: Include tracepoint.h.
15463 (agent_mem_read, agent_get_trace_state_variable_value,
15464 agent_set_trace_state_variable_value,
15465 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
15466 get_set_tsv_func_addr): New prototypes.
15468 * ax.h: New include file.
15469 * ax.c: New source file.
15471 * tracepoint.c: Include ax.h.
15472 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
15473 agent_expr, eval_result_type): Move to ax.h.
15474 (parse_agent_expr): Rename to ...
15475 (gdb_parse_agent_expr): ... this, make it non-static and move
15477 (unparse_agent_expr) Rename to ...
15478 (gdb_unparse_agent_expr): ... this, make it non-static and move
15480 (eval_agent_expr): Rename to ...
15481 (eval_tracepoint_agent_expr): ... this.
15482 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
15483 forward declarations.
15484 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
15485 (agent_get_trace_state_variable_value): New function.
15486 (agent_set_trace_state_variable_value): New function.
15487 (cmd_qtdp): Call gdb_parse_agent_expr (...).
15488 (response_tracepoint): Call gdb_unparse_agent_expr (...).
15489 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
15490 (condition_true_at_tracepoint): Likewise.
15491 (parse_agent_expr): Rename to ...
15492 (gdb_parse_agent_expr): ... this and move to ax.c.
15493 (unparse_agent_expr): Rename to ...
15494 (gdb_unparse_agent_expr): ... this and move to ax.c.
15495 (gdb_agent_op_name): Move to ax.c.
15496 (eval_agent_expr): Rename to ...
15497 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
15499 (eval_tracepoint_agent_expr): New function.
15500 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
15502 (current_insn_ptr, emit_error, struct bytecode_address): Move to
15504 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
15505 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
15506 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
15507 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
15508 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
15509 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
15510 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
15511 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
15512 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
15513 (compile_bytecodes): Remove forward declaration.
15514 (is_goto_target): Move to ax.c.
15515 (compile_bytecodes): Move to ax.c and call
15516 agent_get_trace_state_variable_value (...) and
15517 agent_set_trace_state_variable_value (...).
15519 * Makefile.in: Update ax.c and IPA dependencies.
15521 2012-02-24 Pedro Alves <palves@redhat.com>
15523 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
15524 (cmd_bigqtbuffer_circular): ... this. Only handle
15525 'QTBuffer:circular:'.
15526 (handle_tracepoint_general_set): Adjust.
15528 2012-02-16 Yao Qi <yao@codesourcery.com>
15530 * inferiors.c: Move code to ...
15531 * dll.c: .... here. New.
15532 * server.h: Declare clear_dlls.
15533 * Makefile.in (SFILES): Add dll.c.
15537 2012-02-11 Yao Qi <yao@codesourcery.com>
15539 * server.c: (handle_monitor_command): Add a new parameter
15541 (handle_query): Update caller.
15543 2012-02-09 Joel Brobecker <brobecker@adacore.com>
15545 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
15546 * configure, config.in: Regenerate.
15547 * hostio.c: Provide an alternate implementation if HAVE_READLINK
15550 2012-02-02 Pedro Alves <palves@redhat.com>
15552 Try SIGKILL first, then PTRACE_KILL.
15553 * linux-low.c (linux_kill_one_lwp): New.
15554 (linux_kill_one_lwp): Rename to ...
15555 (kill_one_lwp_callback): ... this. Use the new
15556 linux_kill_one_lwp.
15558 2012-02-02 Pedro Alves <palves@redhat.com>
15560 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
15563 2012-01-27 Pedro Alves <palves@redhat.com>
15565 * linux-low.c (linux_child_pid_to_exec_file): Delete.
15566 (elf_64_file_p): Make static.
15567 (linux_pid_exe_is_elf_64_file): New.
15568 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
15569 Delete declarations.
15570 (linux_pid_exe_is_elf_64_file): Declare.
15571 * linux-x86-low.c (x86_arch_setup): Use
15572 linux_pid_exe_is_elf_64_file.
15574 2012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
15576 * linux-low.c (linux_wait_for_event_1): Rename to ...
15577 (linux_wait_for_event): ... here and merge it with former
15578 linux_wait_for_event - new variable wait_ptid, use it.
15579 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
15581 2012-01-23 Pedro Alves <palves@redhat.com>
15583 * server.c (main): Avoid yet another case of infinite loop while
15584 detaching/killing after a longjmp.
15586 2012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15589 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
15591 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
15593 * hostio.c (handle_readlink): New function.
15594 (handle_vFile): Call it to handle "vFile:readlink" packets.
15596 2012-01-20 Pedro Alves <palves@redhat.com>
15597 Ulrich Weigand <ulrich.weigand@linaro.org>
15599 * server.c (handle_v_requests): Only support vAttach and vRun to
15600 start multiple processes when in extended protocol mode.
15602 2012-01-17 Pedro Alves <palves@redhat.com>
15604 * tracepoint.c (initialize_tracepoint): Use mmap instead of
15605 memalign plus mprotect to allocate the scratch buffer.
15607 2012-01-13 Pedro Alves <palves@redhat.com>
15609 * server.c (attach_inferior): Clear `cont_thread'.
15611 2012-01-13 Pedro Alves <palves@redhat.com>
15613 * server.c (main): Avoid infinite loop while detaching/killing
15616 2012-01-09 Doug Evans <dje@google.com>
15618 * server.c (start_inferior): Set last_ptid in --wrapper case.
15620 2012-01-06 Yao Qi <yao@codesourcery.com>
15622 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
15624 [IN_PROCESS_AGENT] (debug_agent): New global variable.
15626 2012-01-04 Yao Qi <yao@codesourcery.com>
15628 * tracepoint.c (cmd_qtdp): Print debug message
15629 for static tracepoint.
15631 2012-01-04 Yao Qi <yao@codesourcery.com>
15633 * tracepoint.c (trace_vdebug): Differentiate debug message
15634 between gdbserver and IPA.
15636 2012-01-03 Yao Qi <yao@codesourcery.com>
15638 * tracepoint.c (tracepoint_was_hit): Don't collect for
15641 2012-01-02 Joel Brobecker <brobecker@adacore.com>
15643 * terminal.h: Reformat copyright header.
15645 2012-01-02 Joel Brobecker <brobecker@adacore.com>
15647 * server.c (gdbserver_version): Update copyright year.
15648 * gdbreplay.c (gdbreplay_version): Likewise.
15650 2011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
15652 * linux-low.c (linux_create_inferior): Put empty if clause for write.
15655 2011-12-18 Hui Zhu <teawater@gmail.com>
15656 * linux-low.c (linux_create_inferior): Save return value to ret.
15658 2011-12-18 Hui Zhu <teawater@gmail.com>
15660 * linux-low.c (linux_create_inferior): Save return value to ret.
15662 2011-12-16 Doug Evans <dje@google.com>
15664 * linux-low.c (linux_create_inferior): If stdio connection,
15665 redirect stdin from /dev/null, stdout to stderr.
15666 * remote-utils.c (remote_is_stdio): New static global.
15667 (remote_connection_is_stdio): New function.
15668 (remote_prepare): Handle stdio connection.
15669 (remote_open): Ditto.
15670 (remote_close): Don't close stdin for stdio connections.
15671 (read_prim,write_prim): New functions. Replace all calls to
15672 read/write to these.
15673 * server.c (main): Watch for "-" argument. Move call to
15674 remote_prepare before start_inferior.
15675 * server.h (STDIO_CONNECTION_NAME): New macro.
15676 (remote_connection_is_stdio): Declare.
15678 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
15679 in debugging output.
15681 2011-12-15 Yao Qi <yao@codesourcery.com>
15683 * tracepoint.c: Include sys/syscall.h.
15684 (gdb_ust_thread): Remove preprocessor conditional.
15686 2011-12-14 Pedro Alves <pedro@codesourcery.com>
15688 * linux-low.c (linux_detach_one_lwp): Call
15689 the_low_target.prepare_to_resume before detaching.
15691 2011-12-14 Yao Qi <yao@codesourcery.com>
15693 * tracepoint.c (gdb_ust_thread): Don't ignore return value
15696 2011-12-14 Yao Qi <yao@codesourcery.com>
15698 * i386-low.c (i386_low_stopped_data_address): Initialize local
15699 variable `control'.
15701 2011-12-13 Pedro Alves <pedro@codesourcery.com>
15705 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
15706 DR_CONTROL unless necessary. Extend comments.
15707 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
15708 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
15710 2011-12-13 Yao Qi <yao@codesourcery.com>
15712 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
15714 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
15716 2011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
15718 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
15719 Print new debug message for such case.
15721 2011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
15723 Fix overlapping memcpy.
15724 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
15725 the read_inferior_memory transfer.
15726 (delete_fast_tracepoint_jump): New variable buf. Use it for the
15727 write_inferior_memory transfer.
15728 (set_fast_tracepoint_jump): New variable buf. Use it for the
15729 read_inferior_memory and write_inferior_memory transfers.
15730 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
15731 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
15732 Use it for the write_inferior_memory transfer.
15733 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
15736 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15738 * linux-low.c (fetch_register, store_register): Make code
15739 consistent, fix formatting.
15741 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15743 * linux-low.c (usr_store_inferior_registers): Factor out code
15744 to handle individual registers into...
15745 (store_register): ... this new function.
15747 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
15749 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
15750 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
15751 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
15752 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
15753 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
15754 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
15755 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
15756 (srv_xmlfiles): Add new XML files.
15758 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
15760 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
15761 (init_registers_s390_linux32v1): Add prototype.
15762 (init_registers_s390_linux32v2): Likewise.
15763 (init_registers_s390_linux64v1): Likewise.
15764 (init_registers_s390_linux64v2): Likewise.
15765 (init_registers_s390x_linux64v1): Likewise.
15766 (init_registers_s390x_linux64v2): Likewise.
15767 (s390_num_regs): Increment to 52.
15768 (s390_regmap): Add orig_r2 register.
15769 (s390_num_regs_3264): Increment to 68.
15770 (s390_regmap_3264): Add orig_r2 register.
15771 (s390_collect_ptrace_register): Handle orig_r2 register.
15772 (s390_supply_ptrace_register): Likewise.
15773 (s390_fill_last_break): New function.
15774 (s390_store_last_break): Likewise.
15775 (s390_fill_system_call): New function.
15776 (s390_store_system_call): Likewise.
15777 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
15779 (s390_check_regset): New function.
15780 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
15781 NT_S390_SYSTEM_CALL regsets and use appropriate description.
15782 Update target_regsets for available register sets.
15784 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
15785 Jan Kratochvil <jan.kratochvil@redhat.com>
15787 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
15788 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
15790 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
15791 * linux-low.h (struct process_info_private): New member r_debug.
15792 * server.c (handle_qxfer_libraries): Call
15793 the_target->qxfer_libraries_svr4.
15794 (handle_qxfer_libraries_svr4): New function.
15795 (qxfer_packets): New entry "libraries-svr4".
15796 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
15797 * target.h (struct target_ops): New member qxfer_libraries_svr4.
15798 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
15799 PACKET_qXfer_libraries_svr4.
15801 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
15803 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
15804 PSW address/mask between 8-byte and 16-byte formats.
15805 (s390_supply_ptrace_register): Likewise.
15806 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
15807 basic addressing mode bit.
15809 2011-11-24 Stan Shebs <stan@codesourcery.com>
15811 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
15813 2011-11-17 Stan Shebs <stan@codesourcery.com>
15815 * tracepoint.c (struct tracepoint): New field traceframe_usage.
15816 (tracing_start_time): New global.
15817 (tracing_stop_time): New global.
15818 (tracing_user_name): New global.
15819 (tracing_notes): New global.
15820 (tracing_stop_note): New global.
15821 (cmd_qtstart): Set traceframe_usage, start_time.
15822 (stop_tracing): Set stop_time.
15823 (cmd_qtstatus): Report additional status.
15824 (cmd_qtp): New function.
15825 (handle_tracepoint_query): Call it.
15826 (cmd_qtnotes): New function.
15827 (handle_tracepoint_general_set): Call it.
15828 (get_timestamp): Rename from tsv_get_timestamp.
15830 2011-11-14 Stan Shebs <stan@codesourcery.com>
15831 Kwok Cheung Yeung <kcy@codesourcery.com>
15833 * linux-x86-low.c (small_jump_insn): New.
15834 (i386_install_fast_tracepoint_jump_pad): Add arguments for
15835 trampoline and error message, build a trampoline and issue a small
15836 jump instruction to it.
15837 (x86_install_fast_tracepoint_jump_pad): Add arguments for
15838 trampoline and error message.
15839 (x86_get_min_fast_tracepoint_insn_len): New.
15840 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
15841 * linux-low.h (struct linux_target_ops): Add arguments to
15842 install_fast_tracepoint_jump_pad operation, add new operation.
15843 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
15845 (linux_get_min_fast_tracepoint_insn_len): New function.
15846 (linux_target_op): Add new operation.
15847 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
15848 (gdb_trampoline_buffer_end): Ditto.
15849 (gdb_trampoline_buffer_error): Ditto.
15850 (struct ipa_sym_addresses): Add fields for new IPA variables.
15851 (symbol_list): Add entries for new IPA variables.
15852 (struct tracepoint): Add fields to hold the address range of the
15853 trampoline used by the tracepoint.
15854 (trampoline_buffer_head): New static variable.
15855 (trampoline_buffer_tail): Ditto.
15856 (claim_trampoline_space): New function.
15857 (have_fast_tracepoint_trampoline_buffer): New function.
15858 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
15860 (install_fast_tracepoint): Ditto, also add error buffer argument.
15861 (cmd_qtminftpilen): New function.
15862 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
15863 (fast_tracepoint_from_trampoline_address): New function.
15864 (fast_tracepoint_collecting): Handle trampoline as part of jump
15866 (set_trampoline_buffer_space): New function.
15867 (initialize_tracepoint): Initialize new IPA variables.
15868 * target.h (struct target_ops): Add arguments to
15869 install_fast_tracepoint_jump_pad operation, add new
15870 get_min_fast_tracepoint_insn_len operation.
15871 (target_get_min_fast_tracepoint_insn_len): New.
15872 (install_fast_tracepoint_jump_pad): Add arguments.
15873 * server.h (IPA_BUFSIZ): Define.
15874 * linux-i386-ipa.c: Include extra header files.
15875 (initialize_fast_tracepoint_trampoline_buffer): New function.
15876 (initialize_low_tracepoint): Call it.
15877 * server.h (set_trampoline_buffer_space): Declare.
15878 (claim_trampoline_space): Ditto.
15879 (have_fast_tracepoint_trampoline_buffer): Ditto.
15881 2011-11-14 Yao Qi <yao@codesourcery.com>
15883 * server.c (handle_query): Handle InstallInTrace for qSupported.
15884 * tracepoint.c (add_tracepoint): Sort list.
15885 (install_tracepoint, download_tracepoint): New.
15886 (cmd_qtdp): Call them to install and download tracepoints.
15887 (sort_tracepoints): Removed.
15888 (cmd_qtstart): Update.
15890 2011-11-14 Yao Qi <yao@codesourcery.com>
15892 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
15893 * mem-break.h: Declare.
15894 * tracepoint.c (cmd_qtstart): Move some code to ...
15895 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
15897 (download_tracepoints): Move some code to ...
15898 (download_tracepoint_1): ... here. New.
15900 2011-11-08 Yao Qi <yao@codesourcery.com>
15902 * remote-utils.c (relocate_instruction): A comment fix.
15904 2011-11-07 Joel Brobecker <brobecker@adacore.com>
15906 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
15907 (i386_dr_low_get_control, i386_dr_low_get_status): Use
15908 dr_status_mirror and dr_control_mirror from debug_reg_state.
15909 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
15910 (i386_initial_stuff): Remove use of deleted globals.
15911 (i386_get_thread_context, i386_set_thread_context,
15912 i386_thread_added): Use dr_status_mirror and dr_control_mirror
15913 from debug_reg_state.
15915 2011-11-05 Yao Qi <yao@codesourcery.com>
15917 * tracepoint.c (gdb_collect): Loop over tracepoints of same
15918 address as TPOINT's.
15920 2011-11-02 Stan Shebs <stan@codesourcery.com>
15922 * tracepoint.c (agent_mem_read_string): New function.
15923 (eval_agent_expr): Call it for tracenz.
15924 * server.c (handle_query): Report support for tracenz.
15926 2011-11-02 Yao Qi <yao@codesourcery.com>
15928 * tracepoint.c (cmd_qtstart): Remove unused local variables.
15930 2011-11-02 Yao Qi <yao@codesourcery.com>
15932 * target.h: Fix a typo in comment.
15934 2011-10-31 Pedro Alves <pedro@codesourcery.com>
15936 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
15937 clobber the breakpoints' shadows with fast tracepoint jumps.
15938 * mem-break.h (check_mem_write): Add `myaddr' parameter.
15939 * target.c (write_inferior_memory): Also pass MYADDR down to
15942 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
15944 * configure.ac: Check support for personality routine.
15945 * configure: Regenerate.
15946 * config.in: Likewise.
15947 * linux-low.c: Include <sys/personality.h>.
15948 Define ADDR_NO_RANDOMIZE if necessary.
15949 (linux_create_inferior): Disable address space randomization when
15950 forking inferior, if requested.
15951 (linux_supports_disable_randomization): New function.
15952 (linux_target_ops): Install it.
15953 * server.h (disable_randomization): Declare.
15954 * server.c (disable_randomization): New global variable.
15955 (handle_general_set): Handle QDisableRandomization.
15956 (handle_query): Likewise for qSupported.
15957 (main): Support --disable-randomization and --no-disable-randomization
15958 command line arguments.
15959 * target.h (struct target_ops): Add supports_disable_randomization.
15960 (target_supports_disable_randomization): New macro.
15962 2011-09-29 Mike Frysinger <vapier@gentoo.org>
15964 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
15966 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
15967 [!PT_GETDSBT] (target_loadmap): New definition.
15968 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
15969 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
15970 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
15971 and PT_GETDSBT to LINUX_LOADMAP.
15972 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
15973 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
15975 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
15977 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
15978 (arm_linux_hwbp_cap): New static variable.
15979 (arm_linux_get_hwbp_cap): Replace by ...
15980 (arm_linux_init_hwbp_cap): ... this new function.
15981 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
15982 (arm_linux_get_hw_watchpoint_count): Likewise.
15983 (arm_linux_get_hw_watchpoint_max_length): Likewise.
15984 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
15985 (arm_prepare_to_resume): Use perror_with_name instead of error.
15987 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
15989 * linux-arm-low.c: Include <signal.h>.
15990 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
15991 (struct arm_linux_hwbp_cap): New data type.
15992 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
15993 (struct arm_linux_hw_breakpoint): New data type.
15994 (MAX_BPTS, MAX_WPTS): Define.
15995 (struct arch_process_info, struct arch_lwp_info): New data types.
15996 (arm_linux_get_hwbp_cap): New function.
15997 (arm_linux_get_hw_breakpoint_count): Likewise.
15998 (arm_linux_get_hw_watchpoint_count): Likewise.
15999 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16000 (arm_hwbp_control_initialize): Likewise.
16001 (arm_hwbp_control_is_enabled): Likewise.
16002 (arm_hwbp_control_is_initialized): Likewise.
16003 (arm_hwbp_control_disable): Likewise.
16004 (arm_linux_hw_breakpoint_equal): Likewise.
16005 (arm_linux_hw_point_initialize): Likewise.
16006 (struct update_registers_data): New data structure.
16007 (update_registers_callback: New function.
16008 (arm_insert_point): Likewise.
16009 (arm_remove_point): Likewise.
16010 (arm_stopped_by_watchpoint): Likewise.
16011 (arm_stopped_data_address): Likewise.
16012 (arm_new_process): Likewise.
16013 (arm_new_thread): Likewise.
16014 (arm_prepare_to_resume): Likewise.
16015 (the_low_target): Register arm_insert_point, arm_remove_point,
16016 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
16017 arm_new_thread, and arm_prepare_to_resume.
16019 2011-09-15 Stan Shebs <stan@codesourcery.com>
16021 * server.h (struct emit_ops): Add compare-goto fields.
16022 * tracepoint.c (gdb_agent_op_sizes): New table.
16023 (emit_eq_goto): New function.
16024 (emit_ne_goto): New function.
16025 (emit_lt_goto): New function.
16026 (emit_le_goto): New function.
16027 (emit_gt_goto): New function.
16028 (emit_ge_goto): New function.
16029 (is_goto_target): New function.
16030 (compile_bytecodes): Recognize special cases of compare-goto
16031 combinations and call specialized emitters for them.
16032 * linux-x86-low.c (amd64_emit_eq_goto): New function.
16033 (amd64_emit_ne_goto): New function.
16034 (amd64_emit_lt_goto): New function.
16035 (amd64_emit_le_goto): New function.
16036 (amd64_emit_gt_goto): New function.
16037 (amd64_emit_ge_goto): New function.
16038 (amd64_emit_ops): Add the new functions.
16039 (i386_emit_eq_goto): New function.
16040 (i386_emit_ne_goto): New function.
16041 (i386_emit_lt_goto): New function.
16042 (i386_emit_le_goto): New function.
16043 (i386_emit_gt_goto): New function.
16044 (i386_emit_ge_goto): New function.
16045 (i386_emit_ops): Add the new functions.
16047 2011-09-08 Stan Shebs <stan@codesourcery.com>
16049 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
16050 (i386_emit_epilogue): Restore %ebx.
16052 2011-08-31 Jie Zhang <jzhang918@gmail.com>
16054 * server.c (step_thread): Remove definition.
16055 (process_serial_event): Don't handle Hs.
16056 * server.h (step_thread): Remove declaration.
16057 * target.c (set_desired_inferior): Remove use of step_thread.
16059 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
16061 * linux-low.c: Include linux-procfs.h.
16062 (linux_attach_lwp_1): Update comments.
16063 (linux_attach): Scan for existing threads when attaching to a
16064 process that is the tgid.
16065 * Makefile.in: Update dependencies.
16067 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
16069 * configure.srv: Add linux-procfs.o dependencies.
16071 2011-08-14 Yao Qi <yao@codesourcery.com>
16073 * target.h (struct target_ops): Fix indent.
16074 * win32-low.c (win32_target_ops): Fix comment.
16076 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
16077 Yao Qi <yao@codesourcery.com>
16079 * Makefile.in (clean): Remove tic6x-*.c files.
16080 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
16081 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
16082 (tic6x-c64xp-linux.c): Likewise.
16083 * configure.srv: Add support for tic6x-*-uclinux.
16084 * linux-tic6x-low.c: New.
16085 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
16087 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
16088 Yao Qi <yao@codesourcery.com>
16090 * target.h (struct target_ops): Add read_loadmap.
16091 * linux-low.c (struct target_loadseg): New type.
16092 (struct target_loadmap): New type.
16093 (linux_read_loadmap): New function.
16094 (linux_target_ops): Add linux_read_loadmap.
16095 * server.c (handle_query): Support qXfer:fdpic:read packet.
16096 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
16099 2011-08-05 Eli Zaretskii <eliz@gnu.org>
16101 * win32-low.c: Include <stdint.h>.
16103 2011-07-22 Pedro Alves <pedro@codesourcery.com>
16105 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
16106 to the inferior here.
16107 (i386_remove_aligned_watchpoint): Ditto.
16108 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
16109 fit part of the watchpoint in the debug registers.
16110 (i386_update_inferior_debug_regs): New.
16111 (i386_low_insert_watchpoint): Work on a local mirror of the debug
16112 registers, and only update the inferior on success.
16113 (i386_low_remove_watchpoint): Ditto.
16115 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
16117 * linux-low.c (compare_ints, unique, list_threads, show_process,
16118 linux_core_of_thread): Delete.
16119 (linux_target_ops): Change linux_core_of_thread to
16120 linux_common_core_of_thread.
16121 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
16122 * utils.c (malloc_failure): Change type of argument.
16123 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
16124 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
16125 common/linux-osdata.c, common/ptid.c and common/buffer.c.
16126 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
16127 (IPA_OBJS): Add common-utils-ipa.o.
16128 (ptid_h, linux_osdata_h): New macros.
16129 (server_h): Add common/common-utils.h, common/xml-utils.h,
16130 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
16132 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
16133 ptid.o, buffer.o): New rules.
16134 (linux-low.o): Add common/linux-osdata.h as a dependency.
16135 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
16136 * configure.ac: Add AC_HEADER_DIRENT check.
16137 * config.in: Regenerate.
16138 * configure: Regenerate.
16139 * remote-utils.c (xml_escape_text): Delete.
16140 (buffer_grow, buffer_free, buffer_init, buffer_finish,
16141 buffer_xml_printf): Move to common/buffer.c.
16142 * server.c (main): Remove call to initialize_inferiors.
16143 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
16144 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
16145 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
16146 internal_error, gdb_assert, gdb_assert_fail): Delete.
16147 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
16148 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
16150 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
16151 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
16152 initialize_inferiors): Delete.
16154 2011-07-20 Pedro Alves <pedro@codesourcery.com>
16156 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
16159 2011-05-31 Pedro Alves <pedro@codesourcery.com>
16161 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
16163 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
16165 2011-05-26 Yao Qi <yao@codesourcery.com>
16167 * Makefile.in (thread-db.o): Track dependence to
16168 common/gdb_thread_db.h.
16169 * thread-db.c: include gdb_thread_db.h from right place.
16171 2011-05-16 Adrian Cornish <gnu@bluedreamer.com>
16173 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
16174 __FILE__ and __LINE__ to internal_error.
16176 2011-05-13 Doug Evans <dje@google.com>
16178 * thread-db.c (try_thread_db_load_from_sdir): New function.
16179 (try_thread_db_load_from_dir): New function.
16180 (thread_db_load_search): Handle $sdir, ignore $pdir.
16181 Remove trying of system directories if search of
16182 libthread-db-search-path fails, that is now done via $sdir.
16184 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
16186 * server.c (handle_query): Add EnableDisableTracepoints to the list
16187 of supported features.
16188 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
16190 (cmd_qtenable_disable): New.
16191 (cmd_qtstart): Install tracepoints even if disabled.
16192 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
16193 receiving a QTEnable or QTDisable packet.
16194 (gdb_collect): Skip data collection if fast tracepoint is disabled.
16195 (ust_marker_to_static_tracepoint): Do not ignore disabled static
16197 (gdb_probe): Skip data collection if static tracepoint is disabled.
16199 2011-05-10 Doug Evans <dje@google.com>
16201 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
16203 2011-05-04 Doug Evans <dje@google.com>
16205 * linux-low.c (linux_join): Skip process lookup.
16206 * spu-low.c (spu_join): Ditto.
16207 * server.c (join_inferiors_callback): Delete.
16208 (process_serial_event): For 'D' packet (detach) call join_inferior
16211 2011-05-04 Joseph Myers <joseph@codesourcery.com>
16213 * README: Don't mention xscale*-*-linux*.
16214 * configure.srv (xscale*-*-linux*): Don't handle target.
16216 2011-04-27 Nathan Froyd <froydnj@codesourcery.com>
16218 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
16220 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
16221 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
16222 (i386_emit_void_call_2): Likewise.
16224 2011-04-26 Yao Qi <yao@codesourcery.com>
16226 * linux-low.c: Move common macros to linux-ptrace.h.
16227 Include linux-ptrace.h.
16228 * Makefile.in (linux_ptrace_h): New.
16229 (linux-low.o): Depends on linux-ptrace.h.
16231 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
16233 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
16234 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
16235 (remote_prepare): New function with most of the TCP code from ...
16236 (remote_open): ... here. Detect PORT here unconditionally. Move also
16237 setting transport_is_reliable.
16238 * server.c (run_once): New variable.
16239 (gdbserver_usage): Document it.
16240 (main): Set run_once for `--once'. Call remote_prepare. Exit after
16241 the first run if RUN_ONCE.
16242 * server.h (run_once, remote_prepare): New declarations.
16244 2011-04-19 Tom Tromey <tromey@redhat.com>
16246 * win32-low.c (handle_load_dll): Remove duplicate "the".
16248 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
16250 Remove support for old Cygwin 1.5 versions.
16251 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
16252 function to avoid warning.
16253 (win32_add_one_solib): Use cygwin_conv_path function to avoid
16256 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
16258 * gdbserver/server.h (Macro _): Define it if not available.
16260 2011-03-14 Michael Snyder <msnyder@vmware.com>
16262 * hostio.c (handle_close): Remove unnecessary null test.
16264 2011-03-10 Joel Brobecker <brobecker@adacore.com>
16266 * Makefile.in (maintainer-clean realclean distclean): Remove
16267 "make ... subdir_do" command.
16269 2011-03-10 Michael Snyder <msnyder@vmware.com>
16271 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
16273 * server.c (handle_v_run): Free alloced buffer on early return.
16275 2011-03-09 Yao Qi <yao@codesourcery.com>
16278 2011-03-04 Yao Qi <yao@codesourcery.com>
16280 * Makefile.in: Remove GNU make feature --directory.
16282 2011-03-05 Yao Qi <yao@codesourcery.com>
16284 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16285 (subdir_do): New make target. Copied from gdb/Makefile.
16286 (maintainer-clean, realclean, distclean, clean): Call corresponding
16287 make targets in common/Makefile.
16289 2011-02-11 Yao Qi <yao@codesourcery.com>
16291 * configure.ac: Call AC_PROG_RANLIB.
16292 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16293 * configure: Regenerate.
16295 2011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
16297 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
16299 2011-03-06 Yao Qi <yao@codesourcery.com>
16301 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
16303 2011-03-05 Yao Qi <yao@codesourcery.com>
16305 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16306 (subdir_do): New make target. Copied from gdb/Makefile.
16307 (maintainer-clean, realclean, distclean, clean): Call corresponding
16308 make targets in common/Makefile.
16310 2011-03-04 Yao Qi <yao@codesourcery.com>
16312 * Makefile.in: Remove GNU make feature --directory.
16314 2011-03-04 Michael Snyder <msnyder@vmware.com>
16316 * server.c (queue_stop_reply): Call xmalloc not malloc.
16318 2011-03-02 Michael Snyder <msnyder@vmware.com>
16320 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
16322 2011-02-28 Michael Snyder <msnyder@vmware.com>
16324 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
16325 (cmd_qtframe): Ditto.
16326 (cmd_qtbuffer): Ditto.
16327 (cmd_bigqtbuffer): Ditto.
16329 * utils.c (decimal2str): Initialize 'width' to nine, then
16330 don't mess with it.
16332 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
16334 * hostio.c (require_data): Free *data, not data.
16336 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
16338 * hostio.c (require_data): Use free, not xfree.
16340 2011-02-27 Michael Snyder <msnyder@vmware.com>
16342 * server.c (handle_query): Discard unused value.
16344 * hostio.c (require_data): Free malloc memory before returning
16347 2011-02-26 Michael Snyder <msnyder@vmware.com>
16349 * linux-low.c (list_threads): Call closedir for dirent.
16351 2011-02-27 Michael Snyder <msnyder@vmware.com>
16353 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
16354 a case statement falls through.
16356 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
16358 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
16361 2011-02-26 Michael Snyder <msnyder@vmware.com>
16363 * utils.c (decimal2str): Eliminate dead code and dead param.
16364 (pulongest): Drop dead param from call to decimal2str.
16367 2011-02-24 Joel Brobecker <brobecker@adacore.com>
16369 Revert the following patch (not approved yet):
16370 2011-02-21 Hui Zhu <teawater@gmail.com>
16371 * tracepoint.c (tp_printf): New function.
16372 (eval_agent_expr): Handle gdb_agent_op_printf.
16374 2011-02-21 Hui Zhu <teawater@gmail.com>
16376 * tracepoint.c (tp_printf): New function.
16377 (eval_agent_expr): Handle gdb_agent_op_printf.
16379 2011-02-18 Tom Tromey <tromey@redhat.com>
16381 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
16382 (tracepoint.o): Likewise.
16383 * tracepoint.c (enum gdb_agent_op): Use ax.def.
16384 (gdb_agent_op_names): Likewise.
16386 2011-02-18 Tom Tromey <tromey@redhat.com>
16388 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
16389 gdb_agent_op_rot>: New constants.
16390 (gdb_agent_op_names): Add pick and roll.
16391 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
16394 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
16396 * aclocal.m4: Regenerated with aclocal-1.11.1.
16398 2011-02-14 Pedro Alves <pedro@codesourcery.com>
16400 * server.c (handle_qxfer_traceframe_info): New.
16401 (qxfer_packets): Register "traceframe-info".
16402 (handle_query): Report support for qXfer:traceframe-info:read+.
16403 * tracepoint.c (match_blocktype): New.
16404 (traceframe_find_block_type): Rename to ...
16405 (traceframe_walk_blocks): ... this. Add callback filter argument,
16407 (traceframe_find_block_type): New, reimplemented on top of
16408 traceframe_walk_blocks.
16409 (build_traceframe_info_xml): New.
16410 (traceframe_read_info): New.
16411 * server.h (traceframe_read_info): Declare.
16413 2011-02-11 Yao Qi <yao@codesourcery.com>
16415 * configure.ac: Call AC_PROG_RANLIB.
16416 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16417 * configure: Regenerate.
16419 2011-02-07 Pedro Alves <pedro@codesourcery.com>
16421 * server.c (gdb_read_memory): Change return semantics to allow
16423 (handle_search_memory_1): Adjust.
16424 (process_serial_event) <'m' packet>: Handle partial transfers.
16425 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
16427 2011-01-28 Pedro Alves <pedro@codesourcery.com>
16429 * regcache.c (init_register_cache): Initialize
16430 regcache->register_status.
16431 (free_register_cache): Release regcache->register_status.
16432 (regcache_cpy): Copy register_status.
16433 (registers_to_string): Print 'x's for unavailable registers.
16434 (supply_register): Mark the register's status valid or
16435 unavailable, depending on whether a buffer was passed in or not.
16436 (supply_register_zeroed): New.
16437 (supply_regblock): Mark the registers' status valid or
16438 unavailable, depending on whether a buffer was passed in or not.
16439 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
16440 (struct regcache): New `register_status' field.
16441 (supply_register_zeroed): Declare.
16442 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
16443 supply_register_zeroed, rather than passing a NULL buffer to
16445 * tracepoint.c (fetch_traceframe_registers): Update comment.
16447 2011-01-28 Pedro Alves <pedro@codesourcery.com>
16449 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
16452 2011-01-25 Pedro Alves <pedro@codesourcery.com>
16454 * server.h (decode_xfer_write): Change prototype.
16455 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
16456 and don't extract the annex here.
16457 * server.c (decode_xfer_read): Remove `annex' parameter,
16458 and don't extract the annex here.
16459 (decode_xfer): New.
16460 (struct qxfer): New.
16461 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
16462 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
16463 (handle_qxfer_statictrace): New functions, abstracted out from
16464 handle_query, and made to use the struct qxfer interface.
16465 (handle_threads_qxfer_proper): Rename to ...
16466 (handle_qxfer_threads_proper): ... this.
16467 (handle_threads_qxfer): Rename to ...
16468 (handle_qxfer_threads): ... this. Adjust.
16469 (qxfer_packets): New array.
16470 (handle_qxfer): New function.
16471 (handle_query): Use handle_qxfer.
16473 2011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
16475 * gdbreplay.c: Shorten lines of >= 80 columns.
16476 * linux-low.c: Ditto.
16477 * linux-ppc-low.c: Ditto.
16478 * linux-s390-low.c: Ditto.
16479 * linux-sparc-low.c: Ditto.
16480 * linux-x86-low.c: Ditto.
16481 * linux-xtensa-low.c: Ditto.
16482 * mem-break.c: Ditto.
16483 * nto-low.c: Ditto.
16484 * regcache.h: Ditto.
16485 * remote-utils.c: Ditto.
16488 * thread-db.c: Ditto.
16489 * tracepoint.c: Ditto.
16491 * win32-low.h: Ditto.
16493 2011-01-05 Joel Brobecker <brobecker@adacore.com>
16495 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
16498 2011-01-01 Joel Brobecker <brobecker@adacore.com>
16500 * server.c (gdbserver_version): Update copyright year in version
16502 * gdbreplay.c (gdbreplay_version): Ditto.
16504 2010-12-29 Jie Zhang <jie.zhang@analog.com>
16506 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
16507 * linux-bfin-low.c: New file.
16508 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
16509 PT_DATA_ADDR for BFIN targets.
16510 * Makefile.in (SFILES): Add linux-bfin-low.c.
16511 (clean): Remove reg-bfin.c.
16512 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
16513 * README: Mention supported Blackfin targets.
16515 2010-12-23 Mike Frysinger <vapier@gentoo.org>
16517 * .gitignore: New file.
16519 2010-11-16 Mike Frysinger <vapier@gentoo.org>
16521 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
16523 2010-10-22 Jie Zhang <jie@codesourcery.com>
16525 * Makefile.in: Add FLAGS_TO_PASS variable.
16526 (install): Remove dependency of install-only and recursively
16527 invoke make for install-only.
16529 2010-10-04 Doug Evans <dje@google.com>
16531 * Makefile.in (uninstall): Use $(DESTDIR).
16533 2010-09-24 Pedro Alves <pedro@codesourcery.com>
16537 * linux-x86-low.c (compat_siginfo_from_siginfo)
16538 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
16539 si_code is < 0. Check for si_code == SI_TIMER before checking for
16542 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16544 * lynx-i386-low.c: New file.
16545 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
16547 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16549 * lynx-low.c (ptrace_request_to_str): Remove handling for
16550 request values that have been removed in LynxOS 5.x.
16552 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16554 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
16557 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
16559 * configure.ac: Add --enable-inprocess-agent option.
16560 * configure: Rebuilt.
16562 2010-09-06 Yao Qi <yao@codesourcery.com>
16564 * linux-low.c (linux_kill): Remove unused variable.
16565 (linux_stabilize_threads): Likewise.
16566 * server.c (start_inferior): Likewise.
16567 (queue_stop_reply_callback): Likewise.
16568 * tracepoint.c (do_action_at_tracepoint): Likewise.
16570 2010-09-06 Yao Qi <yao@codesourcery.com>
16572 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
16575 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16577 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
16579 2010-09-06 Pedro Alves <pedro@codesourcery.com>
16581 * Makefile.in (install-only): Replace $IPA_DEPFILES with
16584 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16586 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
16587 gdbserver/lynx-ppc-low.c: New files.
16588 * Makefile.in (lynx_low_h): New variable.
16589 (lynx-low.o, lynx-ppc-low.o): New rules.
16590 * configure.ac: On LynxOS, link with -lnetinet.
16591 * configure.srv: Add handling of powerpc-*-lynxos* targets.
16592 * configure: regenerate.
16594 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16596 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
16597 * configure.ac: Add check for vasprintf and vsnprintf.
16598 * configure, config.in: Regenerate.
16599 * server.h (vasprintf, vsnprintf): Add conditional declarations.
16601 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16603 * gdbreplay.c: Move include of alloca.h up, next to include of
16605 * server.h: Add include of malloc.h.
16606 * mem-break.c: Remove include of malloc.h.
16607 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
16609 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16611 * Makefile.in (memmem.o): Build with -Wno-error.
16613 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16615 * utils.c (xsnprintf): Make non-static.
16616 * server.h: Add xsnprintf declaration.
16617 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
16618 replace calls to snprintf by calls to xsnprintf throughout.
16620 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16622 * configure.ac: Add configure check for alloca.
16623 * configure, config.in: Regenerate.
16624 * server.h: Include alloca.h if it exists.
16625 * gdbreplay.c: Include alloca.h if it exists.
16627 2010-08-28 Pedro Alves <pedro@codesourcery.com>
16629 * linux-low.c (__SIGRTMIN): Define if not already defined.
16630 (linux_create_inferior): Check for __ANDROID__ rather than
16632 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
16633 are already deferred.
16634 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
16635 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
16636 stopped and already has a pending signal to report.
16637 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
16638 a pending signal to report or is moving out of a jump pad.
16639 (linux_init_signals): Check for __ANDROID__ rather than
16642 2010-08-28 Pedro Alves <pedro@codesourcery.com>
16644 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
16645 debug_threads check. Avoid a linear search when not doing debug
16648 2010-08-27 Pedro Alves <pedro@codesourcery.com>
16650 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
16651 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
16652 (struct file_handler) <fd>: Change type to gdb_fildes_t.
16653 (process_event): Change local fd's type to gdb_fildes_t.
16654 (create_file_handler): Adjust prototype.
16655 (delete_file_handler): Adjust prototype.
16656 (handle_file_event): Adjust prototype. Use pfildes.
16657 (create_file_event): Adjsut prototype.
16658 * remote-utils.c (remote_desc, listen_desc): Change type to
16660 * server.h: New gdb_fildes_t typedef.
16661 [USE_WIN32API]: Include winsock2.h.
16662 (delete_file_handler, add_file_handler): Adjust prototypes.
16663 (pfildes): Declare.
16664 * utils.c (pfildes): New.
16666 2010-08-27 Pedro Alves <pedro@codesourcery.com>
16668 * configure.ac (build_warnings): Add -Wno-char-subscripts.
16669 * configure: Regenerate.
16671 2010-08-27 Pedro Alves <pedro@codesourcery.com>
16673 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
16674 (linux_done_accessing_memory): ... this.
16675 (linux_target_ops): Adjust.
16676 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
16677 * nto-low.c (nto_target_ops): Adjust comment.
16678 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
16679 * spu-low.c (spu_target_ops): Adjust comment.
16680 * target.h (target_ops): Rename unprepare_to_access_memory field
16681 to done_accessing_memory.
16682 (unprepare_to_access_memory): Rename to ...
16683 (done_accessing_memory): ... this.
16685 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16687 * linux-low.c (linux_prepare_to_access_memory): New.
16688 (linux_unprepare_to_access_memory): New.
16689 (linux_target_ops): Install them.
16690 * server.c (read_memory): Rename to ...
16691 (gdb_read_memory): ... this. Use
16692 prepare_to_access_memory/prepare_to_access_memory.
16693 (write_memory): Rename to ...
16694 (gdb_write_memory): ... this. Use
16695 prepare_to_access_memory/prepare_to_access_memory.
16696 (handle_search_memory_1): Adjust.
16697 (process_serial_event): Adjust.
16698 * target.h (struct target_ops): New fields
16699 prepare_to_access_memory and unprepare_to_access_memory.
16700 (prepare_to_access_memory, unprepare_to_access_memory): New.
16701 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
16702 prepare_to_access_memory/prepare_to_access_memory.
16703 * nto-low.c (nto_target_ops): Adjust.
16704 * spu-low.c (spu_target_ops): Adjust.
16705 * win32-low.c (win32_target_ops): Adjust.
16707 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16709 * Makefile.in (WARN_CFLAGS): Get it from configure.
16710 (WERROR_CFLAGS): New.
16711 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
16712 * configure.ac: Introduce --enable-werror, which adds -Werror to
16713 the compiler command line. Enabled by default. Disable with
16714 --disable-werror. Add -Wdeclaration-after-statement
16715 Wpointer-arith and -Wformat-nonliteral to warning flags.
16716 * configure: Regenerate.
16718 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16720 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
16722 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16724 * gdbreplay.c (remote_error): New.
16726 (expect): Use gdbchar. Check for error reading from GDB.
16727 Clarify sync error output.
16728 (play): Check for errors writing to GDB.
16729 * linux-low.c (sigchld_handler): Really ignore `write' errors.
16730 * remote-utils.c (getpkt): Check for errors writing to the remote
16733 2010-08-25 Pedro Alves <pedro@codesourcery.com>
16735 * linux-low.c (linux_wait_1): Move non-debugging code out of
16736 `debug_threads' control.
16738 2010-08-25 Pedro Alves <pedro@codesourcery.com>
16740 * linux-low.c (linux_wait_1): Don't set last_status here.
16741 * server.c (push_event, queue_stop_reply_callback): Assert we're
16742 not pushing a TARGET_WAITKIND_IGNORE event.
16743 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
16744 (myresume, handle_target_event): Set the thread's last_resume_kind
16745 and last_status from the target returned status.
16747 2010-08-25 Pedro Alves <pedro@codesourcery.com>
16751 * linux-x86-low.c (update_debug_registers_callback): New.
16752 (i386_dr_low_set_addr): Use it.
16753 (i386_dr_low_get_addr): New.
16754 (i386_dr_low_set_control): Use update_debug_registers_callback.
16755 (i386_dr_low_get_control): New.
16756 (i386_dr_low_get_status): Adjust.
16757 * linux-low.c (linux_stop_lwp): New.
16758 * linux-low.h (linux_stop_lwp): Declare.
16760 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
16761 argument instead of a i386_debug_reg_state.
16762 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
16763 a i386_debug_reg_state.
16764 (i386_insert_aligned_watchpoint): Adjust.
16765 (i386_remove_aligned_watchpoint): Adjust.
16766 (i386_low_stopped_data_address): Read the debug registers from the
16767 inferior instead of from the mirrors.
16768 * i386-low.h (struct i386_debug_reg_state): Extend comment.
16769 (i386_dr_low_get_addr): Declare.
16770 (i386_dr_low_get_control): Declare.
16771 (i386_dr_low_get_status): Change prototype.
16773 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
16774 (i386_dr_low_get_addr): New.
16775 (i386_dr_low_get_control): New.
16776 (i386_dr_low_get_status): Adjust prototype. Return
16778 (i386_initial_stuff): Clear dr_status_mirror and
16780 (i386_get_thread_context): Adjust.
16781 (i386_set_thread_context): Adjust.
16782 (i386_thread_added): Adjust.
16784 2010-08-24 Pedro Alves <pedro@codesourcery.com>
16786 * linux-low.h (linux_thread_area): Delete declaration.
16788 2010-08-11 Thomas Schwinge <thomas@codesourcery.com>
16790 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
16791 after its termination.
16793 2010-08-09 Pedro Alves <pedro@codesourcery.com>
16795 * linux-low.c (gdb_wants_lwp_stopped): Delete.
16796 (gdb_wants_all_stopped): Delete.
16797 (linux_wait_1): Don't call them.
16798 * server.c (handle_v_cont): Tag all threads as want-stopped.
16799 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
16800 stopped as "client-wants-stopped".
16802 2010-07-31 Pedro Alves <pedro@codesourcery.com>
16804 * Makefile.in (signals_h): New.
16805 (server_h): Depend on it.
16806 (server.o): Don't depend on $(signals_def).
16807 (signals.o): Depend on $(signals_def).
16809 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
16811 * Makefile.in (signals_def): New.
16812 (server_h): Append include/gdb/signals.h and signals_def.
16813 (server.o): Append signals_def.
16815 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
16817 * server.c (handle_target_event): Use target_signal_to_host for
16818 resume_info.sig initialization.
16819 * target.h (struct thread_resume) <sig>: New comment.
16821 2010-07-20 Ozkan Sezer <sezeroz@gmail.com>
16823 * server.c (handle_query): strcpy() the returned string from paddress()
16824 instead of sprintf().
16825 * utils.c (paddress): Return phex_nz().
16827 2010-07-07 Joel Brobecker <brobecker@adacore.com>
16829 * server.c (handle_v_cont): Call mourn_inferior if process
16831 (myresume): Likewise.
16833 2010-07-01 Pedro Alves <pedro@codesourcery.com>
16835 Static tracepoints, and integration with UST.
16837 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
16838 * mem-break.c (uninsert_all_breakpoints)
16839 (reinsert_all_breakpoints): New.
16840 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
16841 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
16842 (gdb_agent_ust_loaded, helper_thread_id)
16843 (gdb_agent_helper_thread_id): New macros.
16844 (struct ipa_sym_addresses): Add addr_ust_loaded,
16845 addr_helper_thread_id, addr_cmd_buf.
16846 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
16847 (in_process_agent_loaded_ust): New.
16848 (write_e_ust_not_loaded): New.
16849 (maybe_write_ipa_ust_not_loaded): New.
16850 (struct collect_static_trace_data_action): New.
16851 (enum tracepoint_type) <static_tracepoint>: New.
16852 (struct tracepoint) <handle>: Mention static tracepoints.
16853 (struct static_tracepoint_ctx): New.
16854 (CMD_BUF_SIZE): New.
16855 (add_tracepoint_action): Handle static tracepoint actions.
16856 (unprobe_marker_at): New.
16857 (clear_installed_tracepoints): Handle static tracepoints.
16858 (cmd_qtdp): Handle static tracepoints.
16859 (probe_marker_at): New.
16860 (cmd_qtstart): Handle static tracepoints.
16861 (response_tracepoint): Handle static tracepoints.
16862 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
16863 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
16864 (get_context_regcache): Handle static tracepoints.
16865 (do_action_at_tracepoint): Handle static tracepoint actions.
16866 (traceframe_find_block_type): Handle static trace data blocks.
16867 (traceframe_read_sdata): New.
16868 (download_tracepoints): Download static tracepoint actions.
16869 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
16870 (GDB_PROBE_NAME): New.
16872 (GET_UST_SYM): New.
16875 (ust_marker_to_static_tracepoint): New.
16877 (collect_ust_data_at_tracepoint): New.
16878 (gdb_ust_probe): New.
16879 (UNIX_PATH_MAX, SOCK_DIR): New.
16880 (gdb_ust_connect_sync_socket): New.
16881 (resume_thread, stop_thread): New.
16882 (run_inferior_command): New.
16883 (init_named_socket): New.
16884 (gdb_ust_socket_init): New.
16885 (cstr_to_hexstr): New.
16887 (first_marker, next_marker): New.
16888 (response_ust_marker): New.
16889 (cmd_qtfstm, cmd_qtsstm): New.
16890 (unprobe_marker_at, probe_marker_at): New.
16891 (cmd_qtstmat, gdb_ust_thread): New.
16892 (gdb_ust_init): New.
16893 (initialize_tracepoint_ftlib): Call gdb_ust_init.
16894 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
16895 (ST_REGENTRY): New.
16896 (x86_64_st_collect_regmap): New.
16897 (X86_64_NUM_ST_COLLECT_GREGS): New.
16898 (AMD64_RIP_REGNUM): New.
16899 (supply_static_tracepoint_registers): New.
16900 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
16901 (ST_REGENTRY): New.
16902 (i386_st_collect_regmap): New.
16903 (i386_NUM_ST_COLLECT_GREGS): New.
16904 (supply_static_tracepoint_registers): New.
16905 * server.c (handle_query): Handle qXfer:statictrace:read.
16906 <qSupported>: Report support for StaticTracepoints, and
16907 qXfer:statictrace:read features.
16908 * server.h (traceframe_read_sdata)
16909 (supply_static_tracepoint_registers): Declare.
16910 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
16911 (unpack_varlen_hex): Include in IPA build.
16912 * Makefile.in (ustlibs, ustinc): New.
16913 (IPA_OBJS): Add remote-utils-ipa.o.
16914 ($(IPA_LIB)): Link -ldl and -lpthread.
16916 (IPAGENT_CFLAGS): Add UST_CFLAGS.
16917 * config.in, configure: Regenerate.
16919 2010-06-20 Ian Lance Taylor <iant@google.com>
16920 Pedro Alves <pedro@codesourcery.com>
16922 * linux-x86-low.c (always_true): Delete.
16923 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
16924 trying to fool the compiler with always_true.
16926 2010-06-20 Pedro Alves <pedro@codesourcery.com>
16928 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
16929 conditions in gdbserver.
16931 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
16933 * spu-low.c (spu_read_memory): Wrap around local store limit.
16934 (spu_write_memory): Likewise.
16936 2010-06-15 Pedro Alves <pedro@codesourcery.com>
16938 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
16939 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
16941 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
16943 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
16944 uses with LONGEST uses.
16946 2010-06-14 Stan Shebs <stan@codesourcery.com>
16947 Pedro Alves <pedro@codesourcery.com>
16951 * linux-x86-low.c: Include limits.h.
16953 (always_true): New.
16956 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
16957 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
16958 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
16959 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
16960 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
16961 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
16962 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
16963 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
16964 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
16965 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
16966 (amd64_emit_void_call_2): New.
16967 (amd64_emit_ops): New.
16968 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
16969 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
16970 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
16971 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
16972 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
16973 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
16974 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
16975 (i386_emit_call, i386_emit_reg, i386_emit_pop)
16976 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
16977 (i386_emit_stack_adjust, i386_emit_int_call_1)
16978 (i386_emit_void_call_2): New.
16979 (i386_emit_ops): New.
16980 (x86_emit_ops): New.
16981 (the_low_target): Install x86_emit_ops.
16982 * server.h (struct emit_ops): New.
16983 (get_raw_reg_func_addr): Declare.
16984 (current_insn_ptr, emit_error): Declare.
16985 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
16986 (set_trace_state_variable_value): New defines.
16987 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
16988 addr_get_trace_state_variable_value and
16989 addr_set_trace_state_variable_value.
16990 (symbol_list): New fields for get_raw_reg,
16991 get_trace_state_variable_value and set_trace_state_variable_value.
16992 (condfn): New typedef.
16993 (struct tracepoint): New field `compiled_cond'.
16994 (do_action_at_tracepoint): Clear compiled_cond.
16995 (get_trace_state_variable_value, set_trace_state_variable_value):
16997 (condition_true_at_tracepoint): If there's a compiled condition,
16999 (current_insn_ptr, emit_error): New globals.
17000 (struct bytecode_address): New.
17001 (get_raw_reg_func_addr): New.
17002 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
17003 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
17004 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
17005 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
17006 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
17007 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
17008 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
17009 (compile_tracepoint_condition, compile_bytecodes): New.
17010 * target.h (emit_ops): Forward declare.
17011 (struct target_ops): New field emit_ops.
17012 (target_emit_ops): New.
17013 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
17014 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
17015 * linux-low.c (linux_emit_ops): New.
17016 (linux_target_ops): Install it.
17017 * linux-low.h (struct linux_target_ops): New field emit_ops.
17019 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
17021 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
17022 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
17024 2010-06-01 Pedro Alves <pedro@codesourcery.com>
17025 Stan Shebs <stan@codesourcery.com>
17027 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
17028 (all): Depend on $(extra_libraries).
17029 (install-only): Install the IPA.
17030 (IPA_OBJS, IPA_LIB): New.
17031 (clean): Remove the IPA lib.
17032 (IPAGENT_CFLAGS): New.
17033 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
17034 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
17035 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
17036 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
17037 * configure.ac: Check for atomic builtins support in the compiler.
17038 (IPA_DEPFILES, extra_libraries): Define.
17039 * configure.srv (ipa_obj): Add description.
17040 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
17041 (i[34567]86-*-linux*): Set ipa_obj.
17042 (x86_64-*-linux*): Set ipa_obj.
17043 * linux-low.c (stabilizing_threads): New.
17044 (supports_fast_tracepoints): New.
17045 (linux_detach): Stabilize threads before detaching.
17046 (handle_tracepoints): Handle internal tracing breakpoints. Assert
17047 the lwp is either not stabilizing, or is moving out of a jump pad.
17048 (linux_fast_tracepoint_collecting): New.
17049 (maybe_move_out_of_jump_pad): New.
17050 (enqueue_one_deferred_signal): New.
17051 (dequeue_one_deferred_signal): New.
17052 (linux_wait_for_event_1): If moving out of a jump pad, defer
17053 pending signals to later.
17054 (linux_stabilize_threads): New.
17055 (linux_wait_1): Check if threads need moving out of jump pads, and
17057 (stuck_in_jump_pad_callback): New.
17058 (move_out_of_jump_pad_callback): New.
17059 (lwp_running): New.
17060 (linux_resume_one_lwp): Handle moving out of jump pads.
17061 (linux_set_resume_request): Dequeue deferred signals.
17062 (need_step_over_p): Also step over fast tracepoint jumps.
17063 (start_step_over): Also uninsert fast tracepoint jumps.
17064 (finish_step_over): Also reinsert fast tracepoint jumps.
17065 (linux_install_fast_tracepoint_jump): New.
17066 (linux_target_ops): Install linux_stabilize_threads and
17067 linux_install_fast_tracepoint_jump_pad.
17068 * linux-low.h (linux_target_ops) <get_thread_area,
17069 install_fast_tracepoint_jump_pad>: New fields.
17070 (struct lwp_info) <collecting_fast_tracepoint,
17071 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
17072 (linux_get_thread_area): Declare.
17073 * linux-x86-low.c (jump_insn): New.
17074 (x86_get_thread_area): New.
17075 (append_insns): New.
17076 (push_opcode): New.
17077 (amd64_install_fast_tracepoint_jump_pad): New.
17078 (i386_install_fast_tracepoint_jump_pad): New.
17079 (x86_install_fast_tracepoint_jump_pad): New.
17080 (the_low_target): Install x86_get_thread_area and
17081 x86_install_fast_tracepoint_jump_pad.
17082 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
17083 (struct fast_tracepoint_jump): New.
17084 (fast_tracepoint_jump_insn): New.
17085 (fast_tracepoint_jump_shadow): New.
17086 (find_fast_tracepoint_jump_at): New.
17087 (fast_tracepoint_jump_here): New.
17088 (delete_fast_tracepoint_jump): New.
17089 (set_fast_tracepoint_jump): New.
17090 (uninsert_fast_tracepoint_jumps_at): New.
17091 (reinsert_fast_tracepoint_jumps_at): New.
17092 (set_breakpoint_at): Use write_inferior_memory.
17093 (uninsert_raw_breakpoint): Use write_inferior_memory.
17094 (check_mem_read): Mask out fast tracepoint jumps.
17095 (check_mem_write): Mask out fast tracepoint jumps.
17096 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
17097 (set_fast_tracepoint_jump): Declare.
17098 (delete_fast_tracepoint_jump)
17099 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
17100 (reinsert_fast_tracepoint_jumps_at): Declare.
17101 * regcache.c: Don't compile many functions when building the
17102 in-process agent library.
17103 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
17104 the register buffer in the heap.
17105 (free_register_cache): If the register buffer isn't owned by the
17106 regcache, don't free it.
17107 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
17108 pre-existing register caches.
17109 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
17111 (convert_ascii_to_int): : Constify `from' parameter type.
17112 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
17113 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
17114 the needed buffer in-place.
17115 (relocate_instruction): New.
17116 * server.c (handle_query) <qSymbols>: If the target supports
17117 tracepoints, give it a chance of looking up symbols. Report
17118 support for fast tracepoints.
17119 (handle_status): Stabilize threads.
17120 (process_serial_event): Adjust.
17121 * server.h (struct fast_tracepoint_jump): Forward declare.
17122 (struct process_info) <fast_tracepoint_jumps>: New field.
17123 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
17124 (decode_X_packet, decode_M_packet): Adjust.
17125 (relocate_instruction): Declare.
17126 (in_process_agent_loaded): Declare.
17127 (tracepoint_look_up_symbols): Declare.
17128 (struct fast_tpoint_collect_status): Declare.
17129 (fast_tracepoint_collecting): Declare.
17130 (force_unlock_trace_buffer): Declare.
17131 (handle_tracepoint_bkpts): Declare.
17132 (initialize_low_tracepoint)
17133 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
17134 * target.h (struct target_ops) <stabilize_threads,
17135 install_fast_tracepoint_jump_pad>: New fields.
17136 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
17137 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
17138 [HAVE_STDINT_H]: Include stdint.h.
17139 (trace_debug_1): Rename to ...
17140 (trace_vdebug): ... this.
17141 (trace_debug): Rename to ...
17142 (trace_debug_1): ... this. Add `level' parameter.
17143 (trace_debug): New.
17144 (ATTR_USED, ATTR_NOINLINE): New.
17145 (IP_AGENT_EXPORT): New.
17146 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
17147 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
17148 (about_to_request_buffer_space, trace_buffer_is_full)
17149 (stopping_tracepoint, expr_eval_result, error_tracepoint)
17150 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
17151 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
17152 (traceframe_write_count, traceframes_created)
17153 (trace_state_variables)
17154 New renaming defines.
17155 (struct ipa_sym_addresses): New.
17156 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
17157 (symbol_list): New.
17158 (ipa_sym_addrs): New.
17159 (all_tracepoint_symbols_looked_up): New.
17160 (in_process_agent_loaded): New.
17161 (write_e_ipa_not_loaded): New.
17162 (maybe_write_ipa_not_loaded): New.
17163 (tracepoint_look_up_symbols): New.
17164 (debug_threads) [IN_PROCESS_AGENT]: New.
17165 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
17166 (UNKNOWN_SIDE_EFFECTS): New.
17167 (stop_tracing): New.
17168 (flush_trace_buffer): New.
17169 (stop_tracing_bkpt): New.
17170 (flush_trace_buffer_bkpt): New.
17171 (read_inferior_integer): New.
17172 (read_inferior_uinteger): New.
17173 (read_inferior_data_pointer): New.
17174 (write_inferior_data_pointer): New.
17175 (write_inferior_integer): New.
17176 (write_inferior_uinteger): New.
17177 (struct collect_static_trace_data_action): Delete.
17178 (enum tracepoint_type): New.
17179 (struct tracepoint) <type>: New field `type'.
17180 <actions_str, step_actions, step_actions_str>: Only include in
17182 <orig_size, obj_addr_on_target, adjusted_insn_addr>
17183 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
17184 (tracepoints): Use IP_AGENT_EXPORT.
17185 (last_tracepoint): Don't include in the IPA.
17186 (stopping_tracepoint): Use IP_AGENT_EXPORT.
17187 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
17188 (alloced_trace_state_variables): New.
17189 (trace_state_variables): Use IP_AGENT_EXPORT.
17190 (traceframe_t): Delete unused variable.
17191 (circular_trace_buffer): Don't include in the IPA.
17192 (trace_buffer_start): Delete.
17193 (struct trace_buffer_control): New.
17194 (trace_buffer_free): Delete.
17195 (struct ipa_trace_buffer_control): New.
17196 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
17197 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
17199 (trace_buffer_ctrl): New.
17200 (TRACE_BUFFER_CTRL_CURR): New.
17201 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
17202 Reimplement as macros.
17203 (trace_buffer_wrap): Delete.
17204 (traceframe_write_count, traceframe_read_count)
17205 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
17206 (struct tracepoint_hit_ctx) <type>: New field.
17207 (struct fast_tracepoint_ctx): New.
17208 (memory_barrier): New.
17210 (record_tracepoint_error): Update atomically in the IPA.
17211 (clear_inferior_trace_buffer): New.
17212 (about_to_request_buffer_space): New.
17213 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
17214 updating the same buffer.
17215 (add_tracepoint): Default the tracepoint's type to trap
17216 tracepoint, and orig_size to -1.
17217 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
17218 internal variables.
17219 (create_trace_state_variable): New parameter `gdb'. Handle it.
17220 (clear_installed_tracepoints): Clear fast tracepoint jumps.
17221 (cmd_qtdp): Handle fast tracepoints.
17222 (cmd_qtdv): Adjust.
17223 (max_jump_pad_size): New.
17224 (gdb_jump_pad_head): New.
17225 (get_jump_space_head): New.
17226 (claim_jump_space): New.
17227 (sort_tracepoints): New.
17228 (MAX_JUMP_SIZE): New.
17229 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
17231 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
17232 support. Upload fast traceframes, and delete internal IPA
17234 (stop_tracing_handler): New.
17235 (flush_trace_buffer_handler): New.
17236 (cmd_qtstop): Upload fast tracepoints.
17237 (response_tracepoint): Handle fast tracepoints.
17238 (tracepoint_finished_step): Upload fast traceframes. Set the
17239 tracepoint hit context's tracepoint type.
17240 (handle_tracepoint_bkpts): New.
17241 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
17242 type. Add comment about fast tracepoints.
17243 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
17244 non-existing action_str field.
17245 (get_context_regcache): Handle fast tracepoints.
17246 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
17248 (fast_tracepoint_from_jump_pad_address): New.
17249 (fast_tracepoint_from_ipa_tpoint_address): New.
17250 (collecting_t): New.
17251 (force_unlock_trace_buffer): New.
17252 (fast_tracepoint_collecting): New.
17254 (gdb_collect): New.
17255 (write_inferior_data_ptr): New.
17256 (target_tp_heap): New.
17257 (target_malloc): New.
17258 (download_agent_expr): New.
17260 (download_tracepoints): New.
17261 (download_trace_state_variables): New.
17262 (upload_fast_traceframes): New.
17263 (IPA_FIRST_TRACEFRAME): New.
17264 (IPA_NEXT_TRACEFRAME_1): New.
17265 (IPA_NEXT_TRACEFRAME): New.
17266 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
17267 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
17268 (gdb_jump_pad_buffer_end): New.
17269 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
17270 (initialize_tracepoint): Adjust.
17271 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
17272 buffer. Initialize the low module.
17273 * utils.c (PREFIX, TOOLNAME): New.
17274 (malloc_failure): Use PREFIX.
17275 (error): In the IPA, an error causes an exit.
17276 (fatal, warning): Use PREFIX.
17277 (internal_error): Use TOOLNAME.
17278 (NUMCELLS): Increase to 10.
17279 * configure, config.in: Regenerate.
17281 2010-06-01 Pedro Alves <pedro@codesourcery.com>
17283 * server.c (handle_query) <qSupported>: Do two passes over the
17284 qSupported string to avoid nesting strtok.
17286 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17288 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
17290 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
17291 -Wl,--dynamic-list.
17292 * configure: Regenerate.
17293 * proc-service.list: New.
17295 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17297 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
17300 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
17302 * gdbreplay.c (remote_open): Check error return from socket() call by
17303 its equality to -1 not by it being negative.
17304 * remote-utils.c (remote_open): Likewise.
17306 2010-05-23 Pedro Alves <pedro@codesourcery.com>
17308 * config.h: Regenerate.
17310 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17312 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
17313 doesn't provide PTRACE_GET_THREAD_AREA.
17315 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17317 * linux-m68k-low.c: Include <asm/ptrace.h>
17318 (ps_get_thread_area): Implement.
17320 2010-05-03 Doug Evans <dje@google.com>
17322 * event-loop.c (struct callback_event): New struct.
17323 (callback_list): New global.
17324 (append_callback_event, delete_callback_event): New functions.
17325 (process_callback): New function.
17326 (start_event_loop): Call it.
17327 * remote-utils.c (NOT_SCHEDULED): Define.
17328 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
17329 moved out of readchar.
17330 (readchar): Rewrite. Call reschedule before returning.
17331 (reset_readchar): New function.
17332 (remote_close): Call it.
17333 (process_remaining, reschedule): New functions.
17334 * server.h (callback_handler_func): New typedef.
17335 (append_callback_event, delete_callback_event): Declare.
17337 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17339 * proc-service.c (ps_pglobal_lookup): Use
17340 thread_db_look_up_one_symbol.
17341 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
17342 parameter. Use it instead of all_symbols_looked_up.
17343 * server.h (struct process_info) <all_symbols_looked_up>: Delete
17345 (all_symbols_looked_up): Don't declare.
17346 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
17347 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
17349 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
17350 Set all_symbols_looked_up here.
17351 (thread_db_look_up_one_symbol): New.
17352 (thread_db_get_tls_address): Adjust.
17353 (thread_db_load_search, try_thread_db_load_1): Always allocate the
17354 thread_db object on the heap, and tentatively set it in the
17356 (thread_db_init): Don't set all_symbols_looked_up here.
17357 * linux-low.h (thread_db_look_up_one_symbol): Declare.
17359 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17361 * linux-low.c (linux_kill, linux_detach): Adjust.
17362 (status_pending_p_callback): Remove redundant statement. Check
17363 for !TARGET_WAITIKIND_IGNORE, instead of
17364 TARGET_WAITKIND_STOPPED.
17365 (handle_tracepoints): Make sure LWP is locked. Adjust.
17366 (linux_wait_for_event_1): Adjust.
17367 (linux_cancel_breakpoints): New.
17368 (unsuspend_one_lwp): New.
17369 (unsuspend_all_lwps): New.
17370 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
17371 (send_sigstop_callback): Change return type to int, add new
17372 `except' parameter and handle it.
17373 (suspend_and_send_sigstop_callback): New.
17374 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
17375 pass them down. If SUSPEND, also increment the lwp's suspend
17377 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
17378 (need_step_over_p): Don't consider suspended LWPs.
17379 (start_step_over): Adjust.
17380 (proceed_one_lwp): Change return type to int, add new `except'
17381 parameter and handle it.
17382 (unsuspend_and_proceed_one_lwp): New.
17383 (proceed_all_lwps): Use find_inferior instead of
17385 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
17386 also decrement the suspend count of LWPs. Pass `except' down,
17387 instead of hacking its suspend count.
17388 (linux_pause_all): Add `freeze' parameter. Adjust.
17389 (linux_unpause_all): New.
17390 (linux_target_ops): Install linux_unpause_all.
17391 * server.c (handle_status): Adjust.
17392 * target.h (struct target_ops): New fields `unpause_all' and
17393 `cancel_breakpoints'. Add new parameter to `pause_all'.
17394 (pause_all): Add new `freeze' parameter.
17395 (unpause_all): New.
17396 (cancel_breakpoints): New.
17397 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
17398 cancel breakpoints.
17399 (cmd_qtstart): Pause threads.
17400 (stop_tracing): Pause threads, and cancel breakpoints.
17401 * win32-low.c (win32_target_ops): Adjust.
17403 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17405 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
17406 the inferior right away from here...
17407 (linux_wait_1): ... to here, and adjust to check the thread's
17408 last_resume_kind instead of the lwp's step or stop_expected flags.
17410 2010-05-02 Pedro Alves <pedro@codesourcery.com>
17412 * README: Use consistent `GDB' and `GDBserver' spellings.
17414 2010-05-02 Pedro Alves <pedro@codesourcery.com>
17416 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
17417 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
17418 (linux_detach_one_lwp): Assume the lwp is stopped.
17419 (any_thread_of): Delete.
17420 (linux_detach): Stop all lwps here. Don't blindly delete all
17422 (delete_lwp_callback): New.
17423 (linux_mourn): Delete all lwps of the process that is gone.
17424 (linux_wait_1): Don't delete the last lwp of the process here.
17425 * mem-break.h (mark_breakpoints_out): Declare.
17426 * mem-break.c (mark_breakpoints_out): New.
17427 (free_all_breakpoints): Use it.
17428 * server.c (handle_target_event): If the process is gone, mark
17430 * thread-db.c (struct thread_db) <create_bp>: New field.
17431 (thread_db_enable_reporting): Fix prototype. Store a thread event
17432 breakpoint reference in the thread_db struct.
17433 (thread_db_load_search): Clear the thread_db object.
17434 (try_thread_db_load_1): Ditto.
17435 (switch_to_process): New.
17436 (disable_thread_event_reporting): Use it.
17437 (remove_thread_event_breakpoints): New.
17438 (thread_db_detach, thread_db_mourn): Use it.
17440 2010-05-01 Pedro Alves <pedro@codesourcery.com>
17442 * linux-low.c (linux_enable_event_reporting): New.
17443 (linux_wait_for_event_1, handle_extended_wait): Use it.
17445 2010-04-30 Pedro Alves <pedro@codesourcery.com>
17447 * linux-low.c (linux_kill_one_lwp, linux_kill)
17448 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
17449 (send_sigstop): Take an lwp_info as parameter instead. Queue a
17450 SIGSTOP even if the LWP is stopped.
17451 (send_sigstop_callback): New.
17452 (stop_all_lwps): Use send_sigstop_callback instead.
17453 (linux_resume_one_thread): Adjust.
17454 (proceed_one_lwp): Still proceed an LWP that the client has
17455 requested to stop, if we haven't reported it as stopped yet. Make
17456 sure that LWPs the client want stopped, have a pending SIGSTOP.
17458 2010-04-26 Doug Evans <dje@google.com>
17460 * server.c (handle_general_set): Make static.
17462 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
17463 Print received char after testing for error/eof instead of before.
17464 (input_interrupt): Tweak comment.
17466 2010-04-23 Doug Evans <dje@google.com>
17468 * server.c (start_inferior): Print inferior argv if --debug.
17470 2010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
17472 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
17473 * nto-x86-low.c: Include server.h
17475 2010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
17477 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
17478 be consistent with other sources of this directory.
17479 (init_registers_amd64): Correct name of source file of this function
17482 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17484 * configure.srv (x86_64-*-mingw*): New configuration for Windows
17485 64-bit executables.
17487 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17489 * win32-i386-low.c: Add 64-bit support.
17490 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
17491 (init_registers_amd64): Declare.
17492 (mappings): Add 64-bit version of array.
17493 (init_windows_x86): New function.
17494 (the_low_target): Change init_arch field to init_windows_x86.
17496 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17498 * win32-low.c: Adapt to support also 64-bit architecture.
17499 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
17500 (get_image_name): Use SIZE_T type for local variable `done'.
17501 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
17502 (toolhelp_get_dll_name): Idem.
17503 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
17504 Use uintptr_t typecast to avoid warning.
17505 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
17506 (handle_exception): Use phex_nz to avoid warning.
17507 (win32_wait): Remove unused local variable `process'.
17509 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17511 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
17514 2010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
17516 * configure.ac: Use `ws2_32' library for srv_mingw.
17517 * configure: Regenerate.
17518 * gdbreplay.c: Include winsock2.h instead of winsock.h.
17519 * remote-utils.c: Likewise.
17521 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
17523 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
17524 if __x86_64__ is defined.
17526 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17528 * configure: Regenerate.
17530 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17532 * server.c (handle_query): Handle 'qGetTIBAddr' query.
17533 * target.h (target_ops): New get_tib_address field.
17534 * win32-low.h (win32_thread_info): Add thread_local_base field.
17535 * win32-low.c (child_add_thread): Add tlb argument.
17536 Set thread_local_base field to TLB.
17537 (get_child_debug_event): Adapt to child_add_thread change.
17538 (win32_get_tib_address): New function.
17539 (win32_target_ops): Set get_tib_address field to
17540 win32_get_tib_address.
17541 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
17543 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17545 * linux-low.c (linux_mourn): Also remove the process.
17546 * server.c (handle_target_event): Don't remove the process here.
17547 * nto-low.c (nto_mourn): New.
17548 (nto_target_ops): Install it.
17549 * spu-low.c (spu_mourn): New.
17550 (spu_target_ops): Install it.
17551 * win32-low.c (win32_mourn): New.
17552 (win32_target_ops): Install it.
17554 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17556 * server.h (buffer_xml_printf): Remove redundant `;'.
17558 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17560 * regcache.c (set_register_cache): Invalidate regcaches before
17561 changing the register cache layout.
17562 (regcache_invalidate_one): Allow a NULL regcache.
17563 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
17564 regcaches before changing the register cache layout or the target
17567 2010-04-12 H.J. Lu <hongjiu.lu@intel.com>
17569 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
17570 variable warning on Linux/x86-64.
17572 2010-04-11 Pedro Alves <pedro@codesourcery.com>
17574 GDBserver disconnected tracing support.
17576 * linux-low.c (linux_remove_process): Delete.
17577 (add_lwp): Don't set last_resume_kind here.
17578 (linux_kill): Use `mourn'.
17579 (linux_detach): Use `thread_db_detach', and `mourn'.
17580 (linux_mourn): New.
17581 (linux_attach_lwp_1): Adjust comment.
17582 (linux_attach): last_resume_kind moved the thread_info; adjust.
17583 (status_pending_p_callback): Adjust.
17584 (linux_wait_for_event_1): Adjust.
17585 (count_events_callback, select_singlestep_lwp_callback)
17586 (select_event_lwp_callback, cancel_breakpoints_callback)
17587 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
17588 (proceed_one_lwp): Adjust.
17589 (linux_async): Add debug output.
17590 (linux_thread_stopped): New.
17591 (linux_pause_all): New.
17592 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
17594 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
17595 (thread_db_free): Delete declaration.
17596 (thread_db_detach, thread_db_mourn): Declare.
17597 * thread-db.c (thread_db_init): Use thread_db_mourn.
17598 (thread_db_free): Delete, split in two.
17599 (disable_thread_event_reporting): New.
17600 (thread_db_detach): New.
17601 (thread_db_mourn): New.
17603 * server.h (struct thread_info) <last_resume_kind>: New field.
17604 <attached>: Add comment.
17605 <gdb_detached>: New field.
17606 (handler_func): Change return type to int.
17607 (handle_serial_event, handle_target_event): Ditto.
17608 (gdb_connected): Declare.
17610 (disconnected_tracing): Declare.
17611 (stop_tracing): Declare.
17613 * server.c (handle_query) <qSupported>: Report support for
17614 disconnected tracing.
17615 (queue_stop_reply_callback): Account for running threads.
17616 (gdb_wants_thread_stopped): New.
17617 (gdb_wants_all_threads_stopped): New.
17618 (gdb_reattached_process): New.
17619 (handle_status): Clear the `gdb_detached' flag of all processes.
17620 In all-stop, stop all threads.
17621 (main): Be sure to leave tfind mode. Handle disconnected tracing.
17622 (process_serial_event): If the remote connection breaks, or if an
17623 exit was forced with "monitor exit", force an event loop exit.
17624 Handle disconnected tracing on detach.
17625 (handle_serial_event): Adjust.
17626 (handle_target_event): If GDB isn't connected, forward events back
17627 to the inferior, unless the last process exited, in which case,
17628 exit gdbserver. Adjust interface.
17630 * remote-utils.c (remote_open): Don't block in accept. Instead
17631 register an event loop source on the listen socket file
17632 descriptor. Refactor bits into ...
17633 (listen_desc): ... this new global.
17634 (gdb_connected): ... this new function.
17635 (enable_async_notification): ... this new function.
17636 (handle_accept_event): ... this new function.
17637 (remote_close): Clear remote_desc.
17639 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
17641 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
17643 (mourn_inferior): Define.
17644 (target_process_qsupported): Avoid the dangling else problem.
17645 (thread_stopped): Define.
17646 (pause_all): Define.
17647 (target_waitstatus_to_string): Declare.
17648 * target.c (target_waitstatus_to_string): New.
17650 * tracepoint.c (tracing): Make extern.
17651 (disconnected_tracing): New.
17652 (stop_tracing): Make extern. Handle tracing stops due to GDB
17654 (cmd_qtdisconnected): New.
17655 (cmd_qtstatus): Report disconnected tracing status in trace reply.
17656 (handle_tracepoint_general_set): Handle QTDisconnected.
17658 * event-loop.c (event_handler_func): Change return type to int.
17659 (process_event): Bail out if the event handler wants the event
17661 (handle_file_event): Ditto.
17662 (start_event_loop): Bail out if the event handler wants the event
17665 * nto-low.c (nto_target_ops): Adjust.
17666 * spu-low.c (spu_wait): Don't remove the process here.
17667 (spu_target_ops): Adjust.
17668 * win32-low.c (win32_wait): Don't remove the process here.
17669 (win32_target_ops): Adjust.
17671 2010-04-11 Pedro Alves <pedro@codesourcery.com>
17673 * regcache.c (realloc_register_cache): Invalidate inferior's
17674 regcache before recreating it.
17676 2010-04-09 Pedro Alves <pedro@codesourcery.com>
17678 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
17680 2010-04-09 Stan Shebs <stan@codesourcery.com>
17681 Pedro Alves <pedro@codesourcery.com>
17683 * server.h (LONGEST): New.
17684 (struct thread_info) <while_stepping>: New field.
17685 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
17687 (initialize_tracepoint, handle_tracepoint_general_set)
17688 (handle_tracepoint_query, tracepoint_finished_step)
17689 (tracepoint_was_hit, release_while_stepping_state_list):
17690 (current_traceframe): Declare.
17691 * server.c (handle_general_set): Handle tracepoint packets.
17692 (read_memory): New.
17693 (write_memory): New.
17694 (handle_search_memory_1): Use read_memory.
17695 (handle_query): Report support for conditional tracepoints, trace
17696 state variables, and tracepoint sources. Handle tracepoint
17698 (main): Initialize the tracepoints module.
17699 (process_serial_event): Handle traceframe reads/writes.
17701 * linux-low.c (handle_tracepoints): New.
17702 (linux_wait_1): Call it.
17703 (linux_resume_one_lwp): Handle while-stepping.
17704 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
17705 (linux_target_ops): Install them.
17706 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
17708 * linux-x86-low.c (x86_supports_tracepoints): New.
17709 (the_low_target). Install it.
17711 * mem-break.h (delete_breakpoint): Declare.
17712 * mem-break.c (delete_breakpoint): Make external.
17714 * target.h (struct target_ops): Add `supports_tracepoints',
17715 `read_pc', and `write_pc' fields.
17716 (target_supports_tracepoints): Define.
17717 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
17720 * regcache.h (struct regcache) <registers_owned>: New field.
17721 (init_register_cache, regcache_cpy): Declare.
17722 (regcache_read_pc, regcache_write_pc): Declare.
17723 (register_cache_size): Declare.
17724 (supply_regblock): Declare.
17725 * regcache.c (init_register_cache): New.
17726 (new_register_cache): Use it.
17727 (regcache_cpy): New.
17728 (register_cache_size): New.
17729 (supply_regblock): New.
17730 (regcache_read_pc, regcache_write_pc): New.
17732 * tracepoint.c: New.
17734 * Makefile.in (OBS): Add tracepoint.o.
17735 (tracepoint.o): New rule.
17737 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
17739 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
17741 (i386-mmx.c): Likewise.
17742 (i386-mmx-linux.o): Likewise.
17743 (i386-mmx-linux.c): Likewise.
17745 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
17746 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
17747 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
17748 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
17750 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
17751 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
17752 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
17754 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
17756 * Makefile.in (clean): Updated.
17758 (i386-avx.c): Likewise.
17759 (i386-avx-linux.o): Likewise.
17760 (i386-avx-linux.c): Likewise.
17761 (amd64-avx.o): Likewise.
17762 (amd64-avx.c): Likewise.
17763 (amd64-avx-linux.o): Likewise.
17764 (amd64-avx-linux.c): Likewise.
17766 * configure.srv (srv_i386_regobj): Add i386-avx.o.
17767 (srv_i386_linux_regobj): Add i386-avx-linux.o.
17768 (srv_amd64_regobj): Add amd64-avx.o.
17769 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
17770 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
17771 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
17772 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
17773 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
17774 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
17775 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
17777 * i387-fp.c: Include "i386-xstate.h".
17779 (i387_cache_to_xsave): Likewise.
17780 (i387_xsave_to_cache): Likewise.
17781 (x86_xcr0): Likewise.
17783 * i387-fp.h (i387_cache_to_xsave): Likewise.
17784 (i387_xsave_to_cache): Likewise.
17785 (x86_xcr0): Likewise.
17787 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
17788 * linux-crisv32-low.c (target_regsets): Likewise.
17789 * linux-m68k-low.c (target_regsets): Likewise.
17790 * linux-mips-low.c (target_regsets): Likewise.
17791 * linux-ppc-low.c (target_regsets): Likewise.
17792 * linux-s390-low.c (target_regsets): Likewise.
17793 * linux-sh-low.c (target_regsets): Likewise.
17794 * linux-sparc-low.c (target_regsets): Likewise.
17795 * linux-xtensa-low.c (target_regsets): Likewise.
17797 * linux-low.c: Include <sys/uio.h>.
17798 (regsets_fetch_inferior_registers): Support nt_type.
17799 (regsets_store_inferior_registers): Likewise.
17800 (linux_process_qsupported): New.
17801 (linux_target_ops): Add linux_process_qsupported.
17803 * linux-low.h (regset_info): Add nt_type.
17804 (linux_target_ops): Add process_qsupported.
17806 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
17808 (init_registers_i386_avx_linux): New.
17809 (init_registers_amd64_avx_linux): Likewise.
17810 (xmltarget_i386_linux_no_xml): Likewise.
17811 (xmltarget_amd64_linux_no_xml): Likewise.
17812 (PTRACE_GETREGSET): Likewise.
17813 (PTRACE_SETREGSET): Likewise.
17814 (x86_fill_xstateregset): Likewise.
17815 (x86_store_xstateregset): Likewise.
17816 (use_xml): Likewise.
17817 (x86_linux_update_xmltarget): Likewise.
17818 (x86_linux_process_qsupported): Likewise.
17819 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
17820 (x86_arch_setup): Don't call init_registers_amd64_linux nor
17821 init_registers_i386_linux here. Call
17822 x86_linux_update_xmltarget.
17823 (the_low_target): Add x86_linux_process_qsupported.
17825 * server.c (handle_query): Call target_process_qsupported.
17827 * target.h (target_ops): Add process_qsupported.
17828 (target_process_qsupported): New.
17830 2010-04-03 Pedro Alves <pedro@codesourcery.com>
17832 * inferiors.c (add_thread): Set last_status kind to
17833 TARGET_WAITKIND_IGNORE.
17834 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
17835 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
17836 (linux_wait_1): Move `thread' local definition to block that uses
17837 it. Don't NULL initialize `event_child'.
17838 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
17839 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
17840 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
17842 2010-04-01 Pedro Alves <pedro@codesourcery.com>
17844 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
17845 an extended waitstatus, or by a watchpoint.
17846 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
17847 thread was stepping or has been stopped by a watchpoint.
17849 2010-04-01 Pedro Alves <pedro@codesourcery.com>
17851 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
17852 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
17853 of another, then delete the previous, and validate all
17855 (validate_inserted_breakpoint): New.
17856 (delete_disabled_breakpoints): New.
17857 (validate_breakpoints): New.
17858 (check_mem_read): Validate breakpoints before trusting their
17859 shadow. Delete disabled breakpoints.
17860 (check_mem_write): Validate breakpoints before trusting they
17861 should be inserted. Delete disabled breakpoints.
17862 * mem-break.h (validate_breakpoints):
17863 * server.c (handle_query): Validate breakpoints when we see a
17866 2010-04-01 Pedro Alves <pedro@codesourcery.com>
17868 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
17869 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
17870 if we could tell there's a GDB breakpoint at stop_pc.
17871 (need_step_over_p): Don't do a step over if we find a GDB
17872 breakpoint at the resume PC.
17874 * mem-break.c (struct raw_breakpoint): New.
17875 (enum bkpt_type): New type `gdb_breakpoint'.
17876 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
17877 fields. New field `raw'.
17878 (find_raw_breakpoint_at): New.
17879 (set_raw_breakpoint_at): Handle refcounting. Create a raw
17880 breakpoint instead.
17881 (set_breakpoint_at): Adjust.
17882 (delete_raw_breakpoint): New.
17883 (release_breakpoint): New.
17884 (delete_breakpoint): Rename to...
17885 (delete_breakpoint_1): ... this. Add proc parameter. Use
17886 release_breakpoint. Return ENOENT.
17887 (delete_breakpoint): Reimplement.
17888 (find_breakpoint_at): Delete.
17889 (find_gdb_breakpoint_at): New.
17890 (delete_breakpoint_at): Delete.
17891 (set_gdb_breakpoint_at): New.
17892 (delete_gdb_breakpoint_at): New.
17893 (gdb_breakpoint_here): New.
17894 (set_reinsert_breakpoint): Use release_breakpoint.
17895 (uninsert_breakpoint): Rename to ...
17896 (uninsert_raw_breakpoint): ... this.
17897 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
17898 (reinsert_raw_breakpoint): Change parameter type to
17900 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
17902 (check_breakpoints): Adjust. Use release_breakpoint.
17903 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
17904 (breakpoint_inserted_here): Ditto.
17905 (check_mem_read): Adjust to iterate over raw breakpoints instead.
17906 Don't trust the breakpoint's shadow if it is not inserted.
17907 (check_mem_write): Adjust to iterate over raw breakpoints instead.
17908 (delete_all_breakpoints): Adjust.
17909 (free_all_breakpoints): Mark all breakpoints as uninserted, and
17910 use delete_breakpoint_1.
17912 * mem-break.h (breakpoints_supported): Delete declaration.
17913 (set_gdb_breakpoint_at): Declare.
17914 (gdb_breakpoint_here): Declare.
17915 (delete_breakpoint_at): Delete.
17916 (delete_gdb_breakpoint_at): Declare.
17918 * server.h (struct raw_breakpoint): Forward declare.
17919 (struct process_info): New field `raw_breakpoints'.
17921 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
17924 2010-03-24 Pedro Alves <pedro@codesourcery.com>
17926 * linux-low.c (status_pending_p_callback): Fix comment.
17927 (linux_wait_for_event_1): Move most of the internal breakpoint
17928 handling from here...
17929 (linux_wait_1): ... to here.
17930 (count_events_callback): New.
17931 (select_singlestep_lwp_callback): New.
17932 (select_event_lwp_callback): New.
17933 (cancel_breakpoints_callback): New.
17934 (select_event_lwp): New.
17935 (linux_wait_1): Simplify internal breakpoint handling. Give equal
17936 priority to all LWPs that have had events that should be reported
17937 to the client. Cancel breakpoints when about to reporting the
17938 event to the client, not while stopping lwps. No longer cancel
17939 finished single-steps here.
17940 (cancel_finished_single_step): Delete.
17941 (cancel_finished_single_steps): Delete.
17943 2010-03-24 Pedro Alves <pedro@codesourcery.com>
17945 * mem-break.c (enum bkpt_type): New.
17946 (struct breakpoint): New field `type'.
17947 (set_breakpoint_at): Change return type to struct breakpoint
17948 pointer. Set type to `other_breakpoint' by default.
17949 (delete_breakpoint): Rewrite, supporting more than one breakpoint
17950 in the breakpoint list.
17951 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
17952 (reinsert_breakpoint): Rename to ...
17953 (reinsert_raw_breakpoint): ... this.
17954 (reinsert_breakpoints_at): Adjust.
17955 * mem-break.h (struct breakpoint): Declare.
17956 (set_breakpoint_at): Change return type to struct breakpoint
17959 2010-03-24 Pedro Alves <pedro@codesourcery.com>
17961 * server.c (handle_query): Assign, not compare.
17963 2010-03-24 Pedro Alves <pedro@codesourcery.com>
17965 Teach linux gdbserver to step-over-breakpoints.
17967 * linux-low.c (can_hardware_single_step): New.
17968 (supports_breakpoints): New.
17969 (handle_extended_wait): If stopping threads, read the stop pc of
17970 the new cloned LWP.
17972 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
17973 low target doesn't support retrieving the PC.
17974 (add_lwp): Set last_resume_kind to resume_continue.
17975 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
17976 (linux_attach): Don't clear stop_expected. Set the lwp's
17977 last_resume_kind to resume_stop.
17978 (linux_detach_one_lwp): Don't check for removed breakpoints.
17979 (check_removed_breakpoint): Delete.
17980 (status_pending_p): Rename to ...
17981 (status_pending_p_callback): ... this. Don't check for removed
17982 breakpoints. Don't consider threads that are stopped from GDB's
17984 (linux_wait_for_lwp): Always read the stop_pc here.
17985 (cancel_breakpoint): New.
17986 (step_over_bkpt): New global.
17987 (linux_wait_for_event_1): Implement stepping over breakpoints.
17988 (gdb_wants_lwp_stopped): New.
17989 (gdb_wants_all_stopped): New.
17990 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
17991 single-step traps here. Store the thread's last reported target
17993 (send_sigstop): Don't clear stop_expected. Always set it,
17995 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
17996 (cancel_finished_single_step): New.
17997 (cancel_finished_single_steps): New.
17998 (wait_for_sigstop): Don't cancel finished single-step traps here.
17999 (linux_resume_one_lwp): Don't check for removed breakpoints.
18000 Don't set `step' on non-hardware step archs.
18001 (linux_set_resume_request): Ignore resume_stop requests if already
18002 stopping or stopped. Set the lwp's last_resume_kind.
18003 (resume_status_pending_p): Don't check for removed breakpoints.
18004 (need_step_over_p): New.
18005 (start_step_over): New.
18006 (finish_step_over): New.
18007 (linux_resume_one_thread): Always queue a sigstop for resume_stop
18008 requests. Clear the thread's last reported target waitstatus.
18009 Don't use the `suspended' flag. Don't consider pending breakpoints.
18010 (linux_resume): Start a step-over if necessary.
18011 (proceed_one_lwp): New.
18012 (proceed_all_lwps): New.
18013 (unstop_all_lwps): New.
18014 * linux-low.h (struct lwp_info): Rewrite comment for the
18015 `suspended' flag. Add the `stop_pc' field. Delete the
18016 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
18017 Add `'last_resume_kind' and `need_step_over' fields.
18018 * inferiors.c (struct thread_info): Delete, moved elsewhere.
18019 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
18020 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
18021 (set_raw_breakpoint_at): New.
18022 (set_breakpoint_at): Rewrite to use it.
18023 (reinsert_breakpoint_handler): Delete.
18024 (set_reinsert_breakpoint): New.
18025 (reinsert_breakpoint_by_bp): Delete.
18026 (delete_reinsert_breakpoints): New.
18027 (uninsert_breakpoint): Rewrite.
18028 (uninsert_breakpoints_at): New.
18029 (reinsert_breakpoint): Rewrite.
18030 (reinsert_breakpoints_at): New.
18031 (check_breakpoints): Rewrite.
18032 (breakpoint_here): New.
18033 (breakpoint_inserted_here): New.
18034 (check_mem_read): Adjust.
18035 * mem-break.h (breakpoints_supported, breakpoint_here)
18036 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
18037 (reinsert_breakpoint_by_bp): Delete declaration.
18038 (delete_reinsert_breakpoints): Declare.
18039 (reinsert_breakpoint): Delete declaration.
18040 (reinsert_breakpoints_at): Declare.
18041 (uninsert_breakpoint): Delete declaration.
18042 (uninsert_breakpoints_at): Declare.
18043 (check_breakpoints): Adjust prototype.
18044 * server.h: Adjust include order.
18045 (struct thread_info): Declare here. Add a `last_status' field.
18047 2010-03-23 Michael Snyder <msnyder@vmware.com>
18049 * server.c (crc32): New function.
18050 (handle_query): Add handling for 'qCRC:' request.
18052 2010-03-23 Pedro Alves <pedro@codesourcery.com>
18054 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
18055 lwp had been stopped by a watchpoint.
18057 2010-03-16 Pedro Alves <pedro@codesourcery.com>
18059 * server.h (internal_error): Declare.
18060 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
18061 * utils.c (internal_error): New function.
18063 2010-03-15 Andreas Schwab <schwab@redhat.com>
18065 * configure.srv: Fix typo setting srv_regobj.
18067 2010-03-15 Pedro Alves <pedro@codesourcery.com>
18069 * linux-low.c (fetch_register): Avoid passing a non string literal
18071 (usr_store_inferior_registers): Ditto.
18073 2010-03-14 Pedro Alves <pedro@codesourcery.com>
18075 * linux-low.c (linux_write_memory): Bail out early if peeking
18078 2010-03-14 Pedro Alves <pedro@codesourcery.com>
18080 * linux-low.h (struct lwp_info): New fields
18081 `stopped_by_watchpoint' and `stopped_data_address'.
18082 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
18083 here, and cache them in the lwp object.
18084 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
18086 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
18088 (linux_stopped_by_watchpoint): Rewrite.
18089 (linux_stopped_data_address): Rewrite.
18091 2010-03-06 Simo Melenius <simo.melenius@iki.fi>
18093 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
18094 switching the current inferior, not before.
18096 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
18098 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
18099 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
18100 i386-linux.c and amd64-linux.c.
18101 (reg-i386.o): Removed.
18102 (reg-i386.c): Likewise.
18103 (reg-i386-linux.o): Likewise.
18104 (reg-i386-linux.c): Likewise.
18105 (reg-x86-64.o): Likewise.
18106 (reg-x86-64.c): Likewise.
18107 (reg-x86-64-linux.o): Likewise.
18108 (reg-x86-64-linux.c): Likewise.
18110 (i386.c): Likewise.
18111 (i386-linux.o): Likewise.
18112 (i386-linux.c): Likewise.
18113 (amd64.o): Likewise.
18114 (amd64.c): Likewise.
18115 (amd64-linux.o): Likewise.
18116 (amd64-linux.c): Likewise.
18118 * configure.srv (srv_i386_regobj): New.
18119 (srv_i386_linux_regobj): Likewise.
18120 (srv_amd64_regobj): Likewise.
18121 (srv_amd64_linux_regobj): Likewise.
18122 (srv_i386_32bit_xmlfiles): Likewise.
18123 (srv_i386_64bit_xmlfiles): Likewise.
18124 (srv_i386_xmlfiles): Likewise.
18125 (srv_amd64_xmlfiles): Likewise.
18126 (srv_i386_linux_xmlfiles): Likewise.
18127 (srv_amd64_linux_xmlfiles): Likewise.
18128 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
18129 srv_xmlfiles to $srv_i386_xmlfiles.
18130 (i[34567]86-*-mingw32ce*): Likewise.
18131 (i[34567]86-*-mingw*): Likewise.
18132 (i[34567]86-*-nto*): Likewise.
18133 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
18134 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
18135 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
18136 (x86_64-*-linux*): Likewise.
18138 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
18139 (init_registers_amd64_linux): New.
18140 (x86_arch_setup): Replace init_registers_x86_64_linux with
18141 init_registers_amd64_linux.
18143 2010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
18145 * configure.ac: Check for libdl. If it is not available link against
18146 static libthread_db.
18147 * configure: Regenerate.
18149 2010-02-22 Pedro Alves <pedro@codesourcery.com>
18153 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
18154 handing a read watchpoint.
18155 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
18157 2010-02-12 Doug Evans <dje@google.com>
18159 * linux-low.c (linux_supports_tracefork_flag): Document.
18160 (linux_look_up_symbols): Add comment.
18162 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
18164 * regcache.c (supply_register): Clear regcache if buf is NULL.
18166 2010-02-02 Nicolas Roche <roche@sourceware.org>
18167 Joel Brobecker <brobecker@adacore.com>
18169 * inferiors.c (find_inferior): Add function documentation.
18170 (unloaded_dll): Handle the case where the unloaded dll has not
18171 been previously registered in the dll list.
18173 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
18175 * linux-arm-low.c (thumb_breakpoint_len): Delete.
18176 (thumb2_breakpoint): New.
18177 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
18179 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18181 * linux-low.c (get_stop_pc): Check for SIGTRAP.
18182 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
18185 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18187 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
18189 2010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
18191 * linux-s390-low.c (s390_collect_ptrace_register)
18192 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
18194 2010-01-21 Doug Evans <dje@google.com>
18196 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
18197 (PTRACE_ARG4_TYPE): New macro.
18198 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
18199 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
18200 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
18201 (usr_store_inferior_registers): Ditto.
18202 (linux_read_memory, linux_write_memory): Ditto.
18203 (linux_test_for_tracefork): Ditto.
18205 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
18206 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
18208 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18210 * proc-service.c (ps_lgetregs): Don't refetch registers from the
18213 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18215 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
18216 prototype to take a regcache. Adjust.
18218 2010-01-20 Pedro Alves <pedro@codesourcery.com>
18220 * regcache.h (struct thread_info): Forward declare.
18221 (struct regcache): New.
18222 (new_register_cache): Adjust prototype.
18223 (get_thread_regcache): Declare.
18224 (free_register_cache): Adjust prototype.
18225 (registers_to_string, registers_from_string): Ditto.
18226 (supply_register, supply_register_by_name, collect_register)
18227 (collect_register_as_string, collect_register_by_name): Ditto.
18228 * regcache.c (struct inferior_regcache_data): Delete.
18229 (get_regcache): Rename to ...
18230 (get_thread_regcache): ... this. Adjust. Switch inferior before
18231 fetching registers.
18232 (regcache_invalidate_one): Adjust.
18233 (regcache_invalidate): Fix prototype.
18234 (new_register_cache): Return the new register cache.
18235 (free_register_cache): Change prototype.
18236 (realloc_register_cache): Adjust.
18237 (registers_to_string): Change prototype to take a regcache. Adjust.
18238 (registers_from_string): Ditto.
18239 (register_data): Ditto.
18240 (supply_register): Ditto.
18241 (supply_register_by_name): Ditto.
18242 (collect_register): Ditto.
18243 (collect_register_as_string): Ditto.
18244 (collect_register_by_name): Ditto.
18245 * server.c (process_serial_event): Adjust.
18246 * linux-low.h (regset_fill_func, regset_store_func): Change
18248 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
18250 * linux-low.c (get_stop_pc): Adjust.
18251 (check_removed_breakpoint): Adjust.
18252 (linux_wait_for_event): Adjust.
18253 (linux_resume_one_lwp): Adjust.
18254 (fetch_register): Add regcache parameter. Adjust.
18255 (usr_store_inferior_registers): Ditto.
18256 (regsets_fetch_inferior_registers): Ditto.
18257 (regsets_store_inferior_registers): Ditto.
18258 (linux_fetch_registers, linux_store_registers): Ditto.
18259 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
18261 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
18263 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
18264 prototype to take a regcache.
18265 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
18266 * remote-utils.c (convert_ascii_to_int, outreg)
18267 (prepare_resume_reply): Change prototype to take a regcache.
18269 * target.h (struct target_ops) <fetch_registers, store_registers>:
18270 Change prototype to take a regcache.
18271 (fetch_inferior_registers, store_inferior_registers): Change
18272 prototype to take a regcache. Adjust.
18273 * proc-service.c (ps_lgetregs): Adjust.
18274 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
18275 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
18276 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
18277 take a regcache. Adjust.
18278 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
18279 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
18280 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
18281 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
18282 * linux-cris-low.c (cris_get_pc, cris_set_pc)
18283 (cris_cannot_fetch_register):
18284 (cris_breakpoint_at): Change prototype to take a regcache.
18286 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
18287 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
18288 to take a regcache. Adjust.
18289 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
18291 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
18292 take a regcache. Adjust.
18293 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
18294 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
18295 (m68k_set_pc): Change prototype to take a regcache. Adjust.
18296 * linux-mips-low.c (mips_get_pc):
18297 (mips_set_pc): Change prototype to take a regcache. Adjust.
18298 (mips_reinsert_addr): Adjust.
18299 (mips_collect_register): Change prototype to take a regcache.
18301 (mips_supply_register):
18302 (mips_collect_register_32bit, mips_supply_register_32bit)
18303 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
18304 (mips_store_fpregset): Ditto.
18305 * linux-ppc-low.c (ppc_supply_ptrace_register)
18306 (ppc_supply_ptrace_register): Ditto.
18307 (parse_spufs_run): Adjust.
18308 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
18309 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
18310 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
18311 take a regcache. Adjust.
18312 * linux-s390-low.c (s390_collect_ptrace_register)
18313 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
18314 (s390_set_pc): Change prototype to take a regcache. Adjust.
18315 (s390_arch_setup): Adjust.
18316 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
18317 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
18318 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
18319 (sparc_fill_gregset, sparc_store_gregset_from_stack)
18320 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
18322 (sparc_breakpoint_at): Adjust.
18323 * linux-xtensa-low.c (xtensa_fill_gregset):
18324 (xtensa_store_gregset):
18325 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
18326 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
18327 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
18328 prototype to take a regcache. Adjust.
18329 * win32-arm-low.c (arm_fetch_inferior_register)
18330 (arm_store_inferior_register): Change prototype to take a
18332 * win32-i386-low.c (i386_fetch_inferior_register)
18333 (i386_store_inferior_register): Change prototype to take a
18335 * win32-low.c (child_fetch_inferior_registers)
18336 (child_store_inferior_registers): Change prototype to take a
18338 (win32_wait): Adjust.
18339 (win32_fetch_inferior_registers): Change prototype to take a
18341 (win32_store_inferior_registers): Adjust.
18342 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
18343 store_inferior_register>: Change prototype to take a regcache.
18345 2010-01-20 Doug Evans <dje@google.com>
18347 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
18349 (linux_wait_for_event1, linux_init_signals): Ditto.
18350 (W_STOPCODE): Provide definition if missing.
18352 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
18354 * linux-low.c (linux_core_of_thread): New.
18355 (compare_ints, show_process, list_threads): New.
18356 (linux_qxfer_osdata): Report threads and cores.
18357 (linux_target_op): Register linux_core_of_thread.
18358 * remote-utils.c (prepare_resume_reply): Report the core.
18359 (buffer_xml_printf): Support %d specifier.
18360 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
18362 (handle_query): Handle qXfer:threads. Announce availability
18364 * target.h (struct target_ops): New field core_of_thread.
18366 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
18368 * Makefile.in (clean): Remove new generated files.
18369 (reg-s390.o, reg-s390.c): Remove rules.
18370 (reg-s390x.o, reg-s390x.c): Likewise.
18371 (s390-linux32.o, s390-linux32.c): Add rules.
18372 (s390-linux64.o, s390-linux64.c): Likewise.
18373 (s390x-linux64.o, s390x-linux64.c): Likewise.
18374 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
18375 * linux-s390-low.c: Include <elf.h>.
18376 (HWCAP_S390_HIGH_GPRS): Define if undefined.
18377 (init_registers_s390): Remove prototype.
18378 (init_registers_s390x): Likewise.
18379 (init_registers_s390_linux32): Add prototype.
18380 (init_registers_s390_linux64): Likewise.
18381 (init_registers_s390x_linux64): Likewise.
18382 (s390_num_regs_3264): New define.
18383 (s390_regmap_3264): New global variable.
18384 (s390_cannot_fetch_register): Remove obsolete check.
18385 (s390_cannot_store_register): Likewise.
18386 (s390_collect_ptrace_register): Handle upper/lower register halves.
18387 (s390_supply_ptrace_register): Likewise.
18388 (s390_fill_gregset): Update to register number changes.
18389 (s390_get_hwcap): New routine.
18390 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
18391 Install appropriate regmap and register set.
18393 2010-01-01 Joel Brobecker <brobecker@adacore.com>
18395 * server.c (gdbserver_version): Update copyright year to 2010.
18396 * gdbreplay.c (gdbreplay_version): Likewise.
18398 2009-12-28 Doug Evans <dje@google.com>
18400 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
18401 elf/external.h. Include <elf.h> instead but only if necessary.
18403 2009-12-28 Pedro Alves <pedro@codesourcery.com>
18405 * linux-low.c (linux_remove_process): Remove `detaching'
18406 parameter. Don't release/detach from thread_db here.
18407 (linux_kill): Release/detach from thread_db here, ...
18408 (linux_detach): ... and here, before actually detaching.
18409 (linux_wait_1): ... and here, when a process exits.
18410 * thread-db.c (any_thread_of): New.
18411 (thread_db_free): Switch the current inferior to a thread of the
18414 2009-12-21 Doug Evans <dje@google.com>
18416 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
18418 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
18419 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
18420 warning ifndef __NR_tkill. Move setting of errno there too.
18421 Delete unnecessary resetting of errno after syscall.
18422 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
18424 * configure.ac: Check for dladdr.
18425 * config.in: Regenerate.
18426 * configure: Regenerate.
18427 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
18428 (try_thread_db_load): Update.
18430 * linux-low.c (my_waitpid): Delete unnecessary prototype.
18432 2009-12-18 Doug Evans <dje@google.com>
18434 * event-loop.c: Include unistd.h if it exists.
18436 * linux-low.c (my_waitpid): Move definition away from being in
18437 between linux_tracefork_child/linux_test_for_tracefork.
18439 * gdb_proc_service.h (psaddr_t): Fix type.
18440 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
18441 signature to match glibc.
18443 2009-12-16 Doug Evans <dje@google.com>
18445 * linux-low.c (linux_read_memory): Fix argument to read.
18447 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18449 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
18450 events, don't leave current_inferior pointing at null.
18452 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18454 * win32-low.c (LOG): Delete.
18455 (OUTMSG): Output to stderr.
18456 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
18457 on compile time LOG macro.
18458 (win32_wait): Fix debug output.
18460 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18462 * win32-low.c (win32_add_one_solib): If the dll name is
18463 "ntdll.dll", prepend the system directory to the dll path.
18465 2009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
18467 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
18469 2009-11-17 Nathan Sidwell <nathan@codesourcery.com>
18470 Vladimir Prus <vladimir@codesourcery.com>
18472 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
18473 * configure.ac: Check for __mcoldfire__ and set
18474 gdb_cv_m68k_is_coldfire.
18475 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
18476 reg-cf.o and reg-m68k.o.
18477 * configure: Regenerated.
18479 2009-11-16 Pedro Alves <pedro@codesourcery.com>
18481 * linux-low.c (linux_remove_process): Add `detaching' parameter.
18482 Pass it to thread_db_free.
18483 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
18484 proper `detaching' argument to linux_remove_process.
18485 * linux-low.h (thread_db_free): Add `detaching' parameter.
18486 * thread-db.c (thread_db_init): Pass false as `detaching' argument
18488 (thread_db_free): Add `detaching' parameter. Only
18489 call td_ta_clear_event if detaching from process.
18491 2009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
18493 * thread-db.c (thread_db_free): Fix typo.
18495 2009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
18498 * thread-db.c (thread_db_free): Call td_ta_clear_event.
18500 2009-11-03 Nathan Sidwell <nathan@codesourcery.com>
18502 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
18503 with an i686 compiler.
18504 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
18506 * configure: Rebuilt.
18508 2009-10-29 Sandra Loosemore <sandra@codesourcery.com>
18512 * server.c (handle_search_memory_1): Correct read_addr initialization
18513 in loop for searching subsequent chunks.
18515 2009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
18517 * configure.ac: New --with-libthread-db option.
18518 * thread-db.c: Allow direct dependence on libthread_db.
18519 (thread_db_free): Adjust.
18520 * config.in: Regenerate.
18521 * configure: Likewise.
18523 2009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
18526 * thread-db.c (attach_thread): New function.
18527 (maybe_attach_thread): Return success/failure.
18528 (find_new_threads_callback): Adjust.
18529 (thread_db_find_new_threads): Loop until no new threads.
18531 2009-10-13 Pedro Alves <pedro@codesourcery.com>
18533 * proc-service.c (ps_lgetregs): Formatting.
18535 2009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
18537 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
18538 * configure.ac: Adjust.
18539 * linux-low.h (struct process_info_private): Move members to struct
18541 (thread_db_free, thread_db_handle_monitor_command): New prototype.
18542 * linux-low.c (linux_remove_process): Adjust.
18543 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
18544 * server.c (handle_query): Move code ...
18545 (handle_monitor_command): ... here. New function.
18546 * target.h (struct target_ops): New member.
18547 * thread-db.c (struct thread_db): New.
18548 (libthread_db_search_path): New variable.
18549 (thread_db_create_event, thread_db_enable_reporting)
18550 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
18551 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
18552 (try_thread_db_load_1, dladdr_to_soname): New functions.
18553 (try_thread_db_load, thread_db_load_search): New functions.
18554 (thread_db_init): Search for libthread_db.
18555 (thread_db_free): New function.
18556 (thread_db_handle_monitor_command): Likewise.
18557 * config.in: Regenerate.
18558 * configure: Regenerate.
18560 2009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
18562 * spu-low.c (spu_kill): Wait for inferior to terminate.
18563 Call clear_inferiors.
18564 (spu_detach): Call clear_inferiors.
18566 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18568 * aclocal.m4: Regenerate.
18569 * config.in: Likewise.
18570 * configure: Likewise.
18572 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18574 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
18575 (parse_spufs_run): New function.
18576 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
18577 (ppc_breakpoint_at): Handle SPU breakpoints.
18579 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18581 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
18582 (SPUFS_MAGIC): Define.
18583 (spu_enumerate_spu_ids): New function.
18584 (linux_qxfer_spu): New function.
18585 (linux_target_ops): Install linux_qxfer_spu.
18587 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18589 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
18590 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
18591 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
18592 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
18593 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
18594 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
18595 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
18596 (init_registers_powerpc_cell32l): Add prototype.
18597 (init_registers_powerpc_cell64l): Likewise.
18598 (ppc_arch_setup): Detect Cell/B.E. architecture.
18600 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18602 * Makefile.in (datarootdir): New variable.
18604 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18606 * linux-low.c (linux_write_memory): Update debugging output.
18607 * Makefile.in (clean): Add new descriptions.
18608 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
18609 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
18610 * configure.srv: Add new files for arm*-*-linux*.
18611 * linux-arm-low.c: Add new declarations.
18612 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
18613 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
18614 (HWCAP_VFPv3D16): New.
18615 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
18616 instead of __IWMMXT__.
18617 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
18618 (arm_arch_setup): New.
18619 (target_regsets): Remove #ifdef. Add VFP regset.
18620 (the_low_target): Use arm_arch_setup.
18622 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18624 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
18625 the main thread again.
18627 2009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
18629 Adding Neutrino gdbserver.
18630 * configure: Regenerated.
18631 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
18632 * configure.srv (i[34567]86-*-nto*): New target.
18633 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
18634 * remote-utils.c [__QNX__]: Include sys/iomgr.h
18635 (nto_comctrl) [__QNX__]: New function.
18636 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
18638 2009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
18640 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
18643 2009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
18644 Pedro Alves <pedro@codesourcery.com>
18646 * win32-i386-low.c (i386_get_thread_context): Handle systems that
18647 don't support CONTEXT_EXTENDED_REGISTERS.
18648 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
18649 (the_low_target): Install them.
18650 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
18651 failing with ERROR_PIPE_NOT_CONNECTED.
18653 2009-06-30 Doug Evans <dje@google.com>
18654 Pierre Muller <muller@ics.u-strasbg.fr>
18656 Add h/w watchpoint support to x86-linux, win32-i386.
18657 * Makefile.in (SFILES): Add i386-low.c
18658 (i386_low_h): Define.
18659 (i386-low.o): Add dependencies.
18660 (linux-x86-low.o): Add i386-low.h dependency.
18661 (win32-i386-low.o): Ditto.
18662 * i386-low.c: New file.
18663 * i386-low.h: New file.
18664 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
18665 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
18666 * linux-low.c (linux_add_process): Initialize arch_private.
18667 (linux_remove_process): Free arch_private.
18668 (add_lwp): Initialize arch_private.
18669 (delete_lwp): Free arch_private.
18670 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
18672 * linux-low.h (process_info_private): New member arch_private.
18673 (lwp_info): New member arch_private.
18674 (linux_target_ops): New members new_process, new_thread,
18676 (ptid_of): New macro.
18677 * linux-x86-low.c: Include stddef.h, i386-low.h.
18678 (arch_process_info): New struct.
18679 (arch_lwp_info): New struct.
18680 (x86_linux_dr_get, x86_linux_dr_set): New functions.
18681 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18682 (i386_dr_low_get_status): New function.
18683 (x86_insert_point, x86_remove_point): New functions.
18684 (x86_stopped_by_watchpoint): New function.
18685 (x86_stopped_data_address): New function.
18686 (x86_linux_new_process, x86_linux_new_thread): New functions.
18687 (x86_linux_prepare_to_resume): New function.
18688 (the_low_target): Add entries for insert_point, remove_point,
18689 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
18691 * server.c (debug_hw_points): New global.
18692 (monitor_show_help): Document set debug-hw-points.
18693 (handle_query): Process "set debug-hw-points".
18694 * server.h (debug_hw_points): Declare.
18695 (paddress): Declare.
18696 * utils.c (NUMCELLS, CELLSIZE): New macros.
18697 (get_sell, xsnprintf, paddress): New functions.
18698 * win32-arm-low.c (the_low_target): Add entries for insert_point,
18699 remove_point, stopped_by_watchpoint, stopped_data_address.
18700 * win32-i386-low.c: Include i386-low.h.
18701 (debug_reg_state): Replaces dr.
18702 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18703 (i386_dr_low_get_status): New function.
18704 (i386_insert_point, i386_remove_point): New functions.
18705 (i386_stopped_by_watchpoint): New function.
18706 (i386_stopped_data_address): New function.
18707 (i386_initial_stuff): Update.
18708 (get_thread_context,set_thread_context,i386_thread_added): Update.
18709 (the_low_target): Add entries for insert_point,
18710 remove_point, stopped_by_watchpoint, stopped_data_address.
18711 * win32-low.c (win32_insert_watchpoint): New function.
18712 (win32_remove_watchpoint): New function.
18713 (win32_stopped_by_watchpoint): New function.
18714 (win32_stopped_data_address): New function.
18715 (win32_target_ops): Add entries for insert_watchpoint,
18716 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
18717 * win32-low.h (win32_target_ops): New members insert_point,
18718 remove_point, stopped_by_watchpoint, stopped_data_address.
18720 2009-06-25 Pedro Alves <pedro@codesourcery.com>
18722 * server.c (process_serial_event): Re-return unsupported, not
18723 error, if the type isn't recognized. Re-allow supporting only
18724 insert or remove packets. Also call require_running for
18725 breakpoints. Add missing break statement to default case. Tidy.
18726 * target.h (struct target_ops): Rename insert_watchpoint to
18727 insert_point, and remove_watchpoint to remove_point.
18729 * linux-low.h (struct linux_target_ops): Likewise.
18730 * linux-low.c (linux_insert_watchpoint): Rename to ...
18731 (linux_insert_point): ... this. Adjust.
18732 (linux_remove_watchpoint): Rename to ...
18733 (linux_remove_point): ... this. Adjust.
18734 (linux_target_ops): Adjust.
18735 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
18736 (cris_insert_point): ... this.
18737 (cris_remove_watchpoint): Rename to ...
18738 (cris_remove_point): ... this.
18739 (the_low_target): Adjust.
18741 2009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
18743 * server.c (handle_v_kill): Pass signal_pid to
18744 kill_inferior if multi_process is zero.
18746 2009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
18748 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
18749 * target.h (target_ops): Comment for *_watchpoint to make it clear
18750 the functions can get types '0' and '1'.
18752 2009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
18754 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
18755 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
18756 * regcache.c (get_regcache): Likewise.
18757 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
18758 * win32-low.c (child_fetch_inferior_registers): Remove check for
18761 2009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
18762 Pedro Alves <pedro@codesourcery.com>
18764 * target.h (struct target_ops) <supports_multi_process>: New
18766 (target_supports_multi_process): New.
18767 * server.c (handle_query): Even if GDB reports support, only
18768 enable multi-process if the target also supports it. Report
18769 multi-process support only if the target backend supports it.
18770 * linux-low.c (linux_supports_multi_process): New function.
18771 (linux_target_ops): Install it as target_supports_multi_process
18774 2009-05-24 Doug Evans <dje@google.com>
18776 Global renaming of find_thread_pid to find_thread_ptid.
18777 * server.h (find_thread_ptid): Renamed from find_thread_pid.
18778 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
18779 All callers updated.
18781 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
18782 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
18785 * linux-low.c (get_stop_pc): Print pc if debug_threads.
18786 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
18787 (linux_resume_one_lwp): Ditto.
18789 2009-05-23 Doug Evans <dje@google.com>
18791 * linux-low.c (linux_resume_one_lwp): Change type of first arg
18792 from struct inferior_list_entry * to struct lwp_info *.
18793 All callers updated.
18795 2009-05-13 Doug Evans <dje@google.com>
18797 * linux-x86-low.c: Don't include assert.h.
18798 (x86_siginfo_fixup): Use fatal, not assert.
18799 (x86_arch_setup): Fix comment.
18801 2009-05-12 Doug Evans <dje@google.com>
18803 Biarch support for i386/amd64 gdbserver.
18804 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
18805 Add linux-x86-low.c.
18806 (linux-i386-low.o, linux-x86-64-low.o): Delete.
18807 (linux-x86-low.o): Add.
18808 * linux-x86-64-low.c: Delete.
18809 * linux-i386-low.c: Delete.
18810 * linux-x86-low.c: New file.
18811 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
18813 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
18815 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
18816 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
18817 (linux_child_pid_to_exec_file): New function.
18818 (elf_64_header_p, elf_64_file_p): New functions.
18819 (siginfo_fixup): New function.
18820 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
18821 give target a chance to convert layout.
18822 * linux-low.h (linux_target_ops): New member siginfo_fixup.
18823 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
18825 2009-05-07 Doug Evans <dje@google.com>
18827 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
18828 (regsets_store_inferior_registers): Ditto.
18830 2009-05-06 Pedro Alves <pedro@codesourcery.com>
18834 * linux-low.c (must_set_ptrace_flags): Delete.
18835 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
18837 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
18838 `lwp->must_set_ptrace_flags' instead.
18839 (linux_wait_for_event_1): Set ptrace options here.
18840 (linux_wait_1): ... not here.
18842 2009-04-30 Doug Evans <dje@google.com>
18844 * inferiors.c (started_inferior_callback): New function.
18845 (attached_inferior_callback): New function.
18846 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
18847 * server.c (print_started_pid, print_attached_pid): New functions.
18848 (detach_or_kill_for_exit): New function.
18849 (main): Call it instead of for_each_inferior (kill_inferior_callback).
18850 * server.h (have_started_inferiors_p): Declare.
18851 (have_attached_inferiors_p): Declare.
18853 * inferiors.c (remove_process): Fix memory leak, free process.
18854 * linux-low.c (linux_remove_process): New function.
18855 (linux_kill): Call it instead of remove_process.
18856 (linux_detach, linux_wait_1): Ditto.
18858 2009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
18860 * configure.srv: Add x86 Windows CE target.
18862 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
18864 * inferiors.c (get_thread_process): Make global.
18865 * server.h (get_thread_process): Add prototype.
18866 * thread-db.c (find_one_thread): Use get_thread_process
18867 instead of current_process.
18868 (thread_db_get_tls_address): Do not crash if called when
18869 thread layer is not yet initialized.
18871 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
18873 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
18874 * spu-low.c (current_tid): Rename to ...
18875 (current_ptid): ... this.
18876 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
18877 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
18878 ptid_get_lwp (current_ptid) instead of current_tid.
18879 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
18880 instead of current_tid. Use find_process_pid to verify pid
18881 argument is valid. Pass proper argument to remove_process.
18882 (spu_thread_alive): Compare current_ptid instead of current_tid.
18883 (spu_resume): Likewise.
18885 2009-04-02 Pedro Alves <pedro@codesourcery.com>
18887 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
18890 2009-04-01 Pedro Alves <pedro@codesourcery.com>
18892 Implement the multiprocess extensions, and add linux multiprocess
18895 * server.h (ULONGEST): Declare.
18896 (struct ptid, ptid_t): New.
18897 (minus_one_ptid, null_ptid): Declare.
18898 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
18899 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
18900 (struct inferior_list_entry): Change `id' type from unsigned from
18902 (struct sym_cache, struct breakpoint, struct
18903 process_info_private): Forward declare.
18904 (struct process_info): Declare.
18905 (current_process): Declare.
18906 (all_processes): Declare.
18907 (initialize_inferiors): Declare.
18908 (add_thread): Adjust to use ptid_t.
18909 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
18910 (add_process, remove_process, find_thread_pid): Declare.
18911 (find_inferior_id): Adjust to use ptid_t.
18912 (cont_thread, general_thread, step_thread): Change type to ptid_t.
18913 (multi_process): Declare.
18914 (push_event): Adjust to use ptid_t.
18915 (read_ptid, write_ptid): Declare.
18916 (prepare_resume_reply): Adjust to use ptid_t.
18917 (clear_symbol_cache): Declare.
18918 * inferiors.c (all_processes): New.
18919 (null_ptid, minus_one_ptid): New.
18920 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
18921 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
18922 (add_thread): Change unsigned long to ptid. Remove gdb_id
18924 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
18925 (gdb_id_to_thread): Rename to ...
18926 (find_thread_pid): ... this. Change unsigned long to ptid.
18927 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
18928 (loaded_dll, pull_pid_from_list): Adjust.
18929 (add_process, remove_process, find_process_pid)
18930 (get_thread_process, current_process, initialize_inferiors): New.
18931 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
18932 (struct target_waitstatus) <related_pid>: Ditto.
18933 (struct target_ops) <kill, detach>: Add `pid' argument. Change
18934 return type to int.
18935 (struct target_ops) <join>: Add `pid' argument.
18936 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
18937 (struct target_ops) <wait>: Add `ptid' field. Change return type
18939 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
18940 (mywait): Add `ptid' argument. Change return type to ptid_t.
18941 (target_pid_to_str): Declare.
18942 * target.c (set_desired_inferior): Adjust to use ptids.
18943 (mywait): Add new `ptid' argument. Adjust.
18944 (target_pid_to_str): New.
18945 * mem-break.h (free_all_breakpoints): Declare.
18946 * mem-break.c (breakpoints): Delelete.
18947 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
18948 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
18949 to use per-process breakpoint list.
18950 (free_all_breakpoints): New.
18951 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
18952 (symbol_cache, all_symbols_looked_up): Delete.
18954 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
18956 (prepare_resume_reply): Change ptid argument's type from unsigned
18957 long to ptid_t. Adjust. Implement W;process and X;process.
18958 (free_sym_cache, clear_symbol_cache): New.
18959 (look_up_one_symbol): Adjust to per-process symbol cache. *
18960 * server.c (cont_thread, general_thread, step_thread): Change type
18962 (attached): Delete.
18963 (multi_process): New.
18964 (last_ptid): Change type to ptid_t.
18965 (struct vstop_notif) <ptid>: Change type to ptid_t.
18966 (queue_stop_reply, push_event): Change `ptid' argument's type to
18968 (discard_queued_stop_replies): Add `pid' argument.
18969 (start_inferior): Adjust to use ptids. Adjust to mywait interface
18970 changes. Don't reference the `attached' global.
18971 (attach_inferior): Adjust to mywait interface changes.
18972 (handle_query): Adjust to use ptids. Parse GDB's qSupported
18973 features. Handle and report "multiprocess+". Handle
18975 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
18977 (handle_v_kill): New.
18978 (handle_v_stopped): Adjust to use target_pid_to_str.
18979 (handle_v_requests): Allow multiple attaches and runs when
18980 multiprocess extensions are in effect. Handle "vKill".
18981 (myresume): Adjust to use ptids.
18982 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
18983 (handle_status): Adjust to discard_queued_stop_replies interface
18985 (first_thread_of, kill_inferior_callback)
18986 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
18987 (main): Call initialize_inferiors. Adjust to use ptids, killing
18988 and detaching from all inferiors. Handle multiprocess packet
18990 * linux-low.h: Include gdb_proc_service.h.
18991 (struct process_info_private): New.
18992 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
18993 <lwpid_of>: Use ptid_get_lwp.
18994 (get_lwp_thread): Adjust.
18995 (struct lwp_info): Add `dead' member.
18996 (find_lwp_pid): Declare.
18997 * linux-low.c (thread_db_active): Delete.
18998 (new_inferior): Adjust comment.
18999 (inferior_pid): Delete.
19000 (linux_add_process): New.
19001 (handle_extended_wait): Adjust.
19002 (add_lwp): Change unsigned long to ptid.
19003 (linux_create_inferior): Add process to processes table. Adjust
19004 to use ptids. Don't set new_inferior here.
19005 (linux_attach_lwp): Rename to ...
19006 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
19007 it. Adjust to use ptids.
19008 (linux_attach_lwp): New.
19009 (linux_attach): Add process to processes table. Don't set
19011 (struct counter): New.
19012 (second_thread_of_pid_p, last_thread_of_process_p): New.
19013 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
19014 multiple processes.
19015 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
19016 processes. Remove process from process table.
19017 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
19018 to multiple processes.
19019 (any_thread_of): New.
19020 (linux_detach): Add `pid' argument, and handle it. Remove process
19021 from processes table.
19022 (linux_join): Add `pid' argument. Handle it.
19023 (linux_thread_alive): Change unsighed long argument to ptid_t.
19024 Consider dead lwps as not being alive.
19025 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
19026 threads we're not interested in.
19027 (same_lwp, find_lwp_pid): New.
19028 (linux_wait_for_lwp): Change `pid' argument's type from int to
19030 (linux_wait_for_event): Rename to ...
19031 (linux_wait_for_event_1): ... this. Change `pid' argument's type
19032 from int to ptid_t. Adjust.
19033 (linux_wait_for_event): New.
19034 (linux_wait_1): Add `ptid' argument. Change return type to
19035 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
19036 that exit from the process table.
19037 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
19039 (mark_lwp_dead): New.
19040 (wait_for_sigstop): Adjust to use ptids. If a process exits while
19041 stopping all threads, mark its main lwp as dead.
19042 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
19044 (fetch_register, usr_store_inferior_registers)
19045 (regsets_fetch_inferior_registers)
19046 (regsets_store_inferior_registers, linux_read_memory)
19047 (linux_write_memory): Inline `inferior_pid'.
19048 (linux_look_up_symbols): Adjust to use per-process
19049 `thread_db_active'.
19050 (linux_request_interrupt): Adjust to use ptids.
19051 (linux_read_auxv): Inline `inferior_pid'.
19052 (initialize_low): Don't reference thread_db_active.
19053 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
19054 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
19055 (ps_getpid): Return the pid of the current inferior.
19056 * thread-db.c (proc_handle, thread_agent): Delete.
19057 (thread_db_create_event, thread_db_enable_reporting): Adjust to
19059 (find_one_thread): Change argument type to ptid_t. Adjust to
19061 (maybe_attach_thread): Adjust to per-process data and ptids.
19062 (thread_db_find_new_threads): Ditto.
19063 (thread_db_init): Ditto.
19064 * spu-low.c (spu_create_inferior, spu_attach): Add process to
19065 processes table. Adjust to use ptids.
19066 (spu_kill, spu_detach): Adjust interface. Remove process from
19068 (spu_join, spu_thread_alive): Adjust interface.
19069 (spu_wait): Adjust interface. Remove process from processes
19070 table. Adjust to use ptids.
19071 * win32-low.c (current_inferior_tid): Delete.
19072 (current_inferior_ptid): New.
19073 (debug_event_ptid): New.
19074 (thread_rec): Take a ptid. Adjust.
19075 (child_add_thread): Add `pid' argument. Adjust to use ptids.
19076 (child_delete_thread): Ditto.
19077 (do_initial_child_stuff): Add `attached' argument. Add process to
19079 (child_fetch_inferior_registers, child_store_inferior_registers):
19081 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
19082 (win32_attach): Pass 1 to do_initial_child_stuff.
19083 (win32_kill): Adjust interface. Remove process from processes
19085 (win32_detach): Ditto.
19086 (win32_join): Adjust interface.
19087 (win32_thread_alive): Take a ptid.
19088 (win32_resume): Adjust to use ptids.
19089 (get_child_debug_event): Ditto.
19090 (win32_wait): Adjust interface. Remove exiting process from
19093 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19095 Non-stop mode support.
19097 * server.h (non_stop): Declare.
19098 (gdb_client_data, handler_func): Declare.
19099 (delete_file_handler, add_file_handler, start_event_loop):
19101 (handle_serial_event, handle_target_event, push_event)
19102 (putpkt_notif): Declare.
19103 * target.h (enum resume_kind): New.
19104 (struct thread_resume): Replace `step' field by `kind' field.
19105 (TARGET_WNOHANG): Define.
19106 (struct target_ops) <wait>: Add `options' argument.
19107 <supports_non_stop, async, start_non_stop>: New fields.
19108 (target_supports_non_stop, target_async): New.
19109 (start_non_stop): Declare.
19110 (mywait): Add `options' argument.
19111 * target.c (mywait): Add `options' argument. Print child exit
19112 notifications here.
19113 (start_non_stop): New.
19114 * server.c (non_stop, own_buf, mem_buf): New globals.
19115 (struct vstop_notif): New.
19116 (notif_queue): New global.
19117 (queue_stop_reply, push_event, discard_queued_stop_replies)
19118 (send_next_stop_reply): New.
19119 (start_inferior): Adjust to use resume_kind. Adjust to mywait
19121 (attach_inferior): In non-stop mode, don't wait for the target
19123 (handle_general_set): Handle QNonStop.
19124 (handle_query): When handling qC, return the current general
19125 thread, instead of the first thread of the list.
19126 (handle_query): If the backend supports non-stop mode, include
19127 QNonStop+ in the qSupported query response.
19128 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
19130 (handle_v_attach, handle_v_run): Handle non-stop mode.
19131 (handle_v_stopped): New.
19132 (handle_v_requests): Report support for vCont;t. Handle vStopped.
19133 (myresume): Adjust to use resume_kind. Handle non-stop.
19134 (queue_stop_reply_callback): New.
19135 (handle_status): Handle non-stop mode.
19136 (main): Clear non_stop flag on reconnection. Use the event-loop.
19137 Refactor serial protocol handling from here ...
19138 (process_serial_event): ... to this new function. When GDB
19139 selects any thread, select one here. In non-stop mode, wait until
19140 GDB acks all pending events before exiting.
19141 (handle_serial_event, handle_target_event): New.
19142 * remote-utils.c (remote_open): Install remote_desc in the event
19144 (remote_close): Remove remote_desc from the event loop.
19145 (putpkt_binary): Rename to...
19146 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
19147 (putpkt_binary): New as wrapper around putpkt_binary_1.
19148 (putpkt_notif): New.
19149 (prepare_resume_reply): In non-stop mode, don't change the
19151 * event-loop.c: New.
19152 * Makefile.in (OBJ): Add event-loop.o.
19153 (event-loop.o): New rule.
19155 * linux-low.h (pid_of): Moved here.
19157 (get_lwp_thread): Use lwpid_of.
19158 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
19159 * linux-low.c (pid_of): Delete.
19160 (inferior_pid): Use lwpid_of.
19161 (linux_event_pipe): New.
19162 (target_is_async_p): New.
19164 (handle_extended_wait): Use lwpid_of.
19165 (add_lwp): Don't set lwpid field.
19166 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
19167 (linux_kill_one_lwp): If killing a running lwp, stop it first.
19168 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
19169 (linux_detach_one_lwp): If detaching from a running lwp, stop it
19170 first. Adjust to linux_wait_for_event interface changes. Use
19172 (linux_detach): Don't delete the main lwp here.
19173 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
19174 (status_pending_p): Don't consider explicitly suspended lwps.
19175 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
19176 pointer. Add OPTIONS argument. Change return type to int. Use
19177 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
19178 (linux_wait_for_event): Take an integer pid instead of a lwp_info
19179 pointer. Add status pointer argument. Return a pid instead of a
19180 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
19181 changes. In non-stop mode, don't switch to a random thread.
19182 (linux_wait): Rename to...
19183 (linux_wait_1): ... this. Add target_options argument, and handle
19184 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
19185 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
19186 clean exit and signal exit code. Don't stop all threads in
19187 non-stop mode. In all-stop mode, only stop all threads when
19188 reporting a stop to GDB. Handle explicit thread stop requests.
19189 (async_file_flush, async_file_mark): New.
19191 (send_sigstop): Use lwpid_of.
19192 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
19193 interface changes. In non-stop mode, don't switch to a random
19195 (linux_resume_one_lwp): Use lwpid_of.
19196 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
19197 (linux_resume_one_thread): ... this. Handle resume_stop. In
19198 non-stop mode, don't look for pending flag in all threads.
19199 (resume_status_pending_p): Don't consider explicitly suspended
19201 (my_waitpid): Reimplement. Emulate __WALL.
19202 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19204 (sigchld_handler, linux_supports_non_stop, linux_async)
19205 (linux_start_non_stop): New.
19206 (linux_target_ops): Register linux_supports_non_stop, linux_async
19207 and linux_start_non_stop.
19208 (initialize_low): Install SIGCHLD handler.
19209 * thread-db.c (thread_db_create_event, find_one_thread)
19210 (thread_db_get_tls_address): Use lwpid_of.
19211 * win32-low.c (win32_detach): Adjust to use resume_kind.
19212 (win32_wait): Add `options' argument.
19213 * spu-low.c (spu_resume): Adjust to use resume_kind.
19214 (spu_wait): Add `options' argument.
19216 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19218 Decouple target code from remote protocol.
19220 * target.h (enum target_waitkind): New.
19221 (struct target_waitstatus): New.
19222 (struct target_ops) <wait>: Return an unsigned long. Take a
19223 target_waitstatus pointer instead of a char pointer.
19224 (mywait): Likewise.
19225 * target.c (mywait): Change prototype to return an unsigned long.
19226 Take a target_waitstatus pointer instead of a char pointer. Adjust.
19227 * server.h (thread_from_wait, old_thread_from_wait): Delete
19229 (prepare_resume_reply): Change prototype to take a
19231 * server.c (thread_from_wait, old_thread_from_wait): Delete.
19232 (last_status, last_ptid): New.
19233 (start_inferior): Remove "statusptr" argument. Adjust. Return a
19234 pid instead of a signal.
19235 (attach_inferior): Remove "status" and "signal" parameters.
19237 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
19239 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
19240 (handle_v_requests, myresume): Remove "status" and "signal"
19241 parameters. Adjust.
19242 (handle_status): New.
19243 (main): Delete local `status'. Adjust.
19244 * remote-utils.c: Include target.h.
19245 (prepare_resume_reply): Change prototype to take a
19246 target_waitstatus. Adjust.
19248 * linux-low.c (linux_wait): Adjust to new target_ops->wait
19250 * spu-low.c (spu_wait): Adjust.
19251 * win32-low.c (enum target_waitkind, struct target_waitstatus):
19253 (win32_wait): Adjust.
19255 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19257 * target.h (struct thread_resume): Delete leave_stopped member.
19258 (struct target_ops): Add a `n' argument to the `resume' callback.
19259 * server.c (start_inferior): Adjust.
19260 (handle_v_cont, myresume): Adjust.
19261 * linux-low.c (check_removed_breakpoint): Adjust to resume
19262 interface change, and to removed leave_stopped field.
19263 (resume_ptr): Delete.
19264 (struct thread_resume_array): New.
19265 (linux_set_resume_request): Add new `arg' parameter. Adjust to
19266 resume interface change.
19267 (linux_continue_one_thread, linux_queue_one_thread)
19268 (resume_status_pending_p): Check if the resume field is NULL
19269 instead of checking the leave_stopped member.
19270 (linux_resume): Adjust to the target resume interface change.
19271 * spu-low.c (spu_resume): Adjust to the target resume interface
19273 * win32-low.c (win32_detach, win32_resume): Ditto.
19275 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19277 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
19279 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
19281 (linux_continue_one_thread): Only preserve the stepping flag if
19282 there's a pending breakpoint.
19284 2009-03-31 Pedro Alves <pedro@codesourcery.com>
19286 * server.c (main): After the inferior having exited, call
19287 remote_close before exiting gdbserver.
19289 2009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
19291 Fix size of FPSCR in Power 7 processors.
19292 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
19293 (PPC_FEATURE_HAS_DFP): New #define.
19294 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
19297 2009-03-23 Pedro Alves <pedro@codesourcery.com>
19299 * server.c (handle_query) Whitespace and formatting.
19301 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19303 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
19304 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
19305 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
19306 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
19307 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
19308 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
19309 Makefile.in, configure.ac: Fix whitespace throughout.
19310 * configure: Regenerate.
19312 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19314 * inferiors.c (find_inferior): Make it safe for the callback
19315 function to delete the currently iterated inferior.
19317 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19319 * Makefile.in (linuw_low_h): Move higher.
19320 (thread-db.o): Depend on $(linux_low_h).
19322 2009-03-17 Pedro Alves <pedro@codesourcery.com>
19324 Rename "process" to "lwp" throughout.
19326 * linux-low.c (all_processes): Rename to...
19327 (all_lwps): ... this.
19328 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
19329 (add_process): Rename to ...
19330 (add_lwp): ... this. Adjust.
19331 (linux_create_inferior): Adjust.
19332 (linux_attach_lwp): Adjust.
19333 (linux_attach): Adjust.
19334 (linux_kill_one_process): Rename to ...
19335 (linux_kill_one_lwp): ... this. Adjust.
19336 (linux_kill): Adjust.
19337 (linux_detach_one_process): Rename to ...
19338 (linux_detach_one_lwp): ... this. Adjust.
19339 (linux_detach): Adjust.
19340 (check_removed_breakpoint): Adjust.
19341 (status_pending_p): Adjust.
19342 (linux_wait_for_process): Rename to ...
19343 (linux_wait_for_lwp): ... this. Adjust.
19344 (linux_wait_for_event): Adjust.
19345 (send_sigstop): Adjust.
19346 (wait_for_sigstop): Adjust.
19347 (stop_all_processes): Rename to ...
19348 (stop_all_lwps): ... this.
19349 (linux_resume_one_process): Rename to ...
19350 (linux_resume_one_lwp): ... this. Adjust.
19351 (linux_set_resume_request, linux_continue_one_thread)
19352 (linux_queue_one_thread, resume_status_pending_p)
19353 (usr_store_inferior_registers, regsets_store_inferior_registers)
19354 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19356 * linux-low.h (get_process): Rename to ...
19357 (get_lwp): ... this. Adjust.
19358 (get_thread_process): Rename to ...
19359 (get_thread_lwp): ... this. Adjust.
19360 (get_process_thread): Rename to ...
19361 (get_lwp_thread): ... this. Adjust.
19362 (struct process_info): Rename to ...
19363 (struct lwp_info): ... this.
19364 (all_processes): Rename to ...
19365 (all_lwps): ... this.
19366 * proc-service.c (ps_lgetregs): Adjust.
19367 * thread-db.c (thread_db_create_event, find_one_thread)
19368 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
19370 2009-03-14 Pedro Alves <pedro@codesourcery.com>
19372 * server.c (handle_query): Handle "qAttached".
19374 2009-03-13 Nathan Sidwell <nathan@codesourcery.com>
19376 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
19377 GPLv3, update license URL.
19379 2009-03-01 Doug Evans <dje@google.com>
19381 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
19382 (server_h): Add gdb_signals.h.
19383 (signals.o): Update.
19384 * server.h (target_signal_from_host,target_signal_to_host_p)
19385 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
19387 2009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
19389 * remote-utils.c (getpkt): Also generate remote-debug
19390 information if noack_mode is set.
19392 2009-02-06 Pedro Alves <pedro@codesourcery.com>
19394 * server.c (handle_query): Report qXfer:siginfo:read and
19395 qXfer:siginfo:write as supported and handle them.
19396 * target.h (struct target_ops) <qxfer_siginfo>: New field.
19397 * linux-low.c (linux_xfer_siginfo): New.
19398 (linux_target_ops): Set it.
19400 2009-01-26 Pedro Alves <pedro@codesourcery.com>
19402 * server.c (gdbserver_usage): Mention --remote-debug.
19403 (main): Accept '--remote-debug' switch.
19405 2009-01-18 Doug Evans <dje@google.com>
19407 * regcache.c (new_register_cache): No need to check result of xcalloc.
19408 * server.c (handle_search_memory): Back out calls to xmalloc,
19409 result is checked and error is returned to user upon failure.
19410 (handle_query): Ditto. Add more checks for result of malloc.
19411 (handle_v_cont): Check result of malloc, report error back to
19413 (handle_v_run): Ditto. Call freeargv.
19414 * server.h (freeargv): Declare.
19415 * utils.c (freeargv): New fn.
19417 2009-01-15 Doug Evans <dje@google.com>
19419 * gdbreplay.c (perror_with_name): Make arg const char *.
19420 * server.h (target_signal_to_name): Make return type const char *.
19421 * thread-db.c (thread_db_err_str): Make return type const char *.
19422 * utils.c (perror_with_name): Make arg const char *.
19424 2009-01-14 Pedro Alves <pedro@codesourcery.com>
19426 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
19427 when handling a EXIT_PROCESS_DEBUG_EVENT.
19429 2009-01-06 Joel Brobecker <brobecker@adacore.com>
19431 * gdbreplay.c (gdbreplay_version): Update copyright year.
19432 * server.c (gdbserver_version): Likewise.
19434 2009-01-05 Doug Evans <dje@google.com>
19436 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
19437 (handle_extended_wait): Improve comment.
19439 2008-12-13 Doug Evans <dje@google.com>
19441 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
19442 * server.h (ATTR_MALLOC): New macro.
19443 (xmalloc,xcalloc,xstrdup): Declare.
19444 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
19445 * inferiors.c: Ditto.
19446 * linux-low.c: Ditto.
19447 * mem-break.c: Ditto.
19448 * regcache.c: Ditto.
19449 * remote-utils.c: Ditto.
19452 * win32-low.c: Ditto.
19454 2008-12-12 Doug Evans <dje@google.com>
19456 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
19457 in debugging printf.
19459 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
19461 2008-12-09 Doug Evans <dje@google.com>
19463 * linux-low.h (struct process_info): Delete member tid, unused.
19464 * thread-db.c (find_one_thread): Update.
19465 (maybe_attach_thread): Update.
19467 2008-12-02 Pedro Alves <pedro@codesourcery.com>
19469 * target.h (struct target_ops): Add qxfer_osdata member.
19470 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
19472 (linux_qxfer_osdata): New functions.
19473 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
19475 * server.c (handle_query): Handle "qXfer:osdata:read:".
19476 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
19477 (buffer_xml_printf): New functions.
19478 * server.h (struct buffer): New.
19479 (buffer_grow_str, buffer_grow_str0): New macros.
19480 (buffer_grow, buffer_free, buffer_init, buffer_finish)
19481 (buffer_xml_printf): Declare.
19483 2008-11-24 Doug Evans <dje@google.com>
19485 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
19487 2008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
19489 * server.c (handle_v_run): Always use the supplied argument list.
19491 2008-11-19 Bob Wilson <bob.wilson@acm.org>
19493 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
19494 (xtensa_regmap_table): Add entry for scompare1.
19496 2008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
19498 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
19499 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
19500 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
19501 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
19502 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
19503 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
19504 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
19505 XML target descriptions.
19506 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
19507 when inferior is running on an ISA 2.05 or later processor. Add
19508 special case to return offset for full 64-bit slot of FPSCR when
19511 2008-11-14 Daniel Gutson <dgutson@codesourcery.com>
19513 * Makefile.in (SFILES, clean): Added sparc64 files.
19514 (reg-sparc64.o, reg-sparc64.c): New.
19515 * configure.srv (sparc*-*-linux*): New configuration.
19516 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
19517 syscall arguments for SPARC.
19518 (regsets_store_inferior_registers): Likewise.
19519 * linux-sparc-low.c: New file.
19521 2008-10-21 Doug Evans <dje@google.com>
19523 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
19524 (READLINE_DIR,READLINE_DEP): Delete.
19525 (INTERNAL_CFLAGS): Update.
19526 (LINTFLAGS): Update.
19528 2008-10-10 Pedro Alves <pedro@codesourcery.com>
19530 * server.c (handle_v_run): If GDB didn't specify an argv, use the
19531 whole argv from the last run, not just argv[0].
19533 2008-09-08 Pedro Alves <pedro@codesourcery.com>
19535 * regcache.c (new_register_cache): Return NULL if the register
19536 cache size isn't known yet.
19537 (free_register_cache): Avoid dereferencing a NULL regcache.
19539 2008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
19541 * configure.srv: Merge MIPS and MIPS64.
19543 2008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
19545 * Makefile.in (uninstall): Apply $(EXEEXT) too.
19547 2008-08-18 Luis Machado <luisgpm@br.ibm.com>
19549 * Makefile.in: Add required vsx dependencies.
19551 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
19552 Declare init_registers_powerpc_vsx32l.
19553 Declare init_registers_powerpc_vsx64l.
19554 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
19555 (ppc_arch_setup): Check for VSX in hwcap.
19556 (ppc_fill_vsxregset): New function.
19557 (ppc_store_vsxregset): New function.
19558 Add new VSX entry in regset_info target_regsets.
19560 * configure.srv: Add new VSX dependencies.
19562 2008-08-12 Pedro Alves <pedro@codesourcery.com>
19564 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
19565 (remote_open): Set or clear transport_is_reliable.
19566 (putpkt_binary): Don't expect acks in noack mode.
19567 (getpkt): Don't send ack/nac in noack mode.
19568 * server.c (handle_general_set): Handle QStartNoAckMode.
19569 (handle_query): If connected by tcp pass QStartNoAckMode+ in
19571 (main): Reset noack_mode on every connection.
19572 * server.h (noack_mode): Declare.
19574 2008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19576 * Makefile.in (GDBREPLAY_OBS): New variable.
19577 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
19579 2008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
19580 Daniel Jacobowitz <dan@codesourcery.com>
19582 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
19583 (usr_store_inferior_registers): Likewise.
19584 (regsets_store_inferior_registers): Likewise.
19586 2008-07-31 Rolf Jansen <rj@surtec.com>
19587 Pedro Alves <pedro@codesourcery.com>
19589 * configure.ac: Check for memmem declaration.
19590 * server.c [HAVE_MALLOC_H]: Include malloc.h.
19591 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
19592 (disable_packet_qfThreadInfo): Unconditionally compile.
19593 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
19594 * configure, config.in: Regenerate.
19596 2008-07-28 Doug Kwan <dougkwan@google.com>
19598 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
19599 (linux_write_memory): Remove declaration of errno.
19601 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
19603 * linux-low.c (handle_extended_wait): Do not use "status"
19604 variable uninitialized.
19606 2008-07-07 Pedro Alves <pedro@codesourcery.com>
19608 * server.c (handle_v_attach): Inhibit reporting dll changes.
19610 2008-06-27 Pedro Alves <pedro@codesourcery.com>
19612 * remote-utils.c (prepare_resume_reply): If requested, don't
19613 output "thread:TID" in the T stop reply.
19615 * server.c (disable_packet_vCont, disable_packet_Tthread)
19616 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
19617 (handle_query): If requested, disable support for qC, qfThreadInfo
19619 (handle_v_requests): If requested, disable support for vCont.
19620 (gdbserver_show_disableable): New.
19621 (main): Handle --disable-packet and --disable-packet=LIST.
19623 * server.h (disable_packet_vCont, disable_packet_Tthread)
19624 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
19626 2008-06-20 Carlos O'Donell <carlos@codesourcery.com>
19628 * server.c (gdbserver_usage): Mention --version.
19630 2008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
19632 * Makefile.in (gdbreplay.o): New rule.
19634 2008-06-06 Joseph Myers <joseph@codesourcery.com>
19636 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
19637 message, not gdbserver.
19639 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
19640 Nathan Sidwell <nathan@codesourcery.com>
19641 Joseph Myers <joseph@codesourcery.com>
19643 * acinclude.m4: Include ../../config/acx.m4.
19644 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
19645 * configure, config.in: Regenerate.
19646 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
19647 * server.c (gdbserver_version): Print PKGVERSION.
19648 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
19649 (main): Adjust gdbserver_usage calls.
19650 * gdbreplay.c (version, host_name): Add declarations.
19651 (gdbreplay_version, gdbreplay_usage): New.
19652 (main): Accept --version and --help options.
19654 2008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
19656 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
19657 (arm_breakpoint_at): Handle Thumb.
19658 (the_low_target): Add comment.
19660 2008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
19662 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
19664 2008-05-09 Doug Evans <dje@google.com>
19666 * server.h (decode_search_memory_packet): Declare.
19667 * remote-utils.c (decode_search_memory_packet): New fn.
19668 * server.c (handle_search_memory_1): New fn.
19669 (handle_search_memory): New fn.
19670 (handle_query): Process qSearch:memory packets.
19672 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
19674 * regcache.c (registers_length): Remove.
19675 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
19676 full register packet.
19677 * regcache.h (registers_length): Remove prototype.
19678 * server.h (PBUFSIZ): Define to 16384.
19680 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
19682 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
19683 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
19684 powerpc-64l.o, and powerpc-altivec64l.o.
19685 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
19686 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
19687 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
19688 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
19689 rs6000/power-linux.xml, and rs6000/power64-linux.xml
19692 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
19693 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
19694 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
19695 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
19696 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
19697 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
19698 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
19699 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
19700 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
19701 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
19704 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
19705 (init_registers_powerpc_32l): ... this new prototype.
19706 (init_registers_powerpc_32): Remove, replace by ...
19707 (init_registers_powerpc_altivec32l): ... this new prototype.
19708 (init_registers_powerpc_e500): Remove, replace by ...
19709 (init_registers_powerpc_e500l): ... this new prototype.
19710 (init_registers_ppc64): Remove, replace by ...
19711 (init_registers_powerpc_64l): ... this new prototype.
19712 (init_registers_powerpc_64): Remove, replace by ...
19713 (init_registers_powerpc_altivec64l): ... this new prototype.
19714 (ppc_num_regs): Set to 73.
19715 (PT_ORIG_R3, PT_TRAP): Define if necessary.
19716 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
19717 (ppc_cannot_store_register): Handle orig_r3 and trap.
19718 (ppc_arch_setup): Update init_registers_... calls.
19719 (ppc_fill_gregset): Handle orig_r3 and trap.
19721 * inferiors.c (clear_inferiors): Reset current_inferior.
19723 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
19725 * acinclude.m4: Add override.m4.
19726 * configure: Regenerate.
19728 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19730 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
19731 initial call to init_register_ppc64.
19733 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19735 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
19736 single powerpc*-*-linux* case.
19737 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
19739 2008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
19741 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
19742 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
19744 * linux-ppc-low.c: Include <elf.h>.
19745 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
19746 (ppc_hwcap): New global variable.
19747 (ppc_regmap): Remove __SPE__ #ifdef sections.
19748 (ppc_regmap_e500): New global variable.
19749 (ppc_cannot_store_register): Update __SPE__ special case.
19750 (ppc_get_hwcap): New function.
19751 (ppc_arch_setup): Use it to determine whether inferior supports
19752 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
19753 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
19754 Do not access registers if target does not support AltiVec.
19755 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
19756 Do not access registers if target does not support SPE.
19757 (target_regsets): Unconditionally include AltiVec and SPE regsets.
19759 2008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
19761 * linux-low.c (disabled_regsets, num_regsets): New.
19762 (use_regsets_p): Delete.
19763 (linux_wait_for_process): Clear disabled_regsets.
19764 (regsets_fetch_inferior_registers): Check and set it.
19765 (regsets_store_inferior_registers): Likewise.
19766 (linux_fetch_registers, linux_store_registers): Do not use
19768 (initialize_low): Allocate disabled_regsets.
19770 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
19772 * Makefile.in (LIBOBJS): New.
19773 (OBS): Use LIBOBJS.
19774 (memmem.o): New rule.
19775 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
19776 * configure: Regenerated.
19778 2008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
19780 * server.c (handle_query): Never return "unsupported" for
19781 qXfer:features:read queries.
19783 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
19785 * server.c (get_features_xml): Fix inverted condition.
19786 (handle_query): Always support qXfer:feature:read.
19788 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
19790 * server.c (wrapper_argv): New.
19791 (start_inferior): Handle wrapper_argv. If set, expect an extra
19793 (gdbserver_usage): Document --wrapper.
19794 (main): Parse --wrapper.
19796 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19798 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
19799 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
19800 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
19801 (ppc_set_pc): Likewise.
19802 (ppc_arch_setup): New function.
19803 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
19804 of collect_register.
19805 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
19807 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19809 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
19810 instead of linux-ppc64-low.o.
19811 * linux-ppc64-low.c: Remove file.
19812 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
19813 (linux-ppc64-low.o): Remove rule.
19815 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
19816 (init_registers_powerpc_64): Likewise.
19817 (ppc_regmap): Conditionally define depending on __powerpc64__.
19818 (ppc_cannot_store_register): Do not special-case "fpscr" when
19819 compiled on __powerpc64__.
19820 (ppc_collect_ptrace_register): New function.
19821 (ppc_supply_ptrace_register): New function.
19822 (ppc_breakpoint): Change type to "unsigned int".
19823 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
19824 (the_low_target): Conditionally provide initializers for the
19825 arch_setup member depending on __powerpc64__. Install
19826 collect_ptrace_register and supply_ptrace_register members.
19828 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19830 * regcache.h (gdbserver_xmltarget): Add extern declaration.
19831 * server.c (gdbserver_xmltarget): Define.
19832 (get_features_xml): Use it to replace "target.xml" and arch_string.
19834 * configure.srv: Remove srv_xmltarget. Add XML files that were
19835 mentioned there to srv_xmlfiles instead. Remove conditional tests
19836 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
19837 srv_xmlfiles and srv_regobj to include all possible choices.
19838 * configure.ac (srv_xmltarget): Remove.
19839 (srv_xmlfiles): Do not add "target.xml".
19840 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
19841 checks for supplementary target information.
19842 * configure: Regenerate.
19843 * Makefile.in (XML_TARGET): Remove.
19844 (target.xml): Remove rule.
19845 (clean): Do not clean up target.xml.
19846 (.PRECIOUS): Do not mention target.xml.
19848 * target.h (struct target_ops): Remove arch_string member.
19849 * linux-low.c (linux_arch_string): Remove.
19850 (linux_target_ops): Remove arch_string initializer.
19851 * linux-low.h (struct linux_target_ops): Remove arch_string member.
19852 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
19853 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
19854 * spu-low.c (spu_arch_string): Remove.
19855 (spu_target_ops): Remove arch_string initializer.
19856 * win32-low.c (win32_arch_string): Remove.
19857 (win32_target_ops): Remove arch_string initializer.
19858 * win32-low.h (struct win32_target_ops): Remove arch_string member.
19859 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
19860 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
19862 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19864 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
19865 by collect_ptrace_register and supply_ptrace_register hooks.
19866 * linux-low.c (fetch_register): Use supply_ptrace_register callback
19867 instead of checking for the_low_target.left_pad_xfer.
19868 (usr_store_inferior_registers): Use collect_ptrace_register callback
19869 instead of checking for the_low_target.left_pad_xfer.
19871 * linux-s390-low.c (s390_collect_ptrace_register): New function.
19872 (s390_supply_ptrace_register): Likewise.
19873 (s390_fill_gregset): Call s390_collect_ptrace_register.
19874 (the_low_target): Update.
19876 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
19877 (ppc_supply_ptrace_register): Likewise.
19878 (the_low_target): Update.
19880 * linux-i386-low.c (the_low_target): Update.
19881 * linux-x86-64-low.c (the_low_target): Update.
19883 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19885 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
19886 reg-s390.o and reg-s390x.o.
19888 * linux-low.c (new_inferior): New global variable.
19889 (linux_create_inferior, linux_attach): Set it.
19890 (linux_wait_for_process): Call the_low_target.arch_setup after the
19891 target has stopped for the first time.
19892 (initialize_low): Do not call the_low_target.arch_setup.
19894 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
19895 (s390_set_pc): Likewise.
19896 (s390_arch_setup): New function.
19897 (the_low_target): Use s390_arch_setup as arch_setup routine.
19899 * regcache.c (realloc_register_cache): New function.
19900 (set_register_cache): Call it for each existing regcache.
19902 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19904 * server.h (init_registers): Remove prototype.
19906 * linux-low.h (struct linux_target_ops): Add arch_setup field.
19907 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
19908 instead of init_registers ().
19909 * linux-arm-low.c (init_registers_arm): Add prototype.
19910 (init_registers_arm_with_iwmmxt): Likewise.
19911 (the_low_target): Add initializer for arch_setup field.
19912 * linux-cris-low.c (init_registers_cris): Add prototype.
19913 (the_low_target): Add initializer for arch_setup field.
19914 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
19915 (the_low_target): Add initializer for arch_setup field.
19916 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
19917 (the_low_target): Add initializer for arch_setup field.
19918 * linux-ia64-low.c (init_registers_ia64): Add prototype.
19919 (the_low_target): Add initializer for arch_setup field.
19920 * linux-m32r-low.c (init_registers_m32r): Add prototype.
19921 (the_low_target): Add initializer for arch_setup field.
19922 * linux-m68k-low.c (init_registers_m68k): Add prototype.
19923 (the_low_target): Add initializer for arch_setup field.
19924 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
19925 (init_registers_mips64_linux): Likewise.
19926 (the_low_target): Add initializer for arch_setup field.
19927 * linux-ppc-low.c (init_registers_ppc): Add prototype.
19928 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
19929 (the_low_target): Add initializer for arch_setup field.
19930 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
19931 (init_registers_powerpc_64): Likewise.
19932 (the_low_target): Add initializer for arch_setup field.
19933 * linux-s390-low.c (init_registers_s390): Add prototype.
19934 (init_registers_s390x): Likewise.
19935 (the_low_target): Add initializer for arch_setup field.
19936 * linux-sh-low.c (init_registers_sh): Add prototype.
19937 (the_low_target): Add initializer for arch_setup field.
19938 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
19939 (the_low_target): Add initializer for arch_setup field.
19940 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
19941 (the_low_target): Add initializer for arch_setup field.
19943 * win32-low.h (struct win32_target_ops): Add arch_setup field.
19944 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
19945 instead of init_registers ().
19946 * win32-arm-low.c (init_registers_arm): Add prototype.
19947 (the_low_target): Add initializer for arch_setup field.
19948 * win32-i386-low.c (init_registers_i386): Add prototype.
19949 (the_low_target): Add initializer for arch_setup field.
19951 * spu-low.c (init_registers_spu): Add prototype.
19952 (initialize_low): Call initialie_registers_spu () instead of
19953 initialize_registers ().
19955 2008-02-19 Pedro Alves <pedro@codesourcery.com>
19957 * server.c (handle_v_requests): When handling the vRun and vAttach
19958 packets, if already debugging a process, don't kill it. Return an
19961 2008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
19963 * server.c (handle_query): Correct length check.
19965 2008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
19967 * win32-low.c (do_initial_child_stuff): Add process handle
19968 parameter. Set current_process_handle and current_process_id from the
19969 parameters. Clear globals.
19970 (win32_create_inferior): Don't set current_process_handle and
19971 current_process_id here. Instead pass them on the call to
19972 do_initial_child_stuff.
19973 (win32_attach): Likewise.
19974 (win32_clear_inferiors): New.
19975 (win32_kill): Don't close the current process handle or the
19976 current thread handle here. Instead call win32_clear_inferiors.
19977 (win32_detach): Don't open a new handle to the process. Call
19978 win32_clear_inferiors.
19979 (win32_join): Don't rely on current_process_handle; open a new
19980 handle using the process id.
19981 (win32_wait): Call win32_clear_inferiors when the inferior process
19984 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
19986 * server.c (monitor_show_help): Add "exit".
19988 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
19990 * Makefile.in (SFILES): Add linux-xtensa-low.c.
19991 (clean): Add reg-xtensa.c.
19992 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
19993 * configure.srv (xtensa*-*-linux*) New target.
19994 * linux-xtensa-low.c: New.
19995 * xtensa-xtregs.c: New.
19997 2008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
19999 * hostio.c: Don't include errno.h.
20000 (errno_to_fileio_errno): Move to hostio-errno.
20001 * hostio.c: (hostio_error): Remove the error parameter. Defer the
20002 error number outputting to the target->hostio_last_error callback.
20003 (hostio_packet_error): Use FILEIO_EINVAL directly.
20004 (handle_open, handle_pread, hostio_error, handle_unlink): Update
20005 calls to hostio_error.
20006 * hostio-errno.c: New.
20007 * server.h (hostio_last_error_from_errno): Declare.
20008 * target.h (target_ops): Add hostio_last_error member.
20009 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
20010 as hostio_last_error handler.
20011 * spu-low.c (spu_target_ops): Likewise.
20012 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
20013 (wince_hostio_last_error): New functions.
20014 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
20015 as hostio_last_error handler.
20016 (win32_target_ops) [!_WIN32_WCE]: Register
20017 hostio_last_error_from_errno as hostio_last_error handler.
20018 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
20019 (hostio-errno.o): New rule.
20020 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
20021 * configure.srv (srv_hostio_err_objs): New variable. Default to
20023 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
20024 * configure: Regenerate.
20026 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20028 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
20029 (linux_kill, linux_detach): Clean up the process list.
20030 * remote-utils.c (remote_open): Improve port number parsing.
20031 (putpkt_binary, input_interrupt): Only send interrupts if the target
20033 * server.c (extended_protocol): Make static.
20034 (attached): Define earlier.
20035 (exit_requested, response_needed, program_argv): New variables.
20036 (target_running): New.
20037 (start_inferior): Clear attached here.
20038 (attach_inferior): Set attached here.
20039 (require_running): Define.
20040 (handle_query): Use require_running and target_running. Implement
20042 (handle_v_attach, handle_v_run): New.
20043 (handle_v_requests): Use require_running. Handle vAttach and vRun.
20044 (gdbserver_usage): Update.
20045 (main): Redo argument parsing. Handle --debug and --multi. Handle
20046 --attach along with other options or after the port. Save
20047 program_argv. Support no initial program. Resynchronize
20048 communication with GDB after an error. Handle "monitor exit".
20049 Use require_running and target_running. Always allow the extended
20050 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
20051 restart in extended mode.
20052 * README: Refer to the GDB manual. Update --attach usage.
20054 2007-12-20 Andreas Schwab <schwab@suse.de>
20056 * linux-low.c (STACK_SIZE): Define.
20057 (linux_tracefork_child): Use it. Use __clone2 on ia64.
20058 (linux_test_for_tracefork): Likewise.
20060 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
20062 * linux-low.c (linux_wait_for_event): Update messages. Do not
20063 reinsert auto-delete breakpoints.
20064 * mem-break.c (struct breakpoint): Change return type of handler to
20066 (set_breakpoint_at): Update handler type.
20067 (reinsert_breakpoint_handler): Return 1 instead of calling
20069 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
20071 (check_breakpoints): Delete auto-delete breakpoints and return 2.
20072 * mem-break.h (set_breakpoint_at): Update handler type.
20073 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
20074 * win32-low.c (auto_delete_breakpoint): New.
20075 (get_child_debug_event): Use it.
20077 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
20079 * configure.ac: Check for pread and pwrite.
20080 * hostio.c (handle_pread): Fall back to lseek and read.
20081 (handle_pwrite): Fall back to lseek and write.
20082 * config.in, configure: Regenerated.
20084 2007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
20086 * server.c (myresume): Add own_buf argument.
20087 (main): Update calls.
20089 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
20091 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
20092 * remote-utils.c (remote_open): Do not call disable_async_io.
20093 (block_async_io): Delete.
20094 (unblock_async_io): Make static.
20095 (initialize_async_io): New.
20096 * server.c (handle_v_cont): Handle async I/O here.
20097 (myresume): Likewise. Move other common resume tasks here...
20098 (main): ... from here. Call initialize_async_io. Disable async
20099 I/O before the main loop.
20100 * server.h (initialize_async_io): Declare.
20101 (block_async_io, unblock_async_io): Delete prototypes.
20102 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
20104 2007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
20106 * remote-utils.c (readchar): Allow binary data in received messages.
20108 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20110 * win32-low.c (attaching): New global.
20111 (win32_create_inferior): Clear the `attaching' global.
20112 (win32_attach): Set the `attaching' global.
20113 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
20114 attaching. Only set a breakpoint at the entry point if not
20117 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20119 * server.c (main): Don't report dll events on the initial
20120 connection on attaches.
20122 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20124 * server.c (main): Relax numerical bases supported for the pid of
20125 the --attach command line argument.
20127 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20129 * win32-low.c (win32_attach): Call OpenProcess before
20130 DebugActiveProcess, not after. Add last error output to error
20133 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20135 * win32-low.c (win32_get_thread_context)
20136 (win32_set_thread_context): New functions.
20137 (thread_rec): Use win32_get_thread_context.
20138 (continue_one_thread, win32_resume): Use win32_set_thread_context.
20139 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
20142 2007-12-03 Leo Zayas
20143 Pedro Alves <pedro_alves@portugalmail.pt>
20145 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
20147 (child_add_thread): Minor cleanup.
20148 (child_continue): Resume artificially suspended threads before
20149 calling ContinueDebugEvent.
20150 (suspend_one_thread): New.
20151 (fake_breakpoint_event): New.
20152 (get_child_debug_event): Change return type to int. Check here if
20153 gdb sent an interrupt request. If a soft interrupt was requested,
20154 fake a breakpoint event. Return 0 if there is no event to handle,
20156 (win32_wait): Don't check here if gdb sent an interrupt request.
20157 Ensure there is a valid event to handle.
20158 (win32_request_interrupt): Add soft interruption method as last
20161 2007-12-03 Leo Zayas
20162 Pedro Alves <pedro_alves@portugalmail.pt>
20164 * win32-low.h (win32_thread_info): Add descriptions to the
20165 structure members. Replace `suspend_count' counter by a
20167 * win32-low.c (thread_rec): Update condition of when to get the
20168 context from the inferior. Rely on ContextFlags being set if it
20169 has already been retrieved. Only suspend the inferior thread if
20170 we haven't already. Warn if that fails.
20171 (continue_one_thread): s/suspend_count/suspended/. Only call
20172 ResumeThread once. Warn if that fails.
20174 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20176 * win32-low.c (win32_wait): Don't read from the inferior when it
20177 has already exited.
20179 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20181 * Makefile.in (win32_low_h): New variable.
20182 (win32-low.o): Add dependency on $(win32_low_h).
20183 (win32-arm-low.o, win32-i386-low.o): New rules.
20185 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20187 * hostio.c: Correct copyright year.
20189 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20191 * Makefile.in (OBS): Add hostio.o.
20192 (hostio.o): New rule.
20193 * server.h (handle_vFile): Declare.
20194 * hostio.c: New file.
20195 * server.c (handle_v_requests): Take packet_len and new_packet_len
20196 for binary packets. Call handle_vFile.
20197 (main): Update call to handle_v_requests.
20199 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
20201 * linux-low.c: Include <sched.h>.
20203 2007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
20205 * linux-low.c (linux_tracefork_grandchild): New.
20206 (linux_tracefork_child): Use clone.
20207 (linux_test_for_tracefork): Use clone; allocate and free a stack.
20209 2007-10-31 Joel Brobecker <brobecker@adacore.com>
20211 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
20213 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
20215 * linux-low.c (handle_extended_wait): Handle unexpected signals.
20217 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
20219 * inferiors.c (change_inferior_id): Delete.
20220 (add_pid_to_list, pull_pid_from_list): New.
20221 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
20222 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
20223 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
20224 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
20225 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
20226 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
20227 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
20228 (using_threads): Always set to 1.
20229 (handle_extended_wait): New.
20230 (add_process): Do not set TID.
20231 (linux_create_inferior): Set must_set_ptrace_flags.
20232 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
20233 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
20234 (linux_thread_alive): Rename TID argument to LWPID.
20235 (linux_wait_for_process): Handle unknown processes. Do not use TID.
20236 (linux_wait_for_event): Do not use TID or check using_threads. Update
20237 call to dead_thread_notify. Call handle_extended_wait.
20238 (linux_create_inferior): Use PTRACE_SETOPTIONS.
20239 (send_sigstop): Delete sigstop_sent.
20240 (wait_for_sigstop): Avoid TID.
20241 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
20242 (linux_test_for_tracefork): New.
20243 (linux_lookup_signals): Use thread_db_active and
20244 linux_supports_tracefork_flag.
20245 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
20246 * linux-low.h (get_process_thread): Avoid TID.
20247 (struct process_ifo): Move thread_known and tid to the end. Remove
20249 (linux_attach_lwp, thread_db_init): Update prototypes.
20250 * server.h (change_inferior_id): Delete prototype.
20251 (add_pid_to_list, pull_pid_from_list): New prototypes.
20252 * thread-db.c (thread_db_use_events): New.
20253 (find_first_thread): Rename to...
20254 (find_one_thread): ...this. Update callers and messages. Do not
20255 call fatal. Check thread_db_use_events. Do not call
20256 change_inferior_id or new_thread_notify.
20257 (maybe_attach_thread): Update. Do not call new_thread_notify.
20258 (thread_db_init): Set thread_db_use_events. Check use_events.
20259 * utils.c (fatal, warning): Correct message prefix.
20261 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
20263 * Makefile.in (clean): Remove new files.
20264 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
20265 (powerpc-64.o, powerpc-64.c): New rules.
20266 * configure.srv: Use alternate register sets for powerpc64-*-linux*
20267 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
20269 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
20271 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
20272 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
20273 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
20274 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
20275 (target_regsets): Add AltiVec and SPE register sets.
20276 * configure.ac: Check for AltiVec and SPE.
20277 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
20278 (ppc_fill_vrregset, ppc_store_vrregset): New.
20279 (target_regsets): Add AltiVec register set.
20280 * configure: Regenerated.
20282 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
20284 * linux-low.c (O_LARGEFILE): Define.
20285 (linux_read_memory): Use /proc/PID/mem.
20286 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
20287 * configure, config.in: Regenerated.
20289 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20291 * linux-low.c (linux_wait_for_event): Do not pass signals while
20294 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20296 * win32-low.c (create_process): New.
20297 (win32_create_inferior): Use create_process instead of
20298 CreateProcess. If create_process failed retry appending an ".exe"
20299 suffix. Store the GetLastError result immediatelly after
20300 create_process calls and use it on the call to error.
20302 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20304 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
20306 2007-08-23 Joel Brobecker <brobecker@adacore.com>
20308 * configure.ac: Switch license to GPLv3.
20310 2007-08-01 Michael Snyder <msnyder@access-company.com>
20312 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
20314 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
20316 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
20318 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
20319 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
20320 CloseToolhelp32Snapshot.
20321 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
20322 CloseToolhelp32Snapshot.
20324 2007-07-27 Michael Snyder <michael.snyder@access-company.com>
20326 * server.c (main): Check for inferior exit before main loop.
20328 2007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
20330 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
20331 instead of on tmp_desc.
20333 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
20334 Daniel Jacobowitz <dan@codesourcery.com>
20336 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
20337 (add_thread): Minor cleanups.
20338 (clear_inferiors): Move lower in the file. Clear the DLL
20340 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
20341 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
20342 (xml_escape_text): New.
20343 * server.c (handle_query): Handle qXfer:libraries:read. Report it
20345 (handle_v_cont): Report errors.
20346 (gdbserver_version): Update.
20347 (main): Correct size of own_buf. Do not report initial DLL events.
20348 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
20349 (unloaded_dll, xml_escape_text): New.
20350 * win32-low.c (enum target_waitkind): Update comments.
20351 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
20352 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
20353 (win32_EnumProcessModules, win32_GetModuleInformation)
20354 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
20355 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
20356 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
20357 (win32_Module32First, win32_Module32Next, load_toolhelp)
20358 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
20359 (get_child_debug_event): Handle DLL events.
20360 (win32_wait): Likewise.
20362 2007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20364 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
20365 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
20367 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20369 * win32-low.c (handle_output_debug_string): Ignore event if not
20372 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20374 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
20376 2007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
20378 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
20380 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
20382 * inferiors.c (change_inferior_id): Add comment.
20383 * linux-low.c (check_removed_breakpoint): Add an early
20384 prototype. Improve debug output.
20385 (linux_attach): Doc update.
20386 (linux_detach_one_process, linux_detach): Clean up before releasing
20388 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
20389 * linux-low.h (struct process_info): Doc improvement.
20390 * mem-break.c (delete_all_breakpoints): New.
20391 * mem-break.h (delete_all_breakpoints): New prototype.
20392 * thread-db.c (find_first_thread): New.
20393 (thread_db_create_event): Call it instead of
20394 thread_db_find_new_threads. Clean up unused variables.
20395 (maybe_attach_thread): Remove first thread handling.
20396 (thread_db_find_new_threads): Use find_first_thread.
20397 (thread_db_get_tls_address): Likewise.
20399 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
20401 * thread-db.c (thread_db_find_new_threads): Add prototype.
20402 (thread_db_create_event): Check for the main thread before adding
20404 (maybe_attach_thread): Only enable event reporting if TID == 0.
20405 (thread_db_get_tls_address): Check for new threads.
20407 2007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
20409 * linux-low.c (linux_create_inferior): Try execv before execvp.
20410 * spu-low.c (spu_create_inferior): Likewise.
20412 2007-06-13 Mike Frysinger <vapier@gentoo.org>
20414 * linux-low.c (linux_create_inferior): Change execv to execvp.
20415 * spu-low.c (spu_create_inferior): Likewies.
20417 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
20419 * Makefile.in (clean): Clean new files instead of deleted ones.
20420 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
20421 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
20423 * configure.srv: Specify XML files and new regformats for MIPS and
20425 * linux-mips-low.c (mips_num_regs): Set to only used registers.
20426 (mips_regmap): Do not fetch $0. Remove unused registers. Add
20427 an entry for the restart register.
20428 (mips_cannot_fetch_register, mips_cannot_store_register)
20429 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
20430 register names to match the XML descriptions.
20431 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
20432 restart register instead of $0.
20434 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20435 Markus Deuling <deuling@de.ibm.com>
20437 * remote-utils.c (decode_xfer_write): New function.
20438 * server.h (decode_xfer_write): Add prototype.
20439 * server.c (handle_query): Add PACKET_LEN argument. Support
20440 qXfer:spu:read and qXfer:spu:write packets.
20441 (main): Pass packet_len to handle_query.
20442 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
20443 * target.h (target_ops): Add qxfer_spu.
20445 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20447 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
20448 accessing non-seekable spufs files.
20450 2007-05-16 Markus Deuling <deuling@de.ibm.com>
20452 * server.c (handle_query): Add reply for qC packet.
20454 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20455 Leo Zayas <lerele@champenstudios@com>
20457 * server.h (check_remote_input_interrupt_request): New function.
20458 * remote_utils.c (INVALID_DESCRIPTOR): New define.
20459 (remote_desc): Initialize with INVALID_DESCRIPTOR.
20460 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
20461 (check_remote_input_interrupt_request): New function.
20462 * server.h (check_remote_input_interrupt_request): Declare.
20463 * win32-low.c (winapi_DebugBreakProcess,
20464 winapi_GenerateConsoleCtrlEvent): New typedefs.
20465 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
20467 (win32_wait): Check for remote interrupt request
20468 with check_remote_input_interrupt_request.
20469 (win32_request_interrupt): New function.
20470 (win32_target_op): Set request_interrupt to win32_request_interrupt.
20472 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20474 * win32-low.c (debug_registers_changed,
20475 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
20476 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
20477 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
20478 (thread_rec): Get context using the low target.
20479 (child_add_thread): Call thread_added on the low target,
20480 which does the same thing.
20482 (do_initial_child_stuff): Remove debug registers references.
20483 Set context using the low target. Resume threads after
20484 setting the contexts.
20485 (child_continue): Remove dead variable. Remove debug
20486 registers references.
20487 (child_fetch_inferior_registers): Go through the low target.
20488 (do_child_store_inferior_registers): Remove.
20489 (child_store_inferior_registers): Go through the low target.
20490 (win32_resume): Remove debug registers references.
20491 Set context using the low target.
20492 (handle_exception): Change return type to void. Don't record
20493 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
20494 first chance exception.
20495 (get_child_debug_event): Change return type to void. Remove
20496 goto loop. Always return after waiting for debug event.
20497 (win32_wait): Convert to switch statement. Handle spurious
20500 * win32-i386-low.c (debug_registers_changed,
20501 debug_registers_used): New.
20502 (initial_stuff): Rename to ...
20503 (i386_initial_stuff): ... this. Clear debug registers
20505 (store_debug_registers): Delete.
20506 (i386_get_thread_context): New.
20507 (load_debug_registers): Delete.
20508 (i386_set_thread_context): New.
20509 (i386_thread_added): New.
20510 (single_step): Rename to ...
20511 (i386_single_step): ... this.
20512 (do_fetch_inferior_registers): Rename to ...
20513 (i386_fetch_inferior_register): ... this.
20514 (i386_store_inferior_register): New.
20515 (the_low_target): Adapt to new interface.
20517 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
20518 (arm_get_thread_context): New.
20519 (arm_set_thread_context): New.
20521 (do_fetch_inferior_registers): Rename to ...
20522 (arm_fetch_inferior_register): ... this.
20523 (arm_store_inferior_register): New.
20524 (arm_wince_breakpoint): Reimplement as unsigned long.
20525 (arm_wince_breakpoint_len): Define.
20526 (the_low_target): Adapt to new interface.
20528 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
20529 load_debug_registers. Add get_thread_context, set_thread_context,
20530 thread_added and store_inferior_register. Rename
20531 fetch_inferior_registers to fetch_inferior_register.
20532 (regptr): Remove declaration.
20534 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20536 * linux-low.c (linux_detach): Change return type to int. Return 0.
20537 * spu-low.c (spu_detach): Likewise.
20539 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20541 * target.h (target_ops): Change return type of detach to int.
20543 (join_inferior): New.
20544 * server.c (main): Don't skip detach support on mingw32.
20545 If the inferior doesn't support detaching return error.
20546 Call join_inferior instead of using waitpid.
20547 * linux-low.c (linux_join): New.
20548 (linux_target_op): Add linux_join.
20549 * spu-low.c (spu_join): New.
20550 (spu_target_ops): Add spu_join.
20551 * win32-low.c (win32_detach): Adapt to new interface.
20552 Reopen current_process_handle before detaching. Issue a child
20553 resume before detaching.
20555 (win32_target_op): Add win32_join.
20557 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20559 * win32-low.c (win32-attach): Fix return value.
20560 * target.h (target_ops): Describe ATTACH return values.
20562 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20564 * win32-low.c (GETPROCADDRESS): Define.
20565 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
20566 (winapi_DebugSetProcessKillOnExit): Likewise.
20567 (win32_create_inferior): Force usage of ansi CreateProcessA.
20568 (win32_attach): Use GETPROCADDRESS.
20569 (win32_detach): Likewise.
20571 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20573 * win32-low.c (win32_wait): Don't use WSTOPSIG.
20575 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
20577 * win32-low.c: Commit leftover changes from 2007-03-29.
20579 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20581 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
20582 fields short instead of int. Add explicit padding.
20583 (i387_cache_to_fsave): Remove unnecessary casts.
20584 (i387_fsave_to_cache): Doc fix.
20585 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
20587 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20589 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
20590 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
20592 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20594 * configure.srv (arm*-*-mingw32ce*): Move near the other
20597 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20599 * configure.ac: Add errno checking.
20600 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
20601 sys/file.h and malloc.h.
20602 (AC_CHECK_DECLS): Add perror.
20603 (srv_mingwce): Handle.
20604 * configure.srv (i[34567]86-*-cygwin*): Add
20605 win32-i386-low.o to srv_tgtobj.
20606 (i[34567]86-*-mingw*): Likewise.
20607 (arm*-*-mingw32ce*): Add case.
20608 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20609 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
20610 [__MINGW32CE__] (strerror): New function.
20611 [__MINGW32CE__] (errno): Define to GetLastError.
20612 [__MINGW32CE__] (COUNTOF): New macro.
20613 (remote_open): Remove extra close call.
20614 * mem-break.c (delete_breakpoint_at): New function.
20615 * mem-break.h (delete_breakpoint_at): Declare.
20616 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20617 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
20618 [USE_WIN32API] (read, write): Add char* casts.
20619 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
20620 * server.h: Include wincecompat.h on Windows CE.
20621 [HAVE_ERRNO_H]: Check.
20622 (perror): Declare if not declared.
20623 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
20624 (perror_with_name): Remove errno declaration.
20625 * wincecompat.h: New.
20626 * wincecompat.c: New.
20627 * win32-low.h: New.
20628 * win32-arm-low.c: New.
20629 * win32-i386-low.c: New.
20630 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
20631 (OUTMSG2): Make it safe.
20633 (COUNTOF): New macro.
20634 (NUM_REGS): Get it from the low target.
20635 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
20636 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
20637 (thread_rec): Let low target handle debug registers.
20638 (child_add_thread): Likewise.
20639 (child_init_thread_list): Likewise.
20640 (continue_one_thread): Likewise.
20642 (do_child_fetch_inferior_registers): Move to ...
20643 * win32-i386-low.c: ... here, and rename to ...
20644 (do_fetch_inferior_registers): ... this.
20645 * win32-low.c (child_fetch_inferior_registers):
20646 Go through the low target.
20647 (do_child_store_inferior_registers): Use regptr.
20648 (strwinerror): New function.
20649 (win32_create_inferior): Handle Windows CE.
20650 Use strwinerror instead of strerror on Windows error
20651 codes. Add program to the error output.
20652 Don't close the main thread handle on Windows CE.
20653 (win32_attach): Use coredll.dll on Windows CE.
20654 (win32_kill): Close current process and current
20656 (win32_detach): Use coredll.dll on Windows CE.
20657 (win32_resume): Let low target handle debug registers, and
20659 (handle_exception): Add/Remove initial breakpoint. Avoid
20660 non-existant WSTOPSIG on Windows CE.
20661 (win32_read_inferior_memory): Cast to remove warning.
20662 (win32_arch_string): Go through the low target.
20663 (initialize_low): Call set_breakpoint_data with the low
20664 target's breakpoint.
20665 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
20666 FOP_REGNUM, mappings): Move to ...
20667 * win32-i386-low.c: ... here.
20668 * win32-low.c (win32_thread_info): Move to ...
20669 * win32-low.h: ... here.
20670 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
20671 win32-arm-low.c and wincecompat.c.
20672 (all:): Add $EXEEXT.
20673 (install-only:): Likewise.
20674 (gdbserver:): Likewise.
20675 (gdbreplay:): Likewise.
20676 * config.in: Regenerate.
20677 * configure: Regenerate.
20679 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20681 * win32-low.c: Rename typedef thread_info to
20682 win32_thread_info throughout.
20684 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20686 * win32-i386-low.c: Rename to ...
20687 * win32-low.c: ... this.
20688 * configure.srv: Replace win32-i386-low.o with win32-low.o.
20689 * Makefile.in: Likewise.
20691 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
20693 * remote-utils.c (monitor_output): Constify msg parameter.
20694 * server.h (monitor_output): Likewise.
20695 * win32-i386-low.c (handle_output_debug_string): New.
20696 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
20697 handle_output_debug_string.
20698 (get_child_debug_event): Likewise.
20700 2007-03-27 Mat Hostetter <mat@lcs.mit.edu>
20702 * server.c (main): Correct strtoul check.
20704 2007-03-27 Jon Ringle <jon@ringle.org>
20706 * linux-low.c: Check __ARCH_HAS_MMU__ also.
20708 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
20710 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
20712 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
20714 * terminal.h: Check HAVE_SGTTY_H.
20716 2007-02-27 Mat Hostetter <mat@lcs.mit.edu>
20718 * remote-utils.c (remote_open): Print out the assigned port number.
20720 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
20722 * remote-utils.c (monitor_output): New function.
20723 * server.c (debug_threads): Define here.
20724 (monitor_show_help): New function.
20725 (handle_query): Handle qRcmd.
20726 (main): Do not handle 'd' packet.
20727 * server.h (debug_threads, remote_debug, monitor_output): Declare.
20728 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
20731 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20733 * Makefile.in (EXEEXT): New.
20734 (clean): Use $(EXEEXT).
20736 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20738 * target.h (target_ops): Rename send_signal to request_interrupt,
20739 and remove enum target_signal parameter.
20740 * linux-low.c (linux_request_interrupt): Rename from
20741 linux_send_signal, and always send SIGINT.
20742 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
20743 and always send SIGINT.
20744 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
20746 (input_interrupt): Likewise.
20748 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20750 * server.c (get_features_xml): Check if target implemented
20752 * win32-i386-low.c (win32_arch_string): New.
20753 (win32_target_ops): Add win32_arch_string as arch_string member.
20755 2007-02-22 Markus Deuling <deuling@de.ibm.com>
20757 * spu-low.c (spu_arch_string): New.
20758 (spu_target_ops): Add spu_arch_string.
20760 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
20762 * remote-utils.c: Remove HAVE_TERMINAL_H check.
20763 * configure.ac: Do not check for terminal.h.
20764 * configure, config.in: Regenerated.
20766 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
20768 * Makefile.in (OBS): Add $(XML_BUILTIN).
20769 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
20771 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
20772 (arm-with-iwmmxt.c): New.
20773 * config.in, configure: Regenerate.
20774 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
20775 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
20776 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
20777 (arm*-*-linux*): Add iWMMXt and regset support.
20778 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
20779 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
20780 (arm_store_wmmxregset, target_regsets): New.
20781 * server.c (get_features_xml): Take annex argument. Check builtin
20783 (handle_query): Handle multiple annexes.
20785 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20787 * remote-utils.c [USE_WIN32API] (read, write): Define.
20788 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
20791 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
20793 * linux-i386-low.c (the_low_target): Set arch_string.
20794 * linux-x86-64-low.c (the_low_target): Likewise.
20795 * linux-low.c (linux_arch_string): New.
20796 (linux_target_ops): Add it.
20797 * linux-low.h (struct linux_target_ops): Add arch_string.
20798 * server.c (write_qxfer_response): Use const void * for DATA.
20799 (get_features_xml): New.
20800 (handle_query): Handle qXfer:features:read. Report it for qSupported.
20801 * target.h (struct target_ops): Add arch_string method.
20803 2007-01-03 Denis Pilat <denis.pilat@st.com>
20804 Daniel Jacobowitz <dan@codesourcery.com>
20806 * linux-low.c (linux_kill): Handle being called with no threads.
20807 * win32-i386-low.c (win32_kill): Likewise.
20808 (get_child_debug_event): Clear current_process_handle.
20810 2006-12-30 Denis PILAT <denis.pilat@st.com>
20811 Daniel Jacobowitz <dan@codesourcery.com>
20813 * remote-utils.c (remote_open): Check the type of specified
20814 serial port devices before opening them.
20815 * server.c (main): Kill the inferior if an error occurs during
20816 the first remote_open.
20818 2006-12-05 Markus Deuling <deuling@de.ibm.com>
20820 * README: Update supported targets.
20822 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
20824 * Makefile.in (clean): Remove reg-mips64.c.
20825 (reg-mips64.c, reg-mips64.o): New rules.
20826 * configure.srv: Handle mips64. Include regset support for mips.
20827 * linux-mips-low.c (union mips_register): New.
20828 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
20829 (mips_breakpoint, mips_breakpoint_at): Use int.
20830 (mips_collect_register, mips_supply_register)
20831 (mips_collect_register_32bit, mips_supply_register_32bit)
20832 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
20833 (mips_store_fpregset, target_regsets): New.
20834 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
20836 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
20838 * configure.srv: Add target "spu*-*-*".
20839 * Makefile.in (clean): Remove reg-spu.c.
20840 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
20841 * spu-low.c: New file.
20843 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
20845 * configure.ac: Correct td_thr_tls_get_addr test.
20846 * configure: Regenerated.
20848 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
20850 * linux-low.c (linux_wait_for_event): Reformat. Use the
20851 pass_signals array.
20852 * remote-utils.c (decode_address_to_semicolon): New.
20853 * server.c (pass_signals, handle_general_set): New.
20854 (handle_query): Mention QPassSignals for qSupported.
20855 (main): Call handle_general_set.
20856 * server.h (pass_signals, decode_address_to_semicolon): New.
20858 2006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
20860 * server.c (handle_query): Correct error handling for read_auxv.
20862 2005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
20864 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
20865 and srv_linux_thread_db to yes.
20866 * linux-s390-low.c (s390_fill_gregset): New function.
20867 (target_regsets): Define data structure.
20869 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
20871 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
20872 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
20873 * config.in, configure: Regenerated.
20874 * inferiors.c (gdb_id_to_thread): New function.
20875 (gdb_id_to_thread_id): Use it.
20876 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
20877 * linux-low.h (struct process_info): Add th member.
20878 (thread_db_get_tls_address): New prototype.
20879 * remote-utils.c (decode_address): Make non-static.
20880 * server.c (handle_query): Handle qGetTLSAddr.
20881 * server.h (gdb_id_to_thread, decode_address): New prototypes.
20882 * target.h (struct target_ops): Add get_tls_address.
20883 * thread-db.c (maybe_attach_thread): Save the thread handle.
20884 (thread_db_get_tls_address): New.
20886 2006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
20888 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
20889 (linux_resume_one_process): Take a siginfo_t *. Update all
20890 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
20891 (struct pending_signals): Add a siginfo_t.
20892 (linux_wait_for_process): Always set last_status.
20893 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
20894 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
20895 * linux-low.h (struct process_info): Add last_status.
20897 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
20899 * remote-utils.c (try_rle): New function.
20900 (putpkt_binary): Use it.
20902 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
20904 * Makefile.in (clean): Clean reg-x86-64-linux.c.
20905 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
20906 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
20907 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
20908 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
20911 2006-08-08 Richard Sandiford <richard@codesourcery.com>
20913 * server.c (terminal_fd): New variable.
20914 (old_foreground_pgrp): Likewise.
20915 (restore_old_foreground_pgrp): New function.
20916 (start_inferior): Record the terminal file descriptor in terminal_fd
20917 and its original foreground group in old_foreground_pgrp. Register
20918 restore_old_foreground_pgrp with atexit().
20920 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
20922 * server.c (handle_query): Correct qPart to qXfer.
20924 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
20926 * configure.ac: Check for more headers which are missing on
20927 Windows. Automatically supply -lwsock32 and USE_WIN32API.
20928 * configure.srv: Add Cygwin and mingw32.
20929 * remote-utils.c: Don't include headers unconditionally which
20930 are missing on mingw32. Include <winsock.h> for mingw32.
20931 (remote_open): Adjust for mingw32 support. Flush
20932 standard error after writing to it.
20933 (remote_close, putpkt_binary, input_interrupt, block_async_io)
20934 (unblock_async_io, enable_async_io, disable_async_io)
20935 (readchar, getpkt): Update for Winsock support.
20936 (prepare_resume_reply): Expect a protocol signal number.
20937 * server.c: Disable <sys/wait.h> on mingw32.
20938 (start_inferior): Adjust for mingw32 support. Flush
20939 standard error after writing to it.
20940 (attach_inferior): Likewise. Use protocol signal
20942 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
20944 * win32-i386-low.c: New file.
20945 * Makefile.in (XM_CLIBS): Set.
20946 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
20947 (win32-i386-low.o): New dependency rule.
20948 * linux-low.c (linux_wait): Use target signal numbers.
20949 * target.h (struct target_ops): Doc fix.
20950 * server.h (target_signal_to_name): New prototype.
20951 * gdbreplay.c: Don't include headers unconditionally which
20952 are missing on mingw32. Include <winsock.h> for mingw32.
20953 (remote_close, remote_open): Adjust for Winsock support.
20954 * configure, config.in: Regenerated.
20956 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20958 * server.c (decode_xfer_read, write_qxfer_response): New.
20959 (handle_query): Take a packet length argument. Handle
20960 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
20961 the qSupported response.
20962 (main): Update call to handle_query.
20964 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
20966 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
20967 (putpkt_binary): Renamed from putpkt and adjusted for binary
20969 (putpkt): New wrapper for putpkt_binary.
20970 (readchar): Don't mask off the high bit.
20971 (decode_X_packet): New function.
20972 * server.c (main): Call putpkt_binary if a handler sets the packet
20973 length. Save the length of the incoming packet. Handle 'X'.
20974 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
20976 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
20978 * server.c (handle_query): Handle qSupported.
20980 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
20982 * remote-utils.c (all_symbols_looked_up): New variable.
20983 (look_up_one_symbol): Check it.
20984 * server.h (look_up_one_symbol): New declaration.
20985 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
20987 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
20989 * Makefile.in (linux-arm-low.o): Update dependencies.
20990 * linux-arm-low.c: Include "gdb_proc_service.h".
20991 (PTRACE_GET_THREAD_AREA): Define.
20992 (ps_get_thread_area): New function.
20994 2006-05-09 Nathan Sidwell <nathan@codesourcery.com>
20996 * configure.srv (m68k*-*-uclinux*): New target.
20997 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
20998 (linux_resume_one_process): Remove extraneous cast.
20999 (linux_read_offsets): New.
21000 (linux_target_op): Add linux_read_offsets on mmuless systems.
21001 * server.c (handle_query): Add qOffsets logic.
21002 * target.h (struct target_ops): Add read_offsets.
21004 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21006 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
21007 (PTRACE_GET_THREAD_AREA): Define.
21008 (ps_get_thread_area): New function.
21009 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
21010 (linux-x86-64-low.o): Update.
21012 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21014 * configure.ac: Remove checks for prfpregset_t.
21015 * gdb_proc_service.h: New file.
21016 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
21017 new "gdb_proc_service.h".
21018 * proc-service.c: Likewise.
21019 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
21020 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
21021 * Makefile.in (gdb_proc_service_h): Updated.
21022 * configure, config.in: Regenerated.
21024 2006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21026 * remote-utils.c (prepare_resume_reply): Move declaration
21027 of gdb_id_from_wait to the top of the block.
21029 2006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
21031 * linux-low.c (regsets_store_inferior_registers): Read the regset
21032 from the target before filling it.
21034 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21036 * server.c (attach_inferior): Return SIGTRAP for a successful
21039 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
21041 * Makefile.in (OBS): Add version.o.
21042 (STAGESTUFF): Delete.
21043 (version.o): Add dependencies.
21044 (version.c): Replace rule.
21045 (clean): Remove version.c.
21046 * server.c (gdbserver_version): New.
21047 (gdbserver_usage): Use printf.
21048 (main): Handle --version and --help.
21049 * server.h (version, host_name): Add declarations.
21051 2005-12-23 Eli Zaretskii <eliz@gnu.org>
21063 * linux-x86-64-low.c:
21065 * linux-s390-low.c:
21066 * linux-ppc64-low.c:
21068 * linux-mips-low.c:
21069 * linux-m68k-low.c:
21070 * linux-m32r-low.c:
21073 * linux-ia64-low.c:
21074 * linux-i386-low.c:
21075 * linux-crisv32-low.c:
21087 * gdbserver.1: Add (C) after Copyright. Update the FSF
21090 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
21092 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
21093 (arm_breakpoint_at): Recognize both breakpoints.
21094 (the_low_target): Use the correct breakpoint instruction.
21096 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
21098 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
21099 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
21100 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
21101 (the_low_target): Update.
21103 2005-10-25 Andreas Schwab <schwab@suse.de>
21105 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
21107 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
21108 (ia64_num_regs): Reduce to 462.
21110 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
21112 * acinclude.m4: Correct quoting.
21113 * aclocal.m4: Regenerated.
21115 Suggested by SZOKOVACS Robert <szo@ies.hu>:
21116 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
21117 (thread_db_init): Call thread_db_err_str.
21118 * configure.ac: Check for TD_VERSION.
21119 * config.in, configure: Regenerated.
21121 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21123 * server.h (error, fatal, warning): Add ATTR_FORMAT.
21125 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21127 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
21128 is not available. Define HAVE_PTRACE_GETREGS if it is.
21129 * config.in, configure: Regenerated.
21130 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
21131 * linux-i386-low.c, linux-m68k-low.c: Update to use
21132 HAVE_PTRACE_GETREGS.
21133 * linux-low.c (regsets_fetch_inferior_registers)
21134 (regsets_store_inferior_registers): Only return 0 if we processed
21136 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
21137 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
21139 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21141 * inferiors.c (struct thread_info): Add gdb_id.
21142 (add_thread): Add gdb_id argument.
21143 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
21144 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
21145 calls to add_thread.
21146 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
21147 * server.c (handle_query): Use thread_to_gdb_id.
21148 (handle_v_cont, main): Use gdb_id_to_thread_id.
21149 * server.h (add_thread): Update prototype.
21150 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
21153 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21155 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
21156 left-padded registers.
21157 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
21158 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
21160 2005-07-01 Steve Ellcey <sje@cup.hp.com>
21162 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
21163 * configure: Regenerate.
21164 * config.in: Regenerate.
21165 * server.h (NEED_DECLARATION_STRERROR):
21166 Replace with !HAVE_DECL_STRERROR.
21168 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
21170 * linux-low.c (linux_wait, linux_send_signal): Don't test
21171 an unsigned long variable for > 0 if it could be MAX_ULONG.
21172 * server.c (myresume): Likewise.
21173 * target.c (set_desired_inferior): Likewise.
21175 2005-06-13 Mark Kettenis <kettenis@gnu.org>
21177 * configure.ac: Simplify and improve check for socklen_t.
21178 * configure, config.in: Regenerate.
21180 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
21182 * acconfig.h: Remove.
21183 * configure.ac: Add a test for socklen_t. Use three-argument
21184 AC_DEFINE throughout.
21185 * config.in: Regenerated using autoheader 2.59.
21186 * configure: Regenerated.
21188 * gdbreplay.c (socklen_t): Provide a default.
21189 (remote_open): Use socklen_t.
21190 * remote-utils.c (socklen_t): Provide a default.
21191 (remote_open): Use socklen_t.
21192 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
21195 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
21197 * linux-low.c (linux_read_memory, linux_write_memory)
21198 (linux_read_auxv): Likewise.
21199 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
21200 (check_mem_write): Likewise.
21201 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
21203 * regcache.c (struct inferior_rgcache_data, registers_to_string)
21204 (registers_from_string, register_data): Likewise.
21205 * server.c (handle_query, main): Likewise.
21206 * server.h (convert_ascii_to_int, convert_int_to_ascii)
21207 (decode_M_packet): Likewise.
21208 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
21209 * target.h (struct target_ops): Update read_memory, write_memory,
21211 (read_inferior_memory, write_inferior_memory): Update.
21212 * linux-low.h (struct linux_target_ops): Change type of breakpoint
21213 to unsigned char *.
21214 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
21215 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
21216 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
21217 linux-s390-low.c, linux-sh-low.c: Update for changes in
21218 read_inferior_memory and the_low_target->breakpoint.
21220 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
21222 * Makefile.in (SFILES): Add linux-ppc64-low.c.
21223 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
21224 * configure.srv: Add powerpc64-*-linux*.
21225 * linux-ppc64-low.c: New file.
21227 2005-05-23 Orjan Friberg <orjanf@axis.com>
21229 * linux-cris-low.c: New file with support for CRIS.
21230 * linux-crisv32-low.c: Ditto for CRISv32.
21231 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
21232 (clean): Add reg-cris.c and reg-crisv32.c.
21233 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
21234 reg-crisv32.o, and reg-crisv32.c to make rules.
21235 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
21236 recognized targets.
21238 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
21240 * linux-low.c (fetch_register): Ensure buffer size is a multiple
21241 of sizeof (PTRACE_XFER_TYPE).
21242 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
21244 2005-05-12 Orjan Friberg <orjanf@axis.com>
21246 * target.h (struct target_ops): Add insert_watchpoint,
21247 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
21248 pointers for hardware watchpoint support.
21249 * linux-low.h (struct linux_target_ops): Ditto.
21250 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
21251 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
21252 to linux_target_ops.
21253 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
21255 * server.c (main): Recognize 'Z' and 'z' packets.
21257 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
21259 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
21260 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
21261 (the_low_target): Add new members.
21263 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21265 * proc-service.c (ps_lgetregs): Search all_processes instead of
21268 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21270 * server.c (start_inferior): Change return type to int.
21271 (attach_inferior): Change sigptr to int *.
21272 (handle_v_cont, handle_v_requests): Change signal to int *.
21273 (main): Change signal to int.
21275 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
21277 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
21278 * configure.srv: Add m32r*-*-linux*.
21279 * linux-m32r-low.c: New file.
21281 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
21283 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
21285 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21287 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
21288 Take unsigned long arguments for PIDs.
21289 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
21290 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
21291 (wait_for_sigstop, linux_resume_one_process)
21292 (regsets_fetch_inferior_registers, linux_send_signal)
21293 (linux_read_auxv): Likewise. Update the types of variables holding
21294 PIDs. Update format string specifiers.
21295 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
21296 * remote-utils.c (prepare_resume_reply): Likewise.
21297 * server.c (cont_thread, general_thread, step_thread)
21298 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
21300 (handle_query): Update format specifiers.
21301 (handle_v_cont, main): Use strtoul for thread IDs.
21302 * server.h (struct inferior_list_entry): Use unsigned long for ID.
21303 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
21304 (general_thread, step_thread, thread_from_wait)
21305 (old_thread_from_wait): Update.
21306 * target.h (struct thread_resume): Use unsigned long for THREAD.
21307 (struct target_ops): Use unsigned long for arguments to attach and
21310 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
21312 * acinclude.m4: Include bfd/bfd.m4 directly.
21313 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
21314 <agriffis@toolchain.org>.
21315 * aclocal.m4, configure: Regenerated.
21317 2005-01-07 Andrew Cagney <cagney@gnu.org>
21319 * configure.ac: Rename configure.in, require autoconf 2.59.
21320 * configure: Re-generate.
21322 2004-12-08 Daniel Jacobowitz <dan@debian.org>
21324 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
21325 LIBS when finished.
21326 * aclocal.m4: Regenerated.
21327 * configure: Regenerated.
21329 2004-11-21 Andreas Schwab <schwab@suse.de>
21331 * linux-m68k-low.c (m68k_num_gregs): Define.
21332 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
21333 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
21334 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
21335 (m68k_breakpoint_at): New. Add to the_low_target.
21337 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
21338 srv_linux_thread_db to yes.
21340 2004-10-20 Joel Brobecker <brobecker@gnat.com>
21342 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
21343 (ARCH_SET_FS): Likewise.
21344 (ARCH_GET_FS): Likewise.
21345 (ARCH_GET_GS): Likewise.
21347 2004-10-16 Daniel Jacobowitz <dan@debian.org>
21349 * linux-i386-low.c (ps_get_thread_area): New.
21350 * linux-x86-64-low.c (ps_get_thread_area): New.
21351 * linux-low.c: Include <sys/syscall.h>.
21352 (linux_kill_one_process): Don't kill the first thread here.
21353 (linux_kill): Kill the first thread here.
21354 (kill_lwp): New function.
21355 (send_sigstop, linux_send_signal): Use it.
21356 * proc-service.c: Clean up #ifdefs.
21357 (fpregset_info): Delete.
21358 (ps_lgetregs): Update and enable implementation.
21359 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
21361 * remote-utils.c (struct sym_cache, symbol_cache): New.
21362 (input_interrupt): Print a clearer message.
21363 (async_io_enabled): New variable.
21364 (enable_async_io, disable_async_io): Use it. Update comments.
21365 (look_up_one_symbol): Use the symbol cache.
21366 * thread-db.c (thread_db_look_up_symbols): New function.
21367 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
21369 2004-10-16 Daniel Jacobowitz <dan@debian.org>
21371 * configure.in: Test for -rdynamic.
21372 * configure: Regenerated.
21373 * Makefile (INTERNAL_LDFLAGS): New.
21374 (gdbserver, gdbreplay): Use it.
21376 2004-09-02 Andrew Cagney <cagney@gnu.org>
21378 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
21380 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
21382 * linux-low.c (linux_wait): Clear all_processes list also.
21384 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
21386 * linux-low.c: Include <errno.h>. Remove extern declaration of
21389 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
21391 * gdbreplay.c, server.h, utils.c: Update copyright years.
21393 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21395 * server.c (main): Print child status or termination signal from
21396 variable 'signal', not 'sig'.
21398 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21400 * linux-low.c (linux_read_memory): Change return type to
21401 int. Check for and return error from ptrace().
21402 * target.c (read_inferior_memory): Change return type to int. Pass
21403 back return status from the_target->read_memory().
21404 * target.h (struct target_ops): Adapt *read_memory() prototype.
21406 (read_inferior_memory): Adapt prototype.
21407 * server.c (main): Return an error packet if
21408 read_inferior_memory() returns an error.
21410 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
21412 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
21413 Unify with other clean targets.
21415 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21417 * server.c (handle_v_cont): Call set_desired_inferior.
21419 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21421 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
21423 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21425 * linux-low.c (linux_wait): Unblock async I/O.
21426 (linux_resume): Block and enable async I/O.
21427 * remote-utils.c (block_async_io, unblock_async_io): New functions.
21428 * server.h (block_async_io, unblock_async_io): Add prototypes.
21430 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21432 * remote-utils.c (remote_open): Print a status notice after
21433 opening a TCP port.
21434 * server.c (attach_inferior): Print a status notice after
21437 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21439 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
21441 2004-02-26 Daniel Jacobowitz <drow@mvista.com>
21443 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
21445 * server.c, target.h: Update copyright years.
21447 2004-02-25 Roland McGrath <roland@redhat.com>
21449 * target.h (struct target_ops): New member `read_auxv'.
21450 * server.c (handle_query): Handle qPart:auxv:read: query using that.
21451 * linux-low.c (linux_read_auxv): New function.
21452 (linux_target_ops): Initialize `read_auxv' member to that.
21454 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21456 Committed by Jim Blandy <jimb@redhat.com>.
21458 * linux-s390-low.c (s390_num_regs): Update.
21459 (s390_regmap): Remove control registers. Use __s390x__ predefine
21460 instead of GPR_SIZE to distiguish s390 and s390x targets.
21462 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
21464 * linux-low.c: Update copyright year.
21465 (check_removed_breakpoint): Clear pending_is_breakpoint.
21466 (linux_set_resume_request, linux_queue_one_thread)
21467 (resume_status_pending_p): New functions.
21468 (linux_continue_one_thread): Use process->resume.
21469 (linux_resume): Only resume threads if there are no pending events.
21470 * linux-low.h (struct process_info): Add resume request
21473 2004-01-30 Daniel Jacobowitz <drow@mvista.com>
21475 * regcache.c (new_register_cache): Clear the allocated register
21476 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
21478 2003-10-13 Daniel Jacobowitz <drow@mvista.com>
21480 * linux-low.c (linux_resume): Take a struct thread_resume *
21482 (linux_wait): Update call.
21483 (resume_ptr): New static variable.
21484 (linux_continue_one_thread): Renamed from
21485 linux_continue_one_process. Use resume_ptr.
21486 (linux_resume): Use linux_continue_one_thread.
21487 * server.c (handle_v_cont, handle_v_requests): New functions.
21488 (myresume): New function.
21489 (main): Handle 'v' case.
21490 * target.h (struct thread_resume): New type.
21491 (struct target_ops): Change argument of "resume" to struct
21493 (myresume): Delete macro.
21495 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
21497 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
21498 (uninstall): Support DESTDIR.
21500 Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
21502 * configure.srv: Add xscale*linux copy of arm*linux entry.
21504 2003-07-24 Daniel Jacobowitz <drow@mvista.com>
21506 * linux-arm-low.c (arm_reinsert_addr): New function.
21507 (the_low_target): Add arm_reinsert_addr.
21509 2003-07-08 Mark Kettenis <kettenis@gnu.org>
21511 * mem-break.c: Remove whitespace at end of file.
21513 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
21515 * configure.in: Check whether we need to prototype strerror.
21516 * server.h: Optionally prototype strerror.
21517 * gdbreplay.c (perror_with_name): Use strerror.
21518 * linux-low.c (linux_attach_lwp): Use strerror.
21519 * utils.c (perror_with_name): Use strerror.
21520 * config.in, configure: Regenerated.
21522 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
21524 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
21525 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
21527 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
21529 * Makefile.in (SFILES): Update.
21530 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
21531 low-sun3.c: Remove files.
21533 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
21535 * linux-low.c: Move comment to linux_thread_alive where it belonged.
21536 (linux_detach_one_process, linux_detach): New functions.
21537 (linux_target_ops): Add linux_detach.
21538 * server.c (main): Handle 'D' packet.
21539 * target.h (struct target_ops): Add "detach" member.
21540 (detach_inferior): Define.
21542 2003-06-13 Mark Kettenis <kettenis@gnu.org>
21544 From Kelley Cook <kelleycook@wideopenwest.com>:
21545 * configure.srv: Accept i[34567]86 variants.
21547 2003-06-05 Daniel Jacobowitz <drow@mvista.com>
21549 * linux-low.c (linux_wait_for_event): Correct comment typos.
21550 (linux_resume_one_process): Call check_removed_breakpoint.
21551 (linux_send_signal): New function.
21552 (linux_target_ops): Add linux_send_signal.
21553 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
21555 * target.h (struct target_ops): Add send_signal.
21557 2003-05-29 Jim Blandy <jimb@redhat.com>
21559 * linux-low.c (usr_store_inferior_registers): Transfer buf in
21560 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
21561 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
21562 away part of the register's value.
21564 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
21566 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
21567 (linux_wait_for_event, linux_init_signals): Likewise.
21569 2003-03-17 Daniel Jacobowitz <drow@mvista.com>
21571 * configure.in: Check for stdlib.h.
21572 * configure: Regenerated.
21573 * config.in: Regenerated.
21575 2003-01-04 Andreas Schwab <schwab@suse.de>
21577 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
21579 2003-01-02 Andrew Cagney <ac131313@redhat.com>
21581 * Makefile.in: Remove obsolete code.
21583 2002-11-20 Daniel Jacobowitz <drow@mvista.com>
21585 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
21586 defined(PT_FPR0_HI).
21588 2002-11-17 Stuart Hughes <seh@zee2.com>
21590 * linux-arm-low.c (arm_num_regs): Increase.
21591 (arm_regmap): Include status register.
21593 2002-11-17 Daniel Jacobowitz <drow@mvista.com>
21595 * linux-low.c (register_addr): Remove incorrect -1 check.
21597 2002-08-29 Daniel Jacobowitz <drow@mvista.com>
21599 * linux-low.c (linux_create_inferior): Call setpgid. Return
21601 (unstopped_p, linux_signal_pid): Remove.
21602 (linux_target_ops): Remove linux_signal_pid.
21603 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
21604 global instead of target method.
21605 * target.h (struct target_ops): Remove signal_pid. Update comment
21606 for create_inferior.
21607 * server.c (signal_pid): New variable.
21608 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
21609 gdbserver. Set the child to be the foreground process group.
21610 (attach_inferior): Set signal_pid.
21612 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
21614 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
21616 2002-08-20 Jim Blandy <jimb@redhat.com>
21618 * Makefile.in (LDFLAGS): Allow the configure script to establish a
21621 2002-08-01 Andrew Cagney <cagney@redhat.com>
21623 * Makefile.in: Make chill references obsolete.
21625 2002-07-24 Kevin Buettner <kevinb@redhat.com>
21627 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
21628 * configure: Regenerate.
21629 * config.in: Regenerate.
21631 2002-07-09 David O'Brien <obrien@FreeBSD.org>
21633 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
21634 (perror_with_name, remote_close, remote_open, expect, play): Static.
21636 2002-07-04 Michal Ludvig <mludvig@suse.cz>
21638 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
21639 byte offsets instead of an array of indexes.
21640 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
21642 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
21644 * regcache.c: Add comment.
21646 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
21648 * thread-db.c: New file.
21649 * proc-service.c: New file.
21650 * acinclude.m4: New file.
21651 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
21652 proc-service.o, and thread-db.o.
21653 (linux-low.o): Add USE_THREAD_DB.
21654 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
21655 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
21656 * aclocal.m4: Regenerated.
21657 * config.in: Regenerated.
21658 * configure: Regenerated.
21659 * configure.in: Check for proc_service.h, sys/procfs.h,
21660 thread_db.h, and linux/elf.h headrs.
21661 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
21662 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
21663 Check for -lthread_db and thread support.
21664 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
21665 PowerPC, and SuperH.
21666 * i387-fp.c: Constify arguments.
21667 * i387-fp.h: Likewise.
21668 * inferiors.c: (struct thread_info): Renamed from
21669 `struct inferior_info'. Remove PID member. Use generic inferior
21670 list header. All uses updated.
21671 (inferiors, signal_pid): Removed.
21672 (all_threads): New variable.
21673 (get_thread): Define.
21674 (add_inferior_to_list): New function.
21675 (for_each_inferior): New function.
21676 (change_inferior_id): New function.
21677 (add_inferior): Removed.
21678 (remove_inferior): New function.
21679 (add_thread): New function.
21680 (free_one_thread): New function.
21681 (remove_thread): New function.
21682 (clear_inferiors): Use for_each_inferior and free_one_thread.
21683 (find_inferior): New function.
21684 (find_inferior_id): New function.
21685 (inferior_target_data): Update argument type.
21686 (set_inferior_target_data): Likewise.
21687 (inferior_regcache_data): Likewise.
21688 (set_inferior_regcache_data): Likewise.
21689 * linux-low.c (linux_bp_reinsert): Remove.
21690 (all_processes, stopping_threads, using_thrads)
21691 (struct pending_signals, debug_threads, pid_of): New.
21692 (inferior_pid): Replace with macro.
21693 (struct inferior_linux_data): Remove.
21694 (get_stop_pc, add_process): New functions.
21695 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
21696 Use add_process and add_thread.
21697 (linux_attach_lwp): New function, based on old linux_attach. Use
21698 add_process and add_thread. Set stop_expected for new threads.
21699 (linux_attach): New function.
21700 (linux_kill_one_process): New function.
21701 (linux_kill): Kill all LWPs.
21702 (linux_thread_alive): Use find_inferior_id.
21703 (check_removed_breakpoints, status_pending_p): New functions.
21704 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
21705 Update. Use WNOHANG. Wait for cloned processes also. Update process
21706 struct for the found process.
21707 (linux_wait_for_event): New function.
21708 (linux_wait): Use it. Support LWPs.
21709 (send_sigstop, wait_for_sigstop, stop_all_processes)
21710 (linux_resume_one_process, linux_continue_one_process): New functions.
21711 (linux_resume): Support LWPs.
21712 (REGISTER_RAW_SIZE): Remove.
21713 (fetch_register): Use register_size instead. Call supply_register.
21714 (usr_store_inferior_registers): Likewise. Call collect_register.
21715 Fix recursive case.
21716 (regsets_fetch_inferior_registers): Improve error message.
21717 (regsets_store_inferior_registers): Add debugging.
21718 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
21719 (unstopped_p, linux_signal_pid): New functions.
21720 (linux_target_ops): Add linux_signal_pid.
21721 (linux_init_signals): New function.
21722 (initialize_low): Call it. Initialize using_threads.
21723 * regcache.c (inferior_regcache_data): Add valid
21725 (get_regcache): Fetch registers lazily. Add fetch argument
21726 and update all callers.
21727 (regcache_invalidate_one, regcache_invalidate): New
21729 (new_register_cache): Renamed from create_register_cache.
21730 Return the new regcache.
21731 (free_register_cache): Change argument to a void *.
21732 (registers_to_string, registers_from_string): Call get_regcache
21733 with fetch flag set.
21734 (register_data): Make static. Pass fetch flag to get_regcache.
21735 (supply_register): Call get_regcache with fetch flag clear.
21736 (collect_register): Call get_regcache with fetch flag set.
21737 (collect_register_as_string): New function.
21738 * regcache.h: Update.
21739 * remote-utils.c (putpkt): Flush after debug output and use
21741 Handle input interrupts while waiting for an ACK.
21742 (input_interrupt): Use signal_pid method.
21743 (getpkt): Flush after debug output and use stderr.
21744 (outreg): Use collect_register_as_string.
21745 (new_thread_notify, dead_thread_notify): New functions.
21746 (prepare_resume_reply): Check using_threads. Set thread_from_wait
21747 and general_thread.
21748 (look_up_one_symbol): Flush after debug output.
21749 * server.c (step_thread, server_waiting): New variables.
21750 (start_inferior): Don't use signal_pid. Update call to mywait.
21751 (attach_inferior): Update call to mywait.
21752 (handle_query): Handle qfThreadInfo and qsThreadInfo.
21753 (main): Don't fetch/store registers explicitly. Use
21754 set_desired_inferior. Support proposed ``Hs'' packet. Update
21756 * server.h: Update.
21757 (struct inferior_list, struct_inferior_list_entry): New.
21758 * target.c (set_desired_inferior): New.
21759 (write_inferior_memory): Constify.
21760 (mywait): New function.
21761 * target.h: Update.
21762 (struct target_ops): New signal_pid method.
21763 (mywait): Removed macro, added prototype.
21765 * linux-low.h (regset_func): Removed.
21766 (regset_fill_func, regset_store_func): New.
21767 (enum regset_type): New.
21768 (struct regset_info): Add type field. Use new operation types.
21769 (struct linux_target_ops): stop_pc renamed to get_pc.
21770 Add decr_pc_after_break and breakpoint_at.
21771 (get_process, get_thread_proess, get_process_thread)
21772 (strut process_info, all_processes, linux_attach_lwp)
21773 (thread_db_init): New.
21775 * linux-arm-low.c (arm_get_pc, arm_set_pc,
21776 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
21777 (the_low_target): Add new members.
21778 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
21779 (i386_store_fpxregset): Constify.
21780 (target_regsets): Add new kind identifier.
21781 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
21782 (i386_set_pc): Add debugging.
21783 (i386_breakpoint_at): New function.
21784 (the_low_target): Add new members.
21785 * linux-mips-low.c (mips_get_pc, mips_set_pc)
21786 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
21787 (mips_breakpoint_at): New.
21788 (the_low_target): Add new members.
21789 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
21790 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
21791 (the_low_target): Add new members.
21792 * linux-sh-low.c (sh_get_pc, sh_set_pc)
21793 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
21794 (the_low_target): Add new members.
21795 * linux-x86-64-low.c (target_regsets): Add new kind
21798 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
21800 From Martin Pool <mbp@samba.org>:
21801 * server.c (gdbserver_usage): New function.
21804 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
21806 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
21807 stop_at -> stop_pc.
21809 2002-05-04 Andrew Cagney <ac131313@redhat.com>
21811 * Makefile.in: Remove obsolete code.
21813 2002-04-24 Michal Ludvig <mludvig@suse.cz>
21815 * linux-low.c (regsets_fetch_inferior_registers),
21816 (regsets_store_inferior_registers): Removed cast to int from
21818 * regcache.h: Added declaration of struct inferior_info.
21820 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
21822 * inferiors.c (struct inferior_info): Add regcache_data.
21823 (add_inferior): Call create_register_cache.
21824 (clear_inferiors): Call free_register_cache.
21825 (inferior_regcache_data, set_inferior_regcache_data): New functions.
21826 * regcache.c (struct inferior_regcache_data): New.
21827 (registers): Remove.
21828 (get_regcache): New function.
21829 (create_register_cache, free_register_cache): New functions.
21830 (set_register_cache): Don't initialize the register cache here.
21831 (registers_to_string, registers_from_string, register_data): Call
21833 * regcache.h: Add prototypes.
21834 * server.h: Likewise.
21836 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
21838 * mem-break.c: New file.
21839 * mem-break.h: New file.
21840 * Makefile.in: Add mem-break.o rule; update server.h
21842 * inferiors.c (struct inferior_info): Add target_data
21844 (clear_inferiors): Free target_data member if set.
21845 (inferior_target_data, set_inferior_target_data): New functions.
21846 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
21847 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
21848 * linux-low.c (linux_bp_reinsert): New variable.
21849 (struct inferior_linux_data): New.
21850 (linux_create_inferior): Use set_inferior_target_data.
21851 (linux_attach): Likewise. Call add_inferior.
21852 (linux_wait_for_one_inferior): New function.
21853 (linux_wait): Call it.
21854 (linux_write_memory): Add const.
21855 (initialize_low): Call set_breakpoint_data.
21856 * linux-low.h (struct linux_target_ops): Add breakpoint
21858 * server.c (attach_inferior): Remove extra add_inferior
21860 * server.h: Include mem-break.h. Update inferior.c
21862 * target.c (read_inferior_memory)
21863 (write_inferior_memory): New functions.
21864 * target.h (read_inferior_memory)
21865 (write_inferior_memory): Change macros to prototypes.
21866 (struct target_ops): Update comments. Add const to write_memory
21869 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
21871 * linux-low.c (usr_store_inferior_registers): Support
21872 registers which are allowed to fail to store.
21873 * linux-low.h (linux_target_ops): Likewise.
21874 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
21875 (ppc_cannot_store_register): FPSCR may not be storable.
21877 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
21879 * server.h: Include <string.h> if HAVE_STRING_H.
21880 * ChangeLog: Correct paths in last ChangeLog entry.
21882 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
21884 * linux-low.h: Remove obsolete prototypes.
21885 (struct linux_target_ops): New.
21886 (extern the_low_target): New.
21887 * linux-low.c (num_regs, regmap): Remove declarations.
21888 (register_addr): Use the_low_target explicitly.
21889 (fetch_register): Likewise.
21890 (usr_fetch_inferior_registers): Likewise.
21891 (usr_store_inferior_registers): Likewise.
21892 * linux-arm-low.c (num_regs): Remove.
21893 (arm_num_regs): Define.
21894 (arm_regmap): Renamed from regmap, made static.
21895 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
21897 (arm_cannot_store_register): Renamed from cannot_store_register,
21899 (the_low_target): New.
21900 * linux-i386-low.c (num_regs): Remove.
21901 (i386_num_regs): Define.
21902 (i386_regmap): Renamed from regmap, made static.
21903 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
21905 (i386_cannot_store_register): Renamed from cannot_store_register,
21907 (the_low_target): New.
21908 * linux-ia64-low.c (num_regs): Remove.
21909 (ia64_num_regs): Define.
21910 (ia64_regmap): Renamed from regmap, made static.
21911 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
21913 (ia64_cannot_store_register): Renamed from cannot_store_register,
21915 (the_low_target): New.
21916 * linux-m68k-low.c (num_regs): Remove.
21917 (m68k_num_regs): Define.
21918 (m68k_regmap): Renamed from regmap, made static.
21919 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
21921 (m68k_cannot_store_register): Renamed from cannot_store_register,
21923 (the_low_target): New.
21924 * linux-mips-low.c (num_regs): Remove.
21925 (mips_num_regs): Define.
21926 (mips_regmap): Renamed from regmap, made static.
21927 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
21929 (mips_cannot_store_register): Renamed from cannot_store_register,
21931 (the_low_target): New.
21932 * linux-ppc-low.c (num_regs): Remove.
21933 (ppc_num_regs): Define.
21934 (ppc_regmap): Renamed from regmap, made static.
21935 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
21937 (ppc_cannot_store_register): Renamed from cannot_store_register,
21939 (the_low_target): New.
21940 * linux-s390-low.c (num_regs): Remove.
21941 (s390_num_regs): Define.
21942 (s390_regmap): Renamed from regmap, made static.
21943 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
21945 (s390_cannot_store_register): Renamed from cannot_store_register,
21947 (the_low_target): New.
21948 * linux-sh-low.c (num_regs): Remove.
21949 (sh_num_regs): Define.
21950 (sh_regmap): Renamed from regmap, made static.
21951 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
21953 (sh_cannot_store_register): Renamed from cannot_store_register,
21955 (the_low_target): New.
21956 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
21957 (the_low_target): New.
21959 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
21961 * Makefile.in: Add stamp-h target.
21962 * configure.in: Create stamp-h.
21963 * configure: Regenerated.
21965 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
21967 * inferiors.c: New file.
21968 * target.c: New file.
21969 * target.h: New file.
21970 * Makefile.in: Add target.o and inferiors.o. Update
21972 * linux-low.c (inferior_pid): New static variable,
21973 moved from server.c.
21974 (linux_create_inferior): Renamed from create_inferior.
21975 Call add_inferior. Return 0 on success instead of a PID.
21976 (linux_attach): Renamed from myattach.
21977 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
21978 (linux_thread_alive): Renamed from mythread_alive.
21979 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
21981 (linux_resume): Renamed from myresume. Add missing ``return 0''.
21982 (regsets_store_inferior_registers): Correct error message.
21983 Add missing ``return 0''.
21984 (linux_fetch_registers): Renamed from fetch_inferior_registers.
21985 (linux_store_registers): Renamed from store_inferior_registers.
21986 (linux_read_memory): Renamed from read_inferior_memory.
21987 (linux_write_memory): Renamed from write_inferior_memory.
21988 (linux_target_ops): New structure.
21989 (initialize_low): Call set_target_ops ().
21990 * remote-utils.c (unhexify): New function.
21991 (hexify): New function.
21992 (input_interrupt): Send signals to ``signal_pid''.
21993 * server.c (inferior_pid): Remove.
21994 (start_inferior): Update create_inferior call.
21995 (attach_inferior): Call add_inferior.
21996 (handle_query): New function.
21997 (main): Call handle_query for `q' packets.
21998 * server.h: Include "target.h". Remove obsolete prototypes.
21999 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
22001 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22003 * Makefile.in: Add WARN_CFLAGS. Update configury
22005 * configure.in: Check for <string.h>
22006 * configure: Regenerate.
22007 * config.in: Regenerate.
22008 * gdbreplay.c: Include needed system headers.
22009 (remote_open): Remove strchr prototype.
22010 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
22011 * regcache.c (supply_register): Change buf argument to const void *.
22012 (supply_register_by_name): Likewise.
22013 (collect_register): Change buf argument to void *.
22014 (collect_register_by_name): Likewise.
22015 * regcache.h: Add missing prototypes.
22016 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
22017 * server.c (handle_query): New function.
22018 (attached): New static variable, moved out of main.
22019 (main): Quiet longjmp clobber warnings.
22020 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
22021 * utils.c (error): Remove NORETURN.