1 2020-04-08 Tom Tromey <tromey@adacore.com>
3 * win32-low.c (get_image_name): Remove.
4 (handle_load_dll): Update.
6 2020-04-08 Tom Tromey <tromey@adacore.com>
8 * win32-low.c (windows_nat::thread_rec): Rename from thread_rec.
9 No longer static. Change parameters.
10 (child_add_thread, child_fetch_inferior_registers)
11 (child_store_inferior_registers, win32_resume)
12 (win32_get_tib_address): Update.
14 2020-04-08 Tom Tromey <tromey@adacore.com>
16 * win32-low.h (struct win32_target_ops): Use qualified names where
18 * win32-i386-low.c: Add "using namespace".
19 * win32-low.c: Add "using namespace".
20 * win32-arm-low.c: Add "using namespace".
22 2020-04-08 Tom Tromey <tromey@adacore.com>
24 * win32-low.c (delete_thread_info): Don't call CloseHandle.
26 2020-04-08 Tom Tromey <tromey@adacore.com>
28 * win32-low.c (win32_require_context, suspend_one_thread): Use
29 windows_thread_info::suspend.
30 (continue_one_thread): Use windows_thread_info::resume.
31 * configure.srv (srv_tgtobj): Add windows-nat.o when needed.
33 2020-04-08 Tom Tromey <tromey@adacore.com>
35 * win32-i386-low.c (update_debug_registers)
36 (i386_prepare_to_resume, i386_thread_added): Update.
38 2020-04-08 Tom Tromey <tromey@adacore.com>
40 * win32-low.c (child_add_thread): Use new.
41 (delete_thread_info): Use delete.
43 2020-04-08 Tom Tromey <tromey@adacore.com>
45 * win32-low.h (struct windows_thread_info): Remove.
47 2020-04-08 Tom Tromey <tromey@adacore.com>
49 * win32-low.h (struct windows_thread_info): Rename from
50 win32_thread_info. Remove typedef.
51 (struct win32_target_ops, win32_require_context): Update.
52 * win32-low.c (win32_get_thread_context)
53 (win32_set_thread_context, win32_prepare_to_resume)
54 (win32_require_context, thread_rec, child_add_thread)
55 (delete_thread_info, continue_one_thread)
56 (child_fetch_inferior_registers, child_store_inferior_registers)
57 (win32_resume, suspend_one_thread, win32_get_tib_address):
59 * win32-i386-low.c (update_debug_registers)
60 (win32_get_current_dr, i386_get_thread_context)
61 (i386_prepare_to_resume, i386_thread_added, i386_single_step)
62 (i386_fetch_inferior_register, i386_store_inferior_register):
64 * win32-arm-low.c (arm_get_thread_context)
65 (arm_fetch_inferior_register, arm_store_inferior_register):
68 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
70 * linux-low.h (struct linux_target_ops): Remove.
71 (the_low_target): Remove.
72 * linux-x86-low.cc (the_low_target): Remove.
73 * linux-aarch64-low.cc (the_low_target): Ditto.
74 * linux-arm-low.cc (the_low_target): Ditto.
75 * linux-bfin-low.cc (the_low_target): Ditto.
76 * linux-cris-low.cc (the_low_target): Ditto.
77 * linux-crisv32-low.cc (the_low_target): Ditto.
78 * linux-ia64-low.cc (the_low_target): Ditto.
79 * linux-m32r-low.cc (the_low_target): Ditto.
80 * linux-m68k-low.cc (the_low_target): Ditto.
81 * linux-mips-low.cc (the_low_target): Ditto.
82 * linux-nios2-low.cc (the_low_target): Ditto.
83 * linux-ppc-low.cc (the_low_target): Ditto.
84 * linux-riscv-low.cc (the_low_target): Ditto.
85 * linux-s390-low.cc (the_low_target): Ditto.
86 * linux-sh-low.cc (the_low_target): Ditto.
87 * linux-sparc-low.cc (the_low_target): Ditto.
88 * linux-tic6x-low.cc (the_low_target): Ditto.
89 * linux-tile-low.cc (the_low_target): Ditto.
90 * linux-xtensa-low.cc (the_low_target): Ditto.
92 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
94 Remove the 'get_ipa_tdesc_idx' linux target op and let a concrete
95 linux target define the op by overriding the declaration in
96 process_stratum_target.
98 * linux-low.h (struct linux_target_ops): Remove the op.
99 (class linux_process_target) <get_ipa_tdesc_idx>: Remove.
100 * linux-low.cc (linux_process_target::get_ipa_tdesc_idx): Remove.
101 * linux-x86-low.cc (class x86_target) <get_ipa_tdesc_idx>: Declare.
102 (x86_get_ipa_tdesc_idx): Turn into...
103 (x86_target::get_ipa_tdesc_idx): ...this.
104 (the_low_target): Remove the op field.
105 * linux-ppc-low.cc (class ppc_target) <get_ipa_tdesc_idx>: Declare.
106 (ppc_get_ipa_tdesc_idx): Turn into...
107 (ppc_target::get_ipa_tdesc_idx): ...this.
108 (the_low_target): Remove the op field.
109 * linux-s390-low.cc (class s390_target) <get_ipa_tdesc_idx>: Declare.
110 (s390_get_ipa_tdesc_idx): Turn into...
111 (s390_target::get_ipa_tdesc_idx): ...this.
112 (the_low_target): Remove the op field.
114 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
116 Turn the 'get_syscall_trapinfo' linux target op into a method
117 of process_stratum_target.
119 * linux-low.h (struct linux_target_ops): Remove the op.
120 (class linux_process_target) <get_syscall_trapinfo>
121 <gdb_catch_this_syscall>
122 <low_supports_catch_syscall>
123 <low_get_syscall_trapinfo>: Declare.
124 * linux-low.cc (get_syscall_trapinfo): Turn into...
125 (linux_process_target::get_syscall_trapinfo): ...this.
126 (linux_process_target::low_get_syscall_trapinfo): Define.
127 (gdb_catch_this_syscall_p): Turn into...
128 (linux_process_target::gdb_catch_this_syscall): ...this.
129 (linux_process_target::low_supports_catch_syscall): Define.
131 Update the callers below.
133 (linux_process_target::wait_1)
134 (linux_process_target::supports_catch_syscall)
136 * linux-x86-low.cc (class x86_target) <low_supports_catch_syscall>
137 <low_get_syscall_trapinfo>: Declare.
138 (x86_target::low_supports_catch_syscall): Define.
139 (x86_get_syscall_trapinfo): Turn into...
140 (x86_target::low_get_syscall_trapinfo): ...this.
141 (the_low_target): Remove the op field.
142 * linux-aarch64-low.cc (class aarch64_target)
143 <low_supports_catch_syscall>
144 <low_get_syscall_trapinfo>: Declare.
145 (aarch64_target::low_supports_catch_syscall): Define.
146 (aarch64_get_syscall_trapinfo): Turn into...
147 (aarch64_target::low_get_syscall_trapinfo): ...this.
148 (the_low_target): Remove the op field.
149 * linux-arm-low.cc (class arm_target) <low_supports_catch_syscall>
150 <low_get_syscall_trapinfo>: Declare.
151 (arm_target::low_supports_catch_syscall): Define.
152 (arm_get_syscall_trapinfo): Turn into...
153 (arm_target::low_get_syscall_trapinfo): ...this.
154 (the_low_target): Remove the op field.
155 * linux-ppc-low.cc (the_low_target): Remove the op field.
156 * linux-s390-low.cc (the_low_target): Remove the op field.
158 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
160 Remove the 'supports_hardware_single_step' linux target op and
161 override the process_stratum_target's op definition in
162 linux_process_target to return true.
164 * linux-low.h (struct linux_target_ops): Remove the op.
165 (class linux_process_target) <finish_step_over>
166 <maybe_hw_step>: Declare.
167 * linux-low.cc (can_hardware_single_step): Remove.
168 (maybe_hw_step): Turn into...
169 (linux_process_target::maybe_hw_step): ...this.
170 (finish_step_over): Turn into...
171 (linux_process_target::finish_step_over): ...this.
172 (linux_process_target::supports_hardware_single_step): Update
175 Update the callers below.
177 (linux_process_target::single_step)
178 (linux_process_target::resume_one_lwp_throw)
180 * linux-arm-low.cc (class arm_target)
181 <supports_hardware_single_step>: Declare.
182 (arm_supports_hardware_single_step): Turn into...
183 (arm_target::supports_hardware_single_step): ...this.
184 (the_low_target): Remove the op field.
185 * linux-x86-low.cc (x86_supports_hardware_single_step): Remove.
186 (the_low_target): Remove the op field.
187 * linux-aarch64-low.cc (aarch64_supports_hardware_single_step):
189 (the_low_target): Remove the op field.
190 * linux-bfin-low.cc (bfin_supports_hardware_single_step): Remove.
191 (the_low_target): Remove the op field.
192 * linux-crisv32-low.cc (cris_supports_hardware_single_step): Remove.
193 (the_low_target): Remove the op field.
194 * linux-m32r-low.cc (m32r_supports_hardware_single_step): Remove.
195 (the_low_target): Remove the op field.
196 * linux-m68k-low.cc (m68k_supports_hardware_single_step): Remove.
197 (the_low_target): Remove the op field.
198 * linux-ppc-low.cc (ppc_supports_hardware_single_step): Remove.
199 (the_low_target): Remove the op field.
200 * linux-s390-low.cc (s390_supports_hardware_single_step): Remove.
201 (the_low_target): Remove the op field.
202 * linux-sh-low.cc (sh_supports_hardware_single_step): Remove.
203 (the_low_target): Remove the op field.
204 * linux-tic6x-low.cc (tic6x_supports_hardware_single_step): Remove.
205 (the_low_target): Remove the op field.
206 * linux-tile-low.cc (tile_supports_hardware_single_step): Remove.
207 (the_low_target): Remove the op field.
208 * linux-xtensa-low.cc (xtensa_supports_hardware_single_step):
210 (the_low_target): Remove the op field.
212 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
214 Turn the 'supports_range_stepping' linux target op into a method
215 of linux_process_target.
217 * linux-low.h (struct linux_target_ops): Remove the op.
218 (class linux_process_target) <low_supports_range_stepping>: Declare.
219 * linux-low.cc (linux_process_target::low_supports_range_stepping):
221 (linux_process_target::supports_range_stepping): Update the call
223 * linux-x86-low.cc (class x86_target)
224 <low_supports_range_stepping>: Declare.
225 (x86_supports_range_stepping): Turn into...
226 (x86_target::low_supports_range_stepping): ...this.
227 (the_low_target): Remove the op field.
228 * linux-aarch64-low.cc (class aarch64_target)
229 <low_supports_range_stepping>: Declare.
230 (aarch64_supports_range_stepping): Turn into...
231 (aarch64_target::low_supports_range_stepping): ...this.
232 (the_low_target): Remove the op field.
233 * linux-arm-low.cc (the_low_target): Remove the op field.
234 * linux-bfin-low.cc (the_low_target): Ditto.
235 * linux-crisv32-low.cc (the_low_target): Ditto.
236 * linux-m32r-low.cc (the_low_target): Ditto.
237 * linux-m68k-low.cc (the_low_target): Ditto.
238 * linux-ppc-low.cc (the_low_target): Ditto.
239 * linux-s390-low.cc (the_low_target): Ditto.
240 * linux-sh-low.cc (the_low_target): Ditto.
241 * linux-tic6x-low.cc (the_low_target): Ditto.
242 * linux-tile-low.cc (the_low_target): Ditto.
243 * linux-xtensa-low.cc (the_low_target): Ditto.
245 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
247 Remove the 'emit_ops' linux target ops and let the concrete
248 linux target define the op by overriding the declaration of
249 process_stratum_target.
251 * linux-low.h (struct linux_target_ops): Remove the op.
252 (class linux_process_target) <emit_ops>: Remove.
253 * linux-low.cc (linux_process_target::emit_ops): Remove.
254 * linux-x86-low.cc (class x86_target) <emit_ops>: Declare.
255 (x86_emit_ops): Turn into...
256 (x86_target::emit_ops): ...this.
257 (the_low_target): Remove the op field.
258 * linux-aarch64-low.cc (class aarch64_target) <emit_ops>: Declare.
259 (aarch64_emit_ops): Turn into...
260 (aarch64_target::emit_ops): ...this.
261 (the_low_target): Remove the op field.
262 * linux-ppc-low.cc (class ppc_target) <emit_ops>: Declare.
263 (ppc_emit_ops): Turn into...
264 (ppc_target::emit_ops): ...this.
265 (the_low_target): Remove the op field.
266 * linux-s390-low.cc (class s390_target) <emit_ops>: Declare.
267 (s390_emit_ops): Turn into...
268 (s390_target::emit_ops): ...this.
269 (the_low_target): Remove the op field.
270 * linux-arm-low.cc (the_low_target): Remove the op field.
271 * linux-bfin-low.cc (the_low_target): Ditto.
272 * linux-crisv32-low.cc (the_low_target): Ditto.
273 * linux-m32r-low.cc (the_low_target): Ditto.
274 * linux-m68k-low.cc (the_low_target): Ditto.
275 * linux-sh-low.cc (the_low_target): Ditto.
276 * linux-tic6x-low.cc (the_low_target): Ditto.
277 * linux-tile-low.cc (the_low_target): Ditto.
278 * linux-xtensa-low.cc (the_low_target): Ditto.
280 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
282 Remove the 'install_fast_tracepoint_jump_pad' and
283 'get_min_fast_tracepoint_insn_len' linux target ops to let the
284 concrete linux target define the ops by overriding the declarations
285 of process_stratum_target.
287 * linux-low.h (struct linux_target_ops): Remove the ops.
288 (class linux_process_target) <supports_fast_tracepoints>
289 <install_fast_tracepoint_jump_pad>
290 <get_min_fast_tracepoint_insn_len>: Remove.
291 * linux-low.cc (linux_process_target::supports_fast_tracepoints)
292 (linux_process_target::install_fast_tracepoint_jump_pad)
293 (linux_process_target::get_min_fast_tracepoint_insn_len): Remove.
294 * linux-x86-low.cc (class x86_target) <supports_fast_tracepoints>
295 <install_fast_tracepoint_jump_pad>
296 <get_min_fast_tracepoint_insn_len>: Declare.
297 (x86_target::supports_fast_tracepoints): Define.
298 (x86_install_fast_tracepoint_jump_pad): Turn into...
299 (x86_target::install_fast_tracepoint_jump_pad): ...this.
300 (x86_get_min_fast_tracepoint_insn_len): Turn into...
301 (x86_target::get_min_fast_tracepoint_insn_len): ...this.
302 (the_low_target): Remove the op fields.
303 * linux-aarch64-low.cc (class aarch64_target)
304 <supports_fast_tracepoints>
305 <install_fast_tracepoint_jump_pad>
306 <get_min_fast_tracepoint_insn_len>: Declare.
307 (aarch64_target::supports_fast_tracepoints): Define.
308 (aarch64_install_fast_tracepoint_jump_pad): Turn into...
309 (aarch64_target::install_fast_tracepoint_jump_pad): ...this.
310 (aarch64_get_min_fast_tracepoint_insn_len): Turn into...
311 (aarch64_target::get_min_fast_tracepoint_insn_len): ...this.
312 (the_low_target): Remove the op fields.
313 * linux-ppc-low.cc (class ppc_target) <supports_fast_tracepoints>
314 <install_fast_tracepoint_jump_pad>
315 <get_min_fast_tracepoint_insn_len>: Declare.
316 (ppc_target::supports_fast_tracepoints): Define.
317 (ppc_install_fast_tracepoint_jump_pad): Turn into...
318 (ppc_target::install_fast_tracepoint_jump_pad): ...this.
319 (ppc_get_min_fast_tracepoint_insn_len): Turn into...
320 (ppc_target::get_min_fast_tracepoint_insn_len): ...this.
321 (the_low_target): Remove the op fields.
322 * linux-s390-low.cc (class s390_target) <supports_fast_tracepoints>
323 <install_fast_tracepoint_jump_pad>
324 <get_min_fast_tracepoint_insn_len>: Declare.
325 (s390_target::supports_fast_tracepoints): Define.
326 (s390_install_fast_tracepoint_jump_pad): Turn into...
327 (s390_target::install_fast_tracepoint_jump_pad): ...this.
328 (s390_get_min_fast_tracepoint_insn_len): Turn into...
329 (s390_target::get_min_fast_tracepoint_insn_len): ...this.
330 (the_low_target): Remove the op fields.
331 * linux-arm-low.cc (the_low_target): Remove the op fields.
332 * linux-bfin-low.cc (the_low_target): Ditto.
333 * linux-crisv32-low.cc (the_low_target): Ditto.
334 * linux-m32r-low.cc (the_low_target): Ditto.
335 * linux-m68k-low.cc (the_low_target): Ditto.
336 * linux-sh-low.cc (the_low_target): Ditto.
337 * linux-tic6x-low.cc (the_low_target): Ditto.
338 * linux-tile-low.cc (the_low_target): Ditto.
339 * linux-xtensa-low.cc (the_low_target): Ditto.
341 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
343 Turn the 'get_thread_area' linux target op into a method of
344 process_stratum_target.
346 * linux-low.h (struct linux_target_ops): Remove the op.
347 (class linux_process_target) <stuck_in_jump_pad>
348 <linux_fast_tracepoint_collecting>
349 <low_get_thread_area>: Declare.
350 * linux-low.cc (supports_fast_tracepoints): Remove.
351 (linux_fast_tracepoint_collecting): Turn into...
352 (linux_process_target::linux_fast_tracepoint_collecting): ...this.
353 (linux_process_target::low_get_thread_area): Define.
354 (stuck_in_jump_pad_callback): Turn into...
355 (linux_process_target::stuck_in_jump_pad): ...this.
357 Update the caller below.
359 (linux_process_target::stabilize_threads)
361 * linux-x86-low.cc (class x86_target) <low_get_thread_area>:
363 (x86_get_thread_area): Turn into...
364 (x86_target::low_get_thread_area): ...this.
365 (the_low_target): Remove the op field.
366 * linux-aarch64-low.cc (class aarch64_target) <low_get_thread_area>:
368 (aarch64_get_thread_area): Turn into...
369 (aarch64_target::low_get_thread_area): ...this.
370 (the_low_target): Remove the op field.
371 * linux-ppc-low.cc (class ppc_target) <low_get_thread_area>:
373 (ppc_get_thread_area): Turn into...
374 (ppc_target::low_get_thread_area): ...this.
375 (the_low_target): Remove the op field.
376 * linux-s390-low.cc (class s390_target) <low_get_thread_area>:
378 (s390_get_thread_area): Turn into...
379 (s390_target::low_get_thread_area): ...this.
380 (the_low_target): Remove the op field.
381 * linux-arm-low.cc (the_low_target): Remove the op field.
382 * linux-bfin-low.cc (the_low_target): Ditto.
383 * linux-crisv32-low.cc (the_low_target): Ditto.
384 * linux-m32r-low.cc (the_low_target): Ditto.
385 * linux-m68k-low.cc (the_low_target): Ditto.
386 * linux-sh-low.cc (the_low_target): Ditto.
387 * linux-tic6x-low.cc (the_low_target): Ditto.
388 * linux-tile-low.cc (the_low_target): Ditto.
389 * linux-xtensa-low.cc (the_low_target): Ditto.
391 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
393 Remote the 'supports_tracepoints' linux target op and let the
394 concrete linux target define it by overriding the op declared in
395 process_stratum_target.
397 * linux-low.h (struct linux_target_ops): Remove the op.
398 (class linux_process_target) <supports_tracepoints>: Remove.
399 * linux-low.cc (linux_process_target::supports_tracepoints): Remove.
400 * linux-x86-low.cc (class x86_target) <supports_tracepoints>:
402 (x86_supports_tracepoints): Turn into...
403 (x86_target::supports_tracepoints): ...this.
404 (the_low_target): Remove the op field.
405 * linux-aarch64-low.cc (class aarch64_target)
406 <supports_tracepoints>: Declare.
407 (aarch64_supports_tracepoints): Turn into...
408 (aarch64_target::supports_tracepoints): ...this.
409 (the_low_target): Remove the op field.
410 * linux-ppc-low.cc (class ppc_target) <supports_tracepoints>:
412 (ppc_supports_tracepoints): Turn into...
413 (ppc_target::supports_tracepoints): ...this.
414 (the_low_target): Remove the op field.
415 * linux-s390-low.cc (class s390_target) <supports_tracepoints>:
417 (s390_supports_tracepoints): Turn into...
418 (s390_target::supports_tracepoints): ...this.
419 (the_low_target): Remove the op field.
420 * linux-arm-low.cc (the_low_target): Remove the op field.
421 * linux-bfin-low.cc (the_low_target): Ditto.
422 * linux-crisv32-low.cc (the_low_target): Ditto.
423 * linux-m32r-low.cc (the_low_target): Ditto.
424 * linux-m68k-low.cc (the_low_target): Ditto.
425 * linux-sh-low.cc (the_low_target): Ditto.
426 * linux-tic6x-low.cc (the_low_target): Ditto.
427 * linux-tile-low.cc (the_low_target): Ditto.
428 * linux-xtensa-low.cc (the_low_target): Ditto.
430 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
432 Remove the 'process_qsupported' linux target op and let a concrete
433 linux target define the op by overriding the op declaration in
434 process_stratum_target.
436 * linux-low.h (struct linux_target_ops): Remove the op.
437 (class linux_process_target) <process_qsupported>: Remove.
438 * linux-low.cc (linux_process_target::process_qsupported): Remove.
439 * linux-x86-low.cc (class x86_target) <process_qsupported>: Declare.
440 (x86_linux_process_qsupported): Turn into...
441 (x86_target::process_qsupported): ...this.
442 (the_low_target): Remove the op field.
443 * linux-aarch64-low.cc (the_low_target): Remove the op
445 * linux-arm-low.cc (the_low_target): Ditto.
446 * linux-bfin-low.cc (the_low_target): Ditto.
447 * linux-crisv32-low.cc (the_low_target): Ditto.
448 * linux-m32r-low.cc (the_low_target): Ditto.
449 * linux-m68k-low.cc (the_low_target): Ditto.
450 * linux-ppc-low.cc (the_low_target): Ditto.
451 * linux-s390-low.cc (the_low_target): Ditto.
452 * linux-sh-low.cc (the_low_target): Ditto.
453 * linux-tic6x-low.cc (the_low_target): Ditto.
454 * linux-tile-low.cc (the_low_target): Ditto.
455 * linux-xtensa-low.cc (the_low_target): Ditto.
457 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
459 Turn the 'prepare_to_resume' linux target op into a method of
460 linux_process_target.
462 * linux-low.h (struct linux_target_ops): Remove the op.
463 (class linux_process_target) <low_prepare_to_resume>: Declare.
464 * linux-low.cc (linux_process_target::low_prepare_to_resume):
467 Update the callers below:
469 (linux_process_target::resume_one_lwp_throw)
470 (linux_process_target::low_prepare_to_resume)
472 * linux-x86-low.cc (class x86_target) <low_prepare_to_resume>:
474 (x86_target::low_prepare_to_resume): Define.
475 (the_low_target): Remove the op field.
476 * linux-aarch64-low.cc (class aarch64_target)
477 <low_prepare_to_resume>: Declare.
478 (aarch64_target::low_prepare_to_resume): Define.
479 (the_low_target): Remove the op field.
480 * linux-arm-low.cc (class arm_target) <low_prepare_to_resume>:
482 (arm_prepare_to_resume): Turn into...
483 (arm_target::low_prepare_to_resume): ...this.
484 (the_low_target): Remove the op field.
485 * linux-mips-low.cc (class mips_target) <low_prepare_to_resume>:
487 (mips_linux_prepare_to_resume): Turn into...
488 (mips_target::low_prepare_to_resume): ...this.
489 (the_low_target): Remove the op field.
490 * linux-bfin-low.cc (the_low_target): Remove the op field.
491 * linux-crisv32-low.cc (the_low_target): Ditto.
492 * linux-m32r-low.cc (the_low_target): Ditto.
493 * linux-m68k-low.cc (the_low_target): Ditto.
494 * linux-ppc-low.cc (the_low_target): Ditto.
495 * linux-s390-low.cc (the_low_target): Ditto.
496 * linux-sh-low.cc (the_low_target): Ditto.
497 * linux-tic6x-low.cc (the_low_target): Ditto.
498 * linux-tile-low.cc (the_low_target): Ditto.
499 * linux-xtensa-low.cc (the_low_target): Ditto.
501 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
503 Turn the 'new_process', 'delete_process', 'new_thread',
504 'delete_thread', and 'new_fork' linux target ops into methods
505 of linux_process_target.
507 * linux-low.h (struct linux_target_ops): Remove the ops.
508 (class linux_process_target) <add_linux_process>
513 <check_zombie_leaders>
519 <low_new_fork>: Declare.
520 * linux-low.cc (delete_lwp): Turn into...
521 (linux_process_target::delete_lwp): ...this.
522 (linux_process_target::low_delete_thread): Define.
523 (linux_add_process): Turn into...
524 (linux_process_target::add_linux_process): ...this.
525 (linux_process_target::low_new_process): Define.
526 (linux_process_target::low_delete_process): Define.
527 (linux_process_target::low_new_fork): Define.
528 (add_lwp): Turn into...
529 (linux_process_target::add_lwp): ...this.
530 (linux_process_target::low_new_thread): Define.
531 (linux_attach_lwp): Turn into...
532 (linux_process_target::attach_lwp): ...this.
533 (linux_detach_one_lwp): Turn into...
534 (linux_process_target::detach_one_lwp): ...this.
535 (linux_detach_lwp_callback): Remove and inline...
536 (linux_process_target::detach): ...here.
537 (check_zombie_leaders): Turn into...
538 (linux_process_target::check_zombie_leaders): ...this.
539 (filter_exit_event): Turn into...
540 (linux_process_target::filter_exit_event): ...this.
542 Update the callers below.
544 (linux_process_target::handle_extended_wait)
545 (linux_process_target::create_inferior)
546 (attach_proc_task_lwp_callback)
547 (linux_process_target::attach)
548 (linux_process_target::detach)
549 (linux_process_target::mourn)
550 * thread-db.cc (attach_thread)
552 * linux-x86-low.cc (class x86_target) <low_new_process>
556 <low_new_fork>: Declare.
557 (x86_linux_new_process): Turn into...
558 (x86_target::low_new_process): ...this.
559 (x86_linux_delete_process): Turn into...
560 (x86_target::low_delete_process): ...this.
561 (x86_target::low_new_thread): Define.
562 (x86_target::low_delete_thread): Define.
563 (x86_linux_new_fork): Turn into...
564 (x86_target::low_new_fork): ...this.
565 (the_low_target): Remove the op fields.
566 * linux-aarch64-low.cc (class aarch64_target) <low_new_process>
570 <low_new_fork>: Declare.
571 (aarch64_linux_new_process): Turn into...
572 (aarch64_target::low_new_process): ...this.
573 (aarch64_linux_delete_process): Turn into...
574 (aarch64_target::low_delete_process): ...this.
575 (aarch64_target::low_new_thread): Define.
576 (aarch64_target::low_delete_thread): Define.
577 (aarch64_linux_new_fork): Turn into...
578 (aarch64_target::low_new_fork): ...this.
579 (the_low_target): Remove the op fields.
580 * linux-arm-low.cc (class arm_target) <low_new_process>
584 <low_new_fork>: Declare.
585 (arm_new_process): Turn into...
586 (arm_target::low_new_process): ...this.
587 (arm_delete_process): Turn into...
588 (arm_target::low_delete_process): ...this.
589 (arm_new_thread): Turn into...
590 (arm_target::low_new_thread): ...this.
591 (arm_delete_thread): Turn into...
592 (arm_target::low_delete_thread): ...this.
593 (arm_new_fork): Turn into...
594 (arm_target::low_new_fork): ...this.
595 (the_low_target): Remove the op fields.
596 * linux-mips-low.cc (class mips_target) <low_new_process>
600 <low_new_fork>: Declare.
601 (mips_linux_new_process): Turn into...
602 (mips_target::low_new_process): ...this.
603 (mips_linux_delete_process): Turn into...
604 (mips_target::low_delete_process): ...this.
605 (mips_linux_new_thread): Turn into...
606 (mips_target::low_new_thread): ...this.
607 (mips_linux_delete_thread): Turn into...
608 (mips_target::low_delete_thread): ...this.
609 (mips_linux_new_fork): Turn into...
610 (mips_target::low_new_fork): ...this.
611 (the_low_target): Remove the op fields.
612 * linux-bfin-low.cc (the_low_target): Remove the op fields.
613 * linux-crisv32-low.cc (the_low_target): Ditto.
614 * linux-m32r-low.cc (the_low_target): Ditto.
615 * linux-m68k-low.cc (the_low_target): Ditto.
616 * linux-ppc-low.cc (the_low_target): Ditto.
617 * linux-s390-low.cc (the_low_target): Ditto.
618 * linux-sh-low.cc (the_low_target): Ditto.
619 * linux-tic6x-low.cc (the_low_target): Ditto.
620 * linux-tile-low.cc (the_low_target): Ditto.
621 * linux-xtensa-low.cc (the_low_target): Ditto.
623 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
625 Turn the 'siginfo_fixup' linux target op into a method of
626 linux_process_target.
628 * linux-low.h (struct linux_target_ops): Remove the op.
629 (class linux_process_target) <siginfo_fixup>
630 <low_siginfo_fixup>: Declare.
631 * linux-low.cc (siginfo_fixup): Turn into...
632 (linux_process_target::siginfo_fixup): ...this.
633 (linux_process_target::low_siginfo_fixup): Define.
634 * linux-x86-low.cc (class x86_target) <low_siginfo_fixup>: Declare.
635 (x86_siginfo_fixup): Turn into...
636 (x86_target::low_siginfo_fixup): ...this.
637 (the_low_target): Remove the op field.
638 * linux-aarch64-low.cc (class aarch64_target):
639 <low_siginfo_fixup>: Declare.
640 (aarch64_linux_siginfo_fixup): Turn into...
641 (aarch64_target::low_siginfo_fixup): ...this.
642 (the_low_target): Remove the op field.
643 * linux-arm-low.cc (the_low_target): Remove the op field.
644 * linux-bfin-low.cc (the_low_target): Ditto.
645 * linux-crisv32-low.cc (the_low_target): Ditto.
646 * linux-m32r-low.cc (the_low_target): Ditto.
647 * linux-m68k-low.cc (the_low_target): Ditto.
648 * linux-mips-low.cc (the_low_target): Ditto.
649 * linux-ppc-low.cc (the_low_target): Ditto.
650 * linux-s390-low.cc (the_low_target): Ditto.
651 * linux-sh-low.cc (the_low_target): Ditto.
652 * linux-tic6x-low.cc (the_low_target): Ditto.
653 * linux-tile-low.cc (the_low_target): Ditto.
654 * linux-xtensa-low.cc (the_low_target): Ditto.
656 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
658 Turn the 'collect_ptrace_register' and 'supply_ptrace_register'
659 linux target ops into methods of linux_process_target.
661 * linux-low.h (struct linux_target_ops): Remove the ops.
662 (class linux_process_target) <low_collect_ptrace_register>
663 <low_store_ptrace_register>: Declare.
664 * linux-low.cc (linux_process_target::low_collect_ptrace_register)
665 (linux_process_target::low_supply_ptrace_register): Define.
667 Update the callers below.
669 (linux_process_target::fetch_register)
670 (linux_process_target::store_register)
672 * linux-x86-low.cc (the_low_target): Remove the op fields.
673 * linux-aarch64-low.cc (the_low_target): Ditto.
674 * linux-arm-low.cc (the_low_target): Ditto.
675 * linux-bfin-low.cc (the_low_target): Ditto.
676 * linux-crisv32-low.cc (the_low_target): Ditto.
677 * linux-m32r-low.cc (the_low_target): Ditto.
678 * linux-m68k-low.cc (the_low_target): Ditto.
679 * linux-sh-low.cc (the_low_target): Ditto.
680 * linux-sparc-low.cc (the_low_target): Ditto.
681 * linux-tic6x-low.cc (the_low_target): Ditto.
682 * linux-tile-low.cc (the_low_target): Ditto.
683 * linux-xtensa-low.cc (the_low_target): Ditto.
684 * linux-mips-low.cc (class mips_target)
685 <low_collect_ptrace_register>
686 <low_supply_ptrace_register>: Declare.
687 (mips_collect_ptrace_register): Turn into ...
688 (mips_target::low_collect_ptrace_register): ...this.
689 (mips_supply_ptrace_register): Turn into...
690 (mips_target::low_supply_ptrace_register): ...this.
691 (the_low_target): Remove the op fields.
692 * linux-ppc-low.cc (class ppc_target)
693 <low_collect_ptrace_register>
694 <low_supply_ptrace_register>: Declare.
695 (ppc_collect_ptrace_register): Turn into ...
696 (ppc_target::low_collect_ptrace_register): ...this.
697 (ppc_supply_ptrace_register): Turn into ...
698 (ppc_target::low_supply_ptrace_register): ...this.
699 (ppc_fill_gregset): Update for the calls to
700 low_collect_ptrace_register.
701 (the_low_target): Remove the op fields.
702 * linux-s390-low.cc (class s390_target)
703 <low_collect_ptrace_register>
704 <low_supply_ptrace_register>: Declare.
705 (s390_collect_ptrace_register): Turn into ...
706 (s390_target::low_collect_ptrace_register): ...this.
707 (s390_supply_ptrace_register): Turn into ...
708 (s390_target::low_supply_ptrace_register): ...this.
709 (s390_fill_gregset): Update for the calls to
710 low_collect_ptrace_register.
711 (the_low_target): Remove the op fields.
713 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
715 Turn the 'stopped_by_watchpoint' and 'stopped_data_address' linux
716 target ops into methods of linux_process_target.
718 * linux-low.h (struct linux_target_ops): Remove the ops.
719 (class linux_process_target) <check_stopped_by_watchpoint>
720 <low_stopped_by_watchpoint>
721 <low_stopped_data_address>: Declare.
722 * linux-low.cc (check_stopped_by_watchpoint): Turn into...
723 (linux_process_target::check_stopped_by_watchpoint): ...this.
724 (linux_process_target::low_stopped_by_watchpoint): Define.
725 (linux_process_target::low_stopped_data_address): Define.
726 * linux-x86-low.cc (class x86_target) <low_stopped_by_watchpoint>
727 <low_stopped_data_address>: Declare.
728 (x86_stopped_by_watchpoint): Turn into...
729 (x86_target::low_stopped_by_watchpoint): ...this.
730 (x86_stopped_data_address): Turn into...
731 (x86_target::low_stopped_data_address): ...this.
732 (the_low_target): Remove the op fields.
733 * linux-aarch64-low.cc (class aarch64_target)
734 <low_stopped_by_watchpoint>
735 <low_stopped_data_address>: Declare.
736 (aarch64_stopped_by_watchpoint): Turn into...
737 (aarch64_target::low_stopped_by_watchpoint): ...this.
738 (aarch64_stopped_data_address): Turn into...
739 (aarch64_target::low_stopped_data_address): ...this.
740 (the_low_target): Remove the op fields.
741 * linux-arm-low.cc (class arm_target) <low_stopped_by_watchpoint>
742 <low_stopped_data_address>: Declare.
743 (arm_stopped_by_watchpoint): Turn into...
744 (arm_target::low_stopped_by_watchpoint): ...this.
745 (arm_stopped_data_address): Turn into...
746 (arm_target::low_stopped_data_address): ...this.
747 (the_low_target): Remove the op fields.
748 * linux-crisv32-low.cc (class crisv32_target)
749 <low_stopped_by_watchpoint>
750 <low_stopped_data_address>: Declare.
751 (cris_stopped_by_watchpoint): Turn into...
752 (crisv32_target::low_stopped_by_watchpoint): ...this.
753 (cris_stopped_data_address): Turn into...
754 (crisv32_target::low_stopped_data_address): ...this.
755 (the_low_target): Remove the op fields.
756 * linux-mips-low.cc (class mips_target) <low_stopped_by_watchpoint>
757 <low_stopped_data_address>: Declare.
758 (mips_stopped_by_watchpoint): Turn into...
759 (mips_target::low_stopped_by_watchpoint): ...this.
760 (mips_stopped_data_address): Turn into...
761 (mips_target::low_stopped_data_address): ...this.
762 (the_low_target): Remove the op fields.
763 * linux-bfin-low.cc (the_low_target): Remove the op fields.
764 * linux-m32r-low.cc (the_low_target): Ditto.
765 * linux-m68k-low.cc (the_low_target): Ditto.
766 * linux-ppc-low.cc (the_low_target): Ditto.
767 * linux-s390-low.cc (the_low_target): Ditto.
768 * linux-sh-low.cc (the_low_target): Ditto.
769 * linux-sparc-low.cc (the_low_target): Ditto.
770 * linux-tic6x-low.cc (the_low_target): Ditto.
771 * linux-tile-low.cc (the_low_target): Ditto.
772 * linux-xtensa-low.cc (the_low_target): Ditto.
774 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
776 Turn the 'insert_point' and 'remove_point' linux target ops into
777 methods of linux_process_target.
779 * linux-low.h (struct linux_target_ops): Remove the ops.
780 (class linux_process_target) <low_insert_point>
781 <low_remove_point>: Declare.
782 * linux-low.cc (linux_process_target::low_insert_point)
783 (linux_process_target::low_remove_point): Define.
784 (linux_process_target::insert_point)
785 (linux_process_target::remove_point): Update for calls to
786 low_insert_point and low_remove_point.
787 * linux-x86-low.cc (class x86_target) <low_insert_point>
788 <low_remove_point>: Declare.
789 (x86_insert_point): Turn into...
790 (x86_target::low_insert_point): ...this.
791 (x86_remove_point): Turn into...
792 (x86_target::low_remove_point): ...this.
793 (the_low_target): Remove the op fields.
794 * linux-aarch64-low.cc (class aarch64_target) <low_insert_point>
795 <low_remove_point>: Declare.
796 (aarch64_insert_point): Turn into...
797 (aarch64_target::low_insert_point): ...this.
798 (aarch64_remove_point): Turn into...
799 (aarch64_target::low_remove_point): ...this.
800 (the_low_target): Remove the op fields.
801 * linux-arm-low.cc (class arm_target) <low_insert_point>
802 <low_remove_point>: Declare.
803 (arm_insert_point): Turn into...
804 (arm_target::low_insert_point): ...this.
805 (arm_remove_point): Turn into...
806 (arm_target::low_remove_point): ...this.
807 (the_low_target): Remove the op fields.
808 * linux-crisv32-low.cc (class crisv32_target) <low_insert_point>
809 <low_remove_point>: Declare.
810 (crisv32_insert_point): Turn into...
811 (crisv32_target::low_insert_point): ...this.
812 (crisv32_remove_point): Turn into...
813 (crisv32_target::low_remove_point): ...this.
814 (the_low_target): Remove the op fields.
815 * linux-mips-low.cc (class mips_target) <low_insert_point>
816 <low_remove_point>: Declare.
817 (mips_insert_point): Turn into...
818 (mips_target::low_insert_point): ...this.
819 (mips_remove_point): Turn into...
820 (mips_target::low_remove_point): ...this.
821 (the_low_target): Remove the op fields.
822 * linux-ppc-low.cc (class ppc_target) <low_insert_point>
823 <low_remove_point>: Declare.
824 (ppc_insert_point): Turn into...
825 (ppc_target::low_insert_point): ...this.
826 (ppc_remove_point): Turn into...
827 (ppc_target::low_remove_point): ...this.
828 (the_low_target): Remove the op fields.
829 * linux-bfin-low.cc (the_low_target): Remove the op fields.
830 * linux-m32r-low.cc (the_low_target): Ditto.
831 * linux-m68k-low.cc (the_low_target): Ditto.
832 * linux-s390-low.cc (the_low_target): Ditto.
833 * linux-sh-low.cc (the_low_target): Ditto.
834 * linux-sparc-low.cc (the_low_target): Ditto.
835 * linux-tic6x-low.cc (the_low_target): Ditto.
836 * linux-tile-low.cc (the_low_target): Ditto.
837 * linux-xtensa-low.cc (the_low_target): Ditto.
839 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
841 Remove the 'supports_z_point_type' linux target op and let the
842 concrete linux target define it by overriding the op declared in
843 process_stratum_target.
845 * linux-low.cc (linux_process_target::supports_z_point_type):
847 * linux-low.h (struct linux_target_ops): Remove the op.
848 (class linux_process_target) <supports_z_point_type>: Remove.
849 * linux-x86-low.cc (class x86_target) <supports_z_point_type>:
851 (x86_supports_z_point_type): Turn into...
852 (x86_target::supports_z_point_type): ...this.
853 (the_low_target): Remove the op field.
854 * linux-aarch64-low.cc (class aarch64_target)
855 <supports_z_point_type>: Declare.
856 (aarch64_supports_z_point_type): Turn into...
857 (aarch64_target::supports_z_point_type): ...this.
858 (the_low_target): Remove the op field.
859 * linux-arm-low.cc (class arm_target) <supports_z_point_type>:
861 (arm_supports_z_point_type): Turn into...
862 (arm_target::supports_z_point_type): ...this.
863 (the_low_target): Remove the op field.
864 * linux-crisv32-low.cc (class crisv32_target)
865 <supports_z_point_type>: Declare.
866 (cris_supports_z_point_type): Turn into...
867 (crisv32_target::supports_z_point_type): ...this.
868 (the_low_target): Remove the op field.
869 * linux-mips-low.cc (class mips_target) <supports_z_point_type>:
871 (mips_supports_z_point_type): Turn into...
872 (mips_target::supports_z_point_type): ...this.
873 (the_low_target): Remove the op field.
874 * linux-ppc-low.cc (class ppc_target) <supports_z_point_type>:
876 (ppc_supports_z_point_type): Turn into...
877 (ppc_target::supports_z_point_type): ...this.
878 (the_low_target): Remove the op field.
879 * linux-s390-low.cc (class s390_target) <supports_z_point_type>:
881 (s390_supports_z_point_type): Turn into...
882 (s390_target::supports_z_point_type): ...this.
883 (the_low_target): Remove the op field.
884 * linux-bfin-low.cc (the_low_target): Remove the op field.
885 * linux-m32r-low.cc (the_low_target): Ditto.
886 * linux-m68k-low.cc (the_low_target): Ditto.
887 * linux-sh-low.cc (the_low_target): Ditto.
888 * linux-sparc-low.cc (the_low_target): Ditto.
889 * linux-tic6x-low.cc (the_low_target): Ditto.
890 * linux-tile-low.cc (the_low_target): Ditto.
891 * linux-xtensa-low.cc (the_low_target): Ditto.
893 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
895 Turn the 'breakpoint_at' linux target op into a method of
896 linux_process_target.
898 * linux-low.h (struct linux_target_ops): Remove the op.
899 (class linux_process_target) <low_breakpoint_at>: Declare.
901 Update the callers below:
903 * linux-low.cc (linux_process_target::save_stop_reason)
904 (linux_process_target::thread_still_has_status_pending)
905 (linux_process_target::wait_1)
907 * linux-x86-low.cc (class x86_target)
908 <low_breakpoint_at>: Declare.
909 (x86_breakpoint_at): Turn into...
910 (x86_target::low_breakpoint_at): ...this.
911 (the_low_target): Remove the op field.
912 * linux-aarch64-low.cc (class aarch64_target)
913 <low_breakpoint_at>: Declare.
914 (aarch64_breakpoint_at): Turn into...
915 (aarch64_target::low_breakpoint_at): ...this.
916 (the_low_target): Remove the op field.
917 * linux-arm-low.cc (class arm_target)
918 <low_breakpoint_at>: Declare.
919 (arm_target::low_breakpoint_at): Define.
920 (the_low_target): Remove the op field.
921 * linux-bfin-low.cc (class bfin_target)
922 <low_breakpoint_at>: Declare.
923 (bfin_breakpoint_at): Turn into...
924 (bfin_target::low_breakpoint_at): ...this.
925 (the_low_target): Remove the op field.
926 * linux-cris-low.cc (class cris_target)
927 <low_breakpoint_at>: Declare.
928 (cris_breakpoint_at): Turn into...
929 (cris_target::low_breakpoint_at): ...this.
930 (the_low_target): Remove the op field.
931 * linux-crisv32-low.cc (class crisv32_target)
932 <low_breakpoint_at>: Declare.
933 (crisv32_breakpoint_at): Turn into...
934 (crisv32_target::low_breakpoint_at): ...this.
935 (the_low_target): Remove the op field.
936 * linux-ia64-low.cc (class ia64_target)
937 <low_breakpoint_at>: Declare.
938 (ia64_target::low_breakpoint_at): Define.
939 * linux-m32r-low.cc (class m32r_target)
940 <low_breakpoint_at>: Declare.
941 (m32r_breakpoint_at): Turn into...
942 (m32r_target::low_breakpoint_at): ...this.
943 (the_low_target): Remove the op field.
944 * linux-m68k-low.cc (class m68k_target)
945 <low_breakpoint_at>: Declare.
946 (m68k_breakpoint_at): Turn into...
947 (m68k_target::low_breakpoint_at): ...this.
948 (the_low_target): Remove the op field.
949 * linux-mips-low.cc (class mips_target)
950 <low_breakpoint_at>: Declare.
951 (mips_breakpoint_at): Turn into...
952 (mips_target::low_breakpoint_at): ...this.
953 (the_low_target): Remove the op field.
954 * linux-nios2-low.cc (class nios2_target)
955 <low_breakpoint_at>: Declare.
956 (nios2_breakpoint_at): Turn into...
957 (nios2_target::low_breakpoint_at): ...this.
958 (the_low_target): Remove the op field.
959 * linux-ppc-low.cc (class ppc_target)
960 <low_breakpoint_at>: Declare.
961 (ppc_breakpoint_at): Turn into...
962 (ppc_target::low_breakpoint_at): ...this.
963 (the_low_target): Remove the op field.
964 * linux-riscv-low.cc (class riscv_target)
965 <low_breakpoint_at>: Declare.
966 (riscv_breakpoint_at): Turn into...
967 (riscv_target::low_breakpoint_at): ...this.
968 (the_low_target): Remove the op field.
969 * linux-s390-low.cc (class s390_target)
970 <low_breakpoint_at>: Declare.
971 (s390_breakpoint_at): Turn into...
972 (s390_target::low_breakpoint_at): ...this.
973 (the_low_target): Remove the op field.
974 * linux-sh-low.cc (class sh_target)
975 <low_breakpoint_at>: Declare.
976 (sh_breakpoint_at): Turn into...
977 (sh_target::low_breakpoint_at): ...this.
978 (the_low_target): Remove the op field.
979 * linux-sparc-low.cc (class sparc_target)
980 <low_breakpoint_at>: Declare.
981 (sparc_breakpoint_at): Turn into...
982 (sparc_target::low_breakpoint_at): ...this.
983 (the_low_target): Remove the op field.
984 * linux-tic6x-low.cc (class tic6x_target)
985 <low_breakpoint_at>: Declare.
986 (tic6x_breakpoint_at): Turn into...
987 (tic6x_target::low_breakpoint_at): ...this.
988 (the_low_target): Remove the op field.
989 * linux-tile-low.cc (class tile_target)
990 <low_breakpoint_at>: Declare.
991 (tile_breakpoint_at): Turn into...
992 (tile_target::low_breakpoint_at): ...this.
993 (the_low_target): Remove the op field.
994 * linux-xtensa-low.cc (class xtensa_target)
995 <low_breakpoint_at>: Declare.
996 (xtensa_breakpoint_at): Turn into...
997 (xtensa_target::low_breakpoint_at): ...this.
998 (the_low_target): Remove the op field.
1000 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1002 Turn the 'decr_pc_after_break' linux_target_ops field into
1003 a method of linux_process_target.
1005 * linux-low.h (struct linux_target_ops)
1006 <decr_pc_after_break>: Remove.
1007 (class linux_process_target) <low_decr_pc_after_break>: New method
1009 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
1010 New method implementation.
1012 Update the users below.
1014 (linux_process_target::save_stop_reason)
1015 (linux_process_target::wait_1)
1016 * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
1018 (x86_target::low_decr_pc_after_break): New method implementation.
1019 (the_low_target): Remove the field.
1020 * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
1022 (bfin_target::low_decr_pc_after_break): New method implementation.
1023 (the_low_target): Remove the field.
1024 * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
1026 (m68k_target::low_decr_pc_after_break): New method implementation.
1027 (the_low_target): Remove the field.
1028 * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
1030 (s390_target::low_decr_pc_after_break): New method implementation.
1031 (the_low_target): Remove the field.
1032 * linux-aarch64-low.cc (the_low_target): Remove the field.
1033 * linux-arm-low.cc (the_low_target): Remove the field.
1034 * linux-cris-low.cc (the_low_target): Remove the field.
1035 * linux-crisv32-low.cc (the_low_target): Remove the field.
1036 * linux-m32r-low.cc (the_low_target): Remove the field.
1037 * linux-mips-low.cc (the_low_target): Remove the field.
1038 * linux-nios2-low.cc (the_low_target): Remove the field.
1039 * linux-ppc-low.cc (the_low_target): Remove the field.
1040 * linux-riscv-low.cc (the_low_target): Remove the field.
1041 * linux-sh-low.cc (the_low_target): Remove the field.
1042 * linux-sparc-low.cc (the_low_target): Remove the field.
1043 * linux-tic6x-low.cc (the_low_target): Remove the field.
1044 * linux-tile-low.cc (the_low_target): Remove the field.
1045 * linux-xtensa-low.cc (the_low_target): Remove the field.
1047 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1049 Remove the 'supports_software_single_step' linux target op and let
1050 the concrete linux target define it by overriding the op in
1051 process_stratum_target.
1052 Turn the 'get_next_pcs' linux target op into a method of
1053 linux_process_target.
1055 * linux-low.h (struct linux_target_ops): Remove the ops.
1056 (class linux_process_target) <supports_software_single_step>:
1058 <low_get_next_pcs>: Declare.
1059 * linux-low.cc (can_software_single_step): Remove.
1060 (linux_process_target::low_get_next_pcs): Define.
1061 (linux_process_target::supports_software_single_step): Remove.
1063 Update the callers below.
1065 (linux_process_target::handle_extended_wait)
1066 (linux_process_target::wait_1)
1067 (linux_process_target::install_software_single_step_breakpoints)
1068 (linux_process_target::single_step)
1069 (linux_process_target::thread_needs_step_over)
1070 (linux_process_target::proceed_one_lwp)
1071 (linux_process_target::supports_range_stepping)
1073 * linux-x86-low.cc (the_low_target): Remove the op field.
1074 * linux-aarch64-low.cc (the_low_target): Ditto.
1075 * linux-bfin-low.cc (the_low_target): Ditto.
1076 * linux-cris-low.cc (the_low_target): Ditto.
1077 * linux-crisv32-low.cc (the_low_target): Ditto.
1078 * linux-m32r-low.cc (the_low_target): Ditto.
1079 * linux-m68k-low.cc (the_low_target): Ditto.
1080 * linux-mips-low.cc (the_low_target): Ditto.
1081 * linux-nios2-low.cc (the_low_target): Ditto.
1082 * linux-ppc-low.cc (the_low_target): Ditto.
1083 * linux-riscv-low.cc (the_low_target): Ditto.
1084 * linux-s390-low.cc (the_low_target): Ditto.
1085 * linux-sh-low.cc (the_low_target): Ditto.
1086 * linux-sparc-low.cc (the_low_target): Ditto.
1087 * linux-tic6x-low.cc (the_low_target): Ditto.
1088 * linux-tile-low.cc (the_low_target): Ditto.
1089 * linux-xtensa-low.cc (the_low_target): Ditto.
1090 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
1091 <supports_software_single_step>: Declare.
1092 (arm_target::supports_software_single_step): Define.
1093 (arm_gdbserver_get_next_pcs): Turn into...
1094 (arm_target::low_get_next_pcs): ...this.
1095 (the_low_target): Remove the op field.
1097 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1099 Remove the 'sw_breakpoint_from_kind' linux target op, and let
1100 the concrete linux target define it by overriding the op
1101 in process_stratum_target.
1103 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
1105 * linux-low.h (struct linux_target_ops): Remove the op.
1106 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
1107 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
1109 (x86_sw_breakpoint_from_kind): Turn into...
1110 (x86_target::sw_breakpoint_from_kind): ...this.
1111 (the_low_target): Remove the op field.
1112 * linux-aarch64-low.cc (class aarch64_target)
1113 <sw_breakpoint_from_kind>: Declare.
1114 (aarch64_sw_breakpoint_from_kind): Turn into...
1115 (aarch64_target::sw_breakpoint_from_kind): ...this.
1116 (the_low_target): Remove the op field.
1117 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
1119 (arm_target::sw_breakpoint_from_kind): Define.
1120 (the_low_target): Remove the op field.
1121 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
1123 (bfin_sw_breakpoint_from_kind): Turn into...
1124 (bfin_target::sw_breakpoint_from_kind): ...this.
1125 (the_low_target): Remove the op field.
1126 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
1128 (cris_sw_breakpoint_from_kind): Turn into...
1129 (cris_target::sw_breakpoint_from_kind): ...this.
1130 (the_low_target): Remove the op field.
1131 * linux-crisv32-low.cc (class crisv32_target)
1132 <sw_breakpoint_from_kind>: Declare.
1133 (cris_sw_breakpoint_from_kind): Turn into...
1134 (crisv32_target::sw_breakpoint_from_kind): ...this.
1135 (the_low_target): Remove the op field.
1136 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
1138 (ia64_target::sw_breakpoint_from_kind): Define.
1139 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
1141 (m32r_sw_breakpoint_from_kind): Turn into...
1142 (m32r_target::sw_breakpoint_from_kind): ...this.
1143 (the_low_target): Remove the op field.
1144 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
1146 (m68k_sw_breakpoint_from_kind): Turn into...
1147 (m68k_target::sw_breakpoint_from_kind): ...this.
1148 (the_low_target): Remove the op field.
1149 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
1151 (mips_sw_breakpoint_from_kind): Turn into...
1152 (mips_target::sw_breakpoint_from_kind): ...this.
1153 (the_low_target): Remove the op field.
1154 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
1156 (nios2_sw_breakpoint_from_kind): Turn into...
1157 (nios2_target::sw_breakpoint_from_kind): ...this.
1158 (the_low_target): Remove the op field.
1159 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
1161 (ppc_sw_breakpoint_from_kind): Turn into...
1162 (ppc_target::sw_breakpoint_from_kind): ...this.
1163 (the_low_target): Remove the op field.
1164 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
1166 (riscv_sw_breakpoint_from_kind): Turn into...
1167 (riscv_target::sw_breakpoint_from_kind): ...this.
1168 (the_low_target): Remove the op field.
1169 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
1171 (s390_sw_breakpoint_from_kind): Turn into...
1172 (s390_target::sw_breakpoint_from_kind): ...this.
1173 (the_low_target): Remove the op field.
1174 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
1176 (sh_sw_breakpoint_from_kind): Turn into...
1177 (sh_target::sw_breakpoint_from_kind): ...this.
1178 (the_low_target): Remove the op field.
1179 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
1181 (sparc_sw_breakpoint_from_kind): Turn into...
1182 (sparc_target::sw_breakpoint_from_kind): ...this.
1183 (the_low_target): Remove the op field.
1184 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
1186 (tic6x_sw_breakpoint_from_kind): Turn into...
1187 (tic6x_target::sw_breakpoint_from_kind): ...this.
1188 (the_low_target): Remove the op field.
1189 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
1191 (tile_sw_breakpoint_from_kind): Turn into...
1192 (tile_target::sw_breakpoint_from_kind): ...this.
1193 (the_low_target): Remove the op field.
1194 * linux-xtensa-low.cc (class xtensa_target)
1195 <sw_breakpoint_from_kind>: Declare.
1196 (xtensa_sw_breakpoint_from_kind): Turn into...
1197 (xtensa_target::sw_breakpoint_from_kind): ...this.
1198 (the_low_target): Remove the op field.
1200 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1202 Remove the 'breakpoint_kind_from_pc' and
1203 'breakpoint_kind_from_current_state' linux target ops, and let the
1204 concrete linux target define them by overriding the ops of
1205 process_stratum_target.
1207 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
1209 (linux_process_target::breakpoint_kind_from_current_state): Remove.
1210 * linux-low.h (struct linux_target_ops): Remove ops.
1211 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
1212 <breakpoint_kind_from_current_state>: Remove.
1213 * linux-x86-low.cc (the_low_target): Remove the op fields.
1214 * linux-bfin-low.cc (the_low_target): Ditto.
1215 * linux-cris-low.cc (the_low_target): Ditto.
1216 * linux-crisv32-low.cc (the_low_target): Ditto.
1217 * linux-m32r-low.cc (the_low_target): Ditto.
1218 * linux-m68k-low.cc (the_low_target): Ditto.
1219 * linux-mips-low.cc (the_low_target): Ditto.
1220 * linux-nios2-low.cc (the_low_target): Ditto.
1221 * linux-ppc-low.cc (the_low_target): Ditto.
1222 * linux-s390-low.cc (the_low_target): Ditto.
1223 * linux-sh-low.cc (the_low_target): Ditto.
1224 * linux-sparc-low.cc (the_low_target): Ditto.
1225 * linux-tic6x-low.cc (the_low_target): Ditto.
1226 * linux-tile-low.cc (the_low_target): Ditto.
1227 * linux-xtensa-low.cc (the_low_target): Ditto.
1228 * linux-aarch64-low.cc (class aarch64_target)
1229 <breakpoint_kind_from_pc>
1230 <breakpoint_kind_from_current_state>: Declare.
1231 (aarch64_breakpoint_kind_from_pc): Turn into...
1232 (aarch64_target::breakpoint_kind_from_pc): ...this.
1233 (aarch64_breakpoint_kind_from_current_state): Turn into...
1234 (aarch64_target::breakpoint_kind_from_current_state): ...this.
1235 (the_low_target): Remove the op fields.
1236 * linux-arm-low.cc (class arm_target):
1237 <breakpoint_kind_from_pc>
1238 <breakpoint_kind_from_current_state>: Declare.
1239 (arm_target::breakpoint_kind_from_pc): Define.
1240 (arm_target::breakpoint_kind_from_current_state): Define.
1241 (the_low_target): Remove the op fields.
1242 * linux-riscv-low.cc (class riscv_target):
1243 <breakpoint_kind_from_pc>: Declare.
1244 (riscv_breakpoint_kind_from_pc): Turn into...
1245 (riscv_target::breakpoint_kind_from_pc): ...this.
1246 (the_low_target): Remove the op fields.
1248 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1250 Turn the 'get_pc' and 'set_pc' linux target ops into methods
1251 of linux_process_target.
1253 * linux-low.h (struct linux_target_ops): Remove the ops.
1254 (class linux_process_target) <low_supports_breakpoints>
1256 <low_set_pc>: Declare.
1257 * linux-low.cc (supports_breakpoints): Turn into...
1258 (linux_process_target::low_supports_breakpoints): ...this.
1259 (linux_process_target::low_get_pc): Define.
1260 (linux_process_target::low_set_pc): Define.
1262 Update the callers below.
1264 (linux_process_target::get_pc)
1265 (linux_process_target::save_stop_reason)
1266 (linux_process_target::maybe_move_out_of_jump_pad)
1267 (linux_process_target::wait_1)
1268 (linux_process_target::resume_one_lwp_throw)
1269 (linux_process_target::resume)
1270 (linux_process_target::proceed_all_lwps)
1271 (linux_process_target::read_pc)
1272 (linux_process_target::write_pc)
1274 * linux-x86-low.cc (class linux_process_target)
1275 <low_supports_breakpoints>
1277 <low_set_pc>: Declare.
1278 (x86_target::low_supports_breakpoints): Define.
1279 (x86_get_pc): Turn into...
1280 (x86_target::low_get_pc): ...this.
1281 (x86_set_pc): Turn into...
1282 (x86_target::low_set_pc): ...this.
1283 (the_low_target): Remove the op fields.
1284 * linux-arm-low.cc (class arm_target)
1285 <low_supports_breakpoints>
1287 <low_set_pc>: Declare.
1288 (arm_target::low_supports_breakpoints)
1289 (arm_target::low_get_pc)
1290 (arm_target::low_set_pc): Define.
1291 (the_low_target): Remove the op fields.
1292 * linux-bfin-low.cc (class bfin_target)
1293 <low_supports_breakpoints>
1295 <low_set_pc>: Declare.
1296 (bfin_target::low_supports_breakpoints)
1297 (bfin_target::low_get_pc)
1298 (bfin_target::low_set_pc): Define.
1299 (the_low_target): Remove the op fields.
1300 * linux-cris-low.cc (class cris_target)
1301 <low_supports_breakpoints>
1303 <low_set_pc>: Declare.
1304 (cris_target::low_supports_breakpoints)
1305 (cris_target::low_get_pc)
1306 (cris_target::low_set_pc): Define.
1307 (the_low_target): Remove the op fields.
1308 * linux-crisv32-low.cc (class crisv32_target)
1309 <low_supports_breakpoints>
1311 <low_set_pc>: Declare.
1312 (crisv32_target::low_supports_breakpoints)
1313 (crisv32_target::low_get_pc)
1314 (crisv32_target::low_set_pc): Define.
1315 (the_low_target): Remove the op fields.
1316 * linux-m32r-low.cc (class m32r_target)
1317 <low_supports_breakpoints>
1319 <low_set_pc>: Declare.
1320 (m32r_target::low_supports_breakpoints)
1321 (m32r_target::low_get_pc)
1322 (m32r_target::low_set_pc): Define.
1323 (the_low_target): Remove the op fields.
1324 * linux-m68k-low.cc (class m68k_target)
1325 <low_supports_breakpoints>
1327 <low_set_pc>: Declare.
1328 (m68k_target::low_supports_breakpoints)
1329 (m68k_target::low_get_pc)
1330 (m68k_target::low_set_pc): Define.
1331 (the_low_target): Remove the op fields.
1332 * linux-nios2-low.cc (class nios2_target)
1333 <low_supports_breakpoints>
1335 <low_set_pc>: Declare.
1336 (nios2_target::low_supports_breakpoints)
1337 (nios2_target::low_get_pc)
1338 (nios2_target::low_set_pc): Define.
1339 (the_low_target): Remove the op fields.
1340 * linux-sh-low.cc (class sh_target)
1341 <low_supports_breakpoints>
1343 <low_set_pc>: Declare.
1344 (sh_target::low_supports_breakpoints)
1345 (sh_target::low_get_pc)
1346 (sh_target::low_set_pc): Define.
1347 (the_low_target): Remove the op fields.
1348 * linux-xtensa-low.cc (class xtensa_target)
1349 <low_supports_breakpoints>
1351 <low_set_pc>: Declare.
1352 (xtensa_target::low_supports_breakpoints)
1353 (xtensa_target::low_get_pc)
1354 (xtensa_target::low_set_pc): Define.
1355 (the_low_target): Remove the op fields.
1356 * linux-sparc-low.cc (class sparc_target)
1357 <low_supports_breakpoints>
1358 <low_get_pc>: Declare.
1359 (sparc_target::low_supports_breakpoints)
1360 (sparc_target::low_get_pc): Define.
1361 (the_low_target): Remove the op fields.
1362 * linux-tile-low.cc (class tile_target)
1363 <low_supports_breakpoints>
1365 <low_set_pc>: Declare.
1366 (tile_target::low_supports_breakpoints)
1367 (tile_target::low_get_pc)
1368 (tile_target::low_set_pc): Define.
1369 (the_low_target): Remove the op fields.
1370 * linux-aarch64-low.cc (class aarch64_target)
1371 <low_supports_breakpoints>
1373 <low_set_pc>: Declare.
1374 (aarch64_target::low_supports_breakpoints): Define.
1375 (aarch64_get_pc): Turn into...
1376 (aarch64_target::low_get_pc): ...this.
1377 (aarch64_set_pc): Turn into...
1378 (aarch64_target::low_set_pc): ...this.
1379 (the_low_target): Remove the op fields.
1380 * linux-mips-low.cc (class mips_target)
1381 <low_supports_breakpoints>
1383 <low_set_pc>: Declare.
1384 (mips_target::low_supports_breakpoints): Define.
1385 (mips_get_pc): Turn into...
1386 (mips_target::low_get_pc): ...this.
1387 (mips_set_pc): Turn into...
1388 (mips_target::low_set_pc): ...this.
1389 (the_low_target): Remove the op fields.
1390 * linux-ppc-low.cc (class ppc_target)
1391 <low_supports_breakpoints>
1393 <low_set_pc>: Declare.
1394 (ppc_target::low_supports_breakpoints): Define.
1395 (ppc_get_pc): Turn into...
1396 (ppc_target::low_get_pc): ...this.
1397 (ppc_set_pc): Turn into...
1398 (ppc_target::low_set_pc): ...this.
1399 (the_low_target): Remove the op fields.
1400 * linux-riscv-low.cc (class riscv_target)
1401 <low_supports_breakpoints>
1403 <low_set_pc>: Declare.
1404 (riscv_target::low_supports_breakpoints): Define.
1405 (riscv_get_pc): Turn into...
1406 (riscv_target::low_get_pc): ...this.
1407 (riscv_set_pc): Turn into...
1408 (riscv_target::low_set_pc): ...this.
1409 (the_low_target): Remove the op fields.
1410 * linux-s390-low.cc (class s390_target)
1411 <low_supports_breakpoints>
1413 <low_set_pc>: Declare.
1414 (s390_target::low_supports_breakpoints): Define.
1415 (s390_get_pc): Turn into...
1416 (s390_target::low_get_pc): ...this.
1417 (s390_set_pc): Turn into...
1418 (s390_target::low_set_pc): ...this.
1419 (the_low_target): Remove the op fields.
1420 * linux-tic6x-low.cc (class tic6x_target)
1421 <low_supports_breakpoints>
1423 <low_set_pc>: Declare.
1424 (tic6x_target::low_supports_breakpoints): Define.
1425 (tic6x_get_pc): Turn into...
1426 (tic6x_target::low_get_pc): ...this.
1427 (tic6x_set_pc): Turn into...
1428 (tic6x_target::low_set_pc): ...this.
1429 (the_low_target): Remove the op fields.
1431 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1433 Turn some more static methods in linux-low into private methods
1434 of linux_process_target.
1436 * linux-low.cc (get_pc): Turn into...
1437 (linux_process_target::get_pc): ...this.
1438 (save_stop_reason): Turn into...
1439 (linux_process_target::save_stop_reason): ...this.
1440 (thread_still_has_status_pending_p): Turn into...
1441 (linux_process_target::thread_still_has_status_pending): ...this.
1442 (status_pending_p_callback): Turn into...
1443 (linux_process_target::status_pending_p_callback): ...this.
1444 (resume_stopped_resumed_lwps): Turn into...
1445 (linux_process_target::resume_stopped_resumed_lwps): ...this.
1446 (install_software_single_step_breakpoints): Turn into...
1447 (linux_process_target::install_software_single_step_breakpoints):
1449 (single_step): Turn into...
1450 (linux_process_target::single_step): ...this.
1451 (linux_resume_one_lwp_throw): Turn into...
1452 (linux_process_target::resume_one_lwp_throw): ...this.
1453 (linux_resume_one_lwp): Turn into...
1454 (linux_process_target::resume_one_lwp): ...this.
1455 (resume_status_pending_p): Turn into...
1456 (linux_process_target::resume_status_pending): ...this.
1457 (need_step_over_p): Turn into...
1458 (linux_process_target::thread_needs_step_over): ...this.
1459 (linux_resume_one_thread): Turn into...
1460 (linux_process_target::resume_one_thread): ...this.
1461 (proceed_one_lwp): Turn into...
1462 (linux_process_target::proceed_one_lwp): ...this.
1463 (unsuspend_and_proceed_one_lwp): Turn into...
1464 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
1466 Update the calls/references to the above functions below.
1468 (linux_process_target::handle_extended_wait)
1469 (linux_process_target::filter_event)
1470 (linux_process_target::wait_for_event_filtered)
1471 (linux_process_target::wait_1)
1472 (linux_process_target::move_out_of_jump_pad)
1473 (linux_process_target::start_step_over)
1474 (linux_process_target::resume)
1475 (linux_process_target::proceed_all_lwps)
1476 (regsets_store_inferior_registers)
1477 (linux_process_target::store_register)
1479 * linux-low.h (class linux_process_target)
1482 <thread_still_has_status_pending>
1483 <status_pending_p_callback>
1484 <resume_stopped_resumed_lwps>
1485 <install_software_single_step_breakpoints>
1487 <resume_one_lwp_throw>
1489 <resume_status_pending>
1490 <thread_needs_step_over>
1493 <unsuspend_and_proceed_one_lwp>: Declare.
1495 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1497 Turn the 'fetch_register' linux target op into a method of
1498 linux_process_target.
1500 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
1501 (class linux_process_target) <low_fetch_register>: Declare.
1502 * linux-x86-low.cc (the_low_target)
1503 * linux-aarch64-low.cc (the_low_target)
1504 * linux-arm-low.cc (the_low_target)
1505 * linux-bfin-low.cc (the_low_target)
1506 * linux-cris-low.cc (the_low_target)
1507 * linux-crisv32-low.cc (the_low_target)
1508 * linux-m32r-low.cc (the_low_target)
1509 * linux-m68k-low.cc (the_low_target)
1510 * linux-nios2-low.cc (the_low_target)
1511 * linux-ppc-low.cc (the_low_target)
1512 * linux-s390-low.cc (the_low_target)
1513 * linux-sh-low.cc (the_low_target)
1514 * linux-sparc-low.cc (the_low_target)
1515 * linux-tic6x-low.cc (the_low_target)
1516 * linux-tile-low.cc (the_low_target)
1517 * linux-xtensa-low.cc (the_low_target): Remove the op field.
1518 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
1520 (ia64_fetch_register): Turn into...
1521 (ia64_target::low_fetch_register): ...this.
1522 (the_low_target): Remove the op field.
1523 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
1525 (mips_fetch_register): Turn into...
1526 (mips_target::low_fetch_register): ...this.
1527 (the_low_target): Remove the op field.
1528 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
1530 (riscv_fetch_register): Turn into...
1531 (riscv_target::low_fetch_register): ...this.
1532 (the_low_target): Remove the op field.
1534 Update the callers below.
1536 * linux-low.cc (linux_process_target::fetch_registers)
1537 (linux_process_target::low_fetch_register)
1539 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1541 Turn the 'cannot_fetch_register' and 'cannot_store_register'
1542 linux target ops into methods of linux_process_target.
1544 * linux-low.h (struct linux_target_ops): Remove the low target ops.
1545 (class linux_process_target) <fetch_register>
1547 <usr_fetch_inferior_registers>
1548 <usr_store_inferior_registers>
1549 <low_cannot_fetch_register>
1550 <low_cannot_fetch_register> Declare.
1551 * linux-low.cc (fetch_register): Turn into...
1552 (linux_process_target::fetch_register): ...this.
1553 (store_register): Turn into ...
1554 (linux_process_target::store_register): ...this.
1555 (usr_fetch_inferior_registers): Turn into...
1556 (linux_process_target::usr_fetch_inferior_registers): ...this.
1557 (usr_store_inferior_registers): Turn into...
1558 (linux_process_target::usr_store_inferior_registers): ...this.
1559 * linux-x86-low.cc (class x86_target)
1560 <low_cannot_fetch_register>
1561 <low_cannot_store_register>: Declare.
1562 (x86_cannot_store_register): Turn into...
1563 (x86_target::low_cannot_store_register): ...this.
1564 (x86_cannot_fetch_register): Turn into...
1565 (x86_target::low_cannot_fetch_register): ...this.
1566 (the_low_target): Remove the target op fields.
1567 * linux-aarch64-low.cc (class aarch64_target)
1568 <low_cannot_fetch_register>
1569 <low_cannot_store_register>: Declare.
1570 (aarch64_target::low_cannot_fetch_register)
1571 (aarch64_target::low_cannot_store_register): Define.
1572 (the_low_target): Remove the op fields.
1573 * linux-arm-low.cc (class arm_target)
1574 <low_cannot_fetch_register>
1575 <low_cannot_store_register>: Declare.
1576 (arm_cannot_fetch_register): Turn into...
1577 (arm_target::low_cannot_fetch_register): ...this.
1578 (arm_cannot_store_register): Turn into...
1579 (arm_target::low_cannot_store_register): ...this.
1580 (the_low_target): Remove the op fields.
1581 * linux-bfin-low.cc (class bfin_target)
1582 <low_cannot_fetch_register>
1583 <low_cannot_store_register>: Declare.
1584 (bfin_cannot_fetch_register): Turn into...
1585 (bfin_target::low_cannot_fetch_register): ...this.
1586 (bfin_cannot_store_register): Turn into...
1587 (bfin_target::low_cannot_store_register): ...this.
1588 (the_low_target): Remove the op fields.
1589 * linux-cris-low.cc (class cris_target)
1590 <low_cannot_fetch_register>
1591 <low_cannot_store_register>: Declare.
1592 (cris_cannot_fetch_register): Turn into...
1593 (cris_target::low_cannot_fetch_register): ...this.
1594 (cris_cannot_store_register): Turn into...
1595 (cris_target::low_cannot_store_register): ...this.
1596 (the_low_target): Remove the op fields.
1597 * linux-crisv32-low.cc (class crisv32_target)
1598 <low_cannot_fetch_register>
1599 <low_cannot_store_register>: Declare.
1600 (crisv32_target::low_cannot_fetch_register)
1601 (crisv32_target::low_cannot_store_register): Define.
1602 (the_low_target): Remove the op fields.
1603 * linux-ia64-low.cc (class ia64_target)
1604 <low_cannot_fetch_register>
1605 <low_cannot_store_register>: Declare.
1606 (ia64_cannot_fetch_register): Turn into...
1607 (ia64_target::low_cannot_fetch_register): ...this.
1608 (ia64_cannot_store_register): Turn into...
1609 (ia64_target::low_cannot_store_register): ...this.
1610 (the_low_target): Remove the op fields.
1611 * linux-m32r-low.cc (class m32r_target)
1612 <low_cannot_fetch_register>
1613 <low_cannot_store_register>: Declare.
1614 (m32r_cannot_fetch_register): Turn into...
1615 (m32r_target::low_cannot_fetch_register): ...this.
1616 (m32r_cannot_store_register): Turn into...
1617 (m32r_target::low_cannot_store_register): ...this.
1618 (the_low_target): Remove the op fields.
1619 * linux-m68k-low.cc (class m68k_target)
1620 <low_cannot_fetch_register>
1621 <low_cannot_store_register>: Declare.
1622 (m68k_cannot_fetch_register): Turn into...
1623 (m68k_target::low_cannot_fetch_register): ...this.
1624 (m68k_cannot_store_register): Turn into...
1625 (m68k_target::low_cannot_store_register): ...this.
1626 (the_low_target): Remove the op fields.
1627 * linux-mips-low.cc (class mips_target)
1628 <low_cannot_fetch_register>
1629 <low_cannot_store_register>: Declare.
1630 (mips_cannot_fetch_register): Turn into...
1631 (mips_target::low_cannot_fetch_register): ...this.
1632 (mips_cannot_store_register): Turn into...
1633 (mips_target::low_cannot_store_register): ...this.
1634 (get_usrregs_info): Inline at the call sites in
1635 low_cannot_fetch_register and low_cannot_store_register,
1637 (the_low_target): Remove the op fields.
1638 * linux-nios2-low.cc (class nios2_target)
1639 <low_cannot_fetch_register>
1640 <low_cannot_store_register>: Declare.
1641 (nios2_cannot_fetch_register): Turn into...
1642 (nios2_target::low_cannot_fetch_register): ...this.
1643 (nios2_cannot_store_register): Turn into...
1644 (nios2_target::low_cannot_store_register): ...this.
1645 (the_low_target): Remove the op fields.
1646 * linux-ppc-low.cc (class ppc_target)
1647 <low_cannot_fetch_register>
1648 <low_cannot_store_register>: Declare.
1649 (ppc_cannot_fetch_register): Turn into...
1650 (ppc_target::low_cannot_fetch_register): ...this.
1651 (ppc_cannot_store_register): Turn into...
1652 (ppc_target::low_cannot_store_register): ...this.
1653 (the_low_target): Remove the op fields.
1654 * linux-riscv-low.cc (class riscv_target)
1655 <low_cannot_fetch_register>
1656 <low_cannot_store_register>: Declare.
1657 (riscv_target::low_cannot_fetch_register)
1658 (riscv_target::low_cannot_store_register): Define.
1659 (the_low_target): Remove the op fields.
1660 * linux-s390-low.cc (class s390_target)
1661 <low_cannot_fetch_register>
1662 <low_cannot_store_register>: Declare.
1663 (s390_cannot_fetch_register): Turn into...
1664 (s390_target::low_cannot_fetch_register): ...this.
1665 (s390_cannot_store_register): Turn into...
1666 (s390_target::low_cannot_store_register): ...this.
1667 (the_low_target): Remove the op fields.
1668 * linux-sh-low.cc (class sh_target)
1669 <low_cannot_fetch_register>
1670 <low_cannot_store_register>: Declare.
1671 (sh_cannot_fetch_register): Turn into...
1672 (sh_target::low_cannot_fetch_register): ...this.
1673 (sh_cannot_store_register): Turn into...
1674 (sh_target::low_cannot_store_register): ...this.
1675 (the_low_target): Remove the op fields.
1676 * linux-sparc-low.cc (class sparc_target)
1677 <low_cannot_fetch_register>
1678 <low_cannot_store_register>: Declare.
1679 (sparc_cannot_fetch_register): Turn into...
1680 (sparc_target::low_cannot_fetch_register): ...this.
1681 (sparc_cannot_store_register): Turn into...
1682 (sparc_target::low_cannot_store_register): ...this.
1683 (the_low_target): Remove the op fields.
1684 * linux-tic6x-low.cc (class tic6x_target)
1685 <low_cannot_fetch_register>
1686 <low_cannot_store_register>: Declare.
1687 (tic6x_cannot_fetch_register): Turn into...
1688 (tic6x_target::low_cannot_fetch_register): ...this.
1689 (tic6x_cannot_store_register): Turn into...
1690 (tic6x_target::low_cannot_store_register): ...this.
1691 (the_low_target): Remove the op fields.
1692 * linux-tile-low.cc (class tile_target)
1693 <low_cannot_fetch_register>
1694 <low_cannot_store_register>: Declare.
1695 (tile_cannot_fetch_register): Turn into...
1696 (tile_target::low_cannot_fetch_register): ...this.
1697 (tile_cannot_store_register): Turn into...
1698 (tile_target::low_cannot_store_register): ...this.
1699 (the_low_target): Remove the op fields.
1700 * linux-xtensa-low.cc (class xtensa_target)
1701 <low_cannot_fetch_register>
1702 <low_cannot_store_register>: Declare.
1703 (xtensa_target::low_cannot_fetch_register)
1704 (xtensa_target::low_cannot_store_register): Define.
1705 (the_low_target): Remove the op fields.
1707 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1709 Turn the 'regs_info' linux target op into a method of
1710 linux_process_target.
1712 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
1713 (class linux_process_target) <get_regs_info>: Define.
1715 Update the callers below.
1717 * linux-low.cc (linux_process_target::fetch_registers)
1718 (linux_process_target::store_registers)
1719 * proc-service.cc (gregset_info)
1721 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
1722 (x86_linux_regs_info): Turn into ...
1723 (x86_target::get_regs_info): ...this.
1724 (the_low_target): Remove the op field.
1725 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
1727 (aarch64_regs_info): Turn into ...
1728 (aarch64_target::get_regs_info): ...this.
1729 (the_low_target): Remove the op field.
1730 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
1731 (arm_regs_info): Turn into ...
1732 (arm_target::get_regs_info): ...this.
1733 (the_low_target): Remove the op field.
1734 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
1735 (bfin_regs_info): Turn into ...
1736 (bfin_target::get_regs_info): ...this.
1737 (the_low_target): Remove the op field.
1738 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
1739 (cris_regs_info): Turn into ...
1740 (cris_target::get_regs_info): ...this.
1741 (the_low_target): Remove the op field.
1742 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
1744 (crisv32_regs_info): Turn into ...
1745 (crisv32_target::get_regs_info): ...this.
1746 (the_low_target): Remove the op field.
1747 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
1748 (ia64_regs_info): Turn into ...
1749 (ia64_target::get_regs_info): ...this.
1750 (the_low_target): Remove the op field.
1751 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
1752 (m32r_regs_info): Turn into ...
1753 (m32r_target::get_regs_info): ...this.
1754 (the_low_target): Remove the op field.
1755 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
1756 (m68k_regs_info): Turn into ...
1757 (m68k_target::get_regs_info): ...this.
1758 (the_low_target): Remove the op field.
1759 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
1760 (mips_regs_info): Turn into ...
1761 (mips_target::get_regs_info): ...this.
1762 (the_low_target): Remove the op field.
1763 (get_usrregs_info): Update the call to the op.
1764 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
1765 (nios2_regs_info): Turn into ...
1766 (nios2_target::get_regs_info): ...this.
1767 (the_low_target): Remove the op field.
1768 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
1769 (ppc_regs_info): Turn into ...
1770 (ppc_target::get_regs_info): ...this.
1771 (the_low_target): Remove the op field.
1772 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
1773 (riscv_regs_info): Turn into ...
1774 (riscv_target::get_regs_info): ...this.
1775 (the_low_target): Remove the op field.
1776 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
1777 (s390_regs_info): Turn into ...
1778 (s390_target::get_regs_info): ...this.
1779 (the_low_target): Remove the op field.
1780 (s390_collect_ptrace_register)
1781 (s390_supply_ptrace_register)
1782 (s390_fill_gregset): Update the call to the op.
1783 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
1784 (sh_regs_info): Turn into ...
1785 (sh_target::get_regs_info): ...this.
1786 (the_low_target): Remove the op field.
1787 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
1788 (sparc_regs_info): Turn into ...
1789 (sparc_target::get_regs_info): ...this.
1790 (the_low_target): Remove the op field.
1791 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
1792 (tic6x_regs_info): Turn into ...
1793 (tic6x_target::get_regs_info): ...this.
1794 (the_low_target): Remove the op field.
1795 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
1796 (tile_regs_info): Turn into ...
1797 (tile_target::get_regs_info): ...this.
1798 (the_low_target): Remove the op field.
1799 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
1801 (xtensa_regs_info): Turn into ...
1802 (xtensa_target::get_regs_info): ...this.
1803 (the_low_target): Remove the op field.
1805 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1807 Turn the 'arch_setup' linux target op into a method of
1808 linux_process_target.
1810 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
1811 (class linux_process_target) <arch_setup_thread>
1812 <low_arch_setup>: New declarations.
1813 * linux-low.cc (linux_arch_setup): Delete.
1814 (linux_arch_setup_thread): Turn into...
1815 (linux_process_target::arch_setup_thread): ... this.
1817 Update the callers below.
1819 (linux_process_target::handle_extended_wait)
1820 (linux_process_target::post_create_inferior)
1821 (linux_process_target::filter_event)
1823 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
1825 (x86_linux_update_xmltarget): Turn into...
1826 (x86_target::update_xmltarget): ...this.
1827 (x86_linux_process_qsupported): Update the call to
1828 x86_linux_update_xmltarget.
1829 (x86_arch_setup): Turn into ...
1830 (x86_target::low_arch_setup): ...this.
1831 (the_low_target): Remove the op field.
1832 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
1834 (aarch64_arch_setup): Turn into ...
1835 (aarch64_target::low_arch_setup): ...this.
1836 (the_low_target): Remove the op field.
1837 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
1839 (arm_arch_setup): Turn into ...
1840 (arm_target::low_arch_setup): ...this.
1841 (the_low_target): Remove the op field.
1842 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
1844 (bfin_arch_setup): Turn into ...
1845 (bfin_target::low_arch_setup): ...this.
1846 (the_low_target): Remove the op field.
1847 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
1849 (cris_arch_setup): Turn into ...
1850 (cris_target::low_arch_setup): ...this.
1851 (the_low_target): Remove the op field.
1852 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
1854 (crisv32_arch_setup): Turn into ...
1855 (crisv32_target::low_arch_setup): ...this.
1856 (the_low_target): Remove the op field.
1857 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
1859 (ia64_arch_setup): Turn into ...
1860 (ia64_target::low_arch_setup): ...this.
1861 (the_low_target): Remove the op field.
1862 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
1864 (m32r_arch_setup): Turn into ...
1865 (m32r_target::low_arch_setup): ...this.
1866 (the_low_target): Remove the op field.
1867 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
1869 (m68k_arch_setup): Turn into ...
1870 (m68k_target::low_arch_setup): ...this.
1871 (the_low_target): Remove the op field.
1872 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
1874 (mips_arch_setup): Turn into ...
1875 (mips_target::low_arch_setup): ...this.
1876 (the_low_target): Remove the op field.
1877 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
1879 (nios2_arch_setup): Turn into ...
1880 (nios2_target::low_arch_setup): ...this.
1881 (the_low_target): Remove the op field.
1882 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
1884 (ppc_arch_setup): Turn into ...
1885 (ppc_target::low_arch_setup): ...this.
1886 (the_low_target): Remove the op field.
1887 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
1889 (riscv_arch_setup): Turn into ...
1890 (riscv_target::low_arch_setup): ...this.
1891 (the_low_target): Remove the op field.
1892 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
1894 (s390_arch_setup): Turn into ...
1895 (s390_target::low_arch_setup): ...this.
1896 (the_low_target): Remove the op field.
1897 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
1899 (sh_arch_setup): Turn into ...
1900 (sh_target::low_arch_setup): ...this.
1901 (the_low_target): Remove the op field.
1902 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
1904 (sparc_arch_setup): Turn into ...
1905 (sparc_target::low_arch_setup): ...this.
1906 (the_low_target): Remove the op field.
1907 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
1909 (tic6x_arch_setup): Turn into ...
1910 (tic6x_target::low_arch_setup): ...this.
1911 (the_low_target): Remove the op field.
1912 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
1914 (tile_arch_setup): Turn into ...
1915 (tile_target::low_arch_setup): ...this.
1916 (the_low_target): Remove the op field.
1917 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
1919 (xtensa_arch_setup): Turn into ...
1920 (xtensa_target::low_arch_setup): ...this.
1921 (the_low_target): Remove the op field.
1923 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1925 * linux-low.h (the_linux_target): New extern declaration.
1926 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
1928 (the_linux_target): Remove.
1929 * linux-x86-low.cc (class x86_target): New class.
1930 (the_x86_target): New static object.
1931 (the_linux_target): Define as pointer to the_x86_target.
1932 * linux-aarch64-low.cc (class aarch64_target): New class.
1933 (the_aarch64_target): New static object.
1934 (the_linux_target): Define as pointer to the_aarch64_target.
1935 * linux-arm-low.cc (class arm_target): New class.
1936 (the_arm_target): New static object.
1937 (the_linux_target): Define as pointer to the_arm_target.
1938 * linux-bfin-low.cc (class bfin_target): New class.
1939 (the_bfin_target): New static object.
1940 (the_linux_target): Define as pointer to the_bfin_target.
1941 * linux-cris-low.cc (class cris_target): New class.
1942 (the_cris_target): New static object.
1943 (the_linux_target): Define as pointer to the_cris_target.
1944 * linux-crisv32-low.cc (class crisv32_target): New class.
1945 (the_crisv32_target): New static object.
1946 (the_linux_target): Define as pointer to the_crisv32_target.
1947 * linux-ia64-low.cc (class ia64_target): New class.
1948 (the_ia64_target): New static object.
1949 (the_linux_target): Define as pointer to the_ia64_target.
1950 * linux-m32r-low.cc (class m32r_target): New class.
1951 (the_m32r_target): New static object.
1952 (the_linux_target): Define as pointer to the_m32r_target.
1953 * linux-m68k-low.cc (class m68k_target): New class.
1954 (the_m68k_target): New static object.
1955 (the_linux_target): Define as pointer to the_m68k_target.
1956 * linux-mips-low.cc (class mips_target): New class.
1957 (the_mips_target): New static object.
1958 (the_linux_target): Define as pointer to the_mips_target.
1959 * linux-nios2-low.cc (class nios2_target): New class.
1960 (the_nios2_target): New static object.
1961 (the_linux_target): Define as pointer to the_nios2_target.
1962 * linux-ppc-low.cc (class ppc_target): New class.
1963 (the_ppc_target): New static object.
1964 (the_linux_target): Define as pointer to the_ppc_target.
1965 * linux-riscv-low.cc (class riscv_target): New class.
1966 (the_riscv_target): New static object.
1967 (the_linux_target): Define as pointer to the_riscv_target.
1968 * linux-s390-low.cc (class s390_target): New class.
1969 (the_s390_target): New static object.
1970 (the_linux_target): Define as pointer to the_s390_target.
1971 * linux-sh-low.cc (class sh_target): New class.
1972 (the_sh_target): New static object.
1973 (the_linux_target): Define as pointer to the_sh_target.
1974 * linux-sparc-low.cc (class sparc_target): New class.
1975 (the_sparc_target): New static object.
1976 (the_linux_target): Define as pointer to the_sparc_target.
1977 * linux-tic6x-low.cc (class tic6x_target): New class.
1978 (the_tic6x_target): New static object.
1979 (the_linux_target): Define as pointer to the_tic6x_target.
1980 * linux-tile-low.cc (class tile_target): New class.
1981 (the_tile_target): New static object.
1982 (the_linux_target): Define as pointer to the_tile_target.
1983 * linux-xtensa-low.cc (class xtensa_target): New class.
1984 (the_xtensa_target): New static object.
1985 (the_linux_target): Define as pointer to the_xtensa_target.
1987 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1989 Turn some static functions in linux-low.cc into private methods of
1990 linux_process_target.
1992 * linux-low.cc (handle_extended_wait): Turn into ...
1993 (linux_process_target::handle_extended_wait): ...this. Call
1994 'mourn' on 'this' object instead of 'the_target'.
1995 (maybe_move_out_of_jump_pad): Turn into...
1996 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
1997 (linux_low_filter_event): Turn into...
1998 (linux_process_target::filter_event): ...this.
1999 (linux_wait_for_event_filtered): Turn into...
2000 (linux_process_target::wait_for_event_filtered): ...this.
2001 (linux_wait_for_event): Turn into...
2002 (linux_process_target::wait_for_event): ...this.
2003 (linux_wait_1): Turn into...
2004 (linux_process_target::wait_1): ...this.
2005 (wait_for_sigstop): Turn into...
2006 (linux_process_target::wait_for_sigstop): ...this.
2007 (move_out_of_jump_pad_callback): Turn into...
2008 (linux_process_target::move_out_of_jump_pad): ...this.
2009 (stop_all_lwps): Turn into...
2010 (linux_process_target::stop_all_lwps): ...this.
2011 (start_step_over): Turn into...
2012 (linux_process_target::start_step_over): ...this.
2013 (complete_ongoing_step_over): Turn into...
2014 (linux_process_target::complete_ongoing_step_over): ...this.
2015 (proceed_all_lwps): Turn into...
2016 (linux_process_target::proceed_all_lwps): ...this.
2017 (unstop_all_lwps): Turn into...
2018 (linux_process_target::unstop_all_lwps): ...this.
2020 * linux-low.h (class linux_process_target)
2021 <handle_extended_wait>
2022 <maybe_move_out_of_jump_pad>
2024 <wait_for_event_filtered>
2028 <move_out_of_jump_pad>
2031 <complete_ongoing_step_over>
2033 <unstop_all_lwps>: Declare.
2035 Update the callers below.
2037 * linux-low.cc (linux_process_target::attach): Update.
2038 (linux_process_target::stabilize_threads): Ditto.
2039 (linux_process_target::wait): Ditto.
2041 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2043 * linux-low.h (struct linux_target_ops): Update the comment for
2044 'cannot_store_register' to return 0 or 1.
2045 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
2048 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
2050 * config.in: Re-generate.
2051 * configure: Re-generate.
2053 2020-03-17 Kamil Rytarowski <n54@gmx.com>
2055 * regcache.cc (find_register_by_number): Update.
2056 * tdesc.cc (init_target_desc): Likewise.
2057 * tdesc.h (target_desc::reg_defs): Likewise.
2059 2020-03-12 Tom Tromey <tom@tromey.com>
2061 * configure: Rebuild.
2062 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
2063 (WIN32APILIBS): New subst.
2064 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
2066 (gdbsupport/%.o): Remove target.
2067 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
2068 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
2069 (WIN32APILIBS): New variable.
2070 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
2071 (gdbreplay$(EXEEXT)): Likewise.
2073 2020-03-12 Tom Tromey <tom@tromey.com>
2075 * config.in, configure: Rebuild.
2076 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
2077 * acinclude.m4: Include gettext-sister.m4.
2078 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
2080 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
2081 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
2083 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2085 * acinclude.m4: Update path to selftest.m4.
2087 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2089 * configure.ac: Don't source bfd/development.sh, move
2090 GDB_AC_COMMON higher.
2091 * configure: Re-generate.
2093 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2095 * configure: Re-generate.
2097 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
2099 * configure: Re-generate.
2101 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2103 * .dir-locals.el: New file.
2105 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2107 * .gitattributes: New file.
2109 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
2111 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
2112 reply into an S reply.
2113 * server.cc (disable_packet_T): New global.
2114 (captured_main): Set new global when appropriate.
2115 * server.h (disable_packet_T): Declare.
2117 2020-02-21 Tom Tromey <tom@tromey.com>
2119 * Makefile.in (mostlyclean): New target.
2121 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2123 * target.h (struct process_stratum_target): Remove.
2124 (class process_target): Rename to ...
2125 (class process_stratum_target): ... this.
2126 * linux-low.h (class linux_process_target): Derive from
2127 'process_stratum_target'.
2128 * linux-low.cc (linux_target_ops): Remove.
2129 (initialize_low): Set the_target to the singleton instance of
2130 linux_process_target.
2131 * lynx-low.h (class lynx_process_target): Derive from
2132 'process_stratum_target'.
2133 * lynx-low.cc (lynx_target_ops): Remove.
2134 (initialize_low): Set the_target to the singleton instance of
2135 lynx_process_target.
2136 * nto-low.h (class nto_process_target): Derive from
2137 'process_stratum_target'.
2138 * nto-low.cc (nto_target_ops): Remove.
2139 (initialize_low): Set the_target to the singleton instance of
2141 * win32-low.h (class win32_process_target): Derive from
2142 'process_stratum_target'.
2143 * win32-low.cc (win32_target_ops): Remove.
2144 (initialize_low): Set the_target to the singleton instance of
2145 win32_process_target.
2147 Replace 'the_target->pt' with 'the_target' in the uses below.
2149 * hostio.cc (hostio_error)
2154 * linux-aarch32-low.cc (arm_breakpoint_at)
2155 * linux-aarch64-low.cc (aarch64_breakpoint_at)
2156 * linux-arm-low.cc (arm_sigreturn_next_pc)
2158 (arm_get_syscall_trapinfo)
2159 * linux-cris-low.cc (cris_breakpoint_at)
2160 * linux-crisv32-low.cc (cris_breakpoint_at)
2161 * linux-low.cc (handle_extended_wait)
2164 (linux_process_target::breakpoint_kind_from_pc)
2166 * linux-m32r-low.cc (m32r_breakpoint_at)
2167 * linux-mips-low.cc (mips_breakpoint_at)
2168 * linux-nios2-low.cc (nios2_breakpoint_at)
2169 * linux-ppc-low.cc (ppc_breakpoint_at)
2170 * linux-s390-low.cc (s390_get_hwcap)
2171 * linux-sh-low.cc (sh_breakpoint_at)
2172 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
2173 (sparc_store_gregset_from_stack)
2174 (sparc_breakpoint_at)
2175 * linux-tic6x-low.cc (tic6x_breakpoint_at)
2176 * linux-tile-low.cc (tile_breakpoint_at)
2177 * linux-x86-low.cc (x86_breakpoint_at)
2178 * linux-xtensa-low.cc (xtensa_breakpoint_at)
2179 * mem-break.cc (bp_size)
2181 (insert_memory_breakpoint)
2182 (set_raw_breakpoint_at)
2183 (delete_raw_breakpoint)
2185 (uninsert_raw_breakpoint)
2186 (reinsert_raw_breakpoint)
2187 (validate_inserted_breakpoint)
2188 * regcache.cc (regcache_read_pc)
2190 * remote-utils.cc (putpkt_binary_1)
2193 (prepare_resume_reply)
2194 * server.cc (handle_general_set)
2197 (handle_qxfer_exec_file)
2198 (handle_qxfer_libraries_svr4)
2199 (handle_qxfer_osdata)
2200 (handle_qxfer_siginfo)
2201 (handle_qxfer_fdpic)
2205 (queue_stop_reply_callback)
2207 * target.cc (prepare_to_access_memory)
2208 (done_accessing_memory)
2209 (read_inferior_memory)
2210 (target_write_memory)
2211 (target_stop_and_wait)
2213 (target_mourn_inferior)
2214 (target_continue_no_signal)
2216 (target_supports_multi_process)
2219 (target_create_inferior)
2220 (target_post_create_inferior)
2222 (target_supports_fork_events)
2223 (target_supports_vfork_events)
2224 (target_supports_exec_events)
2225 (target_handle_new_gdb_connection)
2228 (fetch_inferior_registers)
2229 (store_inferior_registers)
2231 (target_supports_non_stop)
2233 (target_process_qsupported)
2234 (target_supports_catch_syscall)
2235 (target_get_ipa_tdesc_idx)
2236 (target_supports_tracepoints)
2237 (target_supports_fast_tracepoints)
2238 (target_get_min_fast_tracepoint_insn_len)
2239 (target_thread_stopped)
2241 (target_unpause_all)
2242 (target_stabilize_threads)
2243 (target_install_fast_tracepoint_jump_pad)
2245 (target_supports_disable_randomization)
2246 (target_supports_agent)
2247 (target_enable_btrace)
2248 (target_disable_btrace)
2249 (target_read_btrace)
2250 (target_read_btrace_conf)
2251 (target_supports_range_stepping)
2252 (target_supports_stopped_by_sw_breakpoint)
2253 (target_stopped_by_sw_breakpoint)
2254 (target_supports_stopped_by_hw_breakpoint)
2255 (target_supports_hardware_single_step)
2256 (target_stopped_by_hw_breakpoint)
2257 (target_breakpoint_kind_from_pc)
2258 (target_breakpoint_kind_from_current_state)
2259 (target_supports_software_single_step)
2260 (target_core_of_thread)
2261 (target_thread_name)
2262 (target_thread_handle)
2263 * win32-low.cc (do_initial_child_stuff)
2265 Rename target op default definitions listed below.
2267 * target.cc (process_target::post_create_inferior): Rename as ...
2268 (process_stratum_target::post_create_inferior): ... this.
2269 (process_target::prepare_to_access_memory): Rename as ...
2270 (process_stratum_target::prepare_to_access_memory): ... this.
2271 (process_target::done_accessing_memory): Rename as ...
2272 (process_stratum_target::done_accessing_memory): ... this.
2273 (process_target::look_up_symbols): Rename as ...
2274 (process_stratum_target::look_up_symbols): ... this.
2275 (process_target::supports_read_auxv): Rename as ...
2276 (process_stratum_target::supports_read_auxv): ... this.
2277 (process_target::read_auxv): Rename as ...
2278 (process_stratum_target::read_auxv): ... this.
2279 (process_target::supports_z_point_type): Rename as ...
2280 (process_stratum_target::supports_z_point_type): ... this.
2281 (process_target::insert_point): Rename as ...
2282 (process_stratum_target::insert_point): ... this.
2283 (process_target::remove_point): Rename as ...
2284 (process_stratum_target::remove_point): ... this.
2285 (process_target::stopped_by_sw_breakpoint): Rename as ...
2286 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
2287 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
2288 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
2289 (process_target::stopped_by_hw_breakpoint): Rename as ...
2290 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
2291 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
2292 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
2293 (process_target::supports_hardware_single_step): Rename as ...
2294 (process_stratum_target::supports_hardware_single_step): ... this.
2295 (process_target::stopped_by_watchpoint): Rename as ...
2296 (process_stratum_target::stopped_by_watchpoint): ... this.
2297 (process_target::stopped_data_address): Rename as ...
2298 (process_stratum_target::stopped_data_address): ... this.
2299 (process_target::supports_read_offsets): Rename as ...
2300 (process_stratum_target::supports_read_offsets): ... this.
2301 (process_target::read_offsets): Rename as ...
2302 (process_stratum_target::read_offsets): ... this.
2303 (process_target::supports_get_tls_address): Rename as ...
2304 (process_stratum_target::supports_get_tls_address): ... this.
2305 (process_target::get_tls_address): Rename as ...
2306 (process_stratum_target::get_tls_address): ... this.
2307 (process_target::hostio_last_error): Rename as ...
2308 (process_stratum_target::hostio_last_error): ... this.
2309 (process_target::supports_qxfer_osdata): Rename as ...
2310 (process_stratum_target::supports_qxfer_osdata): ... this.
2311 (process_target::qxfer_osdata): Rename as ...
2312 (process_stratum_target::qxfer_osdata): ... this.
2313 (process_target::supports_qxfer_siginfo): Rename as ...
2314 (process_stratum_target::supports_qxfer_siginfo): ... this.
2315 (process_target::qxfer_siginfo): Rename as ...
2316 (process_stratum_target::qxfer_siginfo): ... this.
2317 (process_target::supports_non_stop): Rename as ...
2318 (process_stratum_target::supports_non_stop): ... this.
2319 (process_target::async): Rename as ...
2320 (process_stratum_target::async): ... this.
2321 (process_target::start_non_stop): Rename as ...
2322 (process_stratum_target::start_non_stop): ... this.
2323 (process_target::supports_multi_process): Rename as ...
2324 (process_stratum_target::supports_multi_process): ... this.
2325 (process_target::supports_fork_events): Rename as ...
2326 (process_stratum_target::supports_fork_events): ... this.
2327 (process_target::supports_vfork_events): Rename as ...
2328 (process_stratum_target::supports_vfork_events): ... this.
2329 (process_target::supports_exec_events): Rename as ...
2330 (process_stratum_target::supports_exec_events): ... this.
2331 (process_target::handle_new_gdb_connection): Rename as ...
2332 (process_stratum_target::handle_new_gdb_connection): ... this.
2333 (process_target::handle_monitor_command): Rename as ...
2334 (process_stratum_target::handle_monitor_command): ... this.
2335 (process_target::core_of_thread): Rename as ...
2336 (process_stratum_target::core_of_thread): ... this.
2337 (process_target::supports_read_loadmap): Rename as ...
2338 (process_stratum_target::supports_read_loadmap): ... this.
2339 (process_target::read_loadmap): Rename as ...
2340 (process_stratum_target::read_loadmap): ... this.
2341 (process_target::process_qsupported): Rename as ...
2342 (process_stratum_target::process_qsupported): ... this.
2343 (process_target::supports_tracepoints): Rename as ...
2344 (process_stratum_target::supports_tracepoints): ... this.
2345 (process_target::read_pc): Rename as ...
2346 (process_stratum_target::read_pc): ... this.
2347 (process_target::write_pc): Rename as ...
2348 (process_stratum_target::write_pc): ... this.
2349 (process_target::supports_thread_stopped): Rename as ...
2350 (process_stratum_target::supports_thread_stopped): ... this.
2351 (process_target::thread_stopped): Rename as ...
2352 (process_stratum_target::thread_stopped): ... this.
2353 (process_target::supports_get_tib_address): Rename as ...
2354 (process_stratum_target::supports_get_tib_address): ... this.
2355 (process_target::get_tib_address): Rename as ...
2356 (process_stratum_target::get_tib_address): ... this.
2357 (process_target::pause_all): Rename as ...
2358 (process_stratum_target::pause_all): ... this.
2359 (process_target::unpause_all): Rename as ...
2360 (process_stratum_target::unpause_all): ... this.
2361 (process_target::stabilize_threads): Rename as ...
2362 (process_stratum_target::stabilize_threads): ... this.
2363 (process_target::supports_fast_tracepoints): Rename as ...
2364 (process_stratum_target::supports_fast_tracepoints): ... this.
2365 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
2366 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
2367 (process_target::emit_ops): Rename as ...
2368 (process_stratum_target::emit_ops): ... this.
2369 (process_target::supports_disable_randomization): Rename as ...
2370 (process_stratum_target::supports_disable_randomization): ... this.
2371 (process_target::supports_qxfer_libraries_svr4): Rename as ...
2372 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
2373 (process_target::qxfer_libraries_svr4): Rename as ...
2374 (process_stratum_target::qxfer_libraries_svr4): ... this.
2375 (process_target::supports_agent): Rename as ...
2376 (process_stratum_target::supports_agent): ... this.
2377 (process_target::enable_btrace): Rename as ...
2378 (process_stratum_target::enable_btrace): ... this.
2379 (process_target::disable_btrace): Rename as ...
2380 (process_stratum_target::disable_btrace): ... this.
2381 (process_target::read_btrace): Rename as ...
2382 (process_stratum_target::read_btrace): ... this.
2383 (process_target::read_btrace_conf): Rename as ...
2384 (process_stratum_target::read_btrace_conf): ... this.
2385 (process_target::supports_range_stepping): Rename as ...
2386 (process_stratum_target::supports_range_stepping): ... this.
2387 (process_target::supports_pid_to_exec_file): Rename as ...
2388 (process_stratum_target::supports_pid_to_exec_file): ... this.
2389 (process_target::pid_to_exec_file): Rename as ...
2390 (process_stratum_target::pid_to_exec_file): ... this.
2391 (process_target::supports_multifs): Rename as ...
2392 (process_stratum_target::supports_multifs): ... this.
2393 (process_target::multifs_open): Rename as ...
2394 (process_stratum_target::multifs_open): ... this.
2395 (process_target::multifs_unlink): Rename as ...
2396 (process_stratum_target::multifs_unlink): ... this.
2397 (process_target::multifs_readlink): Rename as ...
2398 (process_stratum_target::multifs_readlink): ... this.
2399 (process_target::breakpoint_kind_from_pc): Rename as ...
2400 (process_stratum_target::breakpoint_kind_from_pc): ... this.
2401 (process_target::breakpoint_kind_from_current_state): Rename as ...
2402 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
2403 (process_target::thread_name): Rename as ...
2404 (process_stratum_target::thread_name): ... this.
2405 (process_target::thread_handle): Rename as ...
2406 (process_stratum_target::thread_handle): ... this.
2407 (process_target::supports_software_single_step): Rename as ...
2408 (process_stratum_target::supports_software_single_step): ... this.
2409 (process_target::supports_catch_syscall): Rename as ...
2410 (process_stratum_target::supports_catch_syscall): ... this.
2411 (process_target::get_ipa_tdesc_idx): Rename as ...
2412 (process_stratum_target::get_ipa_tdesc_idx): ... this.
2414 2020-02-20 Pedro Alves <palves@redhat.com>
2416 * target.cc (set_target_ops): Simply copy the given target pointer
2417 instead of creating a copy of the pointed object.
2419 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2421 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
2424 * target.h (struct process_stratum_target): Remove the target op.
2425 (class process_target): Add the target op.
2426 (target_get_ipa_tdesc_idx): Update the macro.
2427 * target.cc (process_target::get_ipa_tdesc_idx): Define.
2429 Update the derived classes and callers below.
2431 * linux-low.cc (linux_target_ops): Update.
2432 (linux_get_ipa_tdesc_idx): Turn into ...
2433 (linux_process_target::get_ipa_tdesc_idx): ... this.
2434 * linux-low.h (class linux_process_target): Update.
2435 * lynx-low.cc (lynx_target_ops): Update.
2436 * nto-low.cc (nto_target_ops): Update.
2437 * win32-low.cc (win32_target_ops): Update.
2439 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2441 Turn process_stratum_target's supports_catch_syscall op into a
2442 method of process_target.
2444 * target.h (struct process_stratum_target): Remove the target op.
2445 (class process_target): Add the target op.
2446 (target_supports_catch_syscall): Update the macro.
2447 * target.cc (process_target::supports_catch_syscall): Define.
2449 Update the derived classes and callers below.
2451 * linux-low.cc (linux_target_ops): Update.
2452 (linux_supports_catch_syscall): Turn into ...
2453 (linux_process_target::supports_catch_syscall): ... this.
2454 * linux-low.h (class linux_process_target): Update.
2455 * lynx-low.cc (lynx_target_ops): Update.
2456 * nto-low.cc (nto_target_ops): Update.
2457 * win32-low.cc (win32_target_ops): Update.
2459 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2461 Turn process_stratum_target's supports_software_single_step op
2462 into a method of process_target.
2464 * target.h (struct process_stratum_target): Remove the target op.
2465 (class process_target): Add the target op.
2466 (target_supports_software_single_step): Update the macro.
2467 * target.cc (process_target::supports_software_single_step): Define.
2469 Update the derived classes and callers below.
2471 * linux-low.cc (linux_target_ops): Update.
2472 (linux_supports_software_single_step): Turn into ...
2473 (linux_process_target::supports_software_single_step): ... this.
2474 * linux-low.h (class linux_process_target): Update.
2475 * lynx-low.cc (lynx_target_ops): Update.
2476 * nto-low.cc (nto_target_ops): Update.
2477 * win32-low.cc (win32_target_ops): Update.
2479 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2481 Turn process_stratum_target's thread_name and thread_handle ops
2482 into methods of process_target.
2484 * target.h (struct process_stratum_target): Remove the target ops.
2485 (class process_target): Add the target ops.
2486 (target_thread_name): Update the macro.
2487 (target_thread_handle): Update the macro.
2488 * target.cc (process_target::thread_name): Define.
2489 (process_target::thread_handle): Define.
2491 Update the derived classes and callers below.
2493 * linux-low.cc (linux_target_ops): Update.
2494 (linux_process_target::thread_name): Define.
2495 (linux_process_target::thread_handle): Define.
2496 * linux-low.h (class linux_process_target): Update.
2497 * lynx-low.cc (lynx_target_ops): Update.
2498 * nto-low.cc (nto_target_ops): Update.
2499 * win32-low.cc (win32_target_ops): Update.
2501 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2503 Turn process_stratum_target's breakpoint_kind_from_pc,
2504 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
2505 ops into methods of process_target.
2507 * target.h (struct process_stratum_target): Remove the target op.
2508 (class process_target): Add the target op.
2509 (target_breakpoint_kind_from_pc): Update the macro.
2510 (target_breakpoint_kind_from_current_state): Update the macro.
2511 (default_breakpoint_kind_from_pc): Remove declaration.
2512 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
2513 (process_target::breakpoint_kind_from_pc): ... this.
2514 (process_target::breakpoint_kind_from_current_state): Define.
2516 Update the derived classes and callers below.
2518 * mem-break.cc (bp_size): Update.
2519 (bp_opcode): Update.
2520 * linux-low.cc (linux_target_ops): Update.
2521 (linux_wait_1): Update.
2522 (linux_breakpoint_kind_from_pc): Turn into ...
2523 (linux_process_target::breakpoint_kind_from_pc): ... this.
2524 (linux_sw_breakpoint_from_kind): Turn into ...
2525 (linux_process_target::sw_breakpoint_from_kind): ... this.
2526 (linux_breakpoint_kind_from_current_state): Turn into ...
2527 (linux_process_target::breakpoint_kind_from_current_state): ... this.
2528 * linux-low.h (class linux_process_target): Update.
2529 * lynx-low.cc (lynx_target_ops): Update.
2530 (lynx_process_target::sw_breakpoint_from_kind): Define.
2531 * lynx-low.h (class lynx_process_target): Update.
2532 * nto-low.cc (nto_target_ops): Update.
2533 (nto_sw_breakpoint_from_kind): Turn into ...
2534 (nto_process_target::sw_breakpoint_from_kind): ... this.
2535 * nto-low.h (class nto_process_target): Update.
2536 * win32-low.cc (win32_target_ops): Update.
2537 (win32_sw_breakpoint_from_kind): Turn into ...
2538 (win32_process_target::sw_breakpoint_from_kind): ... this.
2539 * win32-low.h (class win32_process_target): Update.
2541 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2543 Turn process_stratum_target's multifs_open, multifs_readlink,
2544 multifs_unlink ops into methods of process_target.
2546 * target.h (struct process_stratum_target): Remove the target ops.
2547 (class process_target): Add the target ops. Also add
2549 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
2551 (process_target::supports_multifs): Define.
2552 (process_target::multifs_open): Define.
2553 (process_target::multifs_readlink): Define.
2554 (process_target::multifs_unlink): Define.
2556 Update the derived classes and callers below.
2558 * hostio.cc (handle_setfs): Update.
2559 (handle_open): Update.
2560 (handle_unlink): Update.
2561 (handle_readlink): Update.
2562 * linux-low.cc (linux_target_ops): Update.
2563 (linux_process_target::supports_multifs): Define.
2564 (linux_process_target::multifs_open): Define.
2565 (linux_process_target::multifs_readlink): Define.
2566 (linux_process_target::multifs_unlink): Define.
2567 * linux-low.h (class linux_process_target): Update.
2568 * lynx-low.cc (lynx_target_ops): Update.
2569 * nto-low.cc (nto_target_ops): Update.
2570 * win32-low.cc (win32_target_ops): Update.
2572 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2574 Turn process_stratum_target's pid_to_exec_file op into a method
2577 * target.h (struct process_stratum_target): Remove the target op.
2578 (class process_target): Add the target op. Also add
2579 'supports_pid_to_exec_file'.
2580 * target.cc (process_target::pid_to_exec_file): Define.
2581 (process_target::supports_pid_to_exec_file): Define.
2583 Update the derived classes and callers below.
2585 * server.cc (handle_qxfer_exec_file): Update.
2586 (handle_query): Update.
2587 * linux-low.cc (linux_target_ops): Update.
2588 (linux_process_target::supports_pid_to_exec_file): Define.
2589 (linux_process_target::pid_to_exec_file): Define.
2590 * linux-low.h (class linux_process_target): Update.
2591 * lynx-low.cc (lynx_target_ops): Update.
2592 * nto-low.cc (nto_target_ops): Update.
2593 * win32-low.cc (win32_target_ops): Update.
2595 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2597 Turn process_stratum_target's supports_range_stepping op into a
2598 method of process_target.
2600 * target.h (struct process_stratum_target): Remove the target op.
2601 (class process_target): Add the target op.
2602 (target_supports_range_stepping): Update the macro.
2603 * target.cc (process_target::supports_range_stepping): Define.
2605 Update the derived classes and callers below.
2607 * linux-low.cc (linux_target_ops): Update.
2608 (linux_supports_range_stepping): Turn into ...
2609 (linux_process_target::supports_range_stepping): ... this.
2610 * linux-low.h (class linux_process_target): Update.
2611 * lynx-low.cc (lynx_target_ops): Update.
2612 * nto-low.cc (nto_target_ops): Update.
2613 * win32-low.cc (win32_target_ops): Update.
2615 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2617 Turn process_stratum_target's btrace-related ops (enable_btrace,
2618 disable_btrace, read_btrace, read_btrace_conf) into methods of
2621 * target.h (struct process_stratum_target): Remove the target ops.
2622 (class process_target): Add the target ops.
2623 (target_enable_btrace): Update.
2624 (target_disable_btrace): Update.
2625 (target_read_btrace): Update.
2626 (target_read_btrace_conf): Update.
2627 * target.cc (process_target::enable_btrace): Define.
2628 (process_target::disable_btrace): Define.
2629 (process_target::read_btrace): Define.
2630 (process_target::read_btrace_conf): Define.
2632 Update the derived classes and callers below.
2634 * linux-low.cc (linux_target_ops): Update.
2635 (linux_process_target:enable_btrace): Define as a wrapper around
2636 linux_enable_btrace.
2637 (linux_low_disable_btrace): Turn into ...
2638 (linux_process_target::disable_btrace): ... this.
2639 (linux_low_read_btrace): Turn into ...
2640 (linux_process_target::read_btrace): ... this.
2641 (linux_low_btrace_conf): Turn into ...
2642 (linux_process_target::read_btrace_conf): ... this.
2643 * linux-low.h (class linux_process_target): Update.
2644 * lynx-low.cc (lynx_target_ops): Update.
2645 * nto-low.cc (nto_target_ops): Update.
2646 * win32-low.cc (win32_target_ops): Update.
2648 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2650 Turn process_stratum_target's supports_agent op into a method of
2653 * target.h (struct process_stratum_target): Remove the target op.
2654 (class process_target): Add the target op.
2655 (target_supports_agent): Update the macro.
2656 * target.cc (process_target::supports_agent): Define.
2658 Update the derived classes and callers below.
2660 * linux-low.cc (linux_target_ops): Update.
2661 (linux_supports_agent): Turn into ...
2662 (linux_process_target::supports_agent): ... this.
2663 * linux-low.h (class linux_process_target): Update.
2664 * lynx-low.cc (lynx_target_ops): Update.
2665 * nto-low.cc (nto_target_ops): Update.
2666 * win32-low.cc (win32_target_ops): Update.
2668 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2670 Turn process_stratum_target's qxfer_libraries_svr4 op into a
2671 method of process_target.
2673 * target.h (struct process_stratum_target): Remove the target op.
2674 (class process_target): Add the target op. Also add
2675 'supports_qxfer_libraries_svr4'.
2676 * target.cc (process_target::qxfer_libraries_svr4): Define.
2677 (process_target::supports_qxfer_libraries_svr4): Define.
2679 Update the derived classes and callers below.
2681 * server.cc (handle_qxfer_libraries_svr4): Update.
2682 (handle_query): Update.
2683 * linux-low.cc (linux_target_ops): Update.
2684 (linux_process_target::supports_qxfer_libraries_svr4): Define.
2685 (linux_qxfer_libraries_svr4): Turn into ...
2686 (linux_process_target::qxfer_libraries_svr4): ... this.
2687 * linux-low.h (class linux_process_target): Update.
2688 * lynx-low.cc (lynx_target_ops): Update.
2689 * nto-low.cc (nto_target_ops): Update.
2690 * win32-low.cc (win32_target_ops): Update.
2692 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2694 Turn process_stratum_target's supports_disable_randomization op
2695 into a method of process_target.
2697 * target.h (struct process_stratum_target): Remove the target op.
2698 (class process_target): Add the target op.
2699 (target_supports_disable_randomization): Update the macro.
2700 * target.cc (process_target::supports_disable_randomization): Define.
2702 Update the derived classes and callers below.
2704 * linux-low.cc (linux_target_ops): Update.
2705 (linux_supports_disable_randomization): Turn into ...
2706 (linux_process_target::supports_disable_randomization): ... this.
2707 * linux-low.h (class linux_process_target): Update.
2708 * lynx-low.cc (lynx_target_ops): Update.
2709 * nto-low.cc (nto_target_ops): Update.
2710 * win32-low.cc (win32_target_ops): Update.
2712 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2714 Turn process_stratum_target's emit_ops op into a method of
2717 * target.h (struct process_stratum_target): Remove the target op.
2718 (class process_target): Add the target op.
2719 (target_emit_ops): Update the macro.
2720 * target.cc (process_target::emit_ops): Define.
2722 Update the derived classes and callers below.
2724 * linux-low.cc (linux_target_ops): Update.
2725 (linux_emit_ops): Turn into ...
2726 (linux_process_target::emit_ops): ... this.
2727 * linux-low.h (class linux_process_target): Update.
2728 * lynx-low.cc (lynx_target_ops): Update.
2729 * nto-low.cc (nto_target_ops): Update.
2730 * win32-low.cc (win32_target_ops): Update.
2732 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2734 Turn process_stratum_target's install_fast_tracepoint_jump_pad
2735 and get_min_fast_tracepoint_insn_len ops into methods of
2738 * target.h (struct process_stratum_target): Remove the target ops.
2739 (class process_target): Add the target ops. Also add
2740 'supports_fast_tracepoints'.
2741 (target_supports_fast_tracepoints): Update the macro.
2742 (target_get_min_fast_tracepoint_insn_len): Update the macro.
2743 (install_fast_tracepoint_jump_pad): Update and rename the macro
2745 (target_install_fast_tracepoint_jump_pad): ... this.
2746 * target.cc (process_target::supports_fast_tracepoints): Define.
2747 (process_target::install_fast_tracepoint_jump_pad): Define.
2748 (process_target::get_min_fast_tracepoint_insn_len): Define.
2750 Update the derived classes and callers below.
2752 * tracepoint.cc (install_fast_tracepoint): Update.
2753 * linux-low.cc (linux_target_ops): Update.
2754 (linux_process_target::supports_fast_tracepoints): Define.
2755 (linux_install_fast_tracepoint_jump_pad): Turn into ...
2756 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
2757 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
2758 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
2759 * linux-low.h (class linux_process_target): Update.
2760 * lynx-low.cc (lynx_target_ops): Update.
2761 * nto-low.cc (nto_target_ops): Update.
2762 * win32-low.cc (win32_target_ops): Update.
2764 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2766 Turn process_stratum_target's stabilize_threads op into a
2767 method of process_target.
2769 * target.h (struct process_stratum_target): Remove the target op.
2770 (class process_target): Add the target op.
2771 (target_stabilize_threads): Update the macro.
2772 * target.cc (process_target::stabilize_threads): Define.
2774 Update the derived classes and callers below.
2776 * server.cc (handle_status): Update.
2777 * tracepoint.cc (cmd_qtdp): Update.
2778 (cmd_qtstart): Update.
2779 * linux-low.cc (linux_target_ops): Update.
2780 (linux_stabilize_threads): Turn into ...
2781 (linux_process_target::stabilize_threads): ... this.
2782 (linux_wait_1): Update.
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 pause_all and unpause_all ops
2791 into methods of process_target.
2793 * target.h (struct process_stratum_target): Remove the target ops.
2794 (class process_target): Add the target ops.
2795 (pause_all): Update the macro and rename to...
2796 (target_pause_all): ... this.
2797 (unpause_all): Update the macro and rename to...
2798 (target_unpause_all): ... this.
2799 * target.cc (process_target::pause_all): Define.
2800 (process_target::unpause_all): Define.
2802 Update the derived classes and callers below.
2804 * server.cc (handle_status): Update.
2805 * tracepoint.cc (clear_installed_tracepoints): Update.
2807 (cmd_qtstart): Update.
2808 (stop_tracing): Update.
2809 (cmd_qtstatus): Update.
2810 (upload_fast_traceframes): Update.
2811 (run_inferior_command): Update.
2812 * linux-low.cc (linux_target_ops): Update.
2813 (linux_pause_all): Turn into ...
2814 (linux_process_target::pause_all): ... this.
2815 (linux_unpause_all): Turn into ...
2816 (linux_process_target::unpause_all): ... this.
2817 (linux_process_target::prepare_to_access_memory): Update.
2818 (linux_process_target::done_accessing_memory): Update.
2819 * linux-low.h (class linux_process_target): Update.
2820 * lynx-low.cc (lynx_target_ops): Update.
2821 * nto-low.cc (nto_target_ops): Update.
2822 * win32-low.cc (win32_target_ops): Update.
2824 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2826 Turn process_stratum_target's get_tib_address op into a method of
2829 * target.h (struct process_stratum_target): Remove the target op.
2830 (class process_target): Add the target op. Also add
2831 'supports_get_tib_address'.
2832 * target.cc (process_target::get_tib_address): Define.
2833 (process_target::supports_get_tib_address): Define.
2835 Update the derived classes and callers below.
2837 * server.cc (handle_query): Update.
2838 * linux-low.cc (win32_target_ops): Update.
2839 * lynx-low.cc (lynx_target_ops): Update.
2840 * nto-low.cc (nto_target_ops): Update.
2841 * win32-low.cc (win32_target_ops): Update.
2842 (win32_process_target::supports_get_tib_address): Define.
2843 (win32_get_tib_address): Turn into ...
2844 (win32_process_target::get_tib_address): ... this.
2845 * win32-low.h (class win32_process_target): Update.
2847 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2849 Turn process_stratum_target's thread_stopped op into a method of
2852 * target.h (struct process_stratum_target): Remove the target op.
2853 (class process_target): Add the target op. Also add
2854 'supports_thread_stopped'.
2855 (target_thread_stopped): Update the macro.
2856 * target.cc (process_target::thread_stopped): Define.
2857 (process_target::supports_thread_stopped): Define.
2858 (prepare_to_access_memory): Update.
2860 Update the derived classes and callers below.
2862 * server.cc (queue_stop_reply_callback): Update.
2863 * linux-low.cc (linux_target_ops): Update.
2864 (linux_process_target::supports_thread_stopped): Define.
2865 (linux_thread_stopped): Turn into ...
2866 (linux_process_target::thread_stopped): ... this.
2867 * linux-low.h (class linux_process_target): Update.
2868 * lynx-low.cc (lynx_target_ops): Update.
2869 * nto-low.cc (nto_target_ops): Update.
2870 * win32-low.cc (win32_target_ops): Update.
2872 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2874 Turn process_stratum_target's read_pc and write_pc ops into
2875 methods of process_target.
2877 * target.h (struct process_stratum_target): Remove the target ops.
2878 (class process_target): Add the target ops.
2879 * target.cc (process_target::read_pc): Define.
2880 (process_target::write_pc): Define.
2882 Update the derived classes and callers below.
2884 * regcache.cc (regcache_read_pc): Update.
2885 (regcache_write_pc): Update.
2886 * linux-low.cc (linux_target_ops): Update.
2887 (linux_read_pc): Turn into ...
2888 (linux_process_target::read_pc): ... this.
2889 (linux_write_pc): Turn into ...
2890 (linux_process_target::write_pc): ... this.
2891 * linux-low.h (class linux_process_target): Update.
2892 * lynx-low.cc (lynx_target_ops): Update.
2893 * nto-low.cc (nto_target_ops): Update.
2894 * win32-low.cc (win32_target_ops): Update.
2896 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2898 Turn process_stratum_target's supports_tracepoints op into a
2899 method of process_target.
2901 * target.h (struct process_stratum_target): Remove the target op.
2902 (class process_target): Add the target op.
2903 (target_supports_tracepoints): Update the macro.
2904 * target.cc (process_target::supports_tracepoints): Define.
2906 Update the derived classes and callers below.
2908 * linux-low.cc (linux_target_ops): Update.
2909 (linux_supports_tracepoints): Turn into ...
2910 (linux_process_target::supports_tracepoints): ... this.
2911 * linux-low.h (class linux_process_target): Update.
2912 * lynx-low.cc (lynx_target_ops): Update.
2913 * nto-low.cc (nto_target_ops): Update.
2914 * win32-low.cc (win32_target_ops): Update.
2916 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2918 Turn process_stratum_target's process_qsupported op into a method
2921 * target.h (struct process_stratum_target): Remove the target op.
2922 (class process_target): Add the target op.
2923 (target_process_qsupported): Update the macro.
2924 * target.cc (process_target::process_qsupported): Define.
2926 Update the derived classes and callers below.
2928 * linux-low.cc (linux_target_ops): Update.
2929 (linux_process_qsupported): Turn into ...
2930 (linux_process_target::process_qsupported): ... this.
2931 * linux-low.h (class linux_process_target): Update.
2932 * lynx-low.cc (lynx_target_ops): Update.
2933 * nto-low.cc (nto_target_ops): Update.
2934 * win32-low.cc (win32_target_ops): Update.
2936 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2938 Turn process_stratum_target's read_loadmap op into a method of
2941 * target.h (struct process_stratum_target): Remove the target op.
2942 (class process_target): Add the target op. Also add
2943 'supports_read_loadmap'.
2944 * target.cc (process_target::read_loadmap): Define.
2945 (process_target::supports_read_loadmap): Define.
2947 Update the derived classes and callers below.
2949 * server.cc (handle_qxfer_fdpic): Update.
2950 (handle_query): Update.
2951 * linux-low.cc (linux_target_ops): Update.
2952 (linux_process_target::supports_read_loadmap): Define.
2953 (linux_read_loadmap): Turn into ...
2954 (linux_process_target::read_loadmap): ... this.
2955 * linux-low.h (class linux_process_target): Update.
2956 * lynx-low.cc (lynx_target_ops): Update.
2957 * nto-low.cc (nto_target_ops): Update.
2958 * win32-low.cc (win32_target_ops): Update.
2960 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2962 Turn process_stratum_target's core_of_thread op into a method of
2965 * target.h (struct process_stratum_target): Remove the target op.
2966 (class process_target): Add the target op.
2967 (target_core_of_thread): Update the macro.
2968 * target.cc (process_target::core_of_thread): Define.
2970 Update the derived classes and callers below.
2972 * linux-low.cc (linux_target_ops): Update.
2973 (linux_process_target::core_of_thread): Define.
2974 * linux-low.h (class linux_process_target): Update.
2975 * lynx-low.cc (lynx_target_ops): Update.
2976 * nto-low.cc (nto_target_ops): Update.
2977 * win32-low.cc (win32_target_ops): Update.
2979 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2981 Turn process_stratum_target's handle_monitor_command op into a
2982 method of process_target.
2984 * target.h (struct process_stratum_target): Remove the target op.
2985 (class process_target): Add the target op.
2986 (target_handle_monitor_command): Update the macro.
2987 * target.cc (process_target::handle_monitor_command): Define.
2989 Update the derived classes and callers below.
2991 * server.cc (handle_query): Update.
2992 * linux-low.cc (linux_target_ops): Update.
2993 (linux_process_target::handle_monitor_command): Define.
2994 * linux-low.h (class linux_process_target): Update.
2995 * lynx-low.cc (lynx_target_ops): Update.
2996 * nto-low.cc (nto_target_ops): Update.
2997 * win32-low.cc (win32_target_ops): Update.
2999 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3001 Turn process_stratum_target's handle_new_gdb_connection op into a
3002 method of process_target.
3004 * target.h (struct process_stratum_target): Remove the target op.
3005 (class process_target): Add the target op.
3006 (target_handle_new_gdb_connection): Update the macro.
3007 * target.cc (process_target::handle_new_gdb_connection): Define.
3009 Update the derived classes and callers below.
3011 * linux-low.cc (linux_target_ops): Update.
3012 (linux_handle_new_gdb_connection): Turn into ...
3013 (linux_process_target::handle_new_gdb_connection): ... this.
3014 * linux-low.h (class linux_process_target): Update.
3015 * lynx-low.cc (lynx_target_ops): Update.
3016 * nto-low.cc (nto_target_ops): Update.
3017 * win32-low.cc (win32_target_ops): Update.
3019 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3021 Turn process_stratum_target's supports_fork_events,
3022 supports_vfork_events, and supports_exec_events ops into methods
3025 * target.h (struct process_stratum_target): Remove the target ops.
3026 (class process_target): Add the target ops.
3027 (target_supports_fork_events): Update the macro.
3028 (target_supports_vfork_events): Update the macro.
3029 (target_supports_exec_events): Update the macro.
3030 * target.cc (process_target::supports_fork_events): Define.
3031 (process_target::supports_vfork_events): Define.
3032 (process_target::supports_exec_events): Define.
3034 Update the derived classes and callers below.
3036 * linux-low.cc (linux_target_ops): Update.
3037 (linux_supports_fork_events): Turn into ...
3038 (linux_process_target::supports_fork_events): ... this.
3039 (linux_supports_vfork_events): Turn into ...
3040 (linux_process_target::supports_vfork_events): ... this.
3041 (linux_supports_exec_events): Turn into ...
3042 (linux_process_target::supports_exec_events): ... this.
3043 * linux-low.h (class linux_process_target): Update.
3044 * lynx-low.cc (lynx_target_ops): Update.
3045 * nto-low.cc (nto_target_ops): Update.
3046 * win32-low.cc (win32_target_ops): Update.
3048 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3050 Turn process_stratum_target's supports_multi_process op into a
3051 method of process_target.
3053 * target.h (struct process_stratum_target): Remove the target op.
3054 (class process_target): Add the target op.
3055 * target.cc (process_target::supports_multi_process): Define.
3056 (target_supports_multi_process): Update.
3058 Update the derived classes and callers below.
3060 * linux-low.cc (linux_target_ops): Update.
3061 (linux_supports_multi_process): Turn into ...
3062 (linux_process_target::supports_multi_process): ... this.
3063 * linux-low.h (class linux_process_target): Update.
3064 * lynx-low.cc (lynx_target_ops): Update.
3065 * nto-low.cc (nto_target_ops): Update.
3066 * win32-low.cc (win32_target_ops): Update.
3068 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3070 Turn process_stratum_target's supports_non_stop, async, and
3071 start_non_stop ops into methods of process_target.
3073 * target.h (struct process_stratum_target): Remove the target ops.
3074 (class process_target): Add the target ops.
3075 (target_supports_non_stop): Update the macro.
3076 (target_async): Update the macro.
3077 (start_non_stop): Remove declaration.
3078 * target.cc (process_target::supports_non_stop): Define.
3079 (process_target::async): Define.
3080 (process_target::start_non_stop): Define.
3081 (start_non_stop): Remove.
3083 Update the derived classes and callers below.
3085 * server.cc (handle_qxfer_siginfo): Update.
3086 (handle_query): Update.
3087 * linux-low.cc (linux_target_ops): Update.
3088 (linux_supports_non_stop): Turn into ...
3089 (linux_process_target::supports_non_stop): ... this.
3090 (linux_async): Turn into ...
3091 (linux_process_target::async): ... this.
3092 (linux_start_non_stop): Turn into ...
3093 (linux_process_target::start_non_stop): ... this.
3094 * linux-low.h (class linux_process_target): Update.
3095 * lynx-low.cc (lynx_target_ops): Update.
3096 * nto-low.cc (nto_target_ops): Update.
3097 (nto_supports_non_stop): Remove; rely on the default behavior
3099 * win32-low.cc (win32_target_ops): Update.
3101 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3103 Turn process_stratum_target's qxfer_siginfo op into a method of
3106 * target.h (struct process_stratum_target): Remove the target op.
3107 (class process_target): Add the target op. Also add
3108 'supports_qxfer_siginfo'.
3109 * target.cc (process_target::qxfer_siginfo): Define.
3110 (process_target::supports_qxfer_siginfo): Define.
3112 Update the derived classes and callers below.
3114 * server.cc (handle_qxfer_siginfo): Update.
3115 (handle_query): Update.
3116 * linux-low.cc (linux_target_ops): Update.
3117 (linux_process_target::supports_qxfer_siginfo): Define.
3118 (linux_xfer_siginfo): Turn into ...
3119 (linux_process_target::qxfer_siginfo): ... this.
3120 * linux-low.h (class linux_process_target): Update.
3121 * lynx-low.cc (lynx_target_ops): Update.
3122 * nto-low.cc (nto_target_ops): Update.
3123 * win32-low.cc (win32_target_ops): Update.
3125 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3127 Turn process_stratum_target's qxfer_osdata op into a method of
3130 * target.h (struct process_stratum_target): Remove the target op.
3131 (class process_target): Add the target op. Also add
3132 'supports_qxfer_osdata'.
3133 * target.cc (process_target::qxfer_osdata): Define.
3134 (process_target::supports_qxfer_osdata): Define.
3136 Update the derived classes and callers below.
3138 * server.cc (handle_qxfer_osdata): Update.
3139 (handle_query): Update.
3140 * linux-low.cc (linux_target_ops): Update.
3141 (linux_process_target::supports_qxfer_osdata): Define.
3142 (linux_qxfer_osdata): Turn into ...
3143 (linux_process_target::qxfer_osdata): ... this.
3144 * linux-low.h (class linux_process_target): Update.
3145 * lynx-low.cc (lynx_target_ops): Update.
3146 * nto-low.cc (nto_target_ops): Update.
3147 * win32-low.cc (win32_target_ops): Update.
3149 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3151 Turn process_stratum_target's hostio_last_error op into a
3152 method of process_target.
3154 * target.h (struct process_stratum_target): Remove the target op.
3155 (class process_target): Add the target op.
3156 * target.cc: Add "hostio.h" to includes.
3157 (process_target::hostio_last_error): Define.
3159 Update the derived classes and callers below.
3161 * hostio.cc (hostio_error): Update.
3162 * linux-low.cc: Remove "hostio.h" from includes.
3163 (linux_target_ops): Update.
3164 * lynx-low.cc (lynx_target_ops): Update.
3165 * nto-low.cc (nto_target_ops): Update.
3166 * win32-low.h (class win32_process_target): Update.
3167 * win32-low.cc (win32_target_ops): Update.
3168 (wince_hostio_last_error): Turn into ...
3169 (win32_process_target::hostio_last_error): ... this.
3171 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3173 Turn process_stratum_target's get_tls_address op into a method of
3176 * target.h (struct process_stratum_target): Remove the target op.
3177 (class process_target): Add the target op. Also add
3178 'supports_get_tls_address'.
3179 * target.cc (process_target::get_tls_address): Define.
3180 (process_target::supports_get_tls_address): Define.
3182 Update the derived classes and callers below.
3184 * server.cc (handle_query): Update.
3185 * linux-low.cc (linux_target_ops): Update.
3186 (linux_process_target::supports_get_tls_address): Define.
3187 (linux_process_target::get_tls_address): Define.
3188 * linux-low.h (class linux_process_target): Update.
3189 * lynx-low.cc (lynx_target_ops): Update.
3190 * nto-low.cc (nto_target_ops): Update.
3191 * win32-low.cc (win32_target_ops): Update.
3193 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3195 Turn process_stratum_target's read_offsets op into a method of
3198 * target.h (struct process_stratum_target): Remove the target op.
3199 (class process_target): Add the target op. Also add
3200 'supports_read_offsets'.
3201 * target.cc (process_target::read_offsets): Define.
3202 (process_target::supports_read_offsets): Define.
3204 Update the derived classes and callers below.
3206 * server.cc (handle_query): Update.
3207 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
3208 (linux_target_ops): Update.
3209 (linux_process_target::supports_read_offsets): Define.
3210 (linux_read_offsets): Turn into ...
3211 (linux_process_target::read_offsets): ... this.
3212 * linux-low.h (class linux_process_target): Update.
3213 * lynx-low.cc (lynx_target_ops): Update.
3214 * nto-low.cc (nto_target_ops): Update.
3215 * win32-low.cc (win32_target_ops): Update.
3217 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3219 Turn process_stratum_target's stopped_by_watchpoint and
3220 stopped_data_address ops into methods of process_target.
3222 * target.h (struct process_stratum_target): Remove the target ops.
3223 (class process_target): Add the target ops.
3224 * target.cc (process_target::stopped_by_watchpoint): Define.
3225 (process_target::stopped_data_address): Define.
3227 Update the derived classes and callers below.
3229 * remote-utils.cc (prepare_resume_reply): Update.
3230 * linux-low.cc (linux_target_ops): Update.
3231 (linux_stopped_by_watchpoint): Turn into ...
3232 (linux_process_target::stopped_by_watchpoint): ... this.
3233 (linux_stopped_data_address): Turn into ...
3234 (linux_process_target::stopped_data_address): ... this.
3235 * linux-low.h (class linux_process_target): Update.
3236 * lynx-low.cc (lynx_target_ops): Update.
3237 * nto-low.cc (nto_target_ops): Update.
3238 (nto_stopped_by_watchpoint): Turn into ...
3239 (nto_process_target::stopped_by_watchpoint): ... this.
3240 (nto_stopped_data_address): Turn into ...
3241 (nto_process_target::stopped_data_address): ... this.
3242 * nto-low.h (class nto_process_target): Update.
3243 * win32-low.cc (win32_target_ops): Update.
3244 (win32_stopped_by_watchpoint): Turn into ...
3245 (win32_process_target::stopped_by_watchpoint): ... this.
3246 (win32_stopped_data_address): Turn into ...
3247 (win32_process_target::stopped_data_address): ... this.
3248 * win32-low.h (class win32_process_target): Update.
3250 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3252 Turn process_stratum_target's supports_hardware_single_step op into
3253 a method of process_target.
3255 * target.h (struct process_stratum_target): Remove the target op.
3256 (class process_target): Add the target op.
3257 (target_supports_hardware_single_step): Update the macro.
3258 (target_can_do_hardware_single_step): Remove declaration.
3259 * target.cc (process_target::supports_hardware_single_step): Define.
3260 (target_can_do_hardware_single_step): Remove.
3262 Update the derived classes and callers below.
3264 * linux-low.h (class linux_process_target): Update.
3265 * linux-low.cc (linux_target_ops): Update.
3266 (linux_supports_hardware_single_step): Turn into ...
3267 (linux_process_target::supports_hardware_single_step): ... this.
3268 * lynx-low.h (class lynx_process_target): Update.
3269 * lynx-low.cc (lynx_target_ops): Update.
3270 (lynx_process_target::supports_hardware_single_step): Define.
3271 * nto-low.h (class nto_process_target): Update.
3272 * nto-low.cc (nto_target_ops): Update.
3273 (nto_process_target::supports_hardware_single_step): Define.
3274 * win32-low.h (class win32_process_target): Update.
3275 * win32-low.cc (win32_target_ops): Update.
3276 (win32_process_target::supports_hardware_single_step): Define.
3278 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3280 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
3281 ops into methods of process_target.
3283 * target.h (struct process_stratum_target): Remove the target ops.
3284 (class process_target): Add the target ops.
3285 (target_stopped_by_hw_breakpoint): Update the macro.
3286 (target_supports_stopped_by_hw_breakpoint): Update the macro.
3287 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
3288 (process_target::supports_stopped_by_hw_breakpoint): Define.
3290 Update the derived classes and callers below.
3292 * linux-low.cc (linux_target_ops): Update.
3293 (linux_stopped_by_hw_breakpoint): Turn into ...
3294 (linux_process_target::stopped_by_hw_breakpoint): ... this.
3295 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
3296 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
3297 * linux-low.h (class linux_process_target): Update.
3298 * lynx-low.cc (lynx_target_ops): Update.
3299 * nto-low.cc (nto_target_ops): Update.
3300 * win32-low.cc (win32_target_ops): Update.
3302 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3304 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
3305 ops into methods of process_target.
3307 * target.h (struct process_stratum_target): Remove the target ops.
3308 (class process_target): Add the target ops.
3309 (target_stopped_by_sw_breakpoint): Update the macro.
3310 (target_supports_stopped_by_sw_breakpoint): Update the macro.
3311 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
3312 (process_target::supports_stopped_by_sw_breakpoint): Define.
3314 Update the derived classes and callers below.
3316 * linux-low.cc (linux_target_ops): Update.
3317 (linux_stopped_by_sw_breakpoint): Turn into ...
3318 (linux_process_target::stopped_by_sw_breakpoint): ... this.
3319 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
3320 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
3321 * linux-low.h (class linux_process_target): Update.
3322 * lynx-low.cc (lynx_target_ops): Update.
3323 * nto-low.cc (nto_target_ops): Update.
3324 * win32-low.cc (win32_target_ops): Update.
3326 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3328 Turn process_stratum_target's insert_point and remove_point ops
3329 into methods of process_target.
3331 * target.h (struct process_stratum_target): Remove the target ops.
3332 (class process_target): Add the target ops.
3333 * target.cc (process_target::insert_point): Define.
3334 (process_target::remove_point): Define.
3336 Update the derived classes and callers below.
3338 * mem-break.cc (set_raw_breakpoint_at): Update.
3339 (delete_raw_breakpoint): Update.
3340 (uninsert_raw_breakpoint): Update.
3341 (reinsert_raw_breakpoint): Update.
3342 * linux-low.cc (linux_target_ops): Update.
3343 (linux_insert_point): Turn into ...
3344 (linux_process_target::insert_point): ... this.
3345 (linux_remove_point): Turn into ...
3346 (linux_process_target::remove_point): ... this.
3347 * linux-low.h (class linux_process_target): Update.
3348 * lynx-low.cc (lynx_target_ops): Update.
3349 * nto-low.cc (nto_target_ops): Update.
3350 (nto_insert_point): Turn into ...
3351 (nto_process_target::insert_point): ... this.
3352 (nto_remove_point): Turn into ...
3353 (nto_process_target::remove_point): ... this.
3354 * nto-low.h (class nto_process_target): Update.
3355 * win32-low.cc (win32_target_ops): Update.
3356 (win32_insert_point): Turn into ...
3357 (win32_process_target::insert_point): ... this.
3358 (win32_remove_point): Turn into ...
3359 (win32_process_target::remove_point): ... this.
3360 * win32-low.h (class win32_process_target): Update.
3362 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3364 Turn process_stratum_target's supports_z_point_type op into a
3365 method of process_target.
3367 * target.h (struct process_stratum_target): Remove the target op.
3368 (class process_target): Add the target op.
3369 * target.cc (process_target::supports_z_point_type): Define.
3371 Update the derived classes and callers below.
3373 * mem-break.cc (z_type_supported): Update.
3374 * linux-low.cc (linux_target_ops): Update.
3375 (linux_supports_z_point_type): Turn into ...
3376 (linux_process_target::supports_z_point_type): ... 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 (nto_supports_z_point_type): Turn into ...
3381 (nto_process_target::supports_z_point_type): ... this.
3382 * nto-low.h (class nto_process_target): Update.
3383 * win32-low.cc (win32_target_ops): Update.
3384 (win32_supports_z_point_type): Turn into ...
3385 (win32_process_target::supports_z_point_type): ... this.
3386 * win32-low.h (class win32_process_target): Update.
3388 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3390 Turn process_stratum_target's read_auxv op into a method of
3393 * target.h (class process_stratum_target): Remove the target op.
3394 (struct process_target): Add the target op. Also add
3395 'supports_read_auxv'.
3396 * target.cc (process_target::read_auxv): Define.
3397 (process_target::supports_read_auxv): Define.
3399 Update the derived classes and callers below.
3401 * server.cc (handle_qxfer_auxv): Update.
3402 (handle_query): Update.
3403 * linux-low.cc (linux_target_ops): Update.
3404 (linux_process_target::supports_read_auxv): Define.
3405 (linux_read_auxv): Turn into ...
3406 (linux_process_target::read_auxv): ... this.
3407 * linux-low.h (class linux_process_target): Update.
3408 * lynx-low.cc (lynx_target_ops): Update.
3409 * nto-low.cc (nto_target_ops): Update.
3410 (nto_process_target::supports_read_auxv): Define.
3411 (nto_read_auxv): Turn into ...
3412 (nto_process_target::read_auxv): ... this.
3413 * nto-low.h (class nto_process_target): Update.
3414 * win32-low.cc (win32_target_ops): Update.
3416 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3418 Turn process_stratum_target's request_interrupt op into a method of
3421 * target.h (struct process_stratum_target): Remove the target op.
3422 (class process_target): Add the target op.
3424 Update the derived classes and callers below.
3426 * remote-utils.cc (putpkt_binary_1): Update.
3427 (input_interrupt): Update.
3429 * server.cc (handle_v_requests): Update.
3430 * linux-low.cc (linux_target_ops): Update.
3431 (linux_request_interrupt): Turn into ...
3432 (linux_process_target::request_interrupt): ... this.
3433 * linux-low.h (class linux_process_target): Update.
3434 * lynx-low.cc (lynx_target_ops): Update.
3435 (lynx_request_interrupt): Turn into ...
3436 (lynx_process_target::request_interrupt): ... this.
3437 * lynx-low.h (class lynx_process_target): Update.
3438 * nto-low.cc (nto_target_ops): Update.
3439 (nto_request_interrupt): Turn into ...
3440 (nto_process_target::request_interrupt): ... this.
3441 * nto-low.h (class nto_process_target): Update.
3442 * win32-low.cc (win32_target_ops): Update.
3443 (win32_request_interrupt): Turn into ...
3444 (win32_process_target::request_interrupt): ... this.
3445 * win32-low.h (class win32_process_target): Update.
3447 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3449 Turn process_stratum_target's look_up_symbols op into a method of
3452 * target.h (struct process_stratum_target): Remove the target op.
3453 (class process_target): Add the target op.
3454 * target.cc (process_target::look_up_symbols): Define.
3456 Update the derived classes and callers below.
3458 * server.cc (handle_query): Update.
3459 * linux-low.cc (linux_target_ops): Update.
3460 (linux_look_up_symbols): Turn into ...
3461 (linux_process_target::look_up_symbols): ... this.
3462 * linux-low.h (class linux_process_target): Update.
3463 * lynx-low.cc (lynx_target_ops): Update.
3464 * nto-low.cc (nto_target_ops): Update.
3465 * win32-low.cc (win32_target_ops): Update.
3467 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3469 Turn process_stratum_target's read_memory and write_memory
3470 ops into methods of process_target.
3472 * target.h (struct process_stratum_target): Remove the target ops.
3473 (class process_target): Add the target ops.
3475 Update the derived classes and callers below.
3477 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
3478 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
3479 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
3480 (arm_get_syscall_trapinfo): Update.
3481 * linux-cris-low.cc (cris_breakpoint_at): Update.
3482 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
3483 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
3484 * linux-mips-low.cc (mips_breakpoint_at): Update.
3485 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
3486 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
3487 * linux-sh-low.cc (sh_breakpoint_at): Update.
3488 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
3489 (sparc_store_gregset_from_stack): Update.
3490 (sparc_breakpoint_at): Update.
3491 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
3492 * linux-tile-low.cc (tile_breakpoint_at): Update.
3493 * linux-x86-low.cc (x86_breakpoint_at): Update.
3494 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
3495 * mem-brea.cc (insert_memory_breakpoint): Update.
3496 (validate_inserted_breakpoint): Update.
3497 * target.cc (read_inferior_memory): Update.
3498 (target_write_memory): Update.
3499 * linux-low.cc (linux_target_ops): Update.
3500 (linux_read_memory): Make a wrapper around the read_memory target
3502 (linux_process_target::read_memory): Rename from linux_read_memory.
3503 (linux_write_memory): Turn into ...
3504 (linux_process_target::write_memory): ... this.
3505 * linux-low.h (class linux_process_target): Update.
3506 * lynx-low.cc (lynx_target_ops): Update.
3507 (lynx_read_memory): Turn into ...
3508 (lynx_process_target::read_memory): ... this.
3509 (lynx_write_memory): Turn into ...
3510 (lynx_process_target::write_memory): ... this.
3511 * lynx-low.h (class lynx_process_target): Update.
3512 * nto-low.cc (nto_target_ops): Update.
3513 (nto_read_memory): Turn into ...
3514 (nto_process_target::read_memory): ... this.
3515 (nto_write_memory): Turn into ...
3516 (nto_process_target::write_memory): ... this.
3517 * nto-low.h (class nto_process_target): Update.
3518 * win32-low.cc (win32_target_ops): Update.
3519 (win32_read_inferior_memory): Turn into ...
3520 (win32_process_target::read_memory): ... this.
3521 (win32_write_inferior_memory): Turn into ...
3522 (win32_process_target::write_memory): ... this.
3523 * win32-low.h (class win32_process_target): Update.
3525 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3527 Turn process_stratum_target's prepare_to_access_memory and
3528 done_accessing_memory ops into methods of process_target.
3530 * target.h (struct process_stratum_target): Remove the target ops.
3531 (class process_target): Add the target ops.
3532 * target.cc (process_target::prepare_to_access_memory): Define.
3533 (process_target::done_accessing_memory): Define.
3534 (prepare_to_access_memory): Update.
3535 (done_accessing_memory): Update.
3537 Update the derived classes and callers below.
3539 * linux-low.cc (linux_target_ops): Update.
3540 (linux_prepare_to_access_memory): Turn into ...
3541 (linux_process_target::prepare_to_access_memory): ... this.
3542 (linux_done_accessing_memory): Turn into ...
3543 (linux_process_target::done_accessing_memory): ... this.
3544 * linux-low.h (class linux_process_target): Update.
3545 * lynx-low.cc (lynx_target_ops): Update.
3546 * nto-low.cc (nto_target_ops): Update.
3547 * win32-low.cc (win32_target_ops): Update.
3549 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3551 Turn process_stratum_target's fetch_registers and store_registers
3552 ops into methods of process_target.
3554 * target.h (struct process_stratum_target): Remove the target ops.
3555 (class process_target): Add the target ops.
3556 (fetch_inferior_registers): Update the macro.
3557 (store_inferior_registers): Update the macro.
3559 Update the derived classes and callers below.
3561 * linux-low.cc (linux_target_ops): Update.
3562 (linux_fetch_registers): Turn into ...
3563 (linux_process_target::fetch_registers): ... this.
3564 (linux_store_registers): Turn into ...
3565 (linux_process_target::store_registers): ... this.
3566 * linux-low.h (class linux_process_target): Update.
3567 * lynx-low.cc (lynx_target_ops): Update.
3568 (lynx_fetch_registers): Turn into ...
3569 (lynx_process_target::fetch_registers): ... this.
3570 (lynx_store_registers): Turn into ...
3571 (lynx_process_target::store_registers): ... this.
3572 * lynx-low.h (class lynx_process_target): Update.
3573 * nto-low.cc (nto_target_ops): Update.
3574 (nto_fetch_registers): Turn into ...
3575 (nto_process_target::fetch_registers): ... this.
3576 (nto_store_registers): Turn into ...
3577 (nto_process_target::store_registers): ... this.
3578 * nto-low.h (class nto_process_target): Update.
3579 * win32-low.cc (win32_target_ops): Update.
3580 (win32_fetch_inferior_registers): Turn into ...
3581 (win32_process_target::fetch_registers): ... this.
3582 (win32_store_inferior_registers): Turn into ...
3583 (win32_process_target::store_registers): ... this.
3584 * win32-low.h (class win32_process_target): Update.
3586 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3588 Turn process_stratum_target's wait op into a method of
3591 * target.h (struct process_stratum_target): Remove the target op.
3592 (class process_target): Add the target op.
3594 Update the derived classes and callers below.
3596 * target.cc (target_wait): Update.
3597 * linux-low.cc (linux_target_ops): Update.
3598 (linux_wait): Turn into ...
3599 (linux_process_target::wait): ... this.
3600 * linux-low.h (class linux_process_target): Update.
3601 * lynx-low.cc (lynx_target_ops): Update.
3602 (lynx_wait): Turn into ...
3603 (lynx_process_target::wait): ... this.
3604 * lynx-low.h (class lynx_process_target): Update.
3605 * nto-low.cc (nto_target_ops): Update.
3606 (nto_wait): Turn into ...
3607 (nto_process_target::wait): ... this.
3608 * nto-low.h (class nto_process_target): Update.
3609 * win32-low.cc (win32_target_ops): Update.
3610 (win32_wait): Turn into ...
3611 (win32_process_target::wait): ... this.
3612 (do_initial_child_stuff): Update.
3613 * win32-low.h (class win32_process_target): Update.
3615 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3617 Turn process_stratum_target's resume op into a method of
3620 * target.h (struct process_stratum_target): Remove the target op.
3621 (class process_target): Add the target op.
3623 Update the derived classes and callers below.
3625 * server.cc (resume): Update.
3626 * target.cc (target_stop_and_wait): Update.
3627 (target_continue_no_signal): Update.
3628 (target_continue): Update.
3629 * linux-low.cc (linux_target_ops): Update.
3630 (linux_resume): Turn into ...
3631 (linux_process_target::resume): ... this.
3632 * linux-low.h (class linux_process_target): Update.
3633 * lynx-low.cc (lynx_target_ops): Update.
3634 (lynx_resume): Turn into ...
3635 (lynx_process_target::resume): ... this.
3636 * lynx-low.h (class lynx_process_target): Update.
3637 * nto-low.cc (nto_target_ops): Update.
3638 (nto_resume): Turn into ...
3639 (nto_process_target::resume): ... this.
3640 * nto-low.h (class nto_process_target): Update.
3641 * win32-low.cc (win32_target_ops): Update.
3642 (win32_resume): Turn into ...
3643 (win32_process_target::resume): ... this.
3644 (win32_process_target::detach): Update.
3645 (do_initial_child_stuff): Update.
3646 * win32-low.h (class win32_process_target): Update.
3648 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3650 Turn process_stratum_target's thread_alive op into a method of
3653 * target.h (struct process_stratum_target): Remove the target op.
3654 (class process_target): Add the target op.
3655 (mythread_alive): Update the macro.
3657 Update the derived classes and callers below.
3659 * linux-low.cc (linux_target_ops): Update.
3660 (linux_thread_alive): Turn into ...
3661 (linux_process_target::thread_alive): ... this.
3662 (wait_for_sigstop): Update.
3663 * linux-low.h (class linux_process_target): Update.
3664 * lynx-low.cc (lynx_target_ops): Update.
3665 (lynx_thread_alive): Turn into ...
3666 (lynx_process_target::thread_alive): ... this.
3667 * lynx-low.h (class lynx_process_target): Update.
3668 * nto-low.cc (nto_target_ops): Update.
3669 (nto_thread_alive): Turn into ...
3670 (nto_process_target::thread_alive): ... this.
3671 * nto-low.h (class nto_process_target): Update.
3672 * win32-low.cc (win32_target_ops): Update.
3673 (win32_thread_alive): Turn into ...
3674 (win32_process_target::thread_alive): ... this.
3675 * win32-low.h (class win32_process_target): Update.
3677 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3679 Turn process_stratum_target's join op into a method of
3682 * target.h (struct process_stratum_target): Remove the target op.
3683 (class process_target): Add the target op.
3684 (join_inferior): Update the macro.
3686 Update the derived classes and callers below.
3688 * linux-low.cc (linux_target_ops): Update.
3689 (linux_join): Turn into ...
3690 (linux_process_target::join): ... this.
3691 * linux-low.h (class linux_process_target): Update.
3692 * lynx-low.cc (lynx_target_ops): Update.
3693 (lynx_join): Turn into ...
3694 (lynx_process_target::join): ... this.
3695 * lynx-low.h (class lynx_process_target): Update.
3696 * nto-low.cc (nto_target_ops): Update.
3697 (nto_process_target::join): Define.
3698 * nto-low.h (class nto_process_target): Update.
3699 * win32-low.cc (win32_target_ops): Update.
3700 (win32_join): Turn into ...
3701 (win32_process_target::join): ... this.
3702 * win32-low.h (class win32_process_target): Update.
3704 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3706 Turn process_stratum_target's mourn op into a method of
3709 * target.h (struct process_stratum_target): Remove the target op.
3710 (class process_target): Add the target op.
3712 Update the derived classes and callers below.
3714 * target.cc (target_mourn_inferior): Update.
3715 * linux-low.cc (linux_target_ops): Update.
3716 (linux_mourn): Turn into ...
3717 (linux_process_target::mourn): ... this.
3718 (handle_extended_wait): Update.
3719 (linux_process_target::kill): Update.
3720 (linux_process_target::detach): Update.
3721 * linux-low.h (class linux_process_target): Update.
3722 * lynx-low.cc (lynx_target_ops): Update.
3723 (lynx_mourn): Turn into ...
3724 (lynx_process_target::mourn): ... this.
3725 * lynx-low.h (class lynx_process_target): Update.
3726 * nto-low.cc (nto_target_ops): Update.
3727 (nto_mourn): Turn into ...
3728 (nto_process_target::mourn): ... this.
3729 * nto-low.h (class nto_process_target): Update.
3730 * win32-low.cc (win32_target_ops): Update.
3731 (win32_mourn): Turn into ...
3732 (win32_process_target::mourn): ... this.
3733 * win32-low.h (class win32_process_target): Update.
3735 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3737 Turn process_stratum_target's detach op into a method of
3740 * target.h (struct process_stratum_target): Remove the target op.
3741 (class process_target): Add the target op.
3742 (detach_inferior): Update the macro.
3744 Update the derived classes and callers below.
3746 * linux-low.cc (linux_target_ops): Update.
3747 (linux_detach): Turn into ...
3748 (linux_process_target::detach): ... this.
3749 * linux-low.h (class linux_process_target): Update.
3750 * lynx-low.cc (lynx_target_ops): Update.
3751 (lynx_detach): Turn into ...
3752 (lynx_process_target::detach): ... this.
3753 * lynx-low.h (class lynx_process_target): Update.
3754 * nto-low.cc (nto_target_ops): Update.
3755 (nto_detach): Turn into ...
3756 (nto_process_target::detach): ... this.
3757 * nto-low.h (class nto_process_target): Update.
3758 * win32-low.cc (win32_target_ops): Update.
3759 (win32_detach): Turn into ...
3760 (win32_process_target::detach): ... this.
3761 * win32-low.h (class win32_process_target): Update.
3763 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3765 Turn process_stratum_target's kill op into a method of
3768 * target.h (struct process_stratum_target): Remove the target op.
3769 (class process_target): Add the target op.
3771 Update the derived classes and callers below.
3773 * target.cc (kill_inferior): Update.
3774 * linux-low.cc (linux_target_ops): Update.
3775 (linux_kill): Turn into ...
3776 (linux_process_target::kill): ... this.
3777 * linux-low.h (class linux_process_target): Update.
3778 * lynx-low.cc (lynx_target_ops): Update.
3779 (lynx_kill): Turn into ...
3780 (lynx_process_target::kill): ... this.
3781 * lynx-low.h (class lynx_process_target): Update.
3782 * nto-low.cc (nto_target_ops): Update.
3783 (nto_kill): Turn into ...
3784 (nto_process_target::kill): ... this.
3785 * nto-low.h (class nto_process_target): Update.
3786 * win32-low.cc (win32_target_ops): Update.
3787 (win32_kill): Turn into ...
3788 (win32_process_target::kill): ... 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 attach 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 (myattach): Update the macro.
3800 Update the derived classes and callers below.
3802 * linux-low.cc (linux_target_ops): Update.
3803 (linux_attach): Turn into ...
3804 (linux_process_target::attach): ... this.
3805 * linux-low.h (class linux_process_target): Update.
3806 * lynx-low.cc (lynx_target_ops): Update.
3807 (lynx_attach): Turn into ...
3808 (lynx_process_target::attach): ... this.
3809 * lynx-low.h (class lynx_process_target): Update.
3810 * nto-low.cc (nto_target_ops): Update.
3811 (nto_attach): Turn into ...
3812 (nto_process_target::attach): ... this.
3813 * nto-low.h (class nto_process_target): Update.
3814 * win32-low.cc (win32_target_ops): Update.
3815 (win32_attach): Turn into ...
3816 (win32_process_target::attach): ... 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 post_create_inferior op into a method
3824 * target.h (struct process_stratum_target): Remove the target op.
3825 (class process_target): Add the target op.
3826 (target_post_create_inferior): Update the macro.
3827 * target.cc (process_target::post_create_inferior): Define.
3829 Update the derived classes and callers below.
3831 * linux-low.cc (linux_target_ops): Update.
3832 (linux_post_create_inferior): Turn into ...
3833 (linux_process_target::post_create_inferior): ... this.
3834 * linux-low.h (class linux_process_target): Update.
3835 * lynx-low.cc (lynx_target_ops): Update.
3836 * nto-low.cc (nto_target_ops): Update.
3837 * win32-low.cc (win32_target_ops): Update.
3839 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3841 Turn process_stratum_target's create_inferior op into a method of
3844 * target.h (struct process_stratum_target): Remove the target op.
3845 (class process_target): Add the target op.
3846 (create_inferior): Rename the macro to ...
3847 (target_create_inferior): ... this.
3849 Update the derived classes and callers below.
3851 * server.cc (handle_v_run): Update.
3852 (captured_main): Update.
3853 (process_serial_event): Update.
3854 * linux-low.cc (linux_target_ops): Update.
3855 (linux_create_inferior): Turn into ...
3856 (linux_process_target::create_inferior): ... this.
3857 * linux-low.h (class linux_process_target): Update.
3858 * lynx-low.cc (lynx_target_ops): Update.
3859 (lynx_create_inferior): Turn into ...
3860 (lynx_process_target::create_inferior): ... this.
3861 * lynx-low.h (class lynx_process_target): Update.
3862 * nto-low.cc (nto_target_ops): Update.
3863 (nto_create_inferior): Turn into ...
3864 (nto_process_target::create_inferior): ... this.
3865 * nto-low.h (class nto_process_target): Update.
3866 * win32-low.cc (win32_target_ops): Update.
3867 (win32_create_inferior): Turn into ...
3868 (win32_process_target::create_inferior): ... this.
3869 * win32-low.h (class win32_process_target): Update.
3871 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3873 * target.h (class process_target): New class definition.
3874 (struct process_stratum_target) <pt>: New field with type
3876 * linux-low.h (class linux_process_target): Define as a derived
3877 class of 'process_target'.
3878 * linux-low.cc (linux_target_ops): Add a linux_process_target*
3880 * lynx-low.h (class lynx_process_target): Define as a derived
3881 class of 'process_target'.
3882 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
3884 * nto-low.h (class nto_process_target): Define as a derived
3885 class of 'process_target'.
3886 * nto-low.cc (nto_target_ops): Add an nto_process_target*
3888 * win32-low.h (class win32_process_target): Define as a derived
3889 class of 'process_target'.
3890 * win32-low.cc (win32_target_ops): Add a win32_process_target*
3893 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
3895 * configure: Regenerate.
3897 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
3898 Andrew Burgess <andrew.burgess@embecosm.com>
3900 * linux-riscv-low.cc: New file.
3901 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
3902 and nat/riscv-linux-tdesc.c.
3903 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
3904 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
3907 2020-02-14 Tom Tromey <tom@tromey.com>
3909 * acinclude.m4: Don't include acx_configure_dir.m4.
3910 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
3911 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
3912 (all, install-only, uninstall, clean-info, clean)
3913 (maintainer-clean): Don't recurse.
3914 (subdir_do, all-lib): Remove.
3915 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
3917 (generated_files): Update.
3918 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
3919 * configure: Rebuild.
3920 * configure.ac: Don't configure gnulib or libiberty.
3923 2020-02-14 Eli Zaretskii <eliz@gnu.org>
3925 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
3926 preparing the command line for CreateProcess.
3927 (win32_create_inferior): Reflect the program name in debugging
3928 output that shows the process and its command line.
3930 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
3932 * Makefile.in: Rename source files from .c to .cc.
3933 * %.c: Rename to %.cc.
3934 * configure.ac: Rename server.c to server.cc.
3935 * configure: Re-generate.
3937 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
3939 * Makefile.in: Rename gdbsupport source files from .c to .cc.
3941 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
3943 * win32-low.c (win32_create_inferior): Set signal_pid.
3945 2020-02-12 Maciej W. Rozycki <macro@wdc.com>
3946 Pedro Alves <palves@redhat.com>
3948 Skip building gdbserver in a cross-configuration.
3949 * configure.srv: Set $gdbserver_host depending on whether $target
3950 is $host. Use $gdbserver_host instead of $host.
3952 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
3954 * configure: Re-generate.
3956 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
3958 * configure: Re-generate.
3960 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
3962 * acinclude.m4: Update warning.m4 path.
3964 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
3966 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
3967 (handle_exception): Set siginfo_er.
3968 (win32_xfer_siginfo): New function.
3970 2020-02-07 Tom Tromey <tom@tromey.com>
3971 Pedro Alves <palves@redhat.com>
3973 * README: Update build documentation.
3974 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
3976 * configure.ac: Update paths.
3977 * configure: Rebuild.
3978 * acinclude.m4: Update paths.
3979 * Makefile.in: Update include paths.
3980 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
3981 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
3982 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
3983 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
3984 (%-generated.c): Update paths.
3985 * Move entire directory from ../gdb/gdbserver.
3987 2020-01-29 Maciej W. Rozycki <macro@wdc.com>
3989 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
3991 2020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3993 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
3994 assignment instead of srv_linux_obj.
3996 2020-01-28 Hannes Domani <ssbssa@yahoo.de>
3998 * server.c (handle_qxfer_libraries): Write segment-address with
4001 2020-01-24 Hannes Domani <ssbssa@yahoo.de>
4003 * Makefile.in (install-strip): New target.
4004 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
4005 * aclocal.m4: Regenerate.
4006 * configure: Regenerate.
4007 * configure.ac: Add AM_PROG_INSTALL_STRIP.
4009 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
4011 * Makefile.in (SFILES): Adjust paths to point to real files.
4012 (OBS): Move waitstatus.o to target/waitstatus.o.
4013 (TAGS): Transform paths appropriately.
4015 (nat/%.o): ... this pattern rule.
4017 (target/%.o): ... this pattern rule.
4018 * configure.srv: Adjust paths throughout to include nat/ prefix
4019 with the revant files.
4020 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
4021 * configure: Regenerate.
4023 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
4025 * Makefile.in (TAGS): Remove config files from the recipe.
4027 2020-01-14 Tom Tromey <tom@tromey.com>
4029 * configure: Rebuild.
4030 * configure.ac: Remove any checks that were added to common.m4.
4031 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
4034 2020-01-14 Tom Tromey <tom@tromey.com>
4036 * server.h: Include config.h.
4037 * gdbreplay.c: Include config.h.
4038 * configure: Rebuild.
4039 * configure.ac: Don't source common.host.
4040 * acinclude.m4: Update path.
4041 * Makefile.in (INCSUPPORT): New variable.
4042 (INCLUDE_CFLAGS): Add INCSUPPORT.
4043 (SFILES): Update paths.
4044 (version-generated.c): Update path to create-version.sh.
4045 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
4047 2020-01-14 Tom Tromey <tom@tromey.com>
4049 * configure.ac (LIBS): Use WIN32APILIBS.
4050 (USE_WIN32API): Don't define.
4051 * configure: Rebuild.
4053 2020-01-14 Tom Tromey <tom@tromey.com>
4055 * configure: Rebuild.
4057 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4059 * Makefile.in (%-generated.c): Remove rule for files from
4062 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4064 * configure: Re-generate.
4066 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4068 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
4070 * tracepoint.c (stop_tracing, flush_trace_buffer,
4071 about_to_request_buffer_space, get_trace_state_variable_value,
4072 set_trace_state_variable_value, gdb_collect): Add declaration.
4074 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4076 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
4077 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
4078 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
4079 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
4080 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
4083 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4085 * inferiors.c: Include gdbsupport/common-inferior.h.
4087 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4089 * hostio-errno.c: Include hostio.h.
4091 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4093 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
4096 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4098 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
4099 * linux-arm-tdesc.h: Include arch/arm.h.
4101 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4103 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
4105 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4107 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
4108 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
4110 2020-01-10 Pedro Alves <palves@redhat.com>
4112 * fork-child.c (post_fork_inferior): Pass target down to
4114 * inferiors.c (switch_to_thread): Add process_stratum_target
4116 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
4117 * nto-low.c (nto_target_ops): Now a process_stratum_target.
4118 * linux-low.c (linux_target_ops): Now a process_stratum_target.
4119 * remote-utils.c (prepare_resume_reply): Pass the target to
4121 * target.c (the_target): Now a process_stratum_target.
4122 (done_accessing_memory): Pass the target to switch_to_thread.
4123 (set_target_ops): Ajust to use process_stratum_target.
4124 * target.h (struct target_ops): Rename to ...
4125 (struct process_stratum_target): ... this.
4126 (the_target, set_target_ops): Adjust.
4127 (prepare_to_access_memory): Adjust comment.
4128 * win32-low.c (child_xfer_memory): Adjust to use
4129 process_stratum_target.
4130 (win32_target_ops): Now a process_stratum_target.
4132 2020-01-06 Eli Zaretskii <eliz@gnu.org>
4133 Pedro Alves <palves@redhat.com>
4135 * win32-low.c (get_child_debug_event): Extract the fatal exception
4136 from the exit status and convert to the equivalent Posix signal
4138 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
4139 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
4141 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
4143 * Makefile.in: Use INSTALL_PROGRAM_ENV.
4145 2020-01-01 Joel Brobecker <brobecker@adacore.com>
4147 * server.c (gdbserver_version): Change copyright year to 2020.
4148 * gdbreplay.c (gdbreplay_version): Likewise.
4150 2019-12-19 Christian Biesinger <cbiesinger@google.com>
4152 * configure: Regenerate.
4153 * configure.ac: Quote variable arguments of test.
4155 2019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
4157 * Makefile.in: Fix build with GNU Make 3.81
4159 2019-12-16 Tom Tromey <tromey@adacore.com>
4161 * server.c (get_exec_file): Constify result.
4163 2019-12-10 Christian Biesinger <cbiesinger@google.com>
4165 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
4166 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
4167 * config.in: Regenerate.
4168 * configure: Regenerate.
4169 * configure.ac: Don't check for strerror.
4170 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
4171 Call safe_strerror instead of strerror.
4172 * server.h (strerror): Remove this now-unnecessary declaration.
4173 * tracepoint.c (init_named_socket): Call safe_strerror instead of
4175 (gdb_agent_helper_thread): Likewise.
4176 * utils.c (perror_with_name): Likewise.
4178 2019-11-26 Tom Tromey <tom@tromey.com>
4180 * configure, config.in: Rebuild.
4182 2019-11-26 Tom Tromey <tom@tromey.com>
4184 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
4185 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
4187 * configure, config.in: Rebuild.
4189 2019-11-26 Tom Tromey <tom@tromey.com>
4191 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
4192 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
4193 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
4194 * acinclude.m4: Include ax_pthread.m4.
4195 * config.in, configure: Rebuild.
4197 2019-11-26 Christian Biesinger <cbiesinger@google.com>
4199 * debug.c (debug_set_output): Call safe_strerror instead of
4201 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
4202 (linux_kill_one_lwp): Likewise.
4203 (linux_detach_one_lwp): Likewise.
4204 (linux_wait_for_event_filtered): Likewise.
4205 (store_register): Likewise.
4206 * lynx-low.c (lynx_attach): Likewise.
4207 * mem-break.c (insert_memory_breakpoint): Likewise.
4208 (remove_memory_breakpoint): Likewise.
4209 (delete_fast_tracepoint_jump): Likewise.
4210 (set_fast_tracepoint_jump): Likewise.
4211 (uninsert_fast_tracepoint_jumps_at): Likewise.
4212 (reinsert_fast_tracepoint_jumps_at): Likewise.
4213 * nto-low.c (nto_xfer_memory): Likewise.
4214 (nto_resume): Likewise.
4216 2019-11-20 Luis Machado <luis.machado@linaro.org>
4218 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
4219 instead of register count.
4220 * tdesc.c (tdesc_contains_feature): New function.
4221 * tdesc.h (tdesc_contains_feature): New prototype.
4223 2019-11-15 Christian Biesinger <cbiesinger@google.com>
4225 * Makefile.in: Add safe-strerror.c.
4226 * configure: Regenerate.
4227 * configure.ac: Don't source common.host.
4229 2019-11-15 Christian Biesinger <cbiesinger@google.com>
4231 * config.in: Regenerate.
4232 * configure: Regenerate.
4234 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
4236 * ax.c (ax_printf): Handle size_t_arg.
4238 2019-11-06 Christian Biesinger <cbiesinger@google.com>
4240 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
4241 * mi/mi-main.c (output_cores): Likewise.
4242 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
4243 (linux_xfer_osdata_modules): Likewise.
4244 * remote.c (register_remote_support_xml): Likewise.
4245 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
4246 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
4248 2019-11-01 Christian Biesinger <cbiesinger@google.com>
4250 * configure: Regenerate.
4251 * configure.ac: Remove check for strerror_r.
4253 2019-10-31 Christian Biesinger <cbiesinger@google.com>
4255 * config.in: Regenerate.
4256 * configure: Regenerate.
4257 * configure.ac: Also check for strerror_r.
4259 2019-10-31 Christian Biesinger <cbiesinger@google.com>
4261 * ax.h (debug_agent): Remove duplicate declaration.
4263 2019-10-26 Tom de Vries <tdevries@suse.de>
4265 * linux-aarch64-low.c: Fix typos in comments.
4266 * linux-arm-low.c: Same.
4267 * linux-low.c: Same.
4268 * linux-ppc-low.c: Same.
4269 * proc-service.c: Same.
4272 * tracepoint.c: Same.
4273 * win32-low.c: Same.
4275 2019-10-25 Tom Tromey <tromey@adacore.com>
4277 * utils.c (xstrdup): Remove.
4279 2019-10-23 Tom Tromey <tom@tromey.com>
4281 * configure, config.in: Rebuild.
4283 2019-10-23 Tom Tromey <tom@tromey.com>
4285 * configure: Rebuild.
4286 * acinclude.m4: Use m4_include, not sinclude.
4288 2019-10-17 Tom Tromey <tromey@adacore.com>
4290 * configure: Rebuild.
4291 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
4292 in AC_CONFIG_FILES invocation.
4293 * Makefile.in (stamp-h, Makefile): Use new-style config.status
4296 2019-10-16 Christian Biesinger <cbiesinger@google.com>
4298 * server.c: Include xml-builtin.h.
4299 (get_xml_features): Don't declare xml_builtins here.
4301 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4303 * Makefile.in: Remove references to vec-ipa.o.
4305 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4307 * Makefile.in: Remove references to vec.c.
4309 2019-10-02 Christian Biesinger <cbiesinger@google.com>
4311 * server.c (server_waiting): Change to bool.
4312 (extended_protocol): Likewise.
4313 (response_needed): Likewise.
4314 (exit_requested): Likewise.
4315 (run_once): Likewise.
4316 (report_no_resumed): Likewise.
4317 (non_stop): Likewise.
4318 (disable_packet_vCont): Likewise.
4319 (disable_packet_Tthread): Likewise.
4320 (disable_packet_qC): Likewise.
4321 (disable_packet_qfThreadInfo): Likewise.
4322 (handle_general_set): Update.
4323 (handle_detach): Update.
4324 (handle_monitor_command): Update.
4325 (handle_query): Update.
4326 (captured_main): Update.
4327 (process_serial_event): Update.
4328 * server.h (server_waiting): Change to bool.
4329 (disable_packet_vCont): Likewise.
4330 (disable_packet_Tthread): Likewise.
4331 (disable_packet_qC): Likewise.
4332 (disable_packet_qfThreadInfo): Likewise.
4333 (run_once): Likewise.
4334 (non_stop): Likewise.
4335 * target.c (target_stop_and_wait): Update.
4337 2019-10-02 Tom Tromey <tromey@adacore.com>
4339 * Makefile.in (SFILES): Add common-inferior.c.
4340 (OBS): Add common-inferior.o.
4341 * server.c (startup_with_shell): Don't define.
4343 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
4345 * linux-low.c (linux_low_read_btrace): Update for change to
4348 2019-09-20 Christian Biesinger <cbiesinger@google.com>
4350 * debug.c (debug_threads): Remove comment in favor of the header.
4351 * debug.h (using_threads): Add declaration.
4352 (debug_threads): Add comment.
4353 * linux-aarch64-low.c: Include debug.h and remove declaration of
4355 * nto-low.c: Likewise.
4356 * remote-utils.c: Likewise.
4357 * thread-db.c: Likewise.
4359 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
4361 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
4362 and powerpc-cell64l-ipa.o.
4363 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
4364 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
4365 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
4368 * spu-low.c: Remove file.
4370 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
4371 (parse_spufs_run): Remove.
4372 (ppc_get_pc): Remove Cell/B.E. support.
4373 (ppc_set_pc): Likewise.
4374 (ppc_breakpoint_at): Likewise.
4375 (ppc_arch_setup): Likewise.
4376 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
4377 tdesc_powerpc_cell32l.
4378 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
4379 or init_registers_powerpc_cell32l.
4380 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
4381 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
4382 or init_registers_powerpc_cell32l.
4383 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
4384 (init_registers_powerpc_cell32l): Remove prototype.
4385 (init_registers_powerpc_cell64l): Likewise.
4387 * target.h (struct target_ops): Remove qxfer_spu member.
4388 * server.c (handle_qxfer_spu): Remove.
4389 (qxfer_packets): Remove entry for "spu".
4390 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
4391 * linux-low.c (SPUFS_MAGIC): Remove.
4392 (spu_enumerate_spu_ids): Remove.
4393 (linux_qxfer_spu): Remove.
4394 (linux_target_ops): Remove qxfer_spu member.
4395 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
4396 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
4397 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
4399 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4401 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
4402 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
4403 * config.in: Regenerate.
4404 * configure: Regenerate.
4406 2019-08-15 Tom Tromey <tromey@adacore.com>
4408 * target.c (target_write_memory): Use gdb::byte_vector.
4410 2019-08-15 Tom Tromey <tromey@adacore.com>
4412 * tracepoint.c (write_inferior_data_pointer)
4413 (write_inferior_integer, write_inferior_int8)
4414 (write_inferior_uinteger, m_tracepoint_action_download)
4415 (r_tracepoint_action_download, x_tracepoint_action_download)
4416 (l_tracepoint_action_download, clear_inferior_trace_buffer)
4417 (download_agent_expr, download_tracepoint_1)
4418 (download_trace_state_variables, upload_fast_traceframes): Update.
4419 * server.c (gdb_write_memory): Update.
4420 * remote-utils.c (relocate_instruction): Update.
4421 * proc-service.c (ps_pdwrite): Update.
4422 * mem-break.c (remove_memory_breakpoint)
4423 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
4424 (uninsert_fast_tracepoint_jumps_at)
4425 (reinsert_fast_tracepoint_jumps_at): Update.
4426 * linux-x86-low.c (append_insns)
4427 (i386_install_fast_tracepoint_jump_pad)
4428 (amd64_write_goto_address, i386_write_goto_address): Update.
4429 * linux-s390-low.c (append_insns, s390_write_goto_address):
4431 * linux-ppc-low.c (ppc_relocate_instruction)
4432 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
4433 (ppc_write_goto_address): Update.
4434 * linux-aarch64-low.c (append_insns): Update.
4435 * target.h (struct target_ops): Update.
4436 (write_inferior_memory): Don't declare.
4437 * target.c (target_write_memory): Rename from
4438 write_inferior_memory. Remove old target_write_memory.
4440 2019-08-15 Tom Tromey <tromey@adacore.com>
4442 * target.c (write_inferior_memory): Use std::vector.
4444 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
4447 * configure.ac: Drop enable-libmcheck support.
4448 * configure, config.in: Rebuild.
4449 * acinclude.m4: Don't include it.
4451 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4453 * configure.srv: Remove Arm xml files.
4455 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4457 * configure.srv: Add new files. Remove xml generated files.
4458 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
4460 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
4461 * linux-aarch32-tdesc.c: New file.
4462 * linux-aarch32-tdesc.h: New file.
4463 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
4464 * linux-arm-low.c (init_registers_arm, tdesc_arm)
4465 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
4466 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
4467 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
4468 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
4469 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
4470 (arm_read_description): Call arm_linux_read_description.
4471 (initialize_low_arch): Don't init registers.
4472 * linux-arm-tdesc.c: New file.
4473 * linux-arm-tdesc.h: New file.
4475 2019-07-10 Alan Hayward <alan.hayward@arm.com>
4477 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
4478 Move counter inside for.
4479 (arm_read_description): Check ptrace earlier.
4480 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
4482 2019-07-09 Tom Tromey <tom@tromey.com>
4484 * configure: Rebuild.
4485 * configure.ac: Change common to gdbsupport.
4486 * acinclude.m4: Change common to gdbsupport.
4487 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
4488 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
4489 common to gdbsupport.
4490 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
4491 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
4492 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
4493 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
4494 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
4495 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
4496 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
4497 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
4498 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
4499 common to gdbsupport.
4501 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4503 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
4505 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
4507 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4509 * configure.srv: Remove legacy xml.
4510 * linux-aarch64-low.c (initialize_low_arch): Remove
4511 initialize_low_tdesc call.
4512 * linux-aarch64-tdesc-selftest.c: Remove file.
4513 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
4514 * linux-x86-low.c (initialize_low_arch): Remove
4515 initialize_low_tdesc call.
4516 * linux-x86-tdesc-selftest.c: Remove file.
4517 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
4519 2019-06-20 Tom de Vries <tdevries@suse.de>
4521 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
4522 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
4524 2019-06-19 Tom de Vries <tdevries@suse.de>
4526 * debug.h (debug_write): Change return type to ssize_t.
4527 * debug.c (debug_write): Same.
4529 2019-06-14 Tom Tromey <tom@tromey.com>
4531 * configure.ac: Use new path to gnulib.
4532 * configure: Rebuild.
4533 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
4536 2019-06-11 Tom Tromey <tom@tromey.com>
4538 * Makefile.in (SFILES): Add alloc.c.
4540 (IPA_OBJS): Add alloc-ipa.o.
4541 (alloc-ipa.o): New target.
4542 (%.o: ../%.c): New pattern rule.
4544 2019-06-10 Tom Tromey <tromey@adacore.com>
4546 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
4547 end warning with a newline.
4548 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
4550 * thread-db.c (attach_thread): Don't end warning with a newline.
4551 (thread_db_notice_clone): Likewise.
4552 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
4554 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
4555 end warning with a newline.
4557 2019-06-04 Pedro Alves <palves@redhat.com>
4559 * server.c (captured_main): Use make_unique_xstrdup.
4561 2019-06-02 Tom Tromey <tom@tromey.com>
4563 * gdbreplay.c (fromhex): Remove.
4564 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
4566 2019-05-29 Tom Tromey <tromey@adacore.com>
4568 * configure: Rebuild.
4570 2019-05-06 Kevin Buettner <kevinb@redhat.com>
4572 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
4573 sign extension code on 32-bit builds.
4575 2019-05-03 Eli Zaretskii <eliz@gnu.org>
4578 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
4580 2019-04-19 Tom Tromey <tom@tromey.com>
4582 * server.c (struct vstop_notif): Derive from notif_event.
4584 (queue_stop_reply): Update.
4585 (remove_all_on_match_ptid): Change type. Rewrite.
4586 (discard_queued_stop_replies): Rewrite.
4587 (in_queued_stop_replies_ptid): Change type.
4588 (in_queued_stop_replies): Rewrite.
4589 (notif_stop): Update.
4590 (queue_stop_reply_callback): Update.
4591 (captured_main): Don't call initialize_notif.
4592 (push_stop_notification): Update.
4593 * notif.c (notif_write_event, handle_notif_ack)
4594 (notif_event_enque, notif_push): Update.
4595 (notif_event_xfree, initialize_notif): Remove.
4596 * notif.h (struct notif_event): Include <list>, not
4598 (struct notif_server) <queue>: Now a std::list.
4599 (notif_event_p): Remove typedef.
4600 (initialize_notif): Don't declare.
4601 (struct notif_event): Add virtual destructor.
4603 2019-04-17 Alan Hayward <alan.hayward@arm.com>
4605 * ax.c (ax_vdebug): Call debug_printf.
4606 * debug.c (debug_write): New function.
4607 * debug.h (debug_write): New declaration.
4608 * linux-low.c (sigchld_handler): Call debug_write.
4610 2019-04-17 Alan Hayward <alan.hayward@arm.com>
4612 * debug.c (debug_set_output): New function.
4613 (debug_vprintf): Send output to debug_file.
4614 (debug_flush): Likewise.
4615 * debug.h (debug_set_output): New declaration.
4616 * server.c (handle_monitor_command): Add debug-file option.
4617 (captured_main): Likewise.
4619 2019-04-17 Alan Hayward <alan.hayward@arm.com>
4621 * debug.c (remote_debug): Add definition.
4622 * debug.h (remote_debug): Add declaration.
4623 * hostio.c (remote_debug): Remove declaration.
4624 * remote-utils.c (struct ui_file): Likewise.
4625 (remote_debug): Likewise.
4626 * remote-utils.h (remote_debug): Likewise,
4627 * server.c (remote_debug): Remove definition.
4629 2019-04-10 Kevin Buettner <kevinb@redhat.com>
4631 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
4632 when using a 64-bit gdbserver.
4634 2019-04-09 Tom Tromey <tromey@adacore.com>
4636 * linux-low.c (select_event_lwp): Use find_thread_in_random.
4638 2019-04-08 Tom Tromey <tom@tromey.com>
4640 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
4642 (linux_resume_one_lwp): Likewise.
4644 2019-04-08 Tom Tromey <tom@tromey.com>
4646 * gdbreplay.c: Update.
4647 * linux-low.c: Update.
4650 2019-04-08 Tom Tromey <tom@tromey.com>
4652 * server.c: Use C++ exception handling.
4653 * linux-low.c: Use C++ exception handling.
4654 * gdbreplay.c: Use C++ exception handling.
4656 2019-04-08 Tom Tromey <tom@tromey.com>
4658 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
4659 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
4660 (captured_main, main): Update.
4661 * gdbreplay.c (main): Update.
4663 2019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4665 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
4666 value in argument pointer, return 1 if the entry is found and 0
4667 otherwise. Move comment.
4668 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
4669 * linux-low.h (linux_get_auxv): Declare.
4670 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
4672 2019-04-05 Tom Tromey <tromey@adacore.com>
4674 * server.c (gdbserver_usage): Use upper-case for metasyntactic
4677 2019-03-28 Alan Hayward <alan.hayward@arm.com>
4679 * linux-low.c (AT_HWCAP2): Add define if not already included.
4681 2019-03-26 Alan Hayward <alan.hayward@arm.com>
4683 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
4684 (aarch64_arch_setup): Call linux_get_hwcap.
4685 * linux-arm-low.c (arm_get_hwcap): Remove function.
4686 (arm_read_description): Call linux_get_hwcap.
4687 * linux-low.c (linux_get_auxv): New function.
4688 (linux_get_hwcap): Likewise.
4689 (linux_get_hwcap2): Likewise.
4690 * linux-low.h (linux_get_hwcap): New declaration.
4691 (linux_get_hwcap2): Likewise.
4692 * linux-ppc-low.c (ppc_get_auxv): Remove function.
4693 (ppc_arch_setup): Call linux_get_hwcap.
4694 * linux-s390-low.c (s390_get_hwcap): Remove function.
4695 (s390_arch_setup): Call linux_get_hwcap.
4697 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4698 Jiong Wang <jiong.wang@arm.com>
4700 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
4701 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
4703 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
4705 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4706 Jiong Wang <jiong.wang@arm.com>
4708 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
4709 (aarch64_get_hwcap): New function.
4710 (aarch64_arch_setup): Read APIA hwcap.
4712 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4713 Jiong Wang <jiong.wang@arm.com>
4715 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
4716 (initialize_low_tracepoint): Likewise.
4717 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
4718 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
4719 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
4720 (aarch64_linux_read_description): Likewise.
4721 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
4723 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4725 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
4726 i386_create_target_description for 'segments' parameter.
4727 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
4728 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
4729 * win32-i386-low.c (i386_arch_setup): Likewise.
4731 2019-03-12 Tom Tromey <tromey@adacore.com>
4733 * linux-low.c (iterate_over_lwps): Update.
4735 2019-03-06 Tom Tromey <tom@tromey.com>
4737 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
4738 (captured_main): Use SCOPE_EXIT.
4740 2019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
4742 * configure.srv: Use '$enable_unittest' instead of '$development'
4743 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
4746 2019-02-27 Tom Tromey <tromey@adacore.com>
4748 * gdbreplay.c (logchar): Handle \r\n.
4750 2019-02-07 Alan Hayward <alan.hayward@arm.com>
4752 * linux-low.c (linux_attach): Add process before lwp.
4753 * server.c (attach_inferior): Check if already attached.
4755 2019-02-07 Tom Tromey <tom@tromey.com>
4757 * x86-tdesc.h: Rename include guard.
4758 * x86-low.h: Add include guard.
4759 * wincecompat.h: Rename include guard.
4760 * win32-low.h: Add include guard.
4761 * utils.h: Rename include guard.
4762 * tracepoint.h: Rename include guard.
4763 * tdesc.h: Rename include guard.
4764 * target.h: Rename include guard.
4765 * server.h: Rename include guard.
4766 * remote-utils.h: Rename include guard.
4767 * regcache.h: Rename include guard.
4768 * nto-low.h: Rename include guard.
4769 * notif.h: Add include guard.
4770 * mem-break.h: Rename include guard.
4771 * lynx-low.h: Add include guard.
4772 * linux-x86-tdesc.h: Add include guard.
4773 * linux-s390-tdesc.h: Add include guard.
4774 * linux-ppc-tdesc-init.h: Add include guard.
4775 * linux-low.h: Add include guard.
4776 * linux-aarch64-tdesc.h: Add include guard.
4777 * linux-aarch32-low.h: Add include guard.
4778 * inferiors.h: Rename include guard.
4779 * i387-fp.h: Rename include guard.
4780 * hostio.h: Rename include guard.
4781 * gdbthread.h: Rename include guard.
4782 * gdb_proc_service.h: Rename include guard.
4783 * event-loop.h: Rename include guard.
4784 * dll.h: Rename include guard.
4785 * debug.h: Rename include guard.
4786 * ax.h: Rename include guard.
4788 2018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
4791 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
4792 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
4794 2019-01-25 Tom Tromey <tom@tromey.com>
4796 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
4798 2019-01-25 Tom Tromey <tom@tromey.com>
4800 * win32-low.c: Fix common/ includes.
4801 * win32-i386-low.c: Fix common/ includes.
4802 * tracepoint.c: Fix common/ includes.
4803 * thread-db.c: Fix common/ includes.
4804 * target.h: Fix common/ includes.
4805 * symbol.c: Fix common/ includes.
4806 * spu-low.c: Fix common/ includes.
4807 * server.h: Fix common/ includes.
4808 * server.c: Fix common/ includes.
4809 * remote-utils.c: Fix common/ includes.
4810 * regcache.h: Fix common/ includes.
4811 * regcache.c: Fix common/ includes.
4812 * nto-x86-low.c: Fix common/ includes.
4813 * notif.h: Fix common/ includes.
4814 * mem-break.h: Fix common/ includes.
4815 * lynx-low.c: Fix common/ includes.
4816 * lynx-i386-low.c: Fix common/ includes.
4817 * linux-x86-tdesc-selftest.c: Fix common/ includes.
4818 * linux-x86-low.c: Fix common/ includes.
4819 * linux-low.c: Fix common/ includes.
4820 * inferiors.h: Fix common/ includes.
4821 * i387-fp.c: Fix common/ includes.
4822 * hostio.c: Fix common/ includes.
4823 * hostio-errno.c: Fix common/ includes.
4824 * gdbthread.h: Fix common/ includes.
4825 * gdbreplay.c: Fix common/ includes.
4826 * fork-child.c: Fix common/ includes.
4827 * event-loop.c: Fix common/ includes.
4829 (enum gdb_agent_op): Fix common/ includes.
4831 2019-01-21 Tom Tromey <tom@tromey.com>
4833 * tracepoint.c: Fix includes.
4834 * remote-utils.c: Fix includes.
4835 * linux-x86-low.c: Fix includes.
4837 2019-01-01 Joel Brobecker <brobecker@adacore.com>
4839 * gdbreplay.c (gdbreplay_version): Update copyright year in
4841 * server.c (gdbserver_version): Likewise.
4843 2018-12-05 Alan Hayward <alan.hayward@arm.com>
4845 * linux-low.c (add_lwp): Switch ordering.
4847 2018-11-29 Tom Tromey <tom@tromey.com>
4849 * win32-low.c (win32_join): Take pid, not process.
4850 * target.h (struct target_ops) <join>: Change argument type.
4851 (join_inferior): Change argument name.
4852 * spu-low.c (spu_join): Take pid, not process.
4853 * server.c (handle_detach): Preserve pid before destroying
4855 * lynx-low.c (lynx_join): Take pid, not process.
4856 * linux-low.c (linux_join): Take pid, not process.
4858 2018-11-23 Alan Hayward <alan.hayward@arm.com>
4860 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
4861 (aarch64_cannot_fetch_register): Likewise.
4862 (struct linux_target_ops): Update references.
4864 2018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4866 * linux-ppc-low.c: Include nat/linux-ptrace.h.
4868 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4870 * configure.srv (ipa_ppc_linux_regobj): Add
4871 powerpc-isa207-htm-vsx32l-ipa.o and
4872 powerpc-isa207-htm-vsx64l-ipa.o.
4873 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
4874 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
4875 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
4876 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
4877 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
4878 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
4879 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
4880 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
4881 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
4882 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
4883 (init_registers_powerpc_isa207_htm_vsx32l)
4884 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
4885 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
4886 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
4887 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
4888 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
4889 (ppc_store_tm_ctarregset): New functions.
4890 (ppc_regsets): Add entries for HTM regsets.
4891 (ppc_arch_setup): Set htm in features struct when needed. Set
4892 sizes for the HTM regsets.
4893 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
4894 (initialize_low_arch): Call
4895 init_registers_powerpc_isa207_htm_vsx32l and
4896 init_registers_powerpc_isa207_htm_vsx64l.
4897 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
4898 PPC_TDESC_ISA207_HTM_VSX.
4899 (initialize_low_tracepoint): Call
4900 init_registers_powerpc_isa207_htm_vsx32l and
4901 init_registers_powerpc_isa207_htm_vsx64l.
4903 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4905 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
4906 rs6000/power-linux-pmu.xml to srv_xmlfiles.
4907 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
4908 (ppc_store_pmuregset): New functions.
4909 (ppc_regsets): Add entries for ebb and pmu regsets.
4910 (ppc_arch_setup): Set isa207 in features struct if the ebb and
4911 pmu regsets are available. Set sizes for these regsets.
4913 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4915 * configure.srv (ipa_ppc_linux_regobj): Add
4916 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
4917 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
4918 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
4919 rs6000/powerpc-isa207-vsx32l.xml, and
4920 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
4921 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
4922 <PPC_TDESC_ISA207_VSX>: New enum value.
4923 (init_registers_powerpc_isa207_vsx32l): Declare.
4924 (init_registers_powerpc_isa207_vsx64l): Declare.
4925 * linux-ppc-low.c (ppc_fill_tarregset): New function.
4926 (ppc_store_tarregset): New function.
4927 (ppc_regsets): Add entry for the TAR regset.
4928 (ppc_arch_setup): Set isa207 in features struct when needed. Set
4929 size for the TAR regsets.
4930 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
4931 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
4932 and init_registers_powerpc_isa207_vsx64l.
4933 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
4934 (initialize_low_tracepoint): Call
4935 init_registers_powerpc_isa207_vsx32l and
4936 init_registers_powerpc_isa207_vsx64l.
4938 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4939 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4941 * configure.srv (ipa_ppc_linux_regobj): Add
4942 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
4943 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
4944 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
4945 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
4946 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
4947 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
4948 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
4949 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
4950 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
4951 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
4952 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
4953 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
4954 (ppc_hwcap): Add comment.
4955 (ppc_hwcap2): New global.
4956 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
4957 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
4958 (ppc_regsets): Add entries for the DSCR and PPR regsets.
4959 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
4960 when needed. Set sizes for the the DSCR and PPR regsets.
4961 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
4962 (initialize_low_arch): Call
4963 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
4964 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
4965 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
4966 PPC_TDESC_ISA205_PPR_DSCR_VSX.
4967 (initialize_low_tracepoint): Call
4968 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
4969 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
4971 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4973 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
4975 2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
4976 Simon Marchi <simark@simark.ca>
4978 * acinclude.m4: Include "../selftest.m4".
4979 * configure: Regenerate.
4980 * configure.ac: Use "GDB_AC_SELFTEST".
4981 * configure.srv: Use "$enable_unittests" instead of
4982 "$development" when checking whether unit tests have been
4984 * server.c (captured_main): Update message informing that
4985 selftests have been disabled.
4987 2018-10-04 Tom Tromey <tom@tromey.com>
4989 * configure: Rebuild.
4991 2018-10-04 Tom Tromey <tom@tromey.com>
4993 * server.c (handle_status): Rename inner "thread".
4994 (process_serial_event): Declare "res" in 'm' case.
4995 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
4996 (iterate_over_lwps): Rename inner "thread".
4997 (linux_qxfer_libraries_svr4): Rename inner "len".
4998 * gdbthread.h (find_thread_in_random): Rename inner "thread".
5000 2018-10-01 Gary Benson <gbenson@redhat.com>
5002 * gdb_proc_service.h: Moved common code to
5003 common/gdb_proc_service.h.
5005 2018-10-01 Gary Benson <gbenson@redhat.com>
5007 * gdb_proc_service.h: Synchronize comments and whitespace with
5008 GDB's version of this file.
5010 2018-09-25 Tom Tromey <tom@tromey.com>
5012 * configure: Rebuild.
5013 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
5015 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5017 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
5018 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
5019 ($(IPA_LIB)): Sort IPA_OBJS.
5021 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5023 * Makefile.in: Remove references to $(ADD_DEPS).
5025 2018-09-16 Tom Tromey <tom@tromey.com>
5027 * remote-utils.c (remote_open): Use GNU style for metasyntactic
5029 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
5032 2018-09-05 Tom Tromey <tom@tromey.com>
5034 * configure: Rebuild.
5036 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
5039 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
5041 2018-08-27 Tom Tromey <tom@tromey.com>
5044 * configure: Rebuild.
5046 2018-08-27 Tom Tromey <tom@tromey.com>
5048 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
5049 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
5050 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
5051 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
5052 (s390x_emit_stack_adjust): Add casts to unsigned char.
5054 2018-08-22 Simon Marchi <simon.marchi@ericsson.com>
5058 * server.h (struct client_state) <disable_randomization>:
5061 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5063 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
5065 (mips_supply_ptrace_register): Likewise.
5067 2018-07-22 Tom Tromey <tom@tromey.com>
5069 * configure: Rebuild.
5071 2018-07-22 Tom Tromey <tom@tromey.com>
5073 * win32-low.c (win32_create_inferior): Remove unused variables.
5074 * gdbreplay.c (remote_open): Remove unused variable.
5075 * remote-utils.c (remote_prepare): Remove unused variable.
5076 * x86-tdesc.h (X86_TDESC_H): Define.
5077 (amd64_expedite_regs): Define conditionally.
5078 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
5079 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
5080 * remote-utils.c (readchar): Remove unused variable.
5082 2018-07-13 Pedro Alves <palves@redhat.com>
5084 * linux-low.c (linux_kill): Change parameter to process_info
5085 pointer instead of pid. Adjust.
5086 * lynx-low.c (lynx_kill): Likewise.
5087 * nto-low.c (nto_kill): Likewise.
5088 * spu-low.c (spu_kill): Likewise.
5089 * win32-low.c (win32_kill): Likewise.
5090 * server.c (handle_v_kill, kill_inferior_callback)
5091 (detach_or_kill_for_exit): Adjust.
5092 * target.c (kill_inferior): Change parameter to process_info
5093 pointer instead of pid. Adjust.
5094 * target.h (struct target_ops) <kill>: Change parameter to
5095 process_info pointer instead of pid. Adjust all implementations
5097 (kill_inferior): Likewise.
5099 2018-07-13 Pedro Alves <palves@redhat.com>
5101 * linux-low.c (linux_detach, linux_join): Change parameter to
5102 process_info pointer instead of pid. Adjust.
5103 * lynx-low.c (lynx_detach, lynx_join): Likewise.
5104 * nto-low.c (nto_detach): Likewise.
5105 * spu-low.c (spu_detach, spu_join): Likewise.
5106 * win32-low.c (win32_detach, win32_join): Likewise.
5107 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
5108 * target.h (struct target_ops) <detach, join>: Change parameter to
5109 process_info pointer instead of pid. Adjust all implementations
5111 (detach_inferior, join_inferior): Rename 'pid' parameter to
5114 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
5115 Jan Kratochvil <jan.kratochvil@redhat.com>
5116 Paul Fertser <fercerpav@gmail.com>
5117 Tsutomu Seki <sekiriki@gmail.com>
5119 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
5120 (OBS): Add 'common/netstuff.o'.
5121 (GDBREPLAY_OBS): Likewise.
5122 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
5123 (remote_open): Implement support for IPv6
5125 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
5127 (handle_accept_event): Accept connections from IPv6 sources.
5128 (remote_prepare): Handle IPv6-style hostnames; implement
5129 support for IPv6 connections.
5130 (remote_open): Implement support for printing connections from
5133 2018-07-11 Pedro Alves <palves@redhat.com>
5136 * mem-break.c (any_persistent_commands): Add process_info
5137 parameter and use it instead of relying on the current process.
5138 Change return type to bool.
5139 * mem-break.h (any_persistent_commands): Add process_info
5140 parameter and change return type to bool.
5141 * server.c (handle_detach): Remove require_running_or_return call.
5142 Look up the process_info for the process we're about to detach.
5143 If not found, return back error to GDB. Adjust
5144 any_persistent_commands call to pass down a process pointer.
5146 2018-07-11 Pedro Alves <palves@redhat.com>
5148 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
5149 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
5150 instead of collect_register_by_name.
5151 * regcache.c (regcache_raw_get_unsigned_by_name): New.
5152 * regcache.h (regcache_raw_get_unsigned_by_name): New.
5154 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
5155 Pedro Alves <palves@redhat.com>
5157 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
5159 2018-07-03 Tom Tromey <tom@tromey.com>
5161 * linux-low.c: Update.
5162 * lynx-low.c: Update.
5163 * mem-break.c: Update.
5164 * nto-low.c: Update.
5165 * remote-utils.c: Update.
5167 * spu-low.c: Update.
5169 * win32-low.c: Update.
5171 2018-07-03 Tom Tromey <tom@tromey.com>
5175 2018-07-03 Tom Tromey <tom@tromey.com>
5177 * linux-low.c: Update.
5179 2018-07-03 Tom Tromey <tom@tromey.com>
5183 2018-07-03 Tom Tromey <tom@tromey.com>
5185 * linux-low.c: Update.
5186 * linux-mips-low.c: Update.
5187 * lynx-low.c: Update.
5188 * nto-low.c: Update.
5189 * remote-utils.c: Update.
5191 * spu-low.c: Update.
5193 * thread-db.c: Update.
5195 2018-07-03 Tom Tromey <tom@tromey.com>
5197 * linux-low.c: Update.
5198 * linux-mips-low.c: Update.
5199 * lynx-low.c: Update.
5200 * mem-break.c: Update.
5201 * nto-low.c: Update.
5202 * remote-utils.c: Update.
5204 * spu-low.c: Update.
5206 * tracepoint.c: Update.
5208 2018-07-03 Tom Tromey <tom@tromey.com>
5210 * linux-low.c: Update.
5211 * linux-ppc-low.c: Update.
5212 * linux-x86-low.c: Update.
5213 * proc-service.c: Update.
5215 * spu-low.c: Update.
5216 * thread-db.c: Update.
5217 * win32-low.c: Update.
5219 2018-07-03 Tom Tromey <tom@tromey.com>
5221 * linux-low.c: Update.
5222 * lynx-low.c: Update.
5223 * nto-low.c: Update.
5224 * remote-utils.c: Update.
5225 * spu-low.c: Update.
5226 * thread-db.c: Update.
5227 * win32-low.c: Update.
5229 2018-06-29 Joel Brobecker <brobecker@adacore.com>
5231 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
5232 parameter in call to 'amd64_create_target_description'.
5234 2018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5236 * x86-tdesc.h: Remove executable permission flag.
5238 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5240 * configure.ac: Remove AC_PREREQ, add missing quoting.
5241 * configure: Re-generate.
5242 * config.in: Re-generate.
5243 * aclocal.m4: Re-generate.
5245 2018-06-18 Simon Marchi <simon.marchi@ericsson.com>
5247 * tracepoint.h (current_traceframe): Remove declaration.
5249 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5251 * linux-aarch64-low.c (is_sve_tdesc): New function.
5252 (aarch64_sve_regs_copy_to_regcache): Likewise.
5253 (aarch64_sve_regs_copy_from_regcache): Likewise.
5254 (aarch64_regs_info): Add SVE checks.
5255 (initialize_low_arch): Initialize SVE.
5257 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5259 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
5261 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5263 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
5264 (initialize_low_tracepoint): Likewise
5265 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
5266 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
5268 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
5270 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
5272 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5274 * server.h (PBUFSIZ): Increase size
5276 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5278 * regcache.c (regcache::raw_compare): New function.
5279 * regcache.h (regcache::raw_compare): New declaration.
5281 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5283 * regcache.c (new_register_cache): Use new.
5284 (free_register_cache): Use delete.
5285 (register_data): Use const.
5286 (supply_register): Move body inside regcache.
5287 (regcache::raw_supply): New override function.
5288 (collect_register): Move body inside regcache.
5289 (regcache::raw_collect): New override function.
5290 (regcache::get_register_status): New override function.
5291 * regcache.h (struct regcache): Inherit from reg_buffer_common.
5293 2018-06-09 Tom Tromey <tom@tromey.com>
5295 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
5297 (event_queue): Use std::queue.
5298 (gdb_event_xfree): Remove.
5299 (initialize_event_loop, process_event, wait_for_event): Update.
5301 2018-06-08 Stan Cox <scox@redhat.com>
5303 * win32-low.c (win32_create_inferior): last_ptid and last_status
5304 moved to client_state.
5306 2018-06-08 Pedro Alves <palves@redhat.com>
5308 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
5309 common/common-exceptions.o, common/common-utils.o,
5310 common/errors.o, common/print-utils.o and utils.o.
5311 * gdbreplay.c: Include "common-defs.h" instead of the two
5312 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
5313 string.h or alloca.h.
5314 (perror_with_name): Delete.
5315 (remote_open): Use xstrdup instead of strdup.
5316 (main): Rename to ...
5317 (captured_main): ... this.
5320 2018-06-08 Tom Tromey <tom@tromey.com>
5322 * linux-low.c (linux_low_read_btrace): Update.
5324 2018-06-04 Stan Cox <scox@redhat.com>
5326 * server.h (struct client_state): New.
5327 * server.c (cont_thread, general_thread, multi_process)
5328 (report_fork_events, report_vfork_events, report_exec_events)
5329 (report_thread_events, swbreak_feature, hwbreak_feature)
5330 (vCont_supported, disable_randomization, pass_signals)
5331 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
5332 Moved to client_state.
5333 * remote-utils.c (remote_debug, noack_mode)
5334 (transport_is_reliable): Moved to client_state.
5335 * tracepoint.c (current_traceframe): Moved to client_state.
5338 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
5339 linux-low.c, remote-utils.h, target.c: Use client_state.
5341 2018-05-31 Alan Hayward <alan.hayward@arm.com>
5343 * configure.srv: Add new c/h file.
5345 2018-05-31 Alan Hayward <alan.hayward@arm.com>
5347 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
5350 2018-05-25 Maciej W. Rozycki <macro@mips.com>
5352 * gdb.arch/mips-fpregset-core.exp: New test.
5353 * gdb.arch/mips-fpregset-core.c: New test source.
5355 2018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
5358 * hostio.c (require_int): Do not report overflow for integers
5359 between 0xfffffff and 0x7fffffff.
5361 2018-05-22 Maciej W. Rozycki <macro@mips.com>
5363 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
5364 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
5365 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
5367 (the_low_target): Wire them.
5369 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5371 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
5372 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
5373 mode. Call collect_register_by_name with vscr using
5374 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
5375 (ppc_store_vrregset): Add and set vscr_offset variable as in
5376 ppc_fill_vrregset. Call supply_register_by_name with vscr using
5379 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5381 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
5382 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
5383 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
5385 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5387 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
5388 (ppc_store_vsxregset): Likewise.
5389 (ppc_fill_vrregset): Likewise.
5390 (ppc_store_vrregset): Likewise.
5391 (ppc_fill_evrregset): Likewise.
5392 (ppc_store_evrregset): Likewise.
5393 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
5394 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
5397 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5399 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
5400 wordsize of the inferior. Call ppc_linux_target_wordsize.
5402 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5404 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
5405 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
5406 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
5407 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
5408 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
5409 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
5410 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
5411 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
5412 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
5413 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
5414 (tdesc_powerpc_e500l): Remove.
5415 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
5416 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
5417 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
5418 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
5420 (ppc_arch_setup): Remove target description matching code. Fill a
5421 ppc_linux_features struct and call ppc_linux_match_description
5424 2018-05-22 Maciej W. Rozycki <macro@mips.com>
5426 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
5427 width of the requested register exceeds the width of the
5429 (mips_cannot_store_register): Likewise.
5431 2018-05-21 Maciej W. Rozycki <macro@mips.com>
5433 * linux-mips-low.c (mips_fetch_register): New function. Update
5435 (mips_store_gregset): Supply 0 rather than $restart for $zero.
5436 (the_low_target): Wire `mips_fetch_register'.
5438 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5440 * lynx-i386-low.c (LYNXOS_178): New macro.
5441 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
5442 the layout on LynxOS-178.
5443 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
5444 handle floating point registers that are not supported by
5447 2018-05-10 Tom Tromey <tom@tromey.com>
5449 * configure: Rebuild.
5451 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5454 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
5455 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
5456 Use it to set the expedite_regs field in the given tdesc.
5457 * x86-tdesc.h: New file.
5458 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
5459 Adjust following the addition of the new expedite_regs parameter
5460 to init_target_desc.
5461 * linux-tic6x-low.c (tic6x_read_description): Likewise.
5462 * linux-x86-tdesc.c: #include "x86-tdesc.h".
5463 (i386_linux_read_description, amd64_linux_read_description):
5464 Adjust following the addition of the new expedite_regs parameter
5465 to init_target_desc.
5466 * lynx-i386-low.c: #include "x86-tdesc.h".
5467 (lynx_i386_arch_setup): Adjust following the addition of the new
5468 expedite_regs parameter to init_target_desc.
5469 * nto-x86-low.c: #include "x86-tdesc.h".
5470 (nto_x86_arch_setup): Adjust following the addition of the new
5471 expedite_regs parameter to init_target_desc.
5472 * win32-i386-low.c: #include "x86-tdesc.h".
5473 (i386_arch_setup): Adjust following the addition of the new
5474 expedite_regs parameter to init_target_desc.
5476 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5479 * win32-low.c (win32_create_inferior): Add call to my_wait
5480 setting last_status global.
5482 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5485 * win32-low.c (create_process): Only call gdb_tilde_expand if
5486 inferior_cwd is not NULL.
5488 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
5490 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
5491 registers to the cache if their values have changed.
5492 (i387_xsave_to_cache): Provide default values for x87 control
5493 registers when these features are available, but disabled.
5494 * regcache.c (supply_register_by_name_zeroed): New function.
5495 * regcache.h (supply_register_by_name_zeroed): Declare new
5498 2018-05-07 Tom Tromey <tom@tromey.com>
5500 * configure: Rebuild.
5502 2018-05-04 Tom Tromey <tom@tromey.com>
5504 * configure: Rebuild.
5506 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5507 Pedro Alves <palves@redhat.com>
5509 * linux-aarch64-low.c (aarch64_stopped_data_address):
5512 2018-04-27 Tom Tromey <tom@tromey.com>
5514 * configure: Rebuild.
5516 2018-04-23 Tom Tromey <tom@tromey.com>
5518 * configure: Rebuild.
5520 2018-04-19 Simon Marchi <simon.marchi@ericsson.com>
5522 * Makefile.in (depcomp): Add "..".
5523 (all_deps_files): New and use it.
5525 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5527 * configure.srv (aarch64*-*-linux*): Don't include xml.
5528 (i[34567]86-*-cygwin*): Likewise.
5529 (i[34567]86-*-linux*): Likewise.
5530 (i[34567]86-*-lynxos*): Likewise.
5531 (i[34567]86-*-mingw32ce*): Likewise.
5532 (i[34567]86-*-mingw*): Likewise.
5533 (i[34567]86-*-nto*): Likewise.
5534 (tic6x-*-uclinux): Likewise.
5535 (x86_64-*-linux*): Likewise.
5536 (x86_64-*-mingw*): Likewise.
5537 (x86_64-*-cygwin*): Likewise.
5539 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5541 * tdesc.c: Remove xml parameter.
5543 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5545 * server.c (get_features_xml): Remove cast.
5546 * tdesc.c (void target_desc::accept): Fill in function.
5547 (tdesc_get_features_xml): Remove old xml creation.
5548 (print_xml_feature::visit_pre): Add xml vistor.
5549 * tdesc.h (struct target_desc): Make xmltarget mutable.
5550 (tdesc_get_features_xml): Remove declaration.
5552 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5554 * tdesc.c (tdesc_architecture_name): Add new function.
5555 (tdesc_osabi_name): Likewise.
5556 (tdesc_get_features_xml): Use new functions.
5558 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5560 * tdesc.c (tdesc_create_flags): Remove.
5561 (tdesc_add_flag): Likewise.
5562 (tdesc_named_type): Likewise.
5563 (tdesc_create_union): Likewise.
5564 (tdesc_create_struct): Likewise.
5565 (tdesc_create_vector): Likewise.
5566 (tdesc_add_bitfield): Likewise.
5567 (tdesc_add_field): Likewise.
5568 (tdesc_set_struct_size): Likewise.
5570 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5572 * tdesc.c (~target_desc): Remove implictly deleted items.
5573 (init_target_desc): Iterate all features.
5574 (tdesc_get_features_xml): Use vector.
5575 (tdesc_create_feature): Create feature.
5576 * tdesc.h (tdesc_feature) Remove
5577 (target_desc): Add features.
5579 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5581 * Makefile.in: Add common/tdesc.c
5582 * tdesc.c (init_target_desc): init all reg_defs from register
5584 (tdesc_create_reg): Create tdesc_reg.
5585 * tdesc.h (tdesc_feature): Add register vector.
5587 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
5589 * tdesc.h (struct target_desc) <features>: Change type to
5590 std::vector<std::string>.
5591 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
5593 (tdesc_get_features_xml): Likewise.
5594 (tdesc_create_feature): Likewise.
5596 2018-03-26 Alan Hayward <alan.hayward@arm.com>
5598 * regcache.c (find_register_by_number): Return a ref.
5599 (find_regno): Use references.
5600 (register_size): Likewise.
5601 (register_data): Likewise.
5602 * tdesc.c (target_desc::~target_desc): Remove free calls.
5603 (target_desc::operator==): Use std::vector compare.
5604 (init_target_desc): Use reference.
5605 (tdesc_create_reg): Use reg constructors.
5606 * tdesc.h (struct target_desc): Replace pointer with object.
5608 2018-03-23 Alan Hayward <alan.hayward@arm.com>
5610 * regcache.c (find_register_by_number): Make static.
5611 (find_regno): Use find_register_by_number
5612 * regcache.h (struct reg): Remove declaration.
5614 2018-03-23 Alan Hayward <alan.hayward@arm.com>
5616 * tdesc.c (target_desc::~target_desc): Move to here.
5617 (target_desc::operator==): Likewise.
5618 * tdesc.h (target_desc::~target_desc): Move from here.
5619 (target_desc::operator==): Likewise.
5621 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
5623 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
5625 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5627 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
5629 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
5630 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
5631 and init_registers_s390_gs_linux64.
5633 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5635 * linux-s390-low.c (s390_fill_gs): Remove function.
5636 (s390_fill_gsbc): Remove function.
5637 (s390_regsets): Set fill functions for the guarded storage regsets
5640 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5642 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
5643 the word size. Add comment.
5644 (s390_get_wordsize): New function.
5645 (s390_arch_setup): No longer select a temporary tdesc to fetch the
5646 pswm with it. Instead, use s390_get_wordsize to determine the
5647 word size first and derive the correct tdesc from that directly.
5649 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
5651 * Makefile.in: Include silent-rules.mk.
5652 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
5653 (COMPILE): Add ECHO_CXX.
5654 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5655 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5656 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
5657 (version-generated.c): Add ECHO_GEN.
5658 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
5659 (IPAGENT_COMPILE): Add ECHO_CXX.
5660 (%-generated.c): Add ECHO_REGDAT.
5662 2018-03-14 Tom Tromey <tom@tromey.com>
5665 * ax.c (ax_printf): Special case for NULL.
5667 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5669 * linux-low.c (linux_qxfer_libraries_svr4): Use
5670 xml_escape_text_append.
5672 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5674 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
5676 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5678 * server.c (handle_general_set): Remove unnecessary xstrdup.
5680 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5682 * server.c (parse_debug_format_options): Adjust to
5683 delim_string_to_char_ptr_vec changes.
5684 * thread-db.c (thread_db_load_search): Adjust to
5685 dirnames_to_char_ptr_vec changes.
5687 2018-03-01 Markus Metzger <markus.t.metzger@intel.com>
5689 * target.h (target_enable_btrace, target_disable_btrace)
5690 (target_read_btrace, target_read_btrace_conf): Turn macro into
5691 inline function. Throw error if target method is not defined.
5692 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
5693 check for btrace target method. Be prepared to handle exceptions
5694 from btrace target methods.
5696 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5698 * server.c (captured_main): Change order of error message printed
5699 when the current working directory cannot be found.
5701 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5703 * server.c: Include "filenames.h" and "pathstuff.h".
5704 (program_name): Delete variable.
5705 (program_path): New anonymous class.
5706 (get_exec_wrapper): Use "program_path" instead of
5708 (handle_v_run): Likewise.
5709 (captured_main): Likewise.
5710 (process_serial_event): Likewise.
5712 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5714 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
5715 (OBJS): Add "pathstuff.o".
5716 * server.c (current_directory): New global variable.
5717 (captured_main): Initialize "current_directory".
5719 2018-02-26 Alan Hayward <alan.hayward@arm.com>
5721 * tdesc.c: Use common/tdesc.h.
5722 * tdesc.h: Likewise.
5724 2018-02-20 Alan Hayward <alan.hayward@arm.com>
5725 Simon Marchi <simon.marchi@ericsson.com>
5727 * Makefile.in: Switch order of make rules.
5729 2018-02-19 Alan Hayward <alan.hayward@arm.com>
5731 * Makefile.in: Add common directory in build.
5732 * configure.ac: Add common reference.
5733 * configure: Regenerate.
5735 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
5737 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
5738 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
5739 * spu-low.c (spu_target_ops): Likewise.
5740 * win32-low.c (win32_target_ops): Likewise.
5741 * server.c (supported_btrace_packets): Report packets unconditionally.
5742 * target.h (target_ops) <supports_btrace>: Remove.
5743 (target_supports_btrace): Remove.
5745 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
5747 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
5748 (handle_btrace_disable): Change return type to void. Use exceptions
5750 (handle_btrace_general_set): Catch exception and copy message to
5753 2018-02-08 Tom Tromey <tom@tromey.com>
5755 * linux-low.c (install_software_single_step_breakpoints): Use
5756 make_scoped_restore.
5757 * inferiors.c (make_cleanup_restore_current_thread): Remove.
5758 (do_restore_current_thread_cleanup): Remove.
5759 * gdbthread.h (make_cleanup_restore_current_thread): Don't
5762 2018-02-08 Tom Tromey <tom@tromey.com>
5764 * mem-break.c (set_raw_breakpoint_at): Use
5765 gdb::unique_xmalloc_ptr.
5767 2018-01-30 Pedro Alves <palves@redhat.com>
5770 * target.c (target_terminal::terminal_state): Rename to ...
5771 (target_terminal::m_terminal_state): ... this.
5773 2018-01-19 James Clarke <jrtc27@jrtc27.com>
5775 * linux-low.c (handle_extended_wait): Surround call to
5776 thread_db_notice_clone with #ifdef USE_THREAD_DB.
5778 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
5780 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
5781 linux_ptrace_attach_fail_reason_string now returning an
5783 (linux_attach): Likewise.
5784 * thread-db.c (attach_thread): Likewise.
5786 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
5789 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
5790 checking for fs_base/gs_base fields in struct user_regs_struct.
5791 * configure: Regenerate.
5793 2018-01-16 Yao Qi <yao.qi@linaro.org>
5796 * linux-low.c (fetch_register): Call supply_register instead of
5799 2018-01-08 Yao Qi <yao.qi@linaro.org>
5800 Simon Marchi <simon.marchi@ericsson.com>
5802 * Makefile.in (OBS): Remove selftest.o.
5803 * configure.ac: Set srv_selftest_objs if $development is true.
5804 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
5805 * configure: Re-generated.
5806 * server.c (captured_main): Wrap variable selftest_filter with
5809 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
5811 * server.c (parse_debug_format_options): Return std::string.
5812 (handle_monitor_command, captured_main): Adjust.
5814 2018-01-05 Pedro Alves <palves@redhat.com>
5817 * server.c (captured_main): Pass quiet=false to
5818 save_original_signals_state.
5820 2018-01-01 Joel Brobecker <brobecker@adacore.com>
5822 * gdbreplay.c (gdbreplay_version): Update copyright year in
5824 * server.c (gdbserver_version): Likewise.
5826 2017-12-08 Tom Tromey <tom@tromey.com>
5828 * ax.c (ax_printf): Update.
5830 2017-12-07 Yao Qi <yao.qi@linaro.org>
5832 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
5833 aarch64_linux_read_description.
5834 * linux-amd64-ipa.c (idx2mask): New array.
5835 (get_ipa_tdesc): Move idx2mask out.
5836 (initialize_low_tracepoint): Initialize target descriptions.
5837 * linux-i386-ipa.c (idx2mask): New array.
5838 (get_ipa_tdesc): Move idx2mask out.
5839 (initialize_low_tracepoint): Initialize target descriptions.
5841 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
5843 * tdesc.c (struct tdesc_type): Change return type.
5844 (tdesc_add_flag): Change parameter type.
5845 (tdesc_add_bitfield): Likewise.
5846 (tdesc_add_field): Likewise.
5847 (tdesc_set_struct_size): Likewise.
5849 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
5851 * regcache.c (registers_to_string): Remove unused variable.
5853 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5855 * inferiors.c (for_each_inferior_with_data): Remove.
5856 * inferiors.h (for_each_inferior_with_data): Remove.
5857 * server.c (handle_qxfer_threads_worker): Change parameter type.
5858 (handle_qxfer_threads_proper): Use for_each_thread.
5860 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5862 * inferiors.c (for_each_inferior): Remove.
5863 (clear_inferiors): Use for_each_thread.
5864 * inferiors.h (for_each_inferior): Remove.
5865 * linux-low.c (linux_wait_for_event_filtered): Use
5867 (linux_stabilize_threads): Likewise.
5868 * regcache.c (regcache_release): Likewise.
5869 * server.c (gdb_wants_all_threads_stopped): Likewise.
5870 (clear_pending_status_callback): Remove.
5871 (handle_status): Use for_each_thread.
5872 (captured_main): Likewise.
5873 * win32-low.c (child_init_thread_list): Likewise.
5874 (win32_clear_inferiors): Likewise.
5875 (fake_breakpoint_event): Likewise.
5877 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5879 * inferiors.h (find_inferior): Remove.
5880 * inferiors.c (find_inferior): Remove.
5882 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5884 * linux-low.c (resume_status_pending_p): Update comment.
5885 (need_step_over_p): Update comment.
5887 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5889 * linux-low.c (proceed_one_lwp): Return void, change parameter
5891 (unsuspend_and_proceed_one_lwp): Likewise.
5892 (proceed_all_lwps): Use for_each_thread.
5893 (unstop_all_lwps): Likewise.
5895 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5897 * linux-low.c (linux_resume_one_thread): Return void, take
5899 (linux_resume): Use for_each_thread.
5901 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5903 * linux-low.c (send_sigstop_callback): Return void, change
5904 parameter type. Rename to...
5905 (send_sigstop): ... this.
5906 (suspend_and_send_sigstop_callback): Return void, change parameter
5908 (suspend_and_send_sigstop): ... this.
5909 (stop_all_lwps): Use for_each_thread.
5911 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5913 * linux-low.c (lwp_running): Return bool, remove unused
5915 (linux_stabilize_threads): Use find_thread.
5917 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5919 * linux-low.c (select_singlestep_lwp_callback): Remove.
5920 (count_events_callback): Remove.
5921 (select_event_lwp_callback): Remove.
5922 (select_event_lwp): Use find_thread/for_each_thread.
5924 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5926 * linux-low.c (not_stopped_callback): Return bool, take filter
5928 (linux_wait_for_event_filtered): Use find_thread.
5929 (linux_wait_1): Likewise.
5931 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5933 * linux-low.c (same_lwp): Remove.
5934 (find_lwp_pid): Use find_thread.
5936 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5938 * linux-low.c (delete_lwp_callback): Remove.
5939 (linux_mourn): Use for_each_thread.
5941 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5943 * linux-low.c (linux_detach_lwp_callback): Return void, remove
5944 args parameter, don't check for pid.
5945 (linux_detach): Use for_each_thread.
5947 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5949 * linux-low.c (struct counter): Remove.
5950 (second_thread_of_pid_p): Remove.
5951 (last_thread_of_process_p): Use find_thread.
5953 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5955 * inferiors.c (find_inferior_in_random): Remove.
5956 * inferiors.h (find_inferior_in_random): Remove.
5957 * linux-low.c (status_pending_p_callback): Return bool, accept
5958 parameter ptid directly.
5959 (linux_wait_for_event_filtered): Use find_thread_in_random.
5960 (linux_wait_1): Likewise.
5962 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5964 * inferiors.c (find_inferior_id): Remove.
5965 (find_thread_ptid): Move implemention from find_inferior_id to
5967 * inferiors.h (find_inferior_id): Remove.
5968 * server.c (handle_status): Use find_thread_ptid.
5969 (process_serial_event): Likewise.
5970 * thread-db.c (find_one_thread): Likewise.
5971 (thread_db_thread_handle): Likewise.
5972 * win32-low.c (thread_rec): Likewise.
5973 (child_delete_thread): Likewise.
5974 (win32_thread_alive): Likewise.
5975 (get_child_debug_event): Likewise.
5977 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5979 * linux-mips-low.c (update_watch_registers_callback): Return
5980 void, remove pid_p parameter, don't check for pid.
5981 (mips_insert_point, mips_remove_point): Use for_each_thread.
5983 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5985 * lynx.low (lynx_delete_thread_callback): Remove.
5986 (lynx_mourn): Use for_each_thread.
5988 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5990 * regcache.c (regcache_invalidate_one): Remove.
5991 (regcache_invalidate_pid): use for_each_thread.
5993 2017-11-26 Tom Tromey <tom@tromey.com>
5995 * linux-low.c (linux_create_inferior): Update.
5997 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
5999 * spu-low.c (spu_create_inferior): Fix typo in argument name.
6001 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6003 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
6004 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6005 * linux-aarch64-tdesc-selftest.c: New file.
6006 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6008 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6010 * configure.srv: Add new file.
6011 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6012 * linux-aarch64-tdesc-selftest.c: New file.
6013 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6015 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6017 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
6018 * linux-aarch64-low.c (initialize_low_arch): Remove init.
6019 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
6021 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6023 * configure.srv: Add new files.
6024 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
6025 aarch64_linux_read_description.
6026 * linux-aarch64-low.c (aarch64_linux_read_description):
6027 Merge with aarch64_arch_setup.
6028 (aarch64_arch_setup): Call aarch64_linux_read_description.
6029 * linux-aarch64-tdesc.c: New file.
6030 * linux-aarch64-tdesc.h: New file.
6032 2017-11-24 Yao Qi <yao.qi@linaro.org>
6034 * configure.srv: Set $srv_regobj for tic6x-linux.
6035 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
6036 (tic6x_read_description): Move some code to tic6x_arch_setup.
6037 (tic6x_tdesc_test): New function.
6038 (initialize_low_arch): Call selftests::register_test.
6040 2017-11-22 Yao Qi <yao.qi@linaro.org>
6042 * remote-utils.c (prepare_resume_reply): Use memcpy.
6044 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6046 * linux-low.c (kill_one_lwp_callback): Return void, take
6047 argument directly, don't filter on pid.
6048 (linux_kill): Use for_each_thread.
6050 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6052 * linux-low.c (need_step_over_p): Return bool, remove dummy
6054 (linux_resume, proceed_all_lwps): Use find_thread.
6056 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6058 * linux-low.c (resume_status_pending_p): Return bool, remove
6060 (linux_resume): Use find_thread.
6062 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6064 * linux-low.c (struct thread_resume_array): Remove.
6065 (linux_set_resume_request): Return void, take arguments
6067 (linux_resume): Use for_each_thread.
6069 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6071 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
6072 return bool, remove data argument.
6073 (linux_stabilize_threads): Use find_thread.
6075 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6077 * linux-low.c (unsuspend_one_lwp): Remove.
6078 (unsuspend_all_lwps): Use for_each_thread, inline code from
6081 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6083 * gdbthread.h (find_thread): Add overload with ptid_t filter.
6084 * linux-low.c (struct iterate_over_lwps_args): Remove.
6085 (iterate_over_lwps_filter): Remove.
6086 (iterate_over_lwps): Use find_thread.
6088 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6090 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
6091 (linux_handle_new_gdb_connection): Use for_each_thread, inline
6092 code from reset_lwp_ptrace_options_callback.
6094 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6096 * linux-arm-low.c (struct update_registers_data): Remove.
6097 (update_registers_callback): Return void, take arguments
6098 directly, don't check thread's pid.
6099 (arm_insert_point, arm_remove_point): Use for_each_thread.
6101 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6103 * win32-low.c (continue_one_thread): Return void, take argument
6105 (child_continue): Use for_each_thread.
6107 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6109 * win32-i386-low.c (update_debug_registers_callback): Rename
6111 (update_debug_registers): ... this, return void, remove pid_p arg.
6112 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
6114 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
6116 * inferiors.h (struct process_info): Add constructor, initialize
6118 <syscalls_to_catch>: Change type to std::vector<int>.
6119 * inferiors.c (add_process): Allocate process_info with new.
6120 (remove_process): Free process_info with delete.
6121 * linux-low.c (handle_extended_wait): Adjust.
6122 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
6123 * server.c (handle_general_set): Adjust.
6125 2017-11-16 Pedro Alves <palves@redhat.com>
6127 * remote-utils.c (remote_close): Block SIGIO signals instead of
6128 uninstalling the SIGIO handler.
6130 2017-11-16 Alan Hayward <alan.hayward@arm.com>
6132 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
6134 2017-11-16 Yao Qi <yao.qi@linaro.org>
6136 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
6137 (tic6x_store_gregset): Likewise.
6138 (tic6x_usrregs_info): Move it up.
6140 2017-11-15 Alan Hayward <alan.hayward@arm.com>
6142 * Makefile.in: Update arch rules.
6143 * configure.srv: Explicitly mark arch/ files.
6145 2017-11-13 Andreas Schwab <schwab@suse.de>
6147 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
6149 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6151 2017-11-06 Pedro Alves <palves@redhat.com>
6153 * config.in, configure: Regenerate.
6155 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6157 * target.c (struct thread_search): Remove.
6158 (thread_search_callback): Remove.
6159 (prepare_to_access_memory): Use for_each_thread instead of
6160 find_inferior. Inline code from thread_search_callback.
6162 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6164 * server.c (struct visit_actioned_threads_data): Remove.
6165 (visit_actioned_threads): Change prototype to take arguments
6167 (resume): Use find_thread instead of find_inferior.
6169 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6171 * server.c (queue_stop_reply_callback): Change prototype, return
6173 (find_status_pending_thread_callback): Remove.
6174 (handle_status): Replace find_inferior with find_thread and
6177 2017-10-25 Alan Hayward <alan.hayward@arm.com>
6179 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
6181 (aarch64_store_gregset): Likewise.
6182 (aarch64_fill_fpregset): Likewise.
6183 (aarch64_store_fpregset): Likewise.
6185 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
6187 * gdbthread.h (find_thread, for_each_thread): New functions.
6188 * inferiors.c (thread_of_pid): Remove.
6189 (find_any_thread_of_pid): Use find_thread.
6190 * linux-low.c (num_lwps): Use for_each_thread.
6192 2017-10-17 Yao Qi <yao.qi@linaro.org>
6194 * Makefile.in: Remove one rule.
6195 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
6197 2017-10-17 Yao Qi <yao.qi@linaro.org>
6199 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
6200 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
6202 2017-10-17 Yao Qi <yao.qi@linaro.org>
6204 * configure.srv: Rename arm.o with arch/arm.o.
6206 2017-10-17 Yao Qi <yao.qi@linaro.org>
6208 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
6209 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
6210 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
6211 (arch-i386.o, arch-amd64.o): Remove rules.
6212 (arch/%.o): New rule.
6213 Update POSTCOMPILE and COMPILE.pre.
6214 * configure.ac: Invoke AC_CONFIG_COMMANDS.
6215 * configure: Re-generated.
6216 * configure.srv: Replace arch-i386.o with arch/i386.o.
6217 Replace arch-amd64.o with arch/amd64.o.
6219 2017-10-16 Yao Qi <yao.qi@linaro.org>
6221 * configure: Regenerated.
6223 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6225 * inferiors.h: (struct inferior_list): Remove.
6226 (struct inferior_list_entry); Remove.
6227 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
6228 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
6229 get_first_inferior): Remove.
6230 (for_each_inferior, for_each_inferior_with_data, find_inferior,
6231 find_inferior_id, find_inferior_in_random): Change signature.
6232 * inferiors.c (all_threads): Change type to
6233 std::list<thread_info *>.
6234 (get_thread): Remove macro.
6235 (find_inferior, find_inferior_id): Change signature, implement
6237 (find_inferior_in_random): Change signature, implement using
6238 find_thread_in_random.
6239 (for_each_inferior, for_each_inferior_with_data): Change
6240 signature, implement using for_each_thread.
6241 (add_inferior_to_list, remove_inferior): Remove.
6242 (add_thread, get_first_thread, thread_of_pid,
6243 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
6244 (get_first_inferior, one_inferior_p, clear_inferior_list):
6246 (clear_inferiors, get_thread_process): Update.
6247 * gdbthread.h: Include <list>.
6248 (struct thread_info) <entry>: Remove field.
6250 (all_threads): Change type to std::list<thread_info *>.
6251 (get_first_inferior): Add doc.
6252 (find_thread, for_each_thread, find_thread_in_random): New
6254 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
6255 * linux-arm-low.c (update_registers_callback): Update.
6256 * linux-low.c (second_thread_of_pid_p): Update.
6257 (kill_one_lwp_callback, linux_detach_lwp_callback,
6258 delete_lwp_callback, status_pending_p_callback, same_lwp,
6259 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
6260 iterate_over_lwps, not_stopped_callback,
6261 resume_stopped_resumed_lwps, count_events_callback,
6262 select_singlestep_lwp_callback, select_event_lwp_callback,
6263 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
6264 suspend_and_send_sigstop_callback, wait_for_sigstop,
6265 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
6266 lwp_running, linux_set_resume_request, resume_status_pending_p,
6267 need_step_over_p, start_step_over, linux_resume_one_thread,
6268 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
6269 reset_lwp_ptrace_options_callback): Update.
6270 * linux-mips-low.c (update_watch_registers_callback): Update.
6271 * regcache.c (regcache_invalidate_one, regcache_invalidate):
6273 (free_register_cache_thread_one): Remove.
6274 (regcache_release): Update.
6275 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
6276 handle_qxfer_threads_worker): Update.
6277 (handle_query): Update, use list iterator.
6278 (visit_actioned_threads, handle_pending_status,
6279 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
6280 clear_pending_status_callback, set_pending_status_callback,
6281 find_status_pending_thread_callback, handle_status,
6282 process_serial_event): Update.
6283 * target.c (thread_search_callback): Update.
6284 * thread-db.c (thread_db_get_tls_address): Update.
6285 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
6287 * win32-i386-low.c (update_debug_registers_callback): Update.
6288 * win32-low.c (delete_thread_info, child_delete_thread,
6289 continue_one_thread, suspend_one_thread,
6290 get_child_debug_event): Adjust.
6292 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6294 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
6295 * inferiors.h: Include <list>.
6296 (struct process_info) <entry>: Remove field.
6298 (pid_of): Change macro to function.
6299 (ptid_of, lwpid_of): Remove macro.
6300 (all_processes): Change type to std::list<process_info *>.
6301 (ALL_PROCESSES): Remove macro.
6302 (for_each_process, find_process): New function.
6303 * inferiors.c (all_processes): Change type to
6304 std::list<process_info *>.
6305 (find_thread_process): Adjust.
6306 (add_process): Likewise.
6307 (remove_process): Likewise.
6308 (find_process_pid): Likewise.
6309 (get_first_process): Likewise.
6310 (started_inferior_callback): Remove.
6311 (have_started_inferiors_p): Adjust.
6312 (attached_inferior_callback): Remove.
6313 (have_attached_inferiors_p): Adjust.
6314 * linux-low.c (check_zombie_leaders): Likewise.
6315 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
6316 (x86_linux_update_xmltarget): Adjust.
6317 * server.c (handle_query): Likewise.
6318 (gdb_reattached_process): Remove.
6319 (handle_status): Adjust.
6320 (kill_inferior_callback): Likewise.
6321 (detach_or_kill_inferior): Remove.
6322 (print_started_pid): Likewise.
6323 (print_attached_pid): Likewise.
6324 (detach_or_kill_for_exit): Update.
6325 (process_serial_event): Likewise.
6326 * linux-arm-low.c (arm_new_fork): Likewise.
6328 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6330 * dll.h: Include <list>.
6331 (struct dll_info): Add constructor.
6332 <entry>: Remove field.
6333 (all_dlls): Change type to std::list<dll_info>.
6334 * dll.c: Include <algorithm>.
6335 (get_dll): Remove macro.
6336 (all_dlls): Change type to std::list<dll_info *>.
6337 (free_one_dll): Remove.
6338 (match_dll): Likewise.
6339 (loaded_dll): Adjust.
6340 (unloaded_dll): Adjust to all_dlls type change, use
6341 std::find_if. Inline code from match_dll.
6342 (clear_dlls): Adjust to all_dlls type change.
6343 * server.c (emit_dll_description): Remove.
6344 (handle_qxfer_libraries): Adjust to all_dlls type change,
6345 integrate emit_dll_description's functionality.
6347 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6349 * linux-low.h (struct linux_target_ops) <delete_process>: New
6351 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
6352 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
6353 (struct linux_target_ops): Add delete_process callback.
6354 * linux-arm-low.c (arm_delete_process): New.
6355 (struct linux_target_ops): Add delete_process callback.
6356 * linux-bfin-low.c (struct linux_target_ops): Likewise.
6357 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
6358 * linux-m32r-low.c (struct linux_target_ops): Likewise.
6359 * linux-mips-low.c (mips_linux_delete_process): New.
6360 (struct linux_target_ops): Add delete_process callback.
6361 * linux-ppc-low.c (struct linux_target_ops): Likewise.
6362 * linux-s390-low.c (struct linux_target_ops): Likewise.
6363 * linux-sh-low.c (struct linux_target_ops): Likewise.
6364 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
6365 * linux-tile-low.c (struct linux_target_ops): Likewise.
6366 * linux-x86-low.c (x86_linux_delete_process): New.
6367 (struct linux_target_ops): Add delete_process callback.
6368 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
6370 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6372 * linux-aarch64-low.c (the_low_target): Add thread delete
6374 * linux-arm-low.c (arm_delete_thread): New function.
6375 (the_low_target): Add thread delete callback.
6376 * linux-bfin-low.c (the_low_target): Likewise.
6377 * linux-crisv32-low.c (the_low_target): Likewise.
6378 * linux-low.c (delete_lwp): Invoke delete_thread callback if
6380 * linux-low.h (struct linux_target_ops) <delete_thread>: New
6382 * linux-m32r-low.c (the_low_target): Add thread delete callback.
6383 * linux-mips-low.c (mips_linux_delete_thread): New function.
6384 (the_low_target): Add thread delete callback.
6385 * linux-ppc-low.c (the_low_target): Likewise.
6386 * linux-s390-low.c (the_low_target): Likewise.
6387 * linux-sh-low.c (the_low_target): Likewise.
6388 * linux-tic6x-low.c (the_low_target): Likewise.
6389 * linux-tile-low.c (the_low_target): Likewise.
6390 * linux-x86-low.c (the_low_target): Likewise.
6391 * linux-xtensa-low.c (the_low_target): Likewise.
6393 2017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
6395 * win32-low.c: Include "common-inferior.h".
6397 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6399 * inferiors.c (set_inferior_cwd): New function.
6400 * server.c (handle_general_set): Handle QSetWorkingDir packet.
6401 (handle_query): Inform that QSetWorkingDir is supported.
6402 * win32-low.c (create_process): Pass the inferior's cwd to
6405 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6407 * inferiors.c (current_inferior_cwd): New global variable.
6408 (get_inferior_cwd): New function.
6409 * inferiors.h (struct process_info) <cwd>: New field.
6411 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6413 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
6414 (OBS): Add gdb_tilde_expand.o.
6416 2017-10-02 Simon Marchi <simon.marchi@ericsson.com>
6418 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
6419 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
6421 2017-09-29 Pedro Alves <palves@redhat.com>
6423 * ax.c (gdb_parse_agent_expr): Constify.
6424 * ax.h (gdb_parse_agent_expr): Constify.
6425 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
6427 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
6428 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
6429 * remote-utils.h (read_ptid): Constify.
6430 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
6431 (process_point_options, process_serial_event): Constify.
6432 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
6433 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
6434 (cmd_qtbuffer): Constify.
6436 2017-09-29 Pedro Alves <palves@redhat.com>
6438 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
6441 2017-09-29 Pedro Alves <palves@redhat.com>
6443 * linux-low.c (handle_extended_wait): Pass parent thread instead
6444 of process to thread_db_notice_clone.
6445 * linux-low.h (thread_db_notice_clone): Replace parent process
6446 parameter with parent thread parameter.
6447 * thread-db.c (find_one_thread): Add comment.
6448 (thread_db_notice_clone): Replace parent process parameter with
6449 parent thread parameter. Temporarily switch to the parent thread.
6451 2017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
6453 * gdbthread.h: Include "common-gdbthread.h".
6454 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
6455 "if" when validating the ptid.
6456 * remote-utils.c: Include "gdbthread.h".
6457 (prepare_resume_reply): Use "switch_to_thread".
6458 * target.c (done_accessing_memory): Likewise.
6460 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6462 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
6463 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
6464 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
6465 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
6466 s390x-gs-linux64-ipa.o to ipa_obj.
6467 * linux-s390-low.c (HWCAP_S390_GS): New define.
6468 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
6470 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
6471 (s390_arch_setup): Check for guarded-storage support and choose
6473 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
6474 init_registers_s390x_gs_linux64.
6475 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
6477 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
6478 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
6480 2017-09-22 Simon Marchi <simon.marchi@ericsson.com>
6482 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
6484 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6486 * linux-low.h (struct lwp_info): Add new field, thread_handle.
6487 (thread_db_thread_handle): Declare.
6488 * linux-low.c (linux_target_ops): Initialize thread_handle.
6489 * server.c (handle_qxfer_threads_worker): Add support for
6491 * target.h (struct target_ops): Add new function pointer,
6493 (target_thread_handle): Define.
6494 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
6496 (thread_db_thread_handle): New function.
6498 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6500 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
6501 * linux-low.h (thread_db_notice_clone): Declare.
6502 * thread-db.c (thread_db_notice_clone): New function.
6504 2017-09-21 Pedro Alves <palves@redhat.com>
6506 * server.c (gdb_read_memory, handle_status, process_serial_event)
6507 (handle_serial_event, handle_target_event): Adjust to
6508 set_desired_thread prototype change.
6509 * target.c (set_desired_thread): Remove 'use_general' parameter
6511 * target.h (set_desired_thread): Remove 'use_general' parameter.
6513 2017-09-20 Tom Tromey <tom@tromey.com>
6515 * target.c (target_terminal::terminal_state): Define.
6516 (target_terminal::init): Rename from target_terminal_init.
6517 (target_terminal::inferior): Rename from
6518 target_terminal_inferior.
6519 (target_terminal::ours): Rename from target_terminal_ours.
6520 (target_terminal::ours_for_output, target_terminal::info): New.
6522 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6524 * server.c (accumulate_file_name_length): Remove.
6525 (emit_dll_description): Adjust to std::string change.
6526 (handle_qxfer_libraries): Use std::string to hold document.
6528 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6530 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
6531 return type of xml_escape_text.
6532 * server.c (emit_dll_description): Likewise.
6534 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6536 * server.c (captured_main): Accept argument for --selftest.
6537 Update run_tests call.
6538 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
6539 when registering selftests.
6541 2017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
6543 * regcache.c (get_thread_regcache): Update code to use "std::vector"
6544 instead of "VEC" for "target_desc.reg_defs".
6545 (regcache_cpy): Likewise.
6546 (registers_to_string): Likewise.
6547 (registers_from_string): Likewise.
6548 (find_regno): Likewise.
6549 (supply_regblock): Likewise.
6550 (regcache_raw_read_unsigned): Likewise.
6551 * tdesc.c (init_target_desc): Likewise.
6552 (tdesc_create_reg): Likewise.
6553 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
6554 (struct target_desc) <reg_defs>: Convert to "std::vector".
6555 (target_desc): Do not initialize "reg_defs".
6556 (~target_desc): Update code to use "std::vector" instead of "VEC"
6557 for "target_desc.reg_defs".
6558 (operator==): Likewise.
6560 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6562 * inferiors.h (thread_to_gdb_id): Remove.
6563 * inferiors.c (thread_to_gdb_id): Remove.
6564 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
6565 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
6566 lynx_store_registers, lynx_read_memory, lynx_write_memory):
6568 * nto-low.c (nto_fetch_registers, nto_store_registers,
6569 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
6571 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6573 * inferiors.h (gdb_id_to_thread_id): Remove.
6574 * inferiors.c (gdb_id_to_thread_id): Remove.
6575 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
6576 removal. Move pid declaration closer to where it's used.
6578 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6580 * server.c (handle_detach): New function.
6581 (process_serial_event): Move code out, call handle_detach.
6583 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6585 * server.c (require_running): Rename to ...
6586 (require_running_or_return): ... this ...
6587 (require_running_or_break): ... and this.
6588 (handle_query, process_serial_event): Adjust.
6590 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6592 * linux-low.c (linux_set_resume_request): Remove unused
6595 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6597 * server.c (first_thread_of): Remove.
6598 (process_serial_event): Replace usage of first_thread_of with
6599 find_any_thread_of_pid.
6600 * tracepoint.c (same_process_p): Remove.
6601 (gdb_agent_about_to_close): Replace usage of same_process_p with
6602 find_any_thread_of_pid.
6603 * linux-x86-low.c (same_process_callback): Remove.
6604 (x86_arch_setup_process_callback): Replace usage of
6605 same_process_callback with find_any_thread_of_pid.
6606 * thread-db.c (any_thread_of): Remove.
6607 (switch_to_process): Replace usage of any_thread_of with
6608 find_any_thread_of_pid.
6609 * inferiors.c (thread_pid_matches_callback): Remove.
6610 (find_thread_process): Adjust to use find_any_thread_of_pid.
6612 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6614 * regcache.c (get_thread_regcache): Guard calls to "memset"
6617 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6619 * linux-low.c (handle_extended_wait): Use
6620 "allocate_target_description" instead of "XNEW".
6621 * linux-x86-low.c (initialize_low_arch): Likewise.
6623 2017-09-05 Yao Qi <yao.qi@linaro.org>
6625 * configure.srv (srv_i386_regobj): Remove.
6626 (srv_amd64_regobj): Remove.
6627 (srv_regobj): Set it to "" for x86 non-linux targets.
6628 * linux-x86-tdesc.c (i386_linux_read_description):
6629 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
6630 (init_registers_i386): Remove the declaration.
6631 (tdesc_i386): Remove the declaration.
6632 (lynx_i386_arch_setup): Call i386_create_target_description.
6633 * nto-x86-low.c: Likewise.
6634 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
6635 [!__x86_64__]: include arch/i386.h.
6636 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
6638 2017-09-05 Yao Qi <yao.qi@linaro.org>
6640 * configure.srv (srv_amd64_linux_xmlfiles): Remove
6641 i386/amd64-XXX-linux from it.
6643 2017-09-05 Yao Qi <yao.qi@linaro.org>
6645 * configure.srv: Empty srv_amd64_linux_regobj if $development is
6647 (ipa_amd64_linux_regobj): Remove.
6648 (ipa_x32_linux_regobj): Remove.
6650 2017-09-05 Yao Qi <yao.qi@linaro.org>
6652 * Makefile.in (arch-amd64.o): New rule.
6653 * configure.srv: Append arch-amd64.o.
6654 * linux-amd64-ipa.c: Include common/x86-xstate.h.
6655 (get_ipa_tdesc): Call amd64_linux_read_description.
6656 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
6657 and init_registers_amd64_XXX.
6658 * linux-x86-low.c (x86_linux_read_description): Call
6659 amd64_linux_read_description.
6660 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
6661 (initialize_low_arch): Don't call init_registers_x32_XXX and
6662 init_registers_amd64_XXX.
6663 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
6664 and tdesc_amd64_XXX.
6665 [__x86_64__] (amd64_tdesc_test): New function.
6666 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
6667 and init_registers_amd64_XXX.
6668 * linux-x86-tdesc.c: Include arch/amd64.h.
6669 (xcr0_to_tdesc_idx): New function.
6670 (i386_linux_read_description): New function.
6671 (amd64_get_ipa_tdesc_idx): New function.
6672 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
6673 (amd64_get_ipa_tdesc): Declare.
6675 2017-09-05 Yao Qi <yao.qi@linaro.org>
6677 * configure.srv (srv_i386_linux_xmlfiles): Remove
6678 i386/i386-XXX-linux.xml from it.
6680 2017-09-05 Yao Qi <yao.qi@linaro.org>
6682 * configure.srv: Set srv_i386_linux_regobj empty if $development
6684 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
6685 initialize_low_tdesc.
6686 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
6687 with #if initialize_low_tdesc.
6688 * linux-x86-tdesc-selftest.c: New file.
6689 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
6691 2017-09-05 Yao Qi <yao.qi@linaro.org>
6693 * Makefile.in (arch-i386.o): New rule.
6694 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
6695 (x86_64-*-linux*): Likewise.
6696 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
6697 include arch/i386.h.
6698 (i386_linux_read_description): Remove code and call
6699 i386_create_target_description.
6700 * tdesc.c (allocate_target_description): New function.
6701 * tdesc.h (set_tdesc_architecture): Remove declaration.
6702 (set_tdesc_osabi): Likewise.
6704 2017-09-05 Yao Qi <yao.qi@linaro.org>
6706 * linux-x86-tdesc.c: Don't include <inttypes.h>.
6707 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
6708 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
6710 * server.c (get_features_xml): Call tdesc_get_features_xml.
6711 * tdesc.c (set_tdesc_architecture): New function.
6712 (set_tdesc_osabi): New function.
6713 (tdesc_get_features_xml): New function.
6714 (tdesc_create_feature): Add an argument.
6715 * tdesc.h (struct target_desc) <features>: New field.
6716 <arch, osabi>: New field.
6717 (~target_desc): xfree features, arch, and osabi.
6718 (target_desc::oerator==): Don't compare .xmltarget.
6719 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
6720 (set_tdesc_osabi): Likewise.
6721 (tdesc_get_features_xml): Likewise.
6723 2017-09-05 Yao Qi <yao.qi@linaro.org>
6725 * linux-x86-tdesc.c: Include selftest.h.
6726 (i386_tdesc_test): New function.
6727 (initialize_low_tdesc): Call selftests::register_test.
6728 * tdesc.h: Include regdef.h.
6729 (target_desc): Override operator == and !=.
6731 2017-09-05 Yao Qi <yao.qi@linaro.org>
6733 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
6734 (ipa_obj): Likewise.
6735 * linux-i386-ipa.c: Include common/x86-xstate.h
6736 (get_ipa_tdesc): Call i386_linux_read_description.
6737 (initialize_low_tracepoint): Don't call init_registers_XXX
6738 functions, call initialize_low_tdesc instead.
6739 * linux-x86-low.c (x86_linux_read_description): Call
6740 i386_linux_read_description.
6741 (initialize_low_arch): Don't call init_registers_i386_XXX
6742 functions, call initialize_low_tdesc.
6743 * linux-x86-tdesc.c: New file.
6744 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
6745 (i386_get_ipa_tdesc_idx): Declare.
6746 (i386_get_ipa_tdesc): Declare.
6747 (initialize_low_tdesc): Declare.
6749 2017-09-05 Yao Qi <yao.qi@linaro.org>
6751 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
6754 2017-09-05 Yao Qi <yao.qi@linaro.org>
6756 * Makefile.in (IPA_OBJS): Add vec-ipa.o
6757 * regcache.c (get_thread_regcache): Use VEC_length.
6758 (init_register_cache): Likewise.
6759 (regcache_cpy): Likewise.
6760 (registers_to_string): Iterate reg_defs via VEC_iterate.
6761 (find_regno): Likewise.
6762 (find_register_by_number): Use VEC_index.
6763 (register_size): Call find_register_by_number.
6764 (register_data): Call find_register_by_number.
6765 (supply_regblock): Use VEC_length.
6766 (regcache_raw_read_unsigned): Likewise.
6767 * tdesc.c (init_target_desc): Iterate reg_defs via
6769 (default_description): Update initializer.
6770 (copy_target_description): Don't update field num_registers.
6771 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
6772 <num_registers>: Remove.
6774 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
6776 * Makefile.in (.SECONDARY): Define target.
6778 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
6780 * linux-low.c (linux_wait_1): Adjust.
6781 * server.c (queue_stop_reply_callback): Adjust.
6783 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
6785 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
6786 QEnvironmentUnset and QEnvironmentReset packets.
6787 (handle_query): Inform remote that QEnvironmentHexEncoded,
6788 QEnvironmentUnset and QEnvironmentReset are supported.
6790 2017-08-25 Simon Marchi <simon.marchi@ericsson.com>
6792 * inferiors.h (inferior_target_data): Rename to ...
6793 (thread_target_data): ... this.
6794 (inferior_regcache_data): Rename to ...
6795 (thread_regcache_data): ... this.
6796 (set_inferior_regcache_data): Rename to ...
6797 (set_thread_regcache_data): ... this.
6798 * inferiors.c (inferior_target_data): Rename to ...
6799 (thread_target_data): ... this.
6800 (inferior_regcache_data): Rename to ...
6801 (thread_regcache_data): ... this.
6802 (set_inferior_regcache_data): Rename to ...
6803 (set_thread_regcache_data): ... this.
6804 (free_one_thread): Update.
6805 * linux-low.h (get_thread_lwp): Update.
6806 * regcache.c (get_thread_regcache): Update.
6807 (regcache_invalidate_thread): Update.
6808 (free_register_cache_thread): Update.
6809 * win32-i386-low.c (update_debug_registers_callback): Update.
6810 (win32_get_current_dr): Update.
6811 * win32-low.c (thread_rec): Update.
6812 (delete_thread_info): Update.
6813 (continue_one_thread): Update.
6814 (suspend_one_thread): Update.
6816 2017-08-24 Simon Marchi <simon.marchi@ericsson.com>
6818 * inferiors.c (set_inferior_target_data): Remove.
6819 * inferiors.h (set_inferior_target_data): Remove.
6821 2017-08-18 Yao Qi <yao.qi@linaro.org>
6823 * Makefile.in (OBS): Add selftest.o.
6824 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
6825 * configure, config.in: Re-generated.
6826 * server.c: Include common/sefltest.h.
6827 (captured_main): Handle option --selftest.
6829 2017-08-09 Yao Qi <yao.qi@linaro.org>
6831 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
6832 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
6833 i386-avx-mpx.o and i386-mmx.o.
6834 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
6835 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
6836 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
6837 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
6838 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
6839 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
6840 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
6841 i386/amd64-avx-mpx.xml.
6843 2017-08-09 Yao Qi <yao.qi@linaro.org>
6845 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
6846 and x32-avx-avx512.o.
6847 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
6848 i386/x32-avx-avx512.xml.
6850 2017-07-26 Simon Marchi <simon.marchi@ericsson.com>
6852 * tracepoint.h (enum class fast_tpoint_collect_result): New
6854 (fast_tracepoint_collecting): Change return type to
6855 fast_tpoint_collect_result.
6856 * tracepoint.c (fast_tracepoint_collecting): Likewise.
6857 * linux-low.h: Include tracepoint.h.
6858 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
6859 fast_tpoint_collect_result.
6860 * linux-low.c (handle_tracepoints): Adjust.
6861 (linux_fast_tracepoint_collecting): Change return type to
6862 fast_tpoint_collect_result.
6863 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
6864 linux_wait_1, stuck_in_jump_pad_callback,
6865 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
6866 proceed_one_lwp): Adjust to type change.
6868 2017-07-10 Yao Qi <yao.qi@linaro.org>
6870 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
6872 2017-06-29 Yao Qi <yao.qi@linaro.org>
6874 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
6876 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
6878 2017-06-20 Simon Marchi <simon.marchi@ericsson.com>
6880 * Makefile.in (IPA_OBJS): Sort and format one item per line.
6882 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
6884 * linux-low.c (linux_create_inferior): Adjust code to access the
6885 environment information via 'gdb_environ' class.
6886 * lynx-low.c (lynx_create_inferior): Likewise.
6887 * server.c (our_environ): Make it an instance of 'gdb_environ'.
6888 (get_environ): Return a pointer to 'our_environ'.
6889 (captured_main): Initialize 'our_environ'.
6890 * server.h (get_environ): Adjust prototype.
6891 * spu-low.c (spu_create_inferior): Adjust code to access the
6892 environment information via 'gdb_environ' class.
6894 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6896 * linux-low.c (linux_read_memory, linux_write_memory): Remove
6897 usage of "register" keyword.
6899 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6901 * configure: Re-generate.
6903 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6905 * configure: Re-generate.
6907 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6909 * Makefile.in (COMPILE.pre): Add "-x c++".
6911 2017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
6913 * fork-child.c: Conditionally include <signal.h>.
6915 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6917 * server.c (handle_general_set): Handle new packet
6918 "QStartupWithShell".
6919 (handle_query): Add "QStartupWithShell" to the list of supported
6921 (gdbserver_usage): Add help text explaining the
6922 new "--startup-with-shell" and "--no-startup-with-shell" CLI
6924 (captured_main): Recognize and act upon the presence of the new
6927 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6928 Pedro Alves <palves@redhat.com>
6930 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
6931 * configure: Regenerate.
6932 * configure.srv (srv_linux_obj): Add "fork-child.o" and
6934 (i[34567]86-*-lynxos*): Likewise.
6935 (spu*-*-*): Likewise.
6936 * fork-child.c: New file.
6937 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
6939 (linux_ptrace_fun): New function.
6940 (linux_create_inferior): Adjust function prototype to reflect
6941 change on "target.h". Adjust function code to use
6943 (linux_request_interrupt): Delete "signal_pid".
6944 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
6945 (lynx_ptrace_fun): New function.
6946 (lynx_create_inferior): Adjust function prototype to reflect
6947 change on "target.h". Adjust function code to use
6949 * nto-low.c (nto_create_inferior): Adjust function prototype and
6950 code to reflect change on "target.h". Update comments.
6951 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
6952 "common-terminal.h" and "environ.h".
6953 (terminal_fd): Moved to fork-child.c.
6954 (old_foreground_pgrp): Likewise.
6955 (restore_old_foreground_pgrp): Likewise.
6956 (last_status): Make it global.
6957 (last_ptid): Likewise.
6958 (our_environ): New variable.
6959 (startup_with_shell): Likewise.
6960 (program_name): Likewise.
6961 (program_argv): Rename to...
6962 (program_args): ...this.
6963 (wrapper_argv): New variable.
6964 (start_inferior): Delete function.
6965 (get_exec_wrapper): New function.
6966 (get_exec_file): Likewise.
6967 (get_environ): Likewise.
6968 (prefork_hook): Likewise.
6969 (post_fork_inferior): Likewise.
6970 (postfork_hook): Likewise.
6971 (postfork_child_hook): Likewise.
6972 (handle_v_run): Update code to deal with arguments coming from the
6973 remote host. Update calls from "start_inferior" to
6975 (captured_main): Likewise. Initialize environment variable. Call
6977 * server.h (post_fork_inferior): New prototype.
6978 (get_environ): Likewise.
6979 (last_status): Declare.
6980 (last_ptid): Likewise.
6981 (signal_pid): Likewise.
6982 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
6983 (spu_ptrace_fun): New function.
6984 (spu_create_inferior): Adjust function prototype to reflect change
6985 on "target.h". Adjust function code to use "fork_inferior".
6986 * target.c (target_terminal_init): New function.
6987 (target_terminal_inferior): Likewise.
6988 (target_terminal_ours): Likewise.
6989 * target.h: Include <vector>.
6990 (struct target_ops) <create_inferior>: Update prototype.
6991 (create_inferior): Update macro.
6992 * utils.c (gdb_flush_out_err): New function.
6993 * win32-low.c (win32_create_inferior): Adjust function prototype
6994 and code to reflect change on "target.h".
6996 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6998 * inferiors.c (switch_to_thread): New function.
7000 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7002 * Makefile.in (SFILE): Add "common/job-control.c".
7003 (OBS): Add "job-control.o".
7005 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7007 * Makefile: Remove "@host_makefile_frag@".
7009 2017-05-05 Pedro Alves <palves@redhat.com>
7011 * configure: Regenerate.
7013 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7015 * configure: Regenerate.
7017 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7019 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
7020 software_single_step change of return type to
7021 std::vector<CORE_ADDR>.
7022 * linux-low.c (install_software_single_step_breakpoints):
7024 * linux-low.h (install_software_single_step_breakpoints):
7027 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7029 * remote-utils.c: Include "gdb_termios.h" instead of
7031 * terminal.h: Delete file.
7033 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7035 * server.c: Include <vector>.
7036 <program_argv, wrapper_argv>: Convert to std::vector.
7037 (start_inferior): Rewrite function to use C++.
7038 (handle_v_run): Likewise. Update code that calculates the argv
7039 based on the vRun packet; use C++.
7040 (captured_main): Likewise.
7042 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7044 * server.c (handle_v_cont): Initialize thread_resume::thread
7047 2017-04-05 Pedro Alves <palves@redhat.com>
7049 * configure: Regenerate.
7051 2017-04-05 Pedro Alves <palves@redhat.com>
7053 * gdbreplay.c (sync_error): Constify.
7054 * linux-x86-low.c (push_opcode): Constify.
7056 2017-04-05 Pedro Alves <palves@redhat.com>
7058 * win32-low.c (get_child_debug_event)
7059 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
7060 Report TARGET_WAITKIND_SPURIOUS instead.
7062 2017-04-05 Pedro Alves <palves@redhat.com>
7064 * remote-utils.c (remote_prepare, remote_open): Constify.
7065 * remote-utils.h (remote_prepare, remote_open): Constify.
7066 * server.c (captured_main): Constify 'port' handling.
7068 2017-04-04 Simon Marchi <simon.marchi@ericsson.com>
7070 * Makefile.in (clean): Clear .deps.
7072 2017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
7074 * .gitignore: Remove generated files, replace with wildcard.
7075 * (clean): Replace removal of generated files with wildcard.
7076 (version.c): Replace with...
7077 (version-generated.c): ...this.
7078 (xml-builtin.c): Replace with...
7079 (xml-builtin-generated.c): ...this.
7080 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
7081 (%.c: *regformats*): Replace with...
7082 (%-generated.c: *regformats*): ...this.
7084 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7086 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
7087 (xtensa_fill_gregset): Call collect_register_by_name for
7089 (xtensa_store_gregset): Call supply_register_by_name for
7092 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7094 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
7095 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
7096 (xtensa_store_gregset): Call supply_register for all registers in
7097 a0_regnum..a0_regnum + C0_NREGS range.
7099 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7101 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
7102 (ax-ipa.o: ax.c): Remove.
7103 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
7104 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
7105 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
7106 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
7107 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
7109 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7111 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
7112 (print-utils-ipa.o: ../common/print-utils.c): Remove.
7113 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
7114 (errors-ipa.o: ../common/errors.c): Remove.
7115 (format-ipa.o: ../common/format.c): Remove.
7116 (common-utils-ipa.o: ../common/common-utils.c): Remove.
7118 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7120 * Makefile.in (%-ipa.o: %.c): New rule.
7121 (tracepoint-ipa.o: tracepoint.c): Remove.
7122 (utils-ipa.o: utils.c): Remove.
7123 (remote-utils-ipa.o: remote-utils.c): Remove.
7124 (regcache-ipa.o: regcache.c): Remove.
7125 (i386-linux-ipa.o: i386-linux.c): Remove.
7126 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
7127 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
7128 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
7129 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
7130 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
7131 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
7132 (amd64-linux-ipa.o: amd64-linux.c): Remove.
7133 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
7134 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
7135 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
7136 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
7137 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
7138 (aarch64-ipa.o: aarch64.c): Remove.
7139 (s390-linux32-ipa.o: s390-linux32.c): Remove.
7140 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
7141 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
7142 (s390-linux64-ipa.o: s390-linux64.c): Remove.
7143 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
7144 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
7145 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
7146 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
7147 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
7148 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
7149 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
7150 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
7151 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
7152 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
7153 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
7154 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
7155 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
7156 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
7157 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
7158 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
7159 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
7160 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
7161 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
7162 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
7163 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
7164 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
7165 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
7166 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
7167 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
7168 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
7169 (tdesc-ipa.o: tdesc.c): Remove.
7170 (x32-linux-ipa.o: x32-linux.c): Remove.
7171 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
7172 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
7174 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7176 * Makefile.in (%.o: ../arch/%.c): New rule.
7177 (arm.o: ../arch/arm.c): Remove.
7178 (arm-linux.o: ../arch/arm-linux.c): Remove.
7179 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
7180 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
7182 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7184 * Makefile.in (%.o: ../nat/%.c): New rule.
7185 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
7186 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
7187 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
7188 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
7189 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
7190 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
7191 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
7192 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
7193 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
7194 (linux-personality.o: ../nat/linux-personality.c): Remove.
7195 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
7196 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
7197 (x86-linux.o: ../nat/x86-linux.c): Remove.
7198 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
7199 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
7201 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7203 * Makefile.in (%.o: ../common/%.c): New rule.
7204 (signals.o: ../common/signals.c): Remove.
7205 (print-utils.o: ../common/print-utils.c): Remove.
7206 (rsp-low.o: ../common/rsp-low.c): Remove.
7207 (common-utils.o: ../common/common-utils.c): Remove.
7208 (posix-strerror.o: ../common/posix-strerror.c): Remove.
7209 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
7210 (vec.o: ../common/vec.c): Remove.
7211 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
7212 (xml-utils.o: ../common/xml-utils.c): Remove.
7213 (ptid.o: ../common/ptid.c): Remove.
7214 (buffer.o: ../common/buffer.c): Remove.
7215 (format.o: ../common/format.c): Remove.
7216 (filestuff.o: ../common/filestuff.c): Remove.
7217 (agent.o: ../common/agent.c): Remove.
7218 (errors.o: ../common/errors.c): Remove.
7219 (environ.o: ../common/environ.c): Remove.
7220 (common-debug.o: ../common/common-debug.c): Remove.
7221 (cleanups.o: ../common/cleanups.c): Remove.
7222 (common-exceptions.o: ../common/common-exceptions.c): Remove.
7223 (fileio.o: ../common/fileio.c): Remove.
7224 (common-regcache.o: ../common/common-regcache.c): Remove.
7225 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
7226 (new-op.o: ../common/new-op.c): Remove.
7227 (btrace-common.o: ../common/btrace-common.c): Remove.
7229 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7231 * Makefile.in (%.o: ../target/%.c): New rule.
7232 (waitstatus.o: ../target/waitstatus.c): Remove.
7234 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7237 (%.c: ../regformats/%.dat,
7238 (%.c: ../regformats/arm/%.dat,
7239 (%.c: ../regformats/i386/%.dat,
7240 (%.c: ../regformats/rs6000/%.dat): New rules.
7241 (aarch64.c): Remove.
7242 (reg-arm.c): Remove.
7243 (arm-with-iwmmxt.c): Remove.
7244 (arm-with-vfpv2.c): Remove.
7245 (arm-with-vfpv3.c): Remove.
7246 (arm-with-neon.c): Remove.
7247 (reg-bfin.c): Remove.
7248 (reg-cris.c): Remove.
7249 (reg-crisv32.c): Remove.
7251 (i386-linux.c): Remove.
7252 (i386-avx.c): Remove.
7253 (i386-avx-linux.c): Remove.
7254 (i386-avx-avx512.c): Remove.
7255 (i386-avx-avx512-linux.c): Remove.
7256 (i386-mpx.c): Remove.
7257 (i386-mpx-linux.c): Remove.
7258 (i386-avx-mpx-avx512-pku.c): Remove.
7259 (i386-avx-mpx-avx512-pku-linux.c): Remove.
7260 (i386-avx-mpx.c): Remove.
7261 (i386-avx-mpx-linux.c): Remove.
7262 (i386-mmx.c): Remove.
7263 (i386-mmx-linux.c): Remove.
7264 (reg-ia64.c): Remove.
7265 (reg-m32r.c): Remove.
7266 (reg-m68k.c): Remove.
7268 (mips-linux.c): Remove.
7269 (mips-dsp-linux.c): Remove.
7270 (mips64-linux.c): Remove.
7271 (mips64-dsp-linux.c): Remove.
7272 (nios2-linux.c): Remove.
7273 (powerpc-32.c): Remove.
7274 (powerpc-32l.c): Remove.
7275 (powerpc-altivec32l.c): Remove.
7276 (powerpc-cell32l.c): Remove.
7277 (powerpc-vsx32l.c): Remove.
7278 (powerpc-isa205-32l.c): Remove.
7279 (powerpc-isa205-altivec32l.c): Remove.
7280 (powerpc-isa205-vsx32l.c): Remove.
7281 (powerpc-e500l.c): Remove.
7282 (powerpc-64l.c): Remove.
7283 (powerpc-altivec64l.c): Remove.
7284 (powerpc-cell64l.c): Remove.
7285 (powerpc-vsx64l.c): Remove.
7286 (powerpc-isa205-64l.c): Remove.
7287 (powerpc-isa205-altivec64l.c): Remove.
7288 (powerpc-isa205-vsx64l.c): Remove.
7289 (s390-linux32.c): Remove.
7290 (s390-linux32v1.c): Remove.
7291 (s390-linux32v2.c): Remove.
7292 (s390-linux64.c): Remove.
7293 (s390-linux64v1.c): Remove.
7294 (s390-linux64v2.c): Remove.
7295 (s390-te-linux64.c): Remove.
7296 (s390-vx-linux64.c): Remove.
7297 (s390-tevx-linux64.c): Remove.
7298 (s390x-linux64.c): Remove.
7299 (s390x-linux64v1.c): Remove.
7300 (s390x-linux64v2.c): Remove.
7301 (s390x-te-linux64.c): Remove.
7302 (s390x-vx-linux64.c): Remove.
7303 (s390x-tevx-linux64.c): Remove.
7304 (tic6x-c64xp-linux.c): Remove.
7305 (tic6x-c64x-linux.c): Remove.
7306 (tic6x-c62x-linux.c): Remove.
7308 (reg-sparc64.c): Remove.
7309 (reg-spu.c): Remove.
7311 (amd64-linux.c): Remove.
7312 (amd64-avx.c): Remove.
7313 (amd64-avx-linux.c): Remove.
7314 (amd64-avx-avx512.c): Remove.
7315 (amd64-avx-avx512-linux.c): Remove.
7316 (amd64-mpx.c): Remove.
7317 (amd64-mpx-linux.c): Remove.
7318 (amd64-avx-mpx-avx512-pku.c): Remove.
7319 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
7320 (amd64-avx-mpx.c): Remove.
7321 (amd64-avx-mpx-linux.c): Remove.
7323 (x32-linux.c): Remove.
7324 (x32-avx.c): Remove.
7325 (x32-avx-linux.c): Remove.
7326 (x32-avx-avx512.c): Remove.
7327 (x32-avx-avx512-linux.c): Remove.
7328 (reg-xtensa.c): Remove.
7329 (reg-tilegx.c): Remove.
7330 (reg-tilegx32.c): Remove.
7332 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
7334 * Makefile.in (SFILES): Add "common/environ.c".
7335 (OBJS): Add "common/environ.h".
7337 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7339 * configure.ac: Check if the fs_base and gs_base members of
7340 `struct user_regs_struct' exist.
7341 * config.in: Regenerated.
7342 * configure: Likewise.
7344 2017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
7346 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
7348 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
7349 (get_next_pcs_syscall_next_pc): Likewise.
7351 2016-12-23 Luis Machado <lgustavo@codesourcery.com>
7353 * win32-i386-low.c: Fix incorrect reference to a couple source files.
7354 * nto-x86-low.c: Likewise.
7356 2016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
7358 * Makefile.in: Include disable-implicit-rules.mk.
7360 2016-11-23 Pedro Alves <palves@redhat.com>
7362 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
7363 (debug_vprintf): Use std::chrono::steady_clock instead of
7364 gettimeofday. Use '.' instead of ':'.
7365 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
7366 (get_timestamp): Use std::chrono::steady_clock instead of
7369 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7371 * Makefile.in: Fix whitespace formatting.
7373 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7375 * Makefile.in (SFILES, OBS): Flatten list and order
7378 2016-11-23 Pedro Alves <palves@redhat.com>
7380 * event-loop.c (handle_file_event): Use warning.
7381 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
7382 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
7385 2016-11-23 Pedro Alves <palves@redhat.com>
7387 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
7389 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
7390 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
7391 debug_printf and debug_flush for debug output.
7392 * server.c (handle_general_set): Likewise.
7393 * thread-db.c (try_thread_db_load): Use debug_printf for debug
7396 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7398 * Makefile.in (.c.o): Replace rule with ...
7399 (%.o: %.c): ... this one.
7401 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7403 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
7404 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
7406 * configure.ac: Remove checks for the make program.
7407 * configure: Re-generate.
7409 2016-10-28 Pedro Alves <palves@redhat.com>
7411 * Makefile.in (CXX_DIALECT): Get from configure.
7412 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
7413 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
7414 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
7415 * config.in: Regenerate.
7416 * configure: Regenerate.
7418 2016-10-27 Yao Qi <yao.qi@linaro.org>
7420 * linux-low.c (linux_supports_range_stepping): Return true if
7421 can_software_single_step return true.
7423 2016-10-27 Yao Qi <yao.qi@linaro.org>
7425 * inferiors.c (find_inferior_in_random): New function.
7426 * inferiors.h (find_inferior_in_random): Declare.
7427 * linux-low.c (linux_wait_for_event_filtered): Call
7428 find_inferior_in_random instead of find_inferior.
7430 2016-10-27 Yao Qi <yao.qi@linaro.org>
7432 * linux-low.c (linux_wait_1): If single-step breakpoints are
7433 inserted, remove them.
7435 2016-10-26 Pedro Alves <palves@redhat.com>
7437 * linux-low.c (handle_extended_wait): Link parent/child fork
7439 (linux_wait_1): Unlink them.
7440 (linux_set_resume_request): Ignore resume requests for
7441 already-resumed and unhandled fork child threads.
7442 * linux-low.h (struct lwp_info) <fork_relative>: New field.
7443 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
7445 (handle_v_requests) <vCont>: Don't call require_running.
7446 * server.h (in_queued_stop_replies): New declaration.
7448 2016-10-24 Yao Qi <yao.qi@linaro.org>
7451 * linux-aarch64-low.c (append_insns): Cast the return value to
7454 2016-10-10 Yao Qi <yao.qi@linaro.org>
7456 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
7458 2016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
7460 * target.c (target_supports_multi_process): New function, moved
7462 * target.h (target_supports_multi_process): ... here. Remove
7465 2016-10-05 Tom Tromey <tom@tromey.com>
7468 * tracepoint.c (handle_tracepoint_bkpts): Check
7469 ipa_error_tracepoint, not ipa_stopping_tracepoint.
7471 2016-10-05 Yao Qi <yao.qi@linaro.org>
7473 * configure.srv: Update the path of arm-*.xml files.
7475 2016-10-05 Terry Guo <terry.guo@arm.com>
7476 Yao Qi <yao.qi@linaro.org>
7478 * Makefile.in: Adjust the path of rules.
7479 * configure.srv: Update the path of xml files.
7480 * regformats/arm-with-iwmmxt.dat: Regenerated.
7481 * regformats/arm-with-neon.dat: Likewise.
7482 * regformats/arm-with-vfpv2.dat: Likewise.
7483 * regformats/arm-with-vfpv3.dat Likewise.
7485 2016-09-30 Yao Qi <yao.qi@linaro.org>
7488 * target.c (target_stop_and_wait): Don't call
7489 target_continue_no_signal, use resume_stop instead.
7491 2016-09-26 Yao Qi <yao.qi@linaro.org>
7493 * linux-low.c (linux_wait_1): Call debug_exit.
7495 2016-09-23 Pedro Alves <palves@redhat.com>
7497 * Makefile.in (SFILES): Add common/new-op.c.
7498 (OBS): Add common/new-op.o.
7499 (new-op.o): New rule.
7501 2016-09-21 Simon Marchi <simon.marchi@ericsson.com>
7503 * .gitinore: Ignore more files.
7505 2016-09-21 Yao Qi <yao.qi@linaro.org>
7507 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
7510 2016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
7512 * server.c (start_inferior): Call target_mourn_inferior instead of
7513 mourn_inferior; pass ptid_t argument to it.
7515 (handle_target_event): Likewise.
7516 * target.c (target_mourn_inferior): New function.
7517 * target.h (mourn_inferior): Delete macro.
7519 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
7521 * linux-low.c (lwp_is_stepping): New function.
7523 2016-09-06 Carl Love <cel@us.ibm.com>
7525 * server.c (start_inferior): Fixed comment, requested comment change
7526 didn't get updated correctly. Removed reference to ptrace () call as
7527 it is only true on Linux systems.
7529 2016-09-06 Carl Love <cel@us.ibm.com>
7531 * server.c (start_inferior): Do not call
7532 function target_post_create_inferior () if the
7533 inferior process has already exited.
7535 2016-09-05 Pedro Alves <palves@redhat.com>
7537 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
7538 (COMPILE.pre, CC_LD): Use CXX directly.
7539 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
7540 * acinclude.m4: Don't include build-with-cxx.m4.
7541 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
7542 * configure: Regenerate.
7544 2016-09-02 Akash Trehan <akash.trehan123@gmail.com>
7547 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
7548 call writing data to own_buf.
7550 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7552 * target.c (mywait): Call target_wait instead of
7554 (target_wait): New function.
7556 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7558 * server.c (start_inferior): New variable 'ptid'. Replace calls
7559 to the_target->resume by target_continue{,_no_signal}, depending
7561 * target.c (target_stop_and_wait): Call target_continue_no_signal
7562 instead of the_target->resume.
7563 (target_continue): New function.
7565 2016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
7567 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
7569 2016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7572 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
7574 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
7575 * linux-arm-low.c (ps_get_thread_area): Likewise.
7576 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
7577 * linux-m68k-low.c (ps_get_thread_area): Likewise.
7578 * linux-mips-low.c (ps_get_thread_area): Likewise.
7579 * linux-nios2-low.c (ps_get_thread_area): Likewise.
7580 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
7581 * linux-x86-low.c (ps_get_thread_area): Likewise.
7582 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
7584 2016-08-19 Pedro Alves <palves@redhat.com>
7586 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
7588 2016-08-19 Pedro Alves <palves@redhat.com>
7590 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
7591 comment. Use memcpy instead of casting through unsigned long.
7593 2016-08-19 Pedro Alves <palves@redhat.com>
7595 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
7596 allocating around 0x80000000.
7598 2016-08-19 Pedro Alves <palves@redhat.com>
7601 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
7602 (x32-avx512-linux-ipa.o): New rules.
7603 * configure.ac (x86_64-*-linux*): New x32 check.
7604 * configure.srv (ipa_x32_linux_regobj): New.
7605 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
7606 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
7608 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
7610 * configure: Regenerate.
7612 2016-08-09 Pedro Alves <palves@redhat.com>
7615 * Makefile.in (OBS): Add signals-state-save-restore.o.
7616 (signals-state-save-restore.o): New rule.
7617 * config.in: Regenerate.
7618 * configure: Regenerate.
7619 * linux-low.c: Include "signals-state-save-restore.h".
7620 (linux_create_inferior): Call
7621 restore_original_signals_state.
7622 * server.c: Include "dispositions-save-restore.h".
7623 (captured_main): Call save_original_signals_state.
7625 2016-08-05 Pedro Alves <palves@redhat.com>
7627 * configure: Regenerate.
7629 2016-08-04 Yao Qi <yao.qi@linaro.org>
7631 * linux-low.c (regsets_fetch_inferior_registers): Check
7632 errno is ESRCH or not.
7634 2016-08-02 Yao Qi <yao.qi@linaro.org>
7636 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
7637 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
7638 (thread_db_load_search): Update.
7639 (try_thread_db_load_1): Don't look for td_ta_event_addr,
7640 td_ta_set_event and td_ta_event_getmsg.
7642 2016-07-26 Pedro Alves <palves@redhat.com>
7645 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
7646 of unsigned long for 64-bit registers and use uint32_t instead of
7647 unsigned int for 32-bit registers.
7649 2016-07-26 Pedro Alves <palves@redhat.com>
7651 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
7654 2016-07-21 Tom Tromey <tom@tromey.com>
7656 * configure: Rebuild.
7658 2016-07-21 Yao Qi <yao.qi@linaro.org>
7660 * mem-break.c (find_gdb_breakpoint): Cast bp to
7661 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
7663 2016-07-21 Yao Qi <yao.qi@linaro.org>
7665 * server.c (handle_v_requests): Support s and S actions
7666 if target_supports_software_single_step return true.
7668 2016-07-21 Yao Qi <yao.qi@linaro.org>
7670 * linux-low.c (resume_stopped_resumed_lwps): If resume request
7671 is resume_step, call maybe_hw_step.
7672 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
7674 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
7676 (proceed_one_lwp): If resume request is resume_step, install
7677 reinsert breakpoints and call maybe_hw_step.
7679 2016-07-21 Yao Qi <yao.qi@linaro.org>
7681 * linux-low.c (proceed_one_lwp): Declare.
7682 (linux_resume_one_thread): Remove local variable 'step'.
7683 Lift code enqueue signal. Call proceed_one_lwp instead of
7684 linux_resume_one_lwp.
7686 2016-07-21 Yao Qi <yao.qi@linaro.org>
7688 * linux-low.c (linux_resume_one_thread): Call
7689 enqueue_pending_signal.
7691 2016-07-21 Yao Qi <yao.qi@linaro.org>
7693 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
7694 * inferiors.c (do_restore_current_thread_cleanup): New function.
7695 (make_cleanup_restore_current_thread): Likewise.
7696 * linux-low.c (install_software_single_step_breakpoints): Call
7697 make_cleanup_restore_current_thread. Switch current_thread to
7700 2016-07-21 Yao Qi <yao.qi@linaro.org>
7702 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
7703 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
7704 (clone_one_breakpoint): Likewise.
7705 (delete_reinsert_breakpoints): Change parameter to thread.
7707 (has_reinsert_breakpoints): Likewise.
7708 (uninsert_reinsert_breakpoints): Likewise.
7709 (reinsert_reinsert_breakpoints): Likewise.
7710 * mem-break.h (set_reinsert_breakpoint): Update declaration.
7711 (delete_reinsert_breakpoints): Likewise.
7712 (reinsert_reinsert_breakpoints): Likewise.
7713 (uninsert_reinsert_breakpoints): Likewise.
7714 (has_reinsert_breakpoints): Likewise.
7716 2016-07-21 Yao Qi <yao.qi@linaro.org>
7718 * inferiors.c (get_thread_process): Make parameter const.
7719 * inferiors.h (get_thread_process): Update declaration.
7720 * mem-break.c (clone_all_breakpoints): Remove all parameters.
7721 Add new parameters child_thread and parent_thread. Callers
7723 * mem-break.h (clone_all_breakpoints): Update declaration.
7725 2016-07-21 Yao Qi <yao.qi@linaro.org>
7727 * mem-break.c (struct breakpoint) <cond_list>: Remove.
7728 <command_list, handler>: Remove.
7729 (struct gdb_breakpoint): New.
7730 (struct other_breakpoint): New.
7731 (struct reinsert_breakpoint): New.
7732 (is_gdb_breakpoint): New function.
7733 (any_persistent_commands): Update command_list if
7734 is_gdb_breakpoint returns true.
7735 (set_breakpoint): Create breakpoints according to their types.
7736 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
7737 (set_gdb_breakpoint_1): Likewise.
7738 (set_gdb_breakpoint): Likewise.
7739 (clear_breakpoint_conditions): Change parameter type to
7740 'struct gdb_breakpoint *'.
7741 (clear_breakpoint_commands): Likewise.
7742 (clear_breakpoint_conditions_and_commands): Likewise.
7743 (add_condition_to_breakpoint): Likewise.
7744 (add_breakpoint_condition): Likewise.
7745 (add_commands_to_breakpoint): Likewise.
7746 (check_breakpoints): Check other_breakpoint.
7747 (clone_one_breakpoint): Clone breakpopint according to its type.
7748 * mem-break.h (struct gdb_breakpoint): Declare.
7749 (set_gdb_breakpoint): Update declaration.
7750 (clear_breakpoint_conditions_and_commands): Likewise.
7751 (add_breakpoint_condition): Likewise.
7752 (add_breakpoint_commands): Likewise.
7753 * server.c (process_point_options): Change parameter type to
7754 'struct gdb_breakpoint *'.
7756 2016-07-21 Yao Qi <yao.qi@linaro.org>
7758 * mem-break.c (set_breakpoint_at): Rename it to ...
7759 (set_breakpoint_type_at): ... it.
7760 (set_breakpoint_at): Call set_breakpoint_type_at.
7761 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
7762 * mem-break.h (set_breakpoint_at): Update comments.
7764 2016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
7766 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
7768 (nios2_store_gregset): Likewise.
7770 2016-07-01 Pedro Alves <palves@redhat.com>
7771 Antoine Tremblay <antoine.tremblay@ericsson.com>
7773 * linux-low.c: Change interface to take the target lwp_info
7774 pointer directly and return void. Handle detaching from a zombie
7776 (linux_detach_lwp_callback): New function.
7777 (linux_detach): Detach from the leader thread after detaching from
7780 2016-06-28 Yao Qi <yao.qi@linaro.org>
7782 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
7783 for variable new_offset.
7784 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
7785 (aarch64_ftrace_insn_reloc_cb): Likewise.
7786 (aarch64_ftrace_insn_reloc_tb): Likewise.
7787 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
7788 PRIx64 instead of PRIx32.
7790 2016-06-28 Yao Qi <yao.qi@linaro.org>
7792 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
7793 (the_low_target): Install arm_get_syscall_trapinfo.
7795 2016-06-28 Yao Qi <yao.qi@linaro.org>
7797 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
7799 (the_low_target): Install aarch64_get_syscall_trapinfo.
7801 2016-06-28 Yao Qi <yao.qi@linaro.org>
7803 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
7805 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
7806 Remove parameter sysno.
7807 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
7810 2016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7812 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
7813 (s390_emit_ne_goto): Likewise.
7814 (s390_emit_lt_goto): Likewise.
7815 (s390_emit_le_goto): Likewise.
7816 (s390_emit_gt_goto): Likewise.
7817 (s390_emit_ge_goto): Likewise.
7818 (s390x_emit_eq_goto): Likewise.
7819 (s390x_emit_ne_goto): Likewise.
7820 (s390x_emit_lt_goto): Likewise.
7821 (s390x_emit_le_goto): Likewise.
7822 (s390x_emit_gt_goto): Likewise.
7823 (s390x_emit_ge_goto): Likewise.
7824 (s390_emit_ops_impl): Mark variable static.
7825 (s390x_emit_ops): Likewise.
7827 2016-06-17 Yao Qi <yao.qi@linaro.org>
7829 * linux-low.c (handle_extended_wait): Call
7830 uninsert_reinsert_breakpoints for the parent process. Remove
7831 reinsert breakpoints from the child process. Reinsert them to
7832 the parent process when vfork is done.
7833 * mem-break.c (uninsert_reinsert_breakpoints): New function.
7834 (reinsert_reinsert_breakpoints): New function.
7835 * mem-break.h (uninsert_reinsert_breakpoints): Declare
7836 (reinsert_reinsert_breakpoints): Declare.
7838 2016-06-17 Yao Qi <yao.qi@linaro.org>
7840 * linux-low.c (handle_extended_wait): If the parent is doing
7841 step-over, remove the reinsert breakpoints from the forked child.
7843 2016-06-17 Yao Qi <yao.qi@linaro.org>
7845 * linux-low.c (unsuspend_all_lwps): Declare.
7846 (linux_low_filter_event): If thread exited, call finish_step_over.
7847 If step-over is finished, unsuspend other threads.
7849 2016-06-17 Yao Qi <yao.qi@linaro.org>
7851 * linux-low.c (linux_resume_one_lwp_throw): Assert
7852 has_reinsert_breakpoints returns false.
7853 * mem-break.c (delete_disabled_breakpoints): Assert
7854 bp type isn't reinsert_breakpoint.
7856 2016-06-17 Yao Qi <yao.qi@linaro.org>
7858 * linux-low.c (maybe_hw_step): New function.
7859 (linux_resume_one_lwp_throw): Call maybe_hw_step.
7860 (finish_step_over): Switch current_thread to lwp temporarily,
7861 and assert has_reinsert_breakpoints returns true.
7862 (proceed_one_lwp): Call maybe_hw_step.
7863 * mem-break.c (has_reinsert_breakpoints): New function.
7864 * mem-break.h (has_reinsert_breakpoints): Declare.
7866 2016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
7868 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
7870 2016-05-17 Yao Qi <yao.qi@linaro.org>
7872 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
7873 instead of find_inferior.
7875 2016-05-05 Yao Qi <yao.qi@linaro.org>
7877 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
7878 Initialize res to zero.
7880 2016-05-05 Yao Qi <yao.qi@linaro.org>
7882 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
7885 2016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7887 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
7888 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
7889 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
7891 2016-04-28 Par Olsson <par.olsson@windriver.com>
7892 Simon Marchi <simon.marchi@ericsson.com>
7894 * tracepoint.c (write_inferior_int8): New function.
7895 (cmd_qtenable_disable): Write enable flag using
7896 write_inferior_int8.
7898 2016-04-25 Yao Qi <yao.qi@linaro.org>
7900 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
7901 (need_step_over_p): Return zero if the LWP has pending signals
7902 can be delivered on software single step target.
7904 2016-04-25 Yao Qi <yao.qi@linaro.org>
7906 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
7907 return instead of error.
7909 2016-04-22 Yao Qi <yao.qi@linaro.org>
7911 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
7914 2016-04-22 Yao Qi <yao.qi@linaro.org>
7916 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
7917 signal when stepping over breakpoint with software single
7920 2016-04-21 Pedro Alves <palves@redhat.com>
7922 * linux-s390-low.c (s390_collect_ptrace_register)
7923 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
7925 (s390_check_regset): Use void * instead of gdb_byte *.
7927 2016-04-20 Pedro Alves <palves@redhat.com>
7929 * configure: Renegerate.
7931 2016-04-20 Yao Qi <yao.qi@linaro.org>
7933 * linux-aarch32-low.c: Include "arch/arm-linux.h".
7934 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
7936 (arm_store_gregset): Likewise.
7938 2016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
7940 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
7941 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
7942 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
7943 (amd64-avx-mpx-linux.c): New rules.
7944 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
7945 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
7946 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
7947 (srv_amd64_regobj): Add amd64-avx-mpx.o.
7948 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
7949 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
7950 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
7951 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
7952 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
7953 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
7954 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
7955 * linux-x86-low.c (x86_linux_read_description): Add case for
7956 X86_XSTATE_AVX_MPX_MASK.
7957 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
7958 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
7959 init_registers_i386_avx_mpx_linux.
7960 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
7961 (initialize_low_tracepoint): Call
7962 init_registers_i386_avx_mpx_linux.
7963 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
7964 (initialize_low_tracepoint): Call
7965 init_registers_amd64_avx_mpx_linux.
7966 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
7967 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
7968 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
7971 2016-04-18 Pedro Alves <palves@redhat.com>
7973 * configure: Regenerate.
7975 2016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
7977 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
7978 (aarch64_emit_sub): Likewise.
7980 2016-04-12 Pedro Alves <palves@redhat.com>
7982 * utils.c (prepare_to_throw_exception): Delete.
7984 2016-04-05 Simon Marchi <simon.marchi@ericsson.com>
7986 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
7988 2016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
7990 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
7992 2016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
7994 * linux-aarch64-ipa.c: Add <elf.h> include.
7995 * linux-ppc-ipa.c: Add <elf.h> include.
7996 * linux-s390-ipa.c: Add <elf.h> include.
7998 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8000 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
8001 (get_raw_reg_ptr): Likewise.
8002 (get_trace_state_variable_value_ptr): Likewise.
8003 (set_trace_state_variable_value_ptr): Likewise.
8004 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
8007 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
8008 Marcin Kościelnicki <koriakin@0x04.net>
8011 * linux-ppc-low.c (emit_insns): New function.
8012 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
8013 (ppc_emit_prologue): New function.
8014 (ppc_emit_epilogue): New function.
8015 (ppc_emit_add): New function.
8016 (ppc_emit_sub): New function.
8017 (ppc_emit_mul): New function.
8018 (ppc_emit_lsh): New function.
8019 (ppc_emit_rsh_signed): New function.
8020 (ppc_emit_rsh_unsigned): New function.
8021 (ppc_emit_ext): New function.
8022 (ppc_emit_zero_ext): New function.
8023 (ppc_emit_log_not): New function.
8024 (ppc_emit_bit_and): New function.
8025 (ppc_emit_bit_or): New function.
8026 (ppc_emit_bit_xor): New function.
8027 (ppc_emit_bit_not): New function.
8028 (ppc_emit_equal): New function.
8029 (ppc_emit_less_signed): New function.
8030 (ppc_emit_less_unsigned): New function.
8031 (ppc_emit_ref): New function.
8032 (ppc_emit_const): New function.
8033 (ppc_emit_reg): New function.
8034 (ppc_emit_pop): New function.
8035 (ppc_emit_stack_flush): New function.
8036 (ppc_emit_swap): New function.
8037 (ppc_emit_stack_adjust): New function.
8038 (ppc_emit_call): New function.
8039 (ppc_emit_int_call_1): New function.
8040 (ppc_emit_void_call_2): New function.
8041 (ppc_emit_if_goto): New function.
8042 (ppc_emit_goto): New function.
8043 (ppc_emit_eq_goto): New function.
8044 (ppc_emit_ne_goto): New function.
8045 (ppc_emit_lt_goto): New function.
8046 (ppc_emit_le_goto): New function.
8047 (ppc_emit_gt_goto): New function.
8048 (ppc_emit_ge_goto): New function.
8049 (ppc_write_goto_address): New function.
8050 (ppc_emit_ops_impl): New static variable.
8051 (ppc64v1_emit_prologue): New function.
8052 (ppc64v2_emit_prologue): New function.
8053 (ppc64_emit_epilogue): New function.
8054 (ppc64_emit_add): New function.
8055 (ppc64_emit_sub): New function.
8056 (ppc64_emit_mul): New function.
8057 (ppc64_emit_lsh): New function.
8058 (ppc64_emit_rsh_signed): New function.
8059 (ppc64_emit_rsh_unsigned): New function.
8060 (ppc64_emit_ext): New function.
8061 (ppc64_emit_zero_ext): New function.
8062 (ppc64_emit_log_not): New function.
8063 (ppc64_emit_bit_and): New function.
8064 (ppc64_emit_bit_or): New function.
8065 (ppc64_emit_bit_xor): New function.
8066 (ppc64_emit_bit_not): New function.
8067 (ppc64_emit_equal): New function.
8068 (ppc64_emit_less_signed): New function.
8069 (ppc64_emit_less_unsigned): New function.
8070 (ppc64_emit_ref): New function.
8071 (ppc64_emit_const): New function.
8072 (ppc64v1_emit_reg): New function.
8073 (ppc64v2_emit_reg): New function.
8074 (ppc64_emit_pop): New function.
8075 (ppc64_emit_stack_flush): New function.
8076 (ppc64_emit_swap): New function.
8077 (ppc64v1_emit_call): New function.
8078 (ppc64v2_emit_call): New function.
8079 (ppc64v1_emit_int_call_1): New function.
8080 (ppc64v2_emit_int_call_1): New function.
8081 (ppc64v1_emit_void_call_2): New function.
8082 (ppc64v2_emit_void_call_2): New function.
8083 (ppc64_emit_if_goto): New function.
8084 (ppc64_emit_eq_goto): New function.
8085 (ppc64_emit_ne_goto): New function.
8086 (ppc64_emit_lt_goto): New function.
8087 (ppc64_emit_le_goto): New function.
8088 (ppc64_emit_gt_goto): New function.
8089 (ppc64_emit_ge_goto): New function.
8090 (ppc64v1_emit_ops_impl): New static variable.
8091 (ppc64v2_emit_ops_impl): New static variable.
8092 (ppc_emit_ops): New function.
8093 (linux_low_target): Wire in ppc_emit_ops.
8095 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
8096 Marcin Kościelnicki <koriakin@0x04.net>
8099 * Makefile.in: Add powerpc-*-ipa.o
8100 * configure.srv: Add ipa_obj for powerpc*-linux.
8101 * linux-ppc-ipa.c: New file.
8102 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
8104 (PPC_FIELD): New macro.
8105 (PPC_SEXT): New macro.
8106 (PPC_OP6): New macro.
8107 (PPC_BO): New macro.
8108 (PPC_LI): New macro.
8109 (PPC_BD): New macro.
8110 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
8111 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
8112 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
8113 (ppc_get_thread_area): New function.
8114 (is_elfv2_inferior): New function.
8115 (gen_ds_form): New function.
8116 (GEN_STD): New macro.
8117 (GEN_STDU): New macro.
8118 (GEN_LD): New macro.
8119 (GEN_LDU): New macro.
8120 (gen_d_form): New function.
8121 (GEN_ADDI): New macro.
8122 (GEN_ADDIS): New macro.
8123 (GEN_LI): New macro.
8124 (GEN_LIS): New macro.
8125 (GEN_ORI): New macro.
8126 (GEN_ORIS): New macro.
8127 (GEN_LWZ): New macro.
8128 (GEN_STW): New macro.
8129 (GEN_STWU): New macro.
8130 (gen_xfx_form): New function.
8131 (GEN_MFSPR): New macro.
8132 (GEN_MTSPR): New macro.
8133 (GEN_MFCR): New macro.
8134 (GEN_MTCR): New macro.
8135 (GEN_SYNC): New macro.
8136 (GEN_LWSYNC): New macro.
8137 (gen_x_form): New function.
8138 (GEN_OR): New macro.
8139 (GEN_MR): New macro.
8140 (GEN_LWARX): New macro.
8141 (GEN_STWCX): New macro.
8142 (GEN_CMPW): New macro.
8143 (gen_md_form): New function.
8144 (GEN_RLDICL): New macro.
8145 (GEN_RLDICR): New macro.
8146 (gen_i_form): New function.
8148 (GEN_BL): New macro.
8149 (gen_b_form): New function.
8150 (GEN_BNE): New macro.
8151 (GEN_LOAD): New macro.
8152 (GEN_STORE): New macro.
8153 (gen_limm): New function.
8154 (gen_atomic_xchg): New function.
8155 (gen_call): New function.
8156 (ppc_relocate_instruction): New function.
8157 (ppc_install_fast_tracepoint_jump_pad): New function.
8158 (ppc_get_min_fast_tracepoint_insn_len): New function.
8159 (ppc_get_ipa_tdesc_idx): New function.
8160 (the_low_target): Wire in the new functions.
8161 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
8163 * linux-ppc-tdesc.h: New file.
8165 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8167 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8168 (alloc_jump_pad_buffer): New function.
8169 * linux-amd64-ipa.c: Add <sys/mman.h> include.
8170 (alloc_jump_pad_buffer): New function.
8171 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
8172 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8173 (alloc_jump_pad_buffer): New function.
8174 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
8175 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
8176 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
8177 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
8179 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8181 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
8182 * linux-amd64-ipa.c: Likewise.
8183 * linux-i386-ipa.c: Likewise.
8184 * linux-s390-ipa.c: Likewise.
8185 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
8186 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
8187 set_trace_state_variable_value_ptr.
8188 (struct ipa_sym_addresses): Likewise.
8189 (symbol_list): Likewise.
8190 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
8191 accessing gdb_collect directly.
8192 (gdb_collect_ptr_type): New typedef.
8193 (get_raw_reg_ptr_type): New typedef.
8194 (get_trace_state_variable_value_ptr_type): New typedef.
8195 (set_trace_state_variable_value_ptr_type): New typedef.
8196 (gdb_collect_ptr): New global.
8197 (get_raw_reg_ptr): New global.
8198 (get_trace_state_variable_value_ptr): New global.
8199 (set_trace_state_variable_value_ptr): New global.
8200 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
8201 accessing get_raw_reg directly.
8202 (get_get_tsv_func_addr): Likewise for
8203 get_trace_state_variable_value_ptr.
8204 (get_set_tsv_func_addr): Likewise for
8205 set_trace_state_variable_value_ptr.
8206 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
8208 2016-03-30 Simon Marchi <simon.marchi@ericsson.com>
8210 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
8212 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8214 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
8216 (relocate_instruction): Remove own_buf.
8217 * server.c (own_buf): Make global.
8218 (handle_v_requests): Make global.
8219 * server.h (own_buf): New declaration.
8220 (handle_v_requests): New prototype.
8222 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8225 * linux-s390-low.c (add_insns): New function.
8226 (s390_emit_prologue): New function.
8227 (s390_emit_epilogue): New function.
8228 (s390_emit_add): New function.
8229 (s390_emit_sub): New function.
8230 (s390_emit_mul): New function.
8231 (s390_emit_lsh): New function.
8232 (s390_emit_rsh_signed): New function.
8233 (s390_emit_rsh_unsigned): New function.
8234 (s390_emit_ext): New function.
8235 (s390_emit_log_not): New function.
8236 (s390_emit_bit_and): New function.
8237 (s390_emit_bit_or): New function.
8238 (s390_emit_bit_xor): New function.
8239 (s390_emit_bit_not): New function.
8240 (s390_emit_equal): New function.
8241 (s390_emit_less_signed): New function.
8242 (s390_emit_less_unsigned): New function.
8243 (s390_emit_ref): New function.
8244 (s390_emit_if_goto): New function.
8245 (s390_emit_goto): New function.
8246 (s390_write_goto_address): New function.
8247 (s390_emit_litpool): New function.
8248 (s390_emit_const): New function.
8249 (s390_emit_call): New function.
8250 (s390_emit_reg): New function.
8251 (s390_emit_pop): New function.
8252 (s390_emit_stack_flush): New function.
8253 (s390_emit_zero_ext): New function.
8254 (s390_emit_swap): New function.
8255 (s390_emit_stack_adjust): New function.
8256 (s390_emit_set_r2): New function.
8257 (s390_emit_int_call_1): New function.
8258 (s390_emit_void_call_2): New function.
8259 (s390_emit_eq_goto): New function.
8260 (s390_emit_ne_goto): New function.
8261 (s390_emit_lt_goto): New function.
8262 (s390_emit_le_goto): New function.
8263 (s390_emit_gt_goto): New function.
8264 (s390_emit_ge_goto): New function.
8265 (s390x_emit_prologue): New function.
8266 (s390x_emit_epilogue): New function.
8267 (s390x_emit_add): New function.
8268 (s390x_emit_sub): New function.
8269 (s390x_emit_mul): New function.
8270 (s390x_emit_lsh): New function.
8271 (s390x_emit_rsh_signed): New function.
8272 (s390x_emit_rsh_unsigned): New function.
8273 (s390x_emit_ext): New function.
8274 (s390x_emit_log_not): New function.
8275 (s390x_emit_bit_and): New function.
8276 (s390x_emit_bit_or): New function.
8277 (s390x_emit_bit_xor): New function.
8278 (s390x_emit_bit_not): New function.
8279 (s390x_emit_equal): New function.
8280 (s390x_emit_less_signed): New function.
8281 (s390x_emit_less_unsigned): New function.
8282 (s390x_emit_ref): New function.
8283 (s390x_emit_if_goto): New function.
8284 (s390x_emit_const): New function.
8285 (s390x_emit_call): New function.
8286 (s390x_emit_reg): New function.
8287 (s390x_emit_pop): New function.
8288 (s390x_emit_stack_flush): New function.
8289 (s390x_emit_zero_ext): New function.
8290 (s390x_emit_swap): New function.
8291 (s390x_emit_stack_adjust): New function.
8292 (s390x_emit_int_call_1): New function.
8293 (s390x_emit_void_call_2): New function.
8294 (s390x_emit_eq_goto): New function.
8295 (s390x_emit_ne_goto): New function.
8296 (s390x_emit_lt_goto): New function.
8297 (s390x_emit_le_goto): New function.
8298 (s390x_emit_gt_goto): New function.
8299 (s390x_emit_ge_goto): New function.
8300 (s390_emit_ops): New function.
8301 (struct linux_target_ops): Fill in emit_ops hook.
8303 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8306 * Makefile.in: Add s390 IPA files.
8307 * configure.srv: Build IPA for s390.
8308 * linux-s390-ipa.c: New file.
8309 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
8310 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
8311 (tdesc_s390_linux32): Likewise.
8312 (init_registers_s390_linux32v1): Likewise.
8313 (tdesc_s390_linux32v1): Likewise.
8314 (init_registers_s390_linux32v2): Likewise.
8315 (tdesc_s390_linux32v2): Likewise.
8316 (init_registers_s390_linux64): Likewise.
8317 (tdesc_s390_linux64): Likewise.
8318 (init_registers_s390_linux64v1): Likewise.
8319 (tdesc_s390_linux64v1): Likewise.
8320 (init_registers_s390_linux64v2): Likewise.
8321 (tdesc_s390_linux64v2): Likewise.
8322 (init_registers_s390_te_linux64): Likewise.
8323 (tdesc_s390_te_linux64): Likewise.
8324 (init_registers_s390_vx_linux64): Likewise.
8325 (tdesc_s390_vx_linux64): Likewise.
8326 (init_registers_s390_tevx_linux64): Likewise.
8327 (tdesc_s390_tevx_linux64): Likewise.
8328 (init_registers_s390x_linux64): Likewise.
8329 (tdesc_s390x_linux64): Likewise.
8330 (init_registers_s390x_linux64v1): Likewise.
8331 (tdesc_s390x_linux64v1): Likewise.
8332 (init_registers_s390x_linux64v2): Likewise.
8333 (tdesc_s390x_linux64v2): Likewise.
8334 (init_registers_s390x_te_linux64): Likewise.
8335 (tdesc_s390x_te_linux64): Likewise.
8336 (init_registers_s390x_vx_linux64): Likewise.
8337 (tdesc_s390x_vx_linux64): Likewise.
8338 (init_registers_s390x_tevx_linux64): Likewise.
8339 (tdesc_s390x_tevx_linux64): Likewise.
8340 (have_hwcap_s390_vx): New static variable.
8341 (s390_arch_setup): Fill have_hwcap_s390_vx.
8342 (s390_get_thread_area): New function.
8343 (s390_ft_entry_gpr_esa): New const.
8344 (s390_ft_entry_gpr_zarch): New const.
8345 (s390_ft_entry_misc): New const.
8346 (s390_ft_entry_fr): New const.
8347 (s390_ft_entry_vr): New const.
8348 (s390_ft_main_31): New const.
8349 (s390_ft_main_64): New const.
8350 (s390_ft_exit_fr): New const.
8351 (s390_ft_exit_vr): New const.
8352 (s390_ft_exit_misc): New const.
8353 (s390_ft_exit_gpr_esa): New const.
8354 (s390_ft_exit_gpr_zarch): New const.
8355 (append_insns): New function.
8356 (s390_relocate_instruction): New function.
8357 (s390_install_fast_tracepoint_jump_pad): New function.
8358 (s390_get_min_fast_tracepoint_insn_len): New function.
8359 (s390_get_ipa_tdesc_idx): New function.
8360 (struct linux_target_ops): Wire in the above functions.
8361 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
8362 * linux-s390-tdesc.h: New file.
8364 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8366 * linux-s390-low.c (s390_supports_tracepoints): New function.
8367 (struct linux_target_ops): Fill supports_tracepoints hook.
8369 2016-03-18 Yao Qi <yao.qi@linaro.org>
8371 * linux-low.c (lwp_signal_can_be_delivered): New function.
8372 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
8374 2016-03-18 Yao Qi <yao.qi@linaro.org>
8376 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
8377 0 if signal is enqueued. Remove 'signal' from one debugging
8378 message. Move one debugging message to some lines below.
8379 Remove code setting 'signal' to 0.
8381 2016-03-18 Yao Qi <yao.qi@linaro.org>
8383 * linux-low.c (linux_low_filter_event): Remove redundant
8384 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
8386 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
8388 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
8389 (struct linux_target_ops): Wire in the above.
8391 2016-03-03 Yao Qi <yao.qi@linaro.org>
8393 * linux-low.c: Update comments to start_step_over.
8395 2016-03-03 Yao Qi <yao.qi@linaro.org>
8398 * linux-low.c (handle_extended_wait): Set child suspended
8399 if event_lwp->bp_reinsert isn't zero.
8401 2016-03-02 Yao Qi <yao.qi@linaro.org>
8403 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
8404 enqueue_pending_signal.
8406 2016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
8408 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
8411 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8413 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
8414 (s390_regmap_3264) [!__s390x__]: New global.
8415 (s390_collect_ptrace_register): Skip map entries containing -1.
8416 (s390_supply_ptrace_register): Ditto.
8417 (s390_fill_gprs_high): New function.
8418 (s390_store_gprs_high): New function.
8419 (s390_regsets): Add NT_S390_HIGH_GPRS.
8420 (s390_get_hwcap): Enable on 31-bit.
8421 (have_hwcap_s390_high_gprs): Enable on 31-bit.
8422 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
8423 Detect NT_S390_HIGH_GPRS.
8424 (s390_usrregs_info_3264): Enable on 31-bit.
8425 (s390_regs_info): Enable regs_info_3264 on 31-bit.
8426 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
8428 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8431 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
8432 * configure.srv: Ditto.
8433 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
8434 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
8435 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
8436 (init_registers_amd64_linux): Remove prototype.
8437 (tdesc_amd64_linux): Remove declaration.
8438 (get_ipa_tdesc): New function.
8439 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8440 initialize remaining tdescs.
8441 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
8442 (init_registers_i386_linux): Remove prototype.
8443 (tdesc_i386_linux): Remove declaration.
8444 (get_ipa_tdesc): New function.
8445 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8446 initialize remaining tdescs.
8447 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
8448 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
8449 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
8450 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
8451 (x86_get_ipa_tdesc_idx): New function.
8452 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
8453 * linux-x86-tdesc.h: New file.
8454 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
8455 (target_get_ipa_tdesc_idx): New macro.
8456 * tracepoint.c (ipa_tdesc_idx): New macro.
8457 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
8458 (symbol_list): Add ipa_tdesc_idx.
8459 (cmd_qtstart): Write ipa_tdesc_idx in the target.
8460 (ipa_tdesc): Remove.
8461 (ipa_tdesc_idx): New variable.
8462 (get_context_regcache): Use get_ipa_tdesc.
8463 (gdb_collect): Ditto.
8465 * tracepoint.h (get_ipa_tdesc): New prototype.
8466 (ipa_tdesc): Remove.
8468 2016-02-24 Pedro Alves <palves@redhat.com>
8470 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
8471 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
8472 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
8473 Factor out common code between the USE_SIGTRAP_SIGINFO and
8474 !USE_SIGTRAP_SIGINFO blocks.
8475 (linux_low_filter_event): Call save_stop_reason instead of
8476 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
8478 (linux_wait_1): Update comments.
8480 2016-02-24 Wei-cheng Wang <cole945@gmail.com>
8482 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
8483 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
8484 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
8485 ppc_insert_point, ppc_remove_point.
8487 2016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
8489 * linux-s390-low.c (s390_supports_z_point_type): New function.
8490 (struct linux_target_ops): Wire s390_supports_z_point_type in.
8492 2016-02-16 Yao Qi <yao.qi@linaro.org>
8494 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
8495 PC. Get pc from regcache_read_pc.
8497 2016-02-12 Yao Qi <yao.qi@linaro.org>
8499 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
8500 or linux_get_pc_32bit.
8501 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
8503 2016-02-12 Yao Qi <yao.qi@linaro.org>
8505 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
8506 arm_linux_get_next_pcs_fixup.
8508 2016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
8510 * tracepoint.c (x_tracepoint_action_download): Change
8511 write_inferior_data_ptr to write_inferior_data_pointer.
8512 (cmd_qtstart): Likewise.
8513 (write_inferior_data_ptr): Remove.
8514 (download_agent_expr): Change write_inferior_data_ptr to
8515 write_inferior_data_pointer.
8516 (download_tracepoint_1): Likewise.
8517 (download_tracepoint): Likewise.
8518 (download_trace_state_variables): Likewise.
8520 2016-02-11 Wei-cheng Wang <cole945@gmail.com>
8521 Marcin Kościelnicki <koriakin@0x04.net>
8523 * tracepoint.c (struct tracepoint_action_ops): Remove.
8524 (struct tracepoint_action): Remove ops.
8525 (m_tracepoint_action_download, r_tracepoint_action_download)
8526 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
8527 size and offset accordingly.
8528 (m_tracepoint_action_ops, r_tracepoint_action_ops)
8529 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
8530 (tracepoint_action_send, tracepoint_action_download): New functions.
8531 Helpers for trace action handlers.
8532 (add_tracepoint_action): Remove setup actions ops.
8533 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
8535 2016-02-10 Yao Qi <yao.qi@linaro.org>
8537 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
8539 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8541 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
8543 * configure: Regenerate.
8545 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8547 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
8548 void * to gdb_byte *.
8549 * linux-low.c (siginfo_fixup): Likewise.
8550 (linux_xfer_siginfo): Likewise.
8551 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
8553 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
8555 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
8557 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
8559 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
8561 * linux-x86-low.c [__x86_64__]: Include
8562 "nat/amd64-linux-siginfo.h".
8563 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
8564 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
8565 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
8566 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
8567 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
8568 (cpt_si_fd, si_timerid, si_overrun): Move from
8569 nat/amd64-linux-siginfo.c.
8570 * Makefile.in (amd64-linux-siginfo.o:): New rule.
8572 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
8574 * server.c (skip_to_semicolon): Remove.
8575 (process_point_options): Use strchrnul instead of
8578 2016-01-26 Yao Qi <yao.qi@linaro.org>
8580 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
8581 * linux-low.c (install_software_single_step_breakpoints): Don't
8582 call regcache_read_pc.
8583 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
8586 2016-01-26 Yao Qi <yao.qi@linaro.org>
8588 * linux-low.c (install_software_single_step_breakpoints): Call
8589 regcache_read_pc instead of get_pc.
8591 2016-01-26 Yao Qi <yao.qi@linaro.org>
8593 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
8594 (unblock_async_io): Rename to ...
8595 (block_unblock_async_io): ... it. New function.
8596 (enable_async_io): Don't install SIGIO handler. Unblock it
8598 (disable_async_io): Don't ignore SIGIO. Block it instead.
8599 (initialize_async_io): Install SIGIO handler. Don't call
8602 2016-01-26 Yao Qi <yao.qi@linaro.org>
8604 * remote-utils.c (getpkt): If the buffer isn't empty, and the
8605 first character is '\003', call *the_target->request_interrupt.
8607 2016-01-25 Yao Qi <yao.qi@linaro.org>
8609 * remote-utils.c (new_thread_notify): Remove.
8610 (dead_thread_notify): Likewise.
8611 * remote-utils.h (new_thread_notify): Remove declaration.
8612 (dead_thread_notify): Likewise.
8614 2016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
8616 * gdb.trace/pending.exp: Fix expected message on continue.
8618 2016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
8620 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
8621 it works properly on big-endian machines where sizeof (CORE_ADDR)
8624 2016-01-21 Pedro Alves <palves@redhat.com>
8626 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
8627 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
8628 * configure: Regenerate.
8630 2016-01-21 Yao Qi <yao.qi@linaro.org>
8632 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
8633 is_thumb and set it according to CPSR saved on the stack.
8634 (get_next_pcs_syscall_next_pc): Pass is_thumb to
8635 arm_sigreturn_next_pc.
8637 2016-01-18 Yao Qi <yao.qi@linaro.org>
8639 * linux-low.c (linux_set_pc_64bit): New function.
8640 (linux_get_pc_64bit): New function.
8641 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
8643 * linux-sparc-low.c (debug_threads): Remove declaration.
8644 (sparc_get_pc): Remove.
8645 (the_low_target): Use linux_get_pc_64bit instead of
8647 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
8648 (the_low_target): Use linux_get_pc_64bit and
8651 2016-01-18 Yao Qi <yao.qi@linaro.org>
8653 * linux-arm-low.c (debug_threads): Remove declaration.
8654 (arm_get_pc, arm_set_pc): Remove.
8655 (the_low_target): Use linux_get_pc_32bit and
8657 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
8658 (the_low_target): Use linux_get_pc_32bit and
8660 * linux-cris-low.c (debug_threads): Remove declaration.
8661 (cris_get_pc, cris_set_pc,): Remove.
8662 (the_low_target): Use linux_get_pc_32bit and
8664 * linux-crisv32-low.c (debug_threads): Remove declaration.
8665 (cris_get_pc, cris_set_pc): Remove.
8666 (the_low_target): Use linux_get_pc_32bit and
8668 * linux-low.c: Include inttypes.h.
8669 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
8670 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
8671 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
8672 (the_low_target): Use linux_get_pc_32bit and
8674 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
8675 (the_low_target): Use linux_get_pc_32bit and
8677 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
8678 (the_low_target): Use linux_get_pc_32bit and
8680 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
8681 (the_low_target): Use linux_get_pc_32bit and
8683 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
8684 (the_low_target): Use linux_get_pc_32bit and
8687 2016-01-18 Gary Benson <gbenson@redhat.com>
8689 * configure.ac (AC_FUNC_FORK): New check.
8690 * config.in: Regenerate.
8691 * configure: Likewise.
8693 2016-01-14 Yao Qi <yao.qi@linaro.org>
8695 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
8696 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
8697 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
8698 arm_get_next_pcs_ctor.
8700 2016-01-12 Josh Stone <jistone@redhat.com>
8701 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8703 * inferiors.h: Include "gdb_vecs.h".
8704 (struct process_info): Add syscalls_to_catch.
8705 * inferiors.c (remove_process): Free syscalls_to_catch.
8706 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
8707 syscall_return stops.
8708 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
8709 * server.c (handle_general_set): Handle QCatchSyscalls.
8710 (handle_query): Report support for QCatchSyscalls.
8711 * target.h (struct target_ops): Add supports_catch_syscall.
8712 (target_supports_catch_syscall): New macro.
8713 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
8714 (struct lwp_info): Add syscall_state.
8715 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
8716 Maintain syscall_state and syscalls_to_catch across exec.
8717 (get_syscall_trapinfo): New function, proxy to the_low_target.
8718 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
8719 (linux_low_filter_event): Toggle syscall_state entry/return for
8720 syscall traps, and set it ignored for all others.
8721 (gdb_catching_syscalls_p): New function.
8722 (gdb_catch_this_syscall_p): New function.
8723 (linux_wait_1): Handle SYSCALL_SIGTRAP.
8724 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
8725 (linux_supports_catch_syscall): New function.
8726 (linux_target_ops): Install it.
8727 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
8728 (the_low_target): Install it.
8730 2016-01-12 Mike Frysinger <vapier@gentoo.org>
8732 * acinclude.m4: Include new ../warning.m4 file.
8733 * configure: Regenerated.
8734 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
8736 2016-01-12 Mike Frysinger <vapier@gentoo.org>
8738 * ax.c (is_goto_target): Mark static.
8739 * linux-low.c (register_addr): Likewise.
8740 (linux_fetch_registers, linux_store_registers): Likewise.
8741 * mem-break.c (any_persistent_commands): Fix old prototype.
8742 (add_commands_to_breakpoint): Mark static.
8743 * regcache.c (find_register_by_name): Delete unused func.
8744 * remote-utils.c (hex_or_minus_one): Mark static.
8745 * server.c (monitor_show_help): Mark static.
8746 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
8747 handle_v_requests): Likewise.
8749 2016-01-12 Pedro Alves <palves@redhat.com>
8751 Remove use of the registered trademark symbol throughout.
8753 2016-01-08 Yao Qi <yao.qi@linaro.org>
8755 * remote-utils.c (getpkt): If c is '\003', call target hook
8758 2016-01-06 Yao Qi <yao.qi@linaro.org>
8760 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
8761 linux-aarch32-low.c.
8762 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8763 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
8764 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8765 (thumb2_breakpoint): Declare.
8766 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
8767 linux-aarch32-low.h.
8768 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8769 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
8770 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8772 2016-01-01 Joel Brobecker <brobecker@adacore.com>
8774 * gdbreplay.c (gdbreplay_version): Change copyright year in
8776 * server.c (gdbserver_version): Likewise.
8778 2015-12-28 Patrick Palka <patrick@parcs.ath.cx>
8780 * server.c (crc32_table): Delete.
8781 (crc32): Use libiberty's xcrc32 function.
8783 2015-12-22 Joel Brobecker <brobecker@adacore.com>
8785 * lynx-low.c (lynx_delete_thread_callback): New function.
8786 (lynx_mourn): Properly delete our process and all of its
8787 threads. Remove call to clear_inferiors.
8789 2015-12-22 Joel Brobecker <brobecker@adacore.com>
8791 * target.c (thread_search_callback): Add check that
8792 the thread_stopped target callback is not NULL before
8795 2015-12-21 Yao Qi <yao.qi@linaro.org>
8797 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
8800 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8802 * server.c (handle_query): Call target_supports_software_single_step.
8804 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8806 * linux-low.c (single_step): New function.
8807 (linux_resume_one_lwp_throw): Call single_step.
8808 (start_step_over): Likewise.
8810 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8812 * Makefile.in (SFILES): Append arch/arm-linux.c,
8813 arch/arm-get-next-pcs.c.
8814 (arm-linux.o): New rule.
8815 (arm-get-next-pcs.o): New rule.
8816 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
8818 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
8819 to linux-aarch32-low.c.
8820 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8821 (arm_breakpoint_len, thumb_breakpoint): Likewise.
8822 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
8823 (thumb2_breakpoint_len): Likewise.
8824 (arm_is_thumb_mode): Make non-static.
8825 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
8826 from linux-aarch32-low.c.
8827 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8828 (arm_breakpoint_len, thumb_breakpoint): Likewise.
8829 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
8830 (thumb2_breakpoint_len): Likewise.
8831 (arm_is_thumb_mode): New declaration.
8832 * linux-arm-low.c: Include arch/arm-linux.h
8833 aarch/arm-get-next-pcs.h, sys/syscall.h.
8834 (get_next_pcs_ops): New struct.
8835 (get_next_pcs_addr_bits_remove): New function.
8836 (get_next_pcs_is_thumb): New function.
8837 (get_next_pcs_read_memory_unsigned_integer): Likewise.
8838 (arm_sigreturn_next_pc): Likewise.
8839 (get_next_pcs_syscall_next_pc): Likewise.
8840 (arm_gdbserver_get_next_pcs): Likewise.
8841 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
8843 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
8844 * server.h: Include gdb_vecs.h.
8846 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8848 * Makefile.in (SFILES): Append common/common-regcache.c.
8849 (OBS): Append common-regcache.o.
8850 (common-regcache.o): New rule.
8851 * regcache.c (init_register_cache): Initialize cache to
8853 (regcache_raw_read_unsigned): New function.
8854 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
8855 register_status enum.
8857 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8859 * linux-aarch64-low.c (the_low_targets): Rename
8860 breakpoint_reinsert_addr to get_next_pcs.
8861 * linux-arm-low.c (the_low_targets): Likewise.
8862 * linux-bfin-low.c (the_low_targets): Likewise.
8863 * linux-cris-low.c (the_low_targets): Likewise.
8864 * linux-crisv32-low.c (the_low_targets): Likewise.
8865 * linux-low.c (can_software_single_step): Likewise.
8866 (install_software_single_step_breakpoints): New function.
8867 (start_step_over): Use install_software_single_step_breakpoints.
8868 * linux-low.h: New CORE_ADDR vector.
8869 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
8871 * linux-mips-low.c (the_low_targets): Likewise.
8872 * linux-nios2-low.c (the_low_targets): Likewise.
8873 * linux-sparc-low.c (the_low_targets): Likewise.
8875 2015-12-17 Pedro Alves <palves@redhat.com>
8877 * linux-low.c (linux_kill_one_lwp): Remove references to
8879 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
8881 (linux_init_signals): Delete.
8882 (initialize_low): Adjust.
8883 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
8885 2015-12-16 Pedro Alves <palves@redhat.com>
8887 * configure.ac (compiler warning flags): When testing a
8888 -Wno-foo option, check whether -Wfoo works instead.
8889 * configure: Regenerate.
8891 2015-12-11 Don Breazeal <donb@codesourcery.com>
8893 * server.c (process_serial_event): Don't exit from gdbserver
8894 in remote mode if there are still active inferiors.
8896 2015-12-11 Yao Qi <yao.qi@linaro.org>
8898 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
8899 arm_breakpoint_at if the process is 32-bit.
8901 2015-12-11 Yao Qi <yao.qi@linaro.org>
8903 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
8906 2015-12-07 Yao Qi <yao.qi@linaro.org>
8908 * configure.srv: Append arm.o to srv_tgtobj for
8909 aarch64*-*-linux* target.
8910 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
8911 from linux-arm-low.c.
8912 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8913 (arm_breakpoint_len, thumb_breakpoint): Likewise.
8914 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
8915 (thumb2_breakpoint_len): Likewise.
8916 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
8917 (arm_breakpoint_kinds): Likewise.
8918 (arm_breakpoint_kind_from_pc): Likewise.
8919 (arm_sw_breakpoint_from_kind): Likewise.
8920 (arm_breakpoint_kind_from_current_state): Likewise.
8921 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
8922 (arm_sw_breakpoint_from_kind): Declare.
8923 (arm_breakpoint_kind_from_current_state): Declare.
8924 (arm_breakpoint_at): Declare.
8925 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
8926 arm_sw_breakpoint_from_kind if process is 32-bit.
8927 (aarch64_breakpoint_kind_from_pc): New function.
8928 (aarch64_breakpoint_kind_from_current_state): New function.
8929 (the_low_target): Initialize fields breakpoint_kind_from_pc
8930 and breakpoint_kind_from_current_state.
8931 * linux-arm-low.c (arm_breakpoint_kinds): Move to
8932 linux-aarch32-low.c.
8933 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
8934 (arm_breakpoint, arm_breakpoint_len): Likewise.
8935 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
8936 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8937 (arm_is_thumb_mode): Likewise.
8938 (arm_breakpoint_at): Likewise.
8939 (arm_breakpoint_kind_from_pc): Likewise.
8940 (arm_sw_breakpoint_from_kind): Likewise.
8941 (arm_breakpoint_kind_from_current_state): Likewise.
8944 2015-08-04 Yao Qi <yao.qi@linaro.org>
8946 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
8947 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
8948 * server.c (extended_protocol): Remove "static".
8949 * server.h (extended_protocol): Declare it.
8951 2015-12-04 Josh Stone <jistone@redhat.com>
8953 * target.h (struct target_ops) <arch_setup>: Rename to ...
8954 (struct target_ops) <post_create_inferior>: ... this.
8955 (target_arch_setup): Rename to ...
8956 (target_post_create_inferior): ... this, calling post_create_inferior.
8957 * server.c (start_inferior): Update target_arch_setup calls to
8958 target_post_create_inferior.
8959 * linux-low.c (linux_low_ptrace_options): Forward declare.
8960 (linux_arch_setup): Update its comment for general use.
8961 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
8962 (struct linux_target_ops): Use linux_post_create_inferior.
8963 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
8964 to post_create_inferior.
8965 * nto-low.c (struct nto_target_ops): Likewise.
8966 * spu-low.c (struct spu_target_ops): Likewise.
8967 * win32-low.c (struct win32_target_ops): Likewise.
8969 2015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
8971 * linux-arm-low.c: Remove duplicate arch/arm.h include.
8973 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
8975 * linux-arm-low.c (arm_reinsert_addr): Remove function.
8976 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
8977 * linux-cris-low.c (cris_reinsert_addr> Remove function.
8978 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
8979 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
8980 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
8981 * linux-mips-low.c (mips_reinsert_addr): Remove function.
8982 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
8983 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
8984 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
8985 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
8986 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
8988 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
8990 * linux-low.c (linux_look_up_symbols): Don't call
8991 linux_supports_traceclone.
8992 * linux-low.h (thread_db_init): Remove use_events argument.
8993 * thread-db.c (thread_db_use_event): Remove global variable.
8994 (struct thread_db) <td_thr_event_enable_p>: Remove field.
8995 (struct thread_db) <td_create_bp>: Remove field.
8996 (thread_db_create_event): Remove function.
8997 (thread_db_enable_reporting): Likewise.
8998 (find_one_thread): Don't check for thread_db_use_events.
8999 (attach_thread): Likewise.
9000 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
9001 (try_thread_db_load_1): Don't check for thread_db_use_events.
9002 (thread_db_init): Remove use_events argument and thread events
9004 (remove_thread_event_breakpoints): Remove function.
9005 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
9007 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9009 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
9011 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9012 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
9013 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9014 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
9015 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
9017 * linux-crisv32-low.c (cris_supports_hardware_single_step):
9019 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9020 * linux-low.c (can_hardware_single_step): Use
9021 supports_hardware_single_step.
9022 (can_software_single_step): New function.
9023 (start_step_over): Call can_software_single_step.
9024 (linux_supports_hardware_single_step): New function.
9025 (struct target_ops) <supports_software_single_step>: Initialize.
9026 * linux-low.h (struct linux_target_ops)
9027 <supports_hardware_single_step>: Initialize.
9028 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
9029 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9030 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
9031 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
9032 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
9033 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9034 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
9035 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9036 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
9037 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
9039 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
9040 (struct linux_target_ops) <tile_supports_hardware_single_step>:
9042 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
9043 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9044 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
9046 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9047 * target.h (struct target_ops): <supports_software_single_step>:
9049 (target_supports_software_single_step): New macro.
9051 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9053 * linux-low.c (linux_wait_1): Fix pc advance condition.
9054 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
9055 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
9057 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9059 * linux-arm-low.c (arm_is_thumb_mode): New function.
9060 (arm_breakpoint_at): Use arm_is_thumb_mode.
9061 (arm_breakpoint_kind_from_current_state): New function.
9062 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
9064 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
9065 (linux_breakpoint_kind_from_current_state): New function.
9066 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
9067 * linux-low.h (struct linux_target_ops)
9068 <breakpoint_kind_from_current_state>: New field.
9069 * target.h (struct target_ops): Likewise.
9070 (target_breakpoint_kind_from_current_state): New macro.
9072 2015-11-30 Pedro Alves <palves@redhat.com>
9074 * linux-low.c (linux_resume): Wake up the event loop before
9077 2015-11-30 Pedro Alves <palves@redhat.com>
9079 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
9081 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
9083 * target.c (struct thread_search): New structure.
9084 (thread_search_callback): New function.
9085 (prev_general_thread): New global.
9086 (prepare_to_access_memory, done_accessing_memory): New functions.
9087 * target.h (prepare_to_access_memory, done_accessing_memory):
9088 Replace macros with function declarations.
9090 2015-11-30 Pedro Alves <palves@redhat.com>
9093 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
9094 report TARGET_WAITKIND_NO_RESUMED.
9095 * remote-utils.c (prepare_resume_reply): Handle
9096 TARGET_WAITKIND_NO_RESUMED.
9097 * server.c (report_no_resumed): New global.
9098 (handle_query) <qSupported>: Handle "no-resumed+". Report
9099 "no-resumed+" support.
9100 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
9101 return error if the client doesn't support no-resumed events.
9102 (push_stop_notification): New function.
9103 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
9104 events if the client supports them.
9106 2015-11-30 Pedro Alves <palves@redhat.com>
9108 * linux-low.c (thread_still_has_status_pending_p): Don't check
9110 (lwp_resumed): New function.
9111 (status_pending_p_callback): Return early if the LWP is not
9112 supposed to be resumed.
9114 2015-11-30 Pedro Alves <palves@redhat.com>
9116 * linux-low.c (handle_extended_wait): Assert that the LWP's
9117 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
9118 thread create events, leave the new child's status pending.
9119 (linux_low_filter_event): If GDB wants to hear about thread exit
9120 events, leave the LWP marked dead and don't delete it.
9121 (linux_wait_for_event_filtered): Don't check for thread exit.
9122 (filter_exit_event): New function.
9123 (linux_wait_1): Use it, when returning an exit event.
9124 (linux_resume_one_lwp_throw): Assert that the LWP's
9125 waitstatus is TARGET_WAITKIND_IGNORE.
9126 * remote-utils.c (prepare_resume_reply): Handle
9127 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
9128 * server.c (report_thread_events): New global.
9129 (handle_general_set): Handle QThreadEvents.
9130 (handle_query) <qSupported>: Handle and report QThreadEvents+;
9131 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
9132 TARGET_WAITKIND_THREAD_EXITED.
9133 * server.h (report_thread_events): Declare.
9135 2015-11-30 Pedro Alves <palves@redhat.com>
9137 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
9138 the thread's last_resume_kind was resume_stop.
9140 2015-11-30 Pedro Alves <palves@redhat.com>
9142 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
9145 2015-11-30 Pedro Alves <palves@redhat.com>
9147 * server.c (handle_v_requests): Handle vCtrlC.
9149 2015-11-30 Pedro Alves <palves@redhat.com>
9151 * gdbthread.h (find_any_thread_of_pid): Declare.
9152 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
9154 * server.c (handle_query): If current_thread is NULL, look for
9155 another thread of the selected process.
9157 2015-11-26 Daniel Colascione <dancol@dancol.org>
9158 Simon Marchi <simon.marchi@ericsson.com>
9160 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
9161 * server.c (handle_qxfer_threads_worker): Refactor to include thread
9163 * target.h (struct target_ops) <thread_name>: New field.
9164 (target_thread_name): New macro.
9166 2015-11-23 Joel Brobecker <brobecker@adacore.com>
9168 * regcache.h (regcache_invalidate_pid): Add declaration.
9169 * regcache.c (regcache_invalidate_pid): New function, extracted
9170 from regcache_invalidate.
9171 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
9172 Add trivial documentation comment.
9173 * lynx-low.c: Use regcache_invalidate_pid instead of
9174 regcache_invalidate.
9176 2015-11-23 Joel Brobecker <brobecker@adacore.com>
9178 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
9179 and Elf64_auxv_t if the target is Android.
9181 2015-11-22 Doug Evans <xdje42@gmail.com>
9183 * target.h: #include <sys/types.h>.
9185 2015-11-19 Pedro Alves <palves@redhat.com>
9187 * linux-low.c (linux_process_qsupported): Change prototype.
9189 * linux-low.h (struct linux_target_ops) <process_qsupported>:
9191 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
9192 and adjust to loop over all features.
9193 * server.c (handle_query) <qSupported>: Adjust to call
9194 target_process_qsupported once, passing it a vector of unprocessed
9196 * target.h (struct target_ops) <process_qsupported>: Change
9198 (target_process_qsupported): Adjust.
9200 2015-11-19 Pedro Alves <palves@redhat.com>
9202 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
9204 * configure: Regenerate.
9206 2015-11-19 Pedro Alves <palves@redhat.com>
9208 * configure: Regenerate.
9210 2015-11-19 Yao Qi <yao.qi@linaro.org>
9212 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
9215 2015-11-19 Yao Qi <yao.qi@linaro.org>
9217 * linux-aarch64-low.c (enum aarch64_operand_type): New.
9218 (struct aarch64_operand): Move enum out.
9220 2015-11-19 Yao Qi <yao.qi@linaro.org>
9222 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
9223 struct user_fpsimd_state *.
9224 (aarch64_store_fpregset): Likewise.
9226 2015-11-19 Yao Qi <yao.qi@linaro.org>
9228 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
9229 struct user_pt_regs *.
9230 (aarch64_store_gregset): Likewise.
9232 2015-11-18 Pedro Alves <palves@redhat.com>
9234 * Makefile.in (all_object_files): Add $IPA_OBJS.
9236 2015-11-17 Pedro Alves <palves@redhat.com>
9238 * win32-low.c (win32_resume): Use gdb_signal_from_host,
9239 GDB_SIGNAL_0 and gdb_signal_to_string.
9241 2015-11-17 Pedro Alves <palves@redhat.com>
9243 * win32-low.c (handle_output_debug_string): Remove parameter.
9244 (win32_kill): Remove our_status local and adjust call to
9245 handle_output_debug_string.
9246 (get_child_debug_event): Adjust call to
9247 handle_output_debug_string.
9249 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9251 * linux-mips-low.c (mips_fill_gregset): Add cast.
9252 (mips_store_gregset): Likewise.
9253 (mips_fill_fpregset): Likewise.
9254 (mips_store_fpregset): Likewise.
9256 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9258 * linux-mips-low.c (mips_add_watchpoint): Rename private to
9261 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9263 * linux-mips-low.c (mips_linux_new_thread): Change type of
9264 watch_type to enum target_hw_bp_type.
9266 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9268 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
9269 Change return type to arm_hwbp_type.
9271 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9273 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
9274 (arm_store_gregset): Likewise.
9275 * linux-arm-low.c (arm_get_hwcap): Likewise.
9276 (arm_read_description): Likewise.
9278 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9280 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
9282 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9284 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
9285 (ppc_fill_vsxregset): Likewise.
9286 (ppc_store_vsxregset): Likewise.
9287 (ppc_fill_vrregset): Likewise.
9288 (ppc_store_vrregset): Likewise.
9289 (ppc_fill_evrregset): Likewise.
9290 (ppc_store_evrregset): Likewise.
9292 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9294 * linux-ppc-low.c (ppc_usrregs_info): Remove
9295 forward-declaration.
9296 (ppc_arch_setup): Move lower in file.
9298 2015-10-30 Simon Marchi <simon.marchi@ericsson.com>
9300 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
9301 (ps_pdwrite): Likewise.
9303 2015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
9305 * linux-arm-low.c (arm_new_thread): Move pointer dereference
9306 to after assert checks.
9308 2015-10-29 Simon Marchi <simon.marchi@ericsson.com>
9310 * proc-service.c (ps_pdread): Add/adjust casts.
9311 (ps_pdwrite): Add/adjust casts.
9313 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9315 * server.c (handle_search_memory_1): Cast return value of
9318 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9320 * server.c (write_qxfer_response): Change type of data to
9323 2015-10-29 Pedro Alves <palves@redhat.com>
9325 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
9327 2015-10-29 Pedro Alves <palves@redhat.com>
9329 * tracepoint.c (clear_installed_tracepoints): Add casts.
9331 2015-10-29 Pedro Alves <palves@redhat.com>
9333 * server.c (handle_v_cont, process_serial_event): Add enum
9334 gdb_signal casts to signal parsing code.
9336 2015-10-29 Pedro Alves <palves@redhat.com>
9338 * linux-low.h (NULL_REGSET): Define.
9339 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9340 * linux-arm-low.c (arm_regsets): Likewise.
9341 * linux-crisv32-low.c (cris_regsets): Likewise.
9342 * linux-m68k-low.c (m68k_regsets): Likewise.
9343 * linux-mips-low.c (mips_regsets): Likewise.
9344 * linux-nios2-low.c (nios2_regsets): Likewise.
9345 * linux-ppc-low.c (ppc_regsets): Likewise.
9346 * linux-s390-low.c (s390_regsets): Likewise.
9347 * linux-sh-low.c (sh_regsets): Likewise.
9348 * linux-sparc-low.c (sparc_regsets): Likewise.
9349 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9350 * linux-tile-low.c (tile_regsets): Likewise.
9351 * linux-x86-low.c (x86_regsets): Likewise.
9352 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9354 2015-10-29 Pedro Alves <palves@redhat.com>
9356 * linux-low.h (NULL_REGSET): Define.
9357 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9358 * linux-arm-low.c (arm_regsets): Likewise.
9359 * linux-crisv32-low.c (cris_regsets): Likewise.
9360 * linux-m68k-low.c (m68k_regsets): Likewise.
9361 * linux-mips-low.c (mips_regsets): Likewise.
9362 * linux-nios2-low.c (nios2_regsets): Likewise.
9363 * linux-ppc-low.c (ppc_regsets): Likewise.
9364 * linux-s390-low.c (s390_regsets): Likewise.
9365 * linux-sh-low.c (sh_regsets): Likewise.
9366 * linux-sparc-low.c (sparc_regsets): Likewise.
9367 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9368 * linux-tile-low.c (tile_regsets): Likewise.
9369 * linux-x86-low.c (x86_regsets): Likewise.
9370 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9372 2015-10-26 Doug Evans <dje@google.com>
9374 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
9376 2015-10-26 Doug Evans <dje@google.com>
9378 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
9380 2015-10-26 Doug Evans <dje@google.com>
9382 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
9384 (attach_thread, find_new_threads_callback): Ditto.
9386 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9388 * mem-break.h (set_breakpoint_data): Remove.
9390 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9392 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
9393 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9394 (initialize_low): Remove set_breakpoint_data call.
9395 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
9396 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
9397 (initialize_low): Remove set_breakpoint_data call.
9398 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
9399 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9400 (initialize_low): Remove set_breakpoint_data call.
9402 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9404 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
9405 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
9406 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
9407 * target.h (target_breakpoint_kind_from_pc): New macro.
9409 2015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
9411 * linux-low.c (default_breakpoint_kind_from_pc): New function.
9412 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
9413 the default breakpoint kind.
9415 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9417 * linux-arm-low.c (arm_supports_z_point_type): Add software
9420 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9422 * linux-arm-low.c: Refactor breakpoint definitions.
9423 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
9424 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
9426 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9428 * Makefile.in: Add arm.c/o.
9429 * configure.srv: Likewise.
9430 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
9431 (arm_breakpoint_kind_from_pc): New function.
9432 (arm_sw_breakpoint_from_kind): Return proper kind.
9433 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
9435 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9437 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
9439 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
9440 (struct raw_breakpoint) <size>: Remove.
9441 (struct raw_breakpoint) <kind>: Add.
9442 (bp_size): New function.
9443 (bp_opcode): Likewise.
9444 (find_raw_breakpoint_at): Adjust for kind.
9445 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
9446 (remove_memory_breakpoint): Adjust for kind call bp_size.
9447 (set_raw_breakpoint_at): Adjust for kind.
9448 (set_breakpoint): Likewise.
9449 (set_breakpoint_at): Call breakpoint_kind_from_pc.
9450 (delete_raw_breakpoint): Adjust for kind.
9451 (delete_breakpoint): Likewise.
9452 (find_gdb_breakpoint): Likewise.
9453 (set_gdb_breakpoint_1): Likewise.
9454 (set_gdb_breakpoint): Likewise.
9455 (delete_gdb_breakpoint_1): Likewise.
9456 (delete_gdb_breakpoint): Likewise.
9457 (uninsert_raw_breakpoint): Likewise.
9458 (reinsert_raw_breakpoint): Likewise.
9459 (set_breakpoint_data): Remove.
9460 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
9461 (check_mem_read): Adjust for kind call bp_size.
9462 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
9463 (clone_one_breakpoint): Adjust for kind.
9464 * mem-break.h (set_gdb_breakpoint): Likewise.
9465 (delete_gdb_breakpoint): Likewise.
9466 * server.c (process_serial_event): Likewise.
9468 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9470 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
9471 (struct linux_target_ops) <breakpoint>: Remove.
9472 (struct linux_target_ops) <breakpoint_len>: Remove.
9473 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9474 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9475 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
9476 (arm_sw_breakpoint_from_kind): New function.
9477 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
9478 (struct linux_target_ops) <breakpoint>: Remove.
9479 (struct linux_target_ops) <breakpoint_len>: Remove.
9480 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9481 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9482 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
9483 (struct linux_target_ops) <breakpoint>: Remove.
9484 (struct linux_target_ops) <breakpoint_len>: Remove.
9485 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9486 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9487 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
9488 (struct linux_target_ops) <breakpoint>: Remove.
9489 (struct linux_target_ops) <breakpoint_len>: Remove.
9490 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9491 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9492 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
9493 and sw_breakpoint_from_kind to increment the pc.
9494 (linux_breakpoint_kind_from_pc): New function.
9495 (linux_sw_breakpoint_from_kind): New function.
9496 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
9497 (initialize_low): Call breakpoint_kind_from_pc and
9498 sw_breakpoint_from_kind to replace breakpoint_data/len.
9499 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
9501 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
9502 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
9503 (struct linux_target_ops) <breakpoint>: Remove.
9504 (struct linux_target_ops) <breakpoint_len>: Remove.
9505 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9506 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9507 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
9508 (struct linux_target_ops) <breakpoint>: Remove.
9509 (struct linux_target_ops) <breakpoint_len>: Remove.
9510 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9511 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9512 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
9513 (struct linux_target_ops) <breakpoint>: Remove.
9514 (struct linux_target_ops) <breakpoint_len>: Remove.
9515 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9516 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9517 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
9518 (struct linux_target_ops) <breakpoint>: Remove.
9519 (struct linux_target_ops) <breakpoint_len>: Remove.
9520 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9521 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9522 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
9523 (struct linux_target_ops) <breakpoint>: Remove.
9524 (struct linux_target_ops) <breakpoint_len>: Remove.
9525 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9526 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9527 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
9528 (struct linux_target_ops) <breakpoint>: Remove.
9529 (struct linux_target_ops) <breakpoint_len>: Remove.
9530 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9531 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9532 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
9533 (struct linux_target_ops) <breakpoint>: Remove.
9534 (struct linux_target_ops) <breakpoint_len>: Remove.
9535 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9536 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9537 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
9538 (struct linux_target_ops) <breakpoint>: Remove.
9539 (struct linux_target_ops) <breakpoint_len>: Remove.
9540 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9541 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9542 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
9543 (struct linux_target_ops) <breakpoint>: Remove.
9544 (struct linux_target_ops) <breakpoint_len>: Remove.
9545 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9546 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9547 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
9548 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
9549 (struct linux_target_ops) <breakpoint>: Remove.
9550 (struct linux_target_ops) <breakpoint_len>: Remove.
9551 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9552 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9553 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
9554 (struct linux_target_ops) <breakpoint>: Remove.
9555 (struct linux_target_ops) <breakpoint_len>: Remove.
9556 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9557 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9559 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9561 * linux-cris-low.c (cris_get_pc): Remove void arg.
9563 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9565 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
9568 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9570 * inferiors.c (thread_pid_matches_callback): New function.
9571 (find_thread_process): New function.
9572 (remove_thread): Reset current_thread.
9573 (remove_process): Assert threads have been removed first.
9575 2015-10-15 Yao Qi <yao.qi@linaro.org>
9577 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
9579 (aarch64_remove_point): Likewise.
9580 * regcache.c (regcache_register_size): New function.
9582 2015-10-12 Yao Qi <yao.qi@linaro.org>
9584 * linux-aarch64-low.c: Update all callers as emit_load_store
9585 is renamed to aarch64_emit_load_store.
9587 2015-10-12 Yao Qi <yao.qi@linaro.org>
9589 * linux-aarch64-low.c: Update all callers of function renaming
9590 from emit_insn to aarch64_emit_insn.
9592 2015-10-12 Yao Qi <yao.qi@linaro.org>
9594 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
9595 arch/aarch64-insn.h.
9596 (struct aarch64_memory_operand): Likewise.
9598 (emit_insn): Move to arch/aarch64-insn.c.
9599 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
9600 (emit_load_store): Move to arch/aarch64-insn.c.
9601 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
9602 (can_encode_int32): Remove.
9604 2015-10-12 Yao Qi <yao.qi@linaro.org>
9606 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
9607 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
9608 (aarch64_relocate_instruction): Likewise.
9609 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
9610 (struct aarch64_insn_visitor): Likewise.
9612 2015-10-12 Yao Qi <yao.qi@linaro.org>
9614 * linux-aarch64-low.c (struct aarch64_insn_data): New.
9615 (struct aarch64_insn_visitor): New.
9616 (struct aarch64_insn_relocation_data): New.
9617 (aarch64_ftrace_insn_reloc_b): New function.
9618 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
9619 (aarch64_ftrace_insn_reloc_cb): Likewise.
9620 (aarch64_ftrace_insn_reloc_tb): Likewise.
9621 (aarch64_ftrace_insn_reloc_adr): Likewise.
9622 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
9623 (aarch64_ftrace_insn_reloc_others): Likewise.
9625 (aarch64_relocate_instruction): Use visitor.
9627 2015-10-12 Yao Qi <yao.qi@linaro.org>
9629 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
9630 int. Add argument buf.
9631 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
9632 aarch64_relocate_instruction.
9634 2015-10-12 Yao Qi <yao.qi@linaro.org>
9636 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
9637 argument insn. Remove local variable insn. Don't call
9639 (aarch64_install_fast_tracepoint_jump_pad): Call
9642 2015-09-30 Yao Qi <yao.qi@linaro.org>
9644 * linux-aarch64-low.c (emit_movk): Shorten a long line.
9645 (emit_load_store_pair): Likewise.
9647 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9649 * dll.c (match_dll): Add cast(s).
9650 (unloaded_dll): Likewise.
9651 * linux-low.c (second_thread_of_pid_p): Likewise.
9652 (delete_lwp_callback): Likewise.
9653 (count_events_callback): Likewise.
9654 (select_event_lwp_callback): Likewise.
9655 (linux_set_resume_request): Likewise.
9656 * server.c (accumulate_file_name_length): Likewise.
9657 (emit_dll_description): Likewise.
9658 (handle_qxfer_threads_worker): Likewise.
9659 (visit_actioned_threads): Likewise.
9660 * thread-db.c (any_thread_of): Likewise.
9661 * tracepoint.c (same_process_p): Likewise.
9662 (match_blocktype): Likewise.
9663 (build_traceframe_info_xml): Likewise.
9665 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9667 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
9669 (gdb_unparse_agent_expr): Likewise.
9670 * hostio.c (require_data): Likewise.
9671 (handle_pread): Likewise.
9672 * linux-low.c (disable_regset): Likewise.
9673 (fetch_register): Likewise.
9674 (store_register): Likewise.
9675 (get_dynamic): Likewise.
9676 (linux_qxfer_libraries_svr4): Likewise.
9677 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
9678 (set_fast_tracepoint_jump): Likewise.
9679 (uninsert_fast_tracepoint_jumps_at): Likewise.
9680 (reinsert_fast_tracepoint_jumps_at): Likewise.
9681 (validate_inserted_breakpoint): Likewise.
9682 (clone_agent_expr): Likewise.
9683 * regcache.c (init_register_cache): Likewise.
9684 * remote-utils.c (putpkt_binary_1): Likewise.
9685 (decode_M_packet): Likewise.
9686 (decode_X_packet): Likewise.
9687 (look_up_one_symbol): Likewise.
9688 (relocate_instruction): Likewise.
9689 (monitor_output): Likewise.
9690 * server.c (handle_search_memory): Likewise.
9691 (handle_qxfer_exec_file): Likewise.
9692 (handle_qxfer_libraries): Likewise.
9693 (handle_qxfer): Likewise.
9694 (handle_query): Likewise.
9695 (handle_v_cont): Likewise.
9696 (handle_v_run): Likewise.
9697 (captured_main): Likewise.
9698 * target.c (write_inferior_memory): Likewise.
9699 * thread-db.c (try_thread_db_load_from_dir): Likewise.
9700 * tracepoint.c (init_trace_buffer): Likewise.
9701 (add_tracepoint_action): Likewise.
9702 (add_traceframe): Likewise.
9703 (add_traceframe_block): Likewise.
9704 (cmd_qtdpsrc): Likewise.
9705 (cmd_qtdv): Likewise.
9706 (cmd_qtstatus): Likewise.
9707 (response_source): Likewise.
9708 (response_tsv): Likewise.
9709 (cmd_qtnotes): Likewise.
9710 (gdb_collect): Likewise.
9711 (initialize_tracepoint): Likewise.
9713 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9715 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
9716 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
9717 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
9719 (enum aarch64_condition_codes): New enum.
9720 (w0): New static global.
9723 (struct aarch64_memory_operand) <type>: New
9724 MEMORY_OPERAND_POSTINDEX type.
9725 (postindex_memory_operand): New helper function.
9726 (emit_ret): New function.
9727 (emit_load_store_pair): New function, factored out of emit_stp
9728 with support for MEMORY_OPERAND_POSTINDEX.
9729 (emit_stp): Rewrite using emit_load_store_pair.
9730 (emit_ldp): New function.
9731 (emit_load_store): Likewise.
9732 (emit_ldr): Mention post-index instruction in comment.
9733 (emit_ldrh): New function.
9734 (emit_ldrb): New function.
9735 (emit_ldrsw): Mention post-index instruction in comment.
9736 (emit_str): Likewise.
9737 (emit_subs): New function.
9738 (emit_cmp): Likewise.
9739 (emit_and): Likewise.
9740 (emit_orr): Likewise.
9741 (emit_orn): Likewise.
9742 (emit_eor): Likewise.
9743 (emit_mvn): Likewise.
9744 (emit_lslv): Likewise.
9745 (emit_lsrv): Likewise.
9746 (emit_asrv): Likewise.
9747 (emit_mul): Likewise.
9748 (emit_sbfm): Likewise.
9749 (emit_sbfx): Likewise.
9750 (emit_ubfm): Likewise.
9751 (emit_ubfx): Likewise.
9752 (emit_csinc): Likewise.
9753 (emit_cset): Likewise.
9754 (emit_nop): Likewise.
9755 (emit_ops_insns): New helper function.
9756 (emit_pop): Likewise.
9757 (emit_push): Likewise.
9758 (aarch64_emit_prologue): New function.
9759 (aarch64_emit_epilogue): Likewise.
9760 (aarch64_emit_add): Likewise.
9761 (aarch64_emit_sub): Likewise.
9762 (aarch64_emit_mul): Likewise.
9763 (aarch64_emit_lsh): Likewise.
9764 (aarch64_emit_rsh_signed): Likewise.
9765 (aarch64_emit_rsh_unsigned): Likewise.
9766 (aarch64_emit_ext): Likewise.
9767 (aarch64_emit_log_not): Likewise.
9768 (aarch64_emit_bit_and): Likewise.
9769 (aarch64_emit_bit_or): Likewise.
9770 (aarch64_emit_bit_xor): Likewise.
9771 (aarch64_emit_bit_not): Likewise.
9772 (aarch64_emit_equal): Likewise.
9773 (aarch64_emit_less_signed): Likewise.
9774 (aarch64_emit_less_unsigned): Likewise.
9775 (aarch64_emit_ref): Likewise.
9776 (aarch64_emit_if_goto): Likewise.
9777 (aarch64_emit_goto): Likewise.
9778 (aarch64_write_goto_address): Likewise.
9779 (aarch64_emit_const): Likewise.
9780 (aarch64_emit_call): Likewise.
9781 (aarch64_emit_reg): Likewise.
9782 (aarch64_emit_pop): Likewise.
9783 (aarch64_emit_stack_flush): Likewise.
9784 (aarch64_emit_zero_ext): Likewise.
9785 (aarch64_emit_swap): Likewise.
9786 (aarch64_emit_stack_adjust): Likewise.
9787 (aarch64_emit_int_call_1): Likewise.
9788 (aarch64_emit_void_call_2): Likewise.
9789 (aarch64_emit_eq_goto): Likewise.
9790 (aarch64_emit_ne_goto): Likewise.
9791 (aarch64_emit_lt_goto): Likewise.
9792 (aarch64_emit_le_goto): Likewise.
9793 (aarch64_emit_gt_goto): Likewise.
9794 (aarch64_emit_ge_got): Likewise.
9795 (aarch64_emit_ops_impl): New static global variable.
9796 (aarch64_emit_ops): New target function, return
9797 &aarch64_emit_ops_impl.
9798 (struct linux_target_ops): Install it.
9800 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9802 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
9803 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
9805 * linux-aarch64-ipa.c: New file.
9806 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
9808 (aarch64_get_thread_area): New target method.
9809 (extract_signed_bitfield): New helper function.
9810 (aarch64_decode_ldr_literal): New function.
9811 (enum aarch64_opcodes): New enum.
9812 (struct aarch64_register): New struct.
9813 (struct aarch64_operand): New struct.
9814 (x0): New static global.
9823 (aarch64_register): New helper function.
9824 (register_operand): Likewise.
9825 (immediate_operand): Likewise.
9826 (struct aarch64_memory_operand): New struct.
9827 (offset_memory_operand): New helper function.
9828 (preindex_memory_operand): Likewise.
9829 (enum aarch64_system_control_registers): New enum.
9830 (ENCODE): New macro.
9831 (emit_insn): New helper function.
9832 (emit_b): New function.
9833 (emit_bcond): Likewise.
9834 (emit_cb): Likewise.
9835 (emit_tb): Likewise.
9836 (emit_blr): Likewise.
9837 (emit_stp): Likewise.
9838 (emit_ldp_q_offset): Likewise.
9839 (emit_stp_q_offset): Likewise.
9840 (emit_load_store): Likewise.
9841 (emit_ldr): Likewise.
9842 (emit_ldrsw): Likewise.
9843 (emit_str): Likewise.
9844 (emit_ldaxr): Likewise.
9845 (emit_stxr): Likewise.
9846 (emit_stlr): Likewise.
9847 (emit_data_processing_reg): Likewise.
9848 (emit_data_processing): Likewise.
9849 (emit_add): Likewise.
9850 (emit_sub): Likewise.
9851 (emit_mov): Likewise.
9852 (emit_movk): Likewise.
9853 (emit_mov_addr): Likewise.
9854 (emit_mrs): Likewise.
9855 (emit_msr): Likewise.
9856 (emit_sevl): Likewise.
9857 (emit_wfe): Likewise.
9858 (append_insns): Likewise.
9859 (can_encode_int32_in): New helper function.
9860 (aarch64_relocate_instruction): New function.
9861 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
9862 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
9863 (struct linux_target_ops): Install aarch64_get_thread_area,
9864 aarch64_install_fast_tracepoint_jump_pad and
9865 aarch64_get_min_fast_tracepoint_insn_len.
9867 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9869 * Makefile.in (aarch64-insn.o): New rule.
9870 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
9872 2015-09-21 Yao Qi <yao.qi@linaro.org>
9874 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
9876 2015-09-21 Yao Qi <yao.qi@linaro.org>
9878 * tracepoint.c (max_jump_pad_size): Remove.
9880 2015-09-18 Yao Qi <yao.qi@linaro.org>
9882 * linux-aarch64-low.c: Don't include sys/uio.h.
9883 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
9885 2015-09-16 Wei-cheng Wang <cole945@gmail.com>
9887 * tracepoint.c (eval_result_type): Change prototype.
9888 (condition_true_at_tracepoint): Fix argument to compiled_cond.
9890 2015-09-15 Pedro Alves <palves@redhat.com>
9892 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
9893 Check whether to report exec events instead of checking whether
9894 multiprocess is enabled.
9896 2015-09-15 Pedro Alves <palves@redhat.com>
9899 * remote-utils.c (prepare_resume_reply): Merge
9900 TARGET_WAITKIND_VFORK_DONE switch case with the
9901 TARGET_WAITKIND_FORKED case.
9903 2015-09-15 Yao Qi <yao.qi@linaro.org>
9905 * server.c (handle_query): Check string comparison using
9906 "else if" instead of "if".
9908 2015-09-15 Yao Qi <yao.qi@linaro.org>
9910 * server.c (vCont_supported): New global variable.
9911 (handle_query): Set vCont_supported to 1 if "vContSupported+"
9912 matches. Append ";vContSupported+" to own_buf.
9913 (handle_v_requests): Append ";s;S" to own_buf if target supports
9914 hardware single step or vCont_supported is false.
9915 (capture_main): Set vCont_supported to zero.
9917 2015-09-15 Yao Qi <yao.qi@linaro.org>
9919 * linux-low.c (linux_supports_conditional_breakpoints): Rename
9921 (linux_supports_hardware_single_step): ... New function.
9922 (linux_target_ops): Update.
9923 * lynx-low.c (lynx_target_ops): Set field
9924 supports_hardware_single_step to target_can_do_hardware_single_step.
9925 * nto-low.c (nto_target_ops): Likewise.
9926 * spu-low.c (spu_target_ops): Likewise.
9927 * win32-low.c (win32_target_ops): Likewise.
9928 * target.c (target_can_do_hardware_single_step): New function.
9929 * target.h (struct target_ops) <supports_conditional_breakpoints>:
9930 Remove. <supports_hardware_single_step>: New field.
9931 (target_supports_conditional_breakpoints): Remove.
9932 (target_supports_hardware_single_step): New macro.
9933 (target_can_do_hardware_single_step): Declare.
9934 * server.c (handle_query): Use target_supports_hardware_single_step
9935 instead of target_supports_conditional_breakpoints.
9937 2015-09-15 Yao Qi <yao.qi@linaro.org>
9939 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
9941 (struct linux_target_ops the_low_target): Install
9942 aarch64_linux_siginfo_fixup.
9944 2015-09-11 Don Breazeal <donb@codesourcery.com>
9945 Luis Machado <lgustavo@codesourcery.com>
9947 * linux-low.c (linux_mourn): Static declaration.
9948 (linux_arch_setup): Move in front of
9949 handle_extended_wait.
9950 (linux_arch_setup_thread): New function.
9951 (handle_extended_wait): Handle exec events. Call
9952 linux_arch_setup_thread. Make event_lwp argument a
9953 pointer-to-a-pointer.
9954 (check_zombie_leaders): Do not check stopped threads.
9955 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
9956 (linux_low_filter_event): Add lwp and thread for exec'ing
9957 non-leader thread if leader thread has been deleted.
9958 Refactor code into linux_arch_setup_thread and call it.
9959 Pass child lwp pointer by reference to handle_extended_wait.
9960 (linux_wait_for_event_filtered): Update comment.
9961 (linux_wait_1): Prevent clobbering exec event status.
9962 (linux_supports_exec_events): New function.
9963 (linux_target_ops) <supports_exec_events>: Initialize new member.
9964 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
9966 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
9967 * server.c (report_exec_events): New global variable.
9968 (handle_query): Handle qSupported query for exec-events feature.
9969 (captured_main): Initialize report_exec_events.
9970 * server.h (report_exec_events): Declare new global variable.
9971 * target.h (struct target_ops) <supports_exec_events>: New
9973 (target_supports_exec_events): New macro.
9974 * win32-low.c (win32_target_ops) <supports_exec_events>:
9975 Initialize new member.
9977 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
9979 * linux-low.c (linux_low_enable_btrace): Remove.
9980 (linux_target_ops): Replace linux_low_enable_btrace with
9981 linux_enable_btrace.
9983 2015-09-03 Yao Qi <yao.qi@linaro.org>
9985 * linux-aarch64-low.c (aarch64_insert_point): Call
9986 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
9989 2015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9991 * linux-low.c (check_stopped_by_breakpoint): Use
9992 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
9994 2015-08-27 Pedro Alves <palves@redhat.com>
9996 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
9998 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
10000 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
10001 the XNEW-family equivalent.
10002 (compile_bytecodes): Likewise.
10003 * dll.c (loaded_dll): Likewise.
10004 * event-loop.c (append_callback_event): Likewise.
10005 (create_file_handler): Likewise.
10006 (create_file_event): Likewise.
10007 * hostio.c (handle_open): Likewise.
10008 * inferiors.c (add_thread): Likewise.
10009 (add_process): Likewise.
10010 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
10011 * linux-arm-low.c (arm_new_process): Likewise.
10012 (arm_new_thread): Likewise.
10013 * linux-low.c (add_to_pid_list): Likewise.
10014 (linux_add_process): Likewise.
10015 (handle_extended_wait): Likewise.
10016 (add_lwp): Likewise.
10017 (enqueue_one_deferred_signal): Likewise.
10018 (enqueue_pending_signal): Likewise.
10019 (linux_resume_one_lwp_throw): Likewise.
10020 (linux_resume_one_thread): Likewise.
10021 (linux_read_memory): Likewise.
10022 (linux_write_memory): Likewise.
10023 * linux-mips-low.c (mips_linux_new_process): Likewise.
10024 (mips_linux_new_thread): Likewise.
10025 (mips_add_watchpoint): Likewise.
10026 * linux-x86-low.c (initialize_low_arch): Likewise.
10027 * lynx-low.c (lynx_add_process): Likewise.
10028 * mem-break.c (set_raw_breakpoint_at): Likewise.
10029 (set_breakpoint): Likewise.
10030 (add_condition_to_breakpoint): Likewise.
10031 (add_commands_to_breakpoint): Likewise.
10032 (clone_agent_expr): Likewise.
10033 (clone_one_breakpoint): Likewise.
10034 * regcache.c (new_register_cache): Likewise.
10035 * remote-utils.c (look_up_one_symbol): Likewise.
10036 * server.c (queue_stop_reply): Likewise.
10037 (start_inferior): Likewise.
10038 (queue_stop_reply_callback): Likewise.
10039 (handle_target_event): Likewise.
10040 * spu-low.c (fetch_ppc_memory): Likewise.
10041 (store_ppc_memory): Likewise.
10042 * target.c (set_target_ops): Likewise.
10043 * thread-db.c (thread_db_load_search): Likewise.
10044 (try_thread_db_load_1): Likewise.
10045 * tracepoint.c (add_tracepoint): Likewise.
10046 (add_tracepoint_action): Likewise.
10047 (create_trace_state_variable): Likewise.
10048 (cmd_qtdpsrc): Likewise.
10049 (cmd_qtro): Likewise.
10050 (add_while_stepping_state): Likewise.
10051 * win32-low.c (child_add_thread): Likewise.
10052 (get_image_name): Likewise.
10054 2015-08-25 Yao Qi <yao.qi@linaro.org>
10056 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
10058 2015-08-25 Yao Qi <yao.qi@linaro.org>
10060 * Makefile.in (aarch64-linux.o): New rule.
10061 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
10063 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
10064 (aarch64_init_debug_reg_state): Make it extern.
10065 (aarch64_linux_prepare_to_resume): Remove.
10067 2015-08-25 Yao Qi <yao.qi@linaro.org>
10069 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
10070 lwp_arch_private_info and ptid_of_lwp.
10072 2015-08-25 Yao Qi <yao.qi@linaro.org>
10074 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
10075 Find proc_info by find_process_pid. All callers updated.
10077 2015-08-25 Yao Qi <yao.qi@linaro.org>
10079 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
10081 (debug_reg_change_callback): Remove.
10082 (aarch64_notify_debug_reg_change): Remove.
10084 2015-08-25 Yao Qi <yao.qi@linaro.org>
10086 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
10087 Call current_lwp_ptid.
10089 2015-08-25 Yao Qi <yao.qi@linaro.org>
10091 * linux-aarch64-low.c (debug_reg_change_callback): Use
10094 2015-08-25 Yao Qi <yao.qi@linaro.org>
10096 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
10098 2015-08-25 Yao Qi <yao.qi@linaro.org>
10100 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
10102 2015-08-25 Yao Qi <yao.qi@linaro.org>
10104 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
10107 2015-08-25 Yao Qi <yao.qi@linaro.org>
10109 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
10111 (debug_reg_change_callback): Remove argument entry and add argument
10112 lwp. Remove local variable thread. Don't print thread id in the
10113 debugging output. Don't check whether pid of thread equals to pid.
10114 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
10115 iterate_over_lwps instead find_inferior.
10117 2015-08-24 Pedro Alves <palves@redhat.com>
10119 * inferiors.c (get_first_process): New function.
10120 * inferiors.h (get_first_process): New declaration.
10121 * remote-utils.c (read_ptid): Default to the first process in the
10122 list, instead of to the current thread's process.
10124 2015-08-24 Pedro Alves <palves@redhat.com>
10126 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
10127 * event-loop.c: Likewise.
10128 * remote-utils.c: Likewise.
10129 * tracepoint.c: Likewise.
10131 2015-08-24 Pedro Alves <palves@redhat.com>
10133 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
10136 2015-08-21 Pedro Alves <palves@redhat.com>
10138 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
10139 instead of literal 1.
10141 2015-08-21 Pedro Alves <palves@redhat.com>
10143 * tdesc.c (default_description): Explicitly zero-initialize.
10145 2015-08-21 Pedro Alves <palves@redhat.com>
10148 * inferiors.c (remove_thread): Discard any pending stop reply for
10150 * server.c (remove_all_on_match_pid): Rename to ...
10151 (remove_all_on_match_ptid): ... this. Work with a filter ptid
10153 (discard_queued_stop_replies): Change parameter to a ptid. Now
10155 (handle_v_kill, kill_inferior_callback, captured_main)
10156 (process_serial_event): Adjust.
10157 * server.h (discard_queued_stop_replies): Declare.
10159 2015-08-21 Pedro Alves <palves@redhat.com>
10161 * linux-low.c (wait_for_sigstop): Always switch to no thread
10162 selected if the previously current thread dies.
10163 * lynx-low.c (lynx_request_interrupt): Use the first thread's
10164 process instead of the current thread's.
10165 * remote-utils.c (input_interrupt): Don't check if there's no
10167 * server.c (gdb_read_memory, gdb_write_memory): If setting the
10168 current thread to the general thread fails, error out.
10169 (handle_qxfer_auxv, handle_qxfer_libraries)
10170 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
10171 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
10172 (handle_query): Check if there's a thread selected instead of
10173 checking whether there's any thread in the thread list.
10174 (handle_qxfer_threads, handle_qxfer_btrace)
10175 (handle_qxfer_btrace_conf): Don't error out early if there's no
10176 thread in the thread list.
10177 (handle_v_cont, myresume): Don't set the current thread to the
10179 (process_serial_event) <Hg handling>: Also set thread_id if the
10180 previous general thread is still alive.
10181 (process_serial_event) <g/G handling>: If setting the current
10182 thread to the general thread fails, error out.
10183 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
10184 thread's lwp instead of the current thread's.
10185 * target.c (set_desired_thread): If the desired thread was not
10186 found, leave the current thread pointing to NULL. Return an int
10187 (boolean) indicating success.
10188 * target.h (set_desired_thread): Change return type to int.
10190 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
10192 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
10193 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
10195 (ps_get_thread_area): New function.
10197 2015-08-19 Gary Benson <gbenson@redhat.com>
10199 * hostio.c (handle_pread): Do not attempt to read more data
10200 than hostio_reply_with_data can fit in a packet.
10202 2015-08-18 Joel Brobecker <brobecker@adacore.com>
10204 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
10206 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
10208 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
10210 2015-08-06 Pedro Alves <palves@redhat.com>
10212 * tracepoint.c (expr_eval_result): Now an int.
10214 2015-08-06 Pedro Alves <palves@redhat.com>
10216 * gdbthread.h (struct regcache): Forward declare.
10217 (struct thread_info) <regcache_data>: Now a struct regcache
10219 * inferiors.c (inferior_regcache_data)
10220 (set_inferior_regcache_data): Now work with struct regcache
10222 * inferiors.h (struct regcache): Forward declare.
10223 (inferior_regcache_data, set_inferior_regcache_data): Now work
10224 with struct regcache pointers.
10225 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
10226 (free_register_cache_thread): Remove struct regcache pointer
10229 2015-08-06 Pedro Alves <palves@redhat.com>
10231 * server.c (captured_main): On error, print the exception message
10232 to stderr, and if run_once is set, throw a quit.
10234 2015-08-06 Pedro Alves <palves@redhat.com>
10236 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
10237 the current thread.
10239 2015-08-06 Pedro Alves <palves@redhat.com>
10241 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
10242 reading beyond the passed in buffer length.
10244 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
10246 * tracepoint.c (symbol_list) <required>: Remove.
10248 2015-08-06 Pedro Alves <palves@redhat.com>
10250 * linux-low.c (handle_extended_wait): Set the fork child's suspend
10251 count if stopping and suspending threads.
10252 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
10253 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
10254 (linux_detach): Complete an ongoing step-over.
10255 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
10257 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
10258 (linux_wait_1): If passing a signal to the inferior after
10259 finishing a step-over, unsuspend and re-resume all lwps. If we
10260 see a single-step event but the thread should be continuing, don't
10261 pass the trap to gdb.
10262 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
10263 internal_error instead of gdb_assert.
10264 (enqueue_pending_signal): New function.
10265 (check_ptrace_stopped_lwp_gone): Add debug output.
10266 (start_step_over): Use internal_error instead of gdb_assert.
10267 (complete_ongoing_step_over): New function.
10268 (linux_resume_one_thread): Don't resume a suspended thread.
10269 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
10272 2015-08-06 Pedro Alves <palves@redhat.com>
10274 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
10275 (linux_thread_alive): Use lwp_is_marked_dead.
10276 (extended_event_reported): Delete.
10277 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
10278 instead of extended_event_reported.
10279 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
10281 (lwp_is_marked_dead): New function.
10282 (lwp_running): Use lwp_is_marked_dead.
10283 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
10286 2015-08-06 Pedro Alves <palves@redhat.com>
10288 * linux-low.c (linux_wait_1): Move fork event output out of the
10289 !report_to_gdb check. Pass event_child->waitstatus to
10290 target_waitstatus_to_string instead of ourstatus.
10292 2015-08-04 Yao Qi <yao.qi@linaro.org>
10294 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
10295 if current_thread is 32 bit.
10297 2015-08-04 Yao Qi <yao.qi@linaro.org>
10299 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
10300 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
10301 * server.c (extended_protocol): Remove "static".
10302 * server.h (extended_protocol): Declare it.
10304 2015-08-04 Yao Qi <yao.qi@linaro.org>
10306 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
10307 both aarch64 and aarch32.
10308 (aarch64_set_pc): Likewise.
10310 2015-08-04 Yao Qi <yao.qi@linaro.org>
10312 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
10313 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
10314 arm-with-neon.xml to srv_xmlfiles.
10315 * linux-aarch64-low.c: Include linux-aarch32-low.h.
10316 (is_64bit_tdesc): New function.
10317 (aarch64_linux_read_description): New function.
10318 (aarch64_arch_setup): Call aarch64_linux_read_description.
10319 (regs_info): Rename to regs_info_aarch64.
10320 (aarch64_regs_info): Return right regs_info.
10321 (initialize_low_arch): Call initialize_low_arch_aarch32.
10323 2015-08-04 Yao Qi <yao.qi@linaro.org>
10325 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
10326 * linux-aarch32-low.c: New file.
10327 * linux-aarch32-low.h: New file.
10328 * linux-arm-low.c (arm_fill_gregset): Move it to
10329 linux-aarch32-low.c.
10330 (arm_store_gregset): Likewise.
10331 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
10332 (arm_store_vfpregset): Call arm_store_vfpregset_num.
10333 (arm_arch_setup): Check if PTRACE_GETREGSET works.
10334 (regs_info): Rename to regs_info_arm.
10335 (arm_regs_info): Return regs_info_aarch32 if
10336 have_ptrace_getregset is 1 and target description is
10337 arm_with_neon or arm_with_vfpv3.
10338 (initialize_low_arch): Don't call init_registers_arm_with_neon.
10339 Call initialize_low_arch_aarch32 instead.
10341 2015-08-04 Yao Qi <yao.qi@linaro.org>
10343 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
10344 * linux-low.c: ... here.
10345 * linux-low.h (have_ptrace_getregset): Declare it.
10347 2015-08-04 Pedro Alves <palves@redhat.com>
10349 * thread-db.c (struct thread_db): Use new typedefs.
10350 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
10352 (disable_thread_event_reporting): Cast result of dlsym to
10353 destination function pointer type.
10354 (thread_db_mourn): Use td_ta_delete_ftype.
10356 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
10358 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
10360 (CDX_BREAKPOINT): Define for R2.
10361 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
10362 (the_low_target): Add comments.
10364 2015-07-30 Yao Qi <yao.qi@linaro.org>
10366 * linux-arm-low.c (arm_hwcap): Remove it.
10367 (arm_read_description): New local variable arm_hwcap. Don't
10368 set arm_hwcap to zero.
10370 2015-07-30 Yao Qi <yao.qi@linaro.org>
10372 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
10373 Use regcache->tdesc instead.
10374 (arm_store_wmmxregset): Likewise.
10375 (arm_fill_vfpregset): Likewise.
10376 (arm_store_vfpregset): Likewise.
10378 2015-07-30 Yao Qi <yao.qi@linaro.org>
10380 * linux-arm-low.c: Include arch/arm.h.
10381 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
10382 (arm_store_gregset): Likewise.
10384 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
10386 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
10387 ptrace's 4th parameter.
10389 2015-07-27 Yao Qi <yao.qi@linaro.org>
10391 * configure.srv (case aarch64*-*-linux*): Don't set
10394 2015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
10396 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
10398 * linux-arm-low.c: Likewise.
10399 * linux-cris-low.c: Likewise.
10400 * linux-crisv32-low.c: Likewise.
10401 * linux-low.c: Likewise.
10402 * linux-m68k-low.c: Likewise.
10403 * linux-mips-low.c: Likewise.
10404 * linux-nios2-low.c: Likewise.
10405 * linux-s390-low.c: Likewise.
10406 * linux-sparc-low.c: Likewise.
10407 * linux-tic6x-low.c: Likewise.
10408 * linux-tile-low.c: Likewise.
10409 * linux-x86-low.c: Likewise.
10411 2015-07-24 Pedro Alves <palves@redhat.com>
10413 * config.in: Regenerate.
10414 * configure: Regenerate.
10416 2015-07-24 Pedro Alves <palves@redhat.com>
10418 * acinclude.m4: Include ../ptrace.m4.
10419 * configure.ac: Call GDB_AC_PTRACE.
10420 * config.in, configure: Regenerate.
10422 2015-07-24 Yao Qi <yao.qi@linaro.org>
10424 * linux-low.c (linux_create_inferior): Remove setting to
10425 proc->priv->new_inferior.
10426 (linux_attach): Likewise.
10427 (linux_low_filter_event): Likewise.
10428 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
10430 2015-07-24 Yao Qi <yao.qi@linaro.org>
10432 * linux-low.c (linux_arch_setup): New function.
10433 (linux_low_filter_event): If proc->tdesc is NULL and
10434 proc->attached is true, call the_low_target.arch_setup.
10435 Otherwise, keep status pending, and return.
10436 (linux_resume_one_lwp_throw): Don't call get_pc if
10437 thread->while_stepping isn't NULL. Don't call
10438 get_thread_regcache if proc->tdesc is NULL.
10439 (need_step_over_p): Return 0 if proc->tdesc is NULL.
10440 (linux_target_ops): Install arch_setup.
10441 * server.c (start_inferior): Call the_target->arch_setup.
10442 * target.h (struct target_ops) <arch_setup>: New field.
10443 (target_arch_setup): New marco.
10444 * lynx-low.c (lynx_target_ops): Update.
10445 * nto-low.c (nto_target_ops): Update.
10446 * spu-low.c (spu_target_ops): Update.
10447 * win32-low.c (win32_target_ops): Update.
10449 2015-07-24 Yao Qi <yao.qi@linaro.org>
10451 * linux-low.c (linux_add_process): Don't set
10452 proc->priv->new_inferior.
10453 (linux_create_inferior): Set proc->priv->new_inferior to 1.
10454 (linux_attach): Likewise.
10456 2015-07-24 Yao Qi <yao.qi@linaro.org>
10458 * server.c (start_inferior): Code refactor.
10460 2015-07-24 Yao Qi <yao.qi@linaro.org>
10462 * server.c (process_serial_event): Set general_thread.
10464 2015-07-21 Yao Qi <yao.qi@linaro.org>
10466 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
10467 aarch64_linux_get_debug_reg_capacity.
10469 2015-07-17 Yao Qi <yao.qi@linaro.org>
10471 * Makefile.in (aarch64-linux-hw-point.o): New rule.
10472 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
10473 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
10474 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
10475 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
10476 (AARCH64_HWP_ALIGNMENT): Likewise.
10477 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
10478 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
10479 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
10480 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
10481 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
10482 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
10483 (struct aarch64_debug_reg_state): Likewise.
10484 (struct arch_lwp_info): Likewise.
10485 (aarch64_align_watchpoint): Likewise.
10486 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
10487 (aarch64_watchpoint_length): Likewise.
10488 (aarch64_point_encode_ctrl_reg): Likewise
10489 (aarch64_point_is_aligned): Likewise.
10490 (aarch64_align_watchpoint): Likewise.
10491 (aarch64_linux_set_debug_regs):
10492 (aarch64_dr_state_insert_one_point): Likewise.
10493 (aarch64_dr_state_remove_one_point): Likewise.
10494 (aarch64_handle_breakpoint): Likewise.
10495 (aarch64_handle_aligned_watchpoint): Likewise.
10496 (aarch64_handle_unaligned_watchpoint): Likewise.
10497 (aarch64_handle_watchpoint): Likewise.
10499 2015-07-17 Yao Qi <yao.qi@linaro.org>
10501 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
10502 and don't aarch64_get_debug_reg_state. All callers update.
10503 (aarch64_handle_aligned_watchpoint): Likewise.
10504 (aarch64_handle_unaligned_watchpoint): Likewise.
10505 (aarch64_handle_watchpoint): Likewise.
10506 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
10507 (aarch64_remove_point): Likewise.
10509 2015-07-17 Yao Qi <yao.qi@linaro.org>
10511 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
10513 (aarch64_handle_unaligned_watchpoint): Likewise.
10515 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10517 Revert the previous 3 commits:
10518 Move gdb_regex* to common/
10519 Move linux_find_memory_regions_full & co.
10520 gdbserver build-id attribute generator
10522 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10523 Jan Kratochvil <jan.kratochvil@redhat.com>
10525 gdbserver build-id attribute generator.
10526 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
10527 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
10528 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
10530 (get_dynamic): Use find_pdhr to traverse program headers.
10531 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
10532 (compare_mapping_entry_range, struct find_memory_region_callback_data)
10533 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
10534 (get_hex_build_id): New.
10535 (linux_qxfer_libraries_svr4): Add optional build-id attribute
10536 to reply XML document.
10538 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10539 Jan Kratochvil <jan.kratochvil@redhat.com>
10541 * target.c: Include target/target-utils.h and fcntl.h.
10542 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
10543 (target_fileio_read_stralloc): New functions.
10545 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10547 * Makefile.in (OBS): Add gdb_regex.o.
10548 (gdb_regex.o): New.
10549 * config.in: Rebuilt.
10550 * configure: Rebuilt.
10552 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10553 Jan Kratochvil <jan.kratochvil@redhat.com>
10555 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
10556 * Makefile.in (OBS): Add target-utils.o.
10557 (linux-maps.o, target-utils.o): New.
10558 * configure.srv (srv_linux_obj): Add linux-maps.o.
10560 2015-07-15 Pierre Langlois <pierre.langlois@arm.com>
10562 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
10563 function, return 1.
10564 (the_low_target): Install it.
10566 2015-07-14 Pedro Alves <palves@redhat.com>
10568 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
10569 Instead, ignore ECHILD, and throw an error for other errnos.
10571 2015-07-10 Pedro Alves <palves@redhat.com>
10573 * event-loop.c (struct callback_event) <data>: Change type to
10574 gdb_client_data instance instead of gdb_client_data pointer.
10575 (append_callback_event): Adjust.
10577 2015-07-10 Pierre Langlois <pierre.langlois@arm.com>
10579 * linux-aarch64-low.c: Add comments for each linux_target_ops
10580 method. Remove comments already covered in target_ops and
10581 linux_target_ops definitions.
10582 (the_low_target): Add comments for each unimplemented method.
10584 2015-07-09 Yao Qi <yao.qi@linaro.org>
10586 * linux-aarch64-low.c (aarch64_regmap): Remove.
10587 (aarch64_usrregs_info): Remove.
10588 (regs_info): Set field usrregs to NULL.
10590 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
10592 * linux-low.c: Include "rsp-low.h"
10593 (linux_low_encode_pt_config, linux_low_encode_raw): New.
10594 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
10595 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
10596 (handle_btrace_enable_pt): New.
10597 (handle_btrace_general_set): Support "pt".
10598 (handle_btrace_conf_general_set): Support "pt:size".
10600 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10602 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
10605 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10607 * linux-aarch64-low.c: Remove comment about endianness.
10608 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
10609 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
10612 2015-06-24 Gary Benson <gbenson@redhat.com>
10614 * linux-i386-ipa.c (stdint.h): Do not include.
10615 * lynx-i386-low.c (stdint.h): Likewise.
10616 * lynx-ppc-low.c (stdint.h): Likewise.
10617 * mem-break.c (stdint.h): Likewise.
10618 * thread-db.c (stdint.h): Likewise.
10619 * tracepoint.c (stdint.h): Likewise.
10620 * win32-low.c (stdint.h): Likewise.
10622 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
10624 * server.c (write_qxfer_response): Update call to
10625 remote_escape_output.
10627 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
10628 Jan Kratochvil <jan.kratochvil@redhat.com>
10630 Merge multiple hex conversions.
10631 * gdbreplay.c (tohex): Rename to 'fromhex'.
10632 (logchar): Use fromhex.
10634 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10636 * server.c (handle_qxfer_libraries): Set `version' attribute for
10639 2015-06-10 Gary Benson <gbenson@redhat.com>
10641 * target.h (struct target_ops) <multifs_open>: New field.
10642 <multifs_unlink>: Likewise.
10643 <multifs_readlink>: Likewise.
10644 * linux-low.c (nat/linux-namespaces.h): New include.
10645 (linux_target_ops): Initialize the_target->multifs_open,
10646 the_target->multifs_unlink and the_target->multifs_readlink.
10647 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
10648 * hostio.c (hostio_fs_pid): New static variable.
10649 (hostio_handle_new_gdb_connection): New function.
10650 (handle_setfs): Likewise.
10651 (handle_open): Use the_target->multifs_open as appropriate.
10652 (handle_unlink): Use the_target->multifs_unlink as appropriate.
10653 (handle_readlink): Use the_target->multifs_readlink as
10655 (handle_vFile): Handle vFile:setfs packets.
10656 * server.c (handle_query): Call hostio_handle_new_gdb_connection
10657 after target_handle_new_gdb_connection.
10659 2015-06-10 Gary Benson <gbenson@redhat.com>
10661 * configure.ac (AC_CHECK_FUNCS): Add setns.
10662 * config.in: Regenerate.
10663 * configure: Likewise.
10664 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
10665 (linux-namespaces.o): New rule.
10666 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
10668 2015-06-09 Gary Benson <gbenson@redhat.com>
10670 * hostio.c (handle_open): Process mode argument with
10671 fileio_to_host_mode.
10673 2015-06-01 Yao Qi <yao.qi@linaro.org>
10675 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
10676 * linux-x86-low.c: Likewise.
10678 2015-05-28 Don Breazeal <donb@codesourcery.com>
10680 * linux-low.c (handle_extended_wait): Initialize
10681 thread_info.last_resume_kind for new fork children.
10683 2015-05-15 Pedro Alves <palves@redhat.com>
10685 * target.h (target_handle_new_gdb_connection): Rewrite using if
10686 wrapped in do/while.
10688 2015-05-14 Joel Brobecker <brobecker@adacore.com>
10690 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
10691 * configure, config.in: Regenerate.
10692 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
10695 2015-05-12 Don Breazeal <donb@codesourcery.com>
10697 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
10698 PTRACE_EVENT_VFORK_DONE.
10699 (linux_low_ptrace_options, extended_event_reported): Add vfork
10701 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
10702 and "vforkdone" for RSP 'T' Stop Reply Packet.
10703 * server.h (report_vfork_events): Declare
10706 2015-05-12 Don Breazeal <donb@codesourcery.com>
10708 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
10709 (the_low_target) <new_fork>: Initialize new member.
10710 * linux-arm-low.c (arm_new_fork): New function.
10711 (the_low_target) <new_fork>: Initialize new member.
10712 * linux-low.c (handle_extended_wait): Call new target function
10714 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
10715 * linux-mips-low.c (mips_add_watchpoint): New function
10716 extracted from mips_insert_point.
10717 (the_low_target) <new_fork>: Initialize new member.
10718 (mips_linux_new_fork): New function.
10719 (mips_insert_point): Call mips_add_watchpoint.
10720 * linux-x86-low.c (x86_linux_new_fork): New function.
10721 (the_low_target) <new_fork>: Initialize new member.
10723 2015-05-12 Don Breazeal <donb@codesourcery.com>
10725 * linux-low.c (handle_extended_wait): Implement return value,
10726 rename argument 'event_child' to 'event_lwp', handle
10727 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
10728 (linux_low_ptrace_options): New function.
10729 (linux_low_filter_event): Call linux_low_ptrace_options,
10730 use different argument fo linux_enable_event_reporting,
10731 use return value from handle_extended_wait.
10732 (extended_event_reported): New function.
10733 (linux_wait_1): Call extended_event_reported and set
10734 status to report fork events.
10735 (linux_write_memory): Add pid to debug message.
10736 (reset_lwp_ptrace_options_callback): New function.
10737 (linux_handle_new_gdb_connection): New function.
10738 (linux_target_ops): Initialize new structure member.
10739 * linux-low.h (struct lwp_info) <waitstatus>: New member.
10740 * lynx-low.c: Initialize new structure member.
10741 * remote-utils.c (prepare_resume_reply): Implement stop reason
10742 "fork" for "T" stop message.
10743 * server.c (handle_query): Call handle_new_gdb_connection.
10744 * server.h (report_fork_events): Declare global flag.
10745 * target.h (struct target_ops) <handle_new_gdb_connection>:
10747 (target_handle_new_gdb_connection): New macro.
10748 * win32-low.c: Initialize new structure member.
10750 2015-05-12 Don Breazeal <donb@codesourcery.com>
10752 * mem-break.c (APPEND_TO_LIST): Define macro.
10753 (clone_agent_expr): New function.
10754 (clone_one_breakpoint): New function.
10755 (clone_all_breakpoints): New function.
10756 * mem-break.h: Declare new functions.
10758 2015-05-12 Don Breazeal <donb@codesourcery.com>
10760 * linux-low.c (linux_supports_fork_events): New function.
10761 (linux_supports_vfork_events): New function.
10762 (linux_target_ops): Initialize new structure members.
10763 (initialize_low): Call linux_check_ptrace_features.
10764 * lynx-low.c (lynx_target_ops): Initialize new structure
10766 * server.c (report_fork_events, report_vfork_events):
10768 (handle_query): Add new features to qSupported packet and
10770 (captured_main): Initialize new global variables.
10771 * target.h (struct target_ops) <supports_fork_events>:
10773 <supports_vfork_events>: New member.
10774 (target_supports_fork_events): New macro.
10775 (target_supports_vfork_events): New macro.
10776 * win32-low.c (win32_target_ops): Initialize new structure
10779 2015-05-12 Gary Benson <gbenson@redhat.com>
10781 * server.c (handle_qxfer_exec_file): Use current process
10784 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
10786 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
10787 Remove HAVE_PTRACE_GETREGS conditionals.
10788 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
10789 instead of PTRACE_GETREGS and PTRACE_SETREGS.
10791 2015-05-08 Yao Qi <yao.qi@linaro.org>
10793 * linux-low.c (linux_supports_conditional_breakpoints): New
10795 (linux_target_ops): Install new target method.
10796 * lynx-low.c (lynx_target_ops): Install NULL hook for
10797 supports_conditional_breakpoints.
10798 * nto-low.c (nto_target_ops): Likewise.
10799 * spu-low.c (spu_target_ops): Likewise.
10800 * win32-low.c (win32_target_ops): Likewise.
10801 * server.c (handle_query): Check
10802 target_supports_conditional_breakpoints.
10803 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10805 (target_supports_conditional_breakpoints): New macro.
10807 2015-05-06 Pedro Alves <palves@redhat.com>
10810 * server.c (start_inferior): If the process exits, mourn it.
10812 2015-04-21 Gary Benson <gbenson@redhat.com>
10814 * hostio.c (fileio_open_flags_to_host): Factored out to
10815 fileio_to_host_openflags in common/fileio.c. Single use
10818 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
10820 * linux-xtensa-low.c (xtensa_fill_gregset)
10821 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
10824 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
10826 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
10827 (regs_info): Replace usrregs pointer with NULL.
10829 2015-04-17 Gary Benson <gbenson@redhat.com>
10831 * target.h (struct target_ops) <pid_to_exec_file>: New field.
10832 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
10833 * server.c (handle_qxfer_exec_file): New function.
10834 (qxfer_packets): Add exec-file entry.
10835 (handle_query): Report qXfer:exec-file:read as supported packet.
10837 2015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
10839 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
10841 2015-04-09 Gary Benson <gbenson@redhat.com>
10843 * hostio-errno.c (errno_to_fileio_error): Remove function.
10844 Update caller to use remote_fileio_to_fio_error.
10846 2015-04-09 Yao Qi <yao.qi@linaro.org>
10848 * linux-low.c (linux_insert_point): Call
10849 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
10850 (linux_remove_point): Call remove_memory_breakpoint if type is
10852 * linux-x86-low.c (x86_insert_point): Don't call
10853 insert_memory_breakpoint.
10854 (x86_remove_point): Don't call remove_memory_breakpoint.
10856 2015-04-01 Pedro Alves <palves@redhat.com>
10857 Cleber Rosa <crosa@redhat.com>
10859 * server.c (gdbserver_usage): Reorganize and extend the usage
10862 2015-03-24 Pedro Alves <palves@redhat.com>
10864 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
10865 output. Also dump TRAP_TRACE.
10866 (linux_low_filter_event): In debug output, distinguish a
10867 resume_stop SIGSTOP from a delayed SIGSTOP.
10869 2015-03-24 Gary Benson <gbenson@redhat.com>
10871 * linux-x86-low.c (x86_linux_new_thread): Moved to
10873 (x86_linux_prepare_to_resume): Likewise.
10875 2015-03-24 Gary Benson <gbenson@redhat.com>
10877 * Makefile.in (x86-linux-dregs.o): New rule.
10878 * configure.srv: Add x86-linux-dregs.o to relevant targets.
10879 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
10880 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
10881 (x86_linux_dr_get): Likewise.
10882 (x86_linux_dr_set): Likewise.
10883 (update_debug_registers_callback): Likewise.
10884 (x86_linux_dr_set_addr): Likewise.
10885 (x86_linux_dr_get_addr): Likewise.
10886 (x86_linux_dr_set_control): Likewise.
10887 (x86_linux_dr_get_control): Likewise.
10888 (x86_linux_dr_get_status): Likewise.
10889 (x86_linux_update_debug_registers): Likewise.
10891 2015-03-24 Gary Benson <gbenson@redhat.com>
10893 * linux-x86-low.c (x86_linux_update_debug_registers):
10894 New function, factored out from...
10895 (x86_linux_prepare_to_resume): ...this.
10897 2015-03-24 Gary Benson <gbenson@redhat.com>
10899 * linux-x86-low.c (x86_linux_dr_get): Update comments.
10900 (x86_linux_dr_set): Likewise.
10901 (update_debug_registers_callback): Likewise.
10902 (x86_linux_dr_set_addr): Likewise.
10903 (x86_linux_dr_get_addr): Likewise.
10904 (x86_linux_dr_set_control): Likewise.
10905 (x86_linux_dr_get_control): Likewise.
10906 (x86_linux_dr_get_status): Likewise.
10907 (x86_linux_prepare_to_resume): Likewise.
10909 2015-03-24 Gary Benson <gbenson@redhat.com>
10911 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
10912 Use perror_with_name. Pass string through gettext.
10913 (x86_linux_dr_set): Likewise.
10915 2015-03-24 Gary Benson <gbenson@redhat.com>
10917 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
10918 (x86_linux_dr_set_addr): ...this.
10919 (x86_dr_low_get_addr): Rename to...
10920 (x86_linux_dr_get_addr): ...this.
10921 (x86_dr_low_set_control): Rename to...
10922 (x86_linux_dr_set_control): ...this.
10923 (x86_dr_low_get_control): Rename to...
10924 (x86_linux_dr_get_control): ...this.
10925 (x86_dr_low_get_status): Rename to...
10926 (x86_linux_dr_get_status): ...this.
10927 (x86_dr_low): Update with new function names.
10929 2015-03-24 Gary Benson <gbenson@redhat.com>
10931 * Makefile.in (x86-linux.o): New rule.
10932 * configure.srv: Add x86-linux.o to relevant targets.
10933 * linux-low.c (lwp_set_arch_private_info): New function.
10934 (lwp_arch_private_info): Likewise.
10935 * linux-x86-low.c: Include nat/x86-linux.h.
10936 (arch_lwp_info): Removed structure.
10937 (update_debug_registers_callback):
10938 Use lwp_set_debug_registers_changed.
10939 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
10940 and lwp_set_debug_registers_changed.
10941 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
10943 2015-03-24 Gary Benson <gbenson@redhat.com>
10945 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
10946 * linux-arm-low.c (arm_new_thread): Likewise.
10947 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
10948 * linux-mips-low.c (mips_linux_new_thread): Likewise.
10949 * linux-x86-low.c (x86_linux_new_thread): Likewise.
10950 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
10952 2015-03-24 Gary Benson <gbenson@redhat.com>
10954 * linux-low.c (ptid_of_lwp): New function.
10955 (lwp_is_stopped): Likewise.
10956 (lwp_stop_reason): Likewise.
10957 * linux-x86-low.c (update_debug_registers_callback):
10958 Use lwp_is_stopped.
10959 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
10962 2015-03-24 Gary Benson <gbenson@redhat.com>
10964 * linux-low.h (linux_stop_lwp): Remove declaration.
10966 2015-03-24 Gary Benson <gbenson@redhat.com>
10968 * linux-low.h: Include nat/linux-nat.h.
10969 * linux-low.c (iterate_over_lwps_args): New structure.
10970 (iterate_over_lwps_filter): New function.
10971 (iterate_over_lwps): Likewise.
10972 * linux-x86-low.c (update_debug_registers_callback):
10973 Update signature to what iterate_over_lwps expects.
10974 Remove PID check that iterate_over_lwps now performs.
10975 (x86_dr_low_set_addr): Use iterate_over_lwps.
10976 (x86_dr_low_set_control): Likewise.
10978 2015-03-24 Gary Benson <gbenson@redhat.com>
10980 * linux-x86-low.c (x86_debug_reg_state): New function.
10981 (x86_linux_prepare_to_resume): Use the above.
10983 2015-03-24 Gary Benson <gbenson@redhat.com>
10985 * linux-low.c (current_lwp_ptid): New function.
10986 * linux-x86-low.c: Include nat/linux-nat.h.
10987 (x86_dr_low_get_addr): Use current_lwp_ptid.
10988 (x86_dr_low_get_control): Likewise.
10989 (x86_dr_low_get_status): Likewise.
10991 2015-03-20 Pedro Alves <palves@redhat.com>
10993 * tracepoint.c (cmd_qtstatus): Make "str" const.
10995 2015-03-20 Pedro Alves <palves@redhat.com>
10997 * server.c (handle_general_set): Make "req_str" const.
10999 2015-03-19 Pedro Alves <palves@redhat.com>
11001 * linux-low.c (linux_resume_one_lwp): Rename to ...
11002 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
11003 instead call perror_with_name.
11004 (check_ptrace_stopped_lwp_gone): New function.
11005 (linux_resume_one_lwp): Reimplement as wrapper around
11006 linux_resume_one_lwp_throw that swallows errors if the LWP is
11009 2015-03-19 Pedro Alves <palves@redhat.com>
11011 * linux-low.c (count_events_callback, select_event_lwp_callback):
11012 No longer check whether the thread has resume_stop as last resume
11015 2015-03-19 Pedro Alves <palves@redhat.com>
11017 * linux-low.c (count_events_callback, select_event_lwp_callback):
11018 Use the lwp's status_pending_p field, not the thread's.
11020 2015-03-19 Pedro Alves <palves@redhat.com>
11022 * linux-low.c (select_event_lwp_callback): Update comments to
11023 no longer mention SIGTRAP.
11025 2015-03-18 Gary Benson <gbenson@redhat.com>
11027 * server.c (handle_query): Do not report vFile:fstat as supported.
11029 2015-03-11 Gary Benson <gbenson@redhat.com>
11031 * hostio.c (sys/types.h): New include.
11032 (sys/stat.h): Likewise.
11033 (common-remote-fileio.h): Likewise.
11034 (handle_fstat): New function.
11035 (handle_vFile): Handle vFile:fstat packets.
11037 2015-03-11 Gary Benson <gbenson@redhat.com>
11039 * configure.ac (AC_CHECK_MEMBERS): Add checks for
11040 struct stat.st_blocks and struct stat.st_blksize.
11041 * configure: Regenerate.
11042 * config.in: Likewise.
11043 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
11044 (OBS): Add common-remote-fileio.o.
11045 (common-remote-fileio.o): New rule.
11047 2015-03-09 Pedro Alves <palves@redhat.com>
11049 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
11050 'struct sockaddr' pointer in 'accept' call.
11052 2015-03-09 Pedro Alves <palves@redhat.com>
11055 2015-03-07 Pedro Alves <palves@redhat.com>
11056 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11057 or <winsock2.h> here. Instead include "gdb_socket.h".
11058 (remote_open): Use union gdb_sockaddr_u.
11059 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11060 or <winsock2.h> here. Instead include "gdb_socket.h".
11061 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11062 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11064 (init_named_socket, gdb_agent_helper_thread): Use union
11067 2015-03-07 Pedro Alves <palves@redhat.com>
11069 * configure.ac (build_warnings): Move
11070 -Wdeclaration-after-statement to the C-specific set.
11071 * configure: Regenerate.
11073 2015-03-07 Pedro Alves <palves@redhat.com>
11075 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11076 or <winsock2.h> here. Instead include "gdb_socket.h".
11077 (remote_open): Use union gdb_sockaddr_u.
11078 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11079 or <winsock2.h> here. Instead include "gdb_socket.h".
11080 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11081 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11083 (init_named_socket, gdb_agent_helper_thread): Use union
11086 2015-03-07 Pedro Alves <palves@redhat.com>
11088 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
11091 2015-03-06 Yao Qi <yao.qi@linaro.org>
11093 * linux-aarch64-low.c (aarch64_insert_point): Use
11094 show_debug_regs as a boolean.
11095 (aarch64_remove_point): Likewise.
11097 2015-03-05 Pedro Alves <palves@redhat.com>
11099 * lynx-low.c (lynx_target_ops): Install NULL hooks for
11100 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
11101 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
11102 * nto-low.c (nto_target_ops): Likewise.
11103 * spu-low.c (spu_target_ops): Likewise.
11104 * win32-low.c (win32_target_ops): Likewise.
11106 2015-03-04 Pedro Alves <palves@redhat.com>
11108 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
11109 Decide whether a breakpoint triggered based on the SIGTRAP's
11111 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
11112 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
11113 (linux_low_filter_event): Check for breakpoints before checking
11115 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
11117 (linux_stopped_by_sw_breakpoint)
11118 (linux_supports_stopped_by_sw_breakpoint)
11119 (linux_stopped_by_hw_breakpoint)
11120 (linux_supports_stopped_by_hw_breakpoint): New functions.
11121 (linux_target_ops): Install new target methods.
11123 2015-03-04 Pedro Alves <palves@redhat.com>
11125 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
11126 * server.c (swbreak_feature, hwbreak_feature): New globals.
11127 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
11128 (captured_main): Clear swbreak_feature and hwbreak_feature.
11129 * server.h (swbreak_feature, hwbreak_feature): Declare.
11130 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
11131 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
11132 supports_stopped_by_hw_breakpoint>: New fields.
11133 (target_supports_stopped_by_sw_breakpoint)
11134 (target_stopped_by_sw_breakpoint)
11135 (target_supports_stopped_by_hw_breakpoint)
11136 (target_stopped_by_hw_breakpoint): Declare.
11138 2015-03-04 Pedro Alves <palves@redhat.com>
11140 enum lwp_stop_reason -> enum target_stop_reason
11141 * linux-low.c (check_stopped_by_breakpoint): Adjust.
11142 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
11143 (linux_wait_1, stuck_in_jump_pad_callback)
11144 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
11145 (linux_stopped_by_watchpoint):
11146 * linux-low.h (enum lwp_stop_reason): Delete.
11147 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
11148 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11150 2015-03-04 Yao Qi <yao.qi@linaro.org>
11152 * Makefile.in (SFILES): Add linux-aarch64-low.c.
11154 2015-03-03 Gary Benson <gbenson@redhat.com>
11156 * hostio.c (handle_vFile): Fix prefix lengths.
11158 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
11160 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
11163 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
11165 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
11166 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
11167 (clean): Add "rm -f" for above C files.
11168 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
11169 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
11170 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
11171 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
11172 * linux-s390-low.c (HWCAP_S390_VX): New macro.
11173 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
11174 (init_registers_s390x_vx_linux64)
11175 (init_registers_s390x_tevx_linux64)
11176 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
11177 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
11179 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
11180 (s390_store_vxrs_high): New functions.
11181 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
11183 (s390_arch_setup): Add logic for selecting one of the new target
11184 descriptions. Activate the new vector regsets if applicable.
11185 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
11186 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
11187 and init_registers_s390x_tevx_linux64.
11189 2015-03-01 Pedro Alves <palves@redhat.com>
11191 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
11194 2015-02-27 Pedro Alves <palves@redhat.com>
11196 * linux-x86-low.c (u_debugreg_offset): New function.
11197 (x86_linux_dr_get, x86_linux_dr_set): Use it.
11199 2015-02-27 Pedro Alves <palves@redhat.com>
11201 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
11202 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
11203 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
11204 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
11205 (ps_lsetfpregs, ps_getpid)
11206 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
11207 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
11208 (ps_lsetxregs, ps_plog): Declare.
11210 2015-02-27 Pedro Alves <palves@redhat.com>
11212 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
11213 IP_AGENT_EXPORT_FUNC.
11214 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
11215 IP_AGENT_EXPORT_FUNC.
11216 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
11217 (IP_AGENT_EXPORT): Delete.
11218 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11219 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11220 (gdb_trampoline_buffer_error, collecting, gdb_collect)
11221 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
11222 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
11223 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
11224 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
11225 (traceframe_read_count, traceframe_write_count)
11226 (traceframes_created, trace_state_variables, get_raw_reg)
11227 (get_trace_state_variable_value, set_trace_state_variable_value)
11228 (ust_loaded, helper_thread_id, cmd_buf): Use
11229 IPA_SYM_EXPORTED_NAME.
11230 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
11231 (tracepoints) Use IP_AGENT_EXPORT_VAR.
11232 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
11233 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11234 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
11235 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
11236 EXTERN_C_PUSH/EXTERN_C_POP.
11237 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
11238 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
11239 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11240 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
11241 (traceframe_write_count, traceframe_read_count)
11242 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
11243 (about_to_request_buffer_space, get_trace_state_variable_value)
11244 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
11245 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
11246 EXTERN_C_PUSH/EXTERN_C_POP.
11247 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
11248 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
11249 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
11250 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11251 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11252 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11253 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
11254 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
11256 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
11257 (IP_AGENT_EXPORT_VAR_DECL): Define.
11258 (tracing): Declare.
11259 (gdb_agent_get_raw_reg): Declare.
11261 2015-02-27 Tom Tromey <tromey@redhat.com>
11262 Pedro Alves <palves@redhat.com>
11264 Rename symbols whose names are reserved C++ keywords throughout.
11266 2015-02-27 Pedro Alves <palves@redhat.com>
11268 * Makefile.in (COMPILER): New, get it from autoconf.
11269 (CXX): Get from autoconf instead.
11270 (COMPILE.pre): Use COMPILER.
11271 (CC-LD): Rename to ...
11272 (CC_LD): ... this. Use COMPILER.
11273 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
11274 (CXX_FOR_TARGET): Default to g++ instead of gcc.
11275 * acinclude.m4: Include build-with-cxx.m4.
11276 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
11277 Disable -Werror by default if building in C++ mode.
11278 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
11279 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
11280 the C++ compiler. Save/restore CXXFLAGS too.
11281 * configure: Regenerate.
11283 2015-02-27 Pedro Alves <palves@redhat.com>
11285 * acinclude.m4: Include libiberty.m4.
11286 * configure.ac: Call libiberty_INIT.
11287 * config.in, configure: Regenerate.
11289 2015-02-26 Pedro Alves <palves@redhat.com>
11291 * linux-low.c (linux_wait_1): When incrementing the PC past a
11292 program breakpoint always use the_low_target.breakpoint_len as
11293 increment, rather than the maximum between that and
11294 the_low_target.decr_pc_after_break.
11296 2015-02-23 Pedro Alves <palves@redhat.com>
11298 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
11299 thread was doing a step-over; always adjust the PC if
11300 we stepped over a permanent breakpoint.
11301 (linux_wait_1): If we stepped over breakpoint that was on top of a
11302 permanent breakpoint, manually advance the PC past it.
11304 2015-02-23 Pedro Alves <palves@redhat.com>
11306 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
11308 (x86_fill_gregset, x86_store_gregset): Use it when handling
11311 2015-02-20 Pedro Alves <palves@redhat.com>
11313 * thread-db.c: Include "nat/linux-procfs.h".
11314 (thread_db_init): Skip listing new threads if the kernel supports
11315 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
11317 2015-02-20 Pedro Alves <palves@redhat.com>
11319 * linux-low.c (status_pending_p_callback): Use ptid_match.
11321 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
11323 PR breakpoints/16812
11324 * linux-low.c (wstatus_maybe_breakpoint): Remove.
11325 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
11326 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
11328 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
11330 PR breakpoints/15956
11331 * tracepoint.c (cmd_qtinit): Add check for current_thread.
11333 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11335 * linux-low.c (linux_low_btrace_conf): Print size.
11336 * server.c (handle_btrace_conf_general_set): New.
11337 (hanle_general_set): Call handle_btrace_conf_general_set.
11338 (handle_query): Report Qbtrace-conf:bts:size as supported.
11340 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11342 * linux-low.c (linux_low_enable_btrace): Update parameters.
11343 (linux_low_btrace_conf): New.
11344 (linux_target_ops)<to_btrace_conf>: Initialize.
11345 * server.c (current_btrace_conf): New.
11346 (handle_btrace_enable): Rename to ...
11347 (handle_btrace_enable_bts): ... this. Pass ¤t_btrace_conf
11348 to target_enable_btrace. Update comment. Update users.
11349 (handle_qxfer_btrace_conf): New.
11350 (qxfer_packets): Add btrace-conf entry.
11351 (handle_query): Report qXfer:btrace-conf:read as supported packet.
11352 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
11353 (target_ops)<read_btrace_conf>: New.
11354 (target_enable_btrace): Update parameters.
11355 (target_read_btrace_conf): New.
11357 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11359 * server.c (handle_btrace_general_set): Remove call to
11360 target_supports_btrace.
11361 (supported_btrace_packets): New.
11362 (handle_query): Call supported_btrace_packets.
11363 * target.h: include btrace-common.h.
11364 (btrace_target_info): Removed.
11365 (supports_btrace, target_supports_btrace): Update parameters.
11367 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11369 * Makefile.in (SFILES): Add common/btrace-common.c.
11370 (OBS): Add common/btrace-common.o.
11371 (btrace-common.o): Add build rules.
11372 * linux-low: Include btrace-common.h.
11373 (linux_low_read_btrace): Use struct btrace_data. Call
11374 btrace_data_init and btrace_data_fini.
11376 2015-02-06 Pedro Alves <palves@redhat.com>
11378 * thread-db.c (find_new_threads_callback): Add debug output.
11380 2015-02-04 Pedro Alves <palves@redhat.com>
11382 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
11383 (resume_stopped_resumed_lwps): New function.
11384 (linux_wait_for_event_filtered): Use it.
11386 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11388 * Makefile.in (SFILES): Add linux-personality.c.
11389 (linux-personality.o): New rule.
11390 * configure.srv (srv_linux_obj): Add linux-personality.o to the
11391 list of objects to be built.
11392 * linux-low.c: Include nat/linux-personality.h.
11393 (linux_create_inferior): Remove code to disable address space
11394 randomization (moved to ../nat/linux-personality.c). Create
11395 cleanup to disable address space randomization.
11397 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11399 * Makefile.in (posix-strerror.o): New rule.
11400 (mingw-strerror.o): Likewise.
11401 * configure: Regenerated.
11402 * configure.ac: Source file ../common/common.host. Initialize new
11403 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
11405 2015-01-14 Yao Qi <yao@codesourcery.com>
11407 * Makefile.in (SFILES): Add nat/ppc-linux.c.
11408 (ppc-linux.o): New rule.
11409 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
11410 * configure.ac: AC_CHECK_FUNCS(getauxval).
11411 * config.in: Re-generated.
11412 * configure: Re-generated.
11413 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
11414 ppc64_64bit_inferior_p
11416 2015-01-14 Yao Qi <yao@codesourcery.com>
11418 * linux-ppc-low.c: Include "nat/ppc-linux.h".
11419 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
11420 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
11421 (PT_ORIG_R3, PT_TRAP): Likewise.
11422 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
11423 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
11424 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
11426 2015-01-10 Joel Brobecker <brobecker@adacore.com>
11428 * i387-fp.c (i387_cache_to_xsave): In look over
11429 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
11430 zmmh_low_space field by use of zmmh_high_space.
11432 2015-01-09 Pedro Alves <palves@redhat.com>
11434 * linux-low.c (step_over_bkpt): Move higher up in the file.
11435 (handle_extended_wait): Don't store the stop_pc here.
11436 (get_stop_pc): Adjust comments and rename to ...
11437 (check_stopped_by_breakpoint): ... this. Record whether the LWP
11438 stopped for a software breakpoint or hardware breakpoint.
11439 (thread_still_has_status_pending_p): New function.
11440 (status_pending_p_callback): Use
11441 thread_still_has_status_pending_p. If the event is no longer
11442 interesting, resume the LWP.
11443 (handle_tracepoints): Add assert.
11444 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
11445 (wstatus_maybe_breakpoint): New function.
11446 (cancel_breakpoint): Delete function.
11447 (check_stopped_by_watchpoint): New function, factored out from
11448 linux_low_filter_event.
11449 (lp_status_maybe_breakpoint): Delete function.
11450 (linux_low_filter_event): Remove filter_ptid argument.
11451 Leave thread group exits pending here. Store the LWP's stop PC.
11452 Always leave events pending.
11453 (linux_wait_for_event_filtered): Pull all events out of the
11454 kernel, and leave them all pending.
11455 (count_events_callback, select_event_lwp_callback): Consider all
11457 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
11458 (select_event_lwp): Only give preference to the stepping LWP in
11459 all-stop mode. Adjust comments.
11460 (ignore_event): New function.
11461 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
11462 references to cancel_breakpoints. Adjust to renames. Also give
11463 equal priority to all LWPs that have had events in non-stop mode.
11464 If reporting a software breakpoint event, unadjust the LWP's PC.
11465 (linux_wait): If linux_wait_1 returned an ignored event, retry.
11466 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
11468 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
11469 (resume_status_pending_p): Use thread_still_has_status_pending_p.
11470 (linux_stopped_by_watchpoint): Adjust.
11471 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
11472 * linux-low.h (enum lwp_stop_reason): New.
11473 (struct lwp_info) <stop_pc>: Adjust comment.
11474 <stopped_by_watchpoint>: Delete field.
11475 <stop_reason>: New field.
11476 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11477 * mem-break.c (software_breakpoint_inserted_here)
11478 (hardware_breakpoint_inserted_here): New function.
11479 * mem-break.h (software_breakpoint_inserted_here)
11480 (hardware_breakpoint_inserted_here): Declare.
11481 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
11482 (cancel_breakpoints): Delete.
11483 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
11484 (upload_fast_traceframes): Remove references to
11485 cancel_breakpoints.
11487 2015-01-09 Pedro Alves <palves@redhat.com>
11489 * thread-db.c (find_new_threads_callback): Ignore thread if the
11490 kernel thread ID is -1.
11492 2015-01-09 Pedro Alves <palves@redhat.com>
11494 * linux-low.c (linux_attach_fail_reason_string): Move to
11495 nat/linux-ptrace.c, and rename.
11496 (linux_attach_lwp): Update comment.
11497 (attach_proc_task_lwp_callback): New function.
11498 (linux_attach): Adjust to rename and use
11499 linux_proc_attach_tgid_threads.
11500 (linux_attach_fail_reason_string): Delete declaration.
11502 2015-01-01 Joel Brobecker <brobecker@adacore.com>
11504 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
11505 * server.c (gdbserver_version): Likewise.
11507 2014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
11509 * remote-utils.c: Include ctype.h.
11510 (input_interrupt): Explicitly handle the case when the char
11511 received is the NUL byte. Improve the printing of non-ASCII
11514 2014-12-16 Joel Brobecker <brobecker@adacore.com>
11516 * linux-low.c (linux_low_filter_event): Update call to
11517 linux_enable_event_reporting following the addition of
11518 a new parameter to that function.
11520 2014-12-16 Catalin Udma <catalin.udma@freescale.com>
11523 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
11524 (AARCH64_FPCR_REGNO): Likewise.
11525 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
11526 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
11527 (aarch64_store_fpregset): Likewise.
11529 2014-12-15 Joel Brobecker <brobecker@adacore.com>
11531 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
11532 Remove FIXME comment about assumption about N.
11534 2014-12-13 Joel Brobecker <brobecker@adacore.com>
11536 * configure.ac: If large-file support is disabled in GDBserver,
11537 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
11538 * configure: Regenerate.
11540 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11542 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
11543 warning upon ENODATA from ptrace.
11544 * linux-s390-low.c (s390_store_tdb): New.
11545 (s390_regsets): Add regset for NT_S390_TDB.
11547 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11549 * linux-low.c (regsets_store_inferior_registers): Skip regsets
11550 without a fill_function.
11551 * linux-s390-low.c (s390_fill_last_break): Remove.
11552 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
11553 (s390_arch_setup): Use regset's size instead of fill_function for
11554 loop end condition.
11556 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11558 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
11559 the regset's store function when ptrace returned an error.
11560 * regcache.c (get_thread_regcache): Invalidate register cache
11561 before fetching inferior's registers.
11563 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11565 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
11566 while-loop as for-loop.
11567 (regsets_store_inferior_registers): Likewise.
11569 2014-11-28 Yao Qi <yao@codesourcery.com>
11571 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
11572 * config.in, configure: Re-generate.
11573 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
11576 2014-11-21 Yao Qi <yao@codesourcery.com>
11578 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
11579 (AC_CHECK_HEADERS): Remove malloc.h.
11580 * configure: Re-generated.
11581 * config.in: Re-generated.
11582 * server.h: Don't include alloca.h and malloc.h.
11583 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
11584 Don't include malloc.h.
11586 2014-11-17 Joel Brobecker <brobecker@adacore.com>
11588 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
11589 corresponding ERRNO check in same block.
11591 2014-11-12 Pedro Alves <palves@redhat.com>
11593 * server.c (cont_thread): Update comment.
11594 (start_inferior, attach_inferior): No longer clear cont_thread.
11595 (handle_v_cont): No longer set cont_thread.
11596 (captured_main): Clear cont_thread each time a GDB connects.
11598 2014-11-12 Pedro Alves <palves@redhat.com>
11600 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
11601 thread, and don't resume all threads if the Hc thread has exited.
11603 2014-11-12 Pedro Alves <palves@redhat.com>
11605 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
11606 the process group instead of to a specific LWP.
11608 2014-10-15 Pedro Alves <palves@redhat.com>
11611 * win32-arm-low.c (arm_set_thread_context): Remove current_event
11613 (arm_set_thread_context): Delete.
11614 (the_low_target): Adjust.
11615 * win32-i386-low.c (debug_registers_changed)
11616 (debug_registers_used): Delete.
11617 (update_debug_registers_callback): New function.
11618 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
11619 needing to update their debug registers.
11620 (win32_get_current_dr): New function.
11621 (x86_dr_low_get_addr, x86_dr_low_get_control)
11622 (x86_dr_low_get_status): Fetch the debug register from the thread
11624 (i386_initial_stuff): Adjust.
11625 (i386_get_thread_context): Remove current_event parameter. Don't
11626 clear debug_registers_changed nor copy DR values to
11628 (i386_set_thread_context): Delete.
11629 (i386_prepare_to_resume): New function.
11630 (i386_thread_added): Mark the thread as needing to update irs
11632 (the_low_target): Remove i386_set_thread_context and install
11633 i386_prepare_to_resume.
11634 * win32-low.c (win32_get_thread_context): Adjust.
11635 (win32_set_thread_context): Use SetThreadContext
11637 (win32_prepare_to_resume): New function.
11638 (win32_require_context): New function, factored out from ...
11639 (thread_rec): ... this.
11640 (continue_one_thread): Call win32_prepare_to_resume on each thread
11641 we're about to continue.
11642 (win32_resume): Call win32_prepare_to_resume on the event thread.
11643 * win32-low.h (struct win32_thread_info)
11644 <debug_registers_changed>: New field.
11645 (struct win32_target_ops): Change prototype of set_thread_context,
11646 delete set_thread_context and add prepare_to_resume.
11647 (win32_require_context): New declaration.
11649 2014-10-08 Gary Benson <gbenson@redhat.com>
11651 * server.h: Do not include common-exceptions.h.
11653 2014-10-08 Gary Benson <gbenson@redhat.com>
11655 * server.h: Do not include cleanups.h.
11657 2014-09-30 James Hogan <james.hogan@imgtec.com>
11659 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
11660 mips64-dsp-linux.c.
11662 2014-09-23 Yao Qi <yao@codesourcery.com>
11664 * linux-low.c (lp_status_maybe_breakpoint): New function.
11665 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
11666 (count_events_callback): Likewise.
11667 (select_event_lwp_callback): Likewise.
11668 (cancel_breakpoints_callback): Likewise.
11670 2014-09-19 Don Breazeal <donb@codesourcery.com>
11672 * linux-low.c (handle_extended_wait): Call
11673 linux_ptrace_get_extended_event.
11674 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
11675 linux_is_extended_waitstatus.
11677 2014-09-16 Joel Brobecker <brobecker@adacore.com>
11679 * Makefile.in (CPPFLAGS): Define.
11680 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
11681 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
11683 2014-09-16 Gary Benson <gbenson@redhat.com>
11685 * inferiors.h (current_inferior): Renamed as...
11686 (current_thread): New variable. All uses updated.
11687 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
11688 (maybe_move_out_of_jump_pad): Likewise.
11689 (cancel_breakpoint): Likewise.
11690 (linux_low_filter_event): Likewise.
11691 (wait_for_sigstop): Likewise.
11692 (linux_resume_one_lwp): Likewise.
11693 (need_step_over_p): Likewise.
11694 (start_step_over): Likewise.
11695 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
11696 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
11697 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
11698 and save_inferior as saved_thread.
11699 * regcache.c (get_thread_regcache): Renamed saved_inferior as
11701 (regcache_invalidate_thread): Likewise.
11702 * remote-utils.c (prepare_resume_reply): Likewise.
11703 * thread-db.c (thread_db_get_tls_address): Likewise.
11704 (disable_thread_event_reporting): Likewise.
11705 (remove_thread_event_breakpoints): Likewise.
11706 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
11708 * target.h (set_desired_inferior): Renamed as...
11709 (set_desired_thread): New declaration. All uses updated.
11710 * server.c (myresume): Updated comment to reference thread instead
11712 (handle_serial_event): Likewise.
11713 (handle_target_event): Likewise.
11715 2014-09-12 Tom Tromey <tromey@redhat.com>
11716 Gary Benson <gbenson@redhat.com>
11718 * regcache.h: Include common-regcache.h.
11719 (regcache_read_pc): Don't declare.
11720 * regcache.c (get_thread_regcache_for_ptid): New function.
11722 2014-09-11 Tom Tromey <tromey@redhat.com>
11723 Gary Benson <gbenson@redhat.com>
11725 * symbol.c: New file.
11726 * Makefile.in (SFILES): Add symbol.c.
11727 (OBS): Add symbol.o.
11729 2014-09-11 Gary Benson <gbenson@redhat.com>
11731 * target.c (target_stop_ptid, target_continue_ptid): New
11734 2014-09-11 Tom Tromey <tromey@redhat.com>
11735 Gary Benson <gbenson@redhat.com>
11737 * target.h: Include target/target.h.
11738 * target.c (target_read_memory, target_read_uint32)
11739 (target_write_memory): New functions.
11741 2014-09-11 Gary Benson <gbenson@redhat.com>
11743 * server.h (debug_hw_points): Don't declare.
11744 * server.c (debug_hw_points): Don't define. Replace all uses
11745 with show_debug_regs.
11746 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
11747 all uses with show_debug_regs.
11749 2014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
11751 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
11752 endianness into account.
11753 (ppc_supply_ptrace_register): Likewise.
11755 2014-09-03 James Hogan <james.hogan@imgtec.com>
11757 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
11758 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
11760 2014-09-03 Gary Benson <gbenson@redhat.com>
11762 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
11763 ALL_DEBUG_ADDRESS_REGISTERS.
11765 2014-09-02 Gary Benson <gbenson@redhat.com>
11767 * i386-low.h: Renamed as...
11768 * x86-low.h: New file. All type, function and variable name
11769 prefixes changed from "i386_" to "x86_". All references updated.
11770 * i386-low.c: Renamed as...
11771 * x86-low.c: New file. All type, function and variable name
11772 prefixes changed from "i386_" to "x86_". All references updated.
11774 2014-09-02 Gary Benson <gbenson@redhat.com>
11776 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
11777 (x86_linux_new_thread): Likewise.
11779 2014-08-29 Gary Benson <gbenson@redhat.com>
11781 * server.h (setjmp.h): Do not include.
11782 (toplevel): Do not declare.
11783 (common-exceptions.h): Include.
11784 (cleanups.h): Likewise.
11785 * server.c (toplevel): Do not define.
11786 (exit_code): New static global.
11787 (detach_or_kill_for_exit_cleanup): New function.
11788 (main): New function. Original main renamed to...
11789 (captured_main): New function.
11790 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
11792 2014-08-29 Gary Benson <gbenson@redhat.com>
11794 * Makefile.in (SFILES): Add common/common-exceptions.c.
11795 (OBS): Add common-exceptions.o.
11796 (common-exceptions.o): New rule.
11797 * utils.c (prepare_to_throw_exception): New function.
11799 2014-08-29 Gary Benson <gbenson@redhat.com>
11801 * config.in: Regenerate.
11802 * configure: Likewise.
11804 2014-08-29 Gary Benson <gbenson@redhat.com>
11806 * Makefile.in (SFILES): Add common/cleanups.c.
11808 (cleanups.o): New rule.
11810 2014-08-29 Gary Benson <gbenson@redhat.com>
11812 * utils.c (internal_vwarning): New function.
11814 2014-08-28 Gary Benson <gbenson@redhat.com>
11816 * utils.h (fatal): Remove declaration.
11817 * utils.c (fatal): Remove function.
11819 2014-08-28 Gary Benson <gbenson@redhat.com>
11821 * tracepoint.c (gdb_agent_init): Replace fatal with
11823 (initialize_tracepoint): Likewise.
11825 2014-08-28 Gary Benson <gbenson@redhat.com>
11827 * remote-utils.c (remote_prepare): Replace fatal with error.
11829 2014-08-28 Gary Benson <gbenson@redhat.com>
11831 * linux-low.c (linux_async): Replace fatal with warning.
11832 Tidy up and return.
11833 (linux_start_non_stop): Return -1 if linux_async failed.
11835 2014-08-28 Gary Benson <gbenson@redhat.com>
11837 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
11839 (i386_dr_low_get_addr): Remove vague comment.
11840 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
11843 2014-08-28 Gary Benson <gbenson@redhat.com>
11845 * inferiors.c (get_thread_process): Replace check with gdb_assert.
11846 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
11848 (linux_resume_one_lwp): Likewise.
11849 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
11851 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
11852 with internal_error.
11853 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
11854 (init_register_cache): Replace fatal with gdb_assert_not_reached.
11855 (find_register_by_name): Replace fatal with internal_error.
11856 (find_regno): Likewise.
11857 * tdesc.c (init_target_desc): Replace check with gdb_assert.
11858 * thread-db.c (thread_db_create_event): Likewise.
11859 (thread_db_load_search): Likewise.
11860 (try_thread_db_load_1): Likewise.
11861 * tracepoint.c (get_jump_space_head): Replace fatal with
11863 (claim_trampoline_space): Likewise.
11864 (have_fast_tracepoint_trampoline_buffer): Likewise.
11865 (cmd_qtstart): Likewise.
11866 (stop_tracing): Likewise.
11867 (fast_tracepoint_collecting): Likewise.
11868 (target_malloc): Likewise.
11869 (download_tracepoint): Likewise.
11870 (download_trace_state_variables): Replace check with gdb_assert.
11871 (upload_fast_traceframes): Replace fatal with internal_error.
11873 2014-08-19 Tom Tromey <tromey@redhat.com>
11874 Gary Benson <gbenson@redhat.com>
11876 * Makefile.in (SFILES): Add common/common-debug.c.
11877 (OBS): Add common-debug.o.
11878 (common-debug.o): New rule.
11879 * debug.h (debug_printf): Don't declare.
11880 * debug.c (debug_printf): Renamed and rewritten as...
11881 (debug_vprintf): New function.
11883 2014-08-19 Gary Benson <gbenson@redhat.com>
11885 * utils.h: Do not include print-utils.h.
11887 2014-08-19 Tom Tromey <tromey@redhat.com>
11888 Gary Benson <gbenson@redhat.com>
11890 * server.h: Add static assertion.
11891 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
11893 2014-08-19 Tom Tromey <tromey@redhat.com>
11894 Gary Benson <gbenson@redhat.com>
11896 * Makefile.in (SFILES): Add common/errors.c.
11897 (OBS): Add errors.o.
11898 (IPA_OBS): Add errors-ipa.o.
11899 (errors.o): New rule.
11900 (errors-ipa.o): Likewise.
11901 * utils.h (perror_with_name, error, warning): Don't declare.
11902 * utils.c (warning): Renamed and rewritten as...
11903 (vwarning): New function.
11904 (error): Renamed and rewritten as...
11905 (verror): New function.
11906 (internal_error): Renamed and rewritten as...
11907 (internal_verror): New function.
11909 2014-08-07 Gary Benson <gbenson@redhat.com>
11911 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
11912 * configure: Regenerate.
11913 * config.in: Likewise.
11914 * server.h: Do not include errno.h.
11915 * event-loop.c: Likewise.
11916 * hostio-errno.c: Likewise.
11917 * linux-low.c: Likewise.
11918 * remote-utils.c: Likewise.
11919 * spu-low.c: Likewise.
11920 * utils.c: Likewise.
11921 * gdbreplay.c: Unconditionally include errno.h.
11923 2014-08-07 Gary Benson <gbenson@redhat.com>
11925 * server.h: Do not include string.h.
11926 * event-loop.c: Likewise.
11927 * linux-low.c: Likewise.
11928 * regcache.c: Likewise.
11929 * remote-utils.c: Likewise.
11930 * spu-low.c: Likewise.
11931 * utils.c: Likewise.
11933 2014-08-07 Gary Benson <gbenson@redhat.com>
11935 * server.h: Do not include gdb_assert.h.
11937 2014-08-07 Gary Benson <gbenson@redhat.com>
11939 * server.h: Do not include common-utils.h.
11941 2014-08-07 Gary Benson <gbenson@redhat.com>
11943 * server.h: Do not include ptid.h.
11944 * notif.h: Likewise.
11946 2014-08-07 Gary Benson <gbenson@redhat.com>
11948 * server.h: Do not include gdb_locale.h.
11950 2014-08-07 Gary Benson <gbenson@redhat.com>
11952 * server.h: Do not include gdb/signals.h.
11953 * win32-low.c: Likewise.
11955 2014-08-07 Gary Benson <gbenson@redhat.com>
11957 * server.h: Do not include pathmax.h.
11959 2014-08-07 Gary Benson <gbenson@redhat.com>
11961 * server.h: Do not include libiberty.h.
11962 * linux-bfin-low.c: Likewise.
11964 2014-08-07 Gary Benson <gbenson@redhat.com>
11966 * server.h: Do not include ansidecl.h.
11968 2014-08-07 Gary Benson <gbenson@redhat.com>
11970 * linux-x86-low.c: Do not include stddef.h.
11971 * lynx-ppc-low.c: Likewise.
11972 * tracepoint.c: Likewise.
11974 2014-08-07 Gary Benson <gbenson@redhat.com>
11976 * server.h: Do not include stdarg.h.
11977 * nto-low.c: Likewise.
11979 2014-08-07 Gary Benson <gbenson@redhat.com>
11981 * server.h: Do not include stdlib.h.
11982 * inferiors.c: Likewise.
11983 * linux-low.c: Likewise.
11984 * regcache.c: Likewise.
11985 * spu-low.c: Likewise.
11986 * tracepoint.c: Likewise.
11987 * utils.c: Likewise.
11989 2014-08-07 Gary Benson <gbenson@redhat.com>
11991 * server.h: Do not include stdio.h.
11992 * linux-low.c: Likewise.
11993 * remote-utils.c: Likewise.
11994 * spu-low.c: Likewise.
11995 * utils.c: Likewise.
11996 * wincecompat.c: Likewise.
11998 2014-08-06 Gary Benson <gbenson@redhat.com>
12000 * regcache.c (init_register_cache): Move conditionals inside if.
12002 2014-08-06 Gary Benson <gbenson@redhat.com>
12004 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
12006 2014-07-31 Gary Benson <gbenson@redhat.com>
12008 * ax.h: Do not include server.h.
12009 * gdbthread.h: Likewise.
12010 * lynx-low.h: Likewise.
12011 * notif.h: Likewise.
12013 2014-07-30 Gary Benson <gbenson@redhat.com>
12015 * server.h: Include common-defs.h.
12016 Do not include config.h or build-gnulib-gdbserver/config.h.
12018 2014-07-30 Gary Benson <gbenson@redhat.com>
12020 * hostio-errno.c: Move server.h to top of includes list.
12021 * inferiors.c: Likewise.
12022 * linux-x86-low.c: Likewise.
12023 * notif.c: Include server.h.
12025 2014-07-24 Tom Tromey <tromey@redhat.com>
12026 Gary Benson <gbenson@redhat.com>
12028 * server.h (CORE_ADDR): Now unsigned.
12030 2014-07-16 Pedro Alves <palves@redhat.com>
12032 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
12034 2014-07-15 Pedro Alves <palves@redhat.com>
12036 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
12039 2014-07-11 Pedro Alves <palves@redhat.com>
12041 * linux-low.c (kill_wait_lwp): New function, based on
12042 kill_one_lwp_callback, but use my_waitpid directly.
12043 (kill_one_lwp_callback, linux_kill): Use it.
12045 2014-06-23 Pedro Alves <palves@redhat.com>
12047 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
12048 before setting DR0..DR3.
12050 2014-06-20 Gary Benson <gbenson@redhat.com>
12052 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
12053 * configure: Regenerated.
12054 * config.in: Likewise.
12056 2014-06-20 Gary Benson <gbenson@redhat.com>
12058 * Makefile.in (SFILES): Update locations for files moved
12059 from common to nat.
12060 (object file files): Reordered.
12062 2014-06-20 Gary Benson <gbenson@redhat.com>
12064 * i386-low.h (i386_dr_low_can_set_addr): Removed.
12065 (i386_dr_low_set_addr): Likewise.
12066 (i386_dr_low_get_addr): Likewise.
12067 (i386_dr_low_can_set_control): Likewise.
12068 (i386_dr_low_set_control): Likewise.
12069 (i386_dr_low_get_control): Likewise.
12070 (i386_dr_low_get_status): Likewise.
12071 (i386_get_debug_register_length): Likewise.
12072 * linux-x86-low.c (i386_dr_low_set_addr):
12073 Changed signature. Made static.
12074 (i386_dr_low_get_addr): Likewise.
12075 (i386_dr_low_set_control): Likewise.
12076 (i386_dr_low_get_control): Likewise.
12077 (i386_dr_low_get_status): Likewise.
12078 (i386_dr_low): New global variable.
12079 * win32-i386-low.c (i386_dr_low_set_addr):
12080 Changed signature. Made static.
12081 (i386_dr_low_get_addr): Likewise.
12082 (i386_dr_low_set_control): Likewise.
12083 (i386_dr_low_get_control): Likewise.
12084 (i386_dr_low_get_status): Likewise.
12085 (i386_dr_low): New global variable.
12087 2014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
12089 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
12090 * Makefile.in (AR, AR_FLAGS): Define.
12091 * configure: Regenerate.
12093 2014-06-19 Gary Benson <gbenson@redhat.com>
12095 * Makefile.in (i386-dregs.o): New rule.
12096 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
12097 * i386-low.c (target.h): Remove include.
12098 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
12099 (DR_CONTROL_SHIFT): Likewise.
12100 (DR_CONTROL_SIZE): Likewise.
12101 (DR_RW_EXECUTE): Likewise.
12102 (DR_RW_WRITE): Likewise.
12103 (DR_RW_READ): Likewise.
12104 (DR_RW_IORW): Likewise.
12105 (DR_LEN_1): Likewise.
12106 (DR_LEN_2): Likewise.
12107 (DR_LEN_4): Likewise.
12108 (DR_LEN_8): Likewise.
12109 (DR_LOCAL_ENABLE_SHIFT): Likewise.
12110 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
12111 (DR_ENABLE_SIZE): Likewise.
12112 (DR_LOCAL_SLOWDOWN): Likewise.
12113 (DR_GLOBAL_SLOWDOWN): Likewise.
12114 (DR_CONTROL_RESERVED): Likewise.
12115 (I386_DR_CONTROL_MASK): Likewise.
12116 (I386_DR_VACANT): Likewise.
12117 (I386_DR_LOCAL_ENABLE): Likewise.
12118 (I386_DR_GLOBAL_ENABLE): Likewise.
12119 (I386_DR_DISABLE): Likewise.
12120 (I386_DR_SET_RW_LEN): Likewise.
12121 (I386_DR_GET_RW_LEN): Likewise.
12122 (I386_DR_WATCH_HIT): Likewise.
12123 (i386_wp_op_t): Likewise.
12124 (i386_show_dr): Likewise.
12125 (i386_length_and_rw_bits): Likewise.
12126 (i386_insert_aligned_watchpoint): Likewise.
12127 (i386_remove_aligned_watchpoint): Likewise.
12128 (i386_handle_nonaligned_watchpoint): Likewise.
12129 i386_update_inferior_debug_regs(): Likewise.
12130 (i386_dr_insert_watchpoint): Likewise.
12131 (i386_dr_remove_watchpoint): Likewise.
12132 (i386_dr_region_ok_for_watchpoint): Likewise.
12133 (i386_dr_stopped_data_address): Likewise.
12134 (i386_dr_stopped_by_watchpoint): Likewise.
12136 2014-06-19 Gary Benson <gbenson@redhat.com>
12138 * i386-low.c (i386_dr_show): Renamed to
12139 i386_show_dr and made static. All uses updated.
12140 (i386_dr_length_and_rw_bits): Renamed to
12141 i386_length_and_rw_bits and made static.
12143 (i386_dr_insert_aligned_watchpoint): Renamed to
12144 i386_insert_aligned_watchpoint and made static.
12146 (i386_dr_remove_aligned_watchpoint): Renamed to
12147 i386_remove_aligned_watchpoint and made static.
12149 (i386_dr_update_inferior_debug_regs): Renamed to
12150 i386_update_inferior_debug_regs and made static.
12153 2014-06-18 Gary Benson <gbenson@redhat.com>
12155 * i386-low.h (i386_dr_low_can_set_addr): New macro.
12156 (i386_dr_low_can_set_control): Likewise.
12157 (i386_get_debug_register_length): Likewise.
12158 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
12159 (i386_dr_low_can_set_control): Likewise.
12160 (i386_get_debug_register_length): Likewise.
12162 2014-06-17 Gary Benson <gbenson@redhat.com>
12164 * i386-low.h (i386-dregs.h): New include.
12165 (DR_FIRSTADDR): Now in i386-dregs.h.
12166 (DR_LASTADDR): Likewise.
12167 (DR_NADDR): Likewise.
12168 (DR_STATUS): Likewise.
12169 (DR_CONTROL): Likewise.
12170 (i386_debug_reg_state): Likewise.
12171 (i386_dr_insert_watchpoint): Likewise.
12172 (i386_dr_remove_watchpoint): Likewise.
12173 (i386_dr_region_ok_for_watchpoint): Likewise.
12174 (i386_dr_stopped_data_address): Likewise.
12175 (i386_dr_stopped_by_watchpoint): Likewise.
12176 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
12178 2014-06-18 Gary Benson <gbenson@redhat.com>
12180 * i386-low.h (i386_low_insert_watchpoint): Renamed to
12181 i386_dr_insert_watchpoint.
12182 (i386_low_remove_watchpoint): Renamed to
12183 i386_dr_remove_watchpoint.
12184 (i386_low_region_ok_for_watchpoint): Renamed to
12185 i386_dr_region_ok_for_watchpoint.
12186 (i386_low_stopped_data_address): Renamed to
12187 i386_dr_stopped_data_address.
12188 (i386_low_stopped_by_watchpoint): Renamed to
12189 i386_dr_stopped_by_watchpoint.
12190 * i386-low.c (i386_show_dr): Renamed to
12191 i386_dr_show and made nonstatic. All uses updated.
12192 (i386_length_and_rw_bits): Renamed to
12193 i386_dr_length_and_rw_bits and made nonstatic.
12195 (i386_insert_aligned_watchpoint): Renamed to
12196 i386_dr_insert_aligned_watchpoint and made nonstatic.
12198 (i386_remove_aligned_watchpoint): Renamed to
12199 i386_dr_remove_aligned_watchpoint and made nonstatic.
12201 (i386_update_inferior_debug_regs): Renamed to
12202 i386_dr_update_inferior_debug_regs and made nonstatic.
12204 (i386_low_insert_watchpoint): Renamed to
12205 i386_dr_insert_watchpoint. All uses updated.
12206 (i386_low_remove_watchpoint): Renamed to
12207 i386_dr_remove_watchpoint. All uses updated.
12208 (i386_low_region_ok_for_watchpoint): Renamed to
12209 i386_dr_region_ok_for_watchpoint. All uses updated.
12210 (i386_low_stopped_data_address): Renamed to
12211 i386_dr_stopped_data_address. All uses updated.
12212 (i386_low_stopped_by_watchpoint): Renamed to
12213 i386_dr_stopped_by_watchpoint. All uses updated.
12215 2014-06-18 Gary Benson <gbenson@redhat.com>
12217 * i386-low.c (i386_dr_low_can_set_addr): New macro.
12218 (i386_dr_low_can_set_control): Likewise.
12219 (i386_insert_aligned_watchpoint): New check.
12221 2014-06-18 Gary Benson <gbenson@redhat.com>
12223 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
12226 2014-06-18 Gary Benson <gbenson@redhat.com>
12228 * i386-low.c (i386_length_and_rw_bits): Use internal_error
12229 instead of fatal and error.
12230 (i386_handle_nonaligned_watchpoint): Likewise.
12232 2014-06-18 Gary Benson <gbenson@redhat.com>
12234 * i386-low.c (i386_get_debug_register_length): New macro.
12235 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
12236 (i386_show_dr): Use debug_printf instead of fprintf. Use
12237 phex to format values.
12239 2014-06-18 Gary Benson <gbenson@redhat.com>
12241 * i386-low.h: Comment changes.
12242 * i386-low.c: Likewise.
12244 2014-06-18 Gary Benson <gbenson@redhat.com>
12246 * i386-low.c: Whitespace changes.
12248 2014-06-12 Tom Tromey <tromey@redhat.com>
12250 * utils.c (freeargv): Remove.
12252 2014-06-12 Tom Tromey <tromey@redhat.com>
12254 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
12255 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
12256 (parse_debug_format_options): Likewise.
12257 (gdbserver_usage): Likewise.
12258 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
12259 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
12260 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
12262 ($(LIBGNU)): Depend on libiberty.
12263 (all-lib): Recurse into all subdirs.
12264 (install-only): Invoke "install" target in subdirs.
12265 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
12267 * configure: Rebuild.
12268 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
12269 for vasprintf, vsnprintf, or gettimeofday.
12270 * configure.srv: Don't add safe-ctype.o or lbasename.o to
12273 2014-06-05 Joel Brobecker <brobecker@adacore.com>
12275 * development.sh: Delete.
12276 * Makefile.in (config.status): Adjust dependency on development.sh.
12277 * configure.ac: Adjust development.sh source call.
12278 * configure: Regenerate.
12280 2014-06-02 Pedro Alves <palves@redhat.com>
12282 * ax.c (gdb_free_agent_expr): New function.
12283 * ax.h (gdb_free_agent_expr): New declaration.
12284 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
12286 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
12288 (clear_breakpoint_conditions_and_commands): New function.
12289 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
12290 (clear_breakpoint_conditions_and_commands): New declaration.
12292 2014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12294 * linux-aarch64-low.c (asm/ptrace.h): Include.
12296 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12298 Fix TLS access for -static -pthread.
12299 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
12300 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
12301 (thread_db_load_search, try_thread_db_load_1): Initialize it.
12303 2014-05-20 Pedro Alves <palves@redhat.com>
12305 * linux-aarch64-low.c (aarch64_insert_point)
12306 (aarch64_remove_point): No longer check whether the type is
12307 supported here. Adjust to new interface.
12308 (the_low_target): Install aarch64_supports_z_point_type as
12309 supports_z_point_type method.
12310 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
12311 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
12312 instead of a Z packet char. Adjust.
12313 (arm_supports_z_point_type): New function.
12314 (arm_insert_point, arm_remove_point): Adjust to new interface.
12315 (the_low_target): Install arm_supports_z_point_type.
12316 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
12317 (cris_insert_point, cris_remove_point): Adjust to new interface.
12318 Don't check whether the type is supported here.
12319 (the_low_target): Install cris_supports_z_point_type.
12320 * linux-low.c (linux_supports_z_point_type): New function.
12321 (linux_insert_point, linux_remove_point): Adjust to new interface.
12322 * linux-low.h (struct linux_target_ops) <insert_point,
12323 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
12324 raw_breakpoint pointer parameter.
12325 <supports_z_point_type>: New method.
12326 * linux-mips-low.c (mips_supports_z_point_type): New function.
12327 (mips_insert_point, mips_remove_point): Adjust to new interface.
12328 Use mips_supports_z_point_type.
12329 (the_low_target): Install mips_supports_z_point_type.
12330 * linux-ppc-low.c (the_low_target): Install NULL as
12331 supports_z_point_type method.
12332 * linux-s390-low.c (the_low_target): Install NULL as
12333 supports_z_point_type method.
12334 * linux-sparc-low.c (the_low_target): Install NULL as
12335 supports_z_point_type method.
12336 * linux-x86-low.c (x86_supports_z_point_type): New function.
12337 (x86_insert_point): Adjust to new insert_point interface. Use
12338 insert_memory_breakpoint. Adjust to new
12339 i386_low_insert_watchpoint interface.
12340 (x86_remove_point): Adjust to remove_point interface. Use
12341 remove_memory_breakpoint. Adjust to new
12342 i386_low_remove_watchpoint interface.
12343 (the_low_target): Install x86_supports_z_point_type.
12344 * lynx-low.c (lynx_target_ops): Install NULL as
12345 supports_z_point_type callback.
12346 * nto-low.c (nto_supports_z_point_type): New.
12347 (nto_insert_point, nto_remove_point): Adjust to new interface.
12348 (nto_target_ops): Install nto_supports_z_point_type.
12349 * mem-break.c: Adjust intro comment.
12350 (struct raw_breakpoint) <raw_type, size>: New fields.
12351 <inserted>: Update comment.
12352 <shlib_disabled>: Delete field.
12353 (enum bkpt_type) <gdb_breakpoint>: Delete value.
12354 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
12355 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
12356 (raw_bkpt_type_to_target_hw_bp_type): New function.
12357 (find_enabled_raw_code_breakpoint_at): New function.
12358 (find_raw_breakpoint_at): New type and size parameters. Use them.
12359 (insert_memory_breakpoint): New function, based off
12360 set_raw_breakpoint_at.
12361 (remove_memory_breakpoint): New function.
12362 (set_raw_breakpoint_at): Reimplement.
12363 (set_breakpoint): New, based on set_breakpoint_at.
12364 (set_breakpoint_at): Reimplement.
12365 (delete_raw_breakpoint): Go through the_target->remove_point
12366 instead of assuming memory breakpoints.
12367 (find_gdb_breakpoint_at): Delete.
12368 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
12369 (find_gdb_breakpoint): New function.
12370 (set_gdb_breakpoint_at): Delete.
12371 (z_type_supported): New function.
12372 (set_gdb_breakpoint_1): New function, loosely based off
12373 set_gdb_breakpoint_at.
12374 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
12375 (delete_gdb_breakpoint_at): Delete.
12376 (delete_gdb_breakpoint_1): New function, loosely based off
12377 delete_gdb_breakpoint_at.
12378 (delete_gdb_breakpoint): New function.
12379 (clear_gdb_breakpoint_conditions): Rename to ...
12380 (clear_breakpoint_conditions): ... this. Don't handle a NULL
12382 (add_condition_to_breakpoint): Make static.
12383 (add_breakpoint_condition): Take a struct breakpoint pointer
12384 instead of an address. Adjust.
12385 (gdb_condition_true_at_breakpoint): Rename to ...
12386 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
12388 (gdb_condition_true_at_breakpoint): Reimplement.
12389 (add_breakpoint_commands): Take a struct breakpoint pointer
12390 instead of an address. Adjust.
12391 (gdb_no_commands_at_breakpoint): Rename to ...
12392 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
12393 parameter. Return true if no breakpoint was found. Change debug
12395 (gdb_no_commands_at_breakpoint): Reimplement.
12396 (run_breakpoint_commands): Rename to ...
12397 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
12398 and change return type to boolean.
12399 (run_breakpoint_commands): New function.
12400 (gdb_breakpoint_here): Also check for Z1 breakpoints.
12401 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
12402 breakpoint. Go through the_target->remove_point instead of
12403 assuming memory breakpoint.
12404 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
12405 software and hardware breakpoints.
12406 (reinsert_raw_breakpoint): Go through the_target->insert_point
12407 instead of assuming memory breakpoint.
12408 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
12409 software and hardware breakpoints.
12410 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
12411 Check both software and hardware breakpoints.
12412 (validate_inserted_breakpoint): Assert the breakpoint is a
12413 software breakpoint. Set the inserted flag to -1 instead of
12414 setting shlib_disabled.
12415 (delete_disabled_breakpoints): Adjust.
12416 (validate_breakpoints): Only validate software breakpoints.
12417 Adjust to inserted flag change.
12418 (check_mem_read, check_mem_write): Skip breakpoint types other
12419 than software breakpoints. Adjust to inserted flag change.
12420 * mem-break.h (enum raw_bkpt_type): New enum.
12421 (raw_breakpoint, struct process_info): Forward declare.
12422 (Z_packet_to_target_hw_bp_type): Delete declaration.
12423 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
12424 (set_gdb_breakpoint, delete_gdb_breakpoint)
12425 (clear_breakpoint_conditions): New declarations.
12426 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
12427 (breakpoint_inserted_here): Update comment.
12428 (add_breakpoint_condition, add_breakpoint_commands): Replace
12429 address parameter with a breakpoint pointer parameter.
12430 (gdb_breakpoint_here): Update comment.
12431 (delete_gdb_breakpoint_at): Delete.
12432 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
12433 * server.c (process_point_options): Take a struct breakpoint
12434 pointer instead of an address. Adjust.
12435 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
12436 delete_gdb_breakpoint.
12437 * spu-low.c (spu_target_ops): Install NULL as
12438 supports_z_point_type method.
12439 * target.h: Include mem-break.h.
12440 (struct target_ops) <prepare_to_access_memory>: Update comment.
12441 <supports_z_point_type>: New field.
12442 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12443 instead of a char. Also take a raw breakpoint pointer.
12444 * win32-arm-low.c (the_low_target): Install NULL as
12445 supports_z_point_type.
12446 * win32-i386-low.c (i386_supports_z_point_type): New function.
12447 (i386_insert_point, i386_remove_point): Adjust to new interface.
12448 (the_low_target): Install i386_supports_z_point_type.
12449 * win32-low.c (win32_supports_z_point_type): New function.
12450 (win32_insert_point, win32_remove_point): Adjust to new interface.
12451 (win32_target_ops): Install win32_supports_z_point_type.
12452 * win32-low.h (struct win32_target_ops):
12453 <supports_z_point_type>: New method.
12454 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12455 instead of a char. Also take a raw breakpoint pointer.
12457 2014-05-20 Pedro Alves <palves@redhat.com>
12459 * mem-break.h: Include break-common.h.
12460 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12461 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
12462 (Z_packet_to_target_hw_bp_type): New declaration.
12463 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
12464 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
12465 (Z_PACKET_ACCESS_WP): Delete macros.
12466 (Z_packet_to_hw_type): Delete function.
12467 * i386-low.h: Don't include break-common.h here.
12468 (Z_packet_to_hw_type): Delete declaration.
12469 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
12470 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12471 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
12472 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12473 * linux-aarch64-low.c: Don't include break-common.h here.
12474 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12475 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
12476 (Z_packet_to_target_hw_bp_type): Delete function.
12477 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
12479 (mips_insert_point, mips_remove_point): Use
12480 Z_packet_to_target_hw_bp_type.
12482 2014-05-20 Pedro Alves <palves@redhat.com>
12484 * linux-aarch64-low.c: Include break-common.h.
12485 (enum target_point_type): Delete.
12486 (Z_packet_to_point_type): Rename to ...
12487 (Z_packet_to_target_hw_bp_type): ... this, and return a
12488 target_hw_bp_type instead.
12489 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
12490 instead of an enum target_point_type.
12491 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
12493 (aarch64_dr_state_insert_one_point)
12494 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
12495 (aarch64_handle_aligned_watchpoint)
12496 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
12497 Take an enum target_hw_bp_type instead of an enum
12499 (aarch64_supports_z_point_type): New function.
12500 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
12501 use Z_packet_to_target_hw_bp_type.
12503 2014-05-20 Joel Brobecker <brobecker@adacore.com>
12505 * configure.ac: Only use -Werror by default when DEVELOPMENT
12507 * configure: Regenerate.
12509 2014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
12511 Fix gdbserver qGetTLSAddr for x86_64 -m32.
12512 * linux-x86-low.c (X86_64_USER_REGS): New.
12513 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
12515 2014-04-28 Yao Qi <yao@codesourcery.com>
12517 * Makefile.in (i386-avx512.c): Fix the typo of generated file
12520 2014-04-25 Pedro Alves <palves@redhat.com>
12523 * linux-low.c (linux_attach_fail_reason_string): New function.
12524 (linux_attach_lwp): Delete.
12525 (linux_attach_lwp_1): Rename to ...
12526 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
12527 argument. Remove "initial" parameter. Return int instead of
12528 void. Don't error or warn here.
12529 (linux_attach): Adjust to call linux_attach_lwp. Call error on
12530 failure to attach to the tgid. Call warning when failing to
12532 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
12533 argument. Remove "initial" parameter. Return int instead of
12534 void. Don't error or warn here.
12535 (linux_attach_fail_reason_string): New declaration.
12536 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
12537 interface change. Use linux_attach_fail_reason_string.
12539 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
12540 Walfred Tedeschi <walfred.tedeschi@intel.com>
12542 * Makefile.in: Added rules to handle new files
12543 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
12544 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
12545 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
12546 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
12547 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
12548 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
12549 x32-avx512-linux.o.
12550 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
12551 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
12552 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
12553 i386/x32-avx512.xml.
12554 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
12555 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
12556 i386/x32-avx512-linux.xml.
12557 * i387-fp.c (num_avx512_k_registers): New constant for number
12559 (num_avx512_zmmh_low_registers): New constant for number of
12560 lower ZMM registers (0-15).
12561 (num_avx512_zmmh_high_registers): New constant for number of
12562 higher ZMM registers (16-31).
12563 (num_avx512_ymmh_registers): New contant for number of higher
12564 YMM registers (ymm16-31 added by avx521 on x86_64).
12565 (num_avx512_xmm_registers): New constant for number of higher
12566 XMM registers (xmm16-31 added by AVX512 on x86_64).
12567 (struct i387_xsave): Add space for AVX512 registers.
12568 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
12569 Add code to handle AVX512 registers.
12570 (i387_xsave_to_cache): Add code to handle AVX512 registers.
12571 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
12572 prototypei from generated file.
12573 (tdesc_amd64_avx512_linux): Likewise.
12574 (init_registers_x32_avx512_linux): Likewise.
12575 (tdesc_x32_avx512_linux): Likewise.
12576 (init_registers_i386_avx512_linux): Likewise.
12577 (tdesc_i386_avx512_linux): Likewise.
12578 (x86_64_regmap): Add AVX512 registers.
12579 (x86_linux_read_description): Add code to handle AVX512 XSTATE
12581 (initialize_low_arch): Add code to initialize AVX512 registers.
12583 2014-04-23 Pedro Alves <palves@redhat.com>
12585 * mem-break.c (find_gdb_breakpoint_at): Make static.
12586 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
12588 2014-04-23 Pedro Alves <palves@redhat.com>
12590 * i386-low.c: Don't include break-common.h here.
12591 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12592 prototype to take target_hw_bp_type as argument instead of a Z
12594 * i386-low.h: Include break-common.h here.
12595 (Z_packet_to_hw_type): Declare.
12596 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12598 * linux-x86-low.c (x86_insert_point): Convert the packet number to
12599 a target_hw_bp_type before calling i386_low_insert_watchpoint.
12600 (x86_remove_point): Convert the packet number to a
12601 target_hw_bp_type before calling i386_low_remove_watchpoint.
12602 * win32-i386-low.c (i386_insert_point): Convert the packet number
12603 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
12604 (i386_remove_point): Convert the packet number to a
12605 target_hw_bp_type before calling i386_low_remove_watchpoint.
12607 2014-04-23 Pedro Alves <palves@redhat.com>
12609 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
12611 2014-04-10 Pedro Alves <palves@redhat.com>
12613 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
12614 Check if the condition or command is NULL before checking if the
12615 breakpoint is known. On success, return true.
12616 * mem-break.h (add_breakpoint_condition): Document return.
12617 (add_breakpoint_commands): Add describing comment.
12618 * server.c (skip_to_semicolon): New function.
12619 (process_point_options): Use it.
12621 2014-04-09 Pedro Alves <palves@redhat.com>
12623 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
12626 2014-02-27 Pedro Alves <palves@redhat.com>
12629 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
12631 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
12633 (last_thread_of_process_p): Take a PID argument instead of a
12635 (linux_wait_for_lwp): Delete.
12636 (num_lwps, check_zombie_leaders, not_stopped_callback): New
12638 (linux_low_filter_event): New function, party factored out from
12639 linux_wait_for_event.
12640 (linux_wait_for_event): Rename to ...
12641 (linux_wait_for_event_filtered): ... this. Add new filter ptid
12642 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
12643 sigsuspend. Check for zombie leaders.
12644 (linux_wait_for_event): Reimplement as wrapper around
12645 linux_wait_for_event_filtered.
12646 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
12647 a normal or signal exit is seen, it's the whole process exiting.
12648 (wait_for_sigstop): No longer a for_each_inferior callback.
12649 Rewrite on top of linux_wait_for_event_filtered.
12650 (stop_all_lwps): Call wait_for_sigstop directly.
12651 * server.c (resume, handle_target_event): Handle
12652 TARGET_WAITKIND_NO_RESUMED.
12654 2014-02-26 Joel Brobecker <brobecker@adacore.com>
12656 * win32-low.c (psapi_get_dll_name,
12657 * win32_CreateToolhelp32Snapshot): Delete.
12658 (win32_CreateToolhelp32Snapshot, win32_Module32First)
12659 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
12661 (handle_load_dll): Add function description.
12662 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
12664 2014-02-26 Joel Brobecker <brobecker@adacore.com>
12666 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
12668 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
12669 base address when calling win32_add_one_solib.
12670 (handle_load_dll): Delete local variable load_addr.
12671 Remove 0x1000 offset applied to DLL base address when calling
12672 win32_add_one_solib.
12673 (handle_unload_dll): Add comment.
12675 2014-02-26 Joel Brobecker <brobecker@adacore.com>
12677 * win32-low.c (win32_add_all_dlls): Renames
12678 win32_ensure_ntdll_loaded. Rewrite function documentation.
12679 Adjust implementation to always load all DLLs.
12680 Add 0x1000 offset to DLL base address when calling
12681 win32_add_one_solib.
12682 (child_initialization_done): New static global.
12683 (do_initial_child_stuff): Set child_initialization_done to
12684 zero during child initialization, and 1 after. Replace call
12685 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
12687 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
12688 (handle_unload_dll): Add function documentation.
12689 (get_child_debug_event): Ignore load and unload DLL events
12690 during child initialization.
12692 2014-02-20 Doug Evans <dje@google.com>
12694 Remove global all_lwps.
12695 * inferiors.h (ptid_of): Move here from linux-low.h.
12696 (pid_of, lwpid_of): Ditto.
12697 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
12698 parameter is a struct thread_info * now.
12699 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
12700 directly. Pass &all_threads to find_inferior instead of &all_lwps.
12701 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
12703 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
12704 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
12705 * linux-arm-low.c (update_registers_callback): Update, "entry"
12706 parameter is a struct thread_info * now.
12707 Fetch lwpid from current_inferior directly.
12708 (arm_insert_point): Pass &all_threads to find_inferior instead of
12710 (arm_remove_point): Ditto.
12711 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
12712 (arm_prepare_to_resume): Fetch pid from thread.
12713 (arm_read_description): Fetch lwpid from current_inferior directly.
12714 * linux-low.c (all_lwps): Delete.
12715 (delete_lwp): Delete call to remove_inferior.
12716 (handle_extended_wait): Fetch lwpid from thread.
12717 (add_lwp): Don't set lwp->entry.id. Remove call to
12718 add_inferior_to_list.
12719 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
12720 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
12721 (kill_one_lwp_callback): Ditto.
12722 (linux_kill): Don't dereference NULL pointer.
12723 Fetch ptid,lwpid from thread.
12724 (get_detach_signal): Fetch ptid from thread.
12725 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
12726 Simplify call to regcache_invalidate_thread.
12727 (delete_lwp_callback): Update, "entry" parameter is a
12728 struct thread_info * now. Fetch pid from thread.
12729 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
12730 (status_pending_p_callback): Update, "entry" parameter is a
12731 struct thread_info * now. Fetch ptid from thread.
12732 (find_lwp_pid): Update, "entry" parameter is a
12733 struct thread_info * now.
12734 (linux_wait_for_lwp): Fetch pid from thread.
12735 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
12736 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
12737 (enqueue_one_deferred_signal): Fetch lwpid from thread.
12738 (dequeue_one_deferred_signal): Ditto.
12739 (cancel_breakpoint): Fetch ptid from current_inferior.
12740 (linux_wait_for_event): Pass &all_threads to find_inferior,
12741 not &all_lwps. Fetch ptid, lwpid from thread.
12742 (count_events_callback): Update, "entry" parameter is a
12743 struct thread_info * now.
12744 (select_singlestep_lwp_callback): Ditto.
12745 (select_event_lwp_callback): Ditto.
12746 (cancel_breakpoints_callback): Ditto.
12747 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
12749 (select_event_lwp): Ditto. Fetch ptid from event_thread.
12750 (unsuspend_one_lwp): Update, "entry" parameter is a
12751 struct thread_info * now.
12752 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
12754 (linux_stabilize_threads): Ditto. And for for_each_inferior.
12755 Fetch lwpid from thread, not lwp.
12756 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
12757 Pass &all_threads to find_inferior, not &all_lwps.
12758 (send_sigstop): Fetch lwpid from thread, not lwp.
12759 (send_sigstop_callback): Update, "entry" parameter is a
12760 struct thread_info * now.
12761 (suspend_and_send_sigstop_callback): Ditto.
12762 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
12763 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
12764 struct thread_info * now.
12765 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
12767 (lwp_running): Update, "entry" parameter is a
12768 struct thread_info * now.
12769 (stop_all_lwps): Fetch ptid from thread.
12770 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
12771 (linux_resume_one_lwp): Fetch lwpid from thread.
12772 (linux_set_resume_request): Update, "entry" parameter is a
12773 struct thread_info * now. Fetch pid, lwpid from thread.
12774 (resume_status_pending_p): Update, "entry" parameter is a
12775 struct thread_info * now.
12776 (need_step_over_p): Ditto. Fetch lwpid from thread.
12777 (start_step_over): Fetch lwpid from thread.
12778 (linux_resume_one_thread): Update, "entry" parameter is a
12779 struct thread_info * now. Fetch lwpid from thread.
12780 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
12781 (proceed_one_lwp): Update, "entry" parameter is a
12782 struct thread_info * now. Fetch lwpid from thread.
12783 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
12784 struct thread_info * now.
12785 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
12786 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
12787 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
12789 (regsets_store_inferior_registers): Ditto.
12790 (fetch_register, store_register): Ditto.
12791 (linux_read_memory, linux_write_memory): Ditto.
12792 (linux_request_interrupt): Ditto.
12793 (linux_read_auxv): Ditto.
12794 (linux_xfer_siginfo): Ditto.
12795 (linux_qxfer_spu): Ditto.
12796 (linux_qxfer_libraries_svr4): Ditto.
12797 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
12798 moved to inferiors.h.
12800 (get_thread_lwp): Update.
12801 (struct lwp_info): Delete member "entry". Simplify comment for
12803 (all_lwps): Delete.
12804 * linux-mips-low.c (mips_read_description): Fetch lwpid from
12805 current_inferior directly.
12806 (update_watch_registers_callback): Update, "entry" parameter is a
12807 struct thread_info * now. Fetch pid from thread.
12808 (mips_linux_prepare_to_resume): Fetch ptid from thread.
12809 (mips_insert_point): Fetch lwpid from current_inferior.
12810 Pass &all_threads to find_inferior, not &all_lwps.
12811 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
12812 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
12814 (mips_stopped_data_address): Ditto.
12815 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
12817 * linux-tile-low.c (tile_arch_setup): Ditto.
12818 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
12819 (update_debug_registers_callback): Update, "entry" parameter is a
12820 struct thread_info * now. Fetch pid from thread.
12821 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
12822 Pass &all_threads to find_inferior, not &all_lwps.
12823 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
12824 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
12825 Pass &all_threads to find_inferior, not &all_lwps.
12826 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
12827 (i386_dr_low_get_status): Ditto.
12828 (x86_linux_prepare_to_resume): Fetch ptid from thread.
12829 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
12830 (x86_linux_read_description): Ditto.
12831 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
12833 2014-02-20 Doug Evans <dje@google.com>
12835 * inferiors.c (get_first_inferior): Fix buglet.
12837 2014-02-19 Doug Evans <dje@google.com>
12839 * gdbthread.h (add_thread): Change result type to struct thread_info *.
12840 * inferiors.c (add_thread): Change result type to struct thread_info *.
12841 All callers updated.
12842 (add_lwp): Call add_thread here instead of in callers.
12843 All callers updated.
12844 * linux-low.h (get_lwp_thread): Rewrite.
12845 (struct lwp_info): New member "thread".
12847 2014-02-19 Doug Evans <dje@google.com>
12849 * linux-low.c (add_lwp): Change result to struct lwp_info *.
12850 All callers updated.
12852 2014-02-19 Doug Evans <dje@google.com>
12854 * inferiors.c (add_thread): Fix whitespace.
12856 2014-02-19 Doug Evans <dje@google.com>
12858 * dll.c (clear_dlls): Replace accessing list implemention details
12860 * gdbthread.h (get_first_thread): Declare.
12861 * inferiors.c (for_each_inferior_with_data): New function.
12862 (get_first_thread): New function.
12863 (find_thread_ptid): Simplify.
12864 (get_first_inferior): New function.
12865 (clear_list): Delete.
12866 (one_inferior_p): New function.
12867 (clear_inferior_list): New function.
12868 (clear_inferiors): Update.
12869 * inferiors.h (for_each_inferior_with_data): Declare.
12870 (clear_inferior_list): Declare.
12871 (one_inferior_p): Declare.
12872 (get_first_inferior): Declare.
12873 * linux-low.c (linux_wait_for_event): Replace accessing list
12874 implemention details with API function.
12875 * server.c (target_running): Ditto.
12876 (accumulate_file_name_length): New function.
12877 (emit_dll_description): New function.
12878 (handle_qxfer_libraries): Replace accessing list implemention
12879 details with API function.
12880 (handle_qxfer_threads_worker): New function.
12881 (handle_qxfer_threads_proper): Replace accessing list implemention
12882 details with API function.
12883 (handle_query): Ditto.
12884 (visit_actioned_threads_callback_ftype): New typedef.
12885 (visit_actioned_threads_data): New struct.
12886 (visit_actioned_threads): Rewrite to be find_inferior callback.
12887 (resume): Call find_inferior.
12888 (handle_status): Replace accessing list implemention
12889 details with API function.
12890 (process_serial_event): Replace accessing list implemention details
12892 * target.c (set_desired_inferior): Replace accessing list implemention
12893 details with API function.
12894 * tracepoint.c (same_process_p): New function.
12895 (gdb_agent_about_to_close): Replace accessing list implemention
12896 details with API function.
12897 * win32-low.c (child_delete_thread): Replace accessing list
12898 implemention details with API function.
12899 (match_dll_by_basename): New function.
12900 (dll_is_loaded_by_basename): New function.
12901 (win32_ensure_ntdll_loaded): Replace accessing list implemention
12902 details call to dll_is_loaded_by_basename.
12904 2014-02-19 Doug Evans <dje@google.com>
12906 * dll.h (struct dll_info): Add comment.
12907 * gdbthread.h (struct thread_info): Add comment.
12908 (current_ptid): Simplify.
12909 * inferiors.c (add_process): Update.
12910 (remove_process): Update.
12911 * inferiors.h (struct process_info): Rename member "head" to "entry".
12912 * linux-low.c (delete_lwp): Update.
12914 (last_thread_of_process_p): Update.
12915 (kill_one_lwp_callback, linux_kill): Update.
12916 (status_pending_p_callback): Update.
12917 (wait_for_sigstop): Update. Simplify read of ptid.
12918 (start_step_over): Update.
12919 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
12920 (get_lwp_thread): Update.
12921 (struct lwp_info): Rename member "head" to "entry".
12922 * regcache.h (inferior_list_entry): Delete.
12923 * server.c (kill_inferior_callback): Update.
12924 (detach_or_kill_inferior_callback): Update.
12925 (print_started_pid): Update.
12926 (print_attached_pid): Update.
12927 (process_serial_event): Simplify read of ptid.
12928 * thread-db.c (thread_db_create_event): Update.
12929 (thread_db_get_tls_address): Update.
12930 * win32-low.c (current_inferior_ptid): Simplify.
12932 2014-02-19 Tom Tromey <tromey@redhat.com>
12934 * target.h (struct target_ops) <supports_btrace>: Add target_ops
12936 (target_supports_btrace): Update.
12938 2014-02-14 Yao Qi <yao@codesourcery.com>
12940 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
12941 (rsp-low-ipa.o): New target.
12943 2014-02-12 Tom Tromey <tromey@redhat.com>
12945 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
12946 convert_ascii_to_int.
12947 * regcache.c (registers_to_string): Likewise.
12948 * remote-utils.c (decode_M_packet): Likewise.
12949 * server.c (process_serial_event): Likewise.
12951 2014-02-12 Tom Tromey <tromey@redhat.com>
12953 * server.c (handle_query, handle_v_run): Use hex2bin, not
12955 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
12957 2014-02-12 Tom Tromey <tromey@redhat.com>
12959 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
12960 convert_int_to_ascii.
12961 * regcache.c (registers_to_string, collect_register_as_string):
12963 * remote-utils.c (look_up_one_symbol, relocate_instruction):
12965 * server.c (process_serial_event): Likewise.
12966 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
12967 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
12969 2014-02-12 Tom Tromey <tromey@redhat.com>
12971 * remote-utils.c (look_up_one_symbol, monitor_output): Use
12972 bin2hex, not hexify.
12973 * tracepoint.c (cmd_qtstatus): Likewise.
12975 2014-02-12 Tom Tromey <tromey@redhat.com>
12977 * remote-utils.c (monitor_output): Pass explicit length to
12980 2014-02-12 Tom Tromey <tromey@redhat.com>
12982 * tracepoint.c: Include rsp-low.h.
12983 * server.c: Include rsp-low.h.
12984 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
12985 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
12987 * remote-utils.c: Include rsp-low.h.
12988 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
12989 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
12990 (convert_int_to_ascii, convert_ascii_to_int): Move to
12992 * regcache.c: Include rsp-low.h.
12993 * ax.c: Include rsp-low.h.
12994 * Makefile.in (SFILES): Add common/rsp-low.c.
12995 (OBS): Add rsp-low.o.
12996 (rsp-low.o): New target.
12998 2014-02-12 Tom Tromey <tromey@redhat.com>
13000 * utils.h (pulongest, plongest, phex_nz): Don't declare.
13001 Include print-utils.h.
13002 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13003 (plongest, thirty_two, phex_nz): Remove.
13004 * Makefile.in (SFILES): Add common/print-utils.c.
13005 (OBS): Add print-utils.o.
13006 (print-utils-ipa.o): New target.
13007 (print-utils.o): New target.
13008 (IPA_OBJS): Add print-utils-ipa.o.
13010 2014-02-06 Tom Tromey <tromey@redhat.com>
13012 * Makefile.in (SFILES): Fix indentation.
13014 2014-02-05 Doug Evans <dje@google.com>
13016 * linux-low.c (linux_wait_for_event): Improve comment.
13017 (linux_wait_1): Keep current_inferior in sync with event_child.
13019 2014-01-22 Doug Evans <dje@google.com>
13021 * gdbthread.h (gdb_id_to_thread): Delete, unused.
13023 2014-01-22 Doug Evans <dje@google.com>
13025 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
13026 * configure: Regenerate.
13027 * config.in: Regenerate.
13028 * Makefile.in (SFILES): Add debug.c.
13029 (OBS): Add debug.o.
13030 * debug.c: New file.
13031 * debug.h: New file.
13032 * linux-aarch64-low.c (*): Update all debugging printfs to use
13033 debug_printf instead of fprintf.
13034 * linux-arm-low.c (*): Ditto.
13035 * linux-cris-low.c (*): Ditto.
13036 * linux-crisv32-low.c (*): Ditto.
13037 * linux-m32r-low.c (*): Ditto.
13038 * linux-sparc-low.c (*): Ditto.
13039 * linux-x86.c (*): Ditto.
13040 * linux-low.c (*): Ditto.
13041 (linux_wait_1): Add calls to debug_enter, debug_exit.
13042 (linux_wait): Remove redundant debugging printf.
13043 (stop_all_lwps): Add calls to debug_enter, debug_exit.
13044 (linux_resume, unstop_all_lwps): Ditto.
13045 * mem-break.c (*): Update all debugging printfs to use
13046 debug_printf instead of fprintf.
13047 * remote-utils.c (*): Ditto.
13048 * thread-db.c (*): Ditto.
13049 * server.c #include <ctype.h>, "gdb_vecs.h".
13050 (debug_threads): Moved to debug.c.
13051 (*): Update all debugging printfs to use debug_printf instead of
13053 (start_inferior): Replace call to fflush with call to debug_flush.
13054 (monitor_show_help): Mention set debug-format.
13055 (parse_debug_format_options): New function.
13056 (handle_monitor_command): Handle "monitor set debug-format".
13057 (gdbserver_usage): Mention --debug-format.
13058 (main): Parse --debug-format.
13059 * server.h (debug_threads): Declaration moved to debug.h.
13060 #include "debug.h".
13061 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
13062 trace_debug_1 that uses debug_printf.
13063 (tracepoint_look_up_symbols): Update all debugging printfs to use
13064 debug_printf instead of fprintf.
13066 2014-01-20 Baruch Siach <baruch@tkos.co.il>
13068 * linux-xtensa-low.c: Include asm/ptrace.h instead of
13071 2014-01-17 Pedro Alves <palves@redhat.com>
13074 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
13075 defined after including gdb_proc_service.h.
13077 2014-01-16 Doug Evans <dje@google.com>
13079 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
13080 (match_dll): Use it.
13082 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13084 * target.h (target_ops) <read_btrace>: Change parameters and
13085 return type to allow error reporting.
13086 * server.c (handle_qxfer_btrace): Support delta reads. Pass
13087 trace reading errors on.
13088 * linux-low.c (linux_low_read_btrace): Pass trace reading
13090 (linux_low_disable_btrace): New.
13092 2014-01-15 Doug Evans <dje@google.com>
13094 * inferiors.c (thread_id_to_gdb_id): Delete.
13095 * inferiors.h (thread_id_to_gdb_id): Delete.
13097 2014-01-13 Eli Zaretskii <eliz@gnu.org>
13099 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
13100 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
13103 2014-01-08 Pedro Alves <palves@redhat.com>
13105 * server.c (handle_status): Don't discard previous queued stop
13106 replies or thread's pending status here.
13107 (main) <disconnection>: Do it here instead.
13109 2014-01-08 Pedro Alves <palves@redhat.com>
13111 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
13112 * server.c (visit_actioned_threads, handle_pending_status): New
13114 (handle_v_cont): Factor out parts to ...
13115 (resume): ... this new function. If in all-stop, and a thread
13116 being resumed has a pending status, report it without actually
13118 (myresume): Adjust to use the new 'resume' function.
13119 (clear_pending_status_callback, set_pending_status_callback)
13120 (find_status_pending_thread_callback): New functions.
13121 (handle_status): Handle the case of multiple threads having
13122 interesting statuses to report. Report threads' real last signal
13123 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
13124 with an interesting thread to report the status for, instead of
13125 always reporting the status of the first thread.
13127 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13129 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
13130 * gdbreplay.c (gdbreplay_version): Likewise.
13132 2013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
13134 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
13135 iov.iov_len with the real length in use.
13137 2013-12-13 Joel Brobecker <brobecker@adacore.com>
13139 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
13140 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
13141 for all targets that use win32-low.c.
13142 * win32-low.c (win32_ensure_ntdll_loaded): New function.
13143 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
13145 2013-12-13 Pedro Alves <palves@redhat.com>
13147 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
13148 if equal to TARGET_WAITKIND_LOADED.
13149 * win32-low.c (cached_status): New static global.
13150 (win32_wait): Add declaration.
13151 (do_initial_child_stuff): Flush all initial pending debug events
13152 up to the initial breakpoint.
13153 (win32_wait): If CACHED_STATUS was set, return that instead
13154 of doing a real wait. Remove the code resuming the execution
13155 of the inferior after receiving a TARGET_WAITKIND_LOADED event
13156 during the initial phase. Also remove the code changing
13157 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
13158 TARGET_WAITKIND_STOPPED.
13160 2013-12-11 Yao Qi <yao@codesourcery.com>
13162 * notif.c (handle_notif_ack): Return 0 if no notification
13165 2013-11-20 Doug Evans <dje@google.com>
13167 * linux-low.c (linux_set_resume_request): Fix comment.
13169 2013-11-20 Doug Evans <dje@google.com>
13171 * linux-low.c (resume_status_pending_p): Tweak comment.
13173 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
13175 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
13176 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
13177 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
13178 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
13179 (srv_amd64_regobj): Add amd64-mpx.o.
13180 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
13181 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
13182 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
13183 * i387-fp.c (num_pl_bnd_register) Added constant.
13184 (num_pl_bnd_cfg_registers) Added constant.
13185 (struct i387_xsave) Added reserved area and MPX fields.
13186 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
13187 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
13189 (tdesc_i386_mpx_linux): Add MPX amd64 target.
13190 (init_registers_amd64_mpx_linux): Declare new function.
13191 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
13192 (x86_64_regmap): Add MPX registers.
13193 (x86_linux_read_description): Add MPX case.
13194 (initialize_low_arch): Initialize MPX targets.
13196 2013-11-18 Tom Tromey <tromey@redhat.com>
13198 * configure: Rebuild.
13199 * configure.ac: Don't check for stdlib.h.
13200 * gdbreplay.c: Unconditionally include stdlib.h.
13202 2013-11-18 Tom Tromey <tromey@redhat.com>
13204 * config.in: Rebuild.
13205 * configure: Rebuild.
13206 * configure.ac: Don't use AC_HEADER_DIRENT.
13208 2013-11-18 Tom Tromey <tromey@redhat.com>
13210 * server.h: Don't check HAVE_STRING_H.
13211 * gdbreplay.c: Don't check HAVE_STRING_H.
13212 * configure: Rebuild.
13214 2013-11-18 Tom Tromey <tromey@redhat.com>
13216 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
13219 2013-11-08 Tom Tromey <tromey@redhat.com>
13221 * configure, config.in: Rebuild.
13222 * configure.ac: Remove unused configury.
13224 2013-11-08 Tom Tromey <tromey@redhat.com>
13226 * acinclude.m4: Include common.m4, codeset.m4.
13227 * configure, config.in: Rebuild.
13228 * configure.ac: Use GDB_AC_COMMON.
13230 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
13232 * linux-s390-low.c (HWCAP_S390_TE): New define.
13233 (s390_arch_setup): Consider the TE field in the HWCAP for
13234 determining 'have_regset_tdb'.
13236 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
13239 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
13242 2013-10-02 Pedro Alves <palves@redhat.com>
13244 * server.c (process_serial_event): Don't output "GDBserver
13245 exiting" if GDB is connected through stdio.
13246 * target.c (mywait): Likewise, be silent if GDB is connected
13249 2013-10-01 Joel Brobecker <brobecker@adacore.com>
13251 * lynx-low.c (lynx_add_threads_after_attach): New function.
13252 (lynx_attach): Remove call to add_thread. Add call to
13253 lynx_add_threads_after_attach instead.
13255 2013-09-28 Mike Frysinger <vapier@gentoo.org>
13257 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
13258 * config.in, configure: Regenerated.
13260 2013-09-18 Yao Qi <yao@codesourcery.com>
13263 * server.c (start_inferior): Clear 'resume_info'.
13265 2013-09-16 Jiong Wang <jiwang@tilera.com>
13267 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
13270 2013-09-16 Jiong Wang <jiwang@tilera.com>
13272 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
13273 linux-tile-low.o to srv_tgtobj.
13275 2013-09-16 Will Newton <will.newton@linaro.org>
13277 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
13280 2013-09-06 Pedro Alves <palves@redhat.com>
13282 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
13283 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
13284 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
13285 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
13286 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
13287 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
13289 2013-09-06 Pedro Alves <palves@redhat.com>
13291 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
13292 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
13294 2013-09-06 Pedro Alves <palves@redhat.com>
13296 * linux-amd64-ipa.c: Include tracepoint.h.
13297 * linux-i386-ipa.c: Include tracepoint.h.
13299 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
13301 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
13302 (ps_get_thread_area): New function.
13304 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
13306 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
13307 (initialize_low_arch): Call init_registers_crisv32 rather than
13308 init_register_crisv32.
13310 2013-09-05 Pedro Alves <palves@redhat.com>
13312 * server.h (handle_vFile, hostio_last_error_from_errno): Move
13314 * hostio.h: ... this new file.
13315 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
13316 win32-low.c: Include hostio.h.
13318 2013-09-05 Pedro Alves <palves@redhat.com>
13320 * server.h (gdb_client_data, handler_func, callback_handler_func)
13321 (delete_file_handler, add_file_handler, append_callback_event)
13322 (delete_callback_event, start_event_loop, initialize_event_loop):
13323 Move to event-loop.h and include it.
13324 * event-loop.h: New file.
13326 2013-09-05 Pedro Alves <palves@redhat.com>
13328 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
13329 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
13330 (loaded_dll, unloaded_dll): Move to ...
13331 * dll.h: ... this new file.
13332 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
13334 2013-09-05 Pedro Alves <palves@redhat.com>
13336 * server.h (current_process, get_thread_process, all_processes)
13337 (add_inferior_to_list, for_each_inferior, current_inferior)
13338 (remove_inferior, add_process, remove_process, find_process_pid)
13339 (have_started_inferiors_p, have_attached_inferiors_p)
13340 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
13341 (clear_inferiors, find_inferior, find_inferior_id)
13342 (inferior_target_data, set_inferior_target_data)
13343 (inferior_regcache_data, set_inferior_regcache_data): Move to
13344 inferiors.h, and include it.
13345 * inferiors.h: New file.
13347 2013-09-05 Pedro Alves <palves@redhat.com>
13349 * server.h (struct emit_ops, current_insn_ptr, emit_error):
13353 2013-09-05 Pedro Alves <palves@redhat.com>
13355 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
13357 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
13358 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
13359 (handle_tracepoint_general_set, handle_tracepoint_query)
13360 (tracepoint_finished_step, tracepoint_was_hit)
13361 (release_while_stepping_state_list, current_traceframe)
13362 (in_readonly_region, traceframe_read_mem)
13363 (fetch_traceframe_registers, traceframe_read_sdata)
13364 (traceframe_read_info, struct fast_tpoint_collect_status)
13365 (fast_tracepoint_collecting, force_unlock_trace_buffer)
13366 (handle_tracepoit_bkpts, initialize_low_tracepoint)
13367 (supply_fast_tracepoint_registers)
13368 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
13369 (ipa_tdesc, claim_trampoline_space)
13370 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
13371 (agent_mem_read, agent_get_trace_state_variable_value)
13372 (agent_set_trace_state_variable_value, agent_tsv_read)
13373 (agent_mem_read_string, get_raw_reg_func_addr)
13374 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
13375 * tracepoint.h: ... this new file.
13377 2013-09-05 Pedro Alves <palves@redhat.com>
13379 * server.h (perror_with_name, error, fatal, warning, paddress)
13380 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
13382 * utils.h: New file.
13384 2013-09-05 Pedro Alves <palves@redhat.com>
13386 * server.h (remote_debug, noack_mode, transport_is_reliable)
13387 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
13388 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
13389 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
13390 (write_enn, initialize_async_io, enable_async_io)
13391 (disable_async_io, check_remote_input_interrupt_request)
13392 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
13393 (dead_thread_notify, prepare_resume_reply)
13394 (decode_address_to_semicolon, decode_address, decode_m_packet)
13395 (decode_M_packet, decode_X_packet, decode_xfer_write)
13396 (decode_search_memory_packet, unhexify, hexify)
13397 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
13398 (look_up_one_symbol, relocate_instruction)
13399 (monitor_output): Move to remote-utils.h, and include it.
13400 * remote-utils.h: New file.
13402 2013-09-05 Pedro Alves <palves@redhat.com>
13404 * server.h (_): Delete.
13406 2013-09-02 Pedro Alves <palves@redhat.com>
13408 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
13409 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
13411 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
13413 2013-09-02 Pierre Muller <muller@sourceware.org>
13415 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
13416 or WriteProcessMemory complete successfully and handle
13417 ERROR_PARTIAL_COPY error.
13419 2013-09-02 Pedro Alves <palves@redhat.com>
13421 * server.c (gdb_read_memory): Return -1 on traceframe memory read
13422 error instead of EIO.
13424 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
13427 * linux-low.c: Include filestuff.h.
13428 (linux_create_inferior) <pid == 0>: Call close_most_fds.
13429 * lynx-low.c: Include filestuff.h.
13430 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
13431 * server.c: Include filestuff.h.
13432 (main): Call notice_open_fds.
13433 * spu-low.c: Include filestuff.h.
13434 (spu_create_inferior) <pid == 0>: Call close_most_fds.
13436 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
13438 * Makefile.in: Explain why ../target and ../nat are not
13439 listed as include file search paths.
13440 (linux-waitpid.o): New object file rule.
13441 * configure.srv (srv_native_linux_obj): New variable.
13442 Replace all occurrences of linux native object files with
13443 $srv_native_linux_obj.
13444 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
13445 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
13446 (linux_enable_event_reporting): Remove declaration.
13447 (my_waitpid): Moved to common/linux-waitpid.c.
13448 (linux_wait_for_event): Pass ptid when calling
13449 linux_enable_event_reporting.
13450 (linux_supports_tracefork_flag): Remove.
13451 (linux_enable_event_reporting): Likewise.
13452 (linux_tracefork_grandchild): Remove.
13453 (STACK_SIZE): Moved to common/linux-ptrace.c.
13454 (linux_tracefork_child): Remove.
13455 (linux_test_for_tracefork): Remove.
13456 (linux_look_up_symbols): Call linux_supports_traceclone.
13457 (initialize_low): Remove call to linux_test_for_tracefork.
13458 * linux-low.h (PTRACE_TYPE_ARG3): Move to
13459 common/linux-ptrace.h.
13460 (PTRACE_TYPE_ARG4): Likewise.
13461 Include linux-ptrace.h.
13463 2013-08-21 Pedro Alves <palves@redhat.com>
13465 * config.in: Renegerate.
13467 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
13469 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
13470 (SFILES): Remove $(srcdir)/common/target-common.c and
13471 add $(srcdir)/target/waitstatus.c.
13472 (OBS): Remove target-common.o and add waitstatus.o.
13473 (server_h): Remove $(srcdir)/../common/target-common.h and
13474 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
13475 and $(srcdir)/../target/waitstatus.h.
13476 (target-common.o): Remove.
13477 (waitstatus.o): New target object file.
13478 * target.h: Do not include target-common.h and
13479 include target/resume.h, target/wait.h and
13480 target/waitstatus.h.
13482 2013-08-13 Luis Machado <lgustavo@codesourcery.com>
13484 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13485 to PTRACE_TYPE_ARG3.
13486 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13487 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
13489 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
13490 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
13492 2013-07-27 Jie Zhang <jie@codesourcery.com>
13493 Daniel Jacobowitz <dan@codesourcery.com>
13494 Yao Qi <yao@codesourcery.com>
13496 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
13497 (mips-linux-watch.o): New rule.
13498 (mips_linux_watch_h): New variable.
13499 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
13501 * linux-mips-low.c: Include mips-linux-watch.h.
13502 (struct arch_process_info, struct arch_lwp_info): New.
13503 (update_watch_registers_callback): New function.
13504 (mips_linux_new_process, mips_linux_new_thread) New functions.
13505 (mips_linux_prepare_to_resume, mips_insert_point): New
13507 (mips_remove_point, mips_stopped_by_watchpoint): New
13509 (rsp_bp_type_to_target_hw_bp_type): New function.
13510 (mips_stopped_data_address): New function.
13511 (the_low_target): Add watchpoint support functions.
13513 2013-07-27 Yao Qi <yao@codesourcery.com>
13515 * i386-low.c: Include break-common.h.
13516 (enum target_hw_bp_type): Remove.
13518 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
13520 * Makefile.in (SFILES): /common/target-common.c.
13521 (OBS): Add target-common.o.
13522 (server_h): Add $(srcdir)/../common/target-common.h.
13523 (target-common.o): New target.
13524 * server.c (queue_stop_reply_callback): Free
13525 status string after use.
13526 * target.c (target_waitstatus_to_string): Remove.
13527 * target.h: Include target-common.h.
13528 (resume_kind): Likewise.
13529 (target_waitkind): Likewise.
13530 (target_waitstatus): Likewise.
13531 (TARGET_WNOHANG): Likewise.
13533 2013-07-04 Yao Qi <yao@codesourcery.com>
13535 * Makefile.in (host_alias): Use @host_noncanonical@.
13536 (target_alias): Use @target_noncanonical@.
13537 * configure.ac: Use ACX_NONCANONICAL_TARGET and
13538 ACX_NONCANONICAL_HOST.
13539 * configure: Regenerated.
13542 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13544 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13545 * configure: Rebuild.
13546 * Makefile.in (version_host, version_target): Get from configure.
13547 (version.c): Use $(version_host) and $(version_target).
13549 2013-07-03 Pedro Alves <palves@redhat.com>
13551 * Makefile.in (config.status): Depend on development.sh.
13552 * acinclude.m4: Include libmcheck.m4.
13553 * configure: Regenerate.
13555 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13557 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
13558 attribute inside the parentheses.
13559 (winapi_DebugSetProcessKillOnExit): Ditto.
13560 (winapi_DebugBreakProcess): Ditto.
13561 (winapi_GenerateConsoleCtrlEvent): Ditto.
13563 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13565 * notif.h (notif_event): Add a dummy member to avoid compiler
13568 2013-07-01 Pedro Alves <palves@redhat.com>
13570 * hostio.c (HOSTIO_PATH_MAX): Define.
13571 (require_filename, handle_open, handle_unlink, handle_readlink):
13574 2013-07-01 Pedro Alves <palves@redhat.com>
13576 * server.h: Include "pathmax.h".
13577 * linux-low.c: Don't include sys/param.h.
13578 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
13580 * win32-low.c: Don't include sys/param.h.
13581 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
13583 2013-07-01 Pedro Alves <palves@redhat.com>
13585 * event-loop.c: Don't check HAVE_UNISTD_H before including
13587 * gdbreplay.c: Likewise.
13588 * remote-utils.c: Likewise.
13589 * server.c: Likewise.
13590 * configure.ac: Don't check for unistd.h.
13591 * configure: Regenerate.
13593 2013-06-28 Tom Tromey <tromey@redhat.com>
13595 * Makefile.in (version.c): Use version.in, not
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-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13607 Fix trace-status to output user name without trailing colon.
13608 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
13610 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13612 Fix trace-status to output proper start-time and stop-time.
13613 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
13614 output start time and stop time in hex as gdb expects.
13616 2013-06-26 Pedro Alves <pedro@codesourcery.com>
13618 * tracepoint.c (build_traceframe_info_xml): Output trace state
13619 variables present in the trace buffer.
13621 2013-06-24 Tom Tromey <tromey@redhat.com>
13623 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
13625 (version.o): Remove.
13626 * gdbreplay.c: Include version.h.
13627 (version, host_name): Don't declare.
13628 * server.h: Include version.h.
13629 (version, host_name): Don't declare.
13631 2013-06-12 Pedro Alves <palves@redhat.com>
13633 * linux-x86-low.c (linux_is_elf64): Delete global.
13634 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
13635 with local linux_pid_exe_is_elf_64_file use.
13637 2013-06-11 Pedro Alves <palves@redhat.com>
13639 * linux-low.c (regset_disabled, disable_regset): New functions.
13640 (regsets_fetch_inferior_registers)
13641 (regsets_store_inferior_registers): Use them.
13642 (initialize_regsets_info); Don't allocate the disabled_regsets
13644 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
13647 2013-06-11 Pedro Alves <palves@redhat.com>
13649 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
13652 2013-06-11 Pedro Alves <palves@redhat.com>
13654 * linux-x86-low.c (initialize_low_arch): Call
13655 init_registers_x32_avx_linux.
13657 2013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13659 Fix compatibility with Android Bionic.
13660 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
13663 2013-06-07 Pedro Alves <palves@redhat.com>
13666 * Makefile.in (OBS): Add tdesc.o.
13667 (IPA_OBJS): Add tdesc-ipa.o.
13668 (tdesc-ipa.o): New rule.
13669 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
13671 * linux-low.c (new_inferior): Delete.
13672 (disabled_regsets, num_regsets): Delete.
13673 (linux_add_process): Adjust to set the new per-process
13675 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
13676 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
13677 was a stop. When calling arch_setup, switch the current inferior
13678 to the thread that got an event.
13679 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
13680 (regsets_fetch_inferior_registers)
13681 (regsets_store_inferior_registers): New regsets_info parameter.
13683 (linux_register_in_regsets): New regs_info parameter. Adjust to
13685 (register_addr, fetch_register, store_register): New usrregs_info
13686 parameter. Adjust to use it.
13687 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
13688 parameter regs_info. Adjust to use it.
13689 (linux_fetch_registers): Get the current inferior's regs_info, and
13691 (linux_store_registers): Ditto.
13692 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
13693 (initialize_low): Don't initialize the target_regsets here. Call
13694 initialize_low_arch.
13695 * linux-low.h (target_regsets): Delete declaration.
13696 (struct regsets_info): New.
13697 (struct usrregs_info): New.
13698 (struct regs_info): New.
13699 (struct process_info_private) <new_inferior>: New field.
13700 (struct linux_target_ops): Delete the num_regs, regmap, and
13701 regset_bitmap fields. New field regs_info.
13702 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
13703 * i387-fp.c (num_xmm_registers): Delete.
13704 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
13705 calls to new interface.
13706 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
13707 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
13708 Infer the number of xmm registers from the regcache's target
13710 * i387-fp.h (num_xmm_registers): Delete.
13711 * inferiors.c (add_thread): Don't install the thread's regcache
13713 * proc-service.c (gregset_info): Fetch the current inferior's
13714 regs_info. Adjust to use it.
13715 * regcache.c: Include tdesc.h.
13716 (register_bytes, reg_defs, num_registers)
13717 (gdbserver_expedite_regs): Delete.
13718 (get_thread_regcache): If the thread doesn't have a regcache yet,
13719 create one, instead of aborting gdbserver.
13720 (regcache_invalidate_one): Rename to ...
13721 (regcache_invalidate_thread): ... this.
13722 (regcache_invalidate_one): New.
13723 (regcache_invalidate): Only invalidate registers of the current
13725 (init_register_cache): Add target_desc parameter, and use it.
13726 (new_register_cache): Ditto. Assert the target description has a
13727 non zero registers_size.
13728 (regcache_cpy): Add assertions. Adjust.
13729 (realloc_register_cache, set_register_cache): Delete.
13730 (registers_to_string, registers_from_string): Adjust.
13731 (find_register_by_name, find_regno, find_register_by_number)
13732 (register_cache_size): Add target_desc parameter, and use it.
13733 (free_register_cache_thread, free_register_cache_thread_one)
13734 (regcache_release, register_cache_size): New.
13735 (register_size): Add target_desc parameter, and use it.
13736 (register_data, supply_register, supply_register_zeroed)
13737 (supply_regblock, supply_register_by_name, collect_register)
13738 (collect_register_as_string, collect_register_by_name): Adjust.
13739 * regcache.h (struct target_desc): Forward declare.
13740 (struct regcache) <tdesc>: New field.
13741 (init_register_cache, new_register_cache): Add target_desc
13743 (regcache_invalidate_thread): Declare.
13744 (regcache_invalidate_one): Delete declaration.
13745 (regcache_release): Declare.
13746 (find_register_by_number, register_cache_size, register_size)
13747 (find_regno): Add target_desc parameter.
13748 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
13750 * remote-utils.c: Include tdesc.h.
13751 (outreg, prepare_resume_reply): Adjust.
13752 * server.c: Include tdesc.h.
13753 (gdbserver_xmltarget): Delete declaration.
13754 (get_features_xml, process_serial_event): Adjust.
13755 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
13757 (struct process_info) <tdesc>: New field.
13758 (ipa_tdesc): Declare.
13759 * tdesc.c: New file.
13760 * tdesc.h: New file.
13761 * tracepoint.c: Include tdesc.h.
13762 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
13763 (get_context_regcache): Adjust to pass ipa_tdesc down.
13764 (do_action_at_tracepoint): Adjust to get the register cache size
13765 from the context regcache's description.
13766 (traceframe_walk_blocks): Adjust to get the register cache size
13767 from the current trace frame's description.
13768 (traceframe_get_pc): Adjust to get current trace frame's
13769 description and pass it down.
13770 (gdb_collect): Adjust to get the register cache size from the
13772 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
13773 (gdbserver_xmltarget): Delete.
13774 (initialize_low_tracepoint): Set the ipa's target description.
13775 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
13776 (initialize_low_tracepoint): Set the ipa's target description.
13777 * linux-x86-low.c: Include tdesc.h.
13778 [__x86_64__] (is_64bit_tdesc): New.
13779 (ps_get_thread_area, x86_get_thread_area): Use it.
13780 (i386_cannot_store_register): Rename to ...
13781 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
13782 (i386_cannot_fetch_register): Rename to ...
13783 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
13784 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
13786 (target_regsets): Rename to ...
13787 (x86_regsets): ... this.
13788 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
13790 (x86_siginfo_fixup): Use is_64bit_tdesc.
13791 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
13792 (tdesc_x32_avx_linux, tdesc_x32_linux)
13793 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
13795 (x86_linux_update_xmltarget): Delete.
13796 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
13797 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
13798 (AMD64_LINUX_USER64_CS): New.
13799 (x86_linux_read_description): New, based on
13800 x86_linux_update_xmltarget.
13801 (same_process_callback): New.
13802 (x86_arch_setup_process_callback): New.
13803 (x86_linux_update_xmltarget): New.
13804 (x86_regsets_info): New.
13805 (amd64_linux_regs_info): New.
13806 (i386_linux_usrregs_info): New.
13807 (i386_linux_regs_info): New.
13808 (x86_linux_regs_info): New.
13809 (x86_arch_setup): Reimplement.
13810 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
13811 (x86_emit_ops): Ditto.
13812 (the_low_target): Adjust. Install x86_linux_regs_info,
13813 x86_cannot_fetch_register, and x86_cannot_store_register.
13814 (initialize_low_arch): New.
13815 * linux-ia64-low.c (tdesc_ia64): Declare.
13816 (ia64_fetch_register): Adjust.
13817 (ia64_usrregs_info, regs_info): New globals.
13818 (ia64_regs_info): New function.
13819 (the_low_target): Adjust.
13820 (initialize_low_arch): New function.
13821 * linux-sparc-low.c (tdesc_sparc64): Declare.
13822 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
13824 (sparc_arch_setup): New function.
13825 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
13826 (the_low_target): Adjust.
13827 (initialize_low_arch): New function.
13828 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
13829 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
13830 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
13831 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
13832 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
13833 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
13834 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
13835 (tdesc_powerpc_isa205_vsx64l): Declare.
13836 (ppc_cannot_store_register, ppc_collect_ptrace_register)
13837 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
13838 (ppc_set_pc, ppc_get_hwcap): Adjust.
13839 (ppc_usrregs_info): Forward declare.
13840 (!__powerpc64__) ppc_regmap_adjusted: New global.
13841 (ppc_arch_setup): Adjust to the current process'es target
13843 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
13844 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
13845 (ppc_store_evrregset): Adjust.
13846 (target_regsets): Rename to ...
13847 (ppc_regsets): ... this, and make static.
13848 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
13849 (ppc_regs_info): New function.
13850 (the_low_target): Adjust.
13851 (initialize_low_arch): New function.
13852 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
13853 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
13854 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
13855 (tdesc_s390x_linux64v2): Declare.
13856 (s390_collect_ptrace_register, s390_supply_ptrace_register)
13857 (s390_fill_gregset, s390_store_last_break): Adjust.
13858 (target_regsets): Rename to ...
13859 (s390_regsets): ... this, and make static.
13860 (s390_get_pc, s390_set_pc): Adjust.
13861 (s390_get_hwcap): New target_desc parameter, and use it.
13862 [__s390x__] (have_hwcap_s390_high_gprs): New global.
13863 (s390_arch_setup): Adjust to set the current process'es target
13864 description. Don't adjust the regmap.
13865 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
13866 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
13867 (regs_info_3264): New globals.
13868 (s390_regs_info): New function.
13869 (the_low_target): Adjust.
13870 (initialize_low_arch): New function.
13871 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
13872 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
13873 [__mips64] (init_registers_mips_linux)
13874 (init_registers_mips_dsp_linux): Delete defines.
13875 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
13876 (have_dsp): New global.
13877 (mips_read_description): New, based on mips_arch_setup.
13878 (mips_arch_setup): Reimplement.
13879 (get_usrregs_info): New function.
13880 (mips_cannot_fetch_register, mips_cannot_store_register)
13881 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
13882 (mips_fill_fpregset, mips_store_fpregset): Adjust.
13883 (target_regsets): Rename to ...
13884 (mips_regsets): ... this, and make static.
13885 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
13886 (dsp_regs_info, regs_info): New globals.
13887 (mips_regs_info): New function.
13888 (the_low_target): Adjust.
13889 (initialize_low_arch): New function.
13890 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
13891 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
13893 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
13894 (arm_read_description): New, with bits factored from
13896 (arm_arch_setup): Reimplement.
13897 (target_regsets): Rename to ...
13898 (arm_regsets): ... this, and make static.
13899 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
13900 (arm_regs_info): New function.
13901 (the_low_target): Adjust.
13902 (initialize_low_arch): New function.
13903 * linux-m68k-low.c (tdesc_m68k): Declare.
13904 (target_regsets): Rename to ...
13905 (m68k_regsets): ... this, and make static.
13906 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
13907 (m68k_regs_info): New function.
13908 (m68k_arch_setup): New function.
13909 (the_low_target): Adjust.
13910 (initialize_low_arch): New function.
13911 * linux-sh-low.c (tdesc_sharch): Declare.
13912 (target_regsets): Rename to ...
13913 (sh_regsets): ... this, and make static.
13914 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
13915 (sh_regs_info, sh_arch_setup): New functions.
13916 (the_low_target): Adjust.
13917 (initialize_low_arch): New function.
13918 * linux-bfin-low.c (tdesc_bfin): Declare.
13919 (bfin_arch_setup): New function.
13920 (bfin_usrregs_info, regs_info): New globals.
13921 (bfin_regs_info): New function.
13922 (the_low_target): Adjust.
13923 (initialize_low_arch): New function.
13924 * linux-cris-low.c (tdesc_cris): Declare.
13925 (cris_arch_setup): New function.
13926 (cris_usrregs_info, regs_info): New globals.
13927 (cris_regs_info): New function.
13928 (the_low_target): Adjust.
13929 (initialize_low_arch): New function.
13930 * linux-cris-low.c (tdesc_crisv32): Declare.
13931 (cris_arch_setup): New function.
13932 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
13933 (cris_regs_info): New function.
13934 (the_low_target): Adjust.
13935 (initialize_low_arch): New function.
13936 * linux-m32r-low.c (tdesc_m32r): Declare.
13937 (m32r_arch_setup): New function.
13938 (m32r_usrregs_info, regs_info): New globals.
13939 (m32r_regs_info): Adjust.
13940 (initialize_low_arch): New function.
13941 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
13942 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
13943 (tic6x_usrregs_info): Forward declare.
13944 (tic6x_read_description): New function, based on ...
13945 (tic6x_arch_setup): ... this. Reimplement.
13946 (target_regsets): Rename to ...
13947 (tic6x_regsets): ... this, and make static.
13948 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
13949 (tic6x_regs_info): New function.
13950 (the_low_target): Adjust.
13951 (initialize_low_arch): New function.
13952 * linux-xtensa-low.c (tdesc_xtensa): Declare.
13953 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
13954 (target_regsets): Rename to ...
13955 (xtensa_regsets): ... this, and make static.
13956 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
13958 (xtensa_arch_setup, xtensa_regs_info): New functions.
13959 (the_low_target): Adjust.
13960 (initialize_low_arch): New function.
13961 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
13962 (nios2_arch_setup): Set the current process'es tdesc.
13963 (target_regsets): Rename to ...
13964 (nios2_regsets): ... this.
13965 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
13966 (nios2_regs_info): New function.
13967 (the_low_target): Adjust.
13968 (initialize_low_arch): New function.
13969 * linux-aarch64-low.c (tdesc_aarch64): Declare.
13970 (aarch64_arch_setup): Set the current process'es tdesc.
13971 (target_regsets): Rename to ...
13972 (aarch64_regsets): ... this.
13973 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
13974 (aarch64_regs_info): New function.
13975 (the_low_target): Adjust.
13976 (initialize_low_arch): New function.
13977 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
13979 (target_regsets): Rename to ...
13980 (tile_regsets): ... this.
13981 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
13982 (tile_regs_info): New function.
13983 (tile_arch_setup): Set the current process'es tdesc.
13984 (the_low_target): Adjust.
13985 (initialize_low_arch): New function.
13986 * spu-low.c (tdesc_spu): Declare.
13987 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
13988 * win32-arm-low.c (tdesc_arm): Declare.
13989 (arm_arch_setup): New function.
13990 (the_low_target): Install arm_arch_setup instead of
13991 init_registers_arm.
13992 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
13993 (init_windows_x86): Rename to ...
13994 (i386_arch_setup): ... this. Set `win32_tdesc'.
13995 (the_low_target): Adjust.
13996 * win32-low.c (win32_tdesc): New global.
13997 (child_add_thread): Don't create the thread cache here.
13998 (do_initial_child_stuff): Set the new process'es tdesc.
13999 * win32-low.h (struct target_desc): Forward declare.
14000 (win32_tdesc): Declare.
14001 * lynx-i386-low.c (tdesc_i386): Declare global.
14002 (lynx_i386_arch_setup): Set `lynx_tdesc'.
14003 * lynx-low.c (lynx_tdesc): New global.
14004 (lynx_add_process): Set the new process'es tdesc.
14005 * lynx-low.h (struct target_desc): Forward declare.
14006 (lynx_tdesc): Declare global.
14007 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
14008 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
14009 * nto-low.c (nto_tdesc): New global.
14010 (do_attach): Set the new process'es tdesc.
14011 * nto-low.h (struct target_desc): Forward declare.
14012 (nto_tdesc): Declare.
14013 * nto-x86-low.c (tdesc_i386): Declare.
14014 (nto_x86_arch_setup): Set `nto_tdesc'.
14016 2013-06-04 Gary Benson <gbenson@redhat.com>
14018 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
14019 to qSupported response when appropriate.
14020 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
14021 with nonzero-length annex.
14022 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
14023 arguments supplied in annex.
14025 2013-05-31 Doug Evans <dje@google.com>
14028 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
14029 64 bits in 64-cross-32 environment.
14031 2013-05-28 Pedro Alves <palves@redhat.com>
14033 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
14034 (aarch64-without-fpu.c): Delete rule.
14035 * configure.srv (aarch64*-*-linux*): Remove references to
14036 aarch64-without-fpu.o and aarch64-without-fpu.xml.
14037 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
14040 2013-05-24 Pedro Alves <palves@redhat.com>
14042 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
14043 instead of strchr/decode_address. Error if the range isn't split
14044 with a ','. Don't assume there's be a ':' in the action.
14046 2013-05-23 Yao Qi <yao@codesourcery.com>
14047 Pedro Alves <palves@redhat.com>
14049 * linux-low.c (lwp_in_step_range): New function.
14050 (linux_wait_1): If the thread was range stepping and stopped
14051 outside the stepping range, report the stop to GDB. Otherwise,
14052 continue stepping. Add range stepping debug output.
14053 (linux_set_resume_request): Copy the step range from the resume
14054 request to the lwp.
14055 (linux_supports_range_stepping): New.
14056 (linux_target_ops) <supports_range_stepping>: Set to
14057 linux_supports_range_stepping.
14058 * linux-low.h (struct linux_target_ops)
14059 <supports_range_stepping>: New field.
14060 (struct lwp_info) <step_range_start, step_range_end>: New fields.
14061 * linux-x86-low.c (x86_supports_range_stepping): New.
14062 (the_low_target) <supports_range_stepping>: Set to
14063 x86_supports_range_stepping.
14064 * server.c (handle_v_cont): Handle 'r' action.
14065 (handle_v_requests): Append ";r" if the target supports range
14067 * target.h (struct thread_resume) <step_range_start,
14068 step_range_end>: New fields.
14069 (struct target_ops) <supports_range_stepping>:
14071 (target_supports_range_stepping): New macro.
14073 2013-05-17 Joel Brobecker <brobecker@adacore.com>
14075 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
14076 confusion in comment.
14078 2013-05-17 Joel Brobecker <brobecker@adacore.com>
14080 * lynx-low.c (struct process_info_private): New type.
14081 (lynx_add_process): New function.
14082 (lynx_create_inferior, lynx_attach): Replace calls to
14083 add_process by calls to lynx_add_process.
14084 (lynx_resume): If PTID is null, then try using
14085 current_process()->private->last_wait_event_ptid.
14087 (lynx_clear_inferiors): Delete. The contents of that function
14088 has been inlined in lynx_mourn;
14089 (lynx_wait_1): Save the ptid in the process's private data.
14090 (lynx_mourn): Free the process' private data. Replace call
14091 to lynx_clear_inferiors by call to clear_inferiors.
14093 2013-05-17 Yao Qi <yao@codesourcery.com>
14095 * i386-low.c (i386_length_and_rw_bits): Move the comment to
14098 2013-05-16 Luis Machado <lgustavo@codesourcery.com>
14100 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
14101 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
14102 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
14103 PT_TEXT_END_ADDR guards. Update comments.
14104 (linux_target_op) <read_offsets>: Conditionally define to
14105 linux_read_offsets if the target is UCLIBC and if it defines
14106 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
14108 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
14109 Andrew Jenner <andrew@codesourcery.com>
14111 * Makefile.in (SFILES): Add linux-nios2-low.c.
14112 (clean): Add action to delete nios2-linux.c.
14113 (nios2-linux.c): New rule.
14114 * configure.srv: Add nios2*-*-linux*.
14115 * linux-nios2-low.c: New.
14117 2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
14119 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
14121 2013-04-25 Hui Zhu <hui@codesourcery.com>
14124 * ax.c (ax_printf): Add fflush.
14126 2013-04-22 Tom Tromey <tromey@redhat.com>
14128 * Makefile.in (SFILES): Add filestuff.c.
14129 (OBS): Add filestuff.o.
14130 (filestuff.o): New target.
14131 * config.in, configure: Rebuild.
14132 * configure.ac: Check for fdwalk, pipe2.
14134 2013-04-17 Pedro Alves <palves@redhat.com>
14136 * configure.ac (USE_THREAD_DB): Delete variable.
14137 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
14138 Don't AC_SUBST USE_THREAD_DB.
14139 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
14140 * config.in, configure: Regenerate.
14142 2013-04-16 Pedro Alves <palves@redhat.com>
14144 * linux-low.h (struct lwp_info) <thread_known>: Move under
14145 the USE_THREAD_DB #ifdef.
14147 2013-04-16 Pedro Alves <palves@redhat.com>
14149 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
14150 (linux-low.o): Delete rule.
14151 * linux-low.h: Always include "gdb_thread_db.h" instead of
14152 conditionally including thread_db.h.
14153 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
14156 2013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14158 * Makefile.in (install-only): Fix make install regression.
14160 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
14162 Convert man pages to texinfo, new gdbinit.5 texinfo page.
14163 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
14165 * gdbserver.1: Remove.
14167 2013-03-22 Pedro Alves <palves@redhat.com>
14169 * linux-low.c (handle_extended_wait): Don't call
14170 linux_enable_event_reporting.
14172 2013-03-15 Tony Theodore <tonyt@logyst.com>
14175 * Makefile.in (SHELL): Use @SHELL@.
14177 2013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
14179 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
14182 2013-03-13 Joel Brobecker <brobecker@adacore.com>
14184 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
14185 Remove extraneous NULL element.
14187 2013-03-13 Yao Qi <yao@codesourcery.com>
14189 * tracepoint.c (traceframe_read_tsv): Look for the last matched
14190 'V' block in trace frame.
14192 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14194 * target.h (struct target_ops): Add btrace ops.
14195 (target_supports_btrace): New macro.
14196 (target_enable_btrace): New macro.
14197 (target_disable_btrace): New macro.
14198 (target_read_btrace): New macro.
14199 * gdbthread.h (struct thread_info): Add btrace field.
14200 * server.c: Include btrace-common.h.
14201 (handle_btrace_general_set): New function.
14202 (handle_btrace_enable): New function.
14203 (handle_btrace_disable): New function.
14204 (handle_general_set): Call handle_btrace_general_set.
14205 (handle_qxfer_btrace): New function.
14206 (struct qxfer qxfer_packets[]): Add btrace entry.
14207 * inferiors.c (remove_thread): Disable btrace.
14208 * linux-low: Include linux-btrace.h.
14209 (linux_low_enable_btrace): New function.
14210 (linux_low_read_btrace): New function.
14211 (linux_target_ops): Add btrace ops.
14212 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
14213 Add srv_linux_btrace=yes.
14214 (x86_64-*-linux*): Add linux-btrace.o.
14215 Add srv_linux_btrace=yes.
14216 * configure.ac: Define HAVE_LINUX_BTRACE.
14217 * config.in: Regenerated.
14218 * configure: Regenerated.
14220 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14222 * server.c (handle_qxfer): Preserve error message if -3 is
14224 (qxfer): Document the -3 return value.
14226 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14228 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
14229 (linux_btrace_h): New variable.
14230 (linux-btrace.o): New rule.
14232 2013-03-08 Stan Shebs <stan@codesourcery.com>
14233 Hafiz Abid Qadeer <abidh@codesourcery.com>
14235 * tracepoint.c (trace_buffer_size): New global.
14236 (DEFAULT_TRACE_BUFFER_SIZE): New define.
14237 (init_trace_buffer): Change to one-argument function. Allocate
14238 trace buffer memory.
14239 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
14240 handle QTBuffer:size packet.
14241 (cmd_bigqtbuffer_size): New function.
14242 (initialize_tracepoint): Call init_trace_buffer with
14243 DEFAULT_TRACE_BUFFER_SIZE.
14244 * server.c (handle_query): Add QTBuffer:size in the
14247 2013-03-07 Yao Qi <yao@codesourcery.com>
14249 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
14250 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
14252 (cmd_qtsp): Adjust condition. Do post increment.
14253 Set cur_action and cur_step_action back to 0.
14255 2013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
14258 * linux-low.c (linux_write_memory): Return early success if LEN is
14261 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
14263 * configure.srv: Add x86_64-*-cygwin* as target.
14265 2013-02-28 Tom Tromey <tromey@redhat.com>
14267 * configure.ac: Invoke AC_SYS_LARGEFILE.
14268 * configure, config.in: Rebuild.
14270 2013-02-28 Corinna Vinschen <vinschen@redhat.com>
14272 * win32-low.c: Throughout, fix format strings and casts of
14273 printf-like functions to avoid type related warnings on all
14275 (get_child_debug_event): Print dwDebugEventCode as hex since
14276 that's how it's usually documented.
14278 2013-02-28 Yao Qi <yao@codesourcery.com>
14280 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
14283 2013-02-27 Jiong Wang <jiwang@tilera.com>
14285 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
14286 (reg-tilegx32.c): New rule.
14287 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
14288 * linux-tile-low.c (tile_arch_setup): New function. Invoke
14289 different register info initializer according to elf class.
14290 (init_registers_tilgx32): New function. The tilegx32 register info
14292 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
14293 (tile_store_gregset): Likewise.
14295 2013-02-27 Yao Qi <yao@codesourcery.com>
14297 * server.c (process_point_options): Print debug message when
14298 debug_threads is true.
14300 2013-02-26 Yao Qi <yao@codesourcery.com>
14302 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
14304 2013-02-19 Pedro Alves <palves@redhat.com>
14305 Kai Tietz <ktietz@redhat.com>
14309 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
14310 instead of strtoul to extract address from packet.
14311 (process_serial_event) <'z'>: Likewise.
14313 2013-02-18 Yao Qi <yao@codesourcery.com>
14315 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
14317 2013-02-14 Pedro Alves <palves@redhat.com>
14321 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
14322 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
14324 2013-02-14 Pedro Alves <palves@redhat.com>
14326 * tracepoint.c (cmd_qtdpsrc): Use savestring.
14328 2013-02-14 Pedro Alves <palves@redhat.com>
14330 * tracepoint.c (save_string): Delete.
14331 (add_tracepoint_action): Use savestring instead of save_string.
14333 2013-02-12 Pedro Alves <palves@redhat.com>
14335 * linux-xtensa-low.c: Ditto.
14336 * xtensa-xtregs.c: Ditto.
14338 2013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14340 * thread-db.c (thread_db_get_tls_address): NULL pointer check
14343 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14345 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
14346 aarch64_num_wp_regs and aarch64_num_bp_regs to
14347 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
14349 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14351 * linux-aarch64-low.c (ps_get_thread_area): Replace
14352 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
14354 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
14355 Marcus Shawcroft <marcus.shawcroft@arm.com>
14356 Nigel Stephens <nigel.stephens@arm.com>
14357 Yufeng Zhang <yufeng.zhang@arm.com>
14359 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
14360 (aarch64.c, aarch64-without-fpu.c): New targets.
14361 * configure.srv (aarch64*-*-linux*): New.
14362 * linux-aarch64-low.c: New file.
14364 2013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
14366 * linux-low.c (handle_extended_wait, linux_create_inferior)
14367 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
14368 (dequeue_one_deferred_signal, linux_resume_one_thread)
14369 (fetch_register, linux_write_memory, linux_enable_event_reporting)
14370 (linux_tracefork_grandchild, linux_test_for_tracefork)
14371 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
14372 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
14373 where the argument is 0.
14375 2013-01-25 Yao Qi <yao@codesourcery.com>
14377 * event-loop.c: Include "queue.h".
14378 (gdb_event_p): New typedef.
14379 (struct gdb_event) <next_event>: Remove.
14380 (event_queue): Change to QUEUE(gdb_event_p).
14381 (async_queue_event): Remove.
14382 (gdb_event_xfree): New.
14383 (initialize_event_loop): New.
14384 (process_event): Use API from QUEUE.
14385 (wait_for_event): Likewise.
14386 * server.c (main): Call initialize_event_loop.
14387 * server.h (initialize_event_loop): Declare.
14389 2013-01-18 Yao Qi <yao@codesourcery.com>
14391 * ax.h (struct eval_agent_expr_context): New.
14392 (gdb_eval_agent_expr): Update declaration.
14393 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
14394 TFRAME. Add new argument CTX.
14395 * server.h (struct eval_agent_expr_context): Declare.
14396 (agent_mem_read, agent_tsv_read): Update declaration.
14397 (agent_mem_read_string): Likewise.
14398 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
14399 (add_traceframe_block): Add new argument TPOINT.
14400 Increase TPOINT->traceframe_usage.
14401 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
14402 eval_tracepoint_agent_expr.
14403 (condition_true_at_tracepoint): Likewise.
14404 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
14405 (agent_mem_read_string, agent_tsv_read): Likewise.
14407 2013-01-16 Yao Qi <yao@codesourcery.com>
14409 * linux-low.c (linux_resume_one_lwp): Don't check
14410 'lwp->bp_reinsert != 0'.
14412 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14413 Pedro Alves <palves@redhat.com>
14415 * lynx-low.c (ptrace_request_to_str): Define a temporary
14416 macro and use it to simplify this function's implementation.
14418 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14420 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
14423 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14425 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
14427 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14429 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
14431 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14433 * lynx-low.c (lynx_resume): Use the resume_info parameter
14434 to determine the ptid for the lynx_ptrace call, unless
14435 it is equal to minus_one_ptid, in which case we use the
14436 ptid of the current_inferior.
14437 (lynx_wait_1): After having received a thread create/exit
14438 event, resume the inferior's execution using the signaling
14439 thread's ptid, rather than the old ptid.
14441 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14443 * lynx-low.c (lynx_resume): Delete variable ret.
14445 2013-01-01 Joel Brobecker <brobecker@adacore.com>
14447 * gdbreplay.c (gdbreplay_version): Update copyright year.
14448 * server.c (gdbserver_version): Likewise.
14450 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14452 * lynx-low.c (lynx_wait_1): Add debug trace before adding
14455 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14457 * lynx-low.c (ptrace_request_to_str): Add handling for
14458 PTRACE_GETTRACESIG.
14460 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14462 * lynx-low.c (lynx_attach): Delete variable new_process.
14464 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14466 * lynx-low.c (lynx_create_inferior): Delete variable
14469 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14471 * lynx-low.c (ptrace_request_to_str): Do not handle
14472 PTRACE_GETTHREADLIST if this macro does not exist.
14474 2012-12-15 Yao Qi <yao@codesourcery.com>
14476 * Makefile.in (OBS): Add notif.o.
14477 * notif.c, notif.h: New.
14478 * server.c: Include "notif.h".
14479 (struct vstop_notif) <next>: Remove.
14481 (queue_stop_reply): Update.
14482 (push_event, send_next_stop_reply): Remove.
14483 (discard_queued_stop_replies): Update.
14484 (notif_stop): New variable.
14485 (handle_v_stopped): Remove.
14486 (handle_v_requests): Don't call handle_v_stopped. Call
14487 handle_ack_notif instead.
14488 (queue_stop_reply_callback): Call notif_event_enque instead
14489 of queue_stop_reply.
14490 (handle_status): Don't call send_next_stop_reply, call
14491 notif_write_event instead.
14492 (kill_inferior_callback): Likewise.
14493 (detach_or_kill_inferior_callback): Likewise.
14494 (main): Call initialize_notif.
14495 (process_serial_event): Call QUEUE_is_empty.
14496 (handle_target_event): Call notif_push instead of push event.
14497 * server.h (push_event): Remove declaration.
14499 2012-12-10 Tom Tromey <tromey@redhat.com>
14501 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
14502 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
14505 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
14506 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
14507 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
14508 (amd64-linux-ipa.o, ax.o): Rewrite.
14509 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
14510 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
14511 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
14512 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
14513 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
14514 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
14515 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
14516 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
14517 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
14518 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
14519 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
14520 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
14521 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
14522 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
14523 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
14524 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
14525 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
14526 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
14527 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
14528 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
14529 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
14530 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
14531 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
14532 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
14533 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
14534 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
14535 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
14536 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
14537 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
14538 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
14539 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
14540 (reg-tilegx.o): Remove.
14541 (all_object_files): New macro.
14542 Include .deps files.
14543 * aclocal.m4, configure: Rebuild.
14544 * acinclude.m4: Include depstand.m4, lead-dot.m4.
14545 * configure.ac: Invoke ZW_CREATE_DEPDIR,
14546 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
14548 2012-12-05 Tom Tromey <tromey@redhat.com>
14551 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
14553 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
14555 * configure.ac: Check for linux/perf_event.h.
14556 * config.in: Regenerated.
14557 * configure: Regenerated.
14559 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
14561 * hostio.c (handle_readlink): Decrease buffer size
14562 parameter passed to readlink by one byte.
14564 2012-11-26 Yao Qi <yao@codesourcery.com>
14566 * configure.ac (build_warnings): Append '-Wempty-body'.
14567 * configure: Regenerated.
14568 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
14571 2012-11-15 Pierre Muller <muller@sourceware.org>
14573 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
14574 * config.in: Regenerate.
14575 * configure: Regenerate.
14576 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
14577 Use "gdb_wait.h" header instead of <sys/wait.h> header.
14578 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14579 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
14581 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
14582 instead of <sys/wait.h> header.
14583 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14585 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
14587 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
14588 (various make rules): Remove -DGDBSERVER
14590 2012-11-09 Yao Qi <yao@codesourcery.com>
14592 * spu-low.c (current_ptid): Move it to ..
14593 * gdbthread.h: ... here. New.
14594 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
14595 * server.c (myresume, process_serial_event): Likewise.
14596 * thread-db.c (thread_db_find_new_threads): Likewise.
14597 * tracepoint.c (run_inferior_command): Likewise.
14599 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
14601 * server.c (handle_search_memory_1): Include access length in
14604 2012-09-05 Michael Brandt <michael.brandt@axis.com>
14606 * linux-crisv32-low.c: Fix compile errors.
14608 2012-09-04 Yao Qi <yao@codesourcery.com>
14610 * tracepoint.c (cmd_qtsv): Adjust debug message.
14611 Don't check CUR_TPOINT.
14613 2012-08-28 Yao Qi <yao@codesourcery.com>
14615 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
14616 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
14617 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
14618 Remove declarations of xmalloc, xreallloc, xstrdup and
14620 * Makefile.in (libiberty_h): New.
14621 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
14622 (linux-bfin-low.o): Append dependency 'libiberty.h'.
14624 2012-08-23 Yao Qi <yao@codesourcery.com>
14626 * server.h: Remove declaration of 'xsnprintf'.
14628 2012-08-22 Keith Seitz <keiths@redhat.com>
14630 * server.h: Include build-gnulib-gbserver/config.h.
14631 * gdbreplay.c: Likewise.
14633 2012-08-08 Doug Evans <dje@google.com>
14635 * Makefile.in (SFILES): Add gdb_vecs.c.
14636 (OBS): Add gdb_vecs.o.
14637 (gdb_vecs_h, host_defs_h): New variables.
14638 (thread-db.o): Add $(gdb_vecs_h) dependency.
14639 (gdb_vecs.o): New rule.
14640 * thread-db.c: #include "gdb_vecs.h".
14641 (thread_db_load_search): Use a vector to iterate over path elements.
14642 Handle text appearing after "$pdir".
14644 * configure.ac: Add check for strstr.
14645 * config.in: Regenerate.
14646 * configure: Regenerate.
14648 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
14650 * hostio.c (handle_pread): If pread fails, fall back to attempting
14652 (handle_pwrite): Likewise for pwrite.
14654 2012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
14656 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
14657 between unsupported TYPE and unimplementable ADDR/LEN combination.
14658 (arm_insert_point): Act on new return value.
14660 2012-07-31 Pedro Alves <palves@redhat.com>
14662 * server.c (process_point_options): Only skip tokens if we find
14663 one that is unrecognized. Don't treat 'X' specially while
14664 skipping unrecognized tokens.
14666 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
14668 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
14669 to 4-byte-align HW breakpoint addresses for Thumb.
14671 2012-07-27 Yao Qi <yao@codesourcery.com>
14675 * server.h: Declare gdb_agent_about_to_close.
14676 * target.c (kill_inferior): Include "agent.h".
14677 New. Send command 'kill'.
14678 * target.h (kill_inferior): Removed macro.
14679 * tracepoint.c (gdb_agent_about_to_close): New.
14680 (gdb_agent_helper_thread): Handle command 'close'.
14681 Wait endlessly until the inferior stops.
14682 Install gdb_agent_remove_socket to atexit hook.
14683 (agent_socket_name): New static variable.
14684 (gdb_agent_socket_init): Replace local variable 'name' with
14685 'agent_socket_name'.
14686 (gdb_agent_remove_socket): New.
14688 2012-07-27 Yao Qi <yao@codesourcery.com>
14690 * server.c (process_point_options): Stop at 'X' when parsing.
14692 2012-07-19 Michael Eager <eager@eagercon.com>
14694 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
14696 * linux-x86-low.c (x86_insert_point, x86_remove_point):
14697 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
14698 hardware breakpoint.
14700 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14702 * gdbserver/linux-low.c (initialize_low): Call
14703 linux_ptrace_init_warnings.
14705 2012-07-02 Doug Evans <dje@google.com>
14707 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
14710 2012-07-02 Stan Shebs <stan@codesourcery.com>
14712 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
14713 (ax.o): Add it to build rule.
14715 (OBS): Add format.o.
14716 (IPA_OBS): Add format.o.
14717 * server.c (handle_query): Claim support for breakpoint commands.
14718 (process_point_options): Add command case.
14719 (process_serial_event): Leave running if there are printfs in
14721 * mem-break.h (any_persistent_commands): Declare.
14722 (add_breakpoint_commands): Declare.
14723 (gdb_no_commands_at_breakpoint): Declare.
14724 (run_breakpoint_commands): Declare.
14725 * mem-break.c (struct point_command_list): New struct.
14726 (struct breakpoint): New field command_list.
14727 (any_persistent_commands): New function.
14728 (add_commands_to_breakpoint): New function.
14729 (add_breakpoint_commands): New function.
14730 (gdb_no_commands_at_breakpoint): New function.
14731 (run_breakpoint_commands): New function.
14732 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
14734 * ax.c: Include format.h.
14735 (ax_printf): New function.
14736 (gdb_eval_agent_expr): Add printf opcode.
14738 2012-06-13 Yao Qi <yao@codesourcery.com>
14740 * server.c (start_inferior): Remove duplicated writes to fields
14741 'last_resume_kind' and 'last_status' of 'current_inferior'.
14743 2012-06-12 Yao Qi <yao@codesourcery.com>
14744 Pedro Alves <palves@redhat.com>
14746 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
14748 * server.c (handle_v_cont): Extend comment.
14750 2012-06-11 Yao Qi <yao@codesourcery.com>
14752 * linux-low.c (linux_attach): Add 'static'.
14754 2012-06-06 Yao Qi <yao@codesourcery.com>
14756 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
14758 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
14760 Fix gcc -flto compilation warning.
14761 * server.c (main): Make variable multi_mode and attach volatile.
14763 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14765 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
14766 if the platform doesn't know about it.
14768 2012-05-30 Jeff Kenton <jkenton@tilera.com>
14770 * Makefile.in (SFILES): Add linux-tile-low.c.
14771 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
14772 * configure.srv: Handle tilegx-*-linux*.
14773 * linux-tile-low.c: New file.
14775 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
14777 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
14779 2012-05-24 Pedro Alves <palves@redhat.com>
14783 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
14785 2012-05-24 Pedro Alves <palves@redhat.com>
14789 Replace target_signal with gdb_signal throughout.
14791 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
14793 * linux-low.c (linux_store_registers): Avoid the copying sequence
14794 when no data has been retrieved by ptrace.
14796 2012-05-22 Will Deacon <will.deacon@arm.com>
14798 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
14799 Include asm/ptrace.h.
14800 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
14803 2012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
14805 * linux-low.c (linux_store_registers): Don't re-retrieve data
14806 with ptrace that has already been obtained from /proc. Always
14807 copy any data retrieved with ptrace to the buffer supplied.
14809 2012-05-11 Yao Qi <yao@codesourcery.com>
14810 Pedro Alves <palves@redhat.com>
14812 * linux-low.c (enum stopping_threads_kind): New.
14813 (stopping_threads): Change type to `enum stopping_threads_kind'.
14814 (handle_extended_wait): If stopping and suspending threads, leave
14815 the new_lwp suspended too.
14816 (linux_wait_for_event): Adjust.
14817 (stop_all_lwps): Set `stopping_threads' to
14818 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
14819 whether we're suspending threads or just stopping them. Assert no
14822 2012-04-29 Yao Qi <yao@codesourcery.com>
14824 * server.h: Move some code to ...
14825 * gdbthread.h: ... here. New.
14826 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
14827 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
14828 (nto-low.o, win32-low.o): Likewise.
14829 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
14830 * regcache.c, remote-utils.c, server.c: Likewise.
14831 * target.c, tracepoint.c, win32-low.c: Likewise.
14833 2012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14835 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
14836 (PTRACE_ARG4_TYPE): Likewise.
14837 (PTRACE_XFER_TYPE): Likewise.
14838 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
14839 ptrace to PTRACE_ARG3_TYPE.
14840 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
14841 (PTRACE_ARG4_TYPE): Likewise.
14842 (PTRACE_XFER_TYPE): Likewise.
14843 (linux_detach_one_lwp): Cast fourth argument of
14844 ptrace to long then PTRACE_ARG4_TYPE.
14845 (regsets_fetch_inferior_registers): Cast third argument of
14846 ptrace to long then PTRACE_ARG3_TYPE.
14847 (regsets_store_inferior_registers): Likewise.
14849 2012-04-20 Pedro Alves <palves@redhat.com>
14851 * configure: Regenerate.
14853 2012-04-19 Pedro Alves <palves@redhat.com>
14855 * Makefile.in (GNULIB_BUILDDIR): New.
14856 (LIBGNU, INCGNU, GNULIB_H): Adjust.
14857 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
14858 (all, install-only, uninstall, clean-info, all-lib, clean): No
14859 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
14860 (maintainer-clean realclean distclean): Use subdir_do.
14862 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
14863 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
14864 * acinclude.m4: Include acx_configure_dir.m4.
14865 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
14866 calls. Call AC_PROG_RANLIB. Configure gnulib using
14869 (GNULIB_STDINT_H): Adjust.
14870 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
14871 * gdbreplay.c: Include build-gnulib/config.h.
14872 * server.h: Likewise.
14873 * aclocal.m4: Regenerate.
14874 * config.in: Regenerate.
14875 * configure: Regenerate.
14877 2012-04-19 Pedro Alves <palves@redhat.com>
14879 * Makefile.in (LIBGNU, INCGNU): Adjust.
14880 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
14881 (all, install-only, uninstall, clean-info, all-lib, clean)
14882 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
14883 * configure.ac: Adjust AC_OUTPUT output.
14884 * aclocal.m4: Regenerate.
14885 * configure: Regenerate.
14887 2012-04-19 Pedro Alves <palves@redhat.com>
14889 * Makefile.in (generated_files): New.
14890 (server_h): Remove the explicit dependency on config.h, and depend
14891 on $generated_files.
14893 2012-04-19 Pedro Alves <palves@redhat.com>
14895 * Makefile.in (INCGNU): Add -Ignulib.
14897 2012-04-19 Pedro Alves <palves@redhat.com>
14899 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
14900 (INCGNU): ... this, and spell out -I here.
14901 (GNULIB_LIB): Rename to ...
14902 (LIBGNU): ... this.
14903 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
14905 2012-04-19 Pedro Alves <palves@redhat.com>
14907 * config.in: Regenerate.
14909 2012-04-19 Pedro Alves <palves@redhat.com>
14911 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
14912 * server.h (memmem): Remove declaration.
14913 * config.in: Regenerate.
14914 * configure: Regenerate.
14916 2012-04-19 Yao Qi <yao@codesourcery.com>
14918 * Makefile.in (SFILES): Add common/vec.c.
14922 2012-04-19 Yao Qi <yao@codesourcery.com>
14924 * remote-utils.c (prepare_resume_reply): Replace with macro
14925 target_core_of_thread.
14926 * server.c (handle_qxfer_threads_proper): Likewise.
14927 * target.h (traget_core_of_thread): New macro.
14929 2012-04-18 Pedro Alves <palves@redhat.com>
14931 * aclocal.m4: Regenerate.
14932 * configure: Regenerate.
14934 2012-04-16 Yao Qi <yao@codesourcery.com>
14936 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
14937 duplicated on address.
14939 2012-04-16 Yao Qi <yao@codesourcery.com>
14941 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
14942 (struct tracepoint_action_ops) <send>: New field.
14943 (m_tracepoint_action_send, r_tracepoint_action_send): New.
14944 (agent_expr_send, x_tracepoint_action_send): New.
14945 (l_tracepoint_action_send): New.
14946 (cmd_qtdp): Download and install tracepoint
14947 according to `use_agent'.
14948 (run_inferior_command): Add one more parameter `len'.
14950 (tracepoint_send_agent): New.
14951 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
14953 2012-04-16 Yao Qi <yao@codesourcery.com>
14955 * tracepoint.c (download_tracepoints): Moved to ...
14956 (cmd_qtstart): ... here.
14958 2012-04-14 Yao Qi <yao@codesourcery.com>
14960 * tracepoint.c: Include inttypes.h.
14961 (struct collect_memory_action): Use sized types.
14962 (struct tracepoint): Likewise.
14963 (cmd_qtdp, stop_tracing): Update print specifiers.
14964 (cmd_qtp, response_tracepoint): Likewise.
14965 (collect_data_at_tracepoint): Likewise.
14966 (collect_data_at_step): Likewise.
14968 2012-04-14 Yao Qi <yao@codesourcery.com>
14970 Import gnulib module inttypes.
14971 * aclocal.m4, config.in, configure: Regenerated.
14973 2012-04-14 Yao Qi <yao@codesourcery.com>
14975 * Makefile.in (maintainer-clean, realclean, distclean): Remove
14976 Makefile and config.status at last.
14978 2012-04-13 Yao Qi <yao@codesourcery.com>
14980 * tracepoint.c: Include stdint.h unconditionally.
14982 2012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14984 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
14985 on BFD_HAVE_SYS_PROCFS_TYPE.
14986 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
14987 * configure: Regenerate.
14988 * config.in: Likewise.
14990 2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
14992 * Makefile.in (clean): Also remove x32.c x32-linux.c
14993 x32-avx.c x32-avx-linux.c.
14994 (x32.o): New target.
14996 (x32-linux.o): Likewise.
14997 (x32-linux.c): Likewise.
14998 (x32-avx.o): Likewise.
14999 (x32-avx.c): Likewise.
15000 (x32-avx-linux.o): Likewise.
15001 (x32-avx-linux.c): Likewise.
15003 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
15004 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
15005 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
15006 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
15007 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
15008 i386/x32-avx-linux.xml.
15010 * linux-x86-low.c (init_registers_x32_linux): New prototype.
15011 (init_registers_x32_avx_linux): Likwise.
15012 (x86_linux_update_xmltarget): Call init_registers_x32_linux
15013 or init_registers_x32_avx_linux if linux_is_elf64 is false.
15015 2012-04-13 Pedro Alves <palves@redhat.com>
15017 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
15018 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
15019 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
15020 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
15023 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15025 * linux-x86-low.c (compat_x32_clock_t): New.
15026 (compat_x32_siginfo_t): Likewise.
15027 (compat_x32_siginfo_from_siginfo): Likewise.
15028 (siginfo_from_compat_x32_siginfo): Likewise.
15029 (linux_is_elf64): Likewise.
15030 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
15031 and siginfo_from_compat_x32_siginfo for x32.
15032 (x86_arch_setup): Set linux_is_elf64.
15034 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15037 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
15039 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
15040 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
15041 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
15042 compatible with process.
15044 2012-04-12 Yao Qi <yao@codesourcery.com>
15046 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
15047 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
15048 (install-only, install-info, clean): Handle sub dir gnulib.
15049 (all-lib, am--refresh): New targets.
15050 (memmem.o): Remove target.
15051 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
15052 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
15053 (AC_REPLACE_FUNCS): Remove memmem.
15054 Invoke gl_INIT and AM_INIT_AUTOMAKE.
15055 (AC_OUTPUT): Generate Makefile in gnulib/.
15056 * aclocal.m4, config.in, configure: Regenerated.
15058 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
15060 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
15062 2012-04-05 Pedro Alves <palves@redhat.com>
15064 -Werror=strict-aliasing
15066 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
15069 2012-04-04 Pedro Alves <palves@redhat.com>
15071 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
15072 (sparc_store_gregset_from_stack, sparc_store_gregset)
15073 (sparc_breakpoint_at): Fix formatting.
15075 2012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15077 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
15079 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
15080 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
15081 * config.in: Regenerate.
15082 * configure: Likewise.
15084 2012-03-29 Pedro Alves <palves@redhat.com>
15086 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
15087 Correct ptrace arguments.
15089 2012-03-28 Pedro Alves <palves@redhat.com>
15091 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
15092 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
15093 (IA64_FR1_REGNUM): New defines.
15094 (ia64_fetch_register): New.
15095 (the_low_target): Install it.
15096 * linux-low.h (struct linux_target_ops) <fetch_register>: New
15098 * linux-low.c (linux_fetch_registers): Try the
15099 the_low_target.fetch_register hook first.
15101 * linux-arm-low.c (the_low_target): Adjust.
15102 * linux-bfin-low.c (the_low_target): Adjust.
15103 * linux-cris-low.c (the_low_target): Adjust.
15104 * linux-crisv32-low.c (the_low_target): Adjust.
15105 * linux-m32r-low.c (the_low_target): Adjust.
15106 * linux-m68k-low.c (the_low_target): Adjust.
15107 * linux-mips-low.c (the_low_target): Adjust.
15108 * linux-ppc-low.c (the_low_target): Adjust.
15109 * linux-s390-low.c (the_low_target): Adjust.
15110 * linux-sh-low.c (the_low_target): Adjust.
15111 * linux-sparc-low.c (the_low_target): Adjust.
15112 * linux-tic6x-low.c (the_low_target): Adjust.
15113 * linux-x86-low.c (the_low_target): Adjust.
15114 * linux-xtensa-low.c (the_low_target): Adjust.
15116 2012-03-26 Pedro Alves <palves@redhat.com>
15118 * server.c (handle_qxfer_libraries): Don't bail early if
15119 the_target->qxfer_libraries_svr4 is not NULL.
15121 2012-03-26 Pedro Alves <palves@redhat.com>
15123 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
15125 2012-03-23 Pedro Alves <palves@redhat.com>
15127 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
15128 "library-list-svr4" element's start tag when the the DSO list is
15131 2012-03-23 Pedro Alves <palves@redhat.com>
15133 * linux-low.c (read_one_ptr): Read the inferior's pointer through
15134 a variable whose type size is the same as the inferior's pointer
15137 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
15139 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
15141 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
15142 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
15143 * linux-low.h: Include <signal.h>.
15144 (struct siginfo): Remove forward declaration.
15145 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
15148 2012-03-21 Mike Frysinger <vapier@gentoo.org>
15150 * .gitignore: Ignore more files.
15152 2012-03-19 Pedro Alves <palves@redhat.com>
15153 Jan Kratochvil <jan.kratochvil@redhat.com>
15155 * server.c (cont_thread, general_thread): Add describing comments.
15156 (start_inferior): Clear `cont_thread'.
15157 (handle_v_cont): Don't set `cont_thread' if resuming all threads
15160 2012-03-15 Yao Qi <yao@codesourcery.com>
15162 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
15164 (cmd_qtdp): ... here.
15166 2012-03-15 Yao Qi <yao@codesourcery.com>
15168 * tracepoint.c (struct tracepoint_action_ops): New.
15169 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
15170 (m_tracepoint_action_download): New.
15171 (r_tracepoint_action_download): New.
15172 (x_tracepoint_action_download): New.
15173 (l_tracepoint_action_download): New.
15174 (add_tracepoint_action): Install `action->ops' according type.
15175 (download_tracepoint_1): Move code `download' function pointer
15176 of various tracepoint_action_ops.
15178 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15180 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
15181 linux_ptrace_attach_warnings.
15183 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15185 * Makefile.in (linux-ptrace.o): New.
15186 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
15187 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
15188 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
15189 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
15190 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
15192 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
15194 2012-03-08 Yao Qi <yao@codesourcery.com>
15195 Pedro Alves <palves@redhat.com>
15197 Fix PR server/13392.
15198 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
15199 offset of JMP insn.
15200 * tracepoint.c (remove_tracepoint): New.
15201 (cmd_qtdp): Call remove_tracepoint when failed to install.
15203 2012-03-07 Pedro Alves <palves@redhat.com>
15205 * linux-low.c (get_detach_signal): New.
15206 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
15207 Pass on pending signals to PTRACE_DETACH. Check the result of the
15209 * server.c (program_signals, program_signals_p): New.
15210 (handle_general_set): Handle QProgramSignals.
15211 * server.h (program_signals, program_signals_p): Declare.
15213 2012-03-05 Pedro Alves <palves@redhat.com>
15214 Jan Kratochvil <jan.kratochvil@redhat.com>
15216 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
15219 2012-03-03 Yao Qi <yao@codesourcery.com>
15221 * tracepoint.c (tracepoint_look_up_symbols): Update call to
15222 agent_look_up_symbols.
15224 2012-03-03 Yao Qi <yao@codesourcery.com>
15226 * Makefile.in (linux-low.o): Keep dependence on agent.h.
15227 (linux-x86-low.o): Likewise.
15228 * server.h: Remove in_process_agent_loaded.
15229 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
15233 2012-03-03 Yao Qi <yao@codesourcery.com>
15235 * tracepoint.c (gdb_agent_capability): New global.
15236 (in_process_agent_loaded_ust): Renamed to
15237 `in_process_agent_supports_ust'.
15239 (in_process_agent_supports_ust): Call agent_capability_check.
15240 (clear_installed_tracepoints): Assert that agent supports
15243 2012-03-03 Yao Qi <yao@codesourcery.com>
15245 * linux-low.c (linux_supports_agent): New.
15246 (linux_target_ops): Initialize field `supports_agent' with
15247 linux_supports_agent.
15248 * target.h (struct target_ops) <supports_agent>: New.
15249 (target_supports_agent): New macro.
15250 * server.c (handle_general_set): Handle packet 'QAgent'.
15251 (handle_query): Send `QAgent+'.
15252 * Makefile.in (server.o): Depends on agent.h.
15254 2012-03-03 Yao Qi <yao@codesourcery.com>
15256 * Makefile.in (OBS): Add agent.o.
15257 Add new rule for agent.o.
15258 Track dependence of tracepoint.c on agent.h.
15259 * tracepoint.c (run_inferior_command_1):
15260 (run_inferior_command): Call agent_run_command.
15261 (gdb_ust_connect_sync_socket): Deleted. Move it to
15263 (resume_thread, stop_thread): Likewise.
15264 (gdb_ust_socket_init): Renamed to ...
15265 (gdb_agent_socket_init): ... New.
15266 (gdb_ust_thread): Renamed to ...
15267 (gdb_agent_helper_thread): ... New.
15268 (gdb_ust_init): Move some code to ...
15269 (gdb_agent_init): ... here. New.
15270 [HAVE_UST]: Call gdb_ust_init.
15271 (initialize_tracepoint_ftlib): Call gdb_agent_init.
15272 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
15273 * config.in, configure: Regenerated.
15275 2012-03-02 Pedro Alves <palves@redhat.com>
15277 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
15278 * linux-low.c (struct simple_pid_list): New.
15279 (stopped_pids): New a struct simple_pid_list pointer.
15280 (add_to_pid_list, pull_pid_from_list): New.
15281 (handle_extended_wait): Don't assume the first signal new children
15282 report is SIGSTOP. Adjust call to pull_pid_from_list.
15283 (linux_wait_for_lwp): Adjust.
15285 2012-03-02 Yao Qi <yao@codesourcery.com>
15287 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
15290 2012-03-02 Yao Qi <yao@codesourcery.com>
15292 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
15293 `stop_pc' and `tpoint'. Update caller.
15295 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
15297 * linux-low.h (linux_target_ops): Add regset_bitmap member.
15298 * linux-low.c (use_linux_regsets): New macro.
15299 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
15300 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
15301 (linux_register_in_regsets): New function.
15302 (usr_fetch_inferior_registers): Skip registers covered by
15304 (usr_store_inferior_registers): Likewise.
15305 (usr_fetch_inferior_registers): New macro.
15306 (usr_store_inferior_registers): Likewise.
15307 (linux_fetch_registers): Handle mixed regset/non-regset targets.
15308 (linux_store_registers): Likewise.
15309 * linux-mips-low.c (init_registers_mips_dsp_linux): New
15311 (init_registers_mips64_dsp_linux): Likewise.
15312 (init_registers_mips_linux): New macro.
15313 (init_registers_mips_dsp_linux): Likewise.
15314 (mips_dsp_num_regs): Likewise.
15315 (DSP_BASE, DSP_CONTROL): New fallback macros.
15316 (mips_base_regs): New macro.
15317 (mips_regmap): Use it. Fix the size.
15318 (mips_dsp_regmap): New variable.
15319 (mips_dsp_regset_bitmap): Likewise.
15320 (mips_arch_setup): New function.
15321 (mips_cannot_fetch_register): Use the_low_target.regmap rather
15323 (mips_cannot_store_register): Likewise.
15324 (the_low_target): Update .arch_setup, .num_regs and .regmap
15325 initializers. Add .regset_bitmap initializer.
15326 * linux-arm-low.c (the_low_target): Add .regset_bitmap
15328 * linux-bfin-low.c (the_low_target): Likewise.
15329 * linux-cris-low.c (the_low_target): Likewise.
15330 * linux-crisv32-low.c (the_low_target): Likewise.
15331 * linux-ia64-low.c (the_low_target): Likewise.
15332 * linux-m32r-low.c (the_low_target): Likewise.
15333 * linux-m68k-low.c (the_low_target): Likewise.
15334 * linux-ppc-low.c (the_low_target): Likewise.
15335 * linux-s390-low.c (the_low_target): Likewise.
15336 * linux-sh-low.c (the_low_target): Likewise.
15337 * linux-sparc-low.c (the_low_target): Likewise.
15338 * linux-tic6x-low.c (the_low_target): Likewise.
15339 * linux-x86-low.c (the_low_target): Likewise.
15340 * linux-xtensa-low.c (the_low_target): Likewise.
15341 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
15342 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
15343 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
15345 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
15346 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
15348 2012-02-29 Yao Qi <yao@codesourcery.com>
15349 Pedro Alves <palves@redhat.com>
15351 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
15352 `step_over_finished' is true.
15354 2012-02-27 Pedro Alves <palves@redhat.com>
15356 * linux-low.c (pid_is_stopped): Delete, moved to common/.
15357 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
15359 2012-02-27 Pedro Alves <palves@redhat.com>
15362 * linux-low.c (pid_is_stopped): New.
15363 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
15365 2012-02-25 Luis Machado <lgustavo@codesourcery.com>
15367 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
15370 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
15372 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
15374 2012-02-24 Luis Machado <lgustavo@codesourcery>
15376 * server.c (handle_query): Advertise support for target-side
15377 breakpoint condition evaluation.
15378 (process_point_options): New function.
15379 (process_serial_event): When inserting a breakpoint, check for
15380 a target-side condition that should be evaluated.
15382 * mem-break.c: Include regcache.h and ax.h.
15383 (point_cond_list_t): New data structure.
15384 (breakpoint) <cond_list>: New field.
15385 (find_gdb_breakpoint_at): Make non-static.
15386 (delete_gdb_breakpoint_at): Clear any target-side
15388 (clear_gdb_breakpoint_conditions): New function.
15389 (add_condition_to_breakpoint): Likewise.
15390 (add_breakpoint_condition): Likewise.
15391 (gdb_condition_true_at_breakpoint): Likewise.
15392 (gdb_breakpoint_here): Return result directly instead
15393 of going through a local variable.
15395 * mem-break.h (find_gdb_breakpoint_at): New prototype.
15396 (clear_gdb_breakpoint_conditions): Likewise.
15397 (add_breakpoint_condition): Likewise.
15398 (gdb_condition_true_at_breakpoint): Likewise.
15400 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
15401 (need_step_over_p): Take target-side breakpoint condition into
15404 2012-02-24 Luis Machado <lgustavo@codesourcery>
15406 * server.h: Include tracepoint.h.
15407 (agent_mem_read, agent_get_trace_state_variable_value,
15408 agent_set_trace_state_variable_value,
15409 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
15410 get_set_tsv_func_addr): New prototypes.
15412 * ax.h: New include file.
15413 * ax.c: New source file.
15415 * tracepoint.c: Include ax.h.
15416 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
15417 agent_expr, eval_result_type): Move to ax.h.
15418 (parse_agent_expr): Rename to ...
15419 (gdb_parse_agent_expr): ... this, make it non-static and move
15421 (unparse_agent_expr) Rename to ...
15422 (gdb_unparse_agent_expr): ... this, make it non-static and move
15424 (eval_agent_expr): Rename to ...
15425 (eval_tracepoint_agent_expr): ... this.
15426 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
15427 forward declarations.
15428 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
15429 (agent_get_trace_state_variable_value): New function.
15430 (agent_set_trace_state_variable_value): New function.
15431 (cmd_qtdp): Call gdb_parse_agent_expr (...).
15432 (response_tracepoint): Call gdb_unparse_agent_expr (...).
15433 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
15434 (condition_true_at_tracepoint): Likewise.
15435 (parse_agent_expr): Rename to ...
15436 (gdb_parse_agent_expr): ... this and move to ax.c.
15437 (unparse_agent_expr): Rename to ...
15438 (gdb_unparse_agent_expr): ... this and move to ax.c.
15439 (gdb_agent_op_name): Move to ax.c.
15440 (eval_agent_expr): Rename to ...
15441 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
15443 (eval_tracepoint_agent_expr): New function.
15444 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
15446 (current_insn_ptr, emit_error, struct bytecode_address): Move to
15448 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
15449 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
15450 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
15451 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
15452 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
15453 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
15454 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
15455 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
15456 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
15457 (compile_bytecodes): Remove forward declaration.
15458 (is_goto_target): Move to ax.c.
15459 (compile_bytecodes): Move to ax.c and call
15460 agent_get_trace_state_variable_value (...) and
15461 agent_set_trace_state_variable_value (...).
15463 * Makefile.in: Update ax.c and IPA dependencies.
15465 2012-02-24 Pedro Alves <palves@redhat.com>
15467 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
15468 (cmd_bigqtbuffer_circular): ... this. Only handle
15469 'QTBuffer:circular:'.
15470 (handle_tracepoint_general_set): Adjust.
15472 2012-02-16 Yao Qi <yao@codesourcery.com>
15474 * inferiors.c: Move code to ...
15475 * dll.c: .... here. New.
15476 * server.h: Declare clear_dlls.
15477 * Makefile.in (SFILES): Add dll.c.
15481 2012-02-11 Yao Qi <yao@codesourcery.com>
15483 * server.c: (handle_monitor_command): Add a new parameter
15485 (handle_query): Update caller.
15487 2012-02-09 Joel Brobecker <brobecker@adacore.com>
15489 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
15490 * configure, config.in: Regenerate.
15491 * hostio.c: Provide an alternate implementation if HAVE_READLINK
15494 2012-02-02 Pedro Alves <palves@redhat.com>
15496 Try SIGKILL first, then PTRACE_KILL.
15497 * linux-low.c (linux_kill_one_lwp): New.
15498 (linux_kill_one_lwp): Rename to ...
15499 (kill_one_lwp_callback): ... this. Use the new
15500 linux_kill_one_lwp.
15502 2012-02-02 Pedro Alves <palves@redhat.com>
15504 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
15507 2012-01-27 Pedro Alves <palves@redhat.com>
15509 * linux-low.c (linux_child_pid_to_exec_file): Delete.
15510 (elf_64_file_p): Make static.
15511 (linux_pid_exe_is_elf_64_file): New.
15512 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
15513 Delete declarations.
15514 (linux_pid_exe_is_elf_64_file): Declare.
15515 * linux-x86-low.c (x86_arch_setup): Use
15516 linux_pid_exe_is_elf_64_file.
15518 2012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
15520 * linux-low.c (linux_wait_for_event_1): Rename to ...
15521 (linux_wait_for_event): ... here and merge it with former
15522 linux_wait_for_event - new variable wait_ptid, use it.
15523 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
15525 2012-01-23 Pedro Alves <palves@redhat.com>
15527 * server.c (main): Avoid yet another case of infinite loop while
15528 detaching/killing after a longjmp.
15530 2012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15533 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
15535 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
15537 * hostio.c (handle_readlink): New function.
15538 (handle_vFile): Call it to handle "vFile:readlink" packets.
15540 2012-01-20 Pedro Alves <palves@redhat.com>
15541 Ulrich Weigand <ulrich.weigand@linaro.org>
15543 * server.c (handle_v_requests): Only support vAttach and vRun to
15544 start multiple processes when in extended protocol mode.
15546 2012-01-17 Pedro Alves <palves@redhat.com>
15548 * tracepoint.c (initialize_tracepoint): Use mmap instead of
15549 memalign plus mprotect to allocate the scratch buffer.
15551 2012-01-13 Pedro Alves <palves@redhat.com>
15553 * server.c (attach_inferior): Clear `cont_thread'.
15555 2012-01-13 Pedro Alves <palves@redhat.com>
15557 * server.c (main): Avoid infinite loop while detaching/killing
15560 2012-01-09 Doug Evans <dje@google.com>
15562 * server.c (start_inferior): Set last_ptid in --wrapper case.
15564 2012-01-06 Yao Qi <yao@codesourcery.com>
15566 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
15568 [IN_PROCESS_AGENT] (debug_agent): New global variable.
15570 2012-01-04 Yao Qi <yao@codesourcery.com>
15572 * tracepoint.c (cmd_qtdp): Print debug message
15573 for static tracepoint.
15575 2012-01-04 Yao Qi <yao@codesourcery.com>
15577 * tracepoint.c (trace_vdebug): Differentiate debug message
15578 between gdbserver and IPA.
15580 2012-01-03 Yao Qi <yao@codesourcery.com>
15582 * tracepoint.c (tracepoint_was_hit): Don't collect for
15585 2012-01-02 Joel Brobecker <brobecker@adacore.com>
15587 * terminal.h: Reformat copyright header.
15589 2012-01-02 Joel Brobecker <brobecker@adacore.com>
15591 * server.c (gdbserver_version): Update copyright year.
15592 * gdbreplay.c (gdbreplay_version): Likewise.
15594 2011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
15596 * linux-low.c (linux_create_inferior): Put empty if clause for write.
15599 2011-12-18 Hui Zhu <teawater@gmail.com>
15600 * linux-low.c (linux_create_inferior): Save return value to ret.
15602 2011-12-18 Hui Zhu <teawater@gmail.com>
15604 * linux-low.c (linux_create_inferior): Save return value to ret.
15606 2011-12-16 Doug Evans <dje@google.com>
15608 * linux-low.c (linux_create_inferior): If stdio connection,
15609 redirect stdin from /dev/null, stdout to stderr.
15610 * remote-utils.c (remote_is_stdio): New static global.
15611 (remote_connection_is_stdio): New function.
15612 (remote_prepare): Handle stdio connection.
15613 (remote_open): Ditto.
15614 (remote_close): Don't close stdin for stdio connections.
15615 (read_prim,write_prim): New functions. Replace all calls to
15616 read/write to these.
15617 * server.c (main): Watch for "-" argument. Move call to
15618 remote_prepare before start_inferior.
15619 * server.h (STDIO_CONNECTION_NAME): New macro.
15620 (remote_connection_is_stdio): Declare.
15622 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
15623 in debugging output.
15625 2011-12-15 Yao Qi <yao@codesourcery.com>
15627 * tracepoint.c: Include sys/syscall.h.
15628 (gdb_ust_thread): Remove preprocessor conditional.
15630 2011-12-14 Pedro Alves <pedro@codesourcery.com>
15632 * linux-low.c (linux_detach_one_lwp): Call
15633 the_low_target.prepare_to_resume before detaching.
15635 2011-12-14 Yao Qi <yao@codesourcery.com>
15637 * tracepoint.c (gdb_ust_thread): Don't ignore return value
15640 2011-12-14 Yao Qi <yao@codesourcery.com>
15642 * i386-low.c (i386_low_stopped_data_address): Initialize local
15643 variable `control'.
15645 2011-12-13 Pedro Alves <pedro@codesourcery.com>
15649 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
15650 DR_CONTROL unless necessary. Extend comments.
15651 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
15652 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
15654 2011-12-13 Yao Qi <yao@codesourcery.com>
15656 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
15658 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
15660 2011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
15662 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
15663 Print new debug message for such case.
15665 2011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
15667 Fix overlapping memcpy.
15668 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
15669 the read_inferior_memory transfer.
15670 (delete_fast_tracepoint_jump): New variable buf. Use it for the
15671 write_inferior_memory transfer.
15672 (set_fast_tracepoint_jump): New variable buf. Use it for the
15673 read_inferior_memory and write_inferior_memory transfers.
15674 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
15675 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
15676 Use it for the write_inferior_memory transfer.
15677 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
15680 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15682 * linux-low.c (fetch_register, store_register): Make code
15683 consistent, fix formatting.
15685 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15687 * linux-low.c (usr_store_inferior_registers): Factor out code
15688 to handle individual registers into...
15689 (store_register): ... this new function.
15691 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
15693 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
15694 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
15695 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
15696 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
15697 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
15698 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
15699 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
15700 (srv_xmlfiles): Add new XML files.
15702 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
15704 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
15705 (init_registers_s390_linux32v1): Add prototype.
15706 (init_registers_s390_linux32v2): Likewise.
15707 (init_registers_s390_linux64v1): Likewise.
15708 (init_registers_s390_linux64v2): Likewise.
15709 (init_registers_s390x_linux64v1): Likewise.
15710 (init_registers_s390x_linux64v2): Likewise.
15711 (s390_num_regs): Increment to 52.
15712 (s390_regmap): Add orig_r2 register.
15713 (s390_num_regs_3264): Increment to 68.
15714 (s390_regmap_3264): Add orig_r2 register.
15715 (s390_collect_ptrace_register): Handle orig_r2 register.
15716 (s390_supply_ptrace_register): Likewise.
15717 (s390_fill_last_break): New function.
15718 (s390_store_last_break): Likewise.
15719 (s390_fill_system_call): New function.
15720 (s390_store_system_call): Likewise.
15721 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
15723 (s390_check_regset): New function.
15724 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
15725 NT_S390_SYSTEM_CALL regsets and use appropriate description.
15726 Update target_regsets for available register sets.
15728 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
15729 Jan Kratochvil <jan.kratochvil@redhat.com>
15731 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
15732 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
15734 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
15735 * linux-low.h (struct process_info_private): New member r_debug.
15736 * server.c (handle_qxfer_libraries): Call
15737 the_target->qxfer_libraries_svr4.
15738 (handle_qxfer_libraries_svr4): New function.
15739 (qxfer_packets): New entry "libraries-svr4".
15740 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
15741 * target.h (struct target_ops): New member qxfer_libraries_svr4.
15742 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
15743 PACKET_qXfer_libraries_svr4.
15745 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
15747 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
15748 PSW address/mask between 8-byte and 16-byte formats.
15749 (s390_supply_ptrace_register): Likewise.
15750 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
15751 basic addressing mode bit.
15753 2011-11-24 Stan Shebs <stan@codesourcery.com>
15755 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
15757 2011-11-17 Stan Shebs <stan@codesourcery.com>
15759 * tracepoint.c (struct tracepoint): New field traceframe_usage.
15760 (tracing_start_time): New global.
15761 (tracing_stop_time): New global.
15762 (tracing_user_name): New global.
15763 (tracing_notes): New global.
15764 (tracing_stop_note): New global.
15765 (cmd_qtstart): Set traceframe_usage, start_time.
15766 (stop_tracing): Set stop_time.
15767 (cmd_qtstatus): Report additional status.
15768 (cmd_qtp): New function.
15769 (handle_tracepoint_query): Call it.
15770 (cmd_qtnotes): New function.
15771 (handle_tracepoint_general_set): Call it.
15772 (get_timestamp): Rename from tsv_get_timestamp.
15774 2011-11-14 Stan Shebs <stan@codesourcery.com>
15775 Kwok Cheung Yeung <kcy@codesourcery.com>
15777 * linux-x86-low.c (small_jump_insn): New.
15778 (i386_install_fast_tracepoint_jump_pad): Add arguments for
15779 trampoline and error message, build a trampoline and issue a small
15780 jump instruction to it.
15781 (x86_install_fast_tracepoint_jump_pad): Add arguments for
15782 trampoline and error message.
15783 (x86_get_min_fast_tracepoint_insn_len): New.
15784 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
15785 * linux-low.h (struct linux_target_ops): Add arguments to
15786 install_fast_tracepoint_jump_pad operation, add new operation.
15787 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
15789 (linux_get_min_fast_tracepoint_insn_len): New function.
15790 (linux_target_op): Add new operation.
15791 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
15792 (gdb_trampoline_buffer_end): Ditto.
15793 (gdb_trampoline_buffer_error): Ditto.
15794 (struct ipa_sym_addresses): Add fields for new IPA variables.
15795 (symbol_list): Add entries for new IPA variables.
15796 (struct tracepoint): Add fields to hold the address range of the
15797 trampoline used by the tracepoint.
15798 (trampoline_buffer_head): New static variable.
15799 (trampoline_buffer_tail): Ditto.
15800 (claim_trampoline_space): New function.
15801 (have_fast_tracepoint_trampoline_buffer): New function.
15802 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
15804 (install_fast_tracepoint): Ditto, also add error buffer argument.
15805 (cmd_qtminftpilen): New function.
15806 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
15807 (fast_tracepoint_from_trampoline_address): New function.
15808 (fast_tracepoint_collecting): Handle trampoline as part of jump
15810 (set_trampoline_buffer_space): New function.
15811 (initialize_tracepoint): Initialize new IPA variables.
15812 * target.h (struct target_ops): Add arguments to
15813 install_fast_tracepoint_jump_pad operation, add new
15814 get_min_fast_tracepoint_insn_len operation.
15815 (target_get_min_fast_tracepoint_insn_len): New.
15816 (install_fast_tracepoint_jump_pad): Add arguments.
15817 * server.h (IPA_BUFSIZ): Define.
15818 * linux-i386-ipa.c: Include extra header files.
15819 (initialize_fast_tracepoint_trampoline_buffer): New function.
15820 (initialize_low_tracepoint): Call it.
15821 * server.h (set_trampoline_buffer_space): Declare.
15822 (claim_trampoline_space): Ditto.
15823 (have_fast_tracepoint_trampoline_buffer): Ditto.
15825 2011-11-14 Yao Qi <yao@codesourcery.com>
15827 * server.c (handle_query): Handle InstallInTrace for qSupported.
15828 * tracepoint.c (add_tracepoint): Sort list.
15829 (install_tracepoint, download_tracepoint): New.
15830 (cmd_qtdp): Call them to install and download tracepoints.
15831 (sort_tracepoints): Removed.
15832 (cmd_qtstart): Update.
15834 2011-11-14 Yao Qi <yao@codesourcery.com>
15836 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
15837 * mem-break.h: Declare.
15838 * tracepoint.c (cmd_qtstart): Move some code to ...
15839 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
15841 (download_tracepoints): Move some code to ...
15842 (download_tracepoint_1): ... here. New.
15844 2011-11-08 Yao Qi <yao@codesourcery.com>
15846 * remote-utils.c (relocate_instruction): A comment fix.
15848 2011-11-07 Joel Brobecker <brobecker@adacore.com>
15850 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
15851 (i386_dr_low_get_control, i386_dr_low_get_status): Use
15852 dr_status_mirror and dr_control_mirror from debug_reg_state.
15853 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
15854 (i386_initial_stuff): Remove use of deleted globals.
15855 (i386_get_thread_context, i386_set_thread_context,
15856 i386_thread_added): Use dr_status_mirror and dr_control_mirror
15857 from debug_reg_state.
15859 2011-11-05 Yao Qi <yao@codesourcery.com>
15861 * tracepoint.c (gdb_collect): Loop over tracepoints of same
15862 address as TPOINT's.
15864 2011-11-02 Stan Shebs <stan@codesourcery.com>
15866 * tracepoint.c (agent_mem_read_string): New function.
15867 (eval_agent_expr): Call it for tracenz.
15868 * server.c (handle_query): Report support for tracenz.
15870 2011-11-02 Yao Qi <yao@codesourcery.com>
15872 * tracepoint.c (cmd_qtstart): Remove unused local variables.
15874 2011-11-02 Yao Qi <yao@codesourcery.com>
15876 * target.h: Fix a typo in comment.
15878 2011-10-31 Pedro Alves <pedro@codesourcery.com>
15880 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
15881 clobber the breakpoints' shadows with fast tracepoint jumps.
15882 * mem-break.h (check_mem_write): Add `myaddr' parameter.
15883 * target.c (write_inferior_memory): Also pass MYADDR down to
15886 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
15888 * configure.ac: Check support for personality routine.
15889 * configure: Regenerate.
15890 * config.in: Likewise.
15891 * linux-low.c: Include <sys/personality.h>.
15892 Define ADDR_NO_RANDOMIZE if necessary.
15893 (linux_create_inferior): Disable address space randomization when
15894 forking inferior, if requested.
15895 (linux_supports_disable_randomization): New function.
15896 (linux_target_ops): Install it.
15897 * server.h (disable_randomization): Declare.
15898 * server.c (disable_randomization): New global variable.
15899 (handle_general_set): Handle QDisableRandomization.
15900 (handle_query): Likewise for qSupported.
15901 (main): Support --disable-randomization and --no-disable-randomization
15902 command line arguments.
15903 * target.h (struct target_ops): Add supports_disable_randomization.
15904 (target_supports_disable_randomization): New macro.
15906 2011-09-29 Mike Frysinger <vapier@gentoo.org>
15908 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
15910 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
15911 [!PT_GETDSBT] (target_loadmap): New definition.
15912 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
15913 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
15914 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
15915 and PT_GETDSBT to LINUX_LOADMAP.
15916 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
15917 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
15919 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
15921 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
15922 (arm_linux_hwbp_cap): New static variable.
15923 (arm_linux_get_hwbp_cap): Replace by ...
15924 (arm_linux_init_hwbp_cap): ... this new function.
15925 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
15926 (arm_linux_get_hw_watchpoint_count): Likewise.
15927 (arm_linux_get_hw_watchpoint_max_length): Likewise.
15928 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
15929 (arm_prepare_to_resume): Use perror_with_name instead of error.
15931 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
15933 * linux-arm-low.c: Include <signal.h>.
15934 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
15935 (struct arm_linux_hwbp_cap): New data type.
15936 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
15937 (struct arm_linux_hw_breakpoint): New data type.
15938 (MAX_BPTS, MAX_WPTS): Define.
15939 (struct arch_process_info, struct arch_lwp_info): New data types.
15940 (arm_linux_get_hwbp_cap): New function.
15941 (arm_linux_get_hw_breakpoint_count): Likewise.
15942 (arm_linux_get_hw_watchpoint_count): Likewise.
15943 (arm_linux_get_hw_watchpoint_max_length): Likewise.
15944 (arm_hwbp_control_initialize): Likewise.
15945 (arm_hwbp_control_is_enabled): Likewise.
15946 (arm_hwbp_control_is_initialized): Likewise.
15947 (arm_hwbp_control_disable): Likewise.
15948 (arm_linux_hw_breakpoint_equal): Likewise.
15949 (arm_linux_hw_point_initialize): Likewise.
15950 (struct update_registers_data): New data structure.
15951 (update_registers_callback: New function.
15952 (arm_insert_point): Likewise.
15953 (arm_remove_point): Likewise.
15954 (arm_stopped_by_watchpoint): Likewise.
15955 (arm_stopped_data_address): Likewise.
15956 (arm_new_process): Likewise.
15957 (arm_new_thread): Likewise.
15958 (arm_prepare_to_resume): Likewise.
15959 (the_low_target): Register arm_insert_point, arm_remove_point,
15960 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
15961 arm_new_thread, and arm_prepare_to_resume.
15963 2011-09-15 Stan Shebs <stan@codesourcery.com>
15965 * server.h (struct emit_ops): Add compare-goto fields.
15966 * tracepoint.c (gdb_agent_op_sizes): New table.
15967 (emit_eq_goto): New function.
15968 (emit_ne_goto): New function.
15969 (emit_lt_goto): New function.
15970 (emit_le_goto): New function.
15971 (emit_gt_goto): New function.
15972 (emit_ge_goto): New function.
15973 (is_goto_target): New function.
15974 (compile_bytecodes): Recognize special cases of compare-goto
15975 combinations and call specialized emitters for them.
15976 * linux-x86-low.c (amd64_emit_eq_goto): New function.
15977 (amd64_emit_ne_goto): New function.
15978 (amd64_emit_lt_goto): New function.
15979 (amd64_emit_le_goto): New function.
15980 (amd64_emit_gt_goto): New function.
15981 (amd64_emit_ge_goto): New function.
15982 (amd64_emit_ops): Add the new functions.
15983 (i386_emit_eq_goto): New function.
15984 (i386_emit_ne_goto): New function.
15985 (i386_emit_lt_goto): New function.
15986 (i386_emit_le_goto): New function.
15987 (i386_emit_gt_goto): New function.
15988 (i386_emit_ge_goto): New function.
15989 (i386_emit_ops): Add the new functions.
15991 2011-09-08 Stan Shebs <stan@codesourcery.com>
15993 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
15994 (i386_emit_epilogue): Restore %ebx.
15996 2011-08-31 Jie Zhang <jzhang918@gmail.com>
15998 * server.c (step_thread): Remove definition.
15999 (process_serial_event): Don't handle Hs.
16000 * server.h (step_thread): Remove declaration.
16001 * target.c (set_desired_inferior): Remove use of step_thread.
16003 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
16005 * linux-low.c: Include linux-procfs.h.
16006 (linux_attach_lwp_1): Update comments.
16007 (linux_attach): Scan for existing threads when attaching to a
16008 process that is the tgid.
16009 * Makefile.in: Update dependencies.
16011 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
16013 * configure.srv: Add linux-procfs.o dependencies.
16015 2011-08-14 Yao Qi <yao@codesourcery.com>
16017 * target.h (struct target_ops): Fix indent.
16018 * win32-low.c (win32_target_ops): Fix comment.
16020 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
16021 Yao Qi <yao@codesourcery.com>
16023 * Makefile.in (clean): Remove tic6x-*.c files.
16024 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
16025 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
16026 (tic6x-c64xp-linux.c): Likewise.
16027 * configure.srv: Add support for tic6x-*-uclinux.
16028 * linux-tic6x-low.c: New.
16029 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
16031 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
16032 Yao Qi <yao@codesourcery.com>
16034 * target.h (struct target_ops): Add read_loadmap.
16035 * linux-low.c (struct target_loadseg): New type.
16036 (struct target_loadmap): New type.
16037 (linux_read_loadmap): New function.
16038 (linux_target_ops): Add linux_read_loadmap.
16039 * server.c (handle_query): Support qXfer:fdpic:read packet.
16040 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
16043 2011-08-05 Eli Zaretskii <eliz@gnu.org>
16045 * win32-low.c: Include <stdint.h>.
16047 2011-07-22 Pedro Alves <pedro@codesourcery.com>
16049 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
16050 to the inferior here.
16051 (i386_remove_aligned_watchpoint): Ditto.
16052 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
16053 fit part of the watchpoint in the debug registers.
16054 (i386_update_inferior_debug_regs): New.
16055 (i386_low_insert_watchpoint): Work on a local mirror of the debug
16056 registers, and only update the inferior on success.
16057 (i386_low_remove_watchpoint): Ditto.
16059 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
16061 * linux-low.c (compare_ints, unique, list_threads, show_process,
16062 linux_core_of_thread): Delete.
16063 (linux_target_ops): Change linux_core_of_thread to
16064 linux_common_core_of_thread.
16065 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
16066 * utils.c (malloc_failure): Change type of argument.
16067 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
16068 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
16069 common/linux-osdata.c, common/ptid.c and common/buffer.c.
16070 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
16071 (IPA_OBJS): Add common-utils-ipa.o.
16072 (ptid_h, linux_osdata_h): New macros.
16073 (server_h): Add common/common-utils.h, common/xml-utils.h,
16074 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
16076 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
16077 ptid.o, buffer.o): New rules.
16078 (linux-low.o): Add common/linux-osdata.h as a dependency.
16079 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
16080 * configure.ac: Add AC_HEADER_DIRENT check.
16081 * config.in: Regenerate.
16082 * configure: Regenerate.
16083 * remote-utils.c (xml_escape_text): Delete.
16084 (buffer_grow, buffer_free, buffer_init, buffer_finish,
16085 buffer_xml_printf): Move to common/buffer.c.
16086 * server.c (main): Remove call to initialize_inferiors.
16087 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
16088 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
16089 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
16090 internal_error, gdb_assert, gdb_assert_fail): Delete.
16091 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
16092 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
16094 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
16095 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
16096 initialize_inferiors): Delete.
16098 2011-07-20 Pedro Alves <pedro@codesourcery.com>
16100 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
16103 2011-05-31 Pedro Alves <pedro@codesourcery.com>
16105 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
16107 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
16109 2011-05-26 Yao Qi <yao@codesourcery.com>
16111 * Makefile.in (thread-db.o): Track dependence to
16112 common/gdb_thread_db.h.
16113 * thread-db.c: include gdb_thread_db.h from right place.
16115 2011-05-16 Adrian Cornish <gnu@bluedreamer.com>
16117 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
16118 __FILE__ and __LINE__ to internal_error.
16120 2011-05-13 Doug Evans <dje@google.com>
16122 * thread-db.c (try_thread_db_load_from_sdir): New function.
16123 (try_thread_db_load_from_dir): New function.
16124 (thread_db_load_search): Handle $sdir, ignore $pdir.
16125 Remove trying of system directories if search of
16126 libthread-db-search-path fails, that is now done via $sdir.
16128 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
16130 * server.c (handle_query): Add EnableDisableTracepoints to the list
16131 of supported features.
16132 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
16134 (cmd_qtenable_disable): New.
16135 (cmd_qtstart): Install tracepoints even if disabled.
16136 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
16137 receiving a QTEnable or QTDisable packet.
16138 (gdb_collect): Skip data collection if fast tracepoint is disabled.
16139 (ust_marker_to_static_tracepoint): Do not ignore disabled static
16141 (gdb_probe): Skip data collection if static tracepoint is disabled.
16143 2011-05-10 Doug Evans <dje@google.com>
16145 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
16147 2011-05-04 Doug Evans <dje@google.com>
16149 * linux-low.c (linux_join): Skip process lookup.
16150 * spu-low.c (spu_join): Ditto.
16151 * server.c (join_inferiors_callback): Delete.
16152 (process_serial_event): For 'D' packet (detach) call join_inferior
16155 2011-05-04 Joseph Myers <joseph@codesourcery.com>
16157 * README: Don't mention xscale*-*-linux*.
16158 * configure.srv (xscale*-*-linux*): Don't handle target.
16160 2011-04-27 Nathan Froyd <froydnj@codesourcery.com>
16162 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
16164 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
16165 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
16166 (i386_emit_void_call_2): Likewise.
16168 2011-04-26 Yao Qi <yao@codesourcery.com>
16170 * linux-low.c: Move common macros to linux-ptrace.h.
16171 Include linux-ptrace.h.
16172 * Makefile.in (linux_ptrace_h): New.
16173 (linux-low.o): Depends on linux-ptrace.h.
16175 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
16177 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
16178 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
16179 (remote_prepare): New function with most of the TCP code from ...
16180 (remote_open): ... here. Detect PORT here unconditionally. Move also
16181 setting transport_is_reliable.
16182 * server.c (run_once): New variable.
16183 (gdbserver_usage): Document it.
16184 (main): Set run_once for `--once'. Call remote_prepare. Exit after
16185 the first run if RUN_ONCE.
16186 * server.h (run_once, remote_prepare): New declarations.
16188 2011-04-19 Tom Tromey <tromey@redhat.com>
16190 * win32-low.c (handle_load_dll): Remove duplicate "the".
16192 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
16194 Remove support for old Cygwin 1.5 versions.
16195 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
16196 function to avoid warning.
16197 (win32_add_one_solib): Use cygwin_conv_path function to avoid
16200 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
16202 * gdbserver/server.h (Macro _): Define it if not available.
16204 2011-03-14 Michael Snyder <msnyder@vmware.com>
16206 * hostio.c (handle_close): Remove unnecessary null test.
16208 2011-03-10 Joel Brobecker <brobecker@adacore.com>
16210 * Makefile.in (maintainer-clean realclean distclean): Remove
16211 "make ... subdir_do" command.
16213 2011-03-10 Michael Snyder <msnyder@vmware.com>
16215 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
16217 * server.c (handle_v_run): Free alloced buffer on early return.
16219 2011-03-09 Yao Qi <yao@codesourcery.com>
16222 2011-03-04 Yao Qi <yao@codesourcery.com>
16224 * Makefile.in: Remove GNU make feature --directory.
16226 2011-03-05 Yao Qi <yao@codesourcery.com>
16228 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16229 (subdir_do): New make target. Copied from gdb/Makefile.
16230 (maintainer-clean, realclean, distclean, clean): Call corresponding
16231 make targets in common/Makefile.
16233 2011-02-11 Yao Qi <yao@codesourcery.com>
16235 * configure.ac: Call AC_PROG_RANLIB.
16236 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16237 * configure: Regenerate.
16239 2011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
16241 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
16243 2011-03-06 Yao Qi <yao@codesourcery.com>
16245 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
16247 2011-03-05 Yao Qi <yao@codesourcery.com>
16249 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16250 (subdir_do): New make target. Copied from gdb/Makefile.
16251 (maintainer-clean, realclean, distclean, clean): Call corresponding
16252 make targets in common/Makefile.
16254 2011-03-04 Yao Qi <yao@codesourcery.com>
16256 * Makefile.in: Remove GNU make feature --directory.
16258 2011-03-04 Michael Snyder <msnyder@vmware.com>
16260 * server.c (queue_stop_reply): Call xmalloc not malloc.
16262 2011-03-02 Michael Snyder <msnyder@vmware.com>
16264 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
16266 2011-02-28 Michael Snyder <msnyder@vmware.com>
16268 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
16269 (cmd_qtframe): Ditto.
16270 (cmd_qtbuffer): Ditto.
16271 (cmd_bigqtbuffer): Ditto.
16273 * utils.c (decimal2str): Initialize 'width' to nine, then
16274 don't mess with it.
16276 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
16278 * hostio.c (require_data): Free *data, not data.
16280 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
16282 * hostio.c (require_data): Use free, not xfree.
16284 2011-02-27 Michael Snyder <msnyder@vmware.com>
16286 * server.c (handle_query): Discard unused value.
16288 * hostio.c (require_data): Free malloc memory before returning
16291 2011-02-26 Michael Snyder <msnyder@vmware.com>
16293 * linux-low.c (list_threads): Call closedir for dirent.
16295 2011-02-27 Michael Snyder <msnyder@vmware.com>
16297 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
16298 a case statement falls through.
16300 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
16302 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
16305 2011-02-26 Michael Snyder <msnyder@vmware.com>
16307 * utils.c (decimal2str): Eliminate dead code and dead param.
16308 (pulongest): Drop dead param from call to decimal2str.
16311 2011-02-24 Joel Brobecker <brobecker@adacore.com>
16313 Revert the following patch (not approved yet):
16314 2011-02-21 Hui Zhu <teawater@gmail.com>
16315 * tracepoint.c (tp_printf): New function.
16316 (eval_agent_expr): Handle gdb_agent_op_printf.
16318 2011-02-21 Hui Zhu <teawater@gmail.com>
16320 * tracepoint.c (tp_printf): New function.
16321 (eval_agent_expr): Handle gdb_agent_op_printf.
16323 2011-02-18 Tom Tromey <tromey@redhat.com>
16325 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
16326 (tracepoint.o): Likewise.
16327 * tracepoint.c (enum gdb_agent_op): Use ax.def.
16328 (gdb_agent_op_names): Likewise.
16330 2011-02-18 Tom Tromey <tromey@redhat.com>
16332 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
16333 gdb_agent_op_rot>: New constants.
16334 (gdb_agent_op_names): Add pick and roll.
16335 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
16338 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
16340 * aclocal.m4: Regenerated with aclocal-1.11.1.
16342 2011-02-14 Pedro Alves <pedro@codesourcery.com>
16344 * server.c (handle_qxfer_traceframe_info): New.
16345 (qxfer_packets): Register "traceframe-info".
16346 (handle_query): Report support for qXfer:traceframe-info:read+.
16347 * tracepoint.c (match_blocktype): New.
16348 (traceframe_find_block_type): Rename to ...
16349 (traceframe_walk_blocks): ... this. Add callback filter argument,
16351 (traceframe_find_block_type): New, reimplemented on top of
16352 traceframe_walk_blocks.
16353 (build_traceframe_info_xml): New.
16354 (traceframe_read_info): New.
16355 * server.h (traceframe_read_info): Declare.
16357 2011-02-11 Yao Qi <yao@codesourcery.com>
16359 * configure.ac: Call AC_PROG_RANLIB.
16360 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16361 * configure: Regenerate.
16363 2011-02-07 Pedro Alves <pedro@codesourcery.com>
16365 * server.c (gdb_read_memory): Change return semantics to allow
16367 (handle_search_memory_1): Adjust.
16368 (process_serial_event) <'m' packet>: Handle partial transfers.
16369 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
16371 2011-01-28 Pedro Alves <pedro@codesourcery.com>
16373 * regcache.c (init_register_cache): Initialize
16374 regcache->register_status.
16375 (free_register_cache): Release regcache->register_status.
16376 (regcache_cpy): Copy register_status.
16377 (registers_to_string): Print 'x's for unavailable registers.
16378 (supply_register): Mark the register's status valid or
16379 unavailable, depending on whether a buffer was passed in or not.
16380 (supply_register_zeroed): New.
16381 (supply_regblock): Mark the registers' status valid or
16382 unavailable, depending on whether a buffer was passed in or not.
16383 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
16384 (struct regcache): New `register_status' field.
16385 (supply_register_zeroed): Declare.
16386 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
16387 supply_register_zeroed, rather than passing a NULL buffer to
16389 * tracepoint.c (fetch_traceframe_registers): Update comment.
16391 2011-01-28 Pedro Alves <pedro@codesourcery.com>
16393 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
16396 2011-01-25 Pedro Alves <pedro@codesourcery.com>
16398 * server.h (decode_xfer_write): Change prototype.
16399 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
16400 and don't extract the annex here.
16401 * server.c (decode_xfer_read): Remove `annex' parameter,
16402 and don't extract the annex here.
16403 (decode_xfer): New.
16404 (struct qxfer): New.
16405 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
16406 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
16407 (handle_qxfer_statictrace): New functions, abstracted out from
16408 handle_query, and made to use the struct qxfer interface.
16409 (handle_threads_qxfer_proper): Rename to ...
16410 (handle_qxfer_threads_proper): ... this.
16411 (handle_threads_qxfer): Rename to ...
16412 (handle_qxfer_threads): ... this. Adjust.
16413 (qxfer_packets): New array.
16414 (handle_qxfer): New function.
16415 (handle_query): Use handle_qxfer.
16417 2011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
16419 * gdbreplay.c: Shorten lines of >= 80 columns.
16420 * linux-low.c: Ditto.
16421 * linux-ppc-low.c: Ditto.
16422 * linux-s390-low.c: Ditto.
16423 * linux-sparc-low.c: Ditto.
16424 * linux-x86-low.c: Ditto.
16425 * linux-xtensa-low.c: Ditto.
16426 * mem-break.c: Ditto.
16427 * nto-low.c: Ditto.
16428 * regcache.h: Ditto.
16429 * remote-utils.c: Ditto.
16432 * thread-db.c: Ditto.
16433 * tracepoint.c: Ditto.
16435 * win32-low.h: Ditto.
16437 2011-01-05 Joel Brobecker <brobecker@adacore.com>
16439 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
16442 2011-01-01 Joel Brobecker <brobecker@adacore.com>
16444 * server.c (gdbserver_version): Update copyright year in version
16446 * gdbreplay.c (gdbreplay_version): Ditto.
16448 2010-12-29 Jie Zhang <jie.zhang@analog.com>
16450 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
16451 * linux-bfin-low.c: New file.
16452 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
16453 PT_DATA_ADDR for BFIN targets.
16454 * Makefile.in (SFILES): Add linux-bfin-low.c.
16455 (clean): Remove reg-bfin.c.
16456 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
16457 * README: Mention supported Blackfin targets.
16459 2010-12-23 Mike Frysinger <vapier@gentoo.org>
16461 * .gitignore: New file.
16463 2010-11-16 Mike Frysinger <vapier@gentoo.org>
16465 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
16467 2010-10-22 Jie Zhang <jie@codesourcery.com>
16469 * Makefile.in: Add FLAGS_TO_PASS variable.
16470 (install): Remove dependency of install-only and recursively
16471 invoke make for install-only.
16473 2010-10-04 Doug Evans <dje@google.com>
16475 * Makefile.in (uninstall): Use $(DESTDIR).
16477 2010-09-24 Pedro Alves <pedro@codesourcery.com>
16481 * linux-x86-low.c (compat_siginfo_from_siginfo)
16482 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
16483 si_code is < 0. Check for si_code == SI_TIMER before checking for
16486 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16488 * lynx-i386-low.c: New file.
16489 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
16491 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16493 * lynx-low.c (ptrace_request_to_str): Remove handling for
16494 request values that have been removed in LynxOS 5.x.
16496 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16498 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
16501 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
16503 * configure.ac: Add --enable-inprocess-agent option.
16504 * configure: Rebuilt.
16506 2010-09-06 Yao Qi <yao@codesourcery.com>
16508 * linux-low.c (linux_kill): Remove unused variable.
16509 (linux_stabilize_threads): Likewise.
16510 * server.c (start_inferior): Likewise.
16511 (queue_stop_reply_callback): Likewise.
16512 * tracepoint.c (do_action_at_tracepoint): Likewise.
16514 2010-09-06 Yao Qi <yao@codesourcery.com>
16516 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
16519 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16521 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
16523 2010-09-06 Pedro Alves <pedro@codesourcery.com>
16525 * Makefile.in (install-only): Replace $IPA_DEPFILES with
16528 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16530 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
16531 gdbserver/lynx-ppc-low.c: New files.
16532 * Makefile.in (lynx_low_h): New variable.
16533 (lynx-low.o, lynx-ppc-low.o): New rules.
16534 * configure.ac: On LynxOS, link with -lnetinet.
16535 * configure.srv: Add handling of powerpc-*-lynxos* targets.
16536 * configure: regenerate.
16538 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16540 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
16541 * configure.ac: Add check for vasprintf and vsnprintf.
16542 * configure, config.in: Regenerate.
16543 * server.h (vasprintf, vsnprintf): Add conditional declarations.
16545 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16547 * gdbreplay.c: Move include of alloca.h up, next to include of
16549 * server.h: Add include of malloc.h.
16550 * mem-break.c: Remove include of malloc.h.
16551 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
16553 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16555 * Makefile.in (memmem.o): Build with -Wno-error.
16557 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16559 * utils.c (xsnprintf): Make non-static.
16560 * server.h: Add xsnprintf declaration.
16561 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
16562 replace calls to snprintf by calls to xsnprintf throughout.
16564 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16566 * configure.ac: Add configure check for alloca.
16567 * configure, config.in: Regenerate.
16568 * server.h: Include alloca.h if it exists.
16569 * gdbreplay.c: Include alloca.h if it exists.
16571 2010-08-28 Pedro Alves <pedro@codesourcery.com>
16573 * linux-low.c (__SIGRTMIN): Define if not already defined.
16574 (linux_create_inferior): Check for __ANDROID__ rather than
16576 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
16577 are already deferred.
16578 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
16579 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
16580 stopped and already has a pending signal to report.
16581 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
16582 a pending signal to report or is moving out of a jump pad.
16583 (linux_init_signals): Check for __ANDROID__ rather than
16586 2010-08-28 Pedro Alves <pedro@codesourcery.com>
16588 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
16589 debug_threads check. Avoid a linear search when not doing debug
16592 2010-08-27 Pedro Alves <pedro@codesourcery.com>
16594 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
16595 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
16596 (struct file_handler) <fd>: Change type to gdb_fildes_t.
16597 (process_event): Change local fd's type to gdb_fildes_t.
16598 (create_file_handler): Adjust prototype.
16599 (delete_file_handler): Adjust prototype.
16600 (handle_file_event): Adjust prototype. Use pfildes.
16601 (create_file_event): Adjsut prototype.
16602 * remote-utils.c (remote_desc, listen_desc): Change type to
16604 * server.h: New gdb_fildes_t typedef.
16605 [USE_WIN32API]: Include winsock2.h.
16606 (delete_file_handler, add_file_handler): Adjust prototypes.
16607 (pfildes): Declare.
16608 * utils.c (pfildes): New.
16610 2010-08-27 Pedro Alves <pedro@codesourcery.com>
16612 * configure.ac (build_warnings): Add -Wno-char-subscripts.
16613 * configure: Regenerate.
16615 2010-08-27 Pedro Alves <pedro@codesourcery.com>
16617 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
16618 (linux_done_accessing_memory): ... this.
16619 (linux_target_ops): Adjust.
16620 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
16621 * nto-low.c (nto_target_ops): Adjust comment.
16622 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
16623 * spu-low.c (spu_target_ops): Adjust comment.
16624 * target.h (target_ops): Rename unprepare_to_access_memory field
16625 to done_accessing_memory.
16626 (unprepare_to_access_memory): Rename to ...
16627 (done_accessing_memory): ... this.
16629 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16631 * linux-low.c (linux_prepare_to_access_memory): New.
16632 (linux_unprepare_to_access_memory): New.
16633 (linux_target_ops): Install them.
16634 * server.c (read_memory): Rename to ...
16635 (gdb_read_memory): ... this. Use
16636 prepare_to_access_memory/prepare_to_access_memory.
16637 (write_memory): Rename to ...
16638 (gdb_write_memory): ... this. Use
16639 prepare_to_access_memory/prepare_to_access_memory.
16640 (handle_search_memory_1): Adjust.
16641 (process_serial_event): Adjust.
16642 * target.h (struct target_ops): New fields
16643 prepare_to_access_memory and unprepare_to_access_memory.
16644 (prepare_to_access_memory, unprepare_to_access_memory): New.
16645 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
16646 prepare_to_access_memory/prepare_to_access_memory.
16647 * nto-low.c (nto_target_ops): Adjust.
16648 * spu-low.c (spu_target_ops): Adjust.
16649 * win32-low.c (win32_target_ops): Adjust.
16651 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16653 * Makefile.in (WARN_CFLAGS): Get it from configure.
16654 (WERROR_CFLAGS): New.
16655 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
16656 * configure.ac: Introduce --enable-werror, which adds -Werror to
16657 the compiler command line. Enabled by default. Disable with
16658 --disable-werror. Add -Wdeclaration-after-statement
16659 Wpointer-arith and -Wformat-nonliteral to warning flags.
16660 * configure: Regenerate.
16662 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16664 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
16666 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16668 * gdbreplay.c (remote_error): New.
16670 (expect): Use gdbchar. Check for error reading from GDB.
16671 Clarify sync error output.
16672 (play): Check for errors writing to GDB.
16673 * linux-low.c (sigchld_handler): Really ignore `write' errors.
16674 * remote-utils.c (getpkt): Check for errors writing to the remote
16677 2010-08-25 Pedro Alves <pedro@codesourcery.com>
16679 * linux-low.c (linux_wait_1): Move non-debugging code out of
16680 `debug_threads' control.
16682 2010-08-25 Pedro Alves <pedro@codesourcery.com>
16684 * linux-low.c (linux_wait_1): Don't set last_status here.
16685 * server.c (push_event, queue_stop_reply_callback): Assert we're
16686 not pushing a TARGET_WAITKIND_IGNORE event.
16687 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
16688 (myresume, handle_target_event): Set the thread's last_resume_kind
16689 and last_status from the target returned status.
16691 2010-08-25 Pedro Alves <pedro@codesourcery.com>
16695 * linux-x86-low.c (update_debug_registers_callback): New.
16696 (i386_dr_low_set_addr): Use it.
16697 (i386_dr_low_get_addr): New.
16698 (i386_dr_low_set_control): Use update_debug_registers_callback.
16699 (i386_dr_low_get_control): New.
16700 (i386_dr_low_get_status): Adjust.
16701 * linux-low.c (linux_stop_lwp): New.
16702 * linux-low.h (linux_stop_lwp): Declare.
16704 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
16705 argument instead of a i386_debug_reg_state.
16706 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
16707 a i386_debug_reg_state.
16708 (i386_insert_aligned_watchpoint): Adjust.
16709 (i386_remove_aligned_watchpoint): Adjust.
16710 (i386_low_stopped_data_address): Read the debug registers from the
16711 inferior instead of from the mirrors.
16712 * i386-low.h (struct i386_debug_reg_state): Extend comment.
16713 (i386_dr_low_get_addr): Declare.
16714 (i386_dr_low_get_control): Declare.
16715 (i386_dr_low_get_status): Change prototype.
16717 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
16718 (i386_dr_low_get_addr): New.
16719 (i386_dr_low_get_control): New.
16720 (i386_dr_low_get_status): Adjust prototype. Return
16722 (i386_initial_stuff): Clear dr_status_mirror and
16724 (i386_get_thread_context): Adjust.
16725 (i386_set_thread_context): Adjust.
16726 (i386_thread_added): Adjust.
16728 2010-08-24 Pedro Alves <pedro@codesourcery.com>
16730 * linux-low.h (linux_thread_area): Delete declaration.
16732 2010-08-11 Thomas Schwinge <thomas@codesourcery.com>
16734 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
16735 after its termination.
16737 2010-08-09 Pedro Alves <pedro@codesourcery.com>
16739 * linux-low.c (gdb_wants_lwp_stopped): Delete.
16740 (gdb_wants_all_stopped): Delete.
16741 (linux_wait_1): Don't call them.
16742 * server.c (handle_v_cont): Tag all threads as want-stopped.
16743 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
16744 stopped as "client-wants-stopped".
16746 2010-07-31 Pedro Alves <pedro@codesourcery.com>
16748 * Makefile.in (signals_h): New.
16749 (server_h): Depend on it.
16750 (server.o): Don't depend on $(signals_def).
16751 (signals.o): Depend on $(signals_def).
16753 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
16755 * Makefile.in (signals_def): New.
16756 (server_h): Append include/gdb/signals.h and signals_def.
16757 (server.o): Append signals_def.
16759 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
16761 * server.c (handle_target_event): Use target_signal_to_host for
16762 resume_info.sig initialization.
16763 * target.h (struct thread_resume) <sig>: New comment.
16765 2010-07-20 Ozkan Sezer <sezeroz@gmail.com>
16767 * server.c (handle_query): strcpy() the returned string from paddress()
16768 instead of sprintf().
16769 * utils.c (paddress): Return phex_nz().
16771 2010-07-07 Joel Brobecker <brobecker@adacore.com>
16773 * server.c (handle_v_cont): Call mourn_inferior if process
16775 (myresume): Likewise.
16777 2010-07-01 Pedro Alves <pedro@codesourcery.com>
16779 Static tracepoints, and integration with UST.
16781 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
16782 * mem-break.c (uninsert_all_breakpoints)
16783 (reinsert_all_breakpoints): New.
16784 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
16785 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
16786 (gdb_agent_ust_loaded, helper_thread_id)
16787 (gdb_agent_helper_thread_id): New macros.
16788 (struct ipa_sym_addresses): Add addr_ust_loaded,
16789 addr_helper_thread_id, addr_cmd_buf.
16790 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
16791 (in_process_agent_loaded_ust): New.
16792 (write_e_ust_not_loaded): New.
16793 (maybe_write_ipa_ust_not_loaded): New.
16794 (struct collect_static_trace_data_action): New.
16795 (enum tracepoint_type) <static_tracepoint>: New.
16796 (struct tracepoint) <handle>: Mention static tracepoints.
16797 (struct static_tracepoint_ctx): New.
16798 (CMD_BUF_SIZE): New.
16799 (add_tracepoint_action): Handle static tracepoint actions.
16800 (unprobe_marker_at): New.
16801 (clear_installed_tracepoints): Handle static tracepoints.
16802 (cmd_qtdp): Handle static tracepoints.
16803 (probe_marker_at): New.
16804 (cmd_qtstart): Handle static tracepoints.
16805 (response_tracepoint): Handle static tracepoints.
16806 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
16807 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
16808 (get_context_regcache): Handle static tracepoints.
16809 (do_action_at_tracepoint): Handle static tracepoint actions.
16810 (traceframe_find_block_type): Handle static trace data blocks.
16811 (traceframe_read_sdata): New.
16812 (download_tracepoints): Download static tracepoint actions.
16813 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
16814 (GDB_PROBE_NAME): New.
16816 (GET_UST_SYM): New.
16819 (ust_marker_to_static_tracepoint): New.
16821 (collect_ust_data_at_tracepoint): New.
16822 (gdb_ust_probe): New.
16823 (UNIX_PATH_MAX, SOCK_DIR): New.
16824 (gdb_ust_connect_sync_socket): New.
16825 (resume_thread, stop_thread): New.
16826 (run_inferior_command): New.
16827 (init_named_socket): New.
16828 (gdb_ust_socket_init): New.
16829 (cstr_to_hexstr): New.
16831 (first_marker, next_marker): New.
16832 (response_ust_marker): New.
16833 (cmd_qtfstm, cmd_qtsstm): New.
16834 (unprobe_marker_at, probe_marker_at): New.
16835 (cmd_qtstmat, gdb_ust_thread): New.
16836 (gdb_ust_init): New.
16837 (initialize_tracepoint_ftlib): Call gdb_ust_init.
16838 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
16839 (ST_REGENTRY): New.
16840 (x86_64_st_collect_regmap): New.
16841 (X86_64_NUM_ST_COLLECT_GREGS): New.
16842 (AMD64_RIP_REGNUM): New.
16843 (supply_static_tracepoint_registers): New.
16844 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
16845 (ST_REGENTRY): New.
16846 (i386_st_collect_regmap): New.
16847 (i386_NUM_ST_COLLECT_GREGS): New.
16848 (supply_static_tracepoint_registers): New.
16849 * server.c (handle_query): Handle qXfer:statictrace:read.
16850 <qSupported>: Report support for StaticTracepoints, and
16851 qXfer:statictrace:read features.
16852 * server.h (traceframe_read_sdata)
16853 (supply_static_tracepoint_registers): Declare.
16854 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
16855 (unpack_varlen_hex): Include in IPA build.
16856 * Makefile.in (ustlibs, ustinc): New.
16857 (IPA_OBJS): Add remote-utils-ipa.o.
16858 ($(IPA_LIB)): Link -ldl and -lpthread.
16860 (IPAGENT_CFLAGS): Add UST_CFLAGS.
16861 * config.in, configure: Regenerate.
16863 2010-06-20 Ian Lance Taylor <iant@google.com>
16864 Pedro Alves <pedro@codesourcery.com>
16866 * linux-x86-low.c (always_true): Delete.
16867 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
16868 trying to fool the compiler with always_true.
16870 2010-06-20 Pedro Alves <pedro@codesourcery.com>
16872 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
16873 conditions in gdbserver.
16875 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
16877 * spu-low.c (spu_read_memory): Wrap around local store limit.
16878 (spu_write_memory): Likewise.
16880 2010-06-15 Pedro Alves <pedro@codesourcery.com>
16882 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
16883 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
16885 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
16887 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
16888 uses with LONGEST uses.
16890 2010-06-14 Stan Shebs <stan@codesourcery.com>
16891 Pedro Alves <pedro@codesourcery.com>
16895 * linux-x86-low.c: Include limits.h.
16897 (always_true): New.
16900 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
16901 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
16902 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
16903 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
16904 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
16905 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
16906 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
16907 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
16908 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
16909 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
16910 (amd64_emit_void_call_2): New.
16911 (amd64_emit_ops): New.
16912 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
16913 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
16914 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
16915 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
16916 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
16917 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
16918 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
16919 (i386_emit_call, i386_emit_reg, i386_emit_pop)
16920 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
16921 (i386_emit_stack_adjust, i386_emit_int_call_1)
16922 (i386_emit_void_call_2): New.
16923 (i386_emit_ops): New.
16924 (x86_emit_ops): New.
16925 (the_low_target): Install x86_emit_ops.
16926 * server.h (struct emit_ops): New.
16927 (get_raw_reg_func_addr): Declare.
16928 (current_insn_ptr, emit_error): Declare.
16929 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
16930 (set_trace_state_variable_value): New defines.
16931 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
16932 addr_get_trace_state_variable_value and
16933 addr_set_trace_state_variable_value.
16934 (symbol_list): New fields for get_raw_reg,
16935 get_trace_state_variable_value and set_trace_state_variable_value.
16936 (condfn): New typedef.
16937 (struct tracepoint): New field `compiled_cond'.
16938 (do_action_at_tracepoint): Clear compiled_cond.
16939 (get_trace_state_variable_value, set_trace_state_variable_value):
16941 (condition_true_at_tracepoint): If there's a compiled condition,
16943 (current_insn_ptr, emit_error): New globals.
16944 (struct bytecode_address): New.
16945 (get_raw_reg_func_addr): New.
16946 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
16947 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
16948 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
16949 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
16950 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
16951 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
16952 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
16953 (compile_tracepoint_condition, compile_bytecodes): New.
16954 * target.h (emit_ops): Forward declare.
16955 (struct target_ops): New field emit_ops.
16956 (target_emit_ops): New.
16957 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
16958 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
16959 * linux-low.c (linux_emit_ops): New.
16960 (linux_target_ops): Install it.
16961 * linux-low.h (struct linux_target_ops): New field emit_ops.
16963 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
16965 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
16966 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
16968 2010-06-01 Pedro Alves <pedro@codesourcery.com>
16969 Stan Shebs <stan@codesourcery.com>
16971 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
16972 (all): Depend on $(extra_libraries).
16973 (install-only): Install the IPA.
16974 (IPA_OBJS, IPA_LIB): New.
16975 (clean): Remove the IPA lib.
16976 (IPAGENT_CFLAGS): New.
16977 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
16978 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
16979 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
16980 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
16981 * configure.ac: Check for atomic builtins support in the compiler.
16982 (IPA_DEPFILES, extra_libraries): Define.
16983 * configure.srv (ipa_obj): Add description.
16984 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
16985 (i[34567]86-*-linux*): Set ipa_obj.
16986 (x86_64-*-linux*): Set ipa_obj.
16987 * linux-low.c (stabilizing_threads): New.
16988 (supports_fast_tracepoints): New.
16989 (linux_detach): Stabilize threads before detaching.
16990 (handle_tracepoints): Handle internal tracing breakpoints. Assert
16991 the lwp is either not stabilizing, or is moving out of a jump pad.
16992 (linux_fast_tracepoint_collecting): New.
16993 (maybe_move_out_of_jump_pad): New.
16994 (enqueue_one_deferred_signal): New.
16995 (dequeue_one_deferred_signal): New.
16996 (linux_wait_for_event_1): If moving out of a jump pad, defer
16997 pending signals to later.
16998 (linux_stabilize_threads): New.
16999 (linux_wait_1): Check if threads need moving out of jump pads, and
17001 (stuck_in_jump_pad_callback): New.
17002 (move_out_of_jump_pad_callback): New.
17003 (lwp_running): New.
17004 (linux_resume_one_lwp): Handle moving out of jump pads.
17005 (linux_set_resume_request): Dequeue deferred signals.
17006 (need_step_over_p): Also step over fast tracepoint jumps.
17007 (start_step_over): Also uninsert fast tracepoint jumps.
17008 (finish_step_over): Also reinsert fast tracepoint jumps.
17009 (linux_install_fast_tracepoint_jump): New.
17010 (linux_target_ops): Install linux_stabilize_threads and
17011 linux_install_fast_tracepoint_jump_pad.
17012 * linux-low.h (linux_target_ops) <get_thread_area,
17013 install_fast_tracepoint_jump_pad>: New fields.
17014 (struct lwp_info) <collecting_fast_tracepoint,
17015 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
17016 (linux_get_thread_area): Declare.
17017 * linux-x86-low.c (jump_insn): New.
17018 (x86_get_thread_area): New.
17019 (append_insns): New.
17020 (push_opcode): New.
17021 (amd64_install_fast_tracepoint_jump_pad): New.
17022 (i386_install_fast_tracepoint_jump_pad): New.
17023 (x86_install_fast_tracepoint_jump_pad): New.
17024 (the_low_target): Install x86_get_thread_area and
17025 x86_install_fast_tracepoint_jump_pad.
17026 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
17027 (struct fast_tracepoint_jump): New.
17028 (fast_tracepoint_jump_insn): New.
17029 (fast_tracepoint_jump_shadow): New.
17030 (find_fast_tracepoint_jump_at): New.
17031 (fast_tracepoint_jump_here): New.
17032 (delete_fast_tracepoint_jump): New.
17033 (set_fast_tracepoint_jump): New.
17034 (uninsert_fast_tracepoint_jumps_at): New.
17035 (reinsert_fast_tracepoint_jumps_at): New.
17036 (set_breakpoint_at): Use write_inferior_memory.
17037 (uninsert_raw_breakpoint): Use write_inferior_memory.
17038 (check_mem_read): Mask out fast tracepoint jumps.
17039 (check_mem_write): Mask out fast tracepoint jumps.
17040 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
17041 (set_fast_tracepoint_jump): Declare.
17042 (delete_fast_tracepoint_jump)
17043 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
17044 (reinsert_fast_tracepoint_jumps_at): Declare.
17045 * regcache.c: Don't compile many functions when building the
17046 in-process agent library.
17047 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
17048 the register buffer in the heap.
17049 (free_register_cache): If the register buffer isn't owned by the
17050 regcache, don't free it.
17051 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
17052 pre-existing register caches.
17053 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
17055 (convert_ascii_to_int): : Constify `from' parameter type.
17056 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
17057 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
17058 the needed buffer in-place.
17059 (relocate_instruction): New.
17060 * server.c (handle_query) <qSymbols>: If the target supports
17061 tracepoints, give it a chance of looking up symbols. Report
17062 support for fast tracepoints.
17063 (handle_status): Stabilize threads.
17064 (process_serial_event): Adjust.
17065 * server.h (struct fast_tracepoint_jump): Forward declare.
17066 (struct process_info) <fast_tracepoint_jumps>: New field.
17067 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
17068 (decode_X_packet, decode_M_packet): Adjust.
17069 (relocate_instruction): Declare.
17070 (in_process_agent_loaded): Declare.
17071 (tracepoint_look_up_symbols): Declare.
17072 (struct fast_tpoint_collect_status): Declare.
17073 (fast_tracepoint_collecting): Declare.
17074 (force_unlock_trace_buffer): Declare.
17075 (handle_tracepoint_bkpts): Declare.
17076 (initialize_low_tracepoint)
17077 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
17078 * target.h (struct target_ops) <stabilize_threads,
17079 install_fast_tracepoint_jump_pad>: New fields.
17080 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
17081 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
17082 [HAVE_STDINT_H]: Include stdint.h.
17083 (trace_debug_1): Rename to ...
17084 (trace_vdebug): ... this.
17085 (trace_debug): Rename to ...
17086 (trace_debug_1): ... this. Add `level' parameter.
17087 (trace_debug): New.
17088 (ATTR_USED, ATTR_NOINLINE): New.
17089 (IP_AGENT_EXPORT): New.
17090 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
17091 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
17092 (about_to_request_buffer_space, trace_buffer_is_full)
17093 (stopping_tracepoint, expr_eval_result, error_tracepoint)
17094 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
17095 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
17096 (traceframe_write_count, traceframes_created)
17097 (trace_state_variables)
17098 New renaming defines.
17099 (struct ipa_sym_addresses): New.
17100 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
17101 (symbol_list): New.
17102 (ipa_sym_addrs): New.
17103 (all_tracepoint_symbols_looked_up): New.
17104 (in_process_agent_loaded): New.
17105 (write_e_ipa_not_loaded): New.
17106 (maybe_write_ipa_not_loaded): New.
17107 (tracepoint_look_up_symbols): New.
17108 (debug_threads) [IN_PROCESS_AGENT]: New.
17109 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
17110 (UNKNOWN_SIDE_EFFECTS): New.
17111 (stop_tracing): New.
17112 (flush_trace_buffer): New.
17113 (stop_tracing_bkpt): New.
17114 (flush_trace_buffer_bkpt): New.
17115 (read_inferior_integer): New.
17116 (read_inferior_uinteger): New.
17117 (read_inferior_data_pointer): New.
17118 (write_inferior_data_pointer): New.
17119 (write_inferior_integer): New.
17120 (write_inferior_uinteger): New.
17121 (struct collect_static_trace_data_action): Delete.
17122 (enum tracepoint_type): New.
17123 (struct tracepoint) <type>: New field `type'.
17124 <actions_str, step_actions, step_actions_str>: Only include in
17126 <orig_size, obj_addr_on_target, adjusted_insn_addr>
17127 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
17128 (tracepoints): Use IP_AGENT_EXPORT.
17129 (last_tracepoint): Don't include in the IPA.
17130 (stopping_tracepoint): Use IP_AGENT_EXPORT.
17131 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
17132 (alloced_trace_state_variables): New.
17133 (trace_state_variables): Use IP_AGENT_EXPORT.
17134 (traceframe_t): Delete unused variable.
17135 (circular_trace_buffer): Don't include in the IPA.
17136 (trace_buffer_start): Delete.
17137 (struct trace_buffer_control): New.
17138 (trace_buffer_free): Delete.
17139 (struct ipa_trace_buffer_control): New.
17140 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
17141 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
17143 (trace_buffer_ctrl): New.
17144 (TRACE_BUFFER_CTRL_CURR): New.
17145 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
17146 Reimplement as macros.
17147 (trace_buffer_wrap): Delete.
17148 (traceframe_write_count, traceframe_read_count)
17149 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
17150 (struct tracepoint_hit_ctx) <type>: New field.
17151 (struct fast_tracepoint_ctx): New.
17152 (memory_barrier): New.
17154 (record_tracepoint_error): Update atomically in the IPA.
17155 (clear_inferior_trace_buffer): New.
17156 (about_to_request_buffer_space): New.
17157 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
17158 updating the same buffer.
17159 (add_tracepoint): Default the tracepoint's type to trap
17160 tracepoint, and orig_size to -1.
17161 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
17162 internal variables.
17163 (create_trace_state_variable): New parameter `gdb'. Handle it.
17164 (clear_installed_tracepoints): Clear fast tracepoint jumps.
17165 (cmd_qtdp): Handle fast tracepoints.
17166 (cmd_qtdv): Adjust.
17167 (max_jump_pad_size): New.
17168 (gdb_jump_pad_head): New.
17169 (get_jump_space_head): New.
17170 (claim_jump_space): New.
17171 (sort_tracepoints): New.
17172 (MAX_JUMP_SIZE): New.
17173 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
17175 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
17176 support. Upload fast traceframes, and delete internal IPA
17178 (stop_tracing_handler): New.
17179 (flush_trace_buffer_handler): New.
17180 (cmd_qtstop): Upload fast tracepoints.
17181 (response_tracepoint): Handle fast tracepoints.
17182 (tracepoint_finished_step): Upload fast traceframes. Set the
17183 tracepoint hit context's tracepoint type.
17184 (handle_tracepoint_bkpts): New.
17185 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
17186 type. Add comment about fast tracepoints.
17187 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
17188 non-existing action_str field.
17189 (get_context_regcache): Handle fast tracepoints.
17190 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
17192 (fast_tracepoint_from_jump_pad_address): New.
17193 (fast_tracepoint_from_ipa_tpoint_address): New.
17194 (collecting_t): New.
17195 (force_unlock_trace_buffer): New.
17196 (fast_tracepoint_collecting): New.
17198 (gdb_collect): New.
17199 (write_inferior_data_ptr): New.
17200 (target_tp_heap): New.
17201 (target_malloc): New.
17202 (download_agent_expr): New.
17204 (download_tracepoints): New.
17205 (download_trace_state_variables): New.
17206 (upload_fast_traceframes): New.
17207 (IPA_FIRST_TRACEFRAME): New.
17208 (IPA_NEXT_TRACEFRAME_1): New.
17209 (IPA_NEXT_TRACEFRAME): New.
17210 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
17211 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
17212 (gdb_jump_pad_buffer_end): New.
17213 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
17214 (initialize_tracepoint): Adjust.
17215 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
17216 buffer. Initialize the low module.
17217 * utils.c (PREFIX, TOOLNAME): New.
17218 (malloc_failure): Use PREFIX.
17219 (error): In the IPA, an error causes an exit.
17220 (fatal, warning): Use PREFIX.
17221 (internal_error): Use TOOLNAME.
17222 (NUMCELLS): Increase to 10.
17223 * configure, config.in: Regenerate.
17225 2010-06-01 Pedro Alves <pedro@codesourcery.com>
17227 * server.c (handle_query) <qSupported>: Do two passes over the
17228 qSupported string to avoid nesting strtok.
17230 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17232 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
17234 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
17235 -Wl,--dynamic-list.
17236 * configure: Regenerate.
17237 * proc-service.list: New.
17239 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17241 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
17244 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
17246 * gdbreplay.c (remote_open): Check error return from socket() call by
17247 its equality to -1 not by it being negative.
17248 * remote-utils.c (remote_open): Likewise.
17250 2010-05-23 Pedro Alves <pedro@codesourcery.com>
17252 * config.h: Regenerate.
17254 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17256 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
17257 doesn't provide PTRACE_GET_THREAD_AREA.
17259 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17261 * linux-m68k-low.c: Include <asm/ptrace.h>
17262 (ps_get_thread_area): Implement.
17264 2010-05-03 Doug Evans <dje@google.com>
17266 * event-loop.c (struct callback_event): New struct.
17267 (callback_list): New global.
17268 (append_callback_event, delete_callback_event): New functions.
17269 (process_callback): New function.
17270 (start_event_loop): Call it.
17271 * remote-utils.c (NOT_SCHEDULED): Define.
17272 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
17273 moved out of readchar.
17274 (readchar): Rewrite. Call reschedule before returning.
17275 (reset_readchar): New function.
17276 (remote_close): Call it.
17277 (process_remaining, reschedule): New functions.
17278 * server.h (callback_handler_func): New typedef.
17279 (append_callback_event, delete_callback_event): Declare.
17281 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17283 * proc-service.c (ps_pglobal_lookup): Use
17284 thread_db_look_up_one_symbol.
17285 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
17286 parameter. Use it instead of all_symbols_looked_up.
17287 * server.h (struct process_info) <all_symbols_looked_up>: Delete
17289 (all_symbols_looked_up): Don't declare.
17290 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
17291 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
17293 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
17294 Set all_symbols_looked_up here.
17295 (thread_db_look_up_one_symbol): New.
17296 (thread_db_get_tls_address): Adjust.
17297 (thread_db_load_search, try_thread_db_load_1): Always allocate the
17298 thread_db object on the heap, and tentatively set it in the
17300 (thread_db_init): Don't set all_symbols_looked_up here.
17301 * linux-low.h (thread_db_look_up_one_symbol): Declare.
17303 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17305 * linux-low.c (linux_kill, linux_detach): Adjust.
17306 (status_pending_p_callback): Remove redundant statement. Check
17307 for !TARGET_WAITIKIND_IGNORE, instead of
17308 TARGET_WAITKIND_STOPPED.
17309 (handle_tracepoints): Make sure LWP is locked. Adjust.
17310 (linux_wait_for_event_1): Adjust.
17311 (linux_cancel_breakpoints): New.
17312 (unsuspend_one_lwp): New.
17313 (unsuspend_all_lwps): New.
17314 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
17315 (send_sigstop_callback): Change return type to int, add new
17316 `except' parameter and handle it.
17317 (suspend_and_send_sigstop_callback): New.
17318 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
17319 pass them down. If SUSPEND, also increment the lwp's suspend
17321 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
17322 (need_step_over_p): Don't consider suspended LWPs.
17323 (start_step_over): Adjust.
17324 (proceed_one_lwp): Change return type to int, add new `except'
17325 parameter and handle it.
17326 (unsuspend_and_proceed_one_lwp): New.
17327 (proceed_all_lwps): Use find_inferior instead of
17329 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
17330 also decrement the suspend count of LWPs. Pass `except' down,
17331 instead of hacking its suspend count.
17332 (linux_pause_all): Add `freeze' parameter. Adjust.
17333 (linux_unpause_all): New.
17334 (linux_target_ops): Install linux_unpause_all.
17335 * server.c (handle_status): Adjust.
17336 * target.h (struct target_ops): New fields `unpause_all' and
17337 `cancel_breakpoints'. Add new parameter to `pause_all'.
17338 (pause_all): Add new `freeze' parameter.
17339 (unpause_all): New.
17340 (cancel_breakpoints): New.
17341 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
17342 cancel breakpoints.
17343 (cmd_qtstart): Pause threads.
17344 (stop_tracing): Pause threads, and cancel breakpoints.
17345 * win32-low.c (win32_target_ops): Adjust.
17347 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17349 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
17350 the inferior right away from here...
17351 (linux_wait_1): ... to here, and adjust to check the thread's
17352 last_resume_kind instead of the lwp's step or stop_expected flags.
17354 2010-05-02 Pedro Alves <pedro@codesourcery.com>
17356 * README: Use consistent `GDB' and `GDBserver' spellings.
17358 2010-05-02 Pedro Alves <pedro@codesourcery.com>
17360 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
17361 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
17362 (linux_detach_one_lwp): Assume the lwp is stopped.
17363 (any_thread_of): Delete.
17364 (linux_detach): Stop all lwps here. Don't blindly delete all
17366 (delete_lwp_callback): New.
17367 (linux_mourn): Delete all lwps of the process that is gone.
17368 (linux_wait_1): Don't delete the last lwp of the process here.
17369 * mem-break.h (mark_breakpoints_out): Declare.
17370 * mem-break.c (mark_breakpoints_out): New.
17371 (free_all_breakpoints): Use it.
17372 * server.c (handle_target_event): If the process is gone, mark
17374 * thread-db.c (struct thread_db) <create_bp>: New field.
17375 (thread_db_enable_reporting): Fix prototype. Store a thread event
17376 breakpoint reference in the thread_db struct.
17377 (thread_db_load_search): Clear the thread_db object.
17378 (try_thread_db_load_1): Ditto.
17379 (switch_to_process): New.
17380 (disable_thread_event_reporting): Use it.
17381 (remove_thread_event_breakpoints): New.
17382 (thread_db_detach, thread_db_mourn): Use it.
17384 2010-05-01 Pedro Alves <pedro@codesourcery.com>
17386 * linux-low.c (linux_enable_event_reporting): New.
17387 (linux_wait_for_event_1, handle_extended_wait): Use it.
17389 2010-04-30 Pedro Alves <pedro@codesourcery.com>
17391 * linux-low.c (linux_kill_one_lwp, linux_kill)
17392 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
17393 (send_sigstop): Take an lwp_info as parameter instead. Queue a
17394 SIGSTOP even if the LWP is stopped.
17395 (send_sigstop_callback): New.
17396 (stop_all_lwps): Use send_sigstop_callback instead.
17397 (linux_resume_one_thread): Adjust.
17398 (proceed_one_lwp): Still proceed an LWP that the client has
17399 requested to stop, if we haven't reported it as stopped yet. Make
17400 sure that LWPs the client want stopped, have a pending SIGSTOP.
17402 2010-04-26 Doug Evans <dje@google.com>
17404 * server.c (handle_general_set): Make static.
17406 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
17407 Print received char after testing for error/eof instead of before.
17408 (input_interrupt): Tweak comment.
17410 2010-04-23 Doug Evans <dje@google.com>
17412 * server.c (start_inferior): Print inferior argv if --debug.
17414 2010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
17416 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
17417 * nto-x86-low.c: Include server.h
17419 2010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
17421 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
17422 be consistent with other sources of this directory.
17423 (init_registers_amd64): Correct name of source file of this function
17426 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17428 * configure.srv (x86_64-*-mingw*): New configuration for Windows
17429 64-bit executables.
17431 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17433 * win32-i386-low.c: Add 64-bit support.
17434 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
17435 (init_registers_amd64): Declare.
17436 (mappings): Add 64-bit version of array.
17437 (init_windows_x86): New function.
17438 (the_low_target): Change init_arch field to init_windows_x86.
17440 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17442 * win32-low.c: Adapt to support also 64-bit architecture.
17443 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
17444 (get_image_name): Use SIZE_T type for local variable `done'.
17445 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
17446 (toolhelp_get_dll_name): Idem.
17447 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
17448 Use uintptr_t typecast to avoid warning.
17449 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
17450 (handle_exception): Use phex_nz to avoid warning.
17451 (win32_wait): Remove unused local variable `process'.
17453 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17455 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
17458 2010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
17460 * configure.ac: Use `ws2_32' library for srv_mingw.
17461 * configure: Regenerate.
17462 * gdbreplay.c: Include winsock2.h instead of winsock.h.
17463 * remote-utils.c: Likewise.
17465 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
17467 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
17468 if __x86_64__ is defined.
17470 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17472 * configure: Regenerate.
17474 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17476 * server.c (handle_query): Handle 'qGetTIBAddr' query.
17477 * target.h (target_ops): New get_tib_address field.
17478 * win32-low.h (win32_thread_info): Add thread_local_base field.
17479 * win32-low.c (child_add_thread): Add tlb argument.
17480 Set thread_local_base field to TLB.
17481 (get_child_debug_event): Adapt to child_add_thread change.
17482 (win32_get_tib_address): New function.
17483 (win32_target_ops): Set get_tib_address field to
17484 win32_get_tib_address.
17485 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
17487 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17489 * linux-low.c (linux_mourn): Also remove the process.
17490 * server.c (handle_target_event): Don't remove the process here.
17491 * nto-low.c (nto_mourn): New.
17492 (nto_target_ops): Install it.
17493 * spu-low.c (spu_mourn): New.
17494 (spu_target_ops): Install it.
17495 * win32-low.c (win32_mourn): New.
17496 (win32_target_ops): Install it.
17498 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17500 * server.h (buffer_xml_printf): Remove redundant `;'.
17502 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17504 * regcache.c (set_register_cache): Invalidate regcaches before
17505 changing the register cache layout.
17506 (regcache_invalidate_one): Allow a NULL regcache.
17507 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
17508 regcaches before changing the register cache layout or the target
17511 2010-04-12 H.J. Lu <hongjiu.lu@intel.com>
17513 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
17514 variable warning on Linux/x86-64.
17516 2010-04-11 Pedro Alves <pedro@codesourcery.com>
17518 GDBserver disconnected tracing support.
17520 * linux-low.c (linux_remove_process): Delete.
17521 (add_lwp): Don't set last_resume_kind here.
17522 (linux_kill): Use `mourn'.
17523 (linux_detach): Use `thread_db_detach', and `mourn'.
17524 (linux_mourn): New.
17525 (linux_attach_lwp_1): Adjust comment.
17526 (linux_attach): last_resume_kind moved the thread_info; adjust.
17527 (status_pending_p_callback): Adjust.
17528 (linux_wait_for_event_1): Adjust.
17529 (count_events_callback, select_singlestep_lwp_callback)
17530 (select_event_lwp_callback, cancel_breakpoints_callback)
17531 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
17532 (proceed_one_lwp): Adjust.
17533 (linux_async): Add debug output.
17534 (linux_thread_stopped): New.
17535 (linux_pause_all): New.
17536 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
17538 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
17539 (thread_db_free): Delete declaration.
17540 (thread_db_detach, thread_db_mourn): Declare.
17541 * thread-db.c (thread_db_init): Use thread_db_mourn.
17542 (thread_db_free): Delete, split in two.
17543 (disable_thread_event_reporting): New.
17544 (thread_db_detach): New.
17545 (thread_db_mourn): New.
17547 * server.h (struct thread_info) <last_resume_kind>: New field.
17548 <attached>: Add comment.
17549 <gdb_detached>: New field.
17550 (handler_func): Change return type to int.
17551 (handle_serial_event, handle_target_event): Ditto.
17552 (gdb_connected): Declare.
17554 (disconnected_tracing): Declare.
17555 (stop_tracing): Declare.
17557 * server.c (handle_query) <qSupported>: Report support for
17558 disconnected tracing.
17559 (queue_stop_reply_callback): Account for running threads.
17560 (gdb_wants_thread_stopped): New.
17561 (gdb_wants_all_threads_stopped): New.
17562 (gdb_reattached_process): New.
17563 (handle_status): Clear the `gdb_detached' flag of all processes.
17564 In all-stop, stop all threads.
17565 (main): Be sure to leave tfind mode. Handle disconnected tracing.
17566 (process_serial_event): If the remote connection breaks, or if an
17567 exit was forced with "monitor exit", force an event loop exit.
17568 Handle disconnected tracing on detach.
17569 (handle_serial_event): Adjust.
17570 (handle_target_event): If GDB isn't connected, forward events back
17571 to the inferior, unless the last process exited, in which case,
17572 exit gdbserver. Adjust interface.
17574 * remote-utils.c (remote_open): Don't block in accept. Instead
17575 register an event loop source on the listen socket file
17576 descriptor. Refactor bits into ...
17577 (listen_desc): ... this new global.
17578 (gdb_connected): ... this new function.
17579 (enable_async_notification): ... this new function.
17580 (handle_accept_event): ... this new function.
17581 (remote_close): Clear remote_desc.
17583 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
17585 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
17587 (mourn_inferior): Define.
17588 (target_process_qsupported): Avoid the dangling else problem.
17589 (thread_stopped): Define.
17590 (pause_all): Define.
17591 (target_waitstatus_to_string): Declare.
17592 * target.c (target_waitstatus_to_string): New.
17594 * tracepoint.c (tracing): Make extern.
17595 (disconnected_tracing): New.
17596 (stop_tracing): Make extern. Handle tracing stops due to GDB
17598 (cmd_qtdisconnected): New.
17599 (cmd_qtstatus): Report disconnected tracing status in trace reply.
17600 (handle_tracepoint_general_set): Handle QTDisconnected.
17602 * event-loop.c (event_handler_func): Change return type to int.
17603 (process_event): Bail out if the event handler wants the event
17605 (handle_file_event): Ditto.
17606 (start_event_loop): Bail out if the event handler wants the event
17609 * nto-low.c (nto_target_ops): Adjust.
17610 * spu-low.c (spu_wait): Don't remove the process here.
17611 (spu_target_ops): Adjust.
17612 * win32-low.c (win32_wait): Don't remove the process here.
17613 (win32_target_ops): Adjust.
17615 2010-04-11 Pedro Alves <pedro@codesourcery.com>
17617 * regcache.c (realloc_register_cache): Invalidate inferior's
17618 regcache before recreating it.
17620 2010-04-09 Pedro Alves <pedro@codesourcery.com>
17622 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
17624 2010-04-09 Stan Shebs <stan@codesourcery.com>
17625 Pedro Alves <pedro@codesourcery.com>
17627 * server.h (LONGEST): New.
17628 (struct thread_info) <while_stepping>: New field.
17629 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
17631 (initialize_tracepoint, handle_tracepoint_general_set)
17632 (handle_tracepoint_query, tracepoint_finished_step)
17633 (tracepoint_was_hit, release_while_stepping_state_list):
17634 (current_traceframe): Declare.
17635 * server.c (handle_general_set): Handle tracepoint packets.
17636 (read_memory): New.
17637 (write_memory): New.
17638 (handle_search_memory_1): Use read_memory.
17639 (handle_query): Report support for conditional tracepoints, trace
17640 state variables, and tracepoint sources. Handle tracepoint
17642 (main): Initialize the tracepoints module.
17643 (process_serial_event): Handle traceframe reads/writes.
17645 * linux-low.c (handle_tracepoints): New.
17646 (linux_wait_1): Call it.
17647 (linux_resume_one_lwp): Handle while-stepping.
17648 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
17649 (linux_target_ops): Install them.
17650 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
17652 * linux-x86-low.c (x86_supports_tracepoints): New.
17653 (the_low_target). Install it.
17655 * mem-break.h (delete_breakpoint): Declare.
17656 * mem-break.c (delete_breakpoint): Make external.
17658 * target.h (struct target_ops): Add `supports_tracepoints',
17659 `read_pc', and `write_pc' fields.
17660 (target_supports_tracepoints): Define.
17661 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
17664 * regcache.h (struct regcache) <registers_owned>: New field.
17665 (init_register_cache, regcache_cpy): Declare.
17666 (regcache_read_pc, regcache_write_pc): Declare.
17667 (register_cache_size): Declare.
17668 (supply_regblock): Declare.
17669 * regcache.c (init_register_cache): New.
17670 (new_register_cache): Use it.
17671 (regcache_cpy): New.
17672 (register_cache_size): New.
17673 (supply_regblock): New.
17674 (regcache_read_pc, regcache_write_pc): New.
17676 * tracepoint.c: New.
17678 * Makefile.in (OBS): Add tracepoint.o.
17679 (tracepoint.o): New rule.
17681 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
17683 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
17685 (i386-mmx.c): Likewise.
17686 (i386-mmx-linux.o): Likewise.
17687 (i386-mmx-linux.c): Likewise.
17689 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
17690 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
17691 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
17692 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
17694 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
17695 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
17696 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
17698 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
17700 * Makefile.in (clean): Updated.
17702 (i386-avx.c): Likewise.
17703 (i386-avx-linux.o): Likewise.
17704 (i386-avx-linux.c): Likewise.
17705 (amd64-avx.o): Likewise.
17706 (amd64-avx.c): Likewise.
17707 (amd64-avx-linux.o): Likewise.
17708 (amd64-avx-linux.c): Likewise.
17710 * configure.srv (srv_i386_regobj): Add i386-avx.o.
17711 (srv_i386_linux_regobj): Add i386-avx-linux.o.
17712 (srv_amd64_regobj): Add amd64-avx.o.
17713 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
17714 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
17715 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
17716 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
17717 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
17718 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
17719 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
17721 * i387-fp.c: Include "i386-xstate.h".
17723 (i387_cache_to_xsave): Likewise.
17724 (i387_xsave_to_cache): Likewise.
17725 (x86_xcr0): Likewise.
17727 * i387-fp.h (i387_cache_to_xsave): Likewise.
17728 (i387_xsave_to_cache): Likewise.
17729 (x86_xcr0): Likewise.
17731 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
17732 * linux-crisv32-low.c (target_regsets): Likewise.
17733 * linux-m68k-low.c (target_regsets): Likewise.
17734 * linux-mips-low.c (target_regsets): Likewise.
17735 * linux-ppc-low.c (target_regsets): Likewise.
17736 * linux-s390-low.c (target_regsets): Likewise.
17737 * linux-sh-low.c (target_regsets): Likewise.
17738 * linux-sparc-low.c (target_regsets): Likewise.
17739 * linux-xtensa-low.c (target_regsets): Likewise.
17741 * linux-low.c: Include <sys/uio.h>.
17742 (regsets_fetch_inferior_registers): Support nt_type.
17743 (regsets_store_inferior_registers): Likewise.
17744 (linux_process_qsupported): New.
17745 (linux_target_ops): Add linux_process_qsupported.
17747 * linux-low.h (regset_info): Add nt_type.
17748 (linux_target_ops): Add process_qsupported.
17750 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
17752 (init_registers_i386_avx_linux): New.
17753 (init_registers_amd64_avx_linux): Likewise.
17754 (xmltarget_i386_linux_no_xml): Likewise.
17755 (xmltarget_amd64_linux_no_xml): Likewise.
17756 (PTRACE_GETREGSET): Likewise.
17757 (PTRACE_SETREGSET): Likewise.
17758 (x86_fill_xstateregset): Likewise.
17759 (x86_store_xstateregset): Likewise.
17760 (use_xml): Likewise.
17761 (x86_linux_update_xmltarget): Likewise.
17762 (x86_linux_process_qsupported): Likewise.
17763 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
17764 (x86_arch_setup): Don't call init_registers_amd64_linux nor
17765 init_registers_i386_linux here. Call
17766 x86_linux_update_xmltarget.
17767 (the_low_target): Add x86_linux_process_qsupported.
17769 * server.c (handle_query): Call target_process_qsupported.
17771 * target.h (target_ops): Add process_qsupported.
17772 (target_process_qsupported): New.
17774 2010-04-03 Pedro Alves <pedro@codesourcery.com>
17776 * inferiors.c (add_thread): Set last_status kind to
17777 TARGET_WAITKIND_IGNORE.
17778 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
17779 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
17780 (linux_wait_1): Move `thread' local definition to block that uses
17781 it. Don't NULL initialize `event_child'.
17782 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
17783 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
17784 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
17786 2010-04-01 Pedro Alves <pedro@codesourcery.com>
17788 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
17789 an extended waitstatus, or by a watchpoint.
17790 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
17791 thread was stepping or has been stopped by a watchpoint.
17793 2010-04-01 Pedro Alves <pedro@codesourcery.com>
17795 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
17796 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
17797 of another, then delete the previous, and validate all
17799 (validate_inserted_breakpoint): New.
17800 (delete_disabled_breakpoints): New.
17801 (validate_breakpoints): New.
17802 (check_mem_read): Validate breakpoints before trusting their
17803 shadow. Delete disabled breakpoints.
17804 (check_mem_write): Validate breakpoints before trusting they
17805 should be inserted. Delete disabled breakpoints.
17806 * mem-break.h (validate_breakpoints):
17807 * server.c (handle_query): Validate breakpoints when we see a
17810 2010-04-01 Pedro Alves <pedro@codesourcery.com>
17812 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
17813 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
17814 if we could tell there's a GDB breakpoint at stop_pc.
17815 (need_step_over_p): Don't do a step over if we find a GDB
17816 breakpoint at the resume PC.
17818 * mem-break.c (struct raw_breakpoint): New.
17819 (enum bkpt_type): New type `gdb_breakpoint'.
17820 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
17821 fields. New field `raw'.
17822 (find_raw_breakpoint_at): New.
17823 (set_raw_breakpoint_at): Handle refcounting. Create a raw
17824 breakpoint instead.
17825 (set_breakpoint_at): Adjust.
17826 (delete_raw_breakpoint): New.
17827 (release_breakpoint): New.
17828 (delete_breakpoint): Rename to...
17829 (delete_breakpoint_1): ... this. Add proc parameter. Use
17830 release_breakpoint. Return ENOENT.
17831 (delete_breakpoint): Reimplement.
17832 (find_breakpoint_at): Delete.
17833 (find_gdb_breakpoint_at): New.
17834 (delete_breakpoint_at): Delete.
17835 (set_gdb_breakpoint_at): New.
17836 (delete_gdb_breakpoint_at): New.
17837 (gdb_breakpoint_here): New.
17838 (set_reinsert_breakpoint): Use release_breakpoint.
17839 (uninsert_breakpoint): Rename to ...
17840 (uninsert_raw_breakpoint): ... this.
17841 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
17842 (reinsert_raw_breakpoint): Change parameter type to
17844 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
17846 (check_breakpoints): Adjust. Use release_breakpoint.
17847 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
17848 (breakpoint_inserted_here): Ditto.
17849 (check_mem_read): Adjust to iterate over raw breakpoints instead.
17850 Don't trust the breakpoint's shadow if it is not inserted.
17851 (check_mem_write): Adjust to iterate over raw breakpoints instead.
17852 (delete_all_breakpoints): Adjust.
17853 (free_all_breakpoints): Mark all breakpoints as uninserted, and
17854 use delete_breakpoint_1.
17856 * mem-break.h (breakpoints_supported): Delete declaration.
17857 (set_gdb_breakpoint_at): Declare.
17858 (gdb_breakpoint_here): Declare.
17859 (delete_breakpoint_at): Delete.
17860 (delete_gdb_breakpoint_at): Declare.
17862 * server.h (struct raw_breakpoint): Forward declare.
17863 (struct process_info): New field `raw_breakpoints'.
17865 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
17868 2010-03-24 Pedro Alves <pedro@codesourcery.com>
17870 * linux-low.c (status_pending_p_callback): Fix comment.
17871 (linux_wait_for_event_1): Move most of the internal breakpoint
17872 handling from here...
17873 (linux_wait_1): ... to here.
17874 (count_events_callback): New.
17875 (select_singlestep_lwp_callback): New.
17876 (select_event_lwp_callback): New.
17877 (cancel_breakpoints_callback): New.
17878 (select_event_lwp): New.
17879 (linux_wait_1): Simplify internal breakpoint handling. Give equal
17880 priority to all LWPs that have had events that should be reported
17881 to the client. Cancel breakpoints when about to reporting the
17882 event to the client, not while stopping lwps. No longer cancel
17883 finished single-steps here.
17884 (cancel_finished_single_step): Delete.
17885 (cancel_finished_single_steps): Delete.
17887 2010-03-24 Pedro Alves <pedro@codesourcery.com>
17889 * mem-break.c (enum bkpt_type): New.
17890 (struct breakpoint): New field `type'.
17891 (set_breakpoint_at): Change return type to struct breakpoint
17892 pointer. Set type to `other_breakpoint' by default.
17893 (delete_breakpoint): Rewrite, supporting more than one breakpoint
17894 in the breakpoint list.
17895 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
17896 (reinsert_breakpoint): Rename to ...
17897 (reinsert_raw_breakpoint): ... this.
17898 (reinsert_breakpoints_at): Adjust.
17899 * mem-break.h (struct breakpoint): Declare.
17900 (set_breakpoint_at): Change return type to struct breakpoint
17903 2010-03-24 Pedro Alves <pedro@codesourcery.com>
17905 * server.c (handle_query): Assign, not compare.
17907 2010-03-24 Pedro Alves <pedro@codesourcery.com>
17909 Teach linux gdbserver to step-over-breakpoints.
17911 * linux-low.c (can_hardware_single_step): New.
17912 (supports_breakpoints): New.
17913 (handle_extended_wait): If stopping threads, read the stop pc of
17914 the new cloned LWP.
17916 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
17917 low target doesn't support retrieving the PC.
17918 (add_lwp): Set last_resume_kind to resume_continue.
17919 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
17920 (linux_attach): Don't clear stop_expected. Set the lwp's
17921 last_resume_kind to resume_stop.
17922 (linux_detach_one_lwp): Don't check for removed breakpoints.
17923 (check_removed_breakpoint): Delete.
17924 (status_pending_p): Rename to ...
17925 (status_pending_p_callback): ... this. Don't check for removed
17926 breakpoints. Don't consider threads that are stopped from GDB's
17928 (linux_wait_for_lwp): Always read the stop_pc here.
17929 (cancel_breakpoint): New.
17930 (step_over_bkpt): New global.
17931 (linux_wait_for_event_1): Implement stepping over breakpoints.
17932 (gdb_wants_lwp_stopped): New.
17933 (gdb_wants_all_stopped): New.
17934 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
17935 single-step traps here. Store the thread's last reported target
17937 (send_sigstop): Don't clear stop_expected. Always set it,
17939 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
17940 (cancel_finished_single_step): New.
17941 (cancel_finished_single_steps): New.
17942 (wait_for_sigstop): Don't cancel finished single-step traps here.
17943 (linux_resume_one_lwp): Don't check for removed breakpoints.
17944 Don't set `step' on non-hardware step archs.
17945 (linux_set_resume_request): Ignore resume_stop requests if already
17946 stopping or stopped. Set the lwp's last_resume_kind.
17947 (resume_status_pending_p): Don't check for removed breakpoints.
17948 (need_step_over_p): New.
17949 (start_step_over): New.
17950 (finish_step_over): New.
17951 (linux_resume_one_thread): Always queue a sigstop for resume_stop
17952 requests. Clear the thread's last reported target waitstatus.
17953 Don't use the `suspended' flag. Don't consider pending breakpoints.
17954 (linux_resume): Start a step-over if necessary.
17955 (proceed_one_lwp): New.
17956 (proceed_all_lwps): New.
17957 (unstop_all_lwps): New.
17958 * linux-low.h (struct lwp_info): Rewrite comment for the
17959 `suspended' flag. Add the `stop_pc' field. Delete the
17960 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
17961 Add `'last_resume_kind' and `need_step_over' fields.
17962 * inferiors.c (struct thread_info): Delete, moved elsewhere.
17963 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
17964 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
17965 (set_raw_breakpoint_at): New.
17966 (set_breakpoint_at): Rewrite to use it.
17967 (reinsert_breakpoint_handler): Delete.
17968 (set_reinsert_breakpoint): New.
17969 (reinsert_breakpoint_by_bp): Delete.
17970 (delete_reinsert_breakpoints): New.
17971 (uninsert_breakpoint): Rewrite.
17972 (uninsert_breakpoints_at): New.
17973 (reinsert_breakpoint): Rewrite.
17974 (reinsert_breakpoints_at): New.
17975 (check_breakpoints): Rewrite.
17976 (breakpoint_here): New.
17977 (breakpoint_inserted_here): New.
17978 (check_mem_read): Adjust.
17979 * mem-break.h (breakpoints_supported, breakpoint_here)
17980 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
17981 (reinsert_breakpoint_by_bp): Delete declaration.
17982 (delete_reinsert_breakpoints): Declare.
17983 (reinsert_breakpoint): Delete declaration.
17984 (reinsert_breakpoints_at): Declare.
17985 (uninsert_breakpoint): Delete declaration.
17986 (uninsert_breakpoints_at): Declare.
17987 (check_breakpoints): Adjust prototype.
17988 * server.h: Adjust include order.
17989 (struct thread_info): Declare here. Add a `last_status' field.
17991 2010-03-23 Michael Snyder <msnyder@vmware.com>
17993 * server.c (crc32): New function.
17994 (handle_query): Add handling for 'qCRC:' request.
17996 2010-03-23 Pedro Alves <pedro@codesourcery.com>
17998 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
17999 lwp had been stopped by a watchpoint.
18001 2010-03-16 Pedro Alves <pedro@codesourcery.com>
18003 * server.h (internal_error): Declare.
18004 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
18005 * utils.c (internal_error): New function.
18007 2010-03-15 Andreas Schwab <schwab@redhat.com>
18009 * configure.srv: Fix typo setting srv_regobj.
18011 2010-03-15 Pedro Alves <pedro@codesourcery.com>
18013 * linux-low.c (fetch_register): Avoid passing a non string literal
18015 (usr_store_inferior_registers): Ditto.
18017 2010-03-14 Pedro Alves <pedro@codesourcery.com>
18019 * linux-low.c (linux_write_memory): Bail out early if peeking
18022 2010-03-14 Pedro Alves <pedro@codesourcery.com>
18024 * linux-low.h (struct lwp_info): New fields
18025 `stopped_by_watchpoint' and `stopped_data_address'.
18026 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
18027 here, and cache them in the lwp object.
18028 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
18030 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
18032 (linux_stopped_by_watchpoint): Rewrite.
18033 (linux_stopped_data_address): Rewrite.
18035 2010-03-06 Simo Melenius <simo.melenius@iki.fi>
18037 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
18038 switching the current inferior, not before.
18040 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
18042 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
18043 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
18044 i386-linux.c and amd64-linux.c.
18045 (reg-i386.o): Removed.
18046 (reg-i386.c): Likewise.
18047 (reg-i386-linux.o): Likewise.
18048 (reg-i386-linux.c): Likewise.
18049 (reg-x86-64.o): Likewise.
18050 (reg-x86-64.c): Likewise.
18051 (reg-x86-64-linux.o): Likewise.
18052 (reg-x86-64-linux.c): Likewise.
18054 (i386.c): Likewise.
18055 (i386-linux.o): Likewise.
18056 (i386-linux.c): Likewise.
18057 (amd64.o): Likewise.
18058 (amd64.c): Likewise.
18059 (amd64-linux.o): Likewise.
18060 (amd64-linux.c): Likewise.
18062 * configure.srv (srv_i386_regobj): New.
18063 (srv_i386_linux_regobj): Likewise.
18064 (srv_amd64_regobj): Likewise.
18065 (srv_amd64_linux_regobj): Likewise.
18066 (srv_i386_32bit_xmlfiles): Likewise.
18067 (srv_i386_64bit_xmlfiles): Likewise.
18068 (srv_i386_xmlfiles): Likewise.
18069 (srv_amd64_xmlfiles): Likewise.
18070 (srv_i386_linux_xmlfiles): Likewise.
18071 (srv_amd64_linux_xmlfiles): Likewise.
18072 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
18073 srv_xmlfiles to $srv_i386_xmlfiles.
18074 (i[34567]86-*-mingw32ce*): Likewise.
18075 (i[34567]86-*-mingw*): Likewise.
18076 (i[34567]86-*-nto*): Likewise.
18077 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
18078 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
18079 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
18080 (x86_64-*-linux*): Likewise.
18082 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
18083 (init_registers_amd64_linux): New.
18084 (x86_arch_setup): Replace init_registers_x86_64_linux with
18085 init_registers_amd64_linux.
18087 2010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
18089 * configure.ac: Check for libdl. If it is not available link against
18090 static libthread_db.
18091 * configure: Regenerate.
18093 2010-02-22 Pedro Alves <pedro@codesourcery.com>
18097 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
18098 handing a read watchpoint.
18099 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
18101 2010-02-12 Doug Evans <dje@google.com>
18103 * linux-low.c (linux_supports_tracefork_flag): Document.
18104 (linux_look_up_symbols): Add comment.
18106 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
18108 * regcache.c (supply_register): Clear regcache if buf is NULL.
18110 2010-02-02 Nicolas Roche <roche@sourceware.org>
18111 Joel Brobecker <brobecker@adacore.com>
18113 * inferiors.c (find_inferior): Add function documentation.
18114 (unloaded_dll): Handle the case where the unloaded dll has not
18115 been previously registered in the dll list.
18117 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
18119 * linux-arm-low.c (thumb_breakpoint_len): Delete.
18120 (thumb2_breakpoint): New.
18121 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
18123 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18125 * linux-low.c (get_stop_pc): Check for SIGTRAP.
18126 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
18129 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18131 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
18133 2010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
18135 * linux-s390-low.c (s390_collect_ptrace_register)
18136 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
18138 2010-01-21 Doug Evans <dje@google.com>
18140 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
18141 (PTRACE_ARG4_TYPE): New macro.
18142 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
18143 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
18144 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
18145 (usr_store_inferior_registers): Ditto.
18146 (linux_read_memory, linux_write_memory): Ditto.
18147 (linux_test_for_tracefork): Ditto.
18149 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
18150 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
18152 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18154 * proc-service.c (ps_lgetregs): Don't refetch registers from the
18157 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18159 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
18160 prototype to take a regcache. Adjust.
18162 2010-01-20 Pedro Alves <pedro@codesourcery.com>
18164 * regcache.h (struct thread_info): Forward declare.
18165 (struct regcache): New.
18166 (new_register_cache): Adjust prototype.
18167 (get_thread_regcache): Declare.
18168 (free_register_cache): Adjust prototype.
18169 (registers_to_string, registers_from_string): Ditto.
18170 (supply_register, supply_register_by_name, collect_register)
18171 (collect_register_as_string, collect_register_by_name): Ditto.
18172 * regcache.c (struct inferior_regcache_data): Delete.
18173 (get_regcache): Rename to ...
18174 (get_thread_regcache): ... this. Adjust. Switch inferior before
18175 fetching registers.
18176 (regcache_invalidate_one): Adjust.
18177 (regcache_invalidate): Fix prototype.
18178 (new_register_cache): Return the new register cache.
18179 (free_register_cache): Change prototype.
18180 (realloc_register_cache): Adjust.
18181 (registers_to_string): Change prototype to take a regcache. Adjust.
18182 (registers_from_string): Ditto.
18183 (register_data): Ditto.
18184 (supply_register): Ditto.
18185 (supply_register_by_name): Ditto.
18186 (collect_register): Ditto.
18187 (collect_register_as_string): Ditto.
18188 (collect_register_by_name): Ditto.
18189 * server.c (process_serial_event): Adjust.
18190 * linux-low.h (regset_fill_func, regset_store_func): Change
18192 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
18194 * linux-low.c (get_stop_pc): Adjust.
18195 (check_removed_breakpoint): Adjust.
18196 (linux_wait_for_event): Adjust.
18197 (linux_resume_one_lwp): Adjust.
18198 (fetch_register): Add regcache parameter. Adjust.
18199 (usr_store_inferior_registers): Ditto.
18200 (regsets_fetch_inferior_registers): Ditto.
18201 (regsets_store_inferior_registers): Ditto.
18202 (linux_fetch_registers, linux_store_registers): Ditto.
18203 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
18205 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
18207 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
18208 prototype to take a regcache.
18209 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
18210 * remote-utils.c (convert_ascii_to_int, outreg)
18211 (prepare_resume_reply): Change prototype to take a regcache.
18213 * target.h (struct target_ops) <fetch_registers, store_registers>:
18214 Change prototype to take a regcache.
18215 (fetch_inferior_registers, store_inferior_registers): Change
18216 prototype to take a regcache. Adjust.
18217 * proc-service.c (ps_lgetregs): Adjust.
18218 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
18219 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
18220 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
18221 take a regcache. Adjust.
18222 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
18223 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
18224 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
18225 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
18226 * linux-cris-low.c (cris_get_pc, cris_set_pc)
18227 (cris_cannot_fetch_register):
18228 (cris_breakpoint_at): Change prototype to take a regcache.
18230 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
18231 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
18232 to take a regcache. Adjust.
18233 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
18235 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
18236 take a regcache. Adjust.
18237 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
18238 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
18239 (m68k_set_pc): Change prototype to take a regcache. Adjust.
18240 * linux-mips-low.c (mips_get_pc):
18241 (mips_set_pc): Change prototype to take a regcache. Adjust.
18242 (mips_reinsert_addr): Adjust.
18243 (mips_collect_register): Change prototype to take a regcache.
18245 (mips_supply_register):
18246 (mips_collect_register_32bit, mips_supply_register_32bit)
18247 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
18248 (mips_store_fpregset): Ditto.
18249 * linux-ppc-low.c (ppc_supply_ptrace_register)
18250 (ppc_supply_ptrace_register): Ditto.
18251 (parse_spufs_run): Adjust.
18252 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
18253 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
18254 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
18255 take a regcache. Adjust.
18256 * linux-s390-low.c (s390_collect_ptrace_register)
18257 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
18258 (s390_set_pc): Change prototype to take a regcache. Adjust.
18259 (s390_arch_setup): Adjust.
18260 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
18261 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
18262 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
18263 (sparc_fill_gregset, sparc_store_gregset_from_stack)
18264 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
18266 (sparc_breakpoint_at): Adjust.
18267 * linux-xtensa-low.c (xtensa_fill_gregset):
18268 (xtensa_store_gregset):
18269 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
18270 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
18271 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
18272 prototype to take a regcache. Adjust.
18273 * win32-arm-low.c (arm_fetch_inferior_register)
18274 (arm_store_inferior_register): Change prototype to take a
18276 * win32-i386-low.c (i386_fetch_inferior_register)
18277 (i386_store_inferior_register): Change prototype to take a
18279 * win32-low.c (child_fetch_inferior_registers)
18280 (child_store_inferior_registers): Change prototype to take a
18282 (win32_wait): Adjust.
18283 (win32_fetch_inferior_registers): Change prototype to take a
18285 (win32_store_inferior_registers): Adjust.
18286 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
18287 store_inferior_register>: Change prototype to take a regcache.
18289 2010-01-20 Doug Evans <dje@google.com>
18291 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
18293 (linux_wait_for_event1, linux_init_signals): Ditto.
18294 (W_STOPCODE): Provide definition if missing.
18296 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
18298 * linux-low.c (linux_core_of_thread): New.
18299 (compare_ints, show_process, list_threads): New.
18300 (linux_qxfer_osdata): Report threads and cores.
18301 (linux_target_op): Register linux_core_of_thread.
18302 * remote-utils.c (prepare_resume_reply): Report the core.
18303 (buffer_xml_printf): Support %d specifier.
18304 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
18306 (handle_query): Handle qXfer:threads. Announce availability
18308 * target.h (struct target_ops): New field core_of_thread.
18310 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
18312 * Makefile.in (clean): Remove new generated files.
18313 (reg-s390.o, reg-s390.c): Remove rules.
18314 (reg-s390x.o, reg-s390x.c): Likewise.
18315 (s390-linux32.o, s390-linux32.c): Add rules.
18316 (s390-linux64.o, s390-linux64.c): Likewise.
18317 (s390x-linux64.o, s390x-linux64.c): Likewise.
18318 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
18319 * linux-s390-low.c: Include <elf.h>.
18320 (HWCAP_S390_HIGH_GPRS): Define if undefined.
18321 (init_registers_s390): Remove prototype.
18322 (init_registers_s390x): Likewise.
18323 (init_registers_s390_linux32): Add prototype.
18324 (init_registers_s390_linux64): Likewise.
18325 (init_registers_s390x_linux64): Likewise.
18326 (s390_num_regs_3264): New define.
18327 (s390_regmap_3264): New global variable.
18328 (s390_cannot_fetch_register): Remove obsolete check.
18329 (s390_cannot_store_register): Likewise.
18330 (s390_collect_ptrace_register): Handle upper/lower register halves.
18331 (s390_supply_ptrace_register): Likewise.
18332 (s390_fill_gregset): Update to register number changes.
18333 (s390_get_hwcap): New routine.
18334 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
18335 Install appropriate regmap and register set.
18337 2010-01-01 Joel Brobecker <brobecker@adacore.com>
18339 * server.c (gdbserver_version): Update copyright year to 2010.
18340 * gdbreplay.c (gdbreplay_version): Likewise.
18342 2009-12-28 Doug Evans <dje@google.com>
18344 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
18345 elf/external.h. Include <elf.h> instead but only if necessary.
18347 2009-12-28 Pedro Alves <pedro@codesourcery.com>
18349 * linux-low.c (linux_remove_process): Remove `detaching'
18350 parameter. Don't release/detach from thread_db here.
18351 (linux_kill): Release/detach from thread_db here, ...
18352 (linux_detach): ... and here, before actually detaching.
18353 (linux_wait_1): ... and here, when a process exits.
18354 * thread-db.c (any_thread_of): New.
18355 (thread_db_free): Switch the current inferior to a thread of the
18358 2009-12-21 Doug Evans <dje@google.com>
18360 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
18362 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
18363 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
18364 warning ifndef __NR_tkill. Move setting of errno there too.
18365 Delete unnecessary resetting of errno after syscall.
18366 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
18368 * configure.ac: Check for dladdr.
18369 * config.in: Regenerate.
18370 * configure: Regenerate.
18371 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
18372 (try_thread_db_load): Update.
18374 * linux-low.c (my_waitpid): Delete unnecessary prototype.
18376 2009-12-18 Doug Evans <dje@google.com>
18378 * event-loop.c: Include unistd.h if it exists.
18380 * linux-low.c (my_waitpid): Move definition away from being in
18381 between linux_tracefork_child/linux_test_for_tracefork.
18383 * gdb_proc_service.h (psaddr_t): Fix type.
18384 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
18385 signature to match glibc.
18387 2009-12-16 Doug Evans <dje@google.com>
18389 * linux-low.c (linux_read_memory): Fix argument to read.
18391 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18393 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
18394 events, don't leave current_inferior pointing at null.
18396 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18398 * win32-low.c (LOG): Delete.
18399 (OUTMSG): Output to stderr.
18400 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
18401 on compile time LOG macro.
18402 (win32_wait): Fix debug output.
18404 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18406 * win32-low.c (win32_add_one_solib): If the dll name is
18407 "ntdll.dll", prepend the system directory to the dll path.
18409 2009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
18411 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
18413 2009-11-17 Nathan Sidwell <nathan@codesourcery.com>
18414 Vladimir Prus <vladimir@codesourcery.com>
18416 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
18417 * configure.ac: Check for __mcoldfire__ and set
18418 gdb_cv_m68k_is_coldfire.
18419 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
18420 reg-cf.o and reg-m68k.o.
18421 * configure: Regenerated.
18423 2009-11-16 Pedro Alves <pedro@codesourcery.com>
18425 * linux-low.c (linux_remove_process): Add `detaching' parameter.
18426 Pass it to thread_db_free.
18427 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
18428 proper `detaching' argument to linux_remove_process.
18429 * linux-low.h (thread_db_free): Add `detaching' parameter.
18430 * thread-db.c (thread_db_init): Pass false as `detaching' argument
18432 (thread_db_free): Add `detaching' parameter. Only
18433 call td_ta_clear_event if detaching from process.
18435 2009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
18437 * thread-db.c (thread_db_free): Fix typo.
18439 2009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
18442 * thread-db.c (thread_db_free): Call td_ta_clear_event.
18444 2009-11-03 Nathan Sidwell <nathan@codesourcery.com>
18446 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
18447 with an i686 compiler.
18448 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
18450 * configure: Rebuilt.
18452 2009-10-29 Sandra Loosemore <sandra@codesourcery.com>
18456 * server.c (handle_search_memory_1): Correct read_addr initialization
18457 in loop for searching subsequent chunks.
18459 2009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
18461 * configure.ac: New --with-libthread-db option.
18462 * thread-db.c: Allow direct dependence on libthread_db.
18463 (thread_db_free): Adjust.
18464 * config.in: Regenerate.
18465 * configure: Likewise.
18467 2009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
18470 * thread-db.c (attach_thread): New function.
18471 (maybe_attach_thread): Return success/failure.
18472 (find_new_threads_callback): Adjust.
18473 (thread_db_find_new_threads): Loop until no new threads.
18475 2009-10-13 Pedro Alves <pedro@codesourcery.com>
18477 * proc-service.c (ps_lgetregs): Formatting.
18479 2009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
18481 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
18482 * configure.ac: Adjust.
18483 * linux-low.h (struct process_info_private): Move members to struct
18485 (thread_db_free, thread_db_handle_monitor_command): New prototype.
18486 * linux-low.c (linux_remove_process): Adjust.
18487 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
18488 * server.c (handle_query): Move code ...
18489 (handle_monitor_command): ... here. New function.
18490 * target.h (struct target_ops): New member.
18491 * thread-db.c (struct thread_db): New.
18492 (libthread_db_search_path): New variable.
18493 (thread_db_create_event, thread_db_enable_reporting)
18494 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
18495 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
18496 (try_thread_db_load_1, dladdr_to_soname): New functions.
18497 (try_thread_db_load, thread_db_load_search): New functions.
18498 (thread_db_init): Search for libthread_db.
18499 (thread_db_free): New function.
18500 (thread_db_handle_monitor_command): Likewise.
18501 * config.in: Regenerate.
18502 * configure: Regenerate.
18504 2009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
18506 * spu-low.c (spu_kill): Wait for inferior to terminate.
18507 Call clear_inferiors.
18508 (spu_detach): Call clear_inferiors.
18510 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18512 * aclocal.m4: Regenerate.
18513 * config.in: Likewise.
18514 * configure: Likewise.
18516 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18518 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
18519 (parse_spufs_run): New function.
18520 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
18521 (ppc_breakpoint_at): Handle SPU breakpoints.
18523 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18525 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
18526 (SPUFS_MAGIC): Define.
18527 (spu_enumerate_spu_ids): New function.
18528 (linux_qxfer_spu): New function.
18529 (linux_target_ops): Install linux_qxfer_spu.
18531 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18533 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
18534 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
18535 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
18536 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
18537 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
18538 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
18539 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
18540 (init_registers_powerpc_cell32l): Add prototype.
18541 (init_registers_powerpc_cell64l): Likewise.
18542 (ppc_arch_setup): Detect Cell/B.E. architecture.
18544 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18546 * Makefile.in (datarootdir): New variable.
18548 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18550 * linux-low.c (linux_write_memory): Update debugging output.
18551 * Makefile.in (clean): Add new descriptions.
18552 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
18553 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
18554 * configure.srv: Add new files for arm*-*-linux*.
18555 * linux-arm-low.c: Add new declarations.
18556 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
18557 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
18558 (HWCAP_VFPv3D16): New.
18559 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
18560 instead of __IWMMXT__.
18561 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
18562 (arm_arch_setup): New.
18563 (target_regsets): Remove #ifdef. Add VFP regset.
18564 (the_low_target): Use arm_arch_setup.
18566 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18568 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
18569 the main thread again.
18571 2009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
18573 Adding Neutrino gdbserver.
18574 * configure: Regenerated.
18575 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
18576 * configure.srv (i[34567]86-*-nto*): New target.
18577 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
18578 * remote-utils.c [__QNX__]: Include sys/iomgr.h
18579 (nto_comctrl) [__QNX__]: New function.
18580 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
18582 2009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
18584 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
18587 2009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
18588 Pedro Alves <pedro@codesourcery.com>
18590 * win32-i386-low.c (i386_get_thread_context): Handle systems that
18591 don't support CONTEXT_EXTENDED_REGISTERS.
18592 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
18593 (the_low_target): Install them.
18594 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
18595 failing with ERROR_PIPE_NOT_CONNECTED.
18597 2009-06-30 Doug Evans <dje@google.com>
18598 Pierre Muller <muller@ics.u-strasbg.fr>
18600 Add h/w watchpoint support to x86-linux, win32-i386.
18601 * Makefile.in (SFILES): Add i386-low.c
18602 (i386_low_h): Define.
18603 (i386-low.o): Add dependencies.
18604 (linux-x86-low.o): Add i386-low.h dependency.
18605 (win32-i386-low.o): Ditto.
18606 * i386-low.c: New file.
18607 * i386-low.h: New file.
18608 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
18609 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
18610 * linux-low.c (linux_add_process): Initialize arch_private.
18611 (linux_remove_process): Free arch_private.
18612 (add_lwp): Initialize arch_private.
18613 (delete_lwp): Free arch_private.
18614 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
18616 * linux-low.h (process_info_private): New member arch_private.
18617 (lwp_info): New member arch_private.
18618 (linux_target_ops): New members new_process, new_thread,
18620 (ptid_of): New macro.
18621 * linux-x86-low.c: Include stddef.h, i386-low.h.
18622 (arch_process_info): New struct.
18623 (arch_lwp_info): New struct.
18624 (x86_linux_dr_get, x86_linux_dr_set): New functions.
18625 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18626 (i386_dr_low_get_status): New function.
18627 (x86_insert_point, x86_remove_point): New functions.
18628 (x86_stopped_by_watchpoint): New function.
18629 (x86_stopped_data_address): New function.
18630 (x86_linux_new_process, x86_linux_new_thread): New functions.
18631 (x86_linux_prepare_to_resume): New function.
18632 (the_low_target): Add entries for insert_point, remove_point,
18633 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
18635 * server.c (debug_hw_points): New global.
18636 (monitor_show_help): Document set debug-hw-points.
18637 (handle_query): Process "set debug-hw-points".
18638 * server.h (debug_hw_points): Declare.
18639 (paddress): Declare.
18640 * utils.c (NUMCELLS, CELLSIZE): New macros.
18641 (get_sell, xsnprintf, paddress): New functions.
18642 * win32-arm-low.c (the_low_target): Add entries for insert_point,
18643 remove_point, stopped_by_watchpoint, stopped_data_address.
18644 * win32-i386-low.c: Include i386-low.h.
18645 (debug_reg_state): Replaces dr.
18646 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18647 (i386_dr_low_get_status): New function.
18648 (i386_insert_point, i386_remove_point): New functions.
18649 (i386_stopped_by_watchpoint): New function.
18650 (i386_stopped_data_address): New function.
18651 (i386_initial_stuff): Update.
18652 (get_thread_context,set_thread_context,i386_thread_added): Update.
18653 (the_low_target): Add entries for insert_point,
18654 remove_point, stopped_by_watchpoint, stopped_data_address.
18655 * win32-low.c (win32_insert_watchpoint): New function.
18656 (win32_remove_watchpoint): New function.
18657 (win32_stopped_by_watchpoint): New function.
18658 (win32_stopped_data_address): New function.
18659 (win32_target_ops): Add entries for insert_watchpoint,
18660 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
18661 * win32-low.h (win32_target_ops): New members insert_point,
18662 remove_point, stopped_by_watchpoint, stopped_data_address.
18664 2009-06-25 Pedro Alves <pedro@codesourcery.com>
18666 * server.c (process_serial_event): Re-return unsupported, not
18667 error, if the type isn't recognized. Re-allow supporting only
18668 insert or remove packets. Also call require_running for
18669 breakpoints. Add missing break statement to default case. Tidy.
18670 * target.h (struct target_ops): Rename insert_watchpoint to
18671 insert_point, and remove_watchpoint to remove_point.
18673 * linux-low.h (struct linux_target_ops): Likewise.
18674 * linux-low.c (linux_insert_watchpoint): Rename to ...
18675 (linux_insert_point): ... this. Adjust.
18676 (linux_remove_watchpoint): Rename to ...
18677 (linux_remove_point): ... this. Adjust.
18678 (linux_target_ops): Adjust.
18679 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
18680 (cris_insert_point): ... this.
18681 (cris_remove_watchpoint): Rename to ...
18682 (cris_remove_point): ... this.
18683 (the_low_target): Adjust.
18685 2009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
18687 * server.c (handle_v_kill): Pass signal_pid to
18688 kill_inferior if multi_process is zero.
18690 2009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
18692 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
18693 * target.h (target_ops): Comment for *_watchpoint to make it clear
18694 the functions can get types '0' and '1'.
18696 2009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
18698 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
18699 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
18700 * regcache.c (get_regcache): Likewise.
18701 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
18702 * win32-low.c (child_fetch_inferior_registers): Remove check for
18705 2009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
18706 Pedro Alves <pedro@codesourcery.com>
18708 * target.h (struct target_ops) <supports_multi_process>: New
18710 (target_supports_multi_process): New.
18711 * server.c (handle_query): Even if GDB reports support, only
18712 enable multi-process if the target also supports it. Report
18713 multi-process support only if the target backend supports it.
18714 * linux-low.c (linux_supports_multi_process): New function.
18715 (linux_target_ops): Install it as target_supports_multi_process
18718 2009-05-24 Doug Evans <dje@google.com>
18720 Global renaming of find_thread_pid to find_thread_ptid.
18721 * server.h (find_thread_ptid): Renamed from find_thread_pid.
18722 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
18723 All callers updated.
18725 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
18726 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
18729 * linux-low.c (get_stop_pc): Print pc if debug_threads.
18730 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
18731 (linux_resume_one_lwp): Ditto.
18733 2009-05-23 Doug Evans <dje@google.com>
18735 * linux-low.c (linux_resume_one_lwp): Change type of first arg
18736 from struct inferior_list_entry * to struct lwp_info *.
18737 All callers updated.
18739 2009-05-13 Doug Evans <dje@google.com>
18741 * linux-x86-low.c: Don't include assert.h.
18742 (x86_siginfo_fixup): Use fatal, not assert.
18743 (x86_arch_setup): Fix comment.
18745 2009-05-12 Doug Evans <dje@google.com>
18747 Biarch support for i386/amd64 gdbserver.
18748 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
18749 Add linux-x86-low.c.
18750 (linux-i386-low.o, linux-x86-64-low.o): Delete.
18751 (linux-x86-low.o): Add.
18752 * linux-x86-64-low.c: Delete.
18753 * linux-i386-low.c: Delete.
18754 * linux-x86-low.c: New file.
18755 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
18757 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
18759 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
18760 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
18761 (linux_child_pid_to_exec_file): New function.
18762 (elf_64_header_p, elf_64_file_p): New functions.
18763 (siginfo_fixup): New function.
18764 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
18765 give target a chance to convert layout.
18766 * linux-low.h (linux_target_ops): New member siginfo_fixup.
18767 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
18769 2009-05-07 Doug Evans <dje@google.com>
18771 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
18772 (regsets_store_inferior_registers): Ditto.
18774 2009-05-06 Pedro Alves <pedro@codesourcery.com>
18778 * linux-low.c (must_set_ptrace_flags): Delete.
18779 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
18781 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
18782 `lwp->must_set_ptrace_flags' instead.
18783 (linux_wait_for_event_1): Set ptrace options here.
18784 (linux_wait_1): ... not here.
18786 2009-04-30 Doug Evans <dje@google.com>
18788 * inferiors.c (started_inferior_callback): New function.
18789 (attached_inferior_callback): New function.
18790 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
18791 * server.c (print_started_pid, print_attached_pid): New functions.
18792 (detach_or_kill_for_exit): New function.
18793 (main): Call it instead of for_each_inferior (kill_inferior_callback).
18794 * server.h (have_started_inferiors_p): Declare.
18795 (have_attached_inferiors_p): Declare.
18797 * inferiors.c (remove_process): Fix memory leak, free process.
18798 * linux-low.c (linux_remove_process): New function.
18799 (linux_kill): Call it instead of remove_process.
18800 (linux_detach, linux_wait_1): Ditto.
18802 2009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
18804 * configure.srv: Add x86 Windows CE target.
18806 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
18808 * inferiors.c (get_thread_process): Make global.
18809 * server.h (get_thread_process): Add prototype.
18810 * thread-db.c (find_one_thread): Use get_thread_process
18811 instead of current_process.
18812 (thread_db_get_tls_address): Do not crash if called when
18813 thread layer is not yet initialized.
18815 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
18817 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
18818 * spu-low.c (current_tid): Rename to ...
18819 (current_ptid): ... this.
18820 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
18821 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
18822 ptid_get_lwp (current_ptid) instead of current_tid.
18823 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
18824 instead of current_tid. Use find_process_pid to verify pid
18825 argument is valid. Pass proper argument to remove_process.
18826 (spu_thread_alive): Compare current_ptid instead of current_tid.
18827 (spu_resume): Likewise.
18829 2009-04-02 Pedro Alves <pedro@codesourcery.com>
18831 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
18834 2009-04-01 Pedro Alves <pedro@codesourcery.com>
18836 Implement the multiprocess extensions, and add linux multiprocess
18839 * server.h (ULONGEST): Declare.
18840 (struct ptid, ptid_t): New.
18841 (minus_one_ptid, null_ptid): Declare.
18842 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
18843 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
18844 (struct inferior_list_entry): Change `id' type from unsigned from
18846 (struct sym_cache, struct breakpoint, struct
18847 process_info_private): Forward declare.
18848 (struct process_info): Declare.
18849 (current_process): Declare.
18850 (all_processes): Declare.
18851 (initialize_inferiors): Declare.
18852 (add_thread): Adjust to use ptid_t.
18853 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
18854 (add_process, remove_process, find_thread_pid): Declare.
18855 (find_inferior_id): Adjust to use ptid_t.
18856 (cont_thread, general_thread, step_thread): Change type to ptid_t.
18857 (multi_process): Declare.
18858 (push_event): Adjust to use ptid_t.
18859 (read_ptid, write_ptid): Declare.
18860 (prepare_resume_reply): Adjust to use ptid_t.
18861 (clear_symbol_cache): Declare.
18862 * inferiors.c (all_processes): New.
18863 (null_ptid, minus_one_ptid): New.
18864 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
18865 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
18866 (add_thread): Change unsigned long to ptid. Remove gdb_id
18868 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
18869 (gdb_id_to_thread): Rename to ...
18870 (find_thread_pid): ... this. Change unsigned long to ptid.
18871 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
18872 (loaded_dll, pull_pid_from_list): Adjust.
18873 (add_process, remove_process, find_process_pid)
18874 (get_thread_process, current_process, initialize_inferiors): New.
18875 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
18876 (struct target_waitstatus) <related_pid>: Ditto.
18877 (struct target_ops) <kill, detach>: Add `pid' argument. Change
18878 return type to int.
18879 (struct target_ops) <join>: Add `pid' argument.
18880 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
18881 (struct target_ops) <wait>: Add `ptid' field. Change return type
18883 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
18884 (mywait): Add `ptid' argument. Change return type to ptid_t.
18885 (target_pid_to_str): Declare.
18886 * target.c (set_desired_inferior): Adjust to use ptids.
18887 (mywait): Add new `ptid' argument. Adjust.
18888 (target_pid_to_str): New.
18889 * mem-break.h (free_all_breakpoints): Declare.
18890 * mem-break.c (breakpoints): Delelete.
18891 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
18892 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
18893 to use per-process breakpoint list.
18894 (free_all_breakpoints): New.
18895 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
18896 (symbol_cache, all_symbols_looked_up): Delete.
18898 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
18900 (prepare_resume_reply): Change ptid argument's type from unsigned
18901 long to ptid_t. Adjust. Implement W;process and X;process.
18902 (free_sym_cache, clear_symbol_cache): New.
18903 (look_up_one_symbol): Adjust to per-process symbol cache. *
18904 * server.c (cont_thread, general_thread, step_thread): Change type
18906 (attached): Delete.
18907 (multi_process): New.
18908 (last_ptid): Change type to ptid_t.
18909 (struct vstop_notif) <ptid>: Change type to ptid_t.
18910 (queue_stop_reply, push_event): Change `ptid' argument's type to
18912 (discard_queued_stop_replies): Add `pid' argument.
18913 (start_inferior): Adjust to use ptids. Adjust to mywait interface
18914 changes. Don't reference the `attached' global.
18915 (attach_inferior): Adjust to mywait interface changes.
18916 (handle_query): Adjust to use ptids. Parse GDB's qSupported
18917 features. Handle and report "multiprocess+". Handle
18919 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
18921 (handle_v_kill): New.
18922 (handle_v_stopped): Adjust to use target_pid_to_str.
18923 (handle_v_requests): Allow multiple attaches and runs when
18924 multiprocess extensions are in effect. Handle "vKill".
18925 (myresume): Adjust to use ptids.
18926 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
18927 (handle_status): Adjust to discard_queued_stop_replies interface
18929 (first_thread_of, kill_inferior_callback)
18930 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
18931 (main): Call initialize_inferiors. Adjust to use ptids, killing
18932 and detaching from all inferiors. Handle multiprocess packet
18934 * linux-low.h: Include gdb_proc_service.h.
18935 (struct process_info_private): New.
18936 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
18937 <lwpid_of>: Use ptid_get_lwp.
18938 (get_lwp_thread): Adjust.
18939 (struct lwp_info): Add `dead' member.
18940 (find_lwp_pid): Declare.
18941 * linux-low.c (thread_db_active): Delete.
18942 (new_inferior): Adjust comment.
18943 (inferior_pid): Delete.
18944 (linux_add_process): New.
18945 (handle_extended_wait): Adjust.
18946 (add_lwp): Change unsigned long to ptid.
18947 (linux_create_inferior): Add process to processes table. Adjust
18948 to use ptids. Don't set new_inferior here.
18949 (linux_attach_lwp): Rename to ...
18950 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
18951 it. Adjust to use ptids.
18952 (linux_attach_lwp): New.
18953 (linux_attach): Add process to processes table. Don't set
18955 (struct counter): New.
18956 (second_thread_of_pid_p, last_thread_of_process_p): New.
18957 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
18958 multiple processes.
18959 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
18960 processes. Remove process from process table.
18961 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
18962 to multiple processes.
18963 (any_thread_of): New.
18964 (linux_detach): Add `pid' argument, and handle it. Remove process
18965 from processes table.
18966 (linux_join): Add `pid' argument. Handle it.
18967 (linux_thread_alive): Change unsighed long argument to ptid_t.
18968 Consider dead lwps as not being alive.
18969 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
18970 threads we're not interested in.
18971 (same_lwp, find_lwp_pid): New.
18972 (linux_wait_for_lwp): Change `pid' argument's type from int to
18974 (linux_wait_for_event): Rename to ...
18975 (linux_wait_for_event_1): ... this. Change `pid' argument's type
18976 from int to ptid_t. Adjust.
18977 (linux_wait_for_event): New.
18978 (linux_wait_1): Add `ptid' argument. Change return type to
18979 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
18980 that exit from the process table.
18981 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
18983 (mark_lwp_dead): New.
18984 (wait_for_sigstop): Adjust to use ptids. If a process exits while
18985 stopping all threads, mark its main lwp as dead.
18986 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
18988 (fetch_register, usr_store_inferior_registers)
18989 (regsets_fetch_inferior_registers)
18990 (regsets_store_inferior_registers, linux_read_memory)
18991 (linux_write_memory): Inline `inferior_pid'.
18992 (linux_look_up_symbols): Adjust to use per-process
18993 `thread_db_active'.
18994 (linux_request_interrupt): Adjust to use ptids.
18995 (linux_read_auxv): Inline `inferior_pid'.
18996 (initialize_low): Don't reference thread_db_active.
18997 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
18998 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
18999 (ps_getpid): Return the pid of the current inferior.
19000 * thread-db.c (proc_handle, thread_agent): Delete.
19001 (thread_db_create_event, thread_db_enable_reporting): Adjust to
19003 (find_one_thread): Change argument type to ptid_t. Adjust to
19005 (maybe_attach_thread): Adjust to per-process data and ptids.
19006 (thread_db_find_new_threads): Ditto.
19007 (thread_db_init): Ditto.
19008 * spu-low.c (spu_create_inferior, spu_attach): Add process to
19009 processes table. Adjust to use ptids.
19010 (spu_kill, spu_detach): Adjust interface. Remove process from
19012 (spu_join, spu_thread_alive): Adjust interface.
19013 (spu_wait): Adjust interface. Remove process from processes
19014 table. Adjust to use ptids.
19015 * win32-low.c (current_inferior_tid): Delete.
19016 (current_inferior_ptid): New.
19017 (debug_event_ptid): New.
19018 (thread_rec): Take a ptid. Adjust.
19019 (child_add_thread): Add `pid' argument. Adjust to use ptids.
19020 (child_delete_thread): Ditto.
19021 (do_initial_child_stuff): Add `attached' argument. Add process to
19023 (child_fetch_inferior_registers, child_store_inferior_registers):
19025 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
19026 (win32_attach): Pass 1 to do_initial_child_stuff.
19027 (win32_kill): Adjust interface. Remove process from processes
19029 (win32_detach): Ditto.
19030 (win32_join): Adjust interface.
19031 (win32_thread_alive): Take a ptid.
19032 (win32_resume): Adjust to use ptids.
19033 (get_child_debug_event): Ditto.
19034 (win32_wait): Adjust interface. Remove exiting process from
19037 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19039 Non-stop mode support.
19041 * server.h (non_stop): Declare.
19042 (gdb_client_data, handler_func): Declare.
19043 (delete_file_handler, add_file_handler, start_event_loop):
19045 (handle_serial_event, handle_target_event, push_event)
19046 (putpkt_notif): Declare.
19047 * target.h (enum resume_kind): New.
19048 (struct thread_resume): Replace `step' field by `kind' field.
19049 (TARGET_WNOHANG): Define.
19050 (struct target_ops) <wait>: Add `options' argument.
19051 <supports_non_stop, async, start_non_stop>: New fields.
19052 (target_supports_non_stop, target_async): New.
19053 (start_non_stop): Declare.
19054 (mywait): Add `options' argument.
19055 * target.c (mywait): Add `options' argument. Print child exit
19056 notifications here.
19057 (start_non_stop): New.
19058 * server.c (non_stop, own_buf, mem_buf): New globals.
19059 (struct vstop_notif): New.
19060 (notif_queue): New global.
19061 (queue_stop_reply, push_event, discard_queued_stop_replies)
19062 (send_next_stop_reply): New.
19063 (start_inferior): Adjust to use resume_kind. Adjust to mywait
19065 (attach_inferior): In non-stop mode, don't wait for the target
19067 (handle_general_set): Handle QNonStop.
19068 (handle_query): When handling qC, return the current general
19069 thread, instead of the first thread of the list.
19070 (handle_query): If the backend supports non-stop mode, include
19071 QNonStop+ in the qSupported query response.
19072 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
19074 (handle_v_attach, handle_v_run): Handle non-stop mode.
19075 (handle_v_stopped): New.
19076 (handle_v_requests): Report support for vCont;t. Handle vStopped.
19077 (myresume): Adjust to use resume_kind. Handle non-stop.
19078 (queue_stop_reply_callback): New.
19079 (handle_status): Handle non-stop mode.
19080 (main): Clear non_stop flag on reconnection. Use the event-loop.
19081 Refactor serial protocol handling from here ...
19082 (process_serial_event): ... to this new function. When GDB
19083 selects any thread, select one here. In non-stop mode, wait until
19084 GDB acks all pending events before exiting.
19085 (handle_serial_event, handle_target_event): New.
19086 * remote-utils.c (remote_open): Install remote_desc in the event
19088 (remote_close): Remove remote_desc from the event loop.
19089 (putpkt_binary): Rename to...
19090 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
19091 (putpkt_binary): New as wrapper around putpkt_binary_1.
19092 (putpkt_notif): New.
19093 (prepare_resume_reply): In non-stop mode, don't change the
19095 * event-loop.c: New.
19096 * Makefile.in (OBJ): Add event-loop.o.
19097 (event-loop.o): New rule.
19099 * linux-low.h (pid_of): Moved here.
19101 (get_lwp_thread): Use lwpid_of.
19102 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
19103 * linux-low.c (pid_of): Delete.
19104 (inferior_pid): Use lwpid_of.
19105 (linux_event_pipe): New.
19106 (target_is_async_p): New.
19108 (handle_extended_wait): Use lwpid_of.
19109 (add_lwp): Don't set lwpid field.
19110 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
19111 (linux_kill_one_lwp): If killing a running lwp, stop it first.
19112 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
19113 (linux_detach_one_lwp): If detaching from a running lwp, stop it
19114 first. Adjust to linux_wait_for_event interface changes. Use
19116 (linux_detach): Don't delete the main lwp here.
19117 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
19118 (status_pending_p): Don't consider explicitly suspended lwps.
19119 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
19120 pointer. Add OPTIONS argument. Change return type to int. Use
19121 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
19122 (linux_wait_for_event): Take an integer pid instead of a lwp_info
19123 pointer. Add status pointer argument. Return a pid instead of a
19124 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
19125 changes. In non-stop mode, don't switch to a random thread.
19126 (linux_wait): Rename to...
19127 (linux_wait_1): ... this. Add target_options argument, and handle
19128 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
19129 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
19130 clean exit and signal exit code. Don't stop all threads in
19131 non-stop mode. In all-stop mode, only stop all threads when
19132 reporting a stop to GDB. Handle explicit thread stop requests.
19133 (async_file_flush, async_file_mark): New.
19135 (send_sigstop): Use lwpid_of.
19136 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
19137 interface changes. In non-stop mode, don't switch to a random
19139 (linux_resume_one_lwp): Use lwpid_of.
19140 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
19141 (linux_resume_one_thread): ... this. Handle resume_stop. In
19142 non-stop mode, don't look for pending flag in all threads.
19143 (resume_status_pending_p): Don't consider explicitly suspended
19145 (my_waitpid): Reimplement. Emulate __WALL.
19146 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19148 (sigchld_handler, linux_supports_non_stop, linux_async)
19149 (linux_start_non_stop): New.
19150 (linux_target_ops): Register linux_supports_non_stop, linux_async
19151 and linux_start_non_stop.
19152 (initialize_low): Install SIGCHLD handler.
19153 * thread-db.c (thread_db_create_event, find_one_thread)
19154 (thread_db_get_tls_address): Use lwpid_of.
19155 * win32-low.c (win32_detach): Adjust to use resume_kind.
19156 (win32_wait): Add `options' argument.
19157 * spu-low.c (spu_resume): Adjust to use resume_kind.
19158 (spu_wait): Add `options' argument.
19160 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19162 Decouple target code from remote protocol.
19164 * target.h (enum target_waitkind): New.
19165 (struct target_waitstatus): New.
19166 (struct target_ops) <wait>: Return an unsigned long. Take a
19167 target_waitstatus pointer instead of a char pointer.
19168 (mywait): Likewise.
19169 * target.c (mywait): Change prototype to return an unsigned long.
19170 Take a target_waitstatus pointer instead of a char pointer. Adjust.
19171 * server.h (thread_from_wait, old_thread_from_wait): Delete
19173 (prepare_resume_reply): Change prototype to take a
19175 * server.c (thread_from_wait, old_thread_from_wait): Delete.
19176 (last_status, last_ptid): New.
19177 (start_inferior): Remove "statusptr" argument. Adjust. Return a
19178 pid instead of a signal.
19179 (attach_inferior): Remove "status" and "signal" parameters.
19181 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
19183 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
19184 (handle_v_requests, myresume): Remove "status" and "signal"
19185 parameters. Adjust.
19186 (handle_status): New.
19187 (main): Delete local `status'. Adjust.
19188 * remote-utils.c: Include target.h.
19189 (prepare_resume_reply): Change prototype to take a
19190 target_waitstatus. Adjust.
19192 * linux-low.c (linux_wait): Adjust to new target_ops->wait
19194 * spu-low.c (spu_wait): Adjust.
19195 * win32-low.c (enum target_waitkind, struct target_waitstatus):
19197 (win32_wait): Adjust.
19199 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19201 * target.h (struct thread_resume): Delete leave_stopped member.
19202 (struct target_ops): Add a `n' argument to the `resume' callback.
19203 * server.c (start_inferior): Adjust.
19204 (handle_v_cont, myresume): Adjust.
19205 * linux-low.c (check_removed_breakpoint): Adjust to resume
19206 interface change, and to removed leave_stopped field.
19207 (resume_ptr): Delete.
19208 (struct thread_resume_array): New.
19209 (linux_set_resume_request): Add new `arg' parameter. Adjust to
19210 resume interface change.
19211 (linux_continue_one_thread, linux_queue_one_thread)
19212 (resume_status_pending_p): Check if the resume field is NULL
19213 instead of checking the leave_stopped member.
19214 (linux_resume): Adjust to the target resume interface change.
19215 * spu-low.c (spu_resume): Adjust to the target resume interface
19217 * win32-low.c (win32_detach, win32_resume): Ditto.
19219 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19221 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
19223 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
19225 (linux_continue_one_thread): Only preserve the stepping flag if
19226 there's a pending breakpoint.
19228 2009-03-31 Pedro Alves <pedro@codesourcery.com>
19230 * server.c (main): After the inferior having exited, call
19231 remote_close before exiting gdbserver.
19233 2009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
19235 Fix size of FPSCR in Power 7 processors.
19236 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
19237 (PPC_FEATURE_HAS_DFP): New #define.
19238 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
19241 2009-03-23 Pedro Alves <pedro@codesourcery.com>
19243 * server.c (handle_query) Whitespace and formatting.
19245 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19247 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
19248 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
19249 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
19250 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
19251 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
19252 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
19253 Makefile.in, configure.ac: Fix whitespace throughout.
19254 * configure: Regenerate.
19256 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19258 * inferiors.c (find_inferior): Make it safe for the callback
19259 function to delete the currently iterated inferior.
19261 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19263 * Makefile.in (linuw_low_h): Move higher.
19264 (thread-db.o): Depend on $(linux_low_h).
19266 2009-03-17 Pedro Alves <pedro@codesourcery.com>
19268 Rename "process" to "lwp" throughout.
19270 * linux-low.c (all_processes): Rename to...
19271 (all_lwps): ... this.
19272 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
19273 (add_process): Rename to ...
19274 (add_lwp): ... this. Adjust.
19275 (linux_create_inferior): Adjust.
19276 (linux_attach_lwp): Adjust.
19277 (linux_attach): Adjust.
19278 (linux_kill_one_process): Rename to ...
19279 (linux_kill_one_lwp): ... this. Adjust.
19280 (linux_kill): Adjust.
19281 (linux_detach_one_process): Rename to ...
19282 (linux_detach_one_lwp): ... this. Adjust.
19283 (linux_detach): Adjust.
19284 (check_removed_breakpoint): Adjust.
19285 (status_pending_p): Adjust.
19286 (linux_wait_for_process): Rename to ...
19287 (linux_wait_for_lwp): ... this. Adjust.
19288 (linux_wait_for_event): Adjust.
19289 (send_sigstop): Adjust.
19290 (wait_for_sigstop): Adjust.
19291 (stop_all_processes): Rename to ...
19292 (stop_all_lwps): ... this.
19293 (linux_resume_one_process): Rename to ...
19294 (linux_resume_one_lwp): ... this. Adjust.
19295 (linux_set_resume_request, linux_continue_one_thread)
19296 (linux_queue_one_thread, resume_status_pending_p)
19297 (usr_store_inferior_registers, regsets_store_inferior_registers)
19298 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19300 * linux-low.h (get_process): Rename to ...
19301 (get_lwp): ... this. Adjust.
19302 (get_thread_process): Rename to ...
19303 (get_thread_lwp): ... this. Adjust.
19304 (get_process_thread): Rename to ...
19305 (get_lwp_thread): ... this. Adjust.
19306 (struct process_info): Rename to ...
19307 (struct lwp_info): ... this.
19308 (all_processes): Rename to ...
19309 (all_lwps): ... this.
19310 * proc-service.c (ps_lgetregs): Adjust.
19311 * thread-db.c (thread_db_create_event, find_one_thread)
19312 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
19314 2009-03-14 Pedro Alves <pedro@codesourcery.com>
19316 * server.c (handle_query): Handle "qAttached".
19318 2009-03-13 Nathan Sidwell <nathan@codesourcery.com>
19320 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
19321 GPLv3, update license URL.
19323 2009-03-01 Doug Evans <dje@google.com>
19325 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
19326 (server_h): Add gdb_signals.h.
19327 (signals.o): Update.
19328 * server.h (target_signal_from_host,target_signal_to_host_p)
19329 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
19331 2009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
19333 * remote-utils.c (getpkt): Also generate remote-debug
19334 information if noack_mode is set.
19336 2009-02-06 Pedro Alves <pedro@codesourcery.com>
19338 * server.c (handle_query): Report qXfer:siginfo:read and
19339 qXfer:siginfo:write as supported and handle them.
19340 * target.h (struct target_ops) <qxfer_siginfo>: New field.
19341 * linux-low.c (linux_xfer_siginfo): New.
19342 (linux_target_ops): Set it.
19344 2009-01-26 Pedro Alves <pedro@codesourcery.com>
19346 * server.c (gdbserver_usage): Mention --remote-debug.
19347 (main): Accept '--remote-debug' switch.
19349 2009-01-18 Doug Evans <dje@google.com>
19351 * regcache.c (new_register_cache): No need to check result of xcalloc.
19352 * server.c (handle_search_memory): Back out calls to xmalloc,
19353 result is checked and error is returned to user upon failure.
19354 (handle_query): Ditto. Add more checks for result of malloc.
19355 (handle_v_cont): Check result of malloc, report error back to
19357 (handle_v_run): Ditto. Call freeargv.
19358 * server.h (freeargv): Declare.
19359 * utils.c (freeargv): New fn.
19361 2009-01-15 Doug Evans <dje@google.com>
19363 * gdbreplay.c (perror_with_name): Make arg const char *.
19364 * server.h (target_signal_to_name): Make return type const char *.
19365 * thread-db.c (thread_db_err_str): Make return type const char *.
19366 * utils.c (perror_with_name): Make arg const char *.
19368 2009-01-14 Pedro Alves <pedro@codesourcery.com>
19370 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
19371 when handling a EXIT_PROCESS_DEBUG_EVENT.
19373 2009-01-06 Joel Brobecker <brobecker@adacore.com>
19375 * gdbreplay.c (gdbreplay_version): Update copyright year.
19376 * server.c (gdbserver_version): Likewise.
19378 2009-01-05 Doug Evans <dje@google.com>
19380 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
19381 (handle_extended_wait): Improve comment.
19383 2008-12-13 Doug Evans <dje@google.com>
19385 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
19386 * server.h (ATTR_MALLOC): New macro.
19387 (xmalloc,xcalloc,xstrdup): Declare.
19388 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
19389 * inferiors.c: Ditto.
19390 * linux-low.c: Ditto.
19391 * mem-break.c: Ditto.
19392 * regcache.c: Ditto.
19393 * remote-utils.c: Ditto.
19396 * win32-low.c: Ditto.
19398 2008-12-12 Doug Evans <dje@google.com>
19400 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
19401 in debugging printf.
19403 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
19405 2008-12-09 Doug Evans <dje@google.com>
19407 * linux-low.h (struct process_info): Delete member tid, unused.
19408 * thread-db.c (find_one_thread): Update.
19409 (maybe_attach_thread): Update.
19411 2008-12-02 Pedro Alves <pedro@codesourcery.com>
19413 * target.h (struct target_ops): Add qxfer_osdata member.
19414 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
19416 (linux_qxfer_osdata): New functions.
19417 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
19419 * server.c (handle_query): Handle "qXfer:osdata:read:".
19420 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
19421 (buffer_xml_printf): New functions.
19422 * server.h (struct buffer): New.
19423 (buffer_grow_str, buffer_grow_str0): New macros.
19424 (buffer_grow, buffer_free, buffer_init, buffer_finish)
19425 (buffer_xml_printf): Declare.
19427 2008-11-24 Doug Evans <dje@google.com>
19429 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
19431 2008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
19433 * server.c (handle_v_run): Always use the supplied argument list.
19435 2008-11-19 Bob Wilson <bob.wilson@acm.org>
19437 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
19438 (xtensa_regmap_table): Add entry for scompare1.
19440 2008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
19442 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
19443 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
19444 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
19445 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
19446 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
19447 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
19448 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
19449 XML target descriptions.
19450 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
19451 when inferior is running on an ISA 2.05 or later processor. Add
19452 special case to return offset for full 64-bit slot of FPSCR when
19455 2008-11-14 Daniel Gutson <dgutson@codesourcery.com>
19457 * Makefile.in (SFILES, clean): Added sparc64 files.
19458 (reg-sparc64.o, reg-sparc64.c): New.
19459 * configure.srv (sparc*-*-linux*): New configuration.
19460 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
19461 syscall arguments for SPARC.
19462 (regsets_store_inferior_registers): Likewise.
19463 * linux-sparc-low.c: New file.
19465 2008-10-21 Doug Evans <dje@google.com>
19467 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
19468 (READLINE_DIR,READLINE_DEP): Delete.
19469 (INTERNAL_CFLAGS): Update.
19470 (LINTFLAGS): Update.
19472 2008-10-10 Pedro Alves <pedro@codesourcery.com>
19474 * server.c (handle_v_run): If GDB didn't specify an argv, use the
19475 whole argv from the last run, not just argv[0].
19477 2008-09-08 Pedro Alves <pedro@codesourcery.com>
19479 * regcache.c (new_register_cache): Return NULL if the register
19480 cache size isn't known yet.
19481 (free_register_cache): Avoid dereferencing a NULL regcache.
19483 2008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
19485 * configure.srv: Merge MIPS and MIPS64.
19487 2008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
19489 * Makefile.in (uninstall): Apply $(EXEEXT) too.
19491 2008-08-18 Luis Machado <luisgpm@br.ibm.com>
19493 * Makefile.in: Add required vsx dependencies.
19495 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
19496 Declare init_registers_powerpc_vsx32l.
19497 Declare init_registers_powerpc_vsx64l.
19498 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
19499 (ppc_arch_setup): Check for VSX in hwcap.
19500 (ppc_fill_vsxregset): New function.
19501 (ppc_store_vsxregset): New function.
19502 Add new VSX entry in regset_info target_regsets.
19504 * configure.srv: Add new VSX dependencies.
19506 2008-08-12 Pedro Alves <pedro@codesourcery.com>
19508 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
19509 (remote_open): Set or clear transport_is_reliable.
19510 (putpkt_binary): Don't expect acks in noack mode.
19511 (getpkt): Don't send ack/nac in noack mode.
19512 * server.c (handle_general_set): Handle QStartNoAckMode.
19513 (handle_query): If connected by tcp pass QStartNoAckMode+ in
19515 (main): Reset noack_mode on every connection.
19516 * server.h (noack_mode): Declare.
19518 2008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19520 * Makefile.in (GDBREPLAY_OBS): New variable.
19521 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
19523 2008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
19524 Daniel Jacobowitz <dan@codesourcery.com>
19526 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
19527 (usr_store_inferior_registers): Likewise.
19528 (regsets_store_inferior_registers): Likewise.
19530 2008-07-31 Rolf Jansen <rj@surtec.com>
19531 Pedro Alves <pedro@codesourcery.com>
19533 * configure.ac: Check for memmem declaration.
19534 * server.c [HAVE_MALLOC_H]: Include malloc.h.
19535 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
19536 (disable_packet_qfThreadInfo): Unconditionally compile.
19537 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
19538 * configure, config.in: Regenerate.
19540 2008-07-28 Doug Kwan <dougkwan@google.com>
19542 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
19543 (linux_write_memory): Remove declaration of errno.
19545 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
19547 * linux-low.c (handle_extended_wait): Do not use "status"
19548 variable uninitialized.
19550 2008-07-07 Pedro Alves <pedro@codesourcery.com>
19552 * server.c (handle_v_attach): Inhibit reporting dll changes.
19554 2008-06-27 Pedro Alves <pedro@codesourcery.com>
19556 * remote-utils.c (prepare_resume_reply): If requested, don't
19557 output "thread:TID" in the T stop reply.
19559 * server.c (disable_packet_vCont, disable_packet_Tthread)
19560 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
19561 (handle_query): If requested, disable support for qC, qfThreadInfo
19563 (handle_v_requests): If requested, disable support for vCont.
19564 (gdbserver_show_disableable): New.
19565 (main): Handle --disable-packet and --disable-packet=LIST.
19567 * server.h (disable_packet_vCont, disable_packet_Tthread)
19568 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
19570 2008-06-20 Carlos O'Donell <carlos@codesourcery.com>
19572 * server.c (gdbserver_usage): Mention --version.
19574 2008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
19576 * Makefile.in (gdbreplay.o): New rule.
19578 2008-06-06 Joseph Myers <joseph@codesourcery.com>
19580 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
19581 message, not gdbserver.
19583 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
19584 Nathan Sidwell <nathan@codesourcery.com>
19585 Joseph Myers <joseph@codesourcery.com>
19587 * acinclude.m4: Include ../../config/acx.m4.
19588 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
19589 * configure, config.in: Regenerate.
19590 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
19591 * server.c (gdbserver_version): Print PKGVERSION.
19592 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
19593 (main): Adjust gdbserver_usage calls.
19594 * gdbreplay.c (version, host_name): Add declarations.
19595 (gdbreplay_version, gdbreplay_usage): New.
19596 (main): Accept --version and --help options.
19598 2008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
19600 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
19601 (arm_breakpoint_at): Handle Thumb.
19602 (the_low_target): Add comment.
19604 2008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
19606 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
19608 2008-05-09 Doug Evans <dje@google.com>
19610 * server.h (decode_search_memory_packet): Declare.
19611 * remote-utils.c (decode_search_memory_packet): New fn.
19612 * server.c (handle_search_memory_1): New fn.
19613 (handle_search_memory): New fn.
19614 (handle_query): Process qSearch:memory packets.
19616 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
19618 * regcache.c (registers_length): Remove.
19619 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
19620 full register packet.
19621 * regcache.h (registers_length): Remove prototype.
19622 * server.h (PBUFSIZ): Define to 16384.
19624 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
19626 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
19627 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
19628 powerpc-64l.o, and powerpc-altivec64l.o.
19629 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
19630 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
19631 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
19632 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
19633 rs6000/power-linux.xml, and rs6000/power64-linux.xml
19636 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
19637 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
19638 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
19639 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
19640 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
19641 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
19642 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
19643 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
19644 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
19645 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
19648 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
19649 (init_registers_powerpc_32l): ... this new prototype.
19650 (init_registers_powerpc_32): Remove, replace by ...
19651 (init_registers_powerpc_altivec32l): ... this new prototype.
19652 (init_registers_powerpc_e500): Remove, replace by ...
19653 (init_registers_powerpc_e500l): ... this new prototype.
19654 (init_registers_ppc64): Remove, replace by ...
19655 (init_registers_powerpc_64l): ... this new prototype.
19656 (init_registers_powerpc_64): Remove, replace by ...
19657 (init_registers_powerpc_altivec64l): ... this new prototype.
19658 (ppc_num_regs): Set to 73.
19659 (PT_ORIG_R3, PT_TRAP): Define if necessary.
19660 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
19661 (ppc_cannot_store_register): Handle orig_r3 and trap.
19662 (ppc_arch_setup): Update init_registers_... calls.
19663 (ppc_fill_gregset): Handle orig_r3 and trap.
19665 * inferiors.c (clear_inferiors): Reset current_inferior.
19667 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
19669 * acinclude.m4: Add override.m4.
19670 * configure: Regenerate.
19672 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19674 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
19675 initial call to init_register_ppc64.
19677 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19679 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
19680 single powerpc*-*-linux* case.
19681 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
19683 2008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
19685 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
19686 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
19688 * linux-ppc-low.c: Include <elf.h>.
19689 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
19690 (ppc_hwcap): New global variable.
19691 (ppc_regmap): Remove __SPE__ #ifdef sections.
19692 (ppc_regmap_e500): New global variable.
19693 (ppc_cannot_store_register): Update __SPE__ special case.
19694 (ppc_get_hwcap): New function.
19695 (ppc_arch_setup): Use it to determine whether inferior supports
19696 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
19697 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
19698 Do not access registers if target does not support AltiVec.
19699 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
19700 Do not access registers if target does not support SPE.
19701 (target_regsets): Unconditionally include AltiVec and SPE regsets.
19703 2008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
19705 * linux-low.c (disabled_regsets, num_regsets): New.
19706 (use_regsets_p): Delete.
19707 (linux_wait_for_process): Clear disabled_regsets.
19708 (regsets_fetch_inferior_registers): Check and set it.
19709 (regsets_store_inferior_registers): Likewise.
19710 (linux_fetch_registers, linux_store_registers): Do not use
19712 (initialize_low): Allocate disabled_regsets.
19714 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
19716 * Makefile.in (LIBOBJS): New.
19717 (OBS): Use LIBOBJS.
19718 (memmem.o): New rule.
19719 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
19720 * configure: Regenerated.
19722 2008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
19724 * server.c (handle_query): Never return "unsupported" for
19725 qXfer:features:read queries.
19727 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
19729 * server.c (get_features_xml): Fix inverted condition.
19730 (handle_query): Always support qXfer:feature:read.
19732 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
19734 * server.c (wrapper_argv): New.
19735 (start_inferior): Handle wrapper_argv. If set, expect an extra
19737 (gdbserver_usage): Document --wrapper.
19738 (main): Parse --wrapper.
19740 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19742 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
19743 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
19744 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
19745 (ppc_set_pc): Likewise.
19746 (ppc_arch_setup): New function.
19747 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
19748 of collect_register.
19749 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
19751 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19753 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
19754 instead of linux-ppc64-low.o.
19755 * linux-ppc64-low.c: Remove file.
19756 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
19757 (linux-ppc64-low.o): Remove rule.
19759 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
19760 (init_registers_powerpc_64): Likewise.
19761 (ppc_regmap): Conditionally define depending on __powerpc64__.
19762 (ppc_cannot_store_register): Do not special-case "fpscr" when
19763 compiled on __powerpc64__.
19764 (ppc_collect_ptrace_register): New function.
19765 (ppc_supply_ptrace_register): New function.
19766 (ppc_breakpoint): Change type to "unsigned int".
19767 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
19768 (the_low_target): Conditionally provide initializers for the
19769 arch_setup member depending on __powerpc64__. Install
19770 collect_ptrace_register and supply_ptrace_register members.
19772 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19774 * regcache.h (gdbserver_xmltarget): Add extern declaration.
19775 * server.c (gdbserver_xmltarget): Define.
19776 (get_features_xml): Use it to replace "target.xml" and arch_string.
19778 * configure.srv: Remove srv_xmltarget. Add XML files that were
19779 mentioned there to srv_xmlfiles instead. Remove conditional tests
19780 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
19781 srv_xmlfiles and srv_regobj to include all possible choices.
19782 * configure.ac (srv_xmltarget): Remove.
19783 (srv_xmlfiles): Do not add "target.xml".
19784 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
19785 checks for supplementary target information.
19786 * configure: Regenerate.
19787 * Makefile.in (XML_TARGET): Remove.
19788 (target.xml): Remove rule.
19789 (clean): Do not clean up target.xml.
19790 (.PRECIOUS): Do not mention target.xml.
19792 * target.h (struct target_ops): Remove arch_string member.
19793 * linux-low.c (linux_arch_string): Remove.
19794 (linux_target_ops): Remove arch_string initializer.
19795 * linux-low.h (struct linux_target_ops): Remove arch_string member.
19796 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
19797 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
19798 * spu-low.c (spu_arch_string): Remove.
19799 (spu_target_ops): Remove arch_string initializer.
19800 * win32-low.c (win32_arch_string): Remove.
19801 (win32_target_ops): Remove arch_string initializer.
19802 * win32-low.h (struct win32_target_ops): Remove arch_string member.
19803 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
19804 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
19806 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19808 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
19809 by collect_ptrace_register and supply_ptrace_register hooks.
19810 * linux-low.c (fetch_register): Use supply_ptrace_register callback
19811 instead of checking for the_low_target.left_pad_xfer.
19812 (usr_store_inferior_registers): Use collect_ptrace_register callback
19813 instead of checking for the_low_target.left_pad_xfer.
19815 * linux-s390-low.c (s390_collect_ptrace_register): New function.
19816 (s390_supply_ptrace_register): Likewise.
19817 (s390_fill_gregset): Call s390_collect_ptrace_register.
19818 (the_low_target): Update.
19820 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
19821 (ppc_supply_ptrace_register): Likewise.
19822 (the_low_target): Update.
19824 * linux-i386-low.c (the_low_target): Update.
19825 * linux-x86-64-low.c (the_low_target): Update.
19827 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19829 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
19830 reg-s390.o and reg-s390x.o.
19832 * linux-low.c (new_inferior): New global variable.
19833 (linux_create_inferior, linux_attach): Set it.
19834 (linux_wait_for_process): Call the_low_target.arch_setup after the
19835 target has stopped for the first time.
19836 (initialize_low): Do not call the_low_target.arch_setup.
19838 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
19839 (s390_set_pc): Likewise.
19840 (s390_arch_setup): New function.
19841 (the_low_target): Use s390_arch_setup as arch_setup routine.
19843 * regcache.c (realloc_register_cache): New function.
19844 (set_register_cache): Call it for each existing regcache.
19846 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19848 * server.h (init_registers): Remove prototype.
19850 * linux-low.h (struct linux_target_ops): Add arch_setup field.
19851 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
19852 instead of init_registers ().
19853 * linux-arm-low.c (init_registers_arm): Add prototype.
19854 (init_registers_arm_with_iwmmxt): Likewise.
19855 (the_low_target): Add initializer for arch_setup field.
19856 * linux-cris-low.c (init_registers_cris): Add prototype.
19857 (the_low_target): Add initializer for arch_setup field.
19858 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
19859 (the_low_target): Add initializer for arch_setup field.
19860 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
19861 (the_low_target): Add initializer for arch_setup field.
19862 * linux-ia64-low.c (init_registers_ia64): Add prototype.
19863 (the_low_target): Add initializer for arch_setup field.
19864 * linux-m32r-low.c (init_registers_m32r): Add prototype.
19865 (the_low_target): Add initializer for arch_setup field.
19866 * linux-m68k-low.c (init_registers_m68k): Add prototype.
19867 (the_low_target): Add initializer for arch_setup field.
19868 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
19869 (init_registers_mips64_linux): Likewise.
19870 (the_low_target): Add initializer for arch_setup field.
19871 * linux-ppc-low.c (init_registers_ppc): Add prototype.
19872 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
19873 (the_low_target): Add initializer for arch_setup field.
19874 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
19875 (init_registers_powerpc_64): Likewise.
19876 (the_low_target): Add initializer for arch_setup field.
19877 * linux-s390-low.c (init_registers_s390): Add prototype.
19878 (init_registers_s390x): Likewise.
19879 (the_low_target): Add initializer for arch_setup field.
19880 * linux-sh-low.c (init_registers_sh): Add prototype.
19881 (the_low_target): Add initializer for arch_setup field.
19882 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
19883 (the_low_target): Add initializer for arch_setup field.
19884 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
19885 (the_low_target): Add initializer for arch_setup field.
19887 * win32-low.h (struct win32_target_ops): Add arch_setup field.
19888 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
19889 instead of init_registers ().
19890 * win32-arm-low.c (init_registers_arm): Add prototype.
19891 (the_low_target): Add initializer for arch_setup field.
19892 * win32-i386-low.c (init_registers_i386): Add prototype.
19893 (the_low_target): Add initializer for arch_setup field.
19895 * spu-low.c (init_registers_spu): Add prototype.
19896 (initialize_low): Call initialie_registers_spu () instead of
19897 initialize_registers ().
19899 2008-02-19 Pedro Alves <pedro@codesourcery.com>
19901 * server.c (handle_v_requests): When handling the vRun and vAttach
19902 packets, if already debugging a process, don't kill it. Return an
19905 2008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
19907 * server.c (handle_query): Correct length check.
19909 2008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
19911 * win32-low.c (do_initial_child_stuff): Add process handle
19912 parameter. Set current_process_handle and current_process_id from the
19913 parameters. Clear globals.
19914 (win32_create_inferior): Don't set current_process_handle and
19915 current_process_id here. Instead pass them on the call to
19916 do_initial_child_stuff.
19917 (win32_attach): Likewise.
19918 (win32_clear_inferiors): New.
19919 (win32_kill): Don't close the current process handle or the
19920 current thread handle here. Instead call win32_clear_inferiors.
19921 (win32_detach): Don't open a new handle to the process. Call
19922 win32_clear_inferiors.
19923 (win32_join): Don't rely on current_process_handle; open a new
19924 handle using the process id.
19925 (win32_wait): Call win32_clear_inferiors when the inferior process
19928 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
19930 * server.c (monitor_show_help): Add "exit".
19932 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
19934 * Makefile.in (SFILES): Add linux-xtensa-low.c.
19935 (clean): Add reg-xtensa.c.
19936 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
19937 * configure.srv (xtensa*-*-linux*) New target.
19938 * linux-xtensa-low.c: New.
19939 * xtensa-xtregs.c: New.
19941 2008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
19943 * hostio.c: Don't include errno.h.
19944 (errno_to_fileio_errno): Move to hostio-errno.
19945 * hostio.c: (hostio_error): Remove the error parameter. Defer the
19946 error number outputting to the target->hostio_last_error callback.
19947 (hostio_packet_error): Use FILEIO_EINVAL directly.
19948 (handle_open, handle_pread, hostio_error, handle_unlink): Update
19949 calls to hostio_error.
19950 * hostio-errno.c: New.
19951 * server.h (hostio_last_error_from_errno): Declare.
19952 * target.h (target_ops): Add hostio_last_error member.
19953 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
19954 as hostio_last_error handler.
19955 * spu-low.c (spu_target_ops): Likewise.
19956 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
19957 (wince_hostio_last_error): New functions.
19958 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
19959 as hostio_last_error handler.
19960 (win32_target_ops) [!_WIN32_WCE]: Register
19961 hostio_last_error_from_errno as hostio_last_error handler.
19962 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
19963 (hostio-errno.o): New rule.
19964 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
19965 * configure.srv (srv_hostio_err_objs): New variable. Default to
19967 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
19968 * configure: Regenerate.
19970 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
19972 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
19973 (linux_kill, linux_detach): Clean up the process list.
19974 * remote-utils.c (remote_open): Improve port number parsing.
19975 (putpkt_binary, input_interrupt): Only send interrupts if the target
19977 * server.c (extended_protocol): Make static.
19978 (attached): Define earlier.
19979 (exit_requested, response_needed, program_argv): New variables.
19980 (target_running): New.
19981 (start_inferior): Clear attached here.
19982 (attach_inferior): Set attached here.
19983 (require_running): Define.
19984 (handle_query): Use require_running and target_running. Implement
19986 (handle_v_attach, handle_v_run): New.
19987 (handle_v_requests): Use require_running. Handle vAttach and vRun.
19988 (gdbserver_usage): Update.
19989 (main): Redo argument parsing. Handle --debug and --multi. Handle
19990 --attach along with other options or after the port. Save
19991 program_argv. Support no initial program. Resynchronize
19992 communication with GDB after an error. Handle "monitor exit".
19993 Use require_running and target_running. Always allow the extended
19994 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
19995 restart in extended mode.
19996 * README: Refer to the GDB manual. Update --attach usage.
19998 2007-12-20 Andreas Schwab <schwab@suse.de>
20000 * linux-low.c (STACK_SIZE): Define.
20001 (linux_tracefork_child): Use it. Use __clone2 on ia64.
20002 (linux_test_for_tracefork): Likewise.
20004 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
20006 * linux-low.c (linux_wait_for_event): Update messages. Do not
20007 reinsert auto-delete breakpoints.
20008 * mem-break.c (struct breakpoint): Change return type of handler to
20010 (set_breakpoint_at): Update handler type.
20011 (reinsert_breakpoint_handler): Return 1 instead of calling
20013 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
20015 (check_breakpoints): Delete auto-delete breakpoints and return 2.
20016 * mem-break.h (set_breakpoint_at): Update handler type.
20017 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
20018 * win32-low.c (auto_delete_breakpoint): New.
20019 (get_child_debug_event): Use it.
20021 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
20023 * configure.ac: Check for pread and pwrite.
20024 * hostio.c (handle_pread): Fall back to lseek and read.
20025 (handle_pwrite): Fall back to lseek and write.
20026 * config.in, configure: Regenerated.
20028 2007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
20030 * server.c (myresume): Add own_buf argument.
20031 (main): Update calls.
20033 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
20035 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
20036 * remote-utils.c (remote_open): Do not call disable_async_io.
20037 (block_async_io): Delete.
20038 (unblock_async_io): Make static.
20039 (initialize_async_io): New.
20040 * server.c (handle_v_cont): Handle async I/O here.
20041 (myresume): Likewise. Move other common resume tasks here...
20042 (main): ... from here. Call initialize_async_io. Disable async
20043 I/O before the main loop.
20044 * server.h (initialize_async_io): Declare.
20045 (block_async_io, unblock_async_io): Delete prototypes.
20046 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
20048 2007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
20050 * remote-utils.c (readchar): Allow binary data in received messages.
20052 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20054 * win32-low.c (attaching): New global.
20055 (win32_create_inferior): Clear the `attaching' global.
20056 (win32_attach): Set the `attaching' global.
20057 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
20058 attaching. Only set a breakpoint at the entry point if not
20061 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20063 * server.c (main): Don't report dll events on the initial
20064 connection on attaches.
20066 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20068 * server.c (main): Relax numerical bases supported for the pid of
20069 the --attach command line argument.
20071 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20073 * win32-low.c (win32_attach): Call OpenProcess before
20074 DebugActiveProcess, not after. Add last error output to error
20077 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20079 * win32-low.c (win32_get_thread_context)
20080 (win32_set_thread_context): New functions.
20081 (thread_rec): Use win32_get_thread_context.
20082 (continue_one_thread, win32_resume): Use win32_set_thread_context.
20083 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
20086 2007-12-03 Leo Zayas
20087 Pedro Alves <pedro_alves@portugalmail.pt>
20089 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
20091 (child_add_thread): Minor cleanup.
20092 (child_continue): Resume artificially suspended threads before
20093 calling ContinueDebugEvent.
20094 (suspend_one_thread): New.
20095 (fake_breakpoint_event): New.
20096 (get_child_debug_event): Change return type to int. Check here if
20097 gdb sent an interrupt request. If a soft interrupt was requested,
20098 fake a breakpoint event. Return 0 if there is no event to handle,
20100 (win32_wait): Don't check here if gdb sent an interrupt request.
20101 Ensure there is a valid event to handle.
20102 (win32_request_interrupt): Add soft interruption method as last
20105 2007-12-03 Leo Zayas
20106 Pedro Alves <pedro_alves@portugalmail.pt>
20108 * win32-low.h (win32_thread_info): Add descriptions to the
20109 structure members. Replace `suspend_count' counter by a
20111 * win32-low.c (thread_rec): Update condition of when to get the
20112 context from the inferior. Rely on ContextFlags being set if it
20113 has already been retrieved. Only suspend the inferior thread if
20114 we haven't already. Warn if that fails.
20115 (continue_one_thread): s/suspend_count/suspended/. Only call
20116 ResumeThread once. Warn if that fails.
20118 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20120 * win32-low.c (win32_wait): Don't read from the inferior when it
20121 has already exited.
20123 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20125 * Makefile.in (win32_low_h): New variable.
20126 (win32-low.o): Add dependency on $(win32_low_h).
20127 (win32-arm-low.o, win32-i386-low.o): New rules.
20129 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20131 * hostio.c: Correct copyright year.
20133 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20135 * Makefile.in (OBS): Add hostio.o.
20136 (hostio.o): New rule.
20137 * server.h (handle_vFile): Declare.
20138 * hostio.c: New file.
20139 * server.c (handle_v_requests): Take packet_len and new_packet_len
20140 for binary packets. Call handle_vFile.
20141 (main): Update call to handle_v_requests.
20143 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
20145 * linux-low.c: Include <sched.h>.
20147 2007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
20149 * linux-low.c (linux_tracefork_grandchild): New.
20150 (linux_tracefork_child): Use clone.
20151 (linux_test_for_tracefork): Use clone; allocate and free a stack.
20153 2007-10-31 Joel Brobecker <brobecker@adacore.com>
20155 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
20157 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
20159 * linux-low.c (handle_extended_wait): Handle unexpected signals.
20161 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
20163 * inferiors.c (change_inferior_id): Delete.
20164 (add_pid_to_list, pull_pid_from_list): New.
20165 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
20166 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
20167 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
20168 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
20169 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
20170 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
20171 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
20172 (using_threads): Always set to 1.
20173 (handle_extended_wait): New.
20174 (add_process): Do not set TID.
20175 (linux_create_inferior): Set must_set_ptrace_flags.
20176 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
20177 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
20178 (linux_thread_alive): Rename TID argument to LWPID.
20179 (linux_wait_for_process): Handle unknown processes. Do not use TID.
20180 (linux_wait_for_event): Do not use TID or check using_threads. Update
20181 call to dead_thread_notify. Call handle_extended_wait.
20182 (linux_create_inferior): Use PTRACE_SETOPTIONS.
20183 (send_sigstop): Delete sigstop_sent.
20184 (wait_for_sigstop): Avoid TID.
20185 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
20186 (linux_test_for_tracefork): New.
20187 (linux_lookup_signals): Use thread_db_active and
20188 linux_supports_tracefork_flag.
20189 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
20190 * linux-low.h (get_process_thread): Avoid TID.
20191 (struct process_ifo): Move thread_known and tid to the end. Remove
20193 (linux_attach_lwp, thread_db_init): Update prototypes.
20194 * server.h (change_inferior_id): Delete prototype.
20195 (add_pid_to_list, pull_pid_from_list): New prototypes.
20196 * thread-db.c (thread_db_use_events): New.
20197 (find_first_thread): Rename to...
20198 (find_one_thread): ...this. Update callers and messages. Do not
20199 call fatal. Check thread_db_use_events. Do not call
20200 change_inferior_id or new_thread_notify.
20201 (maybe_attach_thread): Update. Do not call new_thread_notify.
20202 (thread_db_init): Set thread_db_use_events. Check use_events.
20203 * utils.c (fatal, warning): Correct message prefix.
20205 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
20207 * Makefile.in (clean): Remove new files.
20208 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
20209 (powerpc-64.o, powerpc-64.c): New rules.
20210 * configure.srv: Use alternate register sets for powerpc64-*-linux*
20211 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
20213 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
20215 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
20216 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
20217 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
20218 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
20219 (target_regsets): Add AltiVec and SPE register sets.
20220 * configure.ac: Check for AltiVec and SPE.
20221 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
20222 (ppc_fill_vrregset, ppc_store_vrregset): New.
20223 (target_regsets): Add AltiVec register set.
20224 * configure: Regenerated.
20226 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
20228 * linux-low.c (O_LARGEFILE): Define.
20229 (linux_read_memory): Use /proc/PID/mem.
20230 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
20231 * configure, config.in: Regenerated.
20233 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20235 * linux-low.c (linux_wait_for_event): Do not pass signals while
20238 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20240 * win32-low.c (create_process): New.
20241 (win32_create_inferior): Use create_process instead of
20242 CreateProcess. If create_process failed retry appending an ".exe"
20243 suffix. Store the GetLastError result immediatelly after
20244 create_process calls and use it on the call to error.
20246 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20248 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
20250 2007-08-23 Joel Brobecker <brobecker@adacore.com>
20252 * configure.ac: Switch license to GPLv3.
20254 2007-08-01 Michael Snyder <msnyder@access-company.com>
20256 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
20258 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
20260 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
20262 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
20263 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
20264 CloseToolhelp32Snapshot.
20265 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
20266 CloseToolhelp32Snapshot.
20268 2007-07-27 Michael Snyder <michael.snyder@access-company.com>
20270 * server.c (main): Check for inferior exit before main loop.
20272 2007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
20274 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
20275 instead of on tmp_desc.
20277 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
20278 Daniel Jacobowitz <dan@codesourcery.com>
20280 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
20281 (add_thread): Minor cleanups.
20282 (clear_inferiors): Move lower in the file. Clear the DLL
20284 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
20285 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
20286 (xml_escape_text): New.
20287 * server.c (handle_query): Handle qXfer:libraries:read. Report it
20289 (handle_v_cont): Report errors.
20290 (gdbserver_version): Update.
20291 (main): Correct size of own_buf. Do not report initial DLL events.
20292 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
20293 (unloaded_dll, xml_escape_text): New.
20294 * win32-low.c (enum target_waitkind): Update comments.
20295 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
20296 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
20297 (win32_EnumProcessModules, win32_GetModuleInformation)
20298 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
20299 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
20300 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
20301 (win32_Module32First, win32_Module32Next, load_toolhelp)
20302 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
20303 (get_child_debug_event): Handle DLL events.
20304 (win32_wait): Likewise.
20306 2007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20308 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
20309 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
20311 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20313 * win32-low.c (handle_output_debug_string): Ignore event if not
20316 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20318 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
20320 2007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
20322 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
20324 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
20326 * inferiors.c (change_inferior_id): Add comment.
20327 * linux-low.c (check_removed_breakpoint): Add an early
20328 prototype. Improve debug output.
20329 (linux_attach): Doc update.
20330 (linux_detach_one_process, linux_detach): Clean up before releasing
20332 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
20333 * linux-low.h (struct process_info): Doc improvement.
20334 * mem-break.c (delete_all_breakpoints): New.
20335 * mem-break.h (delete_all_breakpoints): New prototype.
20336 * thread-db.c (find_first_thread): New.
20337 (thread_db_create_event): Call it instead of
20338 thread_db_find_new_threads. Clean up unused variables.
20339 (maybe_attach_thread): Remove first thread handling.
20340 (thread_db_find_new_threads): Use find_first_thread.
20341 (thread_db_get_tls_address): Likewise.
20343 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
20345 * thread-db.c (thread_db_find_new_threads): Add prototype.
20346 (thread_db_create_event): Check for the main thread before adding
20348 (maybe_attach_thread): Only enable event reporting if TID == 0.
20349 (thread_db_get_tls_address): Check for new threads.
20351 2007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
20353 * linux-low.c (linux_create_inferior): Try execv before execvp.
20354 * spu-low.c (spu_create_inferior): Likewise.
20356 2007-06-13 Mike Frysinger <vapier@gentoo.org>
20358 * linux-low.c (linux_create_inferior): Change execv to execvp.
20359 * spu-low.c (spu_create_inferior): Likewies.
20361 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
20363 * Makefile.in (clean): Clean new files instead of deleted ones.
20364 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
20365 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
20367 * configure.srv: Specify XML files and new regformats for MIPS and
20369 * linux-mips-low.c (mips_num_regs): Set to only used registers.
20370 (mips_regmap): Do not fetch $0. Remove unused registers. Add
20371 an entry for the restart register.
20372 (mips_cannot_fetch_register, mips_cannot_store_register)
20373 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
20374 register names to match the XML descriptions.
20375 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
20376 restart register instead of $0.
20378 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20379 Markus Deuling <deuling@de.ibm.com>
20381 * remote-utils.c (decode_xfer_write): New function.
20382 * server.h (decode_xfer_write): Add prototype.
20383 * server.c (handle_query): Add PACKET_LEN argument. Support
20384 qXfer:spu:read and qXfer:spu:write packets.
20385 (main): Pass packet_len to handle_query.
20386 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
20387 * target.h (target_ops): Add qxfer_spu.
20389 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20391 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
20392 accessing non-seekable spufs files.
20394 2007-05-16 Markus Deuling <deuling@de.ibm.com>
20396 * server.c (handle_query): Add reply for qC packet.
20398 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20399 Leo Zayas <lerele@champenstudios@com>
20401 * server.h (check_remote_input_interrupt_request): New function.
20402 * remote_utils.c (INVALID_DESCRIPTOR): New define.
20403 (remote_desc): Initialize with INVALID_DESCRIPTOR.
20404 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
20405 (check_remote_input_interrupt_request): New function.
20406 * server.h (check_remote_input_interrupt_request): Declare.
20407 * win32-low.c (winapi_DebugBreakProcess,
20408 winapi_GenerateConsoleCtrlEvent): New typedefs.
20409 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
20411 (win32_wait): Check for remote interrupt request
20412 with check_remote_input_interrupt_request.
20413 (win32_request_interrupt): New function.
20414 (win32_target_op): Set request_interrupt to win32_request_interrupt.
20416 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20418 * win32-low.c (debug_registers_changed,
20419 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
20420 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
20421 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
20422 (thread_rec): Get context using the low target.
20423 (child_add_thread): Call thread_added on the low target,
20424 which does the same thing.
20426 (do_initial_child_stuff): Remove debug registers references.
20427 Set context using the low target. Resume threads after
20428 setting the contexts.
20429 (child_continue): Remove dead variable. Remove debug
20430 registers references.
20431 (child_fetch_inferior_registers): Go through the low target.
20432 (do_child_store_inferior_registers): Remove.
20433 (child_store_inferior_registers): Go through the low target.
20434 (win32_resume): Remove debug registers references.
20435 Set context using the low target.
20436 (handle_exception): Change return type to void. Don't record
20437 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
20438 first chance exception.
20439 (get_child_debug_event): Change return type to void. Remove
20440 goto loop. Always return after waiting for debug event.
20441 (win32_wait): Convert to switch statement. Handle spurious
20444 * win32-i386-low.c (debug_registers_changed,
20445 debug_registers_used): New.
20446 (initial_stuff): Rename to ...
20447 (i386_initial_stuff): ... this. Clear debug registers
20449 (store_debug_registers): Delete.
20450 (i386_get_thread_context): New.
20451 (load_debug_registers): Delete.
20452 (i386_set_thread_context): New.
20453 (i386_thread_added): New.
20454 (single_step): Rename to ...
20455 (i386_single_step): ... this.
20456 (do_fetch_inferior_registers): Rename to ...
20457 (i386_fetch_inferior_register): ... this.
20458 (i386_store_inferior_register): New.
20459 (the_low_target): Adapt to new interface.
20461 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
20462 (arm_get_thread_context): New.
20463 (arm_set_thread_context): New.
20465 (do_fetch_inferior_registers): Rename to ...
20466 (arm_fetch_inferior_register): ... this.
20467 (arm_store_inferior_register): New.
20468 (arm_wince_breakpoint): Reimplement as unsigned long.
20469 (arm_wince_breakpoint_len): Define.
20470 (the_low_target): Adapt to new interface.
20472 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
20473 load_debug_registers. Add get_thread_context, set_thread_context,
20474 thread_added and store_inferior_register. Rename
20475 fetch_inferior_registers to fetch_inferior_register.
20476 (regptr): Remove declaration.
20478 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20480 * linux-low.c (linux_detach): Change return type to int. Return 0.
20481 * spu-low.c (spu_detach): Likewise.
20483 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20485 * target.h (target_ops): Change return type of detach to int.
20487 (join_inferior): New.
20488 * server.c (main): Don't skip detach support on mingw32.
20489 If the inferior doesn't support detaching return error.
20490 Call join_inferior instead of using waitpid.
20491 * linux-low.c (linux_join): New.
20492 (linux_target_op): Add linux_join.
20493 * spu-low.c (spu_join): New.
20494 (spu_target_ops): Add spu_join.
20495 * win32-low.c (win32_detach): Adapt to new interface.
20496 Reopen current_process_handle before detaching. Issue a child
20497 resume before detaching.
20499 (win32_target_op): Add win32_join.
20501 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20503 * win32-low.c (win32-attach): Fix return value.
20504 * target.h (target_ops): Describe ATTACH return values.
20506 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20508 * win32-low.c (GETPROCADDRESS): Define.
20509 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
20510 (winapi_DebugSetProcessKillOnExit): Likewise.
20511 (win32_create_inferior): Force usage of ansi CreateProcessA.
20512 (win32_attach): Use GETPROCADDRESS.
20513 (win32_detach): Likewise.
20515 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20517 * win32-low.c (win32_wait): Don't use WSTOPSIG.
20519 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
20521 * win32-low.c: Commit leftover changes from 2007-03-29.
20523 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20525 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
20526 fields short instead of int. Add explicit padding.
20527 (i387_cache_to_fsave): Remove unnecessary casts.
20528 (i387_fsave_to_cache): Doc fix.
20529 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
20531 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20533 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
20534 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
20536 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20538 * configure.srv (arm*-*-mingw32ce*): Move near the other
20541 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20543 * configure.ac: Add errno checking.
20544 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
20545 sys/file.h and malloc.h.
20546 (AC_CHECK_DECLS): Add perror.
20547 (srv_mingwce): Handle.
20548 * configure.srv (i[34567]86-*-cygwin*): Add
20549 win32-i386-low.o to srv_tgtobj.
20550 (i[34567]86-*-mingw*): Likewise.
20551 (arm*-*-mingw32ce*): Add case.
20552 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20553 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
20554 [__MINGW32CE__] (strerror): New function.
20555 [__MINGW32CE__] (errno): Define to GetLastError.
20556 [__MINGW32CE__] (COUNTOF): New macro.
20557 (remote_open): Remove extra close call.
20558 * mem-break.c (delete_breakpoint_at): New function.
20559 * mem-break.h (delete_breakpoint_at): Declare.
20560 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20561 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
20562 [USE_WIN32API] (read, write): Add char* casts.
20563 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
20564 * server.h: Include wincecompat.h on Windows CE.
20565 [HAVE_ERRNO_H]: Check.
20566 (perror): Declare if not declared.
20567 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
20568 (perror_with_name): Remove errno declaration.
20569 * wincecompat.h: New.
20570 * wincecompat.c: New.
20571 * win32-low.h: New.
20572 * win32-arm-low.c: New.
20573 * win32-i386-low.c: New.
20574 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
20575 (OUTMSG2): Make it safe.
20577 (COUNTOF): New macro.
20578 (NUM_REGS): Get it from the low target.
20579 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
20580 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
20581 (thread_rec): Let low target handle debug registers.
20582 (child_add_thread): Likewise.
20583 (child_init_thread_list): Likewise.
20584 (continue_one_thread): Likewise.
20586 (do_child_fetch_inferior_registers): Move to ...
20587 * win32-i386-low.c: ... here, and rename to ...
20588 (do_fetch_inferior_registers): ... this.
20589 * win32-low.c (child_fetch_inferior_registers):
20590 Go through the low target.
20591 (do_child_store_inferior_registers): Use regptr.
20592 (strwinerror): New function.
20593 (win32_create_inferior): Handle Windows CE.
20594 Use strwinerror instead of strerror on Windows error
20595 codes. Add program to the error output.
20596 Don't close the main thread handle on Windows CE.
20597 (win32_attach): Use coredll.dll on Windows CE.
20598 (win32_kill): Close current process and current
20600 (win32_detach): Use coredll.dll on Windows CE.
20601 (win32_resume): Let low target handle debug registers, and
20603 (handle_exception): Add/Remove initial breakpoint. Avoid
20604 non-existant WSTOPSIG on Windows CE.
20605 (win32_read_inferior_memory): Cast to remove warning.
20606 (win32_arch_string): Go through the low target.
20607 (initialize_low): Call set_breakpoint_data with the low
20608 target's breakpoint.
20609 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
20610 FOP_REGNUM, mappings): Move to ...
20611 * win32-i386-low.c: ... here.
20612 * win32-low.c (win32_thread_info): Move to ...
20613 * win32-low.h: ... here.
20614 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
20615 win32-arm-low.c and wincecompat.c.
20616 (all:): Add $EXEEXT.
20617 (install-only:): Likewise.
20618 (gdbserver:): Likewise.
20619 (gdbreplay:): Likewise.
20620 * config.in: Regenerate.
20621 * configure: Regenerate.
20623 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20625 * win32-low.c: Rename typedef thread_info to
20626 win32_thread_info throughout.
20628 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20630 * win32-i386-low.c: Rename to ...
20631 * win32-low.c: ... this.
20632 * configure.srv: Replace win32-i386-low.o with win32-low.o.
20633 * Makefile.in: Likewise.
20635 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
20637 * remote-utils.c (monitor_output): Constify msg parameter.
20638 * server.h (monitor_output): Likewise.
20639 * win32-i386-low.c (handle_output_debug_string): New.
20640 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
20641 handle_output_debug_string.
20642 (get_child_debug_event): Likewise.
20644 2007-03-27 Mat Hostetter <mat@lcs.mit.edu>
20646 * server.c (main): Correct strtoul check.
20648 2007-03-27 Jon Ringle <jon@ringle.org>
20650 * linux-low.c: Check __ARCH_HAS_MMU__ also.
20652 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
20654 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
20656 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
20658 * terminal.h: Check HAVE_SGTTY_H.
20660 2007-02-27 Mat Hostetter <mat@lcs.mit.edu>
20662 * remote-utils.c (remote_open): Print out the assigned port number.
20664 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
20666 * remote-utils.c (monitor_output): New function.
20667 * server.c (debug_threads): Define here.
20668 (monitor_show_help): New function.
20669 (handle_query): Handle qRcmd.
20670 (main): Do not handle 'd' packet.
20671 * server.h (debug_threads, remote_debug, monitor_output): Declare.
20672 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
20675 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20677 * Makefile.in (EXEEXT): New.
20678 (clean): Use $(EXEEXT).
20680 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20682 * target.h (target_ops): Rename send_signal to request_interrupt,
20683 and remove enum target_signal parameter.
20684 * linux-low.c (linux_request_interrupt): Rename from
20685 linux_send_signal, and always send SIGINT.
20686 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
20687 and always send SIGINT.
20688 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
20690 (input_interrupt): Likewise.
20692 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20694 * server.c (get_features_xml): Check if target implemented
20696 * win32-i386-low.c (win32_arch_string): New.
20697 (win32_target_ops): Add win32_arch_string as arch_string member.
20699 2007-02-22 Markus Deuling <deuling@de.ibm.com>
20701 * spu-low.c (spu_arch_string): New.
20702 (spu_target_ops): Add spu_arch_string.
20704 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
20706 * remote-utils.c: Remove HAVE_TERMINAL_H check.
20707 * configure.ac: Do not check for terminal.h.
20708 * configure, config.in: Regenerated.
20710 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
20712 * Makefile.in (OBS): Add $(XML_BUILTIN).
20713 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
20715 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
20716 (arm-with-iwmmxt.c): New.
20717 * config.in, configure: Regenerate.
20718 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
20719 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
20720 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
20721 (arm*-*-linux*): Add iWMMXt and regset support.
20722 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
20723 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
20724 (arm_store_wmmxregset, target_regsets): New.
20725 * server.c (get_features_xml): Take annex argument. Check builtin
20727 (handle_query): Handle multiple annexes.
20729 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20731 * remote-utils.c [USE_WIN32API] (read, write): Define.
20732 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
20735 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
20737 * linux-i386-low.c (the_low_target): Set arch_string.
20738 * linux-x86-64-low.c (the_low_target): Likewise.
20739 * linux-low.c (linux_arch_string): New.
20740 (linux_target_ops): Add it.
20741 * linux-low.h (struct linux_target_ops): Add arch_string.
20742 * server.c (write_qxfer_response): Use const void * for DATA.
20743 (get_features_xml): New.
20744 (handle_query): Handle qXfer:features:read. Report it for qSupported.
20745 * target.h (struct target_ops): Add arch_string method.
20747 2007-01-03 Denis Pilat <denis.pilat@st.com>
20748 Daniel Jacobowitz <dan@codesourcery.com>
20750 * linux-low.c (linux_kill): Handle being called with no threads.
20751 * win32-i386-low.c (win32_kill): Likewise.
20752 (get_child_debug_event): Clear current_process_handle.
20754 2006-12-30 Denis PILAT <denis.pilat@st.com>
20755 Daniel Jacobowitz <dan@codesourcery.com>
20757 * remote-utils.c (remote_open): Check the type of specified
20758 serial port devices before opening them.
20759 * server.c (main): Kill the inferior if an error occurs during
20760 the first remote_open.
20762 2006-12-05 Markus Deuling <deuling@de.ibm.com>
20764 * README: Update supported targets.
20766 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
20768 * Makefile.in (clean): Remove reg-mips64.c.
20769 (reg-mips64.c, reg-mips64.o): New rules.
20770 * configure.srv: Handle mips64. Include regset support for mips.
20771 * linux-mips-low.c (union mips_register): New.
20772 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
20773 (mips_breakpoint, mips_breakpoint_at): Use int.
20774 (mips_collect_register, mips_supply_register)
20775 (mips_collect_register_32bit, mips_supply_register_32bit)
20776 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
20777 (mips_store_fpregset, target_regsets): New.
20778 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
20780 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
20782 * configure.srv: Add target "spu*-*-*".
20783 * Makefile.in (clean): Remove reg-spu.c.
20784 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
20785 * spu-low.c: New file.
20787 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
20789 * configure.ac: Correct td_thr_tls_get_addr test.
20790 * configure: Regenerated.
20792 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
20794 * linux-low.c (linux_wait_for_event): Reformat. Use the
20795 pass_signals array.
20796 * remote-utils.c (decode_address_to_semicolon): New.
20797 * server.c (pass_signals, handle_general_set): New.
20798 (handle_query): Mention QPassSignals for qSupported.
20799 (main): Call handle_general_set.
20800 * server.h (pass_signals, decode_address_to_semicolon): New.
20802 2006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
20804 * server.c (handle_query): Correct error handling for read_auxv.
20806 2005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
20808 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
20809 and srv_linux_thread_db to yes.
20810 * linux-s390-low.c (s390_fill_gregset): New function.
20811 (target_regsets): Define data structure.
20813 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
20815 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
20816 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
20817 * config.in, configure: Regenerated.
20818 * inferiors.c (gdb_id_to_thread): New function.
20819 (gdb_id_to_thread_id): Use it.
20820 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
20821 * linux-low.h (struct process_info): Add th member.
20822 (thread_db_get_tls_address): New prototype.
20823 * remote-utils.c (decode_address): Make non-static.
20824 * server.c (handle_query): Handle qGetTLSAddr.
20825 * server.h (gdb_id_to_thread, decode_address): New prototypes.
20826 * target.h (struct target_ops): Add get_tls_address.
20827 * thread-db.c (maybe_attach_thread): Save the thread handle.
20828 (thread_db_get_tls_address): New.
20830 2006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
20832 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
20833 (linux_resume_one_process): Take a siginfo_t *. Update all
20834 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
20835 (struct pending_signals): Add a siginfo_t.
20836 (linux_wait_for_process): Always set last_status.
20837 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
20838 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
20839 * linux-low.h (struct process_info): Add last_status.
20841 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
20843 * remote-utils.c (try_rle): New function.
20844 (putpkt_binary): Use it.
20846 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
20848 * Makefile.in (clean): Clean reg-x86-64-linux.c.
20849 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
20850 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
20851 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
20852 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
20855 2006-08-08 Richard Sandiford <richard@codesourcery.com>
20857 * server.c (terminal_fd): New variable.
20858 (old_foreground_pgrp): Likewise.
20859 (restore_old_foreground_pgrp): New function.
20860 (start_inferior): Record the terminal file descriptor in terminal_fd
20861 and its original foreground group in old_foreground_pgrp. Register
20862 restore_old_foreground_pgrp with atexit().
20864 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
20866 * server.c (handle_query): Correct qPart to qXfer.
20868 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
20870 * configure.ac: Check for more headers which are missing on
20871 Windows. Automatically supply -lwsock32 and USE_WIN32API.
20872 * configure.srv: Add Cygwin and mingw32.
20873 * remote-utils.c: Don't include headers unconditionally which
20874 are missing on mingw32. Include <winsock.h> for mingw32.
20875 (remote_open): Adjust for mingw32 support. Flush
20876 standard error after writing to it.
20877 (remote_close, putpkt_binary, input_interrupt, block_async_io)
20878 (unblock_async_io, enable_async_io, disable_async_io)
20879 (readchar, getpkt): Update for Winsock support.
20880 (prepare_resume_reply): Expect a protocol signal number.
20881 * server.c: Disable <sys/wait.h> on mingw32.
20882 (start_inferior): Adjust for mingw32 support. Flush
20883 standard error after writing to it.
20884 (attach_inferior): Likewise. Use protocol signal
20886 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
20888 * win32-i386-low.c: New file.
20889 * Makefile.in (XM_CLIBS): Set.
20890 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
20891 (win32-i386-low.o): New dependency rule.
20892 * linux-low.c (linux_wait): Use target signal numbers.
20893 * target.h (struct target_ops): Doc fix.
20894 * server.h (target_signal_to_name): New prototype.
20895 * gdbreplay.c: Don't include headers unconditionally which
20896 are missing on mingw32. Include <winsock.h> for mingw32.
20897 (remote_close, remote_open): Adjust for Winsock support.
20898 * configure, config.in: Regenerated.
20900 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20902 * server.c (decode_xfer_read, write_qxfer_response): New.
20903 (handle_query): Take a packet length argument. Handle
20904 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
20905 the qSupported response.
20906 (main): Update call to handle_query.
20908 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
20910 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
20911 (putpkt_binary): Renamed from putpkt and adjusted for binary
20913 (putpkt): New wrapper for putpkt_binary.
20914 (readchar): Don't mask off the high bit.
20915 (decode_X_packet): New function.
20916 * server.c (main): Call putpkt_binary if a handler sets the packet
20917 length. Save the length of the incoming packet. Handle 'X'.
20918 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
20920 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
20922 * server.c (handle_query): Handle qSupported.
20924 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
20926 * remote-utils.c (all_symbols_looked_up): New variable.
20927 (look_up_one_symbol): Check it.
20928 * server.h (look_up_one_symbol): New declaration.
20929 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
20931 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
20933 * Makefile.in (linux-arm-low.o): Update dependencies.
20934 * linux-arm-low.c: Include "gdb_proc_service.h".
20935 (PTRACE_GET_THREAD_AREA): Define.
20936 (ps_get_thread_area): New function.
20938 2006-05-09 Nathan Sidwell <nathan@codesourcery.com>
20940 * configure.srv (m68k*-*-uclinux*): New target.
20941 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
20942 (linux_resume_one_process): Remove extraneous cast.
20943 (linux_read_offsets): New.
20944 (linux_target_op): Add linux_read_offsets on mmuless systems.
20945 * server.c (handle_query): Add qOffsets logic.
20946 * target.h (struct target_ops): Add read_offsets.
20948 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
20950 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
20951 (PTRACE_GET_THREAD_AREA): Define.
20952 (ps_get_thread_area): New function.
20953 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
20954 (linux-x86-64-low.o): Update.
20956 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
20958 * configure.ac: Remove checks for prfpregset_t.
20959 * gdb_proc_service.h: New file.
20960 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
20961 new "gdb_proc_service.h".
20962 * proc-service.c: Likewise.
20963 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
20964 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
20965 * Makefile.in (gdb_proc_service_h): Updated.
20966 * configure, config.in: Regenerated.
20968 2006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
20970 * remote-utils.c (prepare_resume_reply): Move declaration
20971 of gdb_id_from_wait to the top of the block.
20973 2006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
20975 * linux-low.c (regsets_store_inferior_registers): Read the regset
20976 from the target before filling it.
20978 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
20980 * server.c (attach_inferior): Return SIGTRAP for a successful
20983 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
20985 * Makefile.in (OBS): Add version.o.
20986 (STAGESTUFF): Delete.
20987 (version.o): Add dependencies.
20988 (version.c): Replace rule.
20989 (clean): Remove version.c.
20990 * server.c (gdbserver_version): New.
20991 (gdbserver_usage): Use printf.
20992 (main): Handle --version and --help.
20993 * server.h (version, host_name): Add declarations.
20995 2005-12-23 Eli Zaretskii <eliz@gnu.org>
21007 * linux-x86-64-low.c:
21009 * linux-s390-low.c:
21010 * linux-ppc64-low.c:
21012 * linux-mips-low.c:
21013 * linux-m68k-low.c:
21014 * linux-m32r-low.c:
21017 * linux-ia64-low.c:
21018 * linux-i386-low.c:
21019 * linux-crisv32-low.c:
21031 * gdbserver.1: Add (C) after Copyright. Update the FSF
21034 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
21036 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
21037 (arm_breakpoint_at): Recognize both breakpoints.
21038 (the_low_target): Use the correct breakpoint instruction.
21040 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
21042 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
21043 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
21044 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
21045 (the_low_target): Update.
21047 2005-10-25 Andreas Schwab <schwab@suse.de>
21049 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
21051 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
21052 (ia64_num_regs): Reduce to 462.
21054 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
21056 * acinclude.m4: Correct quoting.
21057 * aclocal.m4: Regenerated.
21059 Suggested by SZOKOVACS Robert <szo@ies.hu>:
21060 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
21061 (thread_db_init): Call thread_db_err_str.
21062 * configure.ac: Check for TD_VERSION.
21063 * config.in, configure: Regenerated.
21065 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21067 * server.h (error, fatal, warning): Add ATTR_FORMAT.
21069 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21071 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
21072 is not available. Define HAVE_PTRACE_GETREGS if it is.
21073 * config.in, configure: Regenerated.
21074 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
21075 * linux-i386-low.c, linux-m68k-low.c: Update to use
21076 HAVE_PTRACE_GETREGS.
21077 * linux-low.c (regsets_fetch_inferior_registers)
21078 (regsets_store_inferior_registers): Only return 0 if we processed
21080 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
21081 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
21083 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21085 * inferiors.c (struct thread_info): Add gdb_id.
21086 (add_thread): Add gdb_id argument.
21087 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
21088 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
21089 calls to add_thread.
21090 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
21091 * server.c (handle_query): Use thread_to_gdb_id.
21092 (handle_v_cont, main): Use gdb_id_to_thread_id.
21093 * server.h (add_thread): Update prototype.
21094 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
21097 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21099 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
21100 left-padded registers.
21101 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
21102 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
21104 2005-07-01 Steve Ellcey <sje@cup.hp.com>
21106 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
21107 * configure: Regenerate.
21108 * config.in: Regenerate.
21109 * server.h (NEED_DECLARATION_STRERROR):
21110 Replace with !HAVE_DECL_STRERROR.
21112 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
21114 * linux-low.c (linux_wait, linux_send_signal): Don't test
21115 an unsigned long variable for > 0 if it could be MAX_ULONG.
21116 * server.c (myresume): Likewise.
21117 * target.c (set_desired_inferior): Likewise.
21119 2005-06-13 Mark Kettenis <kettenis@gnu.org>
21121 * configure.ac: Simplify and improve check for socklen_t.
21122 * configure, config.in: Regenerate.
21124 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
21126 * acconfig.h: Remove.
21127 * configure.ac: Add a test for socklen_t. Use three-argument
21128 AC_DEFINE throughout.
21129 * config.in: Regenerated using autoheader 2.59.
21130 * configure: Regenerated.
21132 * gdbreplay.c (socklen_t): Provide a default.
21133 (remote_open): Use socklen_t.
21134 * remote-utils.c (socklen_t): Provide a default.
21135 (remote_open): Use socklen_t.
21136 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
21139 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
21141 * linux-low.c (linux_read_memory, linux_write_memory)
21142 (linux_read_auxv): Likewise.
21143 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
21144 (check_mem_write): Likewise.
21145 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
21147 * regcache.c (struct inferior_rgcache_data, registers_to_string)
21148 (registers_from_string, register_data): Likewise.
21149 * server.c (handle_query, main): Likewise.
21150 * server.h (convert_ascii_to_int, convert_int_to_ascii)
21151 (decode_M_packet): Likewise.
21152 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
21153 * target.h (struct target_ops): Update read_memory, write_memory,
21155 (read_inferior_memory, write_inferior_memory): Update.
21156 * linux-low.h (struct linux_target_ops): Change type of breakpoint
21157 to unsigned char *.
21158 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
21159 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
21160 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
21161 linux-s390-low.c, linux-sh-low.c: Update for changes in
21162 read_inferior_memory and the_low_target->breakpoint.
21164 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
21166 * Makefile.in (SFILES): Add linux-ppc64-low.c.
21167 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
21168 * configure.srv: Add powerpc64-*-linux*.
21169 * linux-ppc64-low.c: New file.
21171 2005-05-23 Orjan Friberg <orjanf@axis.com>
21173 * linux-cris-low.c: New file with support for CRIS.
21174 * linux-crisv32-low.c: Ditto for CRISv32.
21175 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
21176 (clean): Add reg-cris.c and reg-crisv32.c.
21177 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
21178 reg-crisv32.o, and reg-crisv32.c to make rules.
21179 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
21180 recognized targets.
21182 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
21184 * linux-low.c (fetch_register): Ensure buffer size is a multiple
21185 of sizeof (PTRACE_XFER_TYPE).
21186 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
21188 2005-05-12 Orjan Friberg <orjanf@axis.com>
21190 * target.h (struct target_ops): Add insert_watchpoint,
21191 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
21192 pointers for hardware watchpoint support.
21193 * linux-low.h (struct linux_target_ops): Ditto.
21194 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
21195 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
21196 to linux_target_ops.
21197 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
21199 * server.c (main): Recognize 'Z' and 'z' packets.
21201 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
21203 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
21204 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
21205 (the_low_target): Add new members.
21207 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21209 * proc-service.c (ps_lgetregs): Search all_processes instead of
21212 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21214 * server.c (start_inferior): Change return type to int.
21215 (attach_inferior): Change sigptr to int *.
21216 (handle_v_cont, handle_v_requests): Change signal to int *.
21217 (main): Change signal to int.
21219 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
21221 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
21222 * configure.srv: Add m32r*-*-linux*.
21223 * linux-m32r-low.c: New file.
21225 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
21227 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
21229 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21231 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
21232 Take unsigned long arguments for PIDs.
21233 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
21234 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
21235 (wait_for_sigstop, linux_resume_one_process)
21236 (regsets_fetch_inferior_registers, linux_send_signal)
21237 (linux_read_auxv): Likewise. Update the types of variables holding
21238 PIDs. Update format string specifiers.
21239 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
21240 * remote-utils.c (prepare_resume_reply): Likewise.
21241 * server.c (cont_thread, general_thread, step_thread)
21242 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
21244 (handle_query): Update format specifiers.
21245 (handle_v_cont, main): Use strtoul for thread IDs.
21246 * server.h (struct inferior_list_entry): Use unsigned long for ID.
21247 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
21248 (general_thread, step_thread, thread_from_wait)
21249 (old_thread_from_wait): Update.
21250 * target.h (struct thread_resume): Use unsigned long for THREAD.
21251 (struct target_ops): Use unsigned long for arguments to attach and
21254 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
21256 * acinclude.m4: Include bfd/bfd.m4 directly.
21257 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
21258 <agriffis@toolchain.org>.
21259 * aclocal.m4, configure: Regenerated.
21261 2005-01-07 Andrew Cagney <cagney@gnu.org>
21263 * configure.ac: Rename configure.in, require autoconf 2.59.
21264 * configure: Re-generate.
21266 2004-12-08 Daniel Jacobowitz <dan@debian.org>
21268 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
21269 LIBS when finished.
21270 * aclocal.m4: Regenerated.
21271 * configure: Regenerated.
21273 2004-11-21 Andreas Schwab <schwab@suse.de>
21275 * linux-m68k-low.c (m68k_num_gregs): Define.
21276 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
21277 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
21278 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
21279 (m68k_breakpoint_at): New. Add to the_low_target.
21281 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
21282 srv_linux_thread_db to yes.
21284 2004-10-20 Joel Brobecker <brobecker@gnat.com>
21286 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
21287 (ARCH_SET_FS): Likewise.
21288 (ARCH_GET_FS): Likewise.
21289 (ARCH_GET_GS): Likewise.
21291 2004-10-16 Daniel Jacobowitz <dan@debian.org>
21293 * linux-i386-low.c (ps_get_thread_area): New.
21294 * linux-x86-64-low.c (ps_get_thread_area): New.
21295 * linux-low.c: Include <sys/syscall.h>.
21296 (linux_kill_one_process): Don't kill the first thread here.
21297 (linux_kill): Kill the first thread here.
21298 (kill_lwp): New function.
21299 (send_sigstop, linux_send_signal): Use it.
21300 * proc-service.c: Clean up #ifdefs.
21301 (fpregset_info): Delete.
21302 (ps_lgetregs): Update and enable implementation.
21303 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
21305 * remote-utils.c (struct sym_cache, symbol_cache): New.
21306 (input_interrupt): Print a clearer message.
21307 (async_io_enabled): New variable.
21308 (enable_async_io, disable_async_io): Use it. Update comments.
21309 (look_up_one_symbol): Use the symbol cache.
21310 * thread-db.c (thread_db_look_up_symbols): New function.
21311 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
21313 2004-10-16 Daniel Jacobowitz <dan@debian.org>
21315 * configure.in: Test for -rdynamic.
21316 * configure: Regenerated.
21317 * Makefile (INTERNAL_LDFLAGS): New.
21318 (gdbserver, gdbreplay): Use it.
21320 2004-09-02 Andrew Cagney <cagney@gnu.org>
21322 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
21324 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
21326 * linux-low.c (linux_wait): Clear all_processes list also.
21328 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
21330 * linux-low.c: Include <errno.h>. Remove extern declaration of
21333 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
21335 * gdbreplay.c, server.h, utils.c: Update copyright years.
21337 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21339 * server.c (main): Print child status or termination signal from
21340 variable 'signal', not 'sig'.
21342 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21344 * linux-low.c (linux_read_memory): Change return type to
21345 int. Check for and return error from ptrace().
21346 * target.c (read_inferior_memory): Change return type to int. Pass
21347 back return status from the_target->read_memory().
21348 * target.h (struct target_ops): Adapt *read_memory() prototype.
21350 (read_inferior_memory): Adapt prototype.
21351 * server.c (main): Return an error packet if
21352 read_inferior_memory() returns an error.
21354 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
21356 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
21357 Unify with other clean targets.
21359 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21361 * server.c (handle_v_cont): Call set_desired_inferior.
21363 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21365 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
21367 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21369 * linux-low.c (linux_wait): Unblock async I/O.
21370 (linux_resume): Block and enable async I/O.
21371 * remote-utils.c (block_async_io, unblock_async_io): New functions.
21372 * server.h (block_async_io, unblock_async_io): Add prototypes.
21374 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21376 * remote-utils.c (remote_open): Print a status notice after
21377 opening a TCP port.
21378 * server.c (attach_inferior): Print a status notice after
21381 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21383 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
21385 2004-02-26 Daniel Jacobowitz <drow@mvista.com>
21387 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
21389 * server.c, target.h: Update copyright years.
21391 2004-02-25 Roland McGrath <roland@redhat.com>
21393 * target.h (struct target_ops): New member `read_auxv'.
21394 * server.c (handle_query): Handle qPart:auxv:read: query using that.
21395 * linux-low.c (linux_read_auxv): New function.
21396 (linux_target_ops): Initialize `read_auxv' member to that.
21398 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21400 Committed by Jim Blandy <jimb@redhat.com>.
21402 * linux-s390-low.c (s390_num_regs): Update.
21403 (s390_regmap): Remove control registers. Use __s390x__ predefine
21404 instead of GPR_SIZE to distiguish s390 and s390x targets.
21406 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
21408 * linux-low.c: Update copyright year.
21409 (check_removed_breakpoint): Clear pending_is_breakpoint.
21410 (linux_set_resume_request, linux_queue_one_thread)
21411 (resume_status_pending_p): New functions.
21412 (linux_continue_one_thread): Use process->resume.
21413 (linux_resume): Only resume threads if there are no pending events.
21414 * linux-low.h (struct process_info): Add resume request
21417 2004-01-30 Daniel Jacobowitz <drow@mvista.com>
21419 * regcache.c (new_register_cache): Clear the allocated register
21420 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
21422 2003-10-13 Daniel Jacobowitz <drow@mvista.com>
21424 * linux-low.c (linux_resume): Take a struct thread_resume *
21426 (linux_wait): Update call.
21427 (resume_ptr): New static variable.
21428 (linux_continue_one_thread): Renamed from
21429 linux_continue_one_process. Use resume_ptr.
21430 (linux_resume): Use linux_continue_one_thread.
21431 * server.c (handle_v_cont, handle_v_requests): New functions.
21432 (myresume): New function.
21433 (main): Handle 'v' case.
21434 * target.h (struct thread_resume): New type.
21435 (struct target_ops): Change argument of "resume" to struct
21437 (myresume): Delete macro.
21439 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
21441 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
21442 (uninstall): Support DESTDIR.
21444 Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
21446 * configure.srv: Add xscale*linux copy of arm*linux entry.
21448 2003-07-24 Daniel Jacobowitz <drow@mvista.com>
21450 * linux-arm-low.c (arm_reinsert_addr): New function.
21451 (the_low_target): Add arm_reinsert_addr.
21453 2003-07-08 Mark Kettenis <kettenis@gnu.org>
21455 * mem-break.c: Remove whitespace at end of file.
21457 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
21459 * configure.in: Check whether we need to prototype strerror.
21460 * server.h: Optionally prototype strerror.
21461 * gdbreplay.c (perror_with_name): Use strerror.
21462 * linux-low.c (linux_attach_lwp): Use strerror.
21463 * utils.c (perror_with_name): Use strerror.
21464 * config.in, configure: Regenerated.
21466 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
21468 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
21469 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
21471 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
21473 * Makefile.in (SFILES): Update.
21474 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
21475 low-sun3.c: Remove files.
21477 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
21479 * linux-low.c: Move comment to linux_thread_alive where it belonged.
21480 (linux_detach_one_process, linux_detach): New functions.
21481 (linux_target_ops): Add linux_detach.
21482 * server.c (main): Handle 'D' packet.
21483 * target.h (struct target_ops): Add "detach" member.
21484 (detach_inferior): Define.
21486 2003-06-13 Mark Kettenis <kettenis@gnu.org>
21488 From Kelley Cook <kelleycook@wideopenwest.com>:
21489 * configure.srv: Accept i[34567]86 variants.
21491 2003-06-05 Daniel Jacobowitz <drow@mvista.com>
21493 * linux-low.c (linux_wait_for_event): Correct comment typos.
21494 (linux_resume_one_process): Call check_removed_breakpoint.
21495 (linux_send_signal): New function.
21496 (linux_target_ops): Add linux_send_signal.
21497 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
21499 * target.h (struct target_ops): Add send_signal.
21501 2003-05-29 Jim Blandy <jimb@redhat.com>
21503 * linux-low.c (usr_store_inferior_registers): Transfer buf in
21504 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
21505 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
21506 away part of the register's value.
21508 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
21510 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
21511 (linux_wait_for_event, linux_init_signals): Likewise.
21513 2003-03-17 Daniel Jacobowitz <drow@mvista.com>
21515 * configure.in: Check for stdlib.h.
21516 * configure: Regenerated.
21517 * config.in: Regenerated.
21519 2003-01-04 Andreas Schwab <schwab@suse.de>
21521 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
21523 2003-01-02 Andrew Cagney <ac131313@redhat.com>
21525 * Makefile.in: Remove obsolete code.
21527 2002-11-20 Daniel Jacobowitz <drow@mvista.com>
21529 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
21530 defined(PT_FPR0_HI).
21532 2002-11-17 Stuart Hughes <seh@zee2.com>
21534 * linux-arm-low.c (arm_num_regs): Increase.
21535 (arm_regmap): Include status register.
21537 2002-11-17 Daniel Jacobowitz <drow@mvista.com>
21539 * linux-low.c (register_addr): Remove incorrect -1 check.
21541 2002-08-29 Daniel Jacobowitz <drow@mvista.com>
21543 * linux-low.c (linux_create_inferior): Call setpgid. Return
21545 (unstopped_p, linux_signal_pid): Remove.
21546 (linux_target_ops): Remove linux_signal_pid.
21547 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
21548 global instead of target method.
21549 * target.h (struct target_ops): Remove signal_pid. Update comment
21550 for create_inferior.
21551 * server.c (signal_pid): New variable.
21552 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
21553 gdbserver. Set the child to be the foreground process group.
21554 (attach_inferior): Set signal_pid.
21556 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
21558 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
21560 2002-08-20 Jim Blandy <jimb@redhat.com>
21562 * Makefile.in (LDFLAGS): Allow the configure script to establish a
21565 2002-08-01 Andrew Cagney <cagney@redhat.com>
21567 * Makefile.in: Make chill references obsolete.
21569 2002-07-24 Kevin Buettner <kevinb@redhat.com>
21571 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
21572 * configure: Regenerate.
21573 * config.in: Regenerate.
21575 2002-07-09 David O'Brien <obrien@FreeBSD.org>
21577 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
21578 (perror_with_name, remote_close, remote_open, expect, play): Static.
21580 2002-07-04 Michal Ludvig <mludvig@suse.cz>
21582 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
21583 byte offsets instead of an array of indexes.
21584 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
21586 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
21588 * regcache.c: Add comment.
21590 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
21592 * thread-db.c: New file.
21593 * proc-service.c: New file.
21594 * acinclude.m4: New file.
21595 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
21596 proc-service.o, and thread-db.o.
21597 (linux-low.o): Add USE_THREAD_DB.
21598 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
21599 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
21600 * aclocal.m4: Regenerated.
21601 * config.in: Regenerated.
21602 * configure: Regenerated.
21603 * configure.in: Check for proc_service.h, sys/procfs.h,
21604 thread_db.h, and linux/elf.h headrs.
21605 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
21606 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
21607 Check for -lthread_db and thread support.
21608 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
21609 PowerPC, and SuperH.
21610 * i387-fp.c: Constify arguments.
21611 * i387-fp.h: Likewise.
21612 * inferiors.c: (struct thread_info): Renamed from
21613 `struct inferior_info'. Remove PID member. Use generic inferior
21614 list header. All uses updated.
21615 (inferiors, signal_pid): Removed.
21616 (all_threads): New variable.
21617 (get_thread): Define.
21618 (add_inferior_to_list): New function.
21619 (for_each_inferior): New function.
21620 (change_inferior_id): New function.
21621 (add_inferior): Removed.
21622 (remove_inferior): New function.
21623 (add_thread): New function.
21624 (free_one_thread): New function.
21625 (remove_thread): New function.
21626 (clear_inferiors): Use for_each_inferior and free_one_thread.
21627 (find_inferior): New function.
21628 (find_inferior_id): New function.
21629 (inferior_target_data): Update argument type.
21630 (set_inferior_target_data): Likewise.
21631 (inferior_regcache_data): Likewise.
21632 (set_inferior_regcache_data): Likewise.
21633 * linux-low.c (linux_bp_reinsert): Remove.
21634 (all_processes, stopping_threads, using_thrads)
21635 (struct pending_signals, debug_threads, pid_of): New.
21636 (inferior_pid): Replace with macro.
21637 (struct inferior_linux_data): Remove.
21638 (get_stop_pc, add_process): New functions.
21639 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
21640 Use add_process and add_thread.
21641 (linux_attach_lwp): New function, based on old linux_attach. Use
21642 add_process and add_thread. Set stop_expected for new threads.
21643 (linux_attach): New function.
21644 (linux_kill_one_process): New function.
21645 (linux_kill): Kill all LWPs.
21646 (linux_thread_alive): Use find_inferior_id.
21647 (check_removed_breakpoints, status_pending_p): New functions.
21648 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
21649 Update. Use WNOHANG. Wait for cloned processes also. Update process
21650 struct for the found process.
21651 (linux_wait_for_event): New function.
21652 (linux_wait): Use it. Support LWPs.
21653 (send_sigstop, wait_for_sigstop, stop_all_processes)
21654 (linux_resume_one_process, linux_continue_one_process): New functions.
21655 (linux_resume): Support LWPs.
21656 (REGISTER_RAW_SIZE): Remove.
21657 (fetch_register): Use register_size instead. Call supply_register.
21658 (usr_store_inferior_registers): Likewise. Call collect_register.
21659 Fix recursive case.
21660 (regsets_fetch_inferior_registers): Improve error message.
21661 (regsets_store_inferior_registers): Add debugging.
21662 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
21663 (unstopped_p, linux_signal_pid): New functions.
21664 (linux_target_ops): Add linux_signal_pid.
21665 (linux_init_signals): New function.
21666 (initialize_low): Call it. Initialize using_threads.
21667 * regcache.c (inferior_regcache_data): Add valid
21669 (get_regcache): Fetch registers lazily. Add fetch argument
21670 and update all callers.
21671 (regcache_invalidate_one, regcache_invalidate): New
21673 (new_register_cache): Renamed from create_register_cache.
21674 Return the new regcache.
21675 (free_register_cache): Change argument to a void *.
21676 (registers_to_string, registers_from_string): Call get_regcache
21677 with fetch flag set.
21678 (register_data): Make static. Pass fetch flag to get_regcache.
21679 (supply_register): Call get_regcache with fetch flag clear.
21680 (collect_register): Call get_regcache with fetch flag set.
21681 (collect_register_as_string): New function.
21682 * regcache.h: Update.
21683 * remote-utils.c (putpkt): Flush after debug output and use
21685 Handle input interrupts while waiting for an ACK.
21686 (input_interrupt): Use signal_pid method.
21687 (getpkt): Flush after debug output and use stderr.
21688 (outreg): Use collect_register_as_string.
21689 (new_thread_notify, dead_thread_notify): New functions.
21690 (prepare_resume_reply): Check using_threads. Set thread_from_wait
21691 and general_thread.
21692 (look_up_one_symbol): Flush after debug output.
21693 * server.c (step_thread, server_waiting): New variables.
21694 (start_inferior): Don't use signal_pid. Update call to mywait.
21695 (attach_inferior): Update call to mywait.
21696 (handle_query): Handle qfThreadInfo and qsThreadInfo.
21697 (main): Don't fetch/store registers explicitly. Use
21698 set_desired_inferior. Support proposed ``Hs'' packet. Update
21700 * server.h: Update.
21701 (struct inferior_list, struct_inferior_list_entry): New.
21702 * target.c (set_desired_inferior): New.
21703 (write_inferior_memory): Constify.
21704 (mywait): New function.
21705 * target.h: Update.
21706 (struct target_ops): New signal_pid method.
21707 (mywait): Removed macro, added prototype.
21709 * linux-low.h (regset_func): Removed.
21710 (regset_fill_func, regset_store_func): New.
21711 (enum regset_type): New.
21712 (struct regset_info): Add type field. Use new operation types.
21713 (struct linux_target_ops): stop_pc renamed to get_pc.
21714 Add decr_pc_after_break and breakpoint_at.
21715 (get_process, get_thread_proess, get_process_thread)
21716 (strut process_info, all_processes, linux_attach_lwp)
21717 (thread_db_init): New.
21719 * linux-arm-low.c (arm_get_pc, arm_set_pc,
21720 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
21721 (the_low_target): Add new members.
21722 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
21723 (i386_store_fpxregset): Constify.
21724 (target_regsets): Add new kind identifier.
21725 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
21726 (i386_set_pc): Add debugging.
21727 (i386_breakpoint_at): New function.
21728 (the_low_target): Add new members.
21729 * linux-mips-low.c (mips_get_pc, mips_set_pc)
21730 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
21731 (mips_breakpoint_at): New.
21732 (the_low_target): Add new members.
21733 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
21734 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
21735 (the_low_target): Add new members.
21736 * linux-sh-low.c (sh_get_pc, sh_set_pc)
21737 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
21738 (the_low_target): Add new members.
21739 * linux-x86-64-low.c (target_regsets): Add new kind
21742 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
21744 From Martin Pool <mbp@samba.org>:
21745 * server.c (gdbserver_usage): New function.
21748 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
21750 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
21751 stop_at -> stop_pc.
21753 2002-05-04 Andrew Cagney <ac131313@redhat.com>
21755 * Makefile.in: Remove obsolete code.
21757 2002-04-24 Michal Ludvig <mludvig@suse.cz>
21759 * linux-low.c (regsets_fetch_inferior_registers),
21760 (regsets_store_inferior_registers): Removed cast to int from
21762 * regcache.h: Added declaration of struct inferior_info.
21764 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
21766 * inferiors.c (struct inferior_info): Add regcache_data.
21767 (add_inferior): Call create_register_cache.
21768 (clear_inferiors): Call free_register_cache.
21769 (inferior_regcache_data, set_inferior_regcache_data): New functions.
21770 * regcache.c (struct inferior_regcache_data): New.
21771 (registers): Remove.
21772 (get_regcache): New function.
21773 (create_register_cache, free_register_cache): New functions.
21774 (set_register_cache): Don't initialize the register cache here.
21775 (registers_to_string, registers_from_string, register_data): Call
21777 * regcache.h: Add prototypes.
21778 * server.h: Likewise.
21780 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
21782 * mem-break.c: New file.
21783 * mem-break.h: New file.
21784 * Makefile.in: Add mem-break.o rule; update server.h
21786 * inferiors.c (struct inferior_info): Add target_data
21788 (clear_inferiors): Free target_data member if set.
21789 (inferior_target_data, set_inferior_target_data): New functions.
21790 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
21791 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
21792 * linux-low.c (linux_bp_reinsert): New variable.
21793 (struct inferior_linux_data): New.
21794 (linux_create_inferior): Use set_inferior_target_data.
21795 (linux_attach): Likewise. Call add_inferior.
21796 (linux_wait_for_one_inferior): New function.
21797 (linux_wait): Call it.
21798 (linux_write_memory): Add const.
21799 (initialize_low): Call set_breakpoint_data.
21800 * linux-low.h (struct linux_target_ops): Add breakpoint
21802 * server.c (attach_inferior): Remove extra add_inferior
21804 * server.h: Include mem-break.h. Update inferior.c
21806 * target.c (read_inferior_memory)
21807 (write_inferior_memory): New functions.
21808 * target.h (read_inferior_memory)
21809 (write_inferior_memory): Change macros to prototypes.
21810 (struct target_ops): Update comments. Add const to write_memory
21813 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
21815 * linux-low.c (usr_store_inferior_registers): Support
21816 registers which are allowed to fail to store.
21817 * linux-low.h (linux_target_ops): Likewise.
21818 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
21819 (ppc_cannot_store_register): FPSCR may not be storable.
21821 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
21823 * server.h: Include <string.h> if HAVE_STRING_H.
21824 * ChangeLog: Correct paths in last ChangeLog entry.
21826 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
21828 * linux-low.h: Remove obsolete prototypes.
21829 (struct linux_target_ops): New.
21830 (extern the_low_target): New.
21831 * linux-low.c (num_regs, regmap): Remove declarations.
21832 (register_addr): Use the_low_target explicitly.
21833 (fetch_register): Likewise.
21834 (usr_fetch_inferior_registers): Likewise.
21835 (usr_store_inferior_registers): Likewise.
21836 * linux-arm-low.c (num_regs): Remove.
21837 (arm_num_regs): Define.
21838 (arm_regmap): Renamed from regmap, made static.
21839 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
21841 (arm_cannot_store_register): Renamed from cannot_store_register,
21843 (the_low_target): New.
21844 * linux-i386-low.c (num_regs): Remove.
21845 (i386_num_regs): Define.
21846 (i386_regmap): Renamed from regmap, made static.
21847 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
21849 (i386_cannot_store_register): Renamed from cannot_store_register,
21851 (the_low_target): New.
21852 * linux-ia64-low.c (num_regs): Remove.
21853 (ia64_num_regs): Define.
21854 (ia64_regmap): Renamed from regmap, made static.
21855 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
21857 (ia64_cannot_store_register): Renamed from cannot_store_register,
21859 (the_low_target): New.
21860 * linux-m68k-low.c (num_regs): Remove.
21861 (m68k_num_regs): Define.
21862 (m68k_regmap): Renamed from regmap, made static.
21863 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
21865 (m68k_cannot_store_register): Renamed from cannot_store_register,
21867 (the_low_target): New.
21868 * linux-mips-low.c (num_regs): Remove.
21869 (mips_num_regs): Define.
21870 (mips_regmap): Renamed from regmap, made static.
21871 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
21873 (mips_cannot_store_register): Renamed from cannot_store_register,
21875 (the_low_target): New.
21876 * linux-ppc-low.c (num_regs): Remove.
21877 (ppc_num_regs): Define.
21878 (ppc_regmap): Renamed from regmap, made static.
21879 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
21881 (ppc_cannot_store_register): Renamed from cannot_store_register,
21883 (the_low_target): New.
21884 * linux-s390-low.c (num_regs): Remove.
21885 (s390_num_regs): Define.
21886 (s390_regmap): Renamed from regmap, made static.
21887 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
21889 (s390_cannot_store_register): Renamed from cannot_store_register,
21891 (the_low_target): New.
21892 * linux-sh-low.c (num_regs): Remove.
21893 (sh_num_regs): Define.
21894 (sh_regmap): Renamed from regmap, made static.
21895 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
21897 (sh_cannot_store_register): Renamed from cannot_store_register,
21899 (the_low_target): New.
21900 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
21901 (the_low_target): New.
21903 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
21905 * Makefile.in: Add stamp-h target.
21906 * configure.in: Create stamp-h.
21907 * configure: Regenerated.
21909 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
21911 * inferiors.c: New file.
21912 * target.c: New file.
21913 * target.h: New file.
21914 * Makefile.in: Add target.o and inferiors.o. Update
21916 * linux-low.c (inferior_pid): New static variable,
21917 moved from server.c.
21918 (linux_create_inferior): Renamed from create_inferior.
21919 Call add_inferior. Return 0 on success instead of a PID.
21920 (linux_attach): Renamed from myattach.
21921 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
21922 (linux_thread_alive): Renamed from mythread_alive.
21923 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
21925 (linux_resume): Renamed from myresume. Add missing ``return 0''.
21926 (regsets_store_inferior_registers): Correct error message.
21927 Add missing ``return 0''.
21928 (linux_fetch_registers): Renamed from fetch_inferior_registers.
21929 (linux_store_registers): Renamed from store_inferior_registers.
21930 (linux_read_memory): Renamed from read_inferior_memory.
21931 (linux_write_memory): Renamed from write_inferior_memory.
21932 (linux_target_ops): New structure.
21933 (initialize_low): Call set_target_ops ().
21934 * remote-utils.c (unhexify): New function.
21935 (hexify): New function.
21936 (input_interrupt): Send signals to ``signal_pid''.
21937 * server.c (inferior_pid): Remove.
21938 (start_inferior): Update create_inferior call.
21939 (attach_inferior): Call add_inferior.
21940 (handle_query): New function.
21941 (main): Call handle_query for `q' packets.
21942 * server.h: Include "target.h". Remove obsolete prototypes.
21943 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
21945 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
21947 * Makefile.in: Add WARN_CFLAGS. Update configury
21949 * configure.in: Check for <string.h>
21950 * configure: Regenerate.
21951 * config.in: Regenerate.
21952 * gdbreplay.c: Include needed system headers.
21953 (remote_open): Remove strchr prototype.
21954 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
21955 * regcache.c (supply_register): Change buf argument to const void *.
21956 (supply_register_by_name): Likewise.
21957 (collect_register): Change buf argument to void *.
21958 (collect_register_by_name): Likewise.
21959 * regcache.h: Add missing prototypes.
21960 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
21961 * server.c (handle_query): New function.
21962 (attached): New static variable, moved out of main.
21963 (main): Quiet longjmp clobber warnings.
21964 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
21965 * utils.c (error): Remove NORETURN.