1 2020-04-08 Tom Tromey <tromey@adacore.com>
3 * win32-low.c (win32_require_context, suspend_one_thread): Use
4 windows_thread_info::suspend.
5 (continue_one_thread): Use windows_thread_info::resume.
6 * configure.srv (srv_tgtobj): Add windows-nat.o when needed.
8 2020-04-08 Tom Tromey <tromey@adacore.com>
10 * win32-i386-low.c (update_debug_registers)
11 (i386_prepare_to_resume, i386_thread_added): Update.
13 2020-04-08 Tom Tromey <tromey@adacore.com>
15 * win32-low.c (child_add_thread): Use new.
16 (delete_thread_info): Use delete.
18 2020-04-08 Tom Tromey <tromey@adacore.com>
20 * win32-low.h (struct windows_thread_info): Remove.
22 2020-04-08 Tom Tromey <tromey@adacore.com>
24 * win32-low.h (struct windows_thread_info): Rename from
25 win32_thread_info. Remove typedef.
26 (struct win32_target_ops, win32_require_context): Update.
27 * win32-low.c (win32_get_thread_context)
28 (win32_set_thread_context, win32_prepare_to_resume)
29 (win32_require_context, thread_rec, child_add_thread)
30 (delete_thread_info, continue_one_thread)
31 (child_fetch_inferior_registers, child_store_inferior_registers)
32 (win32_resume, suspend_one_thread, win32_get_tib_address):
34 * win32-i386-low.c (update_debug_registers)
35 (win32_get_current_dr, i386_get_thread_context)
36 (i386_prepare_to_resume, i386_thread_added, i386_single_step)
37 (i386_fetch_inferior_register, i386_store_inferior_register):
39 * win32-arm-low.c (arm_get_thread_context)
40 (arm_fetch_inferior_register, arm_store_inferior_register):
43 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
45 * linux-low.h (struct linux_target_ops): Remove.
46 (the_low_target): Remove.
47 * linux-x86-low.cc (the_low_target): Remove.
48 * linux-aarch64-low.cc (the_low_target): Ditto.
49 * linux-arm-low.cc (the_low_target): Ditto.
50 * linux-bfin-low.cc (the_low_target): Ditto.
51 * linux-cris-low.cc (the_low_target): Ditto.
52 * linux-crisv32-low.cc (the_low_target): Ditto.
53 * linux-ia64-low.cc (the_low_target): Ditto.
54 * linux-m32r-low.cc (the_low_target): Ditto.
55 * linux-m68k-low.cc (the_low_target): Ditto.
56 * linux-mips-low.cc (the_low_target): Ditto.
57 * linux-nios2-low.cc (the_low_target): Ditto.
58 * linux-ppc-low.cc (the_low_target): Ditto.
59 * linux-riscv-low.cc (the_low_target): Ditto.
60 * linux-s390-low.cc (the_low_target): Ditto.
61 * linux-sh-low.cc (the_low_target): Ditto.
62 * linux-sparc-low.cc (the_low_target): Ditto.
63 * linux-tic6x-low.cc (the_low_target): Ditto.
64 * linux-tile-low.cc (the_low_target): Ditto.
65 * linux-xtensa-low.cc (the_low_target): Ditto.
67 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
69 Remove the 'get_ipa_tdesc_idx' linux target op and let a concrete
70 linux target define the op by overriding the declaration in
71 process_stratum_target.
73 * linux-low.h (struct linux_target_ops): Remove the op.
74 (class linux_process_target) <get_ipa_tdesc_idx>: Remove.
75 * linux-low.cc (linux_process_target::get_ipa_tdesc_idx): Remove.
76 * linux-x86-low.cc (class x86_target) <get_ipa_tdesc_idx>: Declare.
77 (x86_get_ipa_tdesc_idx): Turn into...
78 (x86_target::get_ipa_tdesc_idx): ...this.
79 (the_low_target): Remove the op field.
80 * linux-ppc-low.cc (class ppc_target) <get_ipa_tdesc_idx>: Declare.
81 (ppc_get_ipa_tdesc_idx): Turn into...
82 (ppc_target::get_ipa_tdesc_idx): ...this.
83 (the_low_target): Remove the op field.
84 * linux-s390-low.cc (class s390_target) <get_ipa_tdesc_idx>: Declare.
85 (s390_get_ipa_tdesc_idx): Turn into...
86 (s390_target::get_ipa_tdesc_idx): ...this.
87 (the_low_target): Remove the op field.
89 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
91 Turn the 'get_syscall_trapinfo' linux target op into a method
92 of process_stratum_target.
94 * linux-low.h (struct linux_target_ops): Remove the op.
95 (class linux_process_target) <get_syscall_trapinfo>
96 <gdb_catch_this_syscall>
97 <low_supports_catch_syscall>
98 <low_get_syscall_trapinfo>: Declare.
99 * linux-low.cc (get_syscall_trapinfo): Turn into...
100 (linux_process_target::get_syscall_trapinfo): ...this.
101 (linux_process_target::low_get_syscall_trapinfo): Define.
102 (gdb_catch_this_syscall_p): Turn into...
103 (linux_process_target::gdb_catch_this_syscall): ...this.
104 (linux_process_target::low_supports_catch_syscall): Define.
106 Update the callers below.
108 (linux_process_target::wait_1)
109 (linux_process_target::supports_catch_syscall)
111 * linux-x86-low.cc (class x86_target) <low_supports_catch_syscall>
112 <low_get_syscall_trapinfo>: Declare.
113 (x86_target::low_supports_catch_syscall): Define.
114 (x86_get_syscall_trapinfo): Turn into...
115 (x86_target::low_get_syscall_trapinfo): ...this.
116 (the_low_target): Remove the op field.
117 * linux-aarch64-low.cc (class aarch64_target)
118 <low_supports_catch_syscall>
119 <low_get_syscall_trapinfo>: Declare.
120 (aarch64_target::low_supports_catch_syscall): Define.
121 (aarch64_get_syscall_trapinfo): Turn into...
122 (aarch64_target::low_get_syscall_trapinfo): ...this.
123 (the_low_target): Remove the op field.
124 * linux-arm-low.cc (class arm_target) <low_supports_catch_syscall>
125 <low_get_syscall_trapinfo>: Declare.
126 (arm_target::low_supports_catch_syscall): Define.
127 (arm_get_syscall_trapinfo): Turn into...
128 (arm_target::low_get_syscall_trapinfo): ...this.
129 (the_low_target): Remove the op field.
130 * linux-ppc-low.cc (the_low_target): Remove the op field.
131 * linux-s390-low.cc (the_low_target): Remove the op field.
133 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
135 Remove the 'supports_hardware_single_step' linux target op and
136 override the process_stratum_target's op definition in
137 linux_process_target to return true.
139 * linux-low.h (struct linux_target_ops): Remove the op.
140 (class linux_process_target) <finish_step_over>
141 <maybe_hw_step>: Declare.
142 * linux-low.cc (can_hardware_single_step): Remove.
143 (maybe_hw_step): Turn into...
144 (linux_process_target::maybe_hw_step): ...this.
145 (finish_step_over): Turn into...
146 (linux_process_target::finish_step_over): ...this.
147 (linux_process_target::supports_hardware_single_step): Update
150 Update the callers below.
152 (linux_process_target::single_step)
153 (linux_process_target::resume_one_lwp_throw)
155 * linux-arm-low.cc (class arm_target)
156 <supports_hardware_single_step>: Declare.
157 (arm_supports_hardware_single_step): Turn into...
158 (arm_target::supports_hardware_single_step): ...this.
159 (the_low_target): Remove the op field.
160 * linux-x86-low.cc (x86_supports_hardware_single_step): Remove.
161 (the_low_target): Remove the op field.
162 * linux-aarch64-low.cc (aarch64_supports_hardware_single_step):
164 (the_low_target): Remove the op field.
165 * linux-bfin-low.cc (bfin_supports_hardware_single_step): Remove.
166 (the_low_target): Remove the op field.
167 * linux-crisv32-low.cc (cris_supports_hardware_single_step): Remove.
168 (the_low_target): Remove the op field.
169 * linux-m32r-low.cc (m32r_supports_hardware_single_step): Remove.
170 (the_low_target): Remove the op field.
171 * linux-m68k-low.cc (m68k_supports_hardware_single_step): Remove.
172 (the_low_target): Remove the op field.
173 * linux-ppc-low.cc (ppc_supports_hardware_single_step): Remove.
174 (the_low_target): Remove the op field.
175 * linux-s390-low.cc (s390_supports_hardware_single_step): Remove.
176 (the_low_target): Remove the op field.
177 * linux-sh-low.cc (sh_supports_hardware_single_step): Remove.
178 (the_low_target): Remove the op field.
179 * linux-tic6x-low.cc (tic6x_supports_hardware_single_step): Remove.
180 (the_low_target): Remove the op field.
181 * linux-tile-low.cc (tile_supports_hardware_single_step): Remove.
182 (the_low_target): Remove the op field.
183 * linux-xtensa-low.cc (xtensa_supports_hardware_single_step):
185 (the_low_target): Remove the op field.
187 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
189 Turn the 'supports_range_stepping' linux target op into a method
190 of linux_process_target.
192 * linux-low.h (struct linux_target_ops): Remove the op.
193 (class linux_process_target) <low_supports_range_stepping>: Declare.
194 * linux-low.cc (linux_process_target::low_supports_range_stepping):
196 (linux_process_target::supports_range_stepping): Update the call
198 * linux-x86-low.cc (class x86_target)
199 <low_supports_range_stepping>: Declare.
200 (x86_supports_range_stepping): Turn into...
201 (x86_target::low_supports_range_stepping): ...this.
202 (the_low_target): Remove the op field.
203 * linux-aarch64-low.cc (class aarch64_target)
204 <low_supports_range_stepping>: Declare.
205 (aarch64_supports_range_stepping): Turn into...
206 (aarch64_target::low_supports_range_stepping): ...this.
207 (the_low_target): Remove the op field.
208 * linux-arm-low.cc (the_low_target): Remove the op field.
209 * linux-bfin-low.cc (the_low_target): Ditto.
210 * linux-crisv32-low.cc (the_low_target): Ditto.
211 * linux-m32r-low.cc (the_low_target): Ditto.
212 * linux-m68k-low.cc (the_low_target): Ditto.
213 * linux-ppc-low.cc (the_low_target): Ditto.
214 * linux-s390-low.cc (the_low_target): Ditto.
215 * linux-sh-low.cc (the_low_target): Ditto.
216 * linux-tic6x-low.cc (the_low_target): Ditto.
217 * linux-tile-low.cc (the_low_target): Ditto.
218 * linux-xtensa-low.cc (the_low_target): Ditto.
220 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
222 Remove the 'emit_ops' linux target ops and let the concrete
223 linux target define the op by overriding the declaration of
224 process_stratum_target.
226 * linux-low.h (struct linux_target_ops): Remove the op.
227 (class linux_process_target) <emit_ops>: Remove.
228 * linux-low.cc (linux_process_target::emit_ops): Remove.
229 * linux-x86-low.cc (class x86_target) <emit_ops>: Declare.
230 (x86_emit_ops): Turn into...
231 (x86_target::emit_ops): ...this.
232 (the_low_target): Remove the op field.
233 * linux-aarch64-low.cc (class aarch64_target) <emit_ops>: Declare.
234 (aarch64_emit_ops): Turn into...
235 (aarch64_target::emit_ops): ...this.
236 (the_low_target): Remove the op field.
237 * linux-ppc-low.cc (class ppc_target) <emit_ops>: Declare.
238 (ppc_emit_ops): Turn into...
239 (ppc_target::emit_ops): ...this.
240 (the_low_target): Remove the op field.
241 * linux-s390-low.cc (class s390_target) <emit_ops>: Declare.
242 (s390_emit_ops): Turn into...
243 (s390_target::emit_ops): ...this.
244 (the_low_target): Remove the op field.
245 * linux-arm-low.cc (the_low_target): Remove the op field.
246 * linux-bfin-low.cc (the_low_target): Ditto.
247 * linux-crisv32-low.cc (the_low_target): Ditto.
248 * linux-m32r-low.cc (the_low_target): Ditto.
249 * linux-m68k-low.cc (the_low_target): Ditto.
250 * linux-sh-low.cc (the_low_target): Ditto.
251 * linux-tic6x-low.cc (the_low_target): Ditto.
252 * linux-tile-low.cc (the_low_target): Ditto.
253 * linux-xtensa-low.cc (the_low_target): Ditto.
255 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
257 Remove the 'install_fast_tracepoint_jump_pad' and
258 'get_min_fast_tracepoint_insn_len' linux target ops to let the
259 concrete linux target define the ops by overriding the declarations
260 of process_stratum_target.
262 * linux-low.h (struct linux_target_ops): Remove the ops.
263 (class linux_process_target) <supports_fast_tracepoints>
264 <install_fast_tracepoint_jump_pad>
265 <get_min_fast_tracepoint_insn_len>: Remove.
266 * linux-low.cc (linux_process_target::supports_fast_tracepoints)
267 (linux_process_target::install_fast_tracepoint_jump_pad)
268 (linux_process_target::get_min_fast_tracepoint_insn_len): Remove.
269 * linux-x86-low.cc (class x86_target) <supports_fast_tracepoints>
270 <install_fast_tracepoint_jump_pad>
271 <get_min_fast_tracepoint_insn_len>: Declare.
272 (x86_target::supports_fast_tracepoints): Define.
273 (x86_install_fast_tracepoint_jump_pad): Turn into...
274 (x86_target::install_fast_tracepoint_jump_pad): ...this.
275 (x86_get_min_fast_tracepoint_insn_len): Turn into...
276 (x86_target::get_min_fast_tracepoint_insn_len): ...this.
277 (the_low_target): Remove the op fields.
278 * linux-aarch64-low.cc (class aarch64_target)
279 <supports_fast_tracepoints>
280 <install_fast_tracepoint_jump_pad>
281 <get_min_fast_tracepoint_insn_len>: Declare.
282 (aarch64_target::supports_fast_tracepoints): Define.
283 (aarch64_install_fast_tracepoint_jump_pad): Turn into...
284 (aarch64_target::install_fast_tracepoint_jump_pad): ...this.
285 (aarch64_get_min_fast_tracepoint_insn_len): Turn into...
286 (aarch64_target::get_min_fast_tracepoint_insn_len): ...this.
287 (the_low_target): Remove the op fields.
288 * linux-ppc-low.cc (class ppc_target) <supports_fast_tracepoints>
289 <install_fast_tracepoint_jump_pad>
290 <get_min_fast_tracepoint_insn_len>: Declare.
291 (ppc_target::supports_fast_tracepoints): Define.
292 (ppc_install_fast_tracepoint_jump_pad): Turn into...
293 (ppc_target::install_fast_tracepoint_jump_pad): ...this.
294 (ppc_get_min_fast_tracepoint_insn_len): Turn into...
295 (ppc_target::get_min_fast_tracepoint_insn_len): ...this.
296 (the_low_target): Remove the op fields.
297 * linux-s390-low.cc (class s390_target) <supports_fast_tracepoints>
298 <install_fast_tracepoint_jump_pad>
299 <get_min_fast_tracepoint_insn_len>: Declare.
300 (s390_target::supports_fast_tracepoints): Define.
301 (s390_install_fast_tracepoint_jump_pad): Turn into...
302 (s390_target::install_fast_tracepoint_jump_pad): ...this.
303 (s390_get_min_fast_tracepoint_insn_len): Turn into...
304 (s390_target::get_min_fast_tracepoint_insn_len): ...this.
305 (the_low_target): Remove the op fields.
306 * linux-arm-low.cc (the_low_target): Remove the op fields.
307 * linux-bfin-low.cc (the_low_target): Ditto.
308 * linux-crisv32-low.cc (the_low_target): Ditto.
309 * linux-m32r-low.cc (the_low_target): Ditto.
310 * linux-m68k-low.cc (the_low_target): Ditto.
311 * linux-sh-low.cc (the_low_target): Ditto.
312 * linux-tic6x-low.cc (the_low_target): Ditto.
313 * linux-tile-low.cc (the_low_target): Ditto.
314 * linux-xtensa-low.cc (the_low_target): Ditto.
316 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
318 Turn the 'get_thread_area' linux target op into a method of
319 process_stratum_target.
321 * linux-low.h (struct linux_target_ops): Remove the op.
322 (class linux_process_target) <stuck_in_jump_pad>
323 <linux_fast_tracepoint_collecting>
324 <low_get_thread_area>: Declare.
325 * linux-low.cc (supports_fast_tracepoints): Remove.
326 (linux_fast_tracepoint_collecting): Turn into...
327 (linux_process_target::linux_fast_tracepoint_collecting): ...this.
328 (linux_process_target::low_get_thread_area): Define.
329 (stuck_in_jump_pad_callback): Turn into...
330 (linux_process_target::stuck_in_jump_pad): ...this.
332 Update the caller below.
334 (linux_process_target::stabilize_threads)
336 * linux-x86-low.cc (class x86_target) <low_get_thread_area>:
338 (x86_get_thread_area): Turn into...
339 (x86_target::low_get_thread_area): ...this.
340 (the_low_target): Remove the op field.
341 * linux-aarch64-low.cc (class aarch64_target) <low_get_thread_area>:
343 (aarch64_get_thread_area): Turn into...
344 (aarch64_target::low_get_thread_area): ...this.
345 (the_low_target): Remove the op field.
346 * linux-ppc-low.cc (class ppc_target) <low_get_thread_area>:
348 (ppc_get_thread_area): Turn into...
349 (ppc_target::low_get_thread_area): ...this.
350 (the_low_target): Remove the op field.
351 * linux-s390-low.cc (class s390_target) <low_get_thread_area>:
353 (s390_get_thread_area): Turn into...
354 (s390_target::low_get_thread_area): ...this.
355 (the_low_target): Remove the op field.
356 * linux-arm-low.cc (the_low_target): Remove the op field.
357 * linux-bfin-low.cc (the_low_target): Ditto.
358 * linux-crisv32-low.cc (the_low_target): Ditto.
359 * linux-m32r-low.cc (the_low_target): Ditto.
360 * linux-m68k-low.cc (the_low_target): Ditto.
361 * linux-sh-low.cc (the_low_target): Ditto.
362 * linux-tic6x-low.cc (the_low_target): Ditto.
363 * linux-tile-low.cc (the_low_target): Ditto.
364 * linux-xtensa-low.cc (the_low_target): Ditto.
366 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
368 Remote the 'supports_tracepoints' linux target op and let the
369 concrete linux target define it by overriding the op declared in
370 process_stratum_target.
372 * linux-low.h (struct linux_target_ops): Remove the op.
373 (class linux_process_target) <supports_tracepoints>: Remove.
374 * linux-low.cc (linux_process_target::supports_tracepoints): Remove.
375 * linux-x86-low.cc (class x86_target) <supports_tracepoints>:
377 (x86_supports_tracepoints): Turn into...
378 (x86_target::supports_tracepoints): ...this.
379 (the_low_target): Remove the op field.
380 * linux-aarch64-low.cc (class aarch64_target)
381 <supports_tracepoints>: Declare.
382 (aarch64_supports_tracepoints): Turn into...
383 (aarch64_target::supports_tracepoints): ...this.
384 (the_low_target): Remove the op field.
385 * linux-ppc-low.cc (class ppc_target) <supports_tracepoints>:
387 (ppc_supports_tracepoints): Turn into...
388 (ppc_target::supports_tracepoints): ...this.
389 (the_low_target): Remove the op field.
390 * linux-s390-low.cc (class s390_target) <supports_tracepoints>:
392 (s390_supports_tracepoints): Turn into...
393 (s390_target::supports_tracepoints): ...this.
394 (the_low_target): Remove the op field.
395 * linux-arm-low.cc (the_low_target): Remove the op field.
396 * linux-bfin-low.cc (the_low_target): Ditto.
397 * linux-crisv32-low.cc (the_low_target): Ditto.
398 * linux-m32r-low.cc (the_low_target): Ditto.
399 * linux-m68k-low.cc (the_low_target): Ditto.
400 * linux-sh-low.cc (the_low_target): Ditto.
401 * linux-tic6x-low.cc (the_low_target): Ditto.
402 * linux-tile-low.cc (the_low_target): Ditto.
403 * linux-xtensa-low.cc (the_low_target): Ditto.
405 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
407 Remove the 'process_qsupported' linux target op and let a concrete
408 linux target define the op by overriding the op declaration in
409 process_stratum_target.
411 * linux-low.h (struct linux_target_ops): Remove the op.
412 (class linux_process_target) <process_qsupported>: Remove.
413 * linux-low.cc (linux_process_target::process_qsupported): Remove.
414 * linux-x86-low.cc (class x86_target) <process_qsupported>: Declare.
415 (x86_linux_process_qsupported): Turn into...
416 (x86_target::process_qsupported): ...this.
417 (the_low_target): Remove the op field.
418 * linux-aarch64-low.cc (the_low_target): Remove the op
420 * linux-arm-low.cc (the_low_target): Ditto.
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-ppc-low.cc (the_low_target): Ditto.
426 * linux-s390-low.cc (the_low_target): Ditto.
427 * linux-sh-low.cc (the_low_target): Ditto.
428 * linux-tic6x-low.cc (the_low_target): Ditto.
429 * linux-tile-low.cc (the_low_target): Ditto.
430 * linux-xtensa-low.cc (the_low_target): Ditto.
432 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
434 Turn the 'prepare_to_resume' linux target op into a method of
435 linux_process_target.
437 * linux-low.h (struct linux_target_ops): Remove the op.
438 (class linux_process_target) <low_prepare_to_resume>: Declare.
439 * linux-low.cc (linux_process_target::low_prepare_to_resume):
442 Update the callers below:
444 (linux_process_target::resume_one_lwp_throw)
445 (linux_process_target::low_prepare_to_resume)
447 * linux-x86-low.cc (class x86_target) <low_prepare_to_resume>:
449 (x86_target::low_prepare_to_resume): Define.
450 (the_low_target): Remove the op field.
451 * linux-aarch64-low.cc (class aarch64_target)
452 <low_prepare_to_resume>: Declare.
453 (aarch64_target::low_prepare_to_resume): Define.
454 (the_low_target): Remove the op field.
455 * linux-arm-low.cc (class arm_target) <low_prepare_to_resume>:
457 (arm_prepare_to_resume): Turn into...
458 (arm_target::low_prepare_to_resume): ...this.
459 (the_low_target): Remove the op field.
460 * linux-mips-low.cc (class mips_target) <low_prepare_to_resume>:
462 (mips_linux_prepare_to_resume): Turn into...
463 (mips_target::low_prepare_to_resume): ...this.
464 (the_low_target): Remove the op field.
465 * linux-bfin-low.cc (the_low_target): Remove the op field.
466 * linux-crisv32-low.cc (the_low_target): Ditto.
467 * linux-m32r-low.cc (the_low_target): Ditto.
468 * linux-m68k-low.cc (the_low_target): Ditto.
469 * linux-ppc-low.cc (the_low_target): Ditto.
470 * linux-s390-low.cc (the_low_target): Ditto.
471 * linux-sh-low.cc (the_low_target): Ditto.
472 * linux-tic6x-low.cc (the_low_target): Ditto.
473 * linux-tile-low.cc (the_low_target): Ditto.
474 * linux-xtensa-low.cc (the_low_target): Ditto.
476 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
478 Turn the 'new_process', 'delete_process', 'new_thread',
479 'delete_thread', and 'new_fork' linux target ops into methods
480 of linux_process_target.
482 * linux-low.h (struct linux_target_ops): Remove the ops.
483 (class linux_process_target) <add_linux_process>
488 <check_zombie_leaders>
494 <low_new_fork>: Declare.
495 * linux-low.cc (delete_lwp): Turn into...
496 (linux_process_target::delete_lwp): ...this.
497 (linux_process_target::low_delete_thread): Define.
498 (linux_add_process): Turn into...
499 (linux_process_target::add_linux_process): ...this.
500 (linux_process_target::low_new_process): Define.
501 (linux_process_target::low_delete_process): Define.
502 (linux_process_target::low_new_fork): Define.
503 (add_lwp): Turn into...
504 (linux_process_target::add_lwp): ...this.
505 (linux_process_target::low_new_thread): Define.
506 (linux_attach_lwp): Turn into...
507 (linux_process_target::attach_lwp): ...this.
508 (linux_detach_one_lwp): Turn into...
509 (linux_process_target::detach_one_lwp): ...this.
510 (linux_detach_lwp_callback): Remove and inline...
511 (linux_process_target::detach): ...here.
512 (check_zombie_leaders): Turn into...
513 (linux_process_target::check_zombie_leaders): ...this.
514 (filter_exit_event): Turn into...
515 (linux_process_target::filter_exit_event): ...this.
517 Update the callers below.
519 (linux_process_target::handle_extended_wait)
520 (linux_process_target::create_inferior)
521 (attach_proc_task_lwp_callback)
522 (linux_process_target::attach)
523 (linux_process_target::detach)
524 (linux_process_target::mourn)
525 * thread-db.cc (attach_thread)
527 * linux-x86-low.cc (class x86_target) <low_new_process>
531 <low_new_fork>: Declare.
532 (x86_linux_new_process): Turn into...
533 (x86_target::low_new_process): ...this.
534 (x86_linux_delete_process): Turn into...
535 (x86_target::low_delete_process): ...this.
536 (x86_target::low_new_thread): Define.
537 (x86_target::low_delete_thread): Define.
538 (x86_linux_new_fork): Turn into...
539 (x86_target::low_new_fork): ...this.
540 (the_low_target): Remove the op fields.
541 * linux-aarch64-low.cc (class aarch64_target) <low_new_process>
545 <low_new_fork>: Declare.
546 (aarch64_linux_new_process): Turn into...
547 (aarch64_target::low_new_process): ...this.
548 (aarch64_linux_delete_process): Turn into...
549 (aarch64_target::low_delete_process): ...this.
550 (aarch64_target::low_new_thread): Define.
551 (aarch64_target::low_delete_thread): Define.
552 (aarch64_linux_new_fork): Turn into...
553 (aarch64_target::low_new_fork): ...this.
554 (the_low_target): Remove the op fields.
555 * linux-arm-low.cc (class arm_target) <low_new_process>
559 <low_new_fork>: Declare.
560 (arm_new_process): Turn into...
561 (arm_target::low_new_process): ...this.
562 (arm_delete_process): Turn into...
563 (arm_target::low_delete_process): ...this.
564 (arm_new_thread): Turn into...
565 (arm_target::low_new_thread): ...this.
566 (arm_delete_thread): Turn into...
567 (arm_target::low_delete_thread): ...this.
568 (arm_new_fork): Turn into...
569 (arm_target::low_new_fork): ...this.
570 (the_low_target): Remove the op fields.
571 * linux-mips-low.cc (class mips_target) <low_new_process>
575 <low_new_fork>: Declare.
576 (mips_linux_new_process): Turn into...
577 (mips_target::low_new_process): ...this.
578 (mips_linux_delete_process): Turn into...
579 (mips_target::low_delete_process): ...this.
580 (mips_linux_new_thread): Turn into...
581 (mips_target::low_new_thread): ...this.
582 (mips_linux_delete_thread): Turn into...
583 (mips_target::low_delete_thread): ...this.
584 (mips_linux_new_fork): Turn into...
585 (mips_target::low_new_fork): ...this.
586 (the_low_target): Remove the op fields.
587 * linux-bfin-low.cc (the_low_target): Remove the op fields.
588 * linux-crisv32-low.cc (the_low_target): Ditto.
589 * linux-m32r-low.cc (the_low_target): Ditto.
590 * linux-m68k-low.cc (the_low_target): Ditto.
591 * linux-ppc-low.cc (the_low_target): Ditto.
592 * linux-s390-low.cc (the_low_target): Ditto.
593 * linux-sh-low.cc (the_low_target): Ditto.
594 * linux-tic6x-low.cc (the_low_target): Ditto.
595 * linux-tile-low.cc (the_low_target): Ditto.
596 * linux-xtensa-low.cc (the_low_target): Ditto.
598 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
600 Turn the 'siginfo_fixup' linux target op into a method of
601 linux_process_target.
603 * linux-low.h (struct linux_target_ops): Remove the op.
604 (class linux_process_target) <siginfo_fixup>
605 <low_siginfo_fixup>: Declare.
606 * linux-low.cc (siginfo_fixup): Turn into...
607 (linux_process_target::siginfo_fixup): ...this.
608 (linux_process_target::low_siginfo_fixup): Define.
609 * linux-x86-low.cc (class x86_target) <low_siginfo_fixup>: Declare.
610 (x86_siginfo_fixup): Turn into...
611 (x86_target::low_siginfo_fixup): ...this.
612 (the_low_target): Remove the op field.
613 * linux-aarch64-low.cc (class aarch64_target):
614 <low_siginfo_fixup>: Declare.
615 (aarch64_linux_siginfo_fixup): Turn into...
616 (aarch64_target::low_siginfo_fixup): ...this.
617 (the_low_target): Remove the op field.
618 * linux-arm-low.cc (the_low_target): Remove the op field.
619 * linux-bfin-low.cc (the_low_target): Ditto.
620 * linux-crisv32-low.cc (the_low_target): Ditto.
621 * linux-m32r-low.cc (the_low_target): Ditto.
622 * linux-m68k-low.cc (the_low_target): Ditto.
623 * linux-mips-low.cc (the_low_target): Ditto.
624 * linux-ppc-low.cc (the_low_target): Ditto.
625 * linux-s390-low.cc (the_low_target): Ditto.
626 * linux-sh-low.cc (the_low_target): Ditto.
627 * linux-tic6x-low.cc (the_low_target): Ditto.
628 * linux-tile-low.cc (the_low_target): Ditto.
629 * linux-xtensa-low.cc (the_low_target): Ditto.
631 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
633 Turn the 'collect_ptrace_register' and 'supply_ptrace_register'
634 linux target ops into methods of linux_process_target.
636 * linux-low.h (struct linux_target_ops): Remove the ops.
637 (class linux_process_target) <low_collect_ptrace_register>
638 <low_store_ptrace_register>: Declare.
639 * linux-low.cc (linux_process_target::low_collect_ptrace_register)
640 (linux_process_target::low_supply_ptrace_register): Define.
642 Update the callers below.
644 (linux_process_target::fetch_register)
645 (linux_process_target::store_register)
647 * linux-x86-low.cc (the_low_target): Remove the op fields.
648 * linux-aarch64-low.cc (the_low_target): Ditto.
649 * linux-arm-low.cc (the_low_target): Ditto.
650 * linux-bfin-low.cc (the_low_target): Ditto.
651 * linux-crisv32-low.cc (the_low_target): Ditto.
652 * linux-m32r-low.cc (the_low_target): Ditto.
653 * linux-m68k-low.cc (the_low_target): Ditto.
654 * linux-sh-low.cc (the_low_target): Ditto.
655 * linux-sparc-low.cc (the_low_target): Ditto.
656 * linux-tic6x-low.cc (the_low_target): Ditto.
657 * linux-tile-low.cc (the_low_target): Ditto.
658 * linux-xtensa-low.cc (the_low_target): Ditto.
659 * linux-mips-low.cc (class mips_target)
660 <low_collect_ptrace_register>
661 <low_supply_ptrace_register>: Declare.
662 (mips_collect_ptrace_register): Turn into ...
663 (mips_target::low_collect_ptrace_register): ...this.
664 (mips_supply_ptrace_register): Turn into...
665 (mips_target::low_supply_ptrace_register): ...this.
666 (the_low_target): Remove the op fields.
667 * linux-ppc-low.cc (class ppc_target)
668 <low_collect_ptrace_register>
669 <low_supply_ptrace_register>: Declare.
670 (ppc_collect_ptrace_register): Turn into ...
671 (ppc_target::low_collect_ptrace_register): ...this.
672 (ppc_supply_ptrace_register): Turn into ...
673 (ppc_target::low_supply_ptrace_register): ...this.
674 (ppc_fill_gregset): Update for the calls to
675 low_collect_ptrace_register.
676 (the_low_target): Remove the op fields.
677 * linux-s390-low.cc (class s390_target)
678 <low_collect_ptrace_register>
679 <low_supply_ptrace_register>: Declare.
680 (s390_collect_ptrace_register): Turn into ...
681 (s390_target::low_collect_ptrace_register): ...this.
682 (s390_supply_ptrace_register): Turn into ...
683 (s390_target::low_supply_ptrace_register): ...this.
684 (s390_fill_gregset): Update for the calls to
685 low_collect_ptrace_register.
686 (the_low_target): Remove the op fields.
688 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
690 Turn the 'stopped_by_watchpoint' and 'stopped_data_address' linux
691 target ops into methods of linux_process_target.
693 * linux-low.h (struct linux_target_ops): Remove the ops.
694 (class linux_process_target) <check_stopped_by_watchpoint>
695 <low_stopped_by_watchpoint>
696 <low_stopped_data_address>: Declare.
697 * linux-low.cc (check_stopped_by_watchpoint): Turn into...
698 (linux_process_target::check_stopped_by_watchpoint): ...this.
699 (linux_process_target::low_stopped_by_watchpoint): Define.
700 (linux_process_target::low_stopped_data_address): Define.
701 * linux-x86-low.cc (class x86_target) <low_stopped_by_watchpoint>
702 <low_stopped_data_address>: Declare.
703 (x86_stopped_by_watchpoint): Turn into...
704 (x86_target::low_stopped_by_watchpoint): ...this.
705 (x86_stopped_data_address): Turn into...
706 (x86_target::low_stopped_data_address): ...this.
707 (the_low_target): Remove the op fields.
708 * linux-aarch64-low.cc (class aarch64_target)
709 <low_stopped_by_watchpoint>
710 <low_stopped_data_address>: Declare.
711 (aarch64_stopped_by_watchpoint): Turn into...
712 (aarch64_target::low_stopped_by_watchpoint): ...this.
713 (aarch64_stopped_data_address): Turn into...
714 (aarch64_target::low_stopped_data_address): ...this.
715 (the_low_target): Remove the op fields.
716 * linux-arm-low.cc (class arm_target) <low_stopped_by_watchpoint>
717 <low_stopped_data_address>: Declare.
718 (arm_stopped_by_watchpoint): Turn into...
719 (arm_target::low_stopped_by_watchpoint): ...this.
720 (arm_stopped_data_address): Turn into...
721 (arm_target::low_stopped_data_address): ...this.
722 (the_low_target): Remove the op fields.
723 * linux-crisv32-low.cc (class crisv32_target)
724 <low_stopped_by_watchpoint>
725 <low_stopped_data_address>: Declare.
726 (cris_stopped_by_watchpoint): Turn into...
727 (crisv32_target::low_stopped_by_watchpoint): ...this.
728 (cris_stopped_data_address): Turn into...
729 (crisv32_target::low_stopped_data_address): ...this.
730 (the_low_target): Remove the op fields.
731 * linux-mips-low.cc (class mips_target) <low_stopped_by_watchpoint>
732 <low_stopped_data_address>: Declare.
733 (mips_stopped_by_watchpoint): Turn into...
734 (mips_target::low_stopped_by_watchpoint): ...this.
735 (mips_stopped_data_address): Turn into...
736 (mips_target::low_stopped_data_address): ...this.
737 (the_low_target): Remove the op fields.
738 * linux-bfin-low.cc (the_low_target): Remove the op fields.
739 * linux-m32r-low.cc (the_low_target): Ditto.
740 * linux-m68k-low.cc (the_low_target): Ditto.
741 * linux-ppc-low.cc (the_low_target): Ditto.
742 * linux-s390-low.cc (the_low_target): Ditto.
743 * linux-sh-low.cc (the_low_target): Ditto.
744 * linux-sparc-low.cc (the_low_target): Ditto.
745 * linux-tic6x-low.cc (the_low_target): Ditto.
746 * linux-tile-low.cc (the_low_target): Ditto.
747 * linux-xtensa-low.cc (the_low_target): Ditto.
749 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
751 Turn the 'insert_point' and 'remove_point' linux target ops into
752 methods of linux_process_target.
754 * linux-low.h (struct linux_target_ops): Remove the ops.
755 (class linux_process_target) <low_insert_point>
756 <low_remove_point>: Declare.
757 * linux-low.cc (linux_process_target::low_insert_point)
758 (linux_process_target::low_remove_point): Define.
759 (linux_process_target::insert_point)
760 (linux_process_target::remove_point): Update for calls to
761 low_insert_point and low_remove_point.
762 * linux-x86-low.cc (class x86_target) <low_insert_point>
763 <low_remove_point>: Declare.
764 (x86_insert_point): Turn into...
765 (x86_target::low_insert_point): ...this.
766 (x86_remove_point): Turn into...
767 (x86_target::low_remove_point): ...this.
768 (the_low_target): Remove the op fields.
769 * linux-aarch64-low.cc (class aarch64_target) <low_insert_point>
770 <low_remove_point>: Declare.
771 (aarch64_insert_point): Turn into...
772 (aarch64_target::low_insert_point): ...this.
773 (aarch64_remove_point): Turn into...
774 (aarch64_target::low_remove_point): ...this.
775 (the_low_target): Remove the op fields.
776 * linux-arm-low.cc (class arm_target) <low_insert_point>
777 <low_remove_point>: Declare.
778 (arm_insert_point): Turn into...
779 (arm_target::low_insert_point): ...this.
780 (arm_remove_point): Turn into...
781 (arm_target::low_remove_point): ...this.
782 (the_low_target): Remove the op fields.
783 * linux-crisv32-low.cc (class crisv32_target) <low_insert_point>
784 <low_remove_point>: Declare.
785 (crisv32_insert_point): Turn into...
786 (crisv32_target::low_insert_point): ...this.
787 (crisv32_remove_point): Turn into...
788 (crisv32_target::low_remove_point): ...this.
789 (the_low_target): Remove the op fields.
790 * linux-mips-low.cc (class mips_target) <low_insert_point>
791 <low_remove_point>: Declare.
792 (mips_insert_point): Turn into...
793 (mips_target::low_insert_point): ...this.
794 (mips_remove_point): Turn into...
795 (mips_target::low_remove_point): ...this.
796 (the_low_target): Remove the op fields.
797 * linux-ppc-low.cc (class ppc_target) <low_insert_point>
798 <low_remove_point>: Declare.
799 (ppc_insert_point): Turn into...
800 (ppc_target::low_insert_point): ...this.
801 (ppc_remove_point): Turn into...
802 (ppc_target::low_remove_point): ...this.
803 (the_low_target): Remove the op fields.
804 * linux-bfin-low.cc (the_low_target): Remove the op fields.
805 * linux-m32r-low.cc (the_low_target): Ditto.
806 * linux-m68k-low.cc (the_low_target): Ditto.
807 * linux-s390-low.cc (the_low_target): Ditto.
808 * linux-sh-low.cc (the_low_target): Ditto.
809 * linux-sparc-low.cc (the_low_target): Ditto.
810 * linux-tic6x-low.cc (the_low_target): Ditto.
811 * linux-tile-low.cc (the_low_target): Ditto.
812 * linux-xtensa-low.cc (the_low_target): Ditto.
814 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
816 Remove the 'supports_z_point_type' linux target op and let the
817 concrete linux target define it by overriding the op declared in
818 process_stratum_target.
820 * linux-low.cc (linux_process_target::supports_z_point_type):
822 * linux-low.h (struct linux_target_ops): Remove the op.
823 (class linux_process_target) <supports_z_point_type>: Remove.
824 * linux-x86-low.cc (class x86_target) <supports_z_point_type>:
826 (x86_supports_z_point_type): Turn into...
827 (x86_target::supports_z_point_type): ...this.
828 (the_low_target): Remove the op field.
829 * linux-aarch64-low.cc (class aarch64_target)
830 <supports_z_point_type>: Declare.
831 (aarch64_supports_z_point_type): Turn into...
832 (aarch64_target::supports_z_point_type): ...this.
833 (the_low_target): Remove the op field.
834 * linux-arm-low.cc (class arm_target) <supports_z_point_type>:
836 (arm_supports_z_point_type): Turn into...
837 (arm_target::supports_z_point_type): ...this.
838 (the_low_target): Remove the op field.
839 * linux-crisv32-low.cc (class crisv32_target)
840 <supports_z_point_type>: Declare.
841 (cris_supports_z_point_type): Turn into...
842 (crisv32_target::supports_z_point_type): ...this.
843 (the_low_target): Remove the op field.
844 * linux-mips-low.cc (class mips_target) <supports_z_point_type>:
846 (mips_supports_z_point_type): Turn into...
847 (mips_target::supports_z_point_type): ...this.
848 (the_low_target): Remove the op field.
849 * linux-ppc-low.cc (class ppc_target) <supports_z_point_type>:
851 (ppc_supports_z_point_type): Turn into...
852 (ppc_target::supports_z_point_type): ...this.
853 (the_low_target): Remove the op field.
854 * linux-s390-low.cc (class s390_target) <supports_z_point_type>:
856 (s390_supports_z_point_type): Turn into...
857 (s390_target::supports_z_point_type): ...this.
858 (the_low_target): Remove the op field.
859 * linux-bfin-low.cc (the_low_target): Remove the op field.
860 * linux-m32r-low.cc (the_low_target): Ditto.
861 * linux-m68k-low.cc (the_low_target): Ditto.
862 * linux-sh-low.cc (the_low_target): Ditto.
863 * linux-sparc-low.cc (the_low_target): Ditto.
864 * linux-tic6x-low.cc (the_low_target): Ditto.
865 * linux-tile-low.cc (the_low_target): Ditto.
866 * linux-xtensa-low.cc (the_low_target): Ditto.
868 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
870 Turn the 'breakpoint_at' linux target op into a method of
871 linux_process_target.
873 * linux-low.h (struct linux_target_ops): Remove the op.
874 (class linux_process_target) <low_breakpoint_at>: Declare.
876 Update the callers below:
878 * linux-low.cc (linux_process_target::save_stop_reason)
879 (linux_process_target::thread_still_has_status_pending)
880 (linux_process_target::wait_1)
882 * linux-x86-low.cc (class x86_target)
883 <low_breakpoint_at>: Declare.
884 (x86_breakpoint_at): Turn into...
885 (x86_target::low_breakpoint_at): ...this.
886 (the_low_target): Remove the op field.
887 * linux-aarch64-low.cc (class aarch64_target)
888 <low_breakpoint_at>: Declare.
889 (aarch64_breakpoint_at): Turn into...
890 (aarch64_target::low_breakpoint_at): ...this.
891 (the_low_target): Remove the op field.
892 * linux-arm-low.cc (class arm_target)
893 <low_breakpoint_at>: Declare.
894 (arm_target::low_breakpoint_at): Define.
895 (the_low_target): Remove the op field.
896 * linux-bfin-low.cc (class bfin_target)
897 <low_breakpoint_at>: Declare.
898 (bfin_breakpoint_at): Turn into...
899 (bfin_target::low_breakpoint_at): ...this.
900 (the_low_target): Remove the op field.
901 * linux-cris-low.cc (class cris_target)
902 <low_breakpoint_at>: Declare.
903 (cris_breakpoint_at): Turn into...
904 (cris_target::low_breakpoint_at): ...this.
905 (the_low_target): Remove the op field.
906 * linux-crisv32-low.cc (class crisv32_target)
907 <low_breakpoint_at>: Declare.
908 (crisv32_breakpoint_at): Turn into...
909 (crisv32_target::low_breakpoint_at): ...this.
910 (the_low_target): Remove the op field.
911 * linux-ia64-low.cc (class ia64_target)
912 <low_breakpoint_at>: Declare.
913 (ia64_target::low_breakpoint_at): Define.
914 * linux-m32r-low.cc (class m32r_target)
915 <low_breakpoint_at>: Declare.
916 (m32r_breakpoint_at): Turn into...
917 (m32r_target::low_breakpoint_at): ...this.
918 (the_low_target): Remove the op field.
919 * linux-m68k-low.cc (class m68k_target)
920 <low_breakpoint_at>: Declare.
921 (m68k_breakpoint_at): Turn into...
922 (m68k_target::low_breakpoint_at): ...this.
923 (the_low_target): Remove the op field.
924 * linux-mips-low.cc (class mips_target)
925 <low_breakpoint_at>: Declare.
926 (mips_breakpoint_at): Turn into...
927 (mips_target::low_breakpoint_at): ...this.
928 (the_low_target): Remove the op field.
929 * linux-nios2-low.cc (class nios2_target)
930 <low_breakpoint_at>: Declare.
931 (nios2_breakpoint_at): Turn into...
932 (nios2_target::low_breakpoint_at): ...this.
933 (the_low_target): Remove the op field.
934 * linux-ppc-low.cc (class ppc_target)
935 <low_breakpoint_at>: Declare.
936 (ppc_breakpoint_at): Turn into...
937 (ppc_target::low_breakpoint_at): ...this.
938 (the_low_target): Remove the op field.
939 * linux-riscv-low.cc (class riscv_target)
940 <low_breakpoint_at>: Declare.
941 (riscv_breakpoint_at): Turn into...
942 (riscv_target::low_breakpoint_at): ...this.
943 (the_low_target): Remove the op field.
944 * linux-s390-low.cc (class s390_target)
945 <low_breakpoint_at>: Declare.
946 (s390_breakpoint_at): Turn into...
947 (s390_target::low_breakpoint_at): ...this.
948 (the_low_target): Remove the op field.
949 * linux-sh-low.cc (class sh_target)
950 <low_breakpoint_at>: Declare.
951 (sh_breakpoint_at): Turn into...
952 (sh_target::low_breakpoint_at): ...this.
953 (the_low_target): Remove the op field.
954 * linux-sparc-low.cc (class sparc_target)
955 <low_breakpoint_at>: Declare.
956 (sparc_breakpoint_at): Turn into...
957 (sparc_target::low_breakpoint_at): ...this.
958 (the_low_target): Remove the op field.
959 * linux-tic6x-low.cc (class tic6x_target)
960 <low_breakpoint_at>: Declare.
961 (tic6x_breakpoint_at): Turn into...
962 (tic6x_target::low_breakpoint_at): ...this.
963 (the_low_target): Remove the op field.
964 * linux-tile-low.cc (class tile_target)
965 <low_breakpoint_at>: Declare.
966 (tile_breakpoint_at): Turn into...
967 (tile_target::low_breakpoint_at): ...this.
968 (the_low_target): Remove the op field.
969 * linux-xtensa-low.cc (class xtensa_target)
970 <low_breakpoint_at>: Declare.
971 (xtensa_breakpoint_at): Turn into...
972 (xtensa_target::low_breakpoint_at): ...this.
973 (the_low_target): Remove the op field.
975 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
977 Turn the 'decr_pc_after_break' linux_target_ops field into
978 a method of linux_process_target.
980 * linux-low.h (struct linux_target_ops)
981 <decr_pc_after_break>: Remove.
982 (class linux_process_target) <low_decr_pc_after_break>: New method
984 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
985 New method implementation.
987 Update the users below.
989 (linux_process_target::save_stop_reason)
990 (linux_process_target::wait_1)
991 * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
993 (x86_target::low_decr_pc_after_break): New method implementation.
994 (the_low_target): Remove the field.
995 * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
997 (bfin_target::low_decr_pc_after_break): New method implementation.
998 (the_low_target): Remove the field.
999 * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
1001 (m68k_target::low_decr_pc_after_break): New method implementation.
1002 (the_low_target): Remove the field.
1003 * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
1005 (s390_target::low_decr_pc_after_break): New method implementation.
1006 (the_low_target): Remove the field.
1007 * linux-aarch64-low.cc (the_low_target): Remove the field.
1008 * linux-arm-low.cc (the_low_target): Remove the field.
1009 * linux-cris-low.cc (the_low_target): Remove the field.
1010 * linux-crisv32-low.cc (the_low_target): Remove the field.
1011 * linux-m32r-low.cc (the_low_target): Remove the field.
1012 * linux-mips-low.cc (the_low_target): Remove the field.
1013 * linux-nios2-low.cc (the_low_target): Remove the field.
1014 * linux-ppc-low.cc (the_low_target): Remove the field.
1015 * linux-riscv-low.cc (the_low_target): Remove the field.
1016 * linux-sh-low.cc (the_low_target): Remove the field.
1017 * linux-sparc-low.cc (the_low_target): Remove the field.
1018 * linux-tic6x-low.cc (the_low_target): Remove the field.
1019 * linux-tile-low.cc (the_low_target): Remove the field.
1020 * linux-xtensa-low.cc (the_low_target): Remove the field.
1022 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1024 Remove the 'supports_software_single_step' linux target op and let
1025 the concrete linux target define it by overriding the op in
1026 process_stratum_target.
1027 Turn the 'get_next_pcs' linux target op into a method of
1028 linux_process_target.
1030 * linux-low.h (struct linux_target_ops): Remove the ops.
1031 (class linux_process_target) <supports_software_single_step>:
1033 <low_get_next_pcs>: Declare.
1034 * linux-low.cc (can_software_single_step): Remove.
1035 (linux_process_target::low_get_next_pcs): Define.
1036 (linux_process_target::supports_software_single_step): Remove.
1038 Update the callers below.
1040 (linux_process_target::handle_extended_wait)
1041 (linux_process_target::wait_1)
1042 (linux_process_target::install_software_single_step_breakpoints)
1043 (linux_process_target::single_step)
1044 (linux_process_target::thread_needs_step_over)
1045 (linux_process_target::proceed_one_lwp)
1046 (linux_process_target::supports_range_stepping)
1048 * linux-x86-low.cc (the_low_target): Remove the op field.
1049 * linux-aarch64-low.cc (the_low_target): Ditto.
1050 * linux-bfin-low.cc (the_low_target): Ditto.
1051 * linux-cris-low.cc (the_low_target): Ditto.
1052 * linux-crisv32-low.cc (the_low_target): Ditto.
1053 * linux-m32r-low.cc (the_low_target): Ditto.
1054 * linux-m68k-low.cc (the_low_target): Ditto.
1055 * linux-mips-low.cc (the_low_target): Ditto.
1056 * linux-nios2-low.cc (the_low_target): Ditto.
1057 * linux-ppc-low.cc (the_low_target): Ditto.
1058 * linux-riscv-low.cc (the_low_target): Ditto.
1059 * linux-s390-low.cc (the_low_target): Ditto.
1060 * linux-sh-low.cc (the_low_target): Ditto.
1061 * linux-sparc-low.cc (the_low_target): Ditto.
1062 * linux-tic6x-low.cc (the_low_target): Ditto.
1063 * linux-tile-low.cc (the_low_target): Ditto.
1064 * linux-xtensa-low.cc (the_low_target): Ditto.
1065 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
1066 <supports_software_single_step>: Declare.
1067 (arm_target::supports_software_single_step): Define.
1068 (arm_gdbserver_get_next_pcs): Turn into...
1069 (arm_target::low_get_next_pcs): ...this.
1070 (the_low_target): Remove the op field.
1072 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1074 Remove the 'sw_breakpoint_from_kind' linux target op, and let
1075 the concrete linux target define it by overriding the op
1076 in process_stratum_target.
1078 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
1080 * linux-low.h (struct linux_target_ops): Remove the op.
1081 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
1082 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
1084 (x86_sw_breakpoint_from_kind): Turn into...
1085 (x86_target::sw_breakpoint_from_kind): ...this.
1086 (the_low_target): Remove the op field.
1087 * linux-aarch64-low.cc (class aarch64_target)
1088 <sw_breakpoint_from_kind>: Declare.
1089 (aarch64_sw_breakpoint_from_kind): Turn into...
1090 (aarch64_target::sw_breakpoint_from_kind): ...this.
1091 (the_low_target): Remove the op field.
1092 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
1094 (arm_target::sw_breakpoint_from_kind): Define.
1095 (the_low_target): Remove the op field.
1096 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
1098 (bfin_sw_breakpoint_from_kind): Turn into...
1099 (bfin_target::sw_breakpoint_from_kind): ...this.
1100 (the_low_target): Remove the op field.
1101 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
1103 (cris_sw_breakpoint_from_kind): Turn into...
1104 (cris_target::sw_breakpoint_from_kind): ...this.
1105 (the_low_target): Remove the op field.
1106 * linux-crisv32-low.cc (class crisv32_target)
1107 <sw_breakpoint_from_kind>: Declare.
1108 (cris_sw_breakpoint_from_kind): Turn into...
1109 (crisv32_target::sw_breakpoint_from_kind): ...this.
1110 (the_low_target): Remove the op field.
1111 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
1113 (ia64_target::sw_breakpoint_from_kind): Define.
1114 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
1116 (m32r_sw_breakpoint_from_kind): Turn into...
1117 (m32r_target::sw_breakpoint_from_kind): ...this.
1118 (the_low_target): Remove the op field.
1119 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
1121 (m68k_sw_breakpoint_from_kind): Turn into...
1122 (m68k_target::sw_breakpoint_from_kind): ...this.
1123 (the_low_target): Remove the op field.
1124 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
1126 (mips_sw_breakpoint_from_kind): Turn into...
1127 (mips_target::sw_breakpoint_from_kind): ...this.
1128 (the_low_target): Remove the op field.
1129 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
1131 (nios2_sw_breakpoint_from_kind): Turn into...
1132 (nios2_target::sw_breakpoint_from_kind): ...this.
1133 (the_low_target): Remove the op field.
1134 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
1136 (ppc_sw_breakpoint_from_kind): Turn into...
1137 (ppc_target::sw_breakpoint_from_kind): ...this.
1138 (the_low_target): Remove the op field.
1139 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
1141 (riscv_sw_breakpoint_from_kind): Turn into...
1142 (riscv_target::sw_breakpoint_from_kind): ...this.
1143 (the_low_target): Remove the op field.
1144 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
1146 (s390_sw_breakpoint_from_kind): Turn into...
1147 (s390_target::sw_breakpoint_from_kind): ...this.
1148 (the_low_target): Remove the op field.
1149 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
1151 (sh_sw_breakpoint_from_kind): Turn into...
1152 (sh_target::sw_breakpoint_from_kind): ...this.
1153 (the_low_target): Remove the op field.
1154 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
1156 (sparc_sw_breakpoint_from_kind): Turn into...
1157 (sparc_target::sw_breakpoint_from_kind): ...this.
1158 (the_low_target): Remove the op field.
1159 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
1161 (tic6x_sw_breakpoint_from_kind): Turn into...
1162 (tic6x_target::sw_breakpoint_from_kind): ...this.
1163 (the_low_target): Remove the op field.
1164 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
1166 (tile_sw_breakpoint_from_kind): Turn into...
1167 (tile_target::sw_breakpoint_from_kind): ...this.
1168 (the_low_target): Remove the op field.
1169 * linux-xtensa-low.cc (class xtensa_target)
1170 <sw_breakpoint_from_kind>: Declare.
1171 (xtensa_sw_breakpoint_from_kind): Turn into...
1172 (xtensa_target::sw_breakpoint_from_kind): ...this.
1173 (the_low_target): Remove the op field.
1175 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1177 Remove the 'breakpoint_kind_from_pc' and
1178 'breakpoint_kind_from_current_state' linux target ops, and let the
1179 concrete linux target define them by overriding the ops of
1180 process_stratum_target.
1182 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
1184 (linux_process_target::breakpoint_kind_from_current_state): Remove.
1185 * linux-low.h (struct linux_target_ops): Remove ops.
1186 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
1187 <breakpoint_kind_from_current_state>: Remove.
1188 * linux-x86-low.cc (the_low_target): Remove the op fields.
1189 * linux-bfin-low.cc (the_low_target): Ditto.
1190 * linux-cris-low.cc (the_low_target): Ditto.
1191 * linux-crisv32-low.cc (the_low_target): Ditto.
1192 * linux-m32r-low.cc (the_low_target): Ditto.
1193 * linux-m68k-low.cc (the_low_target): Ditto.
1194 * linux-mips-low.cc (the_low_target): Ditto.
1195 * linux-nios2-low.cc (the_low_target): Ditto.
1196 * linux-ppc-low.cc (the_low_target): Ditto.
1197 * linux-s390-low.cc (the_low_target): Ditto.
1198 * linux-sh-low.cc (the_low_target): Ditto.
1199 * linux-sparc-low.cc (the_low_target): Ditto.
1200 * linux-tic6x-low.cc (the_low_target): Ditto.
1201 * linux-tile-low.cc (the_low_target): Ditto.
1202 * linux-xtensa-low.cc (the_low_target): Ditto.
1203 * linux-aarch64-low.cc (class aarch64_target)
1204 <breakpoint_kind_from_pc>
1205 <breakpoint_kind_from_current_state>: Declare.
1206 (aarch64_breakpoint_kind_from_pc): Turn into...
1207 (aarch64_target::breakpoint_kind_from_pc): ...this.
1208 (aarch64_breakpoint_kind_from_current_state): Turn into...
1209 (aarch64_target::breakpoint_kind_from_current_state): ...this.
1210 (the_low_target): Remove the op fields.
1211 * linux-arm-low.cc (class arm_target):
1212 <breakpoint_kind_from_pc>
1213 <breakpoint_kind_from_current_state>: Declare.
1214 (arm_target::breakpoint_kind_from_pc): Define.
1215 (arm_target::breakpoint_kind_from_current_state): Define.
1216 (the_low_target): Remove the op fields.
1217 * linux-riscv-low.cc (class riscv_target):
1218 <breakpoint_kind_from_pc>: Declare.
1219 (riscv_breakpoint_kind_from_pc): Turn into...
1220 (riscv_target::breakpoint_kind_from_pc): ...this.
1221 (the_low_target): Remove the op fields.
1223 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1225 Turn the 'get_pc' and 'set_pc' linux target ops into methods
1226 of linux_process_target.
1228 * linux-low.h (struct linux_target_ops): Remove the ops.
1229 (class linux_process_target) <low_supports_breakpoints>
1231 <low_set_pc>: Declare.
1232 * linux-low.cc (supports_breakpoints): Turn into...
1233 (linux_process_target::low_supports_breakpoints): ...this.
1234 (linux_process_target::low_get_pc): Define.
1235 (linux_process_target::low_set_pc): Define.
1237 Update the callers below.
1239 (linux_process_target::get_pc)
1240 (linux_process_target::save_stop_reason)
1241 (linux_process_target::maybe_move_out_of_jump_pad)
1242 (linux_process_target::wait_1)
1243 (linux_process_target::resume_one_lwp_throw)
1244 (linux_process_target::resume)
1245 (linux_process_target::proceed_all_lwps)
1246 (linux_process_target::read_pc)
1247 (linux_process_target::write_pc)
1249 * linux-x86-low.cc (class linux_process_target)
1250 <low_supports_breakpoints>
1252 <low_set_pc>: Declare.
1253 (x86_target::low_supports_breakpoints): Define.
1254 (x86_get_pc): Turn into...
1255 (x86_target::low_get_pc): ...this.
1256 (x86_set_pc): Turn into...
1257 (x86_target::low_set_pc): ...this.
1258 (the_low_target): Remove the op fields.
1259 * linux-arm-low.cc (class arm_target)
1260 <low_supports_breakpoints>
1262 <low_set_pc>: Declare.
1263 (arm_target::low_supports_breakpoints)
1264 (arm_target::low_get_pc)
1265 (arm_target::low_set_pc): Define.
1266 (the_low_target): Remove the op fields.
1267 * linux-bfin-low.cc (class bfin_target)
1268 <low_supports_breakpoints>
1270 <low_set_pc>: Declare.
1271 (bfin_target::low_supports_breakpoints)
1272 (bfin_target::low_get_pc)
1273 (bfin_target::low_set_pc): Define.
1274 (the_low_target): Remove the op fields.
1275 * linux-cris-low.cc (class cris_target)
1276 <low_supports_breakpoints>
1278 <low_set_pc>: Declare.
1279 (cris_target::low_supports_breakpoints)
1280 (cris_target::low_get_pc)
1281 (cris_target::low_set_pc): Define.
1282 (the_low_target): Remove the op fields.
1283 * linux-crisv32-low.cc (class crisv32_target)
1284 <low_supports_breakpoints>
1286 <low_set_pc>: Declare.
1287 (crisv32_target::low_supports_breakpoints)
1288 (crisv32_target::low_get_pc)
1289 (crisv32_target::low_set_pc): Define.
1290 (the_low_target): Remove the op fields.
1291 * linux-m32r-low.cc (class m32r_target)
1292 <low_supports_breakpoints>
1294 <low_set_pc>: Declare.
1295 (m32r_target::low_supports_breakpoints)
1296 (m32r_target::low_get_pc)
1297 (m32r_target::low_set_pc): Define.
1298 (the_low_target): Remove the op fields.
1299 * linux-m68k-low.cc (class m68k_target)
1300 <low_supports_breakpoints>
1302 <low_set_pc>: Declare.
1303 (m68k_target::low_supports_breakpoints)
1304 (m68k_target::low_get_pc)
1305 (m68k_target::low_set_pc): Define.
1306 (the_low_target): Remove the op fields.
1307 * linux-nios2-low.cc (class nios2_target)
1308 <low_supports_breakpoints>
1310 <low_set_pc>: Declare.
1311 (nios2_target::low_supports_breakpoints)
1312 (nios2_target::low_get_pc)
1313 (nios2_target::low_set_pc): Define.
1314 (the_low_target): Remove the op fields.
1315 * linux-sh-low.cc (class sh_target)
1316 <low_supports_breakpoints>
1318 <low_set_pc>: Declare.
1319 (sh_target::low_supports_breakpoints)
1320 (sh_target::low_get_pc)
1321 (sh_target::low_set_pc): Define.
1322 (the_low_target): Remove the op fields.
1323 * linux-xtensa-low.cc (class xtensa_target)
1324 <low_supports_breakpoints>
1326 <low_set_pc>: Declare.
1327 (xtensa_target::low_supports_breakpoints)
1328 (xtensa_target::low_get_pc)
1329 (xtensa_target::low_set_pc): Define.
1330 (the_low_target): Remove the op fields.
1331 * linux-sparc-low.cc (class sparc_target)
1332 <low_supports_breakpoints>
1333 <low_get_pc>: Declare.
1334 (sparc_target::low_supports_breakpoints)
1335 (sparc_target::low_get_pc): Define.
1336 (the_low_target): Remove the op fields.
1337 * linux-tile-low.cc (class tile_target)
1338 <low_supports_breakpoints>
1340 <low_set_pc>: Declare.
1341 (tile_target::low_supports_breakpoints)
1342 (tile_target::low_get_pc)
1343 (tile_target::low_set_pc): Define.
1344 (the_low_target): Remove the op fields.
1345 * linux-aarch64-low.cc (class aarch64_target)
1346 <low_supports_breakpoints>
1348 <low_set_pc>: Declare.
1349 (aarch64_target::low_supports_breakpoints): Define.
1350 (aarch64_get_pc): Turn into...
1351 (aarch64_target::low_get_pc): ...this.
1352 (aarch64_set_pc): Turn into...
1353 (aarch64_target::low_set_pc): ...this.
1354 (the_low_target): Remove the op fields.
1355 * linux-mips-low.cc (class mips_target)
1356 <low_supports_breakpoints>
1358 <low_set_pc>: Declare.
1359 (mips_target::low_supports_breakpoints): Define.
1360 (mips_get_pc): Turn into...
1361 (mips_target::low_get_pc): ...this.
1362 (mips_set_pc): Turn into...
1363 (mips_target::low_set_pc): ...this.
1364 (the_low_target): Remove the op fields.
1365 * linux-ppc-low.cc (class ppc_target)
1366 <low_supports_breakpoints>
1368 <low_set_pc>: Declare.
1369 (ppc_target::low_supports_breakpoints): Define.
1370 (ppc_get_pc): Turn into...
1371 (ppc_target::low_get_pc): ...this.
1372 (ppc_set_pc): Turn into...
1373 (ppc_target::low_set_pc): ...this.
1374 (the_low_target): Remove the op fields.
1375 * linux-riscv-low.cc (class riscv_target)
1376 <low_supports_breakpoints>
1378 <low_set_pc>: Declare.
1379 (riscv_target::low_supports_breakpoints): Define.
1380 (riscv_get_pc): Turn into...
1381 (riscv_target::low_get_pc): ...this.
1382 (riscv_set_pc): Turn into...
1383 (riscv_target::low_set_pc): ...this.
1384 (the_low_target): Remove the op fields.
1385 * linux-s390-low.cc (class s390_target)
1386 <low_supports_breakpoints>
1388 <low_set_pc>: Declare.
1389 (s390_target::low_supports_breakpoints): Define.
1390 (s390_get_pc): Turn into...
1391 (s390_target::low_get_pc): ...this.
1392 (s390_set_pc): Turn into...
1393 (s390_target::low_set_pc): ...this.
1394 (the_low_target): Remove the op fields.
1395 * linux-tic6x-low.cc (class tic6x_target)
1396 <low_supports_breakpoints>
1398 <low_set_pc>: Declare.
1399 (tic6x_target::low_supports_breakpoints): Define.
1400 (tic6x_get_pc): Turn into...
1401 (tic6x_target::low_get_pc): ...this.
1402 (tic6x_set_pc): Turn into...
1403 (tic6x_target::low_set_pc): ...this.
1404 (the_low_target): Remove the op fields.
1406 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1408 Turn some more static methods in linux-low into private methods
1409 of linux_process_target.
1411 * linux-low.cc (get_pc): Turn into...
1412 (linux_process_target::get_pc): ...this.
1413 (save_stop_reason): Turn into...
1414 (linux_process_target::save_stop_reason): ...this.
1415 (thread_still_has_status_pending_p): Turn into...
1416 (linux_process_target::thread_still_has_status_pending): ...this.
1417 (status_pending_p_callback): Turn into...
1418 (linux_process_target::status_pending_p_callback): ...this.
1419 (resume_stopped_resumed_lwps): Turn into...
1420 (linux_process_target::resume_stopped_resumed_lwps): ...this.
1421 (install_software_single_step_breakpoints): Turn into...
1422 (linux_process_target::install_software_single_step_breakpoints):
1424 (single_step): Turn into...
1425 (linux_process_target::single_step): ...this.
1426 (linux_resume_one_lwp_throw): Turn into...
1427 (linux_process_target::resume_one_lwp_throw): ...this.
1428 (linux_resume_one_lwp): Turn into...
1429 (linux_process_target::resume_one_lwp): ...this.
1430 (resume_status_pending_p): Turn into...
1431 (linux_process_target::resume_status_pending): ...this.
1432 (need_step_over_p): Turn into...
1433 (linux_process_target::thread_needs_step_over): ...this.
1434 (linux_resume_one_thread): Turn into...
1435 (linux_process_target::resume_one_thread): ...this.
1436 (proceed_one_lwp): Turn into...
1437 (linux_process_target::proceed_one_lwp): ...this.
1438 (unsuspend_and_proceed_one_lwp): Turn into...
1439 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
1441 Update the calls/references to the above functions below.
1443 (linux_process_target::handle_extended_wait)
1444 (linux_process_target::filter_event)
1445 (linux_process_target::wait_for_event_filtered)
1446 (linux_process_target::wait_1)
1447 (linux_process_target::move_out_of_jump_pad)
1448 (linux_process_target::start_step_over)
1449 (linux_process_target::resume)
1450 (linux_process_target::proceed_all_lwps)
1451 (regsets_store_inferior_registers)
1452 (linux_process_target::store_register)
1454 * linux-low.h (class linux_process_target)
1457 <thread_still_has_status_pending>
1458 <status_pending_p_callback>
1459 <resume_stopped_resumed_lwps>
1460 <install_software_single_step_breakpoints>
1462 <resume_one_lwp_throw>
1464 <resume_status_pending>
1465 <thread_needs_step_over>
1468 <unsuspend_and_proceed_one_lwp>: Declare.
1470 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1472 Turn the 'fetch_register' linux target op into a method of
1473 linux_process_target.
1475 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
1476 (class linux_process_target) <low_fetch_register>: Declare.
1477 * linux-x86-low.cc (the_low_target)
1478 * linux-aarch64-low.cc (the_low_target)
1479 * linux-arm-low.cc (the_low_target)
1480 * linux-bfin-low.cc (the_low_target)
1481 * linux-cris-low.cc (the_low_target)
1482 * linux-crisv32-low.cc (the_low_target)
1483 * linux-m32r-low.cc (the_low_target)
1484 * linux-m68k-low.cc (the_low_target)
1485 * linux-nios2-low.cc (the_low_target)
1486 * linux-ppc-low.cc (the_low_target)
1487 * linux-s390-low.cc (the_low_target)
1488 * linux-sh-low.cc (the_low_target)
1489 * linux-sparc-low.cc (the_low_target)
1490 * linux-tic6x-low.cc (the_low_target)
1491 * linux-tile-low.cc (the_low_target)
1492 * linux-xtensa-low.cc (the_low_target): Remove the op field.
1493 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
1495 (ia64_fetch_register): Turn into...
1496 (ia64_target::low_fetch_register): ...this.
1497 (the_low_target): Remove the op field.
1498 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
1500 (mips_fetch_register): Turn into...
1501 (mips_target::low_fetch_register): ...this.
1502 (the_low_target): Remove the op field.
1503 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
1505 (riscv_fetch_register): Turn into...
1506 (riscv_target::low_fetch_register): ...this.
1507 (the_low_target): Remove the op field.
1509 Update the callers below.
1511 * linux-low.cc (linux_process_target::fetch_registers)
1512 (linux_process_target::low_fetch_register)
1514 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1516 Turn the 'cannot_fetch_register' and 'cannot_store_register'
1517 linux target ops into methods of linux_process_target.
1519 * linux-low.h (struct linux_target_ops): Remove the low target ops.
1520 (class linux_process_target) <fetch_register>
1522 <usr_fetch_inferior_registers>
1523 <usr_store_inferior_registers>
1524 <low_cannot_fetch_register>
1525 <low_cannot_fetch_register> Declare.
1526 * linux-low.cc (fetch_register): Turn into...
1527 (linux_process_target::fetch_register): ...this.
1528 (store_register): Turn into ...
1529 (linux_process_target::store_register): ...this.
1530 (usr_fetch_inferior_registers): Turn into...
1531 (linux_process_target::usr_fetch_inferior_registers): ...this.
1532 (usr_store_inferior_registers): Turn into...
1533 (linux_process_target::usr_store_inferior_registers): ...this.
1534 * linux-x86-low.cc (class x86_target)
1535 <low_cannot_fetch_register>
1536 <low_cannot_store_register>: Declare.
1537 (x86_cannot_store_register): Turn into...
1538 (x86_target::low_cannot_store_register): ...this.
1539 (x86_cannot_fetch_register): Turn into...
1540 (x86_target::low_cannot_fetch_register): ...this.
1541 (the_low_target): Remove the target op fields.
1542 * linux-aarch64-low.cc (class aarch64_target)
1543 <low_cannot_fetch_register>
1544 <low_cannot_store_register>: Declare.
1545 (aarch64_target::low_cannot_fetch_register)
1546 (aarch64_target::low_cannot_store_register): Define.
1547 (the_low_target): Remove the op fields.
1548 * linux-arm-low.cc (class arm_target)
1549 <low_cannot_fetch_register>
1550 <low_cannot_store_register>: Declare.
1551 (arm_cannot_fetch_register): Turn into...
1552 (arm_target::low_cannot_fetch_register): ...this.
1553 (arm_cannot_store_register): Turn into...
1554 (arm_target::low_cannot_store_register): ...this.
1555 (the_low_target): Remove the op fields.
1556 * linux-bfin-low.cc (class bfin_target)
1557 <low_cannot_fetch_register>
1558 <low_cannot_store_register>: Declare.
1559 (bfin_cannot_fetch_register): Turn into...
1560 (bfin_target::low_cannot_fetch_register): ...this.
1561 (bfin_cannot_store_register): Turn into...
1562 (bfin_target::low_cannot_store_register): ...this.
1563 (the_low_target): Remove the op fields.
1564 * linux-cris-low.cc (class cris_target)
1565 <low_cannot_fetch_register>
1566 <low_cannot_store_register>: Declare.
1567 (cris_cannot_fetch_register): Turn into...
1568 (cris_target::low_cannot_fetch_register): ...this.
1569 (cris_cannot_store_register): Turn into...
1570 (cris_target::low_cannot_store_register): ...this.
1571 (the_low_target): Remove the op fields.
1572 * linux-crisv32-low.cc (class crisv32_target)
1573 <low_cannot_fetch_register>
1574 <low_cannot_store_register>: Declare.
1575 (crisv32_target::low_cannot_fetch_register)
1576 (crisv32_target::low_cannot_store_register): Define.
1577 (the_low_target): Remove the op fields.
1578 * linux-ia64-low.cc (class ia64_target)
1579 <low_cannot_fetch_register>
1580 <low_cannot_store_register>: Declare.
1581 (ia64_cannot_fetch_register): Turn into...
1582 (ia64_target::low_cannot_fetch_register): ...this.
1583 (ia64_cannot_store_register): Turn into...
1584 (ia64_target::low_cannot_store_register): ...this.
1585 (the_low_target): Remove the op fields.
1586 * linux-m32r-low.cc (class m32r_target)
1587 <low_cannot_fetch_register>
1588 <low_cannot_store_register>: Declare.
1589 (m32r_cannot_fetch_register): Turn into...
1590 (m32r_target::low_cannot_fetch_register): ...this.
1591 (m32r_cannot_store_register): Turn into...
1592 (m32r_target::low_cannot_store_register): ...this.
1593 (the_low_target): Remove the op fields.
1594 * linux-m68k-low.cc (class m68k_target)
1595 <low_cannot_fetch_register>
1596 <low_cannot_store_register>: Declare.
1597 (m68k_cannot_fetch_register): Turn into...
1598 (m68k_target::low_cannot_fetch_register): ...this.
1599 (m68k_cannot_store_register): Turn into...
1600 (m68k_target::low_cannot_store_register): ...this.
1601 (the_low_target): Remove the op fields.
1602 * linux-mips-low.cc (class mips_target)
1603 <low_cannot_fetch_register>
1604 <low_cannot_store_register>: Declare.
1605 (mips_cannot_fetch_register): Turn into...
1606 (mips_target::low_cannot_fetch_register): ...this.
1607 (mips_cannot_store_register): Turn into...
1608 (mips_target::low_cannot_store_register): ...this.
1609 (get_usrregs_info): Inline at the call sites in
1610 low_cannot_fetch_register and low_cannot_store_register,
1612 (the_low_target): Remove the op fields.
1613 * linux-nios2-low.cc (class nios2_target)
1614 <low_cannot_fetch_register>
1615 <low_cannot_store_register>: Declare.
1616 (nios2_cannot_fetch_register): Turn into...
1617 (nios2_target::low_cannot_fetch_register): ...this.
1618 (nios2_cannot_store_register): Turn into...
1619 (nios2_target::low_cannot_store_register): ...this.
1620 (the_low_target): Remove the op fields.
1621 * linux-ppc-low.cc (class ppc_target)
1622 <low_cannot_fetch_register>
1623 <low_cannot_store_register>: Declare.
1624 (ppc_cannot_fetch_register): Turn into...
1625 (ppc_target::low_cannot_fetch_register): ...this.
1626 (ppc_cannot_store_register): Turn into...
1627 (ppc_target::low_cannot_store_register): ...this.
1628 (the_low_target): Remove the op fields.
1629 * linux-riscv-low.cc (class riscv_target)
1630 <low_cannot_fetch_register>
1631 <low_cannot_store_register>: Declare.
1632 (riscv_target::low_cannot_fetch_register)
1633 (riscv_target::low_cannot_store_register): Define.
1634 (the_low_target): Remove the op fields.
1635 * linux-s390-low.cc (class s390_target)
1636 <low_cannot_fetch_register>
1637 <low_cannot_store_register>: Declare.
1638 (s390_cannot_fetch_register): Turn into...
1639 (s390_target::low_cannot_fetch_register): ...this.
1640 (s390_cannot_store_register): Turn into...
1641 (s390_target::low_cannot_store_register): ...this.
1642 (the_low_target): Remove the op fields.
1643 * linux-sh-low.cc (class sh_target)
1644 <low_cannot_fetch_register>
1645 <low_cannot_store_register>: Declare.
1646 (sh_cannot_fetch_register): Turn into...
1647 (sh_target::low_cannot_fetch_register): ...this.
1648 (sh_cannot_store_register): Turn into...
1649 (sh_target::low_cannot_store_register): ...this.
1650 (the_low_target): Remove the op fields.
1651 * linux-sparc-low.cc (class sparc_target)
1652 <low_cannot_fetch_register>
1653 <low_cannot_store_register>: Declare.
1654 (sparc_cannot_fetch_register): Turn into...
1655 (sparc_target::low_cannot_fetch_register): ...this.
1656 (sparc_cannot_store_register): Turn into...
1657 (sparc_target::low_cannot_store_register): ...this.
1658 (the_low_target): Remove the op fields.
1659 * linux-tic6x-low.cc (class tic6x_target)
1660 <low_cannot_fetch_register>
1661 <low_cannot_store_register>: Declare.
1662 (tic6x_cannot_fetch_register): Turn into...
1663 (tic6x_target::low_cannot_fetch_register): ...this.
1664 (tic6x_cannot_store_register): Turn into...
1665 (tic6x_target::low_cannot_store_register): ...this.
1666 (the_low_target): Remove the op fields.
1667 * linux-tile-low.cc (class tile_target)
1668 <low_cannot_fetch_register>
1669 <low_cannot_store_register>: Declare.
1670 (tile_cannot_fetch_register): Turn into...
1671 (tile_target::low_cannot_fetch_register): ...this.
1672 (tile_cannot_store_register): Turn into...
1673 (tile_target::low_cannot_store_register): ...this.
1674 (the_low_target): Remove the op fields.
1675 * linux-xtensa-low.cc (class xtensa_target)
1676 <low_cannot_fetch_register>
1677 <low_cannot_store_register>: Declare.
1678 (xtensa_target::low_cannot_fetch_register)
1679 (xtensa_target::low_cannot_store_register): Define.
1680 (the_low_target): Remove the op fields.
1682 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1684 Turn the 'regs_info' linux target op into a method of
1685 linux_process_target.
1687 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
1688 (class linux_process_target) <get_regs_info>: Define.
1690 Update the callers below.
1692 * linux-low.cc (linux_process_target::fetch_registers)
1693 (linux_process_target::store_registers)
1694 * proc-service.cc (gregset_info)
1696 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
1697 (x86_linux_regs_info): Turn into ...
1698 (x86_target::get_regs_info): ...this.
1699 (the_low_target): Remove the op field.
1700 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
1702 (aarch64_regs_info): Turn into ...
1703 (aarch64_target::get_regs_info): ...this.
1704 (the_low_target): Remove the op field.
1705 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
1706 (arm_regs_info): Turn into ...
1707 (arm_target::get_regs_info): ...this.
1708 (the_low_target): Remove the op field.
1709 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
1710 (bfin_regs_info): Turn into ...
1711 (bfin_target::get_regs_info): ...this.
1712 (the_low_target): Remove the op field.
1713 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
1714 (cris_regs_info): Turn into ...
1715 (cris_target::get_regs_info): ...this.
1716 (the_low_target): Remove the op field.
1717 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
1719 (crisv32_regs_info): Turn into ...
1720 (crisv32_target::get_regs_info): ...this.
1721 (the_low_target): Remove the op field.
1722 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
1723 (ia64_regs_info): Turn into ...
1724 (ia64_target::get_regs_info): ...this.
1725 (the_low_target): Remove the op field.
1726 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
1727 (m32r_regs_info): Turn into ...
1728 (m32r_target::get_regs_info): ...this.
1729 (the_low_target): Remove the op field.
1730 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
1731 (m68k_regs_info): Turn into ...
1732 (m68k_target::get_regs_info): ...this.
1733 (the_low_target): Remove the op field.
1734 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
1735 (mips_regs_info): Turn into ...
1736 (mips_target::get_regs_info): ...this.
1737 (the_low_target): Remove the op field.
1738 (get_usrregs_info): Update the call to the op.
1739 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
1740 (nios2_regs_info): Turn into ...
1741 (nios2_target::get_regs_info): ...this.
1742 (the_low_target): Remove the op field.
1743 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
1744 (ppc_regs_info): Turn into ...
1745 (ppc_target::get_regs_info): ...this.
1746 (the_low_target): Remove the op field.
1747 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
1748 (riscv_regs_info): Turn into ...
1749 (riscv_target::get_regs_info): ...this.
1750 (the_low_target): Remove the op field.
1751 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
1752 (s390_regs_info): Turn into ...
1753 (s390_target::get_regs_info): ...this.
1754 (the_low_target): Remove the op field.
1755 (s390_collect_ptrace_register)
1756 (s390_supply_ptrace_register)
1757 (s390_fill_gregset): Update the call to the op.
1758 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
1759 (sh_regs_info): Turn into ...
1760 (sh_target::get_regs_info): ...this.
1761 (the_low_target): Remove the op field.
1762 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
1763 (sparc_regs_info): Turn into ...
1764 (sparc_target::get_regs_info): ...this.
1765 (the_low_target): Remove the op field.
1766 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
1767 (tic6x_regs_info): Turn into ...
1768 (tic6x_target::get_regs_info): ...this.
1769 (the_low_target): Remove the op field.
1770 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
1771 (tile_regs_info): Turn into ...
1772 (tile_target::get_regs_info): ...this.
1773 (the_low_target): Remove the op field.
1774 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
1776 (xtensa_regs_info): Turn into ...
1777 (xtensa_target::get_regs_info): ...this.
1778 (the_low_target): Remove the op field.
1780 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1782 Turn the 'arch_setup' linux target op into a method of
1783 linux_process_target.
1785 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
1786 (class linux_process_target) <arch_setup_thread>
1787 <low_arch_setup>: New declarations.
1788 * linux-low.cc (linux_arch_setup): Delete.
1789 (linux_arch_setup_thread): Turn into...
1790 (linux_process_target::arch_setup_thread): ... this.
1792 Update the callers below.
1794 (linux_process_target::handle_extended_wait)
1795 (linux_process_target::post_create_inferior)
1796 (linux_process_target::filter_event)
1798 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
1800 (x86_linux_update_xmltarget): Turn into...
1801 (x86_target::update_xmltarget): ...this.
1802 (x86_linux_process_qsupported): Update the call to
1803 x86_linux_update_xmltarget.
1804 (x86_arch_setup): Turn into ...
1805 (x86_target::low_arch_setup): ...this.
1806 (the_low_target): Remove the op field.
1807 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
1809 (aarch64_arch_setup): Turn into ...
1810 (aarch64_target::low_arch_setup): ...this.
1811 (the_low_target): Remove the op field.
1812 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
1814 (arm_arch_setup): Turn into ...
1815 (arm_target::low_arch_setup): ...this.
1816 (the_low_target): Remove the op field.
1817 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
1819 (bfin_arch_setup): Turn into ...
1820 (bfin_target::low_arch_setup): ...this.
1821 (the_low_target): Remove the op field.
1822 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
1824 (cris_arch_setup): Turn into ...
1825 (cris_target::low_arch_setup): ...this.
1826 (the_low_target): Remove the op field.
1827 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
1829 (crisv32_arch_setup): Turn into ...
1830 (crisv32_target::low_arch_setup): ...this.
1831 (the_low_target): Remove the op field.
1832 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
1834 (ia64_arch_setup): Turn into ...
1835 (ia64_target::low_arch_setup): ...this.
1836 (the_low_target): Remove the op field.
1837 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
1839 (m32r_arch_setup): Turn into ...
1840 (m32r_target::low_arch_setup): ...this.
1841 (the_low_target): Remove the op field.
1842 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
1844 (m68k_arch_setup): Turn into ...
1845 (m68k_target::low_arch_setup): ...this.
1846 (the_low_target): Remove the op field.
1847 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
1849 (mips_arch_setup): Turn into ...
1850 (mips_target::low_arch_setup): ...this.
1851 (the_low_target): Remove the op field.
1852 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
1854 (nios2_arch_setup): Turn into ...
1855 (nios2_target::low_arch_setup): ...this.
1856 (the_low_target): Remove the op field.
1857 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
1859 (ppc_arch_setup): Turn into ...
1860 (ppc_target::low_arch_setup): ...this.
1861 (the_low_target): Remove the op field.
1862 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
1864 (riscv_arch_setup): Turn into ...
1865 (riscv_target::low_arch_setup): ...this.
1866 (the_low_target): Remove the op field.
1867 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
1869 (s390_arch_setup): Turn into ...
1870 (s390_target::low_arch_setup): ...this.
1871 (the_low_target): Remove the op field.
1872 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
1874 (sh_arch_setup): Turn into ...
1875 (sh_target::low_arch_setup): ...this.
1876 (the_low_target): Remove the op field.
1877 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
1879 (sparc_arch_setup): Turn into ...
1880 (sparc_target::low_arch_setup): ...this.
1881 (the_low_target): Remove the op field.
1882 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
1884 (tic6x_arch_setup): Turn into ...
1885 (tic6x_target::low_arch_setup): ...this.
1886 (the_low_target): Remove the op field.
1887 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
1889 (tile_arch_setup): Turn into ...
1890 (tile_target::low_arch_setup): ...this.
1891 (the_low_target): Remove the op field.
1892 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
1894 (xtensa_arch_setup): Turn into ...
1895 (xtensa_target::low_arch_setup): ...this.
1896 (the_low_target): Remove the op field.
1898 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1900 * linux-low.h (the_linux_target): New extern declaration.
1901 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
1903 (the_linux_target): Remove.
1904 * linux-x86-low.cc (class x86_target): New class.
1905 (the_x86_target): New static object.
1906 (the_linux_target): Define as pointer to the_x86_target.
1907 * linux-aarch64-low.cc (class aarch64_target): New class.
1908 (the_aarch64_target): New static object.
1909 (the_linux_target): Define as pointer to the_aarch64_target.
1910 * linux-arm-low.cc (class arm_target): New class.
1911 (the_arm_target): New static object.
1912 (the_linux_target): Define as pointer to the_arm_target.
1913 * linux-bfin-low.cc (class bfin_target): New class.
1914 (the_bfin_target): New static object.
1915 (the_linux_target): Define as pointer to the_bfin_target.
1916 * linux-cris-low.cc (class cris_target): New class.
1917 (the_cris_target): New static object.
1918 (the_linux_target): Define as pointer to the_cris_target.
1919 * linux-crisv32-low.cc (class crisv32_target): New class.
1920 (the_crisv32_target): New static object.
1921 (the_linux_target): Define as pointer to the_crisv32_target.
1922 * linux-ia64-low.cc (class ia64_target): New class.
1923 (the_ia64_target): New static object.
1924 (the_linux_target): Define as pointer to the_ia64_target.
1925 * linux-m32r-low.cc (class m32r_target): New class.
1926 (the_m32r_target): New static object.
1927 (the_linux_target): Define as pointer to the_m32r_target.
1928 * linux-m68k-low.cc (class m68k_target): New class.
1929 (the_m68k_target): New static object.
1930 (the_linux_target): Define as pointer to the_m68k_target.
1931 * linux-mips-low.cc (class mips_target): New class.
1932 (the_mips_target): New static object.
1933 (the_linux_target): Define as pointer to the_mips_target.
1934 * linux-nios2-low.cc (class nios2_target): New class.
1935 (the_nios2_target): New static object.
1936 (the_linux_target): Define as pointer to the_nios2_target.
1937 * linux-ppc-low.cc (class ppc_target): New class.
1938 (the_ppc_target): New static object.
1939 (the_linux_target): Define as pointer to the_ppc_target.
1940 * linux-riscv-low.cc (class riscv_target): New class.
1941 (the_riscv_target): New static object.
1942 (the_linux_target): Define as pointer to the_riscv_target.
1943 * linux-s390-low.cc (class s390_target): New class.
1944 (the_s390_target): New static object.
1945 (the_linux_target): Define as pointer to the_s390_target.
1946 * linux-sh-low.cc (class sh_target): New class.
1947 (the_sh_target): New static object.
1948 (the_linux_target): Define as pointer to the_sh_target.
1949 * linux-sparc-low.cc (class sparc_target): New class.
1950 (the_sparc_target): New static object.
1951 (the_linux_target): Define as pointer to the_sparc_target.
1952 * linux-tic6x-low.cc (class tic6x_target): New class.
1953 (the_tic6x_target): New static object.
1954 (the_linux_target): Define as pointer to the_tic6x_target.
1955 * linux-tile-low.cc (class tile_target): New class.
1956 (the_tile_target): New static object.
1957 (the_linux_target): Define as pointer to the_tile_target.
1958 * linux-xtensa-low.cc (class xtensa_target): New class.
1959 (the_xtensa_target): New static object.
1960 (the_linux_target): Define as pointer to the_xtensa_target.
1962 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1964 Turn some static functions in linux-low.cc into private methods of
1965 linux_process_target.
1967 * linux-low.cc (handle_extended_wait): Turn into ...
1968 (linux_process_target::handle_extended_wait): ...this. Call
1969 'mourn' on 'this' object instead of 'the_target'.
1970 (maybe_move_out_of_jump_pad): Turn into...
1971 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
1972 (linux_low_filter_event): Turn into...
1973 (linux_process_target::filter_event): ...this.
1974 (linux_wait_for_event_filtered): Turn into...
1975 (linux_process_target::wait_for_event_filtered): ...this.
1976 (linux_wait_for_event): Turn into...
1977 (linux_process_target::wait_for_event): ...this.
1978 (linux_wait_1): Turn into...
1979 (linux_process_target::wait_1): ...this.
1980 (wait_for_sigstop): Turn into...
1981 (linux_process_target::wait_for_sigstop): ...this.
1982 (move_out_of_jump_pad_callback): Turn into...
1983 (linux_process_target::move_out_of_jump_pad): ...this.
1984 (stop_all_lwps): Turn into...
1985 (linux_process_target::stop_all_lwps): ...this.
1986 (start_step_over): Turn into...
1987 (linux_process_target::start_step_over): ...this.
1988 (complete_ongoing_step_over): Turn into...
1989 (linux_process_target::complete_ongoing_step_over): ...this.
1990 (proceed_all_lwps): Turn into...
1991 (linux_process_target::proceed_all_lwps): ...this.
1992 (unstop_all_lwps): Turn into...
1993 (linux_process_target::unstop_all_lwps): ...this.
1995 * linux-low.h (class linux_process_target)
1996 <handle_extended_wait>
1997 <maybe_move_out_of_jump_pad>
1999 <wait_for_event_filtered>
2003 <move_out_of_jump_pad>
2006 <complete_ongoing_step_over>
2008 <unstop_all_lwps>: Declare.
2010 Update the callers below.
2012 * linux-low.cc (linux_process_target::attach): Update.
2013 (linux_process_target::stabilize_threads): Ditto.
2014 (linux_process_target::wait): Ditto.
2016 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2018 * linux-low.h (struct linux_target_ops): Update the comment for
2019 'cannot_store_register' to return 0 or 1.
2020 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
2023 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
2025 * config.in: Re-generate.
2026 * configure: Re-generate.
2028 2020-03-17 Kamil Rytarowski <n54@gmx.com>
2030 * regcache.cc (find_register_by_number): Update.
2031 * tdesc.cc (init_target_desc): Likewise.
2032 * tdesc.h (target_desc::reg_defs): Likewise.
2034 2020-03-12 Tom Tromey <tom@tromey.com>
2036 * configure: Rebuild.
2037 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
2038 (WIN32APILIBS): New subst.
2039 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
2041 (gdbsupport/%.o): Remove target.
2042 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
2043 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
2044 (WIN32APILIBS): New variable.
2045 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
2046 (gdbreplay$(EXEEXT)): Likewise.
2048 2020-03-12 Tom Tromey <tom@tromey.com>
2050 * config.in, configure: Rebuild.
2051 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
2052 * acinclude.m4: Include gettext-sister.m4.
2053 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
2055 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
2056 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
2058 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2060 * acinclude.m4: Update path to selftest.m4.
2062 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2064 * configure.ac: Don't source bfd/development.sh, move
2065 GDB_AC_COMMON higher.
2066 * configure: Re-generate.
2068 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2070 * configure: Re-generate.
2072 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
2074 * configure: Re-generate.
2076 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2078 * .dir-locals.el: New file.
2080 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2082 * .gitattributes: New file.
2084 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
2086 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
2087 reply into an S reply.
2088 * server.cc (disable_packet_T): New global.
2089 (captured_main): Set new global when appropriate.
2090 * server.h (disable_packet_T): Declare.
2092 2020-02-21 Tom Tromey <tom@tromey.com>
2094 * Makefile.in (mostlyclean): New target.
2096 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2098 * target.h (struct process_stratum_target): Remove.
2099 (class process_target): Rename to ...
2100 (class process_stratum_target): ... this.
2101 * linux-low.h (class linux_process_target): Derive from
2102 'process_stratum_target'.
2103 * linux-low.cc (linux_target_ops): Remove.
2104 (initialize_low): Set the_target to the singleton instance of
2105 linux_process_target.
2106 * lynx-low.h (class lynx_process_target): Derive from
2107 'process_stratum_target'.
2108 * lynx-low.cc (lynx_target_ops): Remove.
2109 (initialize_low): Set the_target to the singleton instance of
2110 lynx_process_target.
2111 * nto-low.h (class nto_process_target): Derive from
2112 'process_stratum_target'.
2113 * nto-low.cc (nto_target_ops): Remove.
2114 (initialize_low): Set the_target to the singleton instance of
2116 * win32-low.h (class win32_process_target): Derive from
2117 'process_stratum_target'.
2118 * win32-low.cc (win32_target_ops): Remove.
2119 (initialize_low): Set the_target to the singleton instance of
2120 win32_process_target.
2122 Replace 'the_target->pt' with 'the_target' in the uses below.
2124 * hostio.cc (hostio_error)
2129 * linux-aarch32-low.cc (arm_breakpoint_at)
2130 * linux-aarch64-low.cc (aarch64_breakpoint_at)
2131 * linux-arm-low.cc (arm_sigreturn_next_pc)
2133 (arm_get_syscall_trapinfo)
2134 * linux-cris-low.cc (cris_breakpoint_at)
2135 * linux-crisv32-low.cc (cris_breakpoint_at)
2136 * linux-low.cc (handle_extended_wait)
2139 (linux_process_target::breakpoint_kind_from_pc)
2141 * linux-m32r-low.cc (m32r_breakpoint_at)
2142 * linux-mips-low.cc (mips_breakpoint_at)
2143 * linux-nios2-low.cc (nios2_breakpoint_at)
2144 * linux-ppc-low.cc (ppc_breakpoint_at)
2145 * linux-s390-low.cc (s390_get_hwcap)
2146 * linux-sh-low.cc (sh_breakpoint_at)
2147 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
2148 (sparc_store_gregset_from_stack)
2149 (sparc_breakpoint_at)
2150 * linux-tic6x-low.cc (tic6x_breakpoint_at)
2151 * linux-tile-low.cc (tile_breakpoint_at)
2152 * linux-x86-low.cc (x86_breakpoint_at)
2153 * linux-xtensa-low.cc (xtensa_breakpoint_at)
2154 * mem-break.cc (bp_size)
2156 (insert_memory_breakpoint)
2157 (set_raw_breakpoint_at)
2158 (delete_raw_breakpoint)
2160 (uninsert_raw_breakpoint)
2161 (reinsert_raw_breakpoint)
2162 (validate_inserted_breakpoint)
2163 * regcache.cc (regcache_read_pc)
2165 * remote-utils.cc (putpkt_binary_1)
2168 (prepare_resume_reply)
2169 * server.cc (handle_general_set)
2172 (handle_qxfer_exec_file)
2173 (handle_qxfer_libraries_svr4)
2174 (handle_qxfer_osdata)
2175 (handle_qxfer_siginfo)
2176 (handle_qxfer_fdpic)
2180 (queue_stop_reply_callback)
2182 * target.cc (prepare_to_access_memory)
2183 (done_accessing_memory)
2184 (read_inferior_memory)
2185 (target_write_memory)
2186 (target_stop_and_wait)
2188 (target_mourn_inferior)
2189 (target_continue_no_signal)
2191 (target_supports_multi_process)
2194 (target_create_inferior)
2195 (target_post_create_inferior)
2197 (target_supports_fork_events)
2198 (target_supports_vfork_events)
2199 (target_supports_exec_events)
2200 (target_handle_new_gdb_connection)
2203 (fetch_inferior_registers)
2204 (store_inferior_registers)
2206 (target_supports_non_stop)
2208 (target_process_qsupported)
2209 (target_supports_catch_syscall)
2210 (target_get_ipa_tdesc_idx)
2211 (target_supports_tracepoints)
2212 (target_supports_fast_tracepoints)
2213 (target_get_min_fast_tracepoint_insn_len)
2214 (target_thread_stopped)
2216 (target_unpause_all)
2217 (target_stabilize_threads)
2218 (target_install_fast_tracepoint_jump_pad)
2220 (target_supports_disable_randomization)
2221 (target_supports_agent)
2222 (target_enable_btrace)
2223 (target_disable_btrace)
2224 (target_read_btrace)
2225 (target_read_btrace_conf)
2226 (target_supports_range_stepping)
2227 (target_supports_stopped_by_sw_breakpoint)
2228 (target_stopped_by_sw_breakpoint)
2229 (target_supports_stopped_by_hw_breakpoint)
2230 (target_supports_hardware_single_step)
2231 (target_stopped_by_hw_breakpoint)
2232 (target_breakpoint_kind_from_pc)
2233 (target_breakpoint_kind_from_current_state)
2234 (target_supports_software_single_step)
2235 (target_core_of_thread)
2236 (target_thread_name)
2237 (target_thread_handle)
2238 * win32-low.cc (do_initial_child_stuff)
2240 Rename target op default definitions listed below.
2242 * target.cc (process_target::post_create_inferior): Rename as ...
2243 (process_stratum_target::post_create_inferior): ... this.
2244 (process_target::prepare_to_access_memory): Rename as ...
2245 (process_stratum_target::prepare_to_access_memory): ... this.
2246 (process_target::done_accessing_memory): Rename as ...
2247 (process_stratum_target::done_accessing_memory): ... this.
2248 (process_target::look_up_symbols): Rename as ...
2249 (process_stratum_target::look_up_symbols): ... this.
2250 (process_target::supports_read_auxv): Rename as ...
2251 (process_stratum_target::supports_read_auxv): ... this.
2252 (process_target::read_auxv): Rename as ...
2253 (process_stratum_target::read_auxv): ... this.
2254 (process_target::supports_z_point_type): Rename as ...
2255 (process_stratum_target::supports_z_point_type): ... this.
2256 (process_target::insert_point): Rename as ...
2257 (process_stratum_target::insert_point): ... this.
2258 (process_target::remove_point): Rename as ...
2259 (process_stratum_target::remove_point): ... this.
2260 (process_target::stopped_by_sw_breakpoint): Rename as ...
2261 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
2262 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
2263 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
2264 (process_target::stopped_by_hw_breakpoint): Rename as ...
2265 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
2266 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
2267 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
2268 (process_target::supports_hardware_single_step): Rename as ...
2269 (process_stratum_target::supports_hardware_single_step): ... this.
2270 (process_target::stopped_by_watchpoint): Rename as ...
2271 (process_stratum_target::stopped_by_watchpoint): ... this.
2272 (process_target::stopped_data_address): Rename as ...
2273 (process_stratum_target::stopped_data_address): ... this.
2274 (process_target::supports_read_offsets): Rename as ...
2275 (process_stratum_target::supports_read_offsets): ... this.
2276 (process_target::read_offsets): Rename as ...
2277 (process_stratum_target::read_offsets): ... this.
2278 (process_target::supports_get_tls_address): Rename as ...
2279 (process_stratum_target::supports_get_tls_address): ... this.
2280 (process_target::get_tls_address): Rename as ...
2281 (process_stratum_target::get_tls_address): ... this.
2282 (process_target::hostio_last_error): Rename as ...
2283 (process_stratum_target::hostio_last_error): ... this.
2284 (process_target::supports_qxfer_osdata): Rename as ...
2285 (process_stratum_target::supports_qxfer_osdata): ... this.
2286 (process_target::qxfer_osdata): Rename as ...
2287 (process_stratum_target::qxfer_osdata): ... this.
2288 (process_target::supports_qxfer_siginfo): Rename as ...
2289 (process_stratum_target::supports_qxfer_siginfo): ... this.
2290 (process_target::qxfer_siginfo): Rename as ...
2291 (process_stratum_target::qxfer_siginfo): ... this.
2292 (process_target::supports_non_stop): Rename as ...
2293 (process_stratum_target::supports_non_stop): ... this.
2294 (process_target::async): Rename as ...
2295 (process_stratum_target::async): ... this.
2296 (process_target::start_non_stop): Rename as ...
2297 (process_stratum_target::start_non_stop): ... this.
2298 (process_target::supports_multi_process): Rename as ...
2299 (process_stratum_target::supports_multi_process): ... this.
2300 (process_target::supports_fork_events): Rename as ...
2301 (process_stratum_target::supports_fork_events): ... this.
2302 (process_target::supports_vfork_events): Rename as ...
2303 (process_stratum_target::supports_vfork_events): ... this.
2304 (process_target::supports_exec_events): Rename as ...
2305 (process_stratum_target::supports_exec_events): ... this.
2306 (process_target::handle_new_gdb_connection): Rename as ...
2307 (process_stratum_target::handle_new_gdb_connection): ... this.
2308 (process_target::handle_monitor_command): Rename as ...
2309 (process_stratum_target::handle_monitor_command): ... this.
2310 (process_target::core_of_thread): Rename as ...
2311 (process_stratum_target::core_of_thread): ... this.
2312 (process_target::supports_read_loadmap): Rename as ...
2313 (process_stratum_target::supports_read_loadmap): ... this.
2314 (process_target::read_loadmap): Rename as ...
2315 (process_stratum_target::read_loadmap): ... this.
2316 (process_target::process_qsupported): Rename as ...
2317 (process_stratum_target::process_qsupported): ... this.
2318 (process_target::supports_tracepoints): Rename as ...
2319 (process_stratum_target::supports_tracepoints): ... this.
2320 (process_target::read_pc): Rename as ...
2321 (process_stratum_target::read_pc): ... this.
2322 (process_target::write_pc): Rename as ...
2323 (process_stratum_target::write_pc): ... this.
2324 (process_target::supports_thread_stopped): Rename as ...
2325 (process_stratum_target::supports_thread_stopped): ... this.
2326 (process_target::thread_stopped): Rename as ...
2327 (process_stratum_target::thread_stopped): ... this.
2328 (process_target::supports_get_tib_address): Rename as ...
2329 (process_stratum_target::supports_get_tib_address): ... this.
2330 (process_target::get_tib_address): Rename as ...
2331 (process_stratum_target::get_tib_address): ... this.
2332 (process_target::pause_all): Rename as ...
2333 (process_stratum_target::pause_all): ... this.
2334 (process_target::unpause_all): Rename as ...
2335 (process_stratum_target::unpause_all): ... this.
2336 (process_target::stabilize_threads): Rename as ...
2337 (process_stratum_target::stabilize_threads): ... this.
2338 (process_target::supports_fast_tracepoints): Rename as ...
2339 (process_stratum_target::supports_fast_tracepoints): ... this.
2340 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
2341 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
2342 (process_target::emit_ops): Rename as ...
2343 (process_stratum_target::emit_ops): ... this.
2344 (process_target::supports_disable_randomization): Rename as ...
2345 (process_stratum_target::supports_disable_randomization): ... this.
2346 (process_target::supports_qxfer_libraries_svr4): Rename as ...
2347 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
2348 (process_target::qxfer_libraries_svr4): Rename as ...
2349 (process_stratum_target::qxfer_libraries_svr4): ... this.
2350 (process_target::supports_agent): Rename as ...
2351 (process_stratum_target::supports_agent): ... this.
2352 (process_target::enable_btrace): Rename as ...
2353 (process_stratum_target::enable_btrace): ... this.
2354 (process_target::disable_btrace): Rename as ...
2355 (process_stratum_target::disable_btrace): ... this.
2356 (process_target::read_btrace): Rename as ...
2357 (process_stratum_target::read_btrace): ... this.
2358 (process_target::read_btrace_conf): Rename as ...
2359 (process_stratum_target::read_btrace_conf): ... this.
2360 (process_target::supports_range_stepping): Rename as ...
2361 (process_stratum_target::supports_range_stepping): ... this.
2362 (process_target::supports_pid_to_exec_file): Rename as ...
2363 (process_stratum_target::supports_pid_to_exec_file): ... this.
2364 (process_target::pid_to_exec_file): Rename as ...
2365 (process_stratum_target::pid_to_exec_file): ... this.
2366 (process_target::supports_multifs): Rename as ...
2367 (process_stratum_target::supports_multifs): ... this.
2368 (process_target::multifs_open): Rename as ...
2369 (process_stratum_target::multifs_open): ... this.
2370 (process_target::multifs_unlink): Rename as ...
2371 (process_stratum_target::multifs_unlink): ... this.
2372 (process_target::multifs_readlink): Rename as ...
2373 (process_stratum_target::multifs_readlink): ... this.
2374 (process_target::breakpoint_kind_from_pc): Rename as ...
2375 (process_stratum_target::breakpoint_kind_from_pc): ... this.
2376 (process_target::breakpoint_kind_from_current_state): Rename as ...
2377 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
2378 (process_target::thread_name): Rename as ...
2379 (process_stratum_target::thread_name): ... this.
2380 (process_target::thread_handle): Rename as ...
2381 (process_stratum_target::thread_handle): ... this.
2382 (process_target::supports_software_single_step): Rename as ...
2383 (process_stratum_target::supports_software_single_step): ... this.
2384 (process_target::supports_catch_syscall): Rename as ...
2385 (process_stratum_target::supports_catch_syscall): ... this.
2386 (process_target::get_ipa_tdesc_idx): Rename as ...
2387 (process_stratum_target::get_ipa_tdesc_idx): ... this.
2389 2020-02-20 Pedro Alves <palves@redhat.com>
2391 * target.cc (set_target_ops): Simply copy the given target pointer
2392 instead of creating a copy of the pointed object.
2394 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2396 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
2399 * target.h (struct process_stratum_target): Remove the target op.
2400 (class process_target): Add the target op.
2401 (target_get_ipa_tdesc_idx): Update the macro.
2402 * target.cc (process_target::get_ipa_tdesc_idx): Define.
2404 Update the derived classes and callers below.
2406 * linux-low.cc (linux_target_ops): Update.
2407 (linux_get_ipa_tdesc_idx): Turn into ...
2408 (linux_process_target::get_ipa_tdesc_idx): ... this.
2409 * linux-low.h (class linux_process_target): Update.
2410 * lynx-low.cc (lynx_target_ops): Update.
2411 * nto-low.cc (nto_target_ops): Update.
2412 * win32-low.cc (win32_target_ops): Update.
2414 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2416 Turn process_stratum_target's supports_catch_syscall op into a
2417 method of process_target.
2419 * target.h (struct process_stratum_target): Remove the target op.
2420 (class process_target): Add the target op.
2421 (target_supports_catch_syscall): Update the macro.
2422 * target.cc (process_target::supports_catch_syscall): Define.
2424 Update the derived classes and callers below.
2426 * linux-low.cc (linux_target_ops): Update.
2427 (linux_supports_catch_syscall): Turn into ...
2428 (linux_process_target::supports_catch_syscall): ... this.
2429 * linux-low.h (class linux_process_target): Update.
2430 * lynx-low.cc (lynx_target_ops): Update.
2431 * nto-low.cc (nto_target_ops): Update.
2432 * win32-low.cc (win32_target_ops): Update.
2434 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2436 Turn process_stratum_target's supports_software_single_step op
2437 into a method of process_target.
2439 * target.h (struct process_stratum_target): Remove the target op.
2440 (class process_target): Add the target op.
2441 (target_supports_software_single_step): Update the macro.
2442 * target.cc (process_target::supports_software_single_step): Define.
2444 Update the derived classes and callers below.
2446 * linux-low.cc (linux_target_ops): Update.
2447 (linux_supports_software_single_step): Turn into ...
2448 (linux_process_target::supports_software_single_step): ... this.
2449 * linux-low.h (class linux_process_target): Update.
2450 * lynx-low.cc (lynx_target_ops): Update.
2451 * nto-low.cc (nto_target_ops): Update.
2452 * win32-low.cc (win32_target_ops): Update.
2454 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2456 Turn process_stratum_target's thread_name and thread_handle ops
2457 into methods of process_target.
2459 * target.h (struct process_stratum_target): Remove the target ops.
2460 (class process_target): Add the target ops.
2461 (target_thread_name): Update the macro.
2462 (target_thread_handle): Update the macro.
2463 * target.cc (process_target::thread_name): Define.
2464 (process_target::thread_handle): Define.
2466 Update the derived classes and callers below.
2468 * linux-low.cc (linux_target_ops): Update.
2469 (linux_process_target::thread_name): Define.
2470 (linux_process_target::thread_handle): Define.
2471 * linux-low.h (class linux_process_target): Update.
2472 * lynx-low.cc (lynx_target_ops): Update.
2473 * nto-low.cc (nto_target_ops): Update.
2474 * win32-low.cc (win32_target_ops): Update.
2476 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2478 Turn process_stratum_target's breakpoint_kind_from_pc,
2479 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
2480 ops into methods of process_target.
2482 * target.h (struct process_stratum_target): Remove the target op.
2483 (class process_target): Add the target op.
2484 (target_breakpoint_kind_from_pc): Update the macro.
2485 (target_breakpoint_kind_from_current_state): Update the macro.
2486 (default_breakpoint_kind_from_pc): Remove declaration.
2487 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
2488 (process_target::breakpoint_kind_from_pc): ... this.
2489 (process_target::breakpoint_kind_from_current_state): Define.
2491 Update the derived classes and callers below.
2493 * mem-break.cc (bp_size): Update.
2494 (bp_opcode): Update.
2495 * linux-low.cc (linux_target_ops): Update.
2496 (linux_wait_1): Update.
2497 (linux_breakpoint_kind_from_pc): Turn into ...
2498 (linux_process_target::breakpoint_kind_from_pc): ... this.
2499 (linux_sw_breakpoint_from_kind): Turn into ...
2500 (linux_process_target::sw_breakpoint_from_kind): ... this.
2501 (linux_breakpoint_kind_from_current_state): Turn into ...
2502 (linux_process_target::breakpoint_kind_from_current_state): ... this.
2503 * linux-low.h (class linux_process_target): Update.
2504 * lynx-low.cc (lynx_target_ops): Update.
2505 (lynx_process_target::sw_breakpoint_from_kind): Define.
2506 * lynx-low.h (class lynx_process_target): Update.
2507 * nto-low.cc (nto_target_ops): Update.
2508 (nto_sw_breakpoint_from_kind): Turn into ...
2509 (nto_process_target::sw_breakpoint_from_kind): ... this.
2510 * nto-low.h (class nto_process_target): Update.
2511 * win32-low.cc (win32_target_ops): Update.
2512 (win32_sw_breakpoint_from_kind): Turn into ...
2513 (win32_process_target::sw_breakpoint_from_kind): ... this.
2514 * win32-low.h (class win32_process_target): Update.
2516 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2518 Turn process_stratum_target's multifs_open, multifs_readlink,
2519 multifs_unlink ops into methods of process_target.
2521 * target.h (struct process_stratum_target): Remove the target ops.
2522 (class process_target): Add the target ops. Also add
2524 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
2526 (process_target::supports_multifs): Define.
2527 (process_target::multifs_open): Define.
2528 (process_target::multifs_readlink): Define.
2529 (process_target::multifs_unlink): Define.
2531 Update the derived classes and callers below.
2533 * hostio.cc (handle_setfs): Update.
2534 (handle_open): Update.
2535 (handle_unlink): Update.
2536 (handle_readlink): Update.
2537 * linux-low.cc (linux_target_ops): Update.
2538 (linux_process_target::supports_multifs): Define.
2539 (linux_process_target::multifs_open): Define.
2540 (linux_process_target::multifs_readlink): Define.
2541 (linux_process_target::multifs_unlink): Define.
2542 * linux-low.h (class linux_process_target): Update.
2543 * lynx-low.cc (lynx_target_ops): Update.
2544 * nto-low.cc (nto_target_ops): Update.
2545 * win32-low.cc (win32_target_ops): Update.
2547 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2549 Turn process_stratum_target's pid_to_exec_file op into a method
2552 * target.h (struct process_stratum_target): Remove the target op.
2553 (class process_target): Add the target op. Also add
2554 'supports_pid_to_exec_file'.
2555 * target.cc (process_target::pid_to_exec_file): Define.
2556 (process_target::supports_pid_to_exec_file): Define.
2558 Update the derived classes and callers below.
2560 * server.cc (handle_qxfer_exec_file): Update.
2561 (handle_query): Update.
2562 * linux-low.cc (linux_target_ops): Update.
2563 (linux_process_target::supports_pid_to_exec_file): Define.
2564 (linux_process_target::pid_to_exec_file): Define.
2565 * linux-low.h (class linux_process_target): Update.
2566 * lynx-low.cc (lynx_target_ops): Update.
2567 * nto-low.cc (nto_target_ops): Update.
2568 * win32-low.cc (win32_target_ops): Update.
2570 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2572 Turn process_stratum_target's supports_range_stepping op into a
2573 method of process_target.
2575 * target.h (struct process_stratum_target): Remove the target op.
2576 (class process_target): Add the target op.
2577 (target_supports_range_stepping): Update the macro.
2578 * target.cc (process_target::supports_range_stepping): Define.
2580 Update the derived classes and callers below.
2582 * linux-low.cc (linux_target_ops): Update.
2583 (linux_supports_range_stepping): Turn into ...
2584 (linux_process_target::supports_range_stepping): ... this.
2585 * linux-low.h (class linux_process_target): Update.
2586 * lynx-low.cc (lynx_target_ops): Update.
2587 * nto-low.cc (nto_target_ops): Update.
2588 * win32-low.cc (win32_target_ops): Update.
2590 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2592 Turn process_stratum_target's btrace-related ops (enable_btrace,
2593 disable_btrace, read_btrace, read_btrace_conf) into methods of
2596 * target.h (struct process_stratum_target): Remove the target ops.
2597 (class process_target): Add the target ops.
2598 (target_enable_btrace): Update.
2599 (target_disable_btrace): Update.
2600 (target_read_btrace): Update.
2601 (target_read_btrace_conf): Update.
2602 * target.cc (process_target::enable_btrace): Define.
2603 (process_target::disable_btrace): Define.
2604 (process_target::read_btrace): Define.
2605 (process_target::read_btrace_conf): Define.
2607 Update the derived classes and callers below.
2609 * linux-low.cc (linux_target_ops): Update.
2610 (linux_process_target:enable_btrace): Define as a wrapper around
2611 linux_enable_btrace.
2612 (linux_low_disable_btrace): Turn into ...
2613 (linux_process_target::disable_btrace): ... this.
2614 (linux_low_read_btrace): Turn into ...
2615 (linux_process_target::read_btrace): ... this.
2616 (linux_low_btrace_conf): Turn into ...
2617 (linux_process_target::read_btrace_conf): ... this.
2618 * linux-low.h (class linux_process_target): Update.
2619 * lynx-low.cc (lynx_target_ops): Update.
2620 * nto-low.cc (nto_target_ops): Update.
2621 * win32-low.cc (win32_target_ops): Update.
2623 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2625 Turn process_stratum_target's supports_agent op into a method of
2628 * target.h (struct process_stratum_target): Remove the target op.
2629 (class process_target): Add the target op.
2630 (target_supports_agent): Update the macro.
2631 * target.cc (process_target::supports_agent): Define.
2633 Update the derived classes and callers below.
2635 * linux-low.cc (linux_target_ops): Update.
2636 (linux_supports_agent): Turn into ...
2637 (linux_process_target::supports_agent): ... this.
2638 * linux-low.h (class linux_process_target): Update.
2639 * lynx-low.cc (lynx_target_ops): Update.
2640 * nto-low.cc (nto_target_ops): Update.
2641 * win32-low.cc (win32_target_ops): Update.
2643 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2645 Turn process_stratum_target's qxfer_libraries_svr4 op into a
2646 method of process_target.
2648 * target.h (struct process_stratum_target): Remove the target op.
2649 (class process_target): Add the target op. Also add
2650 'supports_qxfer_libraries_svr4'.
2651 * target.cc (process_target::qxfer_libraries_svr4): Define.
2652 (process_target::supports_qxfer_libraries_svr4): Define.
2654 Update the derived classes and callers below.
2656 * server.cc (handle_qxfer_libraries_svr4): Update.
2657 (handle_query): Update.
2658 * linux-low.cc (linux_target_ops): Update.
2659 (linux_process_target::supports_qxfer_libraries_svr4): Define.
2660 (linux_qxfer_libraries_svr4): Turn into ...
2661 (linux_process_target::qxfer_libraries_svr4): ... this.
2662 * linux-low.h (class linux_process_target): Update.
2663 * lynx-low.cc (lynx_target_ops): Update.
2664 * nto-low.cc (nto_target_ops): Update.
2665 * win32-low.cc (win32_target_ops): Update.
2667 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2669 Turn process_stratum_target's supports_disable_randomization op
2670 into a method of process_target.
2672 * target.h (struct process_stratum_target): Remove the target op.
2673 (class process_target): Add the target op.
2674 (target_supports_disable_randomization): Update the macro.
2675 * target.cc (process_target::supports_disable_randomization): Define.
2677 Update the derived classes and callers below.
2679 * linux-low.cc (linux_target_ops): Update.
2680 (linux_supports_disable_randomization): Turn into ...
2681 (linux_process_target::supports_disable_randomization): ... this.
2682 * linux-low.h (class linux_process_target): Update.
2683 * lynx-low.cc (lynx_target_ops): Update.
2684 * nto-low.cc (nto_target_ops): Update.
2685 * win32-low.cc (win32_target_ops): Update.
2687 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2689 Turn process_stratum_target's emit_ops op into a method of
2692 * target.h (struct process_stratum_target): Remove the target op.
2693 (class process_target): Add the target op.
2694 (target_emit_ops): Update the macro.
2695 * target.cc (process_target::emit_ops): Define.
2697 Update the derived classes and callers below.
2699 * linux-low.cc (linux_target_ops): Update.
2700 (linux_emit_ops): Turn into ...
2701 (linux_process_target::emit_ops): ... this.
2702 * linux-low.h (class linux_process_target): Update.
2703 * lynx-low.cc (lynx_target_ops): Update.
2704 * nto-low.cc (nto_target_ops): Update.
2705 * win32-low.cc (win32_target_ops): Update.
2707 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2709 Turn process_stratum_target's install_fast_tracepoint_jump_pad
2710 and get_min_fast_tracepoint_insn_len ops into methods of
2713 * target.h (struct process_stratum_target): Remove the target ops.
2714 (class process_target): Add the target ops. Also add
2715 'supports_fast_tracepoints'.
2716 (target_supports_fast_tracepoints): Update the macro.
2717 (target_get_min_fast_tracepoint_insn_len): Update the macro.
2718 (install_fast_tracepoint_jump_pad): Update and rename the macro
2720 (target_install_fast_tracepoint_jump_pad): ... this.
2721 * target.cc (process_target::supports_fast_tracepoints): Define.
2722 (process_target::install_fast_tracepoint_jump_pad): Define.
2723 (process_target::get_min_fast_tracepoint_insn_len): Define.
2725 Update the derived classes and callers below.
2727 * tracepoint.cc (install_fast_tracepoint): Update.
2728 * linux-low.cc (linux_target_ops): Update.
2729 (linux_process_target::supports_fast_tracepoints): Define.
2730 (linux_install_fast_tracepoint_jump_pad): Turn into ...
2731 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
2732 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
2733 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
2734 * linux-low.h (class linux_process_target): Update.
2735 * lynx-low.cc (lynx_target_ops): Update.
2736 * nto-low.cc (nto_target_ops): Update.
2737 * win32-low.cc (win32_target_ops): Update.
2739 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2741 Turn process_stratum_target's stabilize_threads op into a
2742 method of process_target.
2744 * target.h (struct process_stratum_target): Remove the target op.
2745 (class process_target): Add the target op.
2746 (target_stabilize_threads): Update the macro.
2747 * target.cc (process_target::stabilize_threads): Define.
2749 Update the derived classes and callers below.
2751 * server.cc (handle_status): Update.
2752 * tracepoint.cc (cmd_qtdp): Update.
2753 (cmd_qtstart): Update.
2754 * linux-low.cc (linux_target_ops): Update.
2755 (linux_stabilize_threads): Turn into ...
2756 (linux_process_target::stabilize_threads): ... this.
2757 (linux_wait_1): Update.
2758 * linux-low.h (class linux_process_target): Update.
2759 * lynx-low.cc (lynx_target_ops): Update.
2760 * nto-low.cc (nto_target_ops): Update.
2761 * win32-low.cc (win32_target_ops): Update.
2763 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2765 Turn process_stratum_target's pause_all and unpause_all ops
2766 into methods of process_target.
2768 * target.h (struct process_stratum_target): Remove the target ops.
2769 (class process_target): Add the target ops.
2770 (pause_all): Update the macro and rename to...
2771 (target_pause_all): ... this.
2772 (unpause_all): Update the macro and rename to...
2773 (target_unpause_all): ... this.
2774 * target.cc (process_target::pause_all): Define.
2775 (process_target::unpause_all): Define.
2777 Update the derived classes and callers below.
2779 * server.cc (handle_status): Update.
2780 * tracepoint.cc (clear_installed_tracepoints): Update.
2782 (cmd_qtstart): Update.
2783 (stop_tracing): Update.
2784 (cmd_qtstatus): Update.
2785 (upload_fast_traceframes): Update.
2786 (run_inferior_command): Update.
2787 * linux-low.cc (linux_target_ops): Update.
2788 (linux_pause_all): Turn into ...
2789 (linux_process_target::pause_all): ... this.
2790 (linux_unpause_all): Turn into ...
2791 (linux_process_target::unpause_all): ... this.
2792 (linux_process_target::prepare_to_access_memory): Update.
2793 (linux_process_target::done_accessing_memory): Update.
2794 * linux-low.h (class linux_process_target): Update.
2795 * lynx-low.cc (lynx_target_ops): Update.
2796 * nto-low.cc (nto_target_ops): Update.
2797 * win32-low.cc (win32_target_ops): Update.
2799 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2801 Turn process_stratum_target's get_tib_address op into a method of
2804 * target.h (struct process_stratum_target): Remove the target op.
2805 (class process_target): Add the target op. Also add
2806 'supports_get_tib_address'.
2807 * target.cc (process_target::get_tib_address): Define.
2808 (process_target::supports_get_tib_address): Define.
2810 Update the derived classes and callers below.
2812 * server.cc (handle_query): Update.
2813 * linux-low.cc (win32_target_ops): Update.
2814 * lynx-low.cc (lynx_target_ops): Update.
2815 * nto-low.cc (nto_target_ops): Update.
2816 * win32-low.cc (win32_target_ops): Update.
2817 (win32_process_target::supports_get_tib_address): Define.
2818 (win32_get_tib_address): Turn into ...
2819 (win32_process_target::get_tib_address): ... this.
2820 * win32-low.h (class win32_process_target): Update.
2822 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2824 Turn process_stratum_target's thread_stopped op into a method of
2827 * target.h (struct process_stratum_target): Remove the target op.
2828 (class process_target): Add the target op. Also add
2829 'supports_thread_stopped'.
2830 (target_thread_stopped): Update the macro.
2831 * target.cc (process_target::thread_stopped): Define.
2832 (process_target::supports_thread_stopped): Define.
2833 (prepare_to_access_memory): Update.
2835 Update the derived classes and callers below.
2837 * server.cc (queue_stop_reply_callback): Update.
2838 * linux-low.cc (linux_target_ops): Update.
2839 (linux_process_target::supports_thread_stopped): Define.
2840 (linux_thread_stopped): Turn into ...
2841 (linux_process_target::thread_stopped): ... this.
2842 * linux-low.h (class linux_process_target): Update.
2843 * lynx-low.cc (lynx_target_ops): Update.
2844 * nto-low.cc (nto_target_ops): Update.
2845 * win32-low.cc (win32_target_ops): Update.
2847 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2849 Turn process_stratum_target's read_pc and write_pc ops into
2850 methods of process_target.
2852 * target.h (struct process_stratum_target): Remove the target ops.
2853 (class process_target): Add the target ops.
2854 * target.cc (process_target::read_pc): Define.
2855 (process_target::write_pc): Define.
2857 Update the derived classes and callers below.
2859 * regcache.cc (regcache_read_pc): Update.
2860 (regcache_write_pc): Update.
2861 * linux-low.cc (linux_target_ops): Update.
2862 (linux_read_pc): Turn into ...
2863 (linux_process_target::read_pc): ... this.
2864 (linux_write_pc): Turn into ...
2865 (linux_process_target::write_pc): ... this.
2866 * linux-low.h (class linux_process_target): Update.
2867 * lynx-low.cc (lynx_target_ops): Update.
2868 * nto-low.cc (nto_target_ops): Update.
2869 * win32-low.cc (win32_target_ops): Update.
2871 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2873 Turn process_stratum_target's supports_tracepoints op into a
2874 method of process_target.
2876 * target.h (struct process_stratum_target): Remove the target op.
2877 (class process_target): Add the target op.
2878 (target_supports_tracepoints): Update the macro.
2879 * target.cc (process_target::supports_tracepoints): Define.
2881 Update the derived classes and callers below.
2883 * linux-low.cc (linux_target_ops): Update.
2884 (linux_supports_tracepoints): Turn into ...
2885 (linux_process_target::supports_tracepoints): ... this.
2886 * linux-low.h (class linux_process_target): Update.
2887 * lynx-low.cc (lynx_target_ops): Update.
2888 * nto-low.cc (nto_target_ops): Update.
2889 * win32-low.cc (win32_target_ops): Update.
2891 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2893 Turn process_stratum_target's process_qsupported op into a method
2896 * target.h (struct process_stratum_target): Remove the target op.
2897 (class process_target): Add the target op.
2898 (target_process_qsupported): Update the macro.
2899 * target.cc (process_target::process_qsupported): Define.
2901 Update the derived classes and callers below.
2903 * linux-low.cc (linux_target_ops): Update.
2904 (linux_process_qsupported): Turn into ...
2905 (linux_process_target::process_qsupported): ... this.
2906 * linux-low.h (class linux_process_target): Update.
2907 * lynx-low.cc (lynx_target_ops): Update.
2908 * nto-low.cc (nto_target_ops): Update.
2909 * win32-low.cc (win32_target_ops): Update.
2911 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2913 Turn process_stratum_target's read_loadmap op into a method of
2916 * target.h (struct process_stratum_target): Remove the target op.
2917 (class process_target): Add the target op. Also add
2918 'supports_read_loadmap'.
2919 * target.cc (process_target::read_loadmap): Define.
2920 (process_target::supports_read_loadmap): Define.
2922 Update the derived classes and callers below.
2924 * server.cc (handle_qxfer_fdpic): Update.
2925 (handle_query): Update.
2926 * linux-low.cc (linux_target_ops): Update.
2927 (linux_process_target::supports_read_loadmap): Define.
2928 (linux_read_loadmap): Turn into ...
2929 (linux_process_target::read_loadmap): ... this.
2930 * linux-low.h (class linux_process_target): Update.
2931 * lynx-low.cc (lynx_target_ops): Update.
2932 * nto-low.cc (nto_target_ops): Update.
2933 * win32-low.cc (win32_target_ops): Update.
2935 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2937 Turn process_stratum_target's core_of_thread op into a method of
2940 * target.h (struct process_stratum_target): Remove the target op.
2941 (class process_target): Add the target op.
2942 (target_core_of_thread): Update the macro.
2943 * target.cc (process_target::core_of_thread): Define.
2945 Update the derived classes and callers below.
2947 * linux-low.cc (linux_target_ops): Update.
2948 (linux_process_target::core_of_thread): Define.
2949 * linux-low.h (class linux_process_target): Update.
2950 * lynx-low.cc (lynx_target_ops): Update.
2951 * nto-low.cc (nto_target_ops): Update.
2952 * win32-low.cc (win32_target_ops): Update.
2954 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2956 Turn process_stratum_target's handle_monitor_command op into a
2957 method of process_target.
2959 * target.h (struct process_stratum_target): Remove the target op.
2960 (class process_target): Add the target op.
2961 (target_handle_monitor_command): Update the macro.
2962 * target.cc (process_target::handle_monitor_command): Define.
2964 Update the derived classes and callers below.
2966 * server.cc (handle_query): Update.
2967 * linux-low.cc (linux_target_ops): Update.
2968 (linux_process_target::handle_monitor_command): Define.
2969 * linux-low.h (class linux_process_target): Update.
2970 * lynx-low.cc (lynx_target_ops): Update.
2971 * nto-low.cc (nto_target_ops): Update.
2972 * win32-low.cc (win32_target_ops): Update.
2974 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2976 Turn process_stratum_target's handle_new_gdb_connection op into a
2977 method of process_target.
2979 * target.h (struct process_stratum_target): Remove the target op.
2980 (class process_target): Add the target op.
2981 (target_handle_new_gdb_connection): Update the macro.
2982 * target.cc (process_target::handle_new_gdb_connection): Define.
2984 Update the derived classes and callers below.
2986 * linux-low.cc (linux_target_ops): Update.
2987 (linux_handle_new_gdb_connection): Turn into ...
2988 (linux_process_target::handle_new_gdb_connection): ... this.
2989 * linux-low.h (class linux_process_target): Update.
2990 * lynx-low.cc (lynx_target_ops): Update.
2991 * nto-low.cc (nto_target_ops): Update.
2992 * win32-low.cc (win32_target_ops): Update.
2994 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2996 Turn process_stratum_target's supports_fork_events,
2997 supports_vfork_events, and supports_exec_events ops into methods
3000 * target.h (struct process_stratum_target): Remove the target ops.
3001 (class process_target): Add the target ops.
3002 (target_supports_fork_events): Update the macro.
3003 (target_supports_vfork_events): Update the macro.
3004 (target_supports_exec_events): Update the macro.
3005 * target.cc (process_target::supports_fork_events): Define.
3006 (process_target::supports_vfork_events): Define.
3007 (process_target::supports_exec_events): Define.
3009 Update the derived classes and callers below.
3011 * linux-low.cc (linux_target_ops): Update.
3012 (linux_supports_fork_events): Turn into ...
3013 (linux_process_target::supports_fork_events): ... this.
3014 (linux_supports_vfork_events): Turn into ...
3015 (linux_process_target::supports_vfork_events): ... this.
3016 (linux_supports_exec_events): Turn into ...
3017 (linux_process_target::supports_exec_events): ... this.
3018 * linux-low.h (class linux_process_target): Update.
3019 * lynx-low.cc (lynx_target_ops): Update.
3020 * nto-low.cc (nto_target_ops): Update.
3021 * win32-low.cc (win32_target_ops): Update.
3023 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3025 Turn process_stratum_target's supports_multi_process op into a
3026 method of process_target.
3028 * target.h (struct process_stratum_target): Remove the target op.
3029 (class process_target): Add the target op.
3030 * target.cc (process_target::supports_multi_process): Define.
3031 (target_supports_multi_process): Update.
3033 Update the derived classes and callers below.
3035 * linux-low.cc (linux_target_ops): Update.
3036 (linux_supports_multi_process): Turn into ...
3037 (linux_process_target::supports_multi_process): ... this.
3038 * linux-low.h (class linux_process_target): Update.
3039 * lynx-low.cc (lynx_target_ops): Update.
3040 * nto-low.cc (nto_target_ops): Update.
3041 * win32-low.cc (win32_target_ops): Update.
3043 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3045 Turn process_stratum_target's supports_non_stop, async, and
3046 start_non_stop ops into methods of process_target.
3048 * target.h (struct process_stratum_target): Remove the target ops.
3049 (class process_target): Add the target ops.
3050 (target_supports_non_stop): Update the macro.
3051 (target_async): Update the macro.
3052 (start_non_stop): Remove declaration.
3053 * target.cc (process_target::supports_non_stop): Define.
3054 (process_target::async): Define.
3055 (process_target::start_non_stop): Define.
3056 (start_non_stop): Remove.
3058 Update the derived classes and callers below.
3060 * server.cc (handle_qxfer_siginfo): Update.
3061 (handle_query): Update.
3062 * linux-low.cc (linux_target_ops): Update.
3063 (linux_supports_non_stop): Turn into ...
3064 (linux_process_target::supports_non_stop): ... this.
3065 (linux_async): Turn into ...
3066 (linux_process_target::async): ... this.
3067 (linux_start_non_stop): Turn into ...
3068 (linux_process_target::start_non_stop): ... this.
3069 * linux-low.h (class linux_process_target): Update.
3070 * lynx-low.cc (lynx_target_ops): Update.
3071 * nto-low.cc (nto_target_ops): Update.
3072 (nto_supports_non_stop): Remove; rely on the default behavior
3074 * win32-low.cc (win32_target_ops): Update.
3076 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3078 Turn process_stratum_target's qxfer_siginfo op into a method of
3081 * target.h (struct process_stratum_target): Remove the target op.
3082 (class process_target): Add the target op. Also add
3083 'supports_qxfer_siginfo'.
3084 * target.cc (process_target::qxfer_siginfo): Define.
3085 (process_target::supports_qxfer_siginfo): Define.
3087 Update the derived classes and callers below.
3089 * server.cc (handle_qxfer_siginfo): Update.
3090 (handle_query): Update.
3091 * linux-low.cc (linux_target_ops): Update.
3092 (linux_process_target::supports_qxfer_siginfo): Define.
3093 (linux_xfer_siginfo): Turn into ...
3094 (linux_process_target::qxfer_siginfo): ... this.
3095 * linux-low.h (class linux_process_target): Update.
3096 * lynx-low.cc (lynx_target_ops): Update.
3097 * nto-low.cc (nto_target_ops): Update.
3098 * win32-low.cc (win32_target_ops): Update.
3100 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3102 Turn process_stratum_target's qxfer_osdata op into a method of
3105 * target.h (struct process_stratum_target): Remove the target op.
3106 (class process_target): Add the target op. Also add
3107 'supports_qxfer_osdata'.
3108 * target.cc (process_target::qxfer_osdata): Define.
3109 (process_target::supports_qxfer_osdata): Define.
3111 Update the derived classes and callers below.
3113 * server.cc (handle_qxfer_osdata): Update.
3114 (handle_query): Update.
3115 * linux-low.cc (linux_target_ops): Update.
3116 (linux_process_target::supports_qxfer_osdata): Define.
3117 (linux_qxfer_osdata): Turn into ...
3118 (linux_process_target::qxfer_osdata): ... this.
3119 * linux-low.h (class linux_process_target): Update.
3120 * lynx-low.cc (lynx_target_ops): Update.
3121 * nto-low.cc (nto_target_ops): Update.
3122 * win32-low.cc (win32_target_ops): Update.
3124 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3126 Turn process_stratum_target's hostio_last_error op into a
3127 method of process_target.
3129 * target.h (struct process_stratum_target): Remove the target op.
3130 (class process_target): Add the target op.
3131 * target.cc: Add "hostio.h" to includes.
3132 (process_target::hostio_last_error): Define.
3134 Update the derived classes and callers below.
3136 * hostio.cc (hostio_error): Update.
3137 * linux-low.cc: Remove "hostio.h" from includes.
3138 (linux_target_ops): Update.
3139 * lynx-low.cc (lynx_target_ops): Update.
3140 * nto-low.cc (nto_target_ops): Update.
3141 * win32-low.h (class win32_process_target): Update.
3142 * win32-low.cc (win32_target_ops): Update.
3143 (wince_hostio_last_error): Turn into ...
3144 (win32_process_target::hostio_last_error): ... this.
3146 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3148 Turn process_stratum_target's get_tls_address op into a method of
3151 * target.h (struct process_stratum_target): Remove the target op.
3152 (class process_target): Add the target op. Also add
3153 'supports_get_tls_address'.
3154 * target.cc (process_target::get_tls_address): Define.
3155 (process_target::supports_get_tls_address): Define.
3157 Update the derived classes and callers below.
3159 * server.cc (handle_query): Update.
3160 * linux-low.cc (linux_target_ops): Update.
3161 (linux_process_target::supports_get_tls_address): Define.
3162 (linux_process_target::get_tls_address): Define.
3163 * linux-low.h (class linux_process_target): Update.
3164 * lynx-low.cc (lynx_target_ops): Update.
3165 * nto-low.cc (nto_target_ops): Update.
3166 * win32-low.cc (win32_target_ops): Update.
3168 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3170 Turn process_stratum_target's read_offsets op into a method of
3173 * target.h (struct process_stratum_target): Remove the target op.
3174 (class process_target): Add the target op. Also add
3175 'supports_read_offsets'.
3176 * target.cc (process_target::read_offsets): Define.
3177 (process_target::supports_read_offsets): Define.
3179 Update the derived classes and callers below.
3181 * server.cc (handle_query): Update.
3182 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
3183 (linux_target_ops): Update.
3184 (linux_process_target::supports_read_offsets): Define.
3185 (linux_read_offsets): Turn into ...
3186 (linux_process_target::read_offsets): ... this.
3187 * linux-low.h (class linux_process_target): Update.
3188 * lynx-low.cc (lynx_target_ops): Update.
3189 * nto-low.cc (nto_target_ops): Update.
3190 * win32-low.cc (win32_target_ops): Update.
3192 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3194 Turn process_stratum_target's stopped_by_watchpoint and
3195 stopped_data_address ops into methods of process_target.
3197 * target.h (struct process_stratum_target): Remove the target ops.
3198 (class process_target): Add the target ops.
3199 * target.cc (process_target::stopped_by_watchpoint): Define.
3200 (process_target::stopped_data_address): Define.
3202 Update the derived classes and callers below.
3204 * remote-utils.cc (prepare_resume_reply): Update.
3205 * linux-low.cc (linux_target_ops): Update.
3206 (linux_stopped_by_watchpoint): Turn into ...
3207 (linux_process_target::stopped_by_watchpoint): ... this.
3208 (linux_stopped_data_address): Turn into ...
3209 (linux_process_target::stopped_data_address): ... this.
3210 * linux-low.h (class linux_process_target): Update.
3211 * lynx-low.cc (lynx_target_ops): Update.
3212 * nto-low.cc (nto_target_ops): Update.
3213 (nto_stopped_by_watchpoint): Turn into ...
3214 (nto_process_target::stopped_by_watchpoint): ... this.
3215 (nto_stopped_data_address): Turn into ...
3216 (nto_process_target::stopped_data_address): ... this.
3217 * nto-low.h (class nto_process_target): Update.
3218 * win32-low.cc (win32_target_ops): Update.
3219 (win32_stopped_by_watchpoint): Turn into ...
3220 (win32_process_target::stopped_by_watchpoint): ... this.
3221 (win32_stopped_data_address): Turn into ...
3222 (win32_process_target::stopped_data_address): ... this.
3223 * win32-low.h (class win32_process_target): Update.
3225 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3227 Turn process_stratum_target's supports_hardware_single_step op into
3228 a method of process_target.
3230 * target.h (struct process_stratum_target): Remove the target op.
3231 (class process_target): Add the target op.
3232 (target_supports_hardware_single_step): Update the macro.
3233 (target_can_do_hardware_single_step): Remove declaration.
3234 * target.cc (process_target::supports_hardware_single_step): Define.
3235 (target_can_do_hardware_single_step): Remove.
3237 Update the derived classes and callers below.
3239 * linux-low.h (class linux_process_target): Update.
3240 * linux-low.cc (linux_target_ops): Update.
3241 (linux_supports_hardware_single_step): Turn into ...
3242 (linux_process_target::supports_hardware_single_step): ... this.
3243 * lynx-low.h (class lynx_process_target): Update.
3244 * lynx-low.cc (lynx_target_ops): Update.
3245 (lynx_process_target::supports_hardware_single_step): Define.
3246 * nto-low.h (class nto_process_target): Update.
3247 * nto-low.cc (nto_target_ops): Update.
3248 (nto_process_target::supports_hardware_single_step): Define.
3249 * win32-low.h (class win32_process_target): Update.
3250 * win32-low.cc (win32_target_ops): Update.
3251 (win32_process_target::supports_hardware_single_step): Define.
3253 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3255 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
3256 ops into methods of process_target.
3258 * target.h (struct process_stratum_target): Remove the target ops.
3259 (class process_target): Add the target ops.
3260 (target_stopped_by_hw_breakpoint): Update the macro.
3261 (target_supports_stopped_by_hw_breakpoint): Update the macro.
3262 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
3263 (process_target::supports_stopped_by_hw_breakpoint): Define.
3265 Update the derived classes and callers below.
3267 * linux-low.cc (linux_target_ops): Update.
3268 (linux_stopped_by_hw_breakpoint): Turn into ...
3269 (linux_process_target::stopped_by_hw_breakpoint): ... this.
3270 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
3271 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
3272 * linux-low.h (class linux_process_target): Update.
3273 * lynx-low.cc (lynx_target_ops): Update.
3274 * nto-low.cc (nto_target_ops): Update.
3275 * win32-low.cc (win32_target_ops): Update.
3277 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3279 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
3280 ops into methods of process_target.
3282 * target.h (struct process_stratum_target): Remove the target ops.
3283 (class process_target): Add the target ops.
3284 (target_stopped_by_sw_breakpoint): Update the macro.
3285 (target_supports_stopped_by_sw_breakpoint): Update the macro.
3286 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
3287 (process_target::supports_stopped_by_sw_breakpoint): Define.
3289 Update the derived classes and callers below.
3291 * linux-low.cc (linux_target_ops): Update.
3292 (linux_stopped_by_sw_breakpoint): Turn into ...
3293 (linux_process_target::stopped_by_sw_breakpoint): ... this.
3294 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
3295 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
3296 * linux-low.h (class linux_process_target): Update.
3297 * lynx-low.cc (lynx_target_ops): Update.
3298 * nto-low.cc (nto_target_ops): Update.
3299 * win32-low.cc (win32_target_ops): Update.
3301 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3303 Turn process_stratum_target's insert_point and remove_point ops
3304 into methods of process_target.
3306 * target.h (struct process_stratum_target): Remove the target ops.
3307 (class process_target): Add the target ops.
3308 * target.cc (process_target::insert_point): Define.
3309 (process_target::remove_point): Define.
3311 Update the derived classes and callers below.
3313 * mem-break.cc (set_raw_breakpoint_at): Update.
3314 (delete_raw_breakpoint): Update.
3315 (uninsert_raw_breakpoint): Update.
3316 (reinsert_raw_breakpoint): Update.
3317 * linux-low.cc (linux_target_ops): Update.
3318 (linux_insert_point): Turn into ...
3319 (linux_process_target::insert_point): ... this.
3320 (linux_remove_point): Turn into ...
3321 (linux_process_target::remove_point): ... this.
3322 * linux-low.h (class linux_process_target): Update.
3323 * lynx-low.cc (lynx_target_ops): Update.
3324 * nto-low.cc (nto_target_ops): Update.
3325 (nto_insert_point): Turn into ...
3326 (nto_process_target::insert_point): ... this.
3327 (nto_remove_point): Turn into ...
3328 (nto_process_target::remove_point): ... this.
3329 * nto-low.h (class nto_process_target): Update.
3330 * win32-low.cc (win32_target_ops): Update.
3331 (win32_insert_point): Turn into ...
3332 (win32_process_target::insert_point): ... this.
3333 (win32_remove_point): Turn into ...
3334 (win32_process_target::remove_point): ... this.
3335 * win32-low.h (class win32_process_target): Update.
3337 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3339 Turn process_stratum_target's supports_z_point_type op into a
3340 method of process_target.
3342 * target.h (struct process_stratum_target): Remove the target op.
3343 (class process_target): Add the target op.
3344 * target.cc (process_target::supports_z_point_type): Define.
3346 Update the derived classes and callers below.
3348 * mem-break.cc (z_type_supported): Update.
3349 * linux-low.cc (linux_target_ops): Update.
3350 (linux_supports_z_point_type): Turn into ...
3351 (linux_process_target::supports_z_point_type): ... this.
3352 * linux-low.h (class linux_process_target): Update.
3353 * lynx-low.cc (lynx_target_ops): Update.
3354 * nto-low.cc (nto_target_ops): Update.
3355 (nto_supports_z_point_type): Turn into ...
3356 (nto_process_target::supports_z_point_type): ... this.
3357 * nto-low.h (class nto_process_target): Update.
3358 * win32-low.cc (win32_target_ops): Update.
3359 (win32_supports_z_point_type): Turn into ...
3360 (win32_process_target::supports_z_point_type): ... this.
3361 * win32-low.h (class win32_process_target): Update.
3363 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3365 Turn process_stratum_target's read_auxv op into a method of
3368 * target.h (class process_stratum_target): Remove the target op.
3369 (struct process_target): Add the target op. Also add
3370 'supports_read_auxv'.
3371 * target.cc (process_target::read_auxv): Define.
3372 (process_target::supports_read_auxv): Define.
3374 Update the derived classes and callers below.
3376 * server.cc (handle_qxfer_auxv): Update.
3377 (handle_query): Update.
3378 * linux-low.cc (linux_target_ops): Update.
3379 (linux_process_target::supports_read_auxv): Define.
3380 (linux_read_auxv): Turn into ...
3381 (linux_process_target::read_auxv): ... this.
3382 * linux-low.h (class linux_process_target): Update.
3383 * lynx-low.cc (lynx_target_ops): Update.
3384 * nto-low.cc (nto_target_ops): Update.
3385 (nto_process_target::supports_read_auxv): Define.
3386 (nto_read_auxv): Turn into ...
3387 (nto_process_target::read_auxv): ... this.
3388 * nto-low.h (class nto_process_target): Update.
3389 * win32-low.cc (win32_target_ops): Update.
3391 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3393 Turn process_stratum_target's request_interrupt op into a method of
3396 * target.h (struct process_stratum_target): Remove the target op.
3397 (class process_target): Add the target op.
3399 Update the derived classes and callers below.
3401 * remote-utils.cc (putpkt_binary_1): Update.
3402 (input_interrupt): Update.
3404 * server.cc (handle_v_requests): Update.
3405 * linux-low.cc (linux_target_ops): Update.
3406 (linux_request_interrupt): Turn into ...
3407 (linux_process_target::request_interrupt): ... this.
3408 * linux-low.h (class linux_process_target): Update.
3409 * lynx-low.cc (lynx_target_ops): Update.
3410 (lynx_request_interrupt): Turn into ...
3411 (lynx_process_target::request_interrupt): ... this.
3412 * lynx-low.h (class lynx_process_target): Update.
3413 * nto-low.cc (nto_target_ops): Update.
3414 (nto_request_interrupt): Turn into ...
3415 (nto_process_target::request_interrupt): ... this.
3416 * nto-low.h (class nto_process_target): Update.
3417 * win32-low.cc (win32_target_ops): Update.
3418 (win32_request_interrupt): Turn into ...
3419 (win32_process_target::request_interrupt): ... this.
3420 * win32-low.h (class win32_process_target): Update.
3422 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3424 Turn process_stratum_target's look_up_symbols op into a method of
3427 * target.h (struct process_stratum_target): Remove the target op.
3428 (class process_target): Add the target op.
3429 * target.cc (process_target::look_up_symbols): Define.
3431 Update the derived classes and callers below.
3433 * server.cc (handle_query): Update.
3434 * linux-low.cc (linux_target_ops): Update.
3435 (linux_look_up_symbols): Turn into ...
3436 (linux_process_target::look_up_symbols): ... this.
3437 * linux-low.h (class linux_process_target): Update.
3438 * lynx-low.cc (lynx_target_ops): Update.
3439 * nto-low.cc (nto_target_ops): Update.
3440 * win32-low.cc (win32_target_ops): Update.
3442 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3444 Turn process_stratum_target's read_memory and write_memory
3445 ops into methods of process_target.
3447 * target.h (struct process_stratum_target): Remove the target ops.
3448 (class process_target): Add the target ops.
3450 Update the derived classes and callers below.
3452 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
3453 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
3454 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
3455 (arm_get_syscall_trapinfo): Update.
3456 * linux-cris-low.cc (cris_breakpoint_at): Update.
3457 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
3458 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
3459 * linux-mips-low.cc (mips_breakpoint_at): Update.
3460 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
3461 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
3462 * linux-sh-low.cc (sh_breakpoint_at): Update.
3463 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
3464 (sparc_store_gregset_from_stack): Update.
3465 (sparc_breakpoint_at): Update.
3466 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
3467 * linux-tile-low.cc (tile_breakpoint_at): Update.
3468 * linux-x86-low.cc (x86_breakpoint_at): Update.
3469 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
3470 * mem-brea.cc (insert_memory_breakpoint): Update.
3471 (validate_inserted_breakpoint): Update.
3472 * target.cc (read_inferior_memory): Update.
3473 (target_write_memory): Update.
3474 * linux-low.cc (linux_target_ops): Update.
3475 (linux_read_memory): Make a wrapper around the read_memory target
3477 (linux_process_target::read_memory): Rename from linux_read_memory.
3478 (linux_write_memory): Turn into ...
3479 (linux_process_target::write_memory): ... this.
3480 * linux-low.h (class linux_process_target): Update.
3481 * lynx-low.cc (lynx_target_ops): Update.
3482 (lynx_read_memory): Turn into ...
3483 (lynx_process_target::read_memory): ... this.
3484 (lynx_write_memory): Turn into ...
3485 (lynx_process_target::write_memory): ... this.
3486 * lynx-low.h (class lynx_process_target): Update.
3487 * nto-low.cc (nto_target_ops): Update.
3488 (nto_read_memory): Turn into ...
3489 (nto_process_target::read_memory): ... this.
3490 (nto_write_memory): Turn into ...
3491 (nto_process_target::write_memory): ... this.
3492 * nto-low.h (class nto_process_target): Update.
3493 * win32-low.cc (win32_target_ops): Update.
3494 (win32_read_inferior_memory): Turn into ...
3495 (win32_process_target::read_memory): ... this.
3496 (win32_write_inferior_memory): Turn into ...
3497 (win32_process_target::write_memory): ... this.
3498 * win32-low.h (class win32_process_target): Update.
3500 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3502 Turn process_stratum_target's prepare_to_access_memory and
3503 done_accessing_memory ops into methods of process_target.
3505 * target.h (struct process_stratum_target): Remove the target ops.
3506 (class process_target): Add the target ops.
3507 * target.cc (process_target::prepare_to_access_memory): Define.
3508 (process_target::done_accessing_memory): Define.
3509 (prepare_to_access_memory): Update.
3510 (done_accessing_memory): Update.
3512 Update the derived classes and callers below.
3514 * linux-low.cc (linux_target_ops): Update.
3515 (linux_prepare_to_access_memory): Turn into ...
3516 (linux_process_target::prepare_to_access_memory): ... this.
3517 (linux_done_accessing_memory): Turn into ...
3518 (linux_process_target::done_accessing_memory): ... this.
3519 * linux-low.h (class linux_process_target): Update.
3520 * lynx-low.cc (lynx_target_ops): Update.
3521 * nto-low.cc (nto_target_ops): Update.
3522 * win32-low.cc (win32_target_ops): Update.
3524 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3526 Turn process_stratum_target's fetch_registers and store_registers
3527 ops into methods of process_target.
3529 * target.h (struct process_stratum_target): Remove the target ops.
3530 (class process_target): Add the target ops.
3531 (fetch_inferior_registers): Update the macro.
3532 (store_inferior_registers): Update the macro.
3534 Update the derived classes and callers below.
3536 * linux-low.cc (linux_target_ops): Update.
3537 (linux_fetch_registers): Turn into ...
3538 (linux_process_target::fetch_registers): ... this.
3539 (linux_store_registers): Turn into ...
3540 (linux_process_target::store_registers): ... this.
3541 * linux-low.h (class linux_process_target): Update.
3542 * lynx-low.cc (lynx_target_ops): Update.
3543 (lynx_fetch_registers): Turn into ...
3544 (lynx_process_target::fetch_registers): ... this.
3545 (lynx_store_registers): Turn into ...
3546 (lynx_process_target::store_registers): ... this.
3547 * lynx-low.h (class lynx_process_target): Update.
3548 * nto-low.cc (nto_target_ops): Update.
3549 (nto_fetch_registers): Turn into ...
3550 (nto_process_target::fetch_registers): ... this.
3551 (nto_store_registers): Turn into ...
3552 (nto_process_target::store_registers): ... this.
3553 * nto-low.h (class nto_process_target): Update.
3554 * win32-low.cc (win32_target_ops): Update.
3555 (win32_fetch_inferior_registers): Turn into ...
3556 (win32_process_target::fetch_registers): ... this.
3557 (win32_store_inferior_registers): Turn into ...
3558 (win32_process_target::store_registers): ... this.
3559 * win32-low.h (class win32_process_target): Update.
3561 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3563 Turn process_stratum_target's wait op into a method of
3566 * target.h (struct process_stratum_target): Remove the target op.
3567 (class process_target): Add the target op.
3569 Update the derived classes and callers below.
3571 * target.cc (target_wait): Update.
3572 * linux-low.cc (linux_target_ops): Update.
3573 (linux_wait): Turn into ...
3574 (linux_process_target::wait): ... this.
3575 * linux-low.h (class linux_process_target): Update.
3576 * lynx-low.cc (lynx_target_ops): Update.
3577 (lynx_wait): Turn into ...
3578 (lynx_process_target::wait): ... this.
3579 * lynx-low.h (class lynx_process_target): Update.
3580 * nto-low.cc (nto_target_ops): Update.
3581 (nto_wait): Turn into ...
3582 (nto_process_target::wait): ... this.
3583 * nto-low.h (class nto_process_target): Update.
3584 * win32-low.cc (win32_target_ops): Update.
3585 (win32_wait): Turn into ...
3586 (win32_process_target::wait): ... this.
3587 (do_initial_child_stuff): Update.
3588 * win32-low.h (class win32_process_target): Update.
3590 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3592 Turn process_stratum_target's resume op into a method of
3595 * target.h (struct process_stratum_target): Remove the target op.
3596 (class process_target): Add the target op.
3598 Update the derived classes and callers below.
3600 * server.cc (resume): Update.
3601 * target.cc (target_stop_and_wait): Update.
3602 (target_continue_no_signal): Update.
3603 (target_continue): Update.
3604 * linux-low.cc (linux_target_ops): Update.
3605 (linux_resume): Turn into ...
3606 (linux_process_target::resume): ... this.
3607 * linux-low.h (class linux_process_target): Update.
3608 * lynx-low.cc (lynx_target_ops): Update.
3609 (lynx_resume): Turn into ...
3610 (lynx_process_target::resume): ... this.
3611 * lynx-low.h (class lynx_process_target): Update.
3612 * nto-low.cc (nto_target_ops): Update.
3613 (nto_resume): Turn into ...
3614 (nto_process_target::resume): ... this.
3615 * nto-low.h (class nto_process_target): Update.
3616 * win32-low.cc (win32_target_ops): Update.
3617 (win32_resume): Turn into ...
3618 (win32_process_target::resume): ... this.
3619 (win32_process_target::detach): Update.
3620 (do_initial_child_stuff): Update.
3621 * win32-low.h (class win32_process_target): Update.
3623 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3625 Turn process_stratum_target's thread_alive op into a method of
3628 * target.h (struct process_stratum_target): Remove the target op.
3629 (class process_target): Add the target op.
3630 (mythread_alive): Update the macro.
3632 Update the derived classes and callers below.
3634 * linux-low.cc (linux_target_ops): Update.
3635 (linux_thread_alive): Turn into ...
3636 (linux_process_target::thread_alive): ... this.
3637 (wait_for_sigstop): Update.
3638 * linux-low.h (class linux_process_target): Update.
3639 * lynx-low.cc (lynx_target_ops): Update.
3640 (lynx_thread_alive): Turn into ...
3641 (lynx_process_target::thread_alive): ... this.
3642 * lynx-low.h (class lynx_process_target): Update.
3643 * nto-low.cc (nto_target_ops): Update.
3644 (nto_thread_alive): Turn into ...
3645 (nto_process_target::thread_alive): ... this.
3646 * nto-low.h (class nto_process_target): Update.
3647 * win32-low.cc (win32_target_ops): Update.
3648 (win32_thread_alive): Turn into ...
3649 (win32_process_target::thread_alive): ... this.
3650 * win32-low.h (class win32_process_target): Update.
3652 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3654 Turn process_stratum_target's join op into a method of
3657 * target.h (struct process_stratum_target): Remove the target op.
3658 (class process_target): Add the target op.
3659 (join_inferior): Update the macro.
3661 Update the derived classes and callers below.
3663 * linux-low.cc (linux_target_ops): Update.
3664 (linux_join): Turn into ...
3665 (linux_process_target::join): ... this.
3666 * linux-low.h (class linux_process_target): Update.
3667 * lynx-low.cc (lynx_target_ops): Update.
3668 (lynx_join): Turn into ...
3669 (lynx_process_target::join): ... this.
3670 * lynx-low.h (class lynx_process_target): Update.
3671 * nto-low.cc (nto_target_ops): Update.
3672 (nto_process_target::join): Define.
3673 * nto-low.h (class nto_process_target): Update.
3674 * win32-low.cc (win32_target_ops): Update.
3675 (win32_join): Turn into ...
3676 (win32_process_target::join): ... this.
3677 * win32-low.h (class win32_process_target): Update.
3679 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3681 Turn process_stratum_target's mourn op into a method of
3684 * target.h (struct process_stratum_target): Remove the target op.
3685 (class process_target): Add the target op.
3687 Update the derived classes and callers below.
3689 * target.cc (target_mourn_inferior): Update.
3690 * linux-low.cc (linux_target_ops): Update.
3691 (linux_mourn): Turn into ...
3692 (linux_process_target::mourn): ... this.
3693 (handle_extended_wait): Update.
3694 (linux_process_target::kill): Update.
3695 (linux_process_target::detach): Update.
3696 * linux-low.h (class linux_process_target): Update.
3697 * lynx-low.cc (lynx_target_ops): Update.
3698 (lynx_mourn): Turn into ...
3699 (lynx_process_target::mourn): ... this.
3700 * lynx-low.h (class lynx_process_target): Update.
3701 * nto-low.cc (nto_target_ops): Update.
3702 (nto_mourn): Turn into ...
3703 (nto_process_target::mourn): ... this.
3704 * nto-low.h (class nto_process_target): Update.
3705 * win32-low.cc (win32_target_ops): Update.
3706 (win32_mourn): Turn into ...
3707 (win32_process_target::mourn): ... this.
3708 * win32-low.h (class win32_process_target): Update.
3710 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3712 Turn process_stratum_target's detach op into a method of
3715 * target.h (struct process_stratum_target): Remove the target op.
3716 (class process_target): Add the target op.
3717 (detach_inferior): Update the macro.
3719 Update the derived classes and callers below.
3721 * linux-low.cc (linux_target_ops): Update.
3722 (linux_detach): Turn into ...
3723 (linux_process_target::detach): ... this.
3724 * linux-low.h (class linux_process_target): Update.
3725 * lynx-low.cc (lynx_target_ops): Update.
3726 (lynx_detach): Turn into ...
3727 (lynx_process_target::detach): ... this.
3728 * lynx-low.h (class lynx_process_target): Update.
3729 * nto-low.cc (nto_target_ops): Update.
3730 (nto_detach): Turn into ...
3731 (nto_process_target::detach): ... this.
3732 * nto-low.h (class nto_process_target): Update.
3733 * win32-low.cc (win32_target_ops): Update.
3734 (win32_detach): Turn into ...
3735 (win32_process_target::detach): ... this.
3736 * win32-low.h (class win32_process_target): Update.
3738 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3740 Turn process_stratum_target's kill op into a method of
3743 * target.h (struct process_stratum_target): Remove the target op.
3744 (class process_target): Add the target op.
3746 Update the derived classes and callers below.
3748 * target.cc (kill_inferior): Update.
3749 * linux-low.cc (linux_target_ops): Update.
3750 (linux_kill): Turn into ...
3751 (linux_process_target::kill): ... this.
3752 * linux-low.h (class linux_process_target): Update.
3753 * lynx-low.cc (lynx_target_ops): Update.
3754 (lynx_kill): Turn into ...
3755 (lynx_process_target::kill): ... this.
3756 * lynx-low.h (class lynx_process_target): Update.
3757 * nto-low.cc (nto_target_ops): Update.
3758 (nto_kill): Turn into ...
3759 (nto_process_target::kill): ... this.
3760 * nto-low.h (class nto_process_target): Update.
3761 * win32-low.cc (win32_target_ops): Update.
3762 (win32_kill): Turn into ...
3763 (win32_process_target::kill): ... this.
3764 * win32-low.h (class win32_process_target): Update.
3766 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3768 Turn process_stratum_target's attach op into a method of
3771 * target.h (struct process_stratum_target): Remove the target op.
3772 (class process_target): Add the target op.
3773 (myattach): Update the macro.
3775 Update the derived classes and callers below.
3777 * linux-low.cc (linux_target_ops): Update.
3778 (linux_attach): Turn into ...
3779 (linux_process_target::attach): ... this.
3780 * linux-low.h (class linux_process_target): Update.
3781 * lynx-low.cc (lynx_target_ops): Update.
3782 (lynx_attach): Turn into ...
3783 (lynx_process_target::attach): ... this.
3784 * lynx-low.h (class lynx_process_target): Update.
3785 * nto-low.cc (nto_target_ops): Update.
3786 (nto_attach): Turn into ...
3787 (nto_process_target::attach): ... this.
3788 * nto-low.h (class nto_process_target): Update.
3789 * win32-low.cc (win32_target_ops): Update.
3790 (win32_attach): Turn into ...
3791 (win32_process_target::attach): ... this.
3792 * win32-low.h (class win32_process_target): Update.
3794 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3796 Turn process_stratum_target's post_create_inferior op into a method
3799 * target.h (struct process_stratum_target): Remove the target op.
3800 (class process_target): Add the target op.
3801 (target_post_create_inferior): Update the macro.
3802 * target.cc (process_target::post_create_inferior): Define.
3804 Update the derived classes and callers below.
3806 * linux-low.cc (linux_target_ops): Update.
3807 (linux_post_create_inferior): Turn into ...
3808 (linux_process_target::post_create_inferior): ... this.
3809 * linux-low.h (class linux_process_target): Update.
3810 * lynx-low.cc (lynx_target_ops): Update.
3811 * nto-low.cc (nto_target_ops): Update.
3812 * win32-low.cc (win32_target_ops): Update.
3814 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3816 Turn process_stratum_target's create_inferior op into a method of
3819 * target.h (struct process_stratum_target): Remove the target op.
3820 (class process_target): Add the target op.
3821 (create_inferior): Rename the macro to ...
3822 (target_create_inferior): ... this.
3824 Update the derived classes and callers below.
3826 * server.cc (handle_v_run): Update.
3827 (captured_main): Update.
3828 (process_serial_event): Update.
3829 * linux-low.cc (linux_target_ops): Update.
3830 (linux_create_inferior): Turn into ...
3831 (linux_process_target::create_inferior): ... this.
3832 * linux-low.h (class linux_process_target): Update.
3833 * lynx-low.cc (lynx_target_ops): Update.
3834 (lynx_create_inferior): Turn into ...
3835 (lynx_process_target::create_inferior): ... this.
3836 * lynx-low.h (class lynx_process_target): Update.
3837 * nto-low.cc (nto_target_ops): Update.
3838 (nto_create_inferior): Turn into ...
3839 (nto_process_target::create_inferior): ... this.
3840 * nto-low.h (class nto_process_target): Update.
3841 * win32-low.cc (win32_target_ops): Update.
3842 (win32_create_inferior): Turn into ...
3843 (win32_process_target::create_inferior): ... this.
3844 * win32-low.h (class win32_process_target): Update.
3846 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3848 * target.h (class process_target): New class definition.
3849 (struct process_stratum_target) <pt>: New field with type
3851 * linux-low.h (class linux_process_target): Define as a derived
3852 class of 'process_target'.
3853 * linux-low.cc (linux_target_ops): Add a linux_process_target*
3855 * lynx-low.h (class lynx_process_target): Define as a derived
3856 class of 'process_target'.
3857 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
3859 * nto-low.h (class nto_process_target): Define as a derived
3860 class of 'process_target'.
3861 * nto-low.cc (nto_target_ops): Add an nto_process_target*
3863 * win32-low.h (class win32_process_target): Define as a derived
3864 class of 'process_target'.
3865 * win32-low.cc (win32_target_ops): Add a win32_process_target*
3868 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
3870 * configure: Regenerate.
3872 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
3873 Andrew Burgess <andrew.burgess@embecosm.com>
3875 * linux-riscv-low.cc: New file.
3876 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
3877 and nat/riscv-linux-tdesc.c.
3878 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
3879 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
3882 2020-02-14 Tom Tromey <tom@tromey.com>
3884 * acinclude.m4: Don't include acx_configure_dir.m4.
3885 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
3886 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
3887 (all, install-only, uninstall, clean-info, clean)
3888 (maintainer-clean): Don't recurse.
3889 (subdir_do, all-lib): Remove.
3890 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
3892 (generated_files): Update.
3893 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
3894 * configure: Rebuild.
3895 * configure.ac: Don't configure gnulib or libiberty.
3898 2020-02-14 Eli Zaretskii <eliz@gnu.org>
3900 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
3901 preparing the command line for CreateProcess.
3902 (win32_create_inferior): Reflect the program name in debugging
3903 output that shows the process and its command line.
3905 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
3907 * Makefile.in: Rename source files from .c to .cc.
3908 * %.c: Rename to %.cc.
3909 * configure.ac: Rename server.c to server.cc.
3910 * configure: Re-generate.
3912 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
3914 * Makefile.in: Rename gdbsupport source files from .c to .cc.
3916 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
3918 * win32-low.c (win32_create_inferior): Set signal_pid.
3920 2020-02-12 Maciej W. Rozycki <macro@wdc.com>
3921 Pedro Alves <palves@redhat.com>
3923 Skip building gdbserver in a cross-configuration.
3924 * configure.srv: Set $gdbserver_host depending on whether $target
3925 is $host. Use $gdbserver_host instead of $host.
3927 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
3929 * configure: Re-generate.
3931 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
3933 * configure: Re-generate.
3935 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
3937 * acinclude.m4: Update warning.m4 path.
3939 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
3941 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
3942 (handle_exception): Set siginfo_er.
3943 (win32_xfer_siginfo): New function.
3945 2020-02-07 Tom Tromey <tom@tromey.com>
3946 Pedro Alves <palves@redhat.com>
3948 * README: Update build documentation.
3949 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
3951 * configure.ac: Update paths.
3952 * configure: Rebuild.
3953 * acinclude.m4: Update paths.
3954 * Makefile.in: Update include paths.
3955 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
3956 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
3957 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
3958 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
3959 (%-generated.c): Update paths.
3960 * Move entire directory from ../gdb/gdbserver.
3962 2020-01-29 Maciej W. Rozycki <macro@wdc.com>
3964 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
3966 2020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3968 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
3969 assignment instead of srv_linux_obj.
3971 2020-01-28 Hannes Domani <ssbssa@yahoo.de>
3973 * server.c (handle_qxfer_libraries): Write segment-address with
3976 2020-01-24 Hannes Domani <ssbssa@yahoo.de>
3978 * Makefile.in (install-strip): New target.
3979 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
3980 * aclocal.m4: Regenerate.
3981 * configure: Regenerate.
3982 * configure.ac: Add AM_PROG_INSTALL_STRIP.
3984 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
3986 * Makefile.in (SFILES): Adjust paths to point to real files.
3987 (OBS): Move waitstatus.o to target/waitstatus.o.
3988 (TAGS): Transform paths appropriately.
3990 (nat/%.o): ... this pattern rule.
3992 (target/%.o): ... this pattern rule.
3993 * configure.srv: Adjust paths throughout to include nat/ prefix
3994 with the revant files.
3995 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
3996 * configure: Regenerate.
3998 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
4000 * Makefile.in (TAGS): Remove config files from the recipe.
4002 2020-01-14 Tom Tromey <tom@tromey.com>
4004 * configure: Rebuild.
4005 * configure.ac: Remove any checks that were added to common.m4.
4006 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
4009 2020-01-14 Tom Tromey <tom@tromey.com>
4011 * server.h: Include config.h.
4012 * gdbreplay.c: Include config.h.
4013 * configure: Rebuild.
4014 * configure.ac: Don't source common.host.
4015 * acinclude.m4: Update path.
4016 * Makefile.in (INCSUPPORT): New variable.
4017 (INCLUDE_CFLAGS): Add INCSUPPORT.
4018 (SFILES): Update paths.
4019 (version-generated.c): Update path to create-version.sh.
4020 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
4022 2020-01-14 Tom Tromey <tom@tromey.com>
4024 * configure.ac (LIBS): Use WIN32APILIBS.
4025 (USE_WIN32API): Don't define.
4026 * configure: Rebuild.
4028 2020-01-14 Tom Tromey <tom@tromey.com>
4030 * configure: Rebuild.
4032 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4034 * Makefile.in (%-generated.c): Remove rule for files from
4037 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4039 * configure: Re-generate.
4041 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4043 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
4045 * tracepoint.c (stop_tracing, flush_trace_buffer,
4046 about_to_request_buffer_space, get_trace_state_variable_value,
4047 set_trace_state_variable_value, gdb_collect): Add declaration.
4049 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4051 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
4052 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
4053 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
4054 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
4055 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
4058 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4060 * inferiors.c: Include gdbsupport/common-inferior.h.
4062 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4064 * hostio-errno.c: Include hostio.h.
4066 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4068 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
4071 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4073 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
4074 * linux-arm-tdesc.h: Include arch/arm.h.
4076 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4078 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
4080 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4082 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
4083 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
4085 2020-01-10 Pedro Alves <palves@redhat.com>
4087 * fork-child.c (post_fork_inferior): Pass target down to
4089 * inferiors.c (switch_to_thread): Add process_stratum_target
4091 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
4092 * nto-low.c (nto_target_ops): Now a process_stratum_target.
4093 * linux-low.c (linux_target_ops): Now a process_stratum_target.
4094 * remote-utils.c (prepare_resume_reply): Pass the target to
4096 * target.c (the_target): Now a process_stratum_target.
4097 (done_accessing_memory): Pass the target to switch_to_thread.
4098 (set_target_ops): Ajust to use process_stratum_target.
4099 * target.h (struct target_ops): Rename to ...
4100 (struct process_stratum_target): ... this.
4101 (the_target, set_target_ops): Adjust.
4102 (prepare_to_access_memory): Adjust comment.
4103 * win32-low.c (child_xfer_memory): Adjust to use
4104 process_stratum_target.
4105 (win32_target_ops): Now a process_stratum_target.
4107 2020-01-06 Eli Zaretskii <eliz@gnu.org>
4108 Pedro Alves <palves@redhat.com>
4110 * win32-low.c (get_child_debug_event): Extract the fatal exception
4111 from the exit status and convert to the equivalent Posix signal
4113 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
4114 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
4116 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
4118 * Makefile.in: Use INSTALL_PROGRAM_ENV.
4120 2020-01-01 Joel Brobecker <brobecker@adacore.com>
4122 * server.c (gdbserver_version): Change copyright year to 2020.
4123 * gdbreplay.c (gdbreplay_version): Likewise.
4125 2019-12-19 Christian Biesinger <cbiesinger@google.com>
4127 * configure: Regenerate.
4128 * configure.ac: Quote variable arguments of test.
4130 2019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
4132 * Makefile.in: Fix build with GNU Make 3.81
4134 2019-12-16 Tom Tromey <tromey@adacore.com>
4136 * server.c (get_exec_file): Constify result.
4138 2019-12-10 Christian Biesinger <cbiesinger@google.com>
4140 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
4141 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
4142 * config.in: Regenerate.
4143 * configure: Regenerate.
4144 * configure.ac: Don't check for strerror.
4145 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
4146 Call safe_strerror instead of strerror.
4147 * server.h (strerror): Remove this now-unnecessary declaration.
4148 * tracepoint.c (init_named_socket): Call safe_strerror instead of
4150 (gdb_agent_helper_thread): Likewise.
4151 * utils.c (perror_with_name): Likewise.
4153 2019-11-26 Tom Tromey <tom@tromey.com>
4155 * configure, config.in: Rebuild.
4157 2019-11-26 Tom Tromey <tom@tromey.com>
4159 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
4160 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
4162 * configure, config.in: Rebuild.
4164 2019-11-26 Tom Tromey <tom@tromey.com>
4166 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
4167 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
4168 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
4169 * acinclude.m4: Include ax_pthread.m4.
4170 * config.in, configure: Rebuild.
4172 2019-11-26 Christian Biesinger <cbiesinger@google.com>
4174 * debug.c (debug_set_output): Call safe_strerror instead of
4176 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
4177 (linux_kill_one_lwp): Likewise.
4178 (linux_detach_one_lwp): Likewise.
4179 (linux_wait_for_event_filtered): Likewise.
4180 (store_register): Likewise.
4181 * lynx-low.c (lynx_attach): Likewise.
4182 * mem-break.c (insert_memory_breakpoint): Likewise.
4183 (remove_memory_breakpoint): Likewise.
4184 (delete_fast_tracepoint_jump): Likewise.
4185 (set_fast_tracepoint_jump): Likewise.
4186 (uninsert_fast_tracepoint_jumps_at): Likewise.
4187 (reinsert_fast_tracepoint_jumps_at): Likewise.
4188 * nto-low.c (nto_xfer_memory): Likewise.
4189 (nto_resume): Likewise.
4191 2019-11-20 Luis Machado <luis.machado@linaro.org>
4193 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
4194 instead of register count.
4195 * tdesc.c (tdesc_contains_feature): New function.
4196 * tdesc.h (tdesc_contains_feature): New prototype.
4198 2019-11-15 Christian Biesinger <cbiesinger@google.com>
4200 * Makefile.in: Add safe-strerror.c.
4201 * configure: Regenerate.
4202 * configure.ac: Don't source common.host.
4204 2019-11-15 Christian Biesinger <cbiesinger@google.com>
4206 * config.in: Regenerate.
4207 * configure: Regenerate.
4209 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
4211 * ax.c (ax_printf): Handle size_t_arg.
4213 2019-11-06 Christian Biesinger <cbiesinger@google.com>
4215 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
4216 * mi/mi-main.c (output_cores): Likewise.
4217 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
4218 (linux_xfer_osdata_modules): Likewise.
4219 * remote.c (register_remote_support_xml): Likewise.
4220 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
4221 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
4223 2019-11-01 Christian Biesinger <cbiesinger@google.com>
4225 * configure: Regenerate.
4226 * configure.ac: Remove check for strerror_r.
4228 2019-10-31 Christian Biesinger <cbiesinger@google.com>
4230 * config.in: Regenerate.
4231 * configure: Regenerate.
4232 * configure.ac: Also check for strerror_r.
4234 2019-10-31 Christian Biesinger <cbiesinger@google.com>
4236 * ax.h (debug_agent): Remove duplicate declaration.
4238 2019-10-26 Tom de Vries <tdevries@suse.de>
4240 * linux-aarch64-low.c: Fix typos in comments.
4241 * linux-arm-low.c: Same.
4242 * linux-low.c: Same.
4243 * linux-ppc-low.c: Same.
4244 * proc-service.c: Same.
4247 * tracepoint.c: Same.
4248 * win32-low.c: Same.
4250 2019-10-25 Tom Tromey <tromey@adacore.com>
4252 * utils.c (xstrdup): Remove.
4254 2019-10-23 Tom Tromey <tom@tromey.com>
4256 * configure, config.in: Rebuild.
4258 2019-10-23 Tom Tromey <tom@tromey.com>
4260 * configure: Rebuild.
4261 * acinclude.m4: Use m4_include, not sinclude.
4263 2019-10-17 Tom Tromey <tromey@adacore.com>
4265 * configure: Rebuild.
4266 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
4267 in AC_CONFIG_FILES invocation.
4268 * Makefile.in (stamp-h, Makefile): Use new-style config.status
4271 2019-10-16 Christian Biesinger <cbiesinger@google.com>
4273 * server.c: Include xml-builtin.h.
4274 (get_xml_features): Don't declare xml_builtins here.
4276 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4278 * Makefile.in: Remove references to vec-ipa.o.
4280 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4282 * Makefile.in: Remove references to vec.c.
4284 2019-10-02 Christian Biesinger <cbiesinger@google.com>
4286 * server.c (server_waiting): Change to bool.
4287 (extended_protocol): Likewise.
4288 (response_needed): Likewise.
4289 (exit_requested): Likewise.
4290 (run_once): Likewise.
4291 (report_no_resumed): Likewise.
4292 (non_stop): Likewise.
4293 (disable_packet_vCont): Likewise.
4294 (disable_packet_Tthread): Likewise.
4295 (disable_packet_qC): Likewise.
4296 (disable_packet_qfThreadInfo): Likewise.
4297 (handle_general_set): Update.
4298 (handle_detach): Update.
4299 (handle_monitor_command): Update.
4300 (handle_query): Update.
4301 (captured_main): Update.
4302 (process_serial_event): Update.
4303 * server.h (server_waiting): Change to bool.
4304 (disable_packet_vCont): Likewise.
4305 (disable_packet_Tthread): Likewise.
4306 (disable_packet_qC): Likewise.
4307 (disable_packet_qfThreadInfo): Likewise.
4308 (run_once): Likewise.
4309 (non_stop): Likewise.
4310 * target.c (target_stop_and_wait): Update.
4312 2019-10-02 Tom Tromey <tromey@adacore.com>
4314 * Makefile.in (SFILES): Add common-inferior.c.
4315 (OBS): Add common-inferior.o.
4316 * server.c (startup_with_shell): Don't define.
4318 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
4320 * linux-low.c (linux_low_read_btrace): Update for change to
4323 2019-09-20 Christian Biesinger <cbiesinger@google.com>
4325 * debug.c (debug_threads): Remove comment in favor of the header.
4326 * debug.h (using_threads): Add declaration.
4327 (debug_threads): Add comment.
4328 * linux-aarch64-low.c: Include debug.h and remove declaration of
4330 * nto-low.c: Likewise.
4331 * remote-utils.c: Likewise.
4332 * thread-db.c: Likewise.
4334 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
4336 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
4337 and powerpc-cell64l-ipa.o.
4338 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
4339 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
4340 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
4343 * spu-low.c: Remove file.
4345 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
4346 (parse_spufs_run): Remove.
4347 (ppc_get_pc): Remove Cell/B.E. support.
4348 (ppc_set_pc): Likewise.
4349 (ppc_breakpoint_at): Likewise.
4350 (ppc_arch_setup): Likewise.
4351 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
4352 tdesc_powerpc_cell32l.
4353 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
4354 or init_registers_powerpc_cell32l.
4355 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
4356 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
4357 or init_registers_powerpc_cell32l.
4358 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
4359 (init_registers_powerpc_cell32l): Remove prototype.
4360 (init_registers_powerpc_cell64l): Likewise.
4362 * target.h (struct target_ops): Remove qxfer_spu member.
4363 * server.c (handle_qxfer_spu): Remove.
4364 (qxfer_packets): Remove entry for "spu".
4365 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
4366 * linux-low.c (SPUFS_MAGIC): Remove.
4367 (spu_enumerate_spu_ids): Remove.
4368 (linux_qxfer_spu): Remove.
4369 (linux_target_ops): Remove qxfer_spu member.
4370 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
4371 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
4372 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
4374 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4376 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
4377 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
4378 * config.in: Regenerate.
4379 * configure: Regenerate.
4381 2019-08-15 Tom Tromey <tromey@adacore.com>
4383 * target.c (target_write_memory): Use gdb::byte_vector.
4385 2019-08-15 Tom Tromey <tromey@adacore.com>
4387 * tracepoint.c (write_inferior_data_pointer)
4388 (write_inferior_integer, write_inferior_int8)
4389 (write_inferior_uinteger, m_tracepoint_action_download)
4390 (r_tracepoint_action_download, x_tracepoint_action_download)
4391 (l_tracepoint_action_download, clear_inferior_trace_buffer)
4392 (download_agent_expr, download_tracepoint_1)
4393 (download_trace_state_variables, upload_fast_traceframes): Update.
4394 * server.c (gdb_write_memory): Update.
4395 * remote-utils.c (relocate_instruction): Update.
4396 * proc-service.c (ps_pdwrite): Update.
4397 * mem-break.c (remove_memory_breakpoint)
4398 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
4399 (uninsert_fast_tracepoint_jumps_at)
4400 (reinsert_fast_tracepoint_jumps_at): Update.
4401 * linux-x86-low.c (append_insns)
4402 (i386_install_fast_tracepoint_jump_pad)
4403 (amd64_write_goto_address, i386_write_goto_address): Update.
4404 * linux-s390-low.c (append_insns, s390_write_goto_address):
4406 * linux-ppc-low.c (ppc_relocate_instruction)
4407 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
4408 (ppc_write_goto_address): Update.
4409 * linux-aarch64-low.c (append_insns): Update.
4410 * target.h (struct target_ops): Update.
4411 (write_inferior_memory): Don't declare.
4412 * target.c (target_write_memory): Rename from
4413 write_inferior_memory. Remove old target_write_memory.
4415 2019-08-15 Tom Tromey <tromey@adacore.com>
4417 * target.c (write_inferior_memory): Use std::vector.
4419 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
4422 * configure.ac: Drop enable-libmcheck support.
4423 * configure, config.in: Rebuild.
4424 * acinclude.m4: Don't include it.
4426 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4428 * configure.srv: Remove Arm xml files.
4430 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4432 * configure.srv: Add new files. Remove xml generated files.
4433 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
4435 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
4436 * linux-aarch32-tdesc.c: New file.
4437 * linux-aarch32-tdesc.h: New file.
4438 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
4439 * linux-arm-low.c (init_registers_arm, tdesc_arm)
4440 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
4441 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
4442 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
4443 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
4444 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
4445 (arm_read_description): Call arm_linux_read_description.
4446 (initialize_low_arch): Don't init registers.
4447 * linux-arm-tdesc.c: New file.
4448 * linux-arm-tdesc.h: New file.
4450 2019-07-10 Alan Hayward <alan.hayward@arm.com>
4452 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
4453 Move counter inside for.
4454 (arm_read_description): Check ptrace earlier.
4455 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
4457 2019-07-09 Tom Tromey <tom@tromey.com>
4459 * configure: Rebuild.
4460 * configure.ac: Change common to gdbsupport.
4461 * acinclude.m4: Change common to gdbsupport.
4462 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
4463 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
4464 common to gdbsupport.
4465 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
4466 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
4467 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
4468 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
4469 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
4470 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
4471 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
4472 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
4473 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
4474 common to gdbsupport.
4476 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4478 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
4480 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
4482 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4484 * configure.srv: Remove legacy xml.
4485 * linux-aarch64-low.c (initialize_low_arch): Remove
4486 initialize_low_tdesc call.
4487 * linux-aarch64-tdesc-selftest.c: Remove file.
4488 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
4489 * linux-x86-low.c (initialize_low_arch): Remove
4490 initialize_low_tdesc call.
4491 * linux-x86-tdesc-selftest.c: Remove file.
4492 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
4494 2019-06-20 Tom de Vries <tdevries@suse.de>
4496 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
4497 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
4499 2019-06-19 Tom de Vries <tdevries@suse.de>
4501 * debug.h (debug_write): Change return type to ssize_t.
4502 * debug.c (debug_write): Same.
4504 2019-06-14 Tom Tromey <tom@tromey.com>
4506 * configure.ac: Use new path to gnulib.
4507 * configure: Rebuild.
4508 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
4511 2019-06-11 Tom Tromey <tom@tromey.com>
4513 * Makefile.in (SFILES): Add alloc.c.
4515 (IPA_OBJS): Add alloc-ipa.o.
4516 (alloc-ipa.o): New target.
4517 (%.o: ../%.c): New pattern rule.
4519 2019-06-10 Tom Tromey <tromey@adacore.com>
4521 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
4522 end warning with a newline.
4523 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
4525 * thread-db.c (attach_thread): Don't end warning with a newline.
4526 (thread_db_notice_clone): Likewise.
4527 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
4529 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
4530 end warning with a newline.
4532 2019-06-04 Pedro Alves <palves@redhat.com>
4534 * server.c (captured_main): Use make_unique_xstrdup.
4536 2019-06-02 Tom Tromey <tom@tromey.com>
4538 * gdbreplay.c (fromhex): Remove.
4539 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
4541 2019-05-29 Tom Tromey <tromey@adacore.com>
4543 * configure: Rebuild.
4545 2019-05-06 Kevin Buettner <kevinb@redhat.com>
4547 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
4548 sign extension code on 32-bit builds.
4550 2019-05-03 Eli Zaretskii <eliz@gnu.org>
4553 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
4555 2019-04-19 Tom Tromey <tom@tromey.com>
4557 * server.c (struct vstop_notif): Derive from notif_event.
4559 (queue_stop_reply): Update.
4560 (remove_all_on_match_ptid): Change type. Rewrite.
4561 (discard_queued_stop_replies): Rewrite.
4562 (in_queued_stop_replies_ptid): Change type.
4563 (in_queued_stop_replies): Rewrite.
4564 (notif_stop): Update.
4565 (queue_stop_reply_callback): Update.
4566 (captured_main): Don't call initialize_notif.
4567 (push_stop_notification): Update.
4568 * notif.c (notif_write_event, handle_notif_ack)
4569 (notif_event_enque, notif_push): Update.
4570 (notif_event_xfree, initialize_notif): Remove.
4571 * notif.h (struct notif_event): Include <list>, not
4573 (struct notif_server) <queue>: Now a std::list.
4574 (notif_event_p): Remove typedef.
4575 (initialize_notif): Don't declare.
4576 (struct notif_event): Add virtual destructor.
4578 2019-04-17 Alan Hayward <alan.hayward@arm.com>
4580 * ax.c (ax_vdebug): Call debug_printf.
4581 * debug.c (debug_write): New function.
4582 * debug.h (debug_write): New declaration.
4583 * linux-low.c (sigchld_handler): Call debug_write.
4585 2019-04-17 Alan Hayward <alan.hayward@arm.com>
4587 * debug.c (debug_set_output): New function.
4588 (debug_vprintf): Send output to debug_file.
4589 (debug_flush): Likewise.
4590 * debug.h (debug_set_output): New declaration.
4591 * server.c (handle_monitor_command): Add debug-file option.
4592 (captured_main): Likewise.
4594 2019-04-17 Alan Hayward <alan.hayward@arm.com>
4596 * debug.c (remote_debug): Add definition.
4597 * debug.h (remote_debug): Add declaration.
4598 * hostio.c (remote_debug): Remove declaration.
4599 * remote-utils.c (struct ui_file): Likewise.
4600 (remote_debug): Likewise.
4601 * remote-utils.h (remote_debug): Likewise,
4602 * server.c (remote_debug): Remove definition.
4604 2019-04-10 Kevin Buettner <kevinb@redhat.com>
4606 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
4607 when using a 64-bit gdbserver.
4609 2019-04-09 Tom Tromey <tromey@adacore.com>
4611 * linux-low.c (select_event_lwp): Use find_thread_in_random.
4613 2019-04-08 Tom Tromey <tom@tromey.com>
4615 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
4617 (linux_resume_one_lwp): Likewise.
4619 2019-04-08 Tom Tromey <tom@tromey.com>
4621 * gdbreplay.c: Update.
4622 * linux-low.c: Update.
4625 2019-04-08 Tom Tromey <tom@tromey.com>
4627 * server.c: Use C++ exception handling.
4628 * linux-low.c: Use C++ exception handling.
4629 * gdbreplay.c: Use C++ exception handling.
4631 2019-04-08 Tom Tromey <tom@tromey.com>
4633 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
4634 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
4635 (captured_main, main): Update.
4636 * gdbreplay.c (main): Update.
4638 2019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4640 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
4641 value in argument pointer, return 1 if the entry is found and 0
4642 otherwise. Move comment.
4643 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
4644 * linux-low.h (linux_get_auxv): Declare.
4645 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
4647 2019-04-05 Tom Tromey <tromey@adacore.com>
4649 * server.c (gdbserver_usage): Use upper-case for metasyntactic
4652 2019-03-28 Alan Hayward <alan.hayward@arm.com>
4654 * linux-low.c (AT_HWCAP2): Add define if not already included.
4656 2019-03-26 Alan Hayward <alan.hayward@arm.com>
4658 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
4659 (aarch64_arch_setup): Call linux_get_hwcap.
4660 * linux-arm-low.c (arm_get_hwcap): Remove function.
4661 (arm_read_description): Call linux_get_hwcap.
4662 * linux-low.c (linux_get_auxv): New function.
4663 (linux_get_hwcap): Likewise.
4664 (linux_get_hwcap2): Likewise.
4665 * linux-low.h (linux_get_hwcap): New declaration.
4666 (linux_get_hwcap2): Likewise.
4667 * linux-ppc-low.c (ppc_get_auxv): Remove function.
4668 (ppc_arch_setup): Call linux_get_hwcap.
4669 * linux-s390-low.c (s390_get_hwcap): Remove function.
4670 (s390_arch_setup): Call linux_get_hwcap.
4672 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4673 Jiong Wang <jiong.wang@arm.com>
4675 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
4676 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
4678 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
4680 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4681 Jiong Wang <jiong.wang@arm.com>
4683 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
4684 (aarch64_get_hwcap): New function.
4685 (aarch64_arch_setup): Read APIA hwcap.
4687 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4688 Jiong Wang <jiong.wang@arm.com>
4690 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
4691 (initialize_low_tracepoint): Likewise.
4692 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
4693 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
4694 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
4695 (aarch64_linux_read_description): Likewise.
4696 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
4698 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4700 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
4701 i386_create_target_description for 'segments' parameter.
4702 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
4703 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
4704 * win32-i386-low.c (i386_arch_setup): Likewise.
4706 2019-03-12 Tom Tromey <tromey@adacore.com>
4708 * linux-low.c (iterate_over_lwps): Update.
4710 2019-03-06 Tom Tromey <tom@tromey.com>
4712 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
4713 (captured_main): Use SCOPE_EXIT.
4715 2019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
4717 * configure.srv: Use '$enable_unittest' instead of '$development'
4718 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
4721 2019-02-27 Tom Tromey <tromey@adacore.com>
4723 * gdbreplay.c (logchar): Handle \r\n.
4725 2019-02-07 Alan Hayward <alan.hayward@arm.com>
4727 * linux-low.c (linux_attach): Add process before lwp.
4728 * server.c (attach_inferior): Check if already attached.
4730 2019-02-07 Tom Tromey <tom@tromey.com>
4732 * x86-tdesc.h: Rename include guard.
4733 * x86-low.h: Add include guard.
4734 * wincecompat.h: Rename include guard.
4735 * win32-low.h: Add include guard.
4736 * utils.h: Rename include guard.
4737 * tracepoint.h: Rename include guard.
4738 * tdesc.h: Rename include guard.
4739 * target.h: Rename include guard.
4740 * server.h: Rename include guard.
4741 * remote-utils.h: Rename include guard.
4742 * regcache.h: Rename include guard.
4743 * nto-low.h: Rename include guard.
4744 * notif.h: Add include guard.
4745 * mem-break.h: Rename include guard.
4746 * lynx-low.h: Add include guard.
4747 * linux-x86-tdesc.h: Add include guard.
4748 * linux-s390-tdesc.h: Add include guard.
4749 * linux-ppc-tdesc-init.h: Add include guard.
4750 * linux-low.h: Add include guard.
4751 * linux-aarch64-tdesc.h: Add include guard.
4752 * linux-aarch32-low.h: Add include guard.
4753 * inferiors.h: Rename include guard.
4754 * i387-fp.h: Rename include guard.
4755 * hostio.h: Rename include guard.
4756 * gdbthread.h: Rename include guard.
4757 * gdb_proc_service.h: Rename include guard.
4758 * event-loop.h: Rename include guard.
4759 * dll.h: Rename include guard.
4760 * debug.h: Rename include guard.
4761 * ax.h: Rename include guard.
4763 2018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
4766 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
4767 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
4769 2019-01-25 Tom Tromey <tom@tromey.com>
4771 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
4773 2019-01-25 Tom Tromey <tom@tromey.com>
4775 * win32-low.c: Fix common/ includes.
4776 * win32-i386-low.c: Fix common/ includes.
4777 * tracepoint.c: Fix common/ includes.
4778 * thread-db.c: Fix common/ includes.
4779 * target.h: Fix common/ includes.
4780 * symbol.c: Fix common/ includes.
4781 * spu-low.c: Fix common/ includes.
4782 * server.h: Fix common/ includes.
4783 * server.c: Fix common/ includes.
4784 * remote-utils.c: Fix common/ includes.
4785 * regcache.h: Fix common/ includes.
4786 * regcache.c: Fix common/ includes.
4787 * nto-x86-low.c: Fix common/ includes.
4788 * notif.h: Fix common/ includes.
4789 * mem-break.h: Fix common/ includes.
4790 * lynx-low.c: Fix common/ includes.
4791 * lynx-i386-low.c: Fix common/ includes.
4792 * linux-x86-tdesc-selftest.c: Fix common/ includes.
4793 * linux-x86-low.c: Fix common/ includes.
4794 * linux-low.c: Fix common/ includes.
4795 * inferiors.h: Fix common/ includes.
4796 * i387-fp.c: Fix common/ includes.
4797 * hostio.c: Fix common/ includes.
4798 * hostio-errno.c: Fix common/ includes.
4799 * gdbthread.h: Fix common/ includes.
4800 * gdbreplay.c: Fix common/ includes.
4801 * fork-child.c: Fix common/ includes.
4802 * event-loop.c: Fix common/ includes.
4804 (enum gdb_agent_op): Fix common/ includes.
4806 2019-01-21 Tom Tromey <tom@tromey.com>
4808 * tracepoint.c: Fix includes.
4809 * remote-utils.c: Fix includes.
4810 * linux-x86-low.c: Fix includes.
4812 2019-01-01 Joel Brobecker <brobecker@adacore.com>
4814 * gdbreplay.c (gdbreplay_version): Update copyright year in
4816 * server.c (gdbserver_version): Likewise.
4818 2018-12-05 Alan Hayward <alan.hayward@arm.com>
4820 * linux-low.c (add_lwp): Switch ordering.
4822 2018-11-29 Tom Tromey <tom@tromey.com>
4824 * win32-low.c (win32_join): Take pid, not process.
4825 * target.h (struct target_ops) <join>: Change argument type.
4826 (join_inferior): Change argument name.
4827 * spu-low.c (spu_join): Take pid, not process.
4828 * server.c (handle_detach): Preserve pid before destroying
4830 * lynx-low.c (lynx_join): Take pid, not process.
4831 * linux-low.c (linux_join): Take pid, not process.
4833 2018-11-23 Alan Hayward <alan.hayward@arm.com>
4835 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
4836 (aarch64_cannot_fetch_register): Likewise.
4837 (struct linux_target_ops): Update references.
4839 2018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4841 * linux-ppc-low.c: Include nat/linux-ptrace.h.
4843 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4845 * configure.srv (ipa_ppc_linux_regobj): Add
4846 powerpc-isa207-htm-vsx32l-ipa.o and
4847 powerpc-isa207-htm-vsx64l-ipa.o.
4848 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
4849 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
4850 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
4851 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
4852 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
4853 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
4854 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
4855 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
4856 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
4857 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
4858 (init_registers_powerpc_isa207_htm_vsx32l)
4859 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
4860 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
4861 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
4862 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
4863 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
4864 (ppc_store_tm_ctarregset): New functions.
4865 (ppc_regsets): Add entries for HTM regsets.
4866 (ppc_arch_setup): Set htm in features struct when needed. Set
4867 sizes for the HTM regsets.
4868 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
4869 (initialize_low_arch): Call
4870 init_registers_powerpc_isa207_htm_vsx32l and
4871 init_registers_powerpc_isa207_htm_vsx64l.
4872 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
4873 PPC_TDESC_ISA207_HTM_VSX.
4874 (initialize_low_tracepoint): Call
4875 init_registers_powerpc_isa207_htm_vsx32l and
4876 init_registers_powerpc_isa207_htm_vsx64l.
4878 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4880 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
4881 rs6000/power-linux-pmu.xml to srv_xmlfiles.
4882 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
4883 (ppc_store_pmuregset): New functions.
4884 (ppc_regsets): Add entries for ebb and pmu regsets.
4885 (ppc_arch_setup): Set isa207 in features struct if the ebb and
4886 pmu regsets are available. Set sizes for these regsets.
4888 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4890 * configure.srv (ipa_ppc_linux_regobj): Add
4891 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
4892 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
4893 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
4894 rs6000/powerpc-isa207-vsx32l.xml, and
4895 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
4896 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
4897 <PPC_TDESC_ISA207_VSX>: New enum value.
4898 (init_registers_powerpc_isa207_vsx32l): Declare.
4899 (init_registers_powerpc_isa207_vsx64l): Declare.
4900 * linux-ppc-low.c (ppc_fill_tarregset): New function.
4901 (ppc_store_tarregset): New function.
4902 (ppc_regsets): Add entry for the TAR regset.
4903 (ppc_arch_setup): Set isa207 in features struct when needed. Set
4904 size for the TAR regsets.
4905 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
4906 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
4907 and init_registers_powerpc_isa207_vsx64l.
4908 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
4909 (initialize_low_tracepoint): Call
4910 init_registers_powerpc_isa207_vsx32l and
4911 init_registers_powerpc_isa207_vsx64l.
4913 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4914 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4916 * configure.srv (ipa_ppc_linux_regobj): Add
4917 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
4918 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
4919 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
4920 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
4921 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
4922 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
4923 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
4924 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
4925 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
4926 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
4927 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
4928 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
4929 (ppc_hwcap): Add comment.
4930 (ppc_hwcap2): New global.
4931 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
4932 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
4933 (ppc_regsets): Add entries for the DSCR and PPR regsets.
4934 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
4935 when needed. Set sizes for the the DSCR and PPR regsets.
4936 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
4937 (initialize_low_arch): Call
4938 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
4939 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
4940 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
4941 PPC_TDESC_ISA205_PPR_DSCR_VSX.
4942 (initialize_low_tracepoint): Call
4943 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
4944 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
4946 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4948 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
4950 2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
4951 Simon Marchi <simark@simark.ca>
4953 * acinclude.m4: Include "../selftest.m4".
4954 * configure: Regenerate.
4955 * configure.ac: Use "GDB_AC_SELFTEST".
4956 * configure.srv: Use "$enable_unittests" instead of
4957 "$development" when checking whether unit tests have been
4959 * server.c (captured_main): Update message informing that
4960 selftests have been disabled.
4962 2018-10-04 Tom Tromey <tom@tromey.com>
4964 * configure: Rebuild.
4966 2018-10-04 Tom Tromey <tom@tromey.com>
4968 * server.c (handle_status): Rename inner "thread".
4969 (process_serial_event): Declare "res" in 'm' case.
4970 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
4971 (iterate_over_lwps): Rename inner "thread".
4972 (linux_qxfer_libraries_svr4): Rename inner "len".
4973 * gdbthread.h (find_thread_in_random): Rename inner "thread".
4975 2018-10-01 Gary Benson <gbenson@redhat.com>
4977 * gdb_proc_service.h: Moved common code to
4978 common/gdb_proc_service.h.
4980 2018-10-01 Gary Benson <gbenson@redhat.com>
4982 * gdb_proc_service.h: Synchronize comments and whitespace with
4983 GDB's version of this file.
4985 2018-09-25 Tom Tromey <tom@tromey.com>
4987 * configure: Rebuild.
4988 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
4990 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
4992 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
4993 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
4994 ($(IPA_LIB)): Sort IPA_OBJS.
4996 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
4998 * Makefile.in: Remove references to $(ADD_DEPS).
5000 2018-09-16 Tom Tromey <tom@tromey.com>
5002 * remote-utils.c (remote_open): Use GNU style for metasyntactic
5004 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
5007 2018-09-05 Tom Tromey <tom@tromey.com>
5009 * configure: Rebuild.
5011 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
5014 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
5016 2018-08-27 Tom Tromey <tom@tromey.com>
5019 * configure: Rebuild.
5021 2018-08-27 Tom Tromey <tom@tromey.com>
5023 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
5024 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
5025 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
5026 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
5027 (s390x_emit_stack_adjust): Add casts to unsigned char.
5029 2018-08-22 Simon Marchi <simon.marchi@ericsson.com>
5033 * server.h (struct client_state) <disable_randomization>:
5036 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5038 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
5040 (mips_supply_ptrace_register): Likewise.
5042 2018-07-22 Tom Tromey <tom@tromey.com>
5044 * configure: Rebuild.
5046 2018-07-22 Tom Tromey <tom@tromey.com>
5048 * win32-low.c (win32_create_inferior): Remove unused variables.
5049 * gdbreplay.c (remote_open): Remove unused variable.
5050 * remote-utils.c (remote_prepare): Remove unused variable.
5051 * x86-tdesc.h (X86_TDESC_H): Define.
5052 (amd64_expedite_regs): Define conditionally.
5053 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
5054 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
5055 * remote-utils.c (readchar): Remove unused variable.
5057 2018-07-13 Pedro Alves <palves@redhat.com>
5059 * linux-low.c (linux_kill): Change parameter to process_info
5060 pointer instead of pid. Adjust.
5061 * lynx-low.c (lynx_kill): Likewise.
5062 * nto-low.c (nto_kill): Likewise.
5063 * spu-low.c (spu_kill): Likewise.
5064 * win32-low.c (win32_kill): Likewise.
5065 * server.c (handle_v_kill, kill_inferior_callback)
5066 (detach_or_kill_for_exit): Adjust.
5067 * target.c (kill_inferior): Change parameter to process_info
5068 pointer instead of pid. Adjust.
5069 * target.h (struct target_ops) <kill>: Change parameter to
5070 process_info pointer instead of pid. Adjust all implementations
5072 (kill_inferior): Likewise.
5074 2018-07-13 Pedro Alves <palves@redhat.com>
5076 * linux-low.c (linux_detach, linux_join): Change parameter to
5077 process_info pointer instead of pid. Adjust.
5078 * lynx-low.c (lynx_detach, lynx_join): Likewise.
5079 * nto-low.c (nto_detach): Likewise.
5080 * spu-low.c (spu_detach, spu_join): Likewise.
5081 * win32-low.c (win32_detach, win32_join): Likewise.
5082 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
5083 * target.h (struct target_ops) <detach, join>: Change parameter to
5084 process_info pointer instead of pid. Adjust all implementations
5086 (detach_inferior, join_inferior): Rename 'pid' parameter to
5089 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
5090 Jan Kratochvil <jan.kratochvil@redhat.com>
5091 Paul Fertser <fercerpav@gmail.com>
5092 Tsutomu Seki <sekiriki@gmail.com>
5094 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
5095 (OBS): Add 'common/netstuff.o'.
5096 (GDBREPLAY_OBS): Likewise.
5097 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
5098 (remote_open): Implement support for IPv6
5100 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
5102 (handle_accept_event): Accept connections from IPv6 sources.
5103 (remote_prepare): Handle IPv6-style hostnames; implement
5104 support for IPv6 connections.
5105 (remote_open): Implement support for printing connections from
5108 2018-07-11 Pedro Alves <palves@redhat.com>
5111 * mem-break.c (any_persistent_commands): Add process_info
5112 parameter and use it instead of relying on the current process.
5113 Change return type to bool.
5114 * mem-break.h (any_persistent_commands): Add process_info
5115 parameter and change return type to bool.
5116 * server.c (handle_detach): Remove require_running_or_return call.
5117 Look up the process_info for the process we're about to detach.
5118 If not found, return back error to GDB. Adjust
5119 any_persistent_commands call to pass down a process pointer.
5121 2018-07-11 Pedro Alves <palves@redhat.com>
5123 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
5124 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
5125 instead of collect_register_by_name.
5126 * regcache.c (regcache_raw_get_unsigned_by_name): New.
5127 * regcache.h (regcache_raw_get_unsigned_by_name): New.
5129 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
5130 Pedro Alves <palves@redhat.com>
5132 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
5134 2018-07-03 Tom Tromey <tom@tromey.com>
5136 * linux-low.c: Update.
5137 * lynx-low.c: Update.
5138 * mem-break.c: Update.
5139 * nto-low.c: Update.
5140 * remote-utils.c: Update.
5142 * spu-low.c: Update.
5144 * win32-low.c: Update.
5146 2018-07-03 Tom Tromey <tom@tromey.com>
5150 2018-07-03 Tom Tromey <tom@tromey.com>
5152 * linux-low.c: Update.
5154 2018-07-03 Tom Tromey <tom@tromey.com>
5158 2018-07-03 Tom Tromey <tom@tromey.com>
5160 * linux-low.c: Update.
5161 * linux-mips-low.c: Update.
5162 * lynx-low.c: Update.
5163 * nto-low.c: Update.
5164 * remote-utils.c: Update.
5166 * spu-low.c: Update.
5168 * thread-db.c: Update.
5170 2018-07-03 Tom Tromey <tom@tromey.com>
5172 * linux-low.c: Update.
5173 * linux-mips-low.c: Update.
5174 * lynx-low.c: Update.
5175 * mem-break.c: Update.
5176 * nto-low.c: Update.
5177 * remote-utils.c: Update.
5179 * spu-low.c: Update.
5181 * tracepoint.c: Update.
5183 2018-07-03 Tom Tromey <tom@tromey.com>
5185 * linux-low.c: Update.
5186 * linux-ppc-low.c: Update.
5187 * linux-x86-low.c: Update.
5188 * proc-service.c: Update.
5190 * spu-low.c: Update.
5191 * thread-db.c: Update.
5192 * win32-low.c: Update.
5194 2018-07-03 Tom Tromey <tom@tromey.com>
5196 * linux-low.c: Update.
5197 * lynx-low.c: Update.
5198 * nto-low.c: Update.
5199 * remote-utils.c: Update.
5200 * spu-low.c: Update.
5201 * thread-db.c: Update.
5202 * win32-low.c: Update.
5204 2018-06-29 Joel Brobecker <brobecker@adacore.com>
5206 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
5207 parameter in call to 'amd64_create_target_description'.
5209 2018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5211 * x86-tdesc.h: Remove executable permission flag.
5213 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5215 * configure.ac: Remove AC_PREREQ, add missing quoting.
5216 * configure: Re-generate.
5217 * config.in: Re-generate.
5218 * aclocal.m4: Re-generate.
5220 2018-06-18 Simon Marchi <simon.marchi@ericsson.com>
5222 * tracepoint.h (current_traceframe): Remove declaration.
5224 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5226 * linux-aarch64-low.c (is_sve_tdesc): New function.
5227 (aarch64_sve_regs_copy_to_regcache): Likewise.
5228 (aarch64_sve_regs_copy_from_regcache): Likewise.
5229 (aarch64_regs_info): Add SVE checks.
5230 (initialize_low_arch): Initialize SVE.
5232 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5234 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
5236 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5238 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
5239 (initialize_low_tracepoint): Likewise
5240 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
5241 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
5243 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
5245 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
5247 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5249 * server.h (PBUFSIZ): Increase size
5251 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5253 * regcache.c (regcache::raw_compare): New function.
5254 * regcache.h (regcache::raw_compare): New declaration.
5256 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5258 * regcache.c (new_register_cache): Use new.
5259 (free_register_cache): Use delete.
5260 (register_data): Use const.
5261 (supply_register): Move body inside regcache.
5262 (regcache::raw_supply): New override function.
5263 (collect_register): Move body inside regcache.
5264 (regcache::raw_collect): New override function.
5265 (regcache::get_register_status): New override function.
5266 * regcache.h (struct regcache): Inherit from reg_buffer_common.
5268 2018-06-09 Tom Tromey <tom@tromey.com>
5270 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
5272 (event_queue): Use std::queue.
5273 (gdb_event_xfree): Remove.
5274 (initialize_event_loop, process_event, wait_for_event): Update.
5276 2018-06-08 Stan Cox <scox@redhat.com>
5278 * win32-low.c (win32_create_inferior): last_ptid and last_status
5279 moved to client_state.
5281 2018-06-08 Pedro Alves <palves@redhat.com>
5283 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
5284 common/common-exceptions.o, common/common-utils.o,
5285 common/errors.o, common/print-utils.o and utils.o.
5286 * gdbreplay.c: Include "common-defs.h" instead of the two
5287 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
5288 string.h or alloca.h.
5289 (perror_with_name): Delete.
5290 (remote_open): Use xstrdup instead of strdup.
5291 (main): Rename to ...
5292 (captured_main): ... this.
5295 2018-06-08 Tom Tromey <tom@tromey.com>
5297 * linux-low.c (linux_low_read_btrace): Update.
5299 2018-06-04 Stan Cox <scox@redhat.com>
5301 * server.h (struct client_state): New.
5302 * server.c (cont_thread, general_thread, multi_process)
5303 (report_fork_events, report_vfork_events, report_exec_events)
5304 (report_thread_events, swbreak_feature, hwbreak_feature)
5305 (vCont_supported, disable_randomization, pass_signals)
5306 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
5307 Moved to client_state.
5308 * remote-utils.c (remote_debug, noack_mode)
5309 (transport_is_reliable): Moved to client_state.
5310 * tracepoint.c (current_traceframe): Moved to client_state.
5313 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
5314 linux-low.c, remote-utils.h, target.c: Use client_state.
5316 2018-05-31 Alan Hayward <alan.hayward@arm.com>
5318 * configure.srv: Add new c/h file.
5320 2018-05-31 Alan Hayward <alan.hayward@arm.com>
5322 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
5325 2018-05-25 Maciej W. Rozycki <macro@mips.com>
5327 * gdb.arch/mips-fpregset-core.exp: New test.
5328 * gdb.arch/mips-fpregset-core.c: New test source.
5330 2018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
5333 * hostio.c (require_int): Do not report overflow for integers
5334 between 0xfffffff and 0x7fffffff.
5336 2018-05-22 Maciej W. Rozycki <macro@mips.com>
5338 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
5339 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
5340 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
5342 (the_low_target): Wire them.
5344 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5346 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
5347 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
5348 mode. Call collect_register_by_name with vscr using
5349 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
5350 (ppc_store_vrregset): Add and set vscr_offset variable as in
5351 ppc_fill_vrregset. Call supply_register_by_name with vscr using
5354 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5356 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
5357 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
5358 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
5360 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5362 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
5363 (ppc_store_vsxregset): Likewise.
5364 (ppc_fill_vrregset): Likewise.
5365 (ppc_store_vrregset): Likewise.
5366 (ppc_fill_evrregset): Likewise.
5367 (ppc_store_evrregset): Likewise.
5368 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
5369 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
5372 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5374 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
5375 wordsize of the inferior. Call ppc_linux_target_wordsize.
5377 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5379 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
5380 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
5381 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
5382 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
5383 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
5384 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
5385 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
5386 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
5387 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
5388 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
5389 (tdesc_powerpc_e500l): Remove.
5390 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
5391 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
5392 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
5393 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
5395 (ppc_arch_setup): Remove target description matching code. Fill a
5396 ppc_linux_features struct and call ppc_linux_match_description
5399 2018-05-22 Maciej W. Rozycki <macro@mips.com>
5401 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
5402 width of the requested register exceeds the width of the
5404 (mips_cannot_store_register): Likewise.
5406 2018-05-21 Maciej W. Rozycki <macro@mips.com>
5408 * linux-mips-low.c (mips_fetch_register): New function. Update
5410 (mips_store_gregset): Supply 0 rather than $restart for $zero.
5411 (the_low_target): Wire `mips_fetch_register'.
5413 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5415 * lynx-i386-low.c (LYNXOS_178): New macro.
5416 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
5417 the layout on LynxOS-178.
5418 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
5419 handle floating point registers that are not supported by
5422 2018-05-10 Tom Tromey <tom@tromey.com>
5424 * configure: Rebuild.
5426 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5429 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
5430 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
5431 Use it to set the expedite_regs field in the given tdesc.
5432 * x86-tdesc.h: New file.
5433 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
5434 Adjust following the addition of the new expedite_regs parameter
5435 to init_target_desc.
5436 * linux-tic6x-low.c (tic6x_read_description): Likewise.
5437 * linux-x86-tdesc.c: #include "x86-tdesc.h".
5438 (i386_linux_read_description, amd64_linux_read_description):
5439 Adjust following the addition of the new expedite_regs parameter
5440 to init_target_desc.
5441 * lynx-i386-low.c: #include "x86-tdesc.h".
5442 (lynx_i386_arch_setup): Adjust following the addition of the new
5443 expedite_regs parameter to init_target_desc.
5444 * nto-x86-low.c: #include "x86-tdesc.h".
5445 (nto_x86_arch_setup): Adjust following the addition of the new
5446 expedite_regs parameter to init_target_desc.
5447 * win32-i386-low.c: #include "x86-tdesc.h".
5448 (i386_arch_setup): Adjust following the addition of the new
5449 expedite_regs parameter to init_target_desc.
5451 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5454 * win32-low.c (win32_create_inferior): Add call to my_wait
5455 setting last_status global.
5457 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5460 * win32-low.c (create_process): Only call gdb_tilde_expand if
5461 inferior_cwd is not NULL.
5463 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
5465 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
5466 registers to the cache if their values have changed.
5467 (i387_xsave_to_cache): Provide default values for x87 control
5468 registers when these features are available, but disabled.
5469 * regcache.c (supply_register_by_name_zeroed): New function.
5470 * regcache.h (supply_register_by_name_zeroed): Declare new
5473 2018-05-07 Tom Tromey <tom@tromey.com>
5475 * configure: Rebuild.
5477 2018-05-04 Tom Tromey <tom@tromey.com>
5479 * configure: Rebuild.
5481 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5482 Pedro Alves <palves@redhat.com>
5484 * linux-aarch64-low.c (aarch64_stopped_data_address):
5487 2018-04-27 Tom Tromey <tom@tromey.com>
5489 * configure: Rebuild.
5491 2018-04-23 Tom Tromey <tom@tromey.com>
5493 * configure: Rebuild.
5495 2018-04-19 Simon Marchi <simon.marchi@ericsson.com>
5497 * Makefile.in (depcomp): Add "..".
5498 (all_deps_files): New and use it.
5500 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5502 * configure.srv (aarch64*-*-linux*): Don't include xml.
5503 (i[34567]86-*-cygwin*): Likewise.
5504 (i[34567]86-*-linux*): Likewise.
5505 (i[34567]86-*-lynxos*): Likewise.
5506 (i[34567]86-*-mingw32ce*): Likewise.
5507 (i[34567]86-*-mingw*): Likewise.
5508 (i[34567]86-*-nto*): Likewise.
5509 (tic6x-*-uclinux): Likewise.
5510 (x86_64-*-linux*): Likewise.
5511 (x86_64-*-mingw*): Likewise.
5512 (x86_64-*-cygwin*): Likewise.
5514 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5516 * tdesc.c: Remove xml parameter.
5518 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5520 * server.c (get_features_xml): Remove cast.
5521 * tdesc.c (void target_desc::accept): Fill in function.
5522 (tdesc_get_features_xml): Remove old xml creation.
5523 (print_xml_feature::visit_pre): Add xml vistor.
5524 * tdesc.h (struct target_desc): Make xmltarget mutable.
5525 (tdesc_get_features_xml): Remove declaration.
5527 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5529 * tdesc.c (tdesc_architecture_name): Add new function.
5530 (tdesc_osabi_name): Likewise.
5531 (tdesc_get_features_xml): Use new functions.
5533 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5535 * tdesc.c (tdesc_create_flags): Remove.
5536 (tdesc_add_flag): Likewise.
5537 (tdesc_named_type): Likewise.
5538 (tdesc_create_union): Likewise.
5539 (tdesc_create_struct): Likewise.
5540 (tdesc_create_vector): Likewise.
5541 (tdesc_add_bitfield): Likewise.
5542 (tdesc_add_field): Likewise.
5543 (tdesc_set_struct_size): Likewise.
5545 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5547 * tdesc.c (~target_desc): Remove implictly deleted items.
5548 (init_target_desc): Iterate all features.
5549 (tdesc_get_features_xml): Use vector.
5550 (tdesc_create_feature): Create feature.
5551 * tdesc.h (tdesc_feature) Remove
5552 (target_desc): Add features.
5554 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5556 * Makefile.in: Add common/tdesc.c
5557 * tdesc.c (init_target_desc): init all reg_defs from register
5559 (tdesc_create_reg): Create tdesc_reg.
5560 * tdesc.h (tdesc_feature): Add register vector.
5562 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
5564 * tdesc.h (struct target_desc) <features>: Change type to
5565 std::vector<std::string>.
5566 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
5568 (tdesc_get_features_xml): Likewise.
5569 (tdesc_create_feature): Likewise.
5571 2018-03-26 Alan Hayward <alan.hayward@arm.com>
5573 * regcache.c (find_register_by_number): Return a ref.
5574 (find_regno): Use references.
5575 (register_size): Likewise.
5576 (register_data): Likewise.
5577 * tdesc.c (target_desc::~target_desc): Remove free calls.
5578 (target_desc::operator==): Use std::vector compare.
5579 (init_target_desc): Use reference.
5580 (tdesc_create_reg): Use reg constructors.
5581 * tdesc.h (struct target_desc): Replace pointer with object.
5583 2018-03-23 Alan Hayward <alan.hayward@arm.com>
5585 * regcache.c (find_register_by_number): Make static.
5586 (find_regno): Use find_register_by_number
5587 * regcache.h (struct reg): Remove declaration.
5589 2018-03-23 Alan Hayward <alan.hayward@arm.com>
5591 * tdesc.c (target_desc::~target_desc): Move to here.
5592 (target_desc::operator==): Likewise.
5593 * tdesc.h (target_desc::~target_desc): Move from here.
5594 (target_desc::operator==): Likewise.
5596 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
5598 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
5600 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5602 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
5604 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
5605 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
5606 and init_registers_s390_gs_linux64.
5608 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5610 * linux-s390-low.c (s390_fill_gs): Remove function.
5611 (s390_fill_gsbc): Remove function.
5612 (s390_regsets): Set fill functions for the guarded storage regsets
5615 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5617 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
5618 the word size. Add comment.
5619 (s390_get_wordsize): New function.
5620 (s390_arch_setup): No longer select a temporary tdesc to fetch the
5621 pswm with it. Instead, use s390_get_wordsize to determine the
5622 word size first and derive the correct tdesc from that directly.
5624 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
5626 * Makefile.in: Include silent-rules.mk.
5627 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
5628 (COMPILE): Add ECHO_CXX.
5629 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5630 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5631 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
5632 (version-generated.c): Add ECHO_GEN.
5633 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
5634 (IPAGENT_COMPILE): Add ECHO_CXX.
5635 (%-generated.c): Add ECHO_REGDAT.
5637 2018-03-14 Tom Tromey <tom@tromey.com>
5640 * ax.c (ax_printf): Special case for NULL.
5642 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5644 * linux-low.c (linux_qxfer_libraries_svr4): Use
5645 xml_escape_text_append.
5647 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5649 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
5651 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5653 * server.c (handle_general_set): Remove unnecessary xstrdup.
5655 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5657 * server.c (parse_debug_format_options): Adjust to
5658 delim_string_to_char_ptr_vec changes.
5659 * thread-db.c (thread_db_load_search): Adjust to
5660 dirnames_to_char_ptr_vec changes.
5662 2018-03-01 Markus Metzger <markus.t.metzger@intel.com>
5664 * target.h (target_enable_btrace, target_disable_btrace)
5665 (target_read_btrace, target_read_btrace_conf): Turn macro into
5666 inline function. Throw error if target method is not defined.
5667 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
5668 check for btrace target method. Be prepared to handle exceptions
5669 from btrace target methods.
5671 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5673 * server.c (captured_main): Change order of error message printed
5674 when the current working directory cannot be found.
5676 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5678 * server.c: Include "filenames.h" and "pathstuff.h".
5679 (program_name): Delete variable.
5680 (program_path): New anonymous class.
5681 (get_exec_wrapper): Use "program_path" instead of
5683 (handle_v_run): Likewise.
5684 (captured_main): Likewise.
5685 (process_serial_event): Likewise.
5687 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5689 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
5690 (OBJS): Add "pathstuff.o".
5691 * server.c (current_directory): New global variable.
5692 (captured_main): Initialize "current_directory".
5694 2018-02-26 Alan Hayward <alan.hayward@arm.com>
5696 * tdesc.c: Use common/tdesc.h.
5697 * tdesc.h: Likewise.
5699 2018-02-20 Alan Hayward <alan.hayward@arm.com>
5700 Simon Marchi <simon.marchi@ericsson.com>
5702 * Makefile.in: Switch order of make rules.
5704 2018-02-19 Alan Hayward <alan.hayward@arm.com>
5706 * Makefile.in: Add common directory in build.
5707 * configure.ac: Add common reference.
5708 * configure: Regenerate.
5710 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
5712 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
5713 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
5714 * spu-low.c (spu_target_ops): Likewise.
5715 * win32-low.c (win32_target_ops): Likewise.
5716 * server.c (supported_btrace_packets): Report packets unconditionally.
5717 * target.h (target_ops) <supports_btrace>: Remove.
5718 (target_supports_btrace): Remove.
5720 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
5722 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
5723 (handle_btrace_disable): Change return type to void. Use exceptions
5725 (handle_btrace_general_set): Catch exception and copy message to
5728 2018-02-08 Tom Tromey <tom@tromey.com>
5730 * linux-low.c (install_software_single_step_breakpoints): Use
5731 make_scoped_restore.
5732 * inferiors.c (make_cleanup_restore_current_thread): Remove.
5733 (do_restore_current_thread_cleanup): Remove.
5734 * gdbthread.h (make_cleanup_restore_current_thread): Don't
5737 2018-02-08 Tom Tromey <tom@tromey.com>
5739 * mem-break.c (set_raw_breakpoint_at): Use
5740 gdb::unique_xmalloc_ptr.
5742 2018-01-30 Pedro Alves <palves@redhat.com>
5745 * target.c (target_terminal::terminal_state): Rename to ...
5746 (target_terminal::m_terminal_state): ... this.
5748 2018-01-19 James Clarke <jrtc27@jrtc27.com>
5750 * linux-low.c (handle_extended_wait): Surround call to
5751 thread_db_notice_clone with #ifdef USE_THREAD_DB.
5753 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
5755 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
5756 linux_ptrace_attach_fail_reason_string now returning an
5758 (linux_attach): Likewise.
5759 * thread-db.c (attach_thread): Likewise.
5761 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
5764 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
5765 checking for fs_base/gs_base fields in struct user_regs_struct.
5766 * configure: Regenerate.
5768 2018-01-16 Yao Qi <yao.qi@linaro.org>
5771 * linux-low.c (fetch_register): Call supply_register instead of
5774 2018-01-08 Yao Qi <yao.qi@linaro.org>
5775 Simon Marchi <simon.marchi@ericsson.com>
5777 * Makefile.in (OBS): Remove selftest.o.
5778 * configure.ac: Set srv_selftest_objs if $development is true.
5779 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
5780 * configure: Re-generated.
5781 * server.c (captured_main): Wrap variable selftest_filter with
5784 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
5786 * server.c (parse_debug_format_options): Return std::string.
5787 (handle_monitor_command, captured_main): Adjust.
5789 2018-01-05 Pedro Alves <palves@redhat.com>
5792 * server.c (captured_main): Pass quiet=false to
5793 save_original_signals_state.
5795 2018-01-01 Joel Brobecker <brobecker@adacore.com>
5797 * gdbreplay.c (gdbreplay_version): Update copyright year in
5799 * server.c (gdbserver_version): Likewise.
5801 2017-12-08 Tom Tromey <tom@tromey.com>
5803 * ax.c (ax_printf): Update.
5805 2017-12-07 Yao Qi <yao.qi@linaro.org>
5807 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
5808 aarch64_linux_read_description.
5809 * linux-amd64-ipa.c (idx2mask): New array.
5810 (get_ipa_tdesc): Move idx2mask out.
5811 (initialize_low_tracepoint): Initialize target descriptions.
5812 * linux-i386-ipa.c (idx2mask): New array.
5813 (get_ipa_tdesc): Move idx2mask out.
5814 (initialize_low_tracepoint): Initialize target descriptions.
5816 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
5818 * tdesc.c (struct tdesc_type): Change return type.
5819 (tdesc_add_flag): Change parameter type.
5820 (tdesc_add_bitfield): Likewise.
5821 (tdesc_add_field): Likewise.
5822 (tdesc_set_struct_size): Likewise.
5824 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
5826 * regcache.c (registers_to_string): Remove unused variable.
5828 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5830 * inferiors.c (for_each_inferior_with_data): Remove.
5831 * inferiors.h (for_each_inferior_with_data): Remove.
5832 * server.c (handle_qxfer_threads_worker): Change parameter type.
5833 (handle_qxfer_threads_proper): Use for_each_thread.
5835 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5837 * inferiors.c (for_each_inferior): Remove.
5838 (clear_inferiors): Use for_each_thread.
5839 * inferiors.h (for_each_inferior): Remove.
5840 * linux-low.c (linux_wait_for_event_filtered): Use
5842 (linux_stabilize_threads): Likewise.
5843 * regcache.c (regcache_release): Likewise.
5844 * server.c (gdb_wants_all_threads_stopped): Likewise.
5845 (clear_pending_status_callback): Remove.
5846 (handle_status): Use for_each_thread.
5847 (captured_main): Likewise.
5848 * win32-low.c (child_init_thread_list): Likewise.
5849 (win32_clear_inferiors): Likewise.
5850 (fake_breakpoint_event): Likewise.
5852 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5854 * inferiors.h (find_inferior): Remove.
5855 * inferiors.c (find_inferior): Remove.
5857 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5859 * linux-low.c (resume_status_pending_p): Update comment.
5860 (need_step_over_p): Update comment.
5862 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5864 * linux-low.c (proceed_one_lwp): Return void, change parameter
5866 (unsuspend_and_proceed_one_lwp): Likewise.
5867 (proceed_all_lwps): Use for_each_thread.
5868 (unstop_all_lwps): Likewise.
5870 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5872 * linux-low.c (linux_resume_one_thread): Return void, take
5874 (linux_resume): Use for_each_thread.
5876 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5878 * linux-low.c (send_sigstop_callback): Return void, change
5879 parameter type. Rename to...
5880 (send_sigstop): ... this.
5881 (suspend_and_send_sigstop_callback): Return void, change parameter
5883 (suspend_and_send_sigstop): ... this.
5884 (stop_all_lwps): Use for_each_thread.
5886 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5888 * linux-low.c (lwp_running): Return bool, remove unused
5890 (linux_stabilize_threads): Use find_thread.
5892 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5894 * linux-low.c (select_singlestep_lwp_callback): Remove.
5895 (count_events_callback): Remove.
5896 (select_event_lwp_callback): Remove.
5897 (select_event_lwp): Use find_thread/for_each_thread.
5899 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5901 * linux-low.c (not_stopped_callback): Return bool, take filter
5903 (linux_wait_for_event_filtered): Use find_thread.
5904 (linux_wait_1): Likewise.
5906 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5908 * linux-low.c (same_lwp): Remove.
5909 (find_lwp_pid): Use find_thread.
5911 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5913 * linux-low.c (delete_lwp_callback): Remove.
5914 (linux_mourn): Use for_each_thread.
5916 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5918 * linux-low.c (linux_detach_lwp_callback): Return void, remove
5919 args parameter, don't check for pid.
5920 (linux_detach): Use for_each_thread.
5922 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5924 * linux-low.c (struct counter): Remove.
5925 (second_thread_of_pid_p): Remove.
5926 (last_thread_of_process_p): Use find_thread.
5928 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5930 * inferiors.c (find_inferior_in_random): Remove.
5931 * inferiors.h (find_inferior_in_random): Remove.
5932 * linux-low.c (status_pending_p_callback): Return bool, accept
5933 parameter ptid directly.
5934 (linux_wait_for_event_filtered): Use find_thread_in_random.
5935 (linux_wait_1): Likewise.
5937 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5939 * inferiors.c (find_inferior_id): Remove.
5940 (find_thread_ptid): Move implemention from find_inferior_id to
5942 * inferiors.h (find_inferior_id): Remove.
5943 * server.c (handle_status): Use find_thread_ptid.
5944 (process_serial_event): Likewise.
5945 * thread-db.c (find_one_thread): Likewise.
5946 (thread_db_thread_handle): Likewise.
5947 * win32-low.c (thread_rec): Likewise.
5948 (child_delete_thread): Likewise.
5949 (win32_thread_alive): Likewise.
5950 (get_child_debug_event): Likewise.
5952 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5954 * linux-mips-low.c (update_watch_registers_callback): Return
5955 void, remove pid_p parameter, don't check for pid.
5956 (mips_insert_point, mips_remove_point): Use for_each_thread.
5958 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5960 * lynx.low (lynx_delete_thread_callback): Remove.
5961 (lynx_mourn): Use for_each_thread.
5963 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5965 * regcache.c (regcache_invalidate_one): Remove.
5966 (regcache_invalidate_pid): use for_each_thread.
5968 2017-11-26 Tom Tromey <tom@tromey.com>
5970 * linux-low.c (linux_create_inferior): Update.
5972 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
5974 * spu-low.c (spu_create_inferior): Fix typo in argument name.
5976 2017-11-24 Alan Hayward <alan.hayward@arm.com>
5978 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
5979 * linux-aarch64-low.c (initialize_low_arch): Call init func.
5980 * linux-aarch64-tdesc-selftest.c: New file.
5981 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
5983 2017-11-24 Alan Hayward <alan.hayward@arm.com>
5985 * configure.srv: Add new file.
5986 * linux-aarch64-low.c (initialize_low_arch): Call init func.
5987 * linux-aarch64-tdesc-selftest.c: New file.
5988 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
5990 2017-11-24 Alan Hayward <alan.hayward@arm.com>
5992 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
5993 * linux-aarch64-low.c (initialize_low_arch): Remove init.
5994 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
5996 2017-11-24 Alan Hayward <alan.hayward@arm.com>
5998 * configure.srv: Add new files.
5999 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
6000 aarch64_linux_read_description.
6001 * linux-aarch64-low.c (aarch64_linux_read_description):
6002 Merge with aarch64_arch_setup.
6003 (aarch64_arch_setup): Call aarch64_linux_read_description.
6004 * linux-aarch64-tdesc.c: New file.
6005 * linux-aarch64-tdesc.h: New file.
6007 2017-11-24 Yao Qi <yao.qi@linaro.org>
6009 * configure.srv: Set $srv_regobj for tic6x-linux.
6010 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
6011 (tic6x_read_description): Move some code to tic6x_arch_setup.
6012 (tic6x_tdesc_test): New function.
6013 (initialize_low_arch): Call selftests::register_test.
6015 2017-11-22 Yao Qi <yao.qi@linaro.org>
6017 * remote-utils.c (prepare_resume_reply): Use memcpy.
6019 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6021 * linux-low.c (kill_one_lwp_callback): Return void, take
6022 argument directly, don't filter on pid.
6023 (linux_kill): Use for_each_thread.
6025 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6027 * linux-low.c (need_step_over_p): Return bool, remove dummy
6029 (linux_resume, proceed_all_lwps): Use find_thread.
6031 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6033 * linux-low.c (resume_status_pending_p): Return bool, remove
6035 (linux_resume): Use find_thread.
6037 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6039 * linux-low.c (struct thread_resume_array): Remove.
6040 (linux_set_resume_request): Return void, take arguments
6042 (linux_resume): Use for_each_thread.
6044 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6046 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
6047 return bool, remove data argument.
6048 (linux_stabilize_threads): Use find_thread.
6050 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6052 * linux-low.c (unsuspend_one_lwp): Remove.
6053 (unsuspend_all_lwps): Use for_each_thread, inline code from
6056 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6058 * gdbthread.h (find_thread): Add overload with ptid_t filter.
6059 * linux-low.c (struct iterate_over_lwps_args): Remove.
6060 (iterate_over_lwps_filter): Remove.
6061 (iterate_over_lwps): Use find_thread.
6063 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6065 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
6066 (linux_handle_new_gdb_connection): Use for_each_thread, inline
6067 code from reset_lwp_ptrace_options_callback.
6069 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6071 * linux-arm-low.c (struct update_registers_data): Remove.
6072 (update_registers_callback): Return void, take arguments
6073 directly, don't check thread's pid.
6074 (arm_insert_point, arm_remove_point): Use for_each_thread.
6076 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6078 * win32-low.c (continue_one_thread): Return void, take argument
6080 (child_continue): Use for_each_thread.
6082 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6084 * win32-i386-low.c (update_debug_registers_callback): Rename
6086 (update_debug_registers): ... this, return void, remove pid_p arg.
6087 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
6089 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
6091 * inferiors.h (struct process_info): Add constructor, initialize
6093 <syscalls_to_catch>: Change type to std::vector<int>.
6094 * inferiors.c (add_process): Allocate process_info with new.
6095 (remove_process): Free process_info with delete.
6096 * linux-low.c (handle_extended_wait): Adjust.
6097 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
6098 * server.c (handle_general_set): Adjust.
6100 2017-11-16 Pedro Alves <palves@redhat.com>
6102 * remote-utils.c (remote_close): Block SIGIO signals instead of
6103 uninstalling the SIGIO handler.
6105 2017-11-16 Alan Hayward <alan.hayward@arm.com>
6107 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
6109 2017-11-16 Yao Qi <yao.qi@linaro.org>
6111 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
6112 (tic6x_store_gregset): Likewise.
6113 (tic6x_usrregs_info): Move it up.
6115 2017-11-15 Alan Hayward <alan.hayward@arm.com>
6117 * Makefile.in: Update arch rules.
6118 * configure.srv: Explicitly mark arch/ files.
6120 2017-11-13 Andreas Schwab <schwab@suse.de>
6122 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
6124 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6126 2017-11-06 Pedro Alves <palves@redhat.com>
6128 * config.in, configure: Regenerate.
6130 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6132 * target.c (struct thread_search): Remove.
6133 (thread_search_callback): Remove.
6134 (prepare_to_access_memory): Use for_each_thread instead of
6135 find_inferior. Inline code from thread_search_callback.
6137 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6139 * server.c (struct visit_actioned_threads_data): Remove.
6140 (visit_actioned_threads): Change prototype to take arguments
6142 (resume): Use find_thread instead of find_inferior.
6144 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6146 * server.c (queue_stop_reply_callback): Change prototype, return
6148 (find_status_pending_thread_callback): Remove.
6149 (handle_status): Replace find_inferior with find_thread and
6152 2017-10-25 Alan Hayward <alan.hayward@arm.com>
6154 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
6156 (aarch64_store_gregset): Likewise.
6157 (aarch64_fill_fpregset): Likewise.
6158 (aarch64_store_fpregset): Likewise.
6160 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
6162 * gdbthread.h (find_thread, for_each_thread): New functions.
6163 * inferiors.c (thread_of_pid): Remove.
6164 (find_any_thread_of_pid): Use find_thread.
6165 * linux-low.c (num_lwps): Use for_each_thread.
6167 2017-10-17 Yao Qi <yao.qi@linaro.org>
6169 * Makefile.in: Remove one rule.
6170 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
6172 2017-10-17 Yao Qi <yao.qi@linaro.org>
6174 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
6175 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
6177 2017-10-17 Yao Qi <yao.qi@linaro.org>
6179 * configure.srv: Rename arm.o with arch/arm.o.
6181 2017-10-17 Yao Qi <yao.qi@linaro.org>
6183 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
6184 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
6185 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
6186 (arch-i386.o, arch-amd64.o): Remove rules.
6187 (arch/%.o): New rule.
6188 Update POSTCOMPILE and COMPILE.pre.
6189 * configure.ac: Invoke AC_CONFIG_COMMANDS.
6190 * configure: Re-generated.
6191 * configure.srv: Replace arch-i386.o with arch/i386.o.
6192 Replace arch-amd64.o with arch/amd64.o.
6194 2017-10-16 Yao Qi <yao.qi@linaro.org>
6196 * configure: Regenerated.
6198 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6200 * inferiors.h: (struct inferior_list): Remove.
6201 (struct inferior_list_entry); Remove.
6202 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
6203 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
6204 get_first_inferior): Remove.
6205 (for_each_inferior, for_each_inferior_with_data, find_inferior,
6206 find_inferior_id, find_inferior_in_random): Change signature.
6207 * inferiors.c (all_threads): Change type to
6208 std::list<thread_info *>.
6209 (get_thread): Remove macro.
6210 (find_inferior, find_inferior_id): Change signature, implement
6212 (find_inferior_in_random): Change signature, implement using
6213 find_thread_in_random.
6214 (for_each_inferior, for_each_inferior_with_data): Change
6215 signature, implement using for_each_thread.
6216 (add_inferior_to_list, remove_inferior): Remove.
6217 (add_thread, get_first_thread, thread_of_pid,
6218 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
6219 (get_first_inferior, one_inferior_p, clear_inferior_list):
6221 (clear_inferiors, get_thread_process): Update.
6222 * gdbthread.h: Include <list>.
6223 (struct thread_info) <entry>: Remove field.
6225 (all_threads): Change type to std::list<thread_info *>.
6226 (get_first_inferior): Add doc.
6227 (find_thread, for_each_thread, find_thread_in_random): New
6229 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
6230 * linux-arm-low.c (update_registers_callback): Update.
6231 * linux-low.c (second_thread_of_pid_p): Update.
6232 (kill_one_lwp_callback, linux_detach_lwp_callback,
6233 delete_lwp_callback, status_pending_p_callback, same_lwp,
6234 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
6235 iterate_over_lwps, not_stopped_callback,
6236 resume_stopped_resumed_lwps, count_events_callback,
6237 select_singlestep_lwp_callback, select_event_lwp_callback,
6238 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
6239 suspend_and_send_sigstop_callback, wait_for_sigstop,
6240 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
6241 lwp_running, linux_set_resume_request, resume_status_pending_p,
6242 need_step_over_p, start_step_over, linux_resume_one_thread,
6243 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
6244 reset_lwp_ptrace_options_callback): Update.
6245 * linux-mips-low.c (update_watch_registers_callback): Update.
6246 * regcache.c (regcache_invalidate_one, regcache_invalidate):
6248 (free_register_cache_thread_one): Remove.
6249 (regcache_release): Update.
6250 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
6251 handle_qxfer_threads_worker): Update.
6252 (handle_query): Update, use list iterator.
6253 (visit_actioned_threads, handle_pending_status,
6254 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
6255 clear_pending_status_callback, set_pending_status_callback,
6256 find_status_pending_thread_callback, handle_status,
6257 process_serial_event): Update.
6258 * target.c (thread_search_callback): Update.
6259 * thread-db.c (thread_db_get_tls_address): Update.
6260 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
6262 * win32-i386-low.c (update_debug_registers_callback): Update.
6263 * win32-low.c (delete_thread_info, child_delete_thread,
6264 continue_one_thread, suspend_one_thread,
6265 get_child_debug_event): Adjust.
6267 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6269 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
6270 * inferiors.h: Include <list>.
6271 (struct process_info) <entry>: Remove field.
6273 (pid_of): Change macro to function.
6274 (ptid_of, lwpid_of): Remove macro.
6275 (all_processes): Change type to std::list<process_info *>.
6276 (ALL_PROCESSES): Remove macro.
6277 (for_each_process, find_process): New function.
6278 * inferiors.c (all_processes): Change type to
6279 std::list<process_info *>.
6280 (find_thread_process): Adjust.
6281 (add_process): Likewise.
6282 (remove_process): Likewise.
6283 (find_process_pid): Likewise.
6284 (get_first_process): Likewise.
6285 (started_inferior_callback): Remove.
6286 (have_started_inferiors_p): Adjust.
6287 (attached_inferior_callback): Remove.
6288 (have_attached_inferiors_p): Adjust.
6289 * linux-low.c (check_zombie_leaders): Likewise.
6290 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
6291 (x86_linux_update_xmltarget): Adjust.
6292 * server.c (handle_query): Likewise.
6293 (gdb_reattached_process): Remove.
6294 (handle_status): Adjust.
6295 (kill_inferior_callback): Likewise.
6296 (detach_or_kill_inferior): Remove.
6297 (print_started_pid): Likewise.
6298 (print_attached_pid): Likewise.
6299 (detach_or_kill_for_exit): Update.
6300 (process_serial_event): Likewise.
6301 * linux-arm-low.c (arm_new_fork): Likewise.
6303 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6305 * dll.h: Include <list>.
6306 (struct dll_info): Add constructor.
6307 <entry>: Remove field.
6308 (all_dlls): Change type to std::list<dll_info>.
6309 * dll.c: Include <algorithm>.
6310 (get_dll): Remove macro.
6311 (all_dlls): Change type to std::list<dll_info *>.
6312 (free_one_dll): Remove.
6313 (match_dll): Likewise.
6314 (loaded_dll): Adjust.
6315 (unloaded_dll): Adjust to all_dlls type change, use
6316 std::find_if. Inline code from match_dll.
6317 (clear_dlls): Adjust to all_dlls type change.
6318 * server.c (emit_dll_description): Remove.
6319 (handle_qxfer_libraries): Adjust to all_dlls type change,
6320 integrate emit_dll_description's functionality.
6322 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6324 * linux-low.h (struct linux_target_ops) <delete_process>: New
6326 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
6327 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
6328 (struct linux_target_ops): Add delete_process callback.
6329 * linux-arm-low.c (arm_delete_process): New.
6330 (struct linux_target_ops): Add delete_process callback.
6331 * linux-bfin-low.c (struct linux_target_ops): Likewise.
6332 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
6333 * linux-m32r-low.c (struct linux_target_ops): Likewise.
6334 * linux-mips-low.c (mips_linux_delete_process): New.
6335 (struct linux_target_ops): Add delete_process callback.
6336 * linux-ppc-low.c (struct linux_target_ops): Likewise.
6337 * linux-s390-low.c (struct linux_target_ops): Likewise.
6338 * linux-sh-low.c (struct linux_target_ops): Likewise.
6339 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
6340 * linux-tile-low.c (struct linux_target_ops): Likewise.
6341 * linux-x86-low.c (x86_linux_delete_process): New.
6342 (struct linux_target_ops): Add delete_process callback.
6343 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
6345 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6347 * linux-aarch64-low.c (the_low_target): Add thread delete
6349 * linux-arm-low.c (arm_delete_thread): New function.
6350 (the_low_target): Add thread delete callback.
6351 * linux-bfin-low.c (the_low_target): Likewise.
6352 * linux-crisv32-low.c (the_low_target): Likewise.
6353 * linux-low.c (delete_lwp): Invoke delete_thread callback if
6355 * linux-low.h (struct linux_target_ops) <delete_thread>: New
6357 * linux-m32r-low.c (the_low_target): Add thread delete callback.
6358 * linux-mips-low.c (mips_linux_delete_thread): New function.
6359 (the_low_target): Add thread delete callback.
6360 * linux-ppc-low.c (the_low_target): Likewise.
6361 * linux-s390-low.c (the_low_target): Likewise.
6362 * linux-sh-low.c (the_low_target): Likewise.
6363 * linux-tic6x-low.c (the_low_target): Likewise.
6364 * linux-tile-low.c (the_low_target): Likewise.
6365 * linux-x86-low.c (the_low_target): Likewise.
6366 * linux-xtensa-low.c (the_low_target): Likewise.
6368 2017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
6370 * win32-low.c: Include "common-inferior.h".
6372 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6374 * inferiors.c (set_inferior_cwd): New function.
6375 * server.c (handle_general_set): Handle QSetWorkingDir packet.
6376 (handle_query): Inform that QSetWorkingDir is supported.
6377 * win32-low.c (create_process): Pass the inferior's cwd to
6380 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6382 * inferiors.c (current_inferior_cwd): New global variable.
6383 (get_inferior_cwd): New function.
6384 * inferiors.h (struct process_info) <cwd>: New field.
6386 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6388 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
6389 (OBS): Add gdb_tilde_expand.o.
6391 2017-10-02 Simon Marchi <simon.marchi@ericsson.com>
6393 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
6394 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
6396 2017-09-29 Pedro Alves <palves@redhat.com>
6398 * ax.c (gdb_parse_agent_expr): Constify.
6399 * ax.h (gdb_parse_agent_expr): Constify.
6400 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
6402 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
6403 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
6404 * remote-utils.h (read_ptid): Constify.
6405 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
6406 (process_point_options, process_serial_event): Constify.
6407 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
6408 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
6409 (cmd_qtbuffer): Constify.
6411 2017-09-29 Pedro Alves <palves@redhat.com>
6413 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
6416 2017-09-29 Pedro Alves <palves@redhat.com>
6418 * linux-low.c (handle_extended_wait): Pass parent thread instead
6419 of process to thread_db_notice_clone.
6420 * linux-low.h (thread_db_notice_clone): Replace parent process
6421 parameter with parent thread parameter.
6422 * thread-db.c (find_one_thread): Add comment.
6423 (thread_db_notice_clone): Replace parent process parameter with
6424 parent thread parameter. Temporarily switch to the parent thread.
6426 2017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
6428 * gdbthread.h: Include "common-gdbthread.h".
6429 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
6430 "if" when validating the ptid.
6431 * remote-utils.c: Include "gdbthread.h".
6432 (prepare_resume_reply): Use "switch_to_thread".
6433 * target.c (done_accessing_memory): Likewise.
6435 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6437 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
6438 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
6439 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
6440 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
6441 s390x-gs-linux64-ipa.o to ipa_obj.
6442 * linux-s390-low.c (HWCAP_S390_GS): New define.
6443 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
6445 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
6446 (s390_arch_setup): Check for guarded-storage support and choose
6448 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
6449 init_registers_s390x_gs_linux64.
6450 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
6452 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
6453 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
6455 2017-09-22 Simon Marchi <simon.marchi@ericsson.com>
6457 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
6459 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6461 * linux-low.h (struct lwp_info): Add new field, thread_handle.
6462 (thread_db_thread_handle): Declare.
6463 * linux-low.c (linux_target_ops): Initialize thread_handle.
6464 * server.c (handle_qxfer_threads_worker): Add support for
6466 * target.h (struct target_ops): Add new function pointer,
6468 (target_thread_handle): Define.
6469 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
6471 (thread_db_thread_handle): New function.
6473 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6475 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
6476 * linux-low.h (thread_db_notice_clone): Declare.
6477 * thread-db.c (thread_db_notice_clone): New function.
6479 2017-09-21 Pedro Alves <palves@redhat.com>
6481 * server.c (gdb_read_memory, handle_status, process_serial_event)
6482 (handle_serial_event, handle_target_event): Adjust to
6483 set_desired_thread prototype change.
6484 * target.c (set_desired_thread): Remove 'use_general' parameter
6486 * target.h (set_desired_thread): Remove 'use_general' parameter.
6488 2017-09-20 Tom Tromey <tom@tromey.com>
6490 * target.c (target_terminal::terminal_state): Define.
6491 (target_terminal::init): Rename from target_terminal_init.
6492 (target_terminal::inferior): Rename from
6493 target_terminal_inferior.
6494 (target_terminal::ours): Rename from target_terminal_ours.
6495 (target_terminal::ours_for_output, target_terminal::info): New.
6497 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6499 * server.c (accumulate_file_name_length): Remove.
6500 (emit_dll_description): Adjust to std::string change.
6501 (handle_qxfer_libraries): Use std::string to hold document.
6503 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6505 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
6506 return type of xml_escape_text.
6507 * server.c (emit_dll_description): Likewise.
6509 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6511 * server.c (captured_main): Accept argument for --selftest.
6512 Update run_tests call.
6513 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
6514 when registering selftests.
6516 2017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
6518 * regcache.c (get_thread_regcache): Update code to use "std::vector"
6519 instead of "VEC" for "target_desc.reg_defs".
6520 (regcache_cpy): Likewise.
6521 (registers_to_string): Likewise.
6522 (registers_from_string): Likewise.
6523 (find_regno): Likewise.
6524 (supply_regblock): Likewise.
6525 (regcache_raw_read_unsigned): Likewise.
6526 * tdesc.c (init_target_desc): Likewise.
6527 (tdesc_create_reg): Likewise.
6528 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
6529 (struct target_desc) <reg_defs>: Convert to "std::vector".
6530 (target_desc): Do not initialize "reg_defs".
6531 (~target_desc): Update code to use "std::vector" instead of "VEC"
6532 for "target_desc.reg_defs".
6533 (operator==): Likewise.
6535 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6537 * inferiors.h (thread_to_gdb_id): Remove.
6538 * inferiors.c (thread_to_gdb_id): Remove.
6539 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
6540 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
6541 lynx_store_registers, lynx_read_memory, lynx_write_memory):
6543 * nto-low.c (nto_fetch_registers, nto_store_registers,
6544 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
6546 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6548 * inferiors.h (gdb_id_to_thread_id): Remove.
6549 * inferiors.c (gdb_id_to_thread_id): Remove.
6550 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
6551 removal. Move pid declaration closer to where it's used.
6553 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6555 * server.c (handle_detach): New function.
6556 (process_serial_event): Move code out, call handle_detach.
6558 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6560 * server.c (require_running): Rename to ...
6561 (require_running_or_return): ... this ...
6562 (require_running_or_break): ... and this.
6563 (handle_query, process_serial_event): Adjust.
6565 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6567 * linux-low.c (linux_set_resume_request): Remove unused
6570 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6572 * server.c (first_thread_of): Remove.
6573 (process_serial_event): Replace usage of first_thread_of with
6574 find_any_thread_of_pid.
6575 * tracepoint.c (same_process_p): Remove.
6576 (gdb_agent_about_to_close): Replace usage of same_process_p with
6577 find_any_thread_of_pid.
6578 * linux-x86-low.c (same_process_callback): Remove.
6579 (x86_arch_setup_process_callback): Replace usage of
6580 same_process_callback with find_any_thread_of_pid.
6581 * thread-db.c (any_thread_of): Remove.
6582 (switch_to_process): Replace usage of any_thread_of with
6583 find_any_thread_of_pid.
6584 * inferiors.c (thread_pid_matches_callback): Remove.
6585 (find_thread_process): Adjust to use find_any_thread_of_pid.
6587 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6589 * regcache.c (get_thread_regcache): Guard calls to "memset"
6592 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6594 * linux-low.c (handle_extended_wait): Use
6595 "allocate_target_description" instead of "XNEW".
6596 * linux-x86-low.c (initialize_low_arch): Likewise.
6598 2017-09-05 Yao Qi <yao.qi@linaro.org>
6600 * configure.srv (srv_i386_regobj): Remove.
6601 (srv_amd64_regobj): Remove.
6602 (srv_regobj): Set it to "" for x86 non-linux targets.
6603 * linux-x86-tdesc.c (i386_linux_read_description):
6604 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
6605 (init_registers_i386): Remove the declaration.
6606 (tdesc_i386): Remove the declaration.
6607 (lynx_i386_arch_setup): Call i386_create_target_description.
6608 * nto-x86-low.c: Likewise.
6609 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
6610 [!__x86_64__]: include arch/i386.h.
6611 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
6613 2017-09-05 Yao Qi <yao.qi@linaro.org>
6615 * configure.srv (srv_amd64_linux_xmlfiles): Remove
6616 i386/amd64-XXX-linux from it.
6618 2017-09-05 Yao Qi <yao.qi@linaro.org>
6620 * configure.srv: Empty srv_amd64_linux_regobj if $development is
6622 (ipa_amd64_linux_regobj): Remove.
6623 (ipa_x32_linux_regobj): Remove.
6625 2017-09-05 Yao Qi <yao.qi@linaro.org>
6627 * Makefile.in (arch-amd64.o): New rule.
6628 * configure.srv: Append arch-amd64.o.
6629 * linux-amd64-ipa.c: Include common/x86-xstate.h.
6630 (get_ipa_tdesc): Call amd64_linux_read_description.
6631 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
6632 and init_registers_amd64_XXX.
6633 * linux-x86-low.c (x86_linux_read_description): Call
6634 amd64_linux_read_description.
6635 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
6636 (initialize_low_arch): Don't call init_registers_x32_XXX and
6637 init_registers_amd64_XXX.
6638 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
6639 and tdesc_amd64_XXX.
6640 [__x86_64__] (amd64_tdesc_test): New function.
6641 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
6642 and init_registers_amd64_XXX.
6643 * linux-x86-tdesc.c: Include arch/amd64.h.
6644 (xcr0_to_tdesc_idx): New function.
6645 (i386_linux_read_description): New function.
6646 (amd64_get_ipa_tdesc_idx): New function.
6647 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
6648 (amd64_get_ipa_tdesc): Declare.
6650 2017-09-05 Yao Qi <yao.qi@linaro.org>
6652 * configure.srv (srv_i386_linux_xmlfiles): Remove
6653 i386/i386-XXX-linux.xml from it.
6655 2017-09-05 Yao Qi <yao.qi@linaro.org>
6657 * configure.srv: Set srv_i386_linux_regobj empty if $development
6659 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
6660 initialize_low_tdesc.
6661 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
6662 with #if initialize_low_tdesc.
6663 * linux-x86-tdesc-selftest.c: New file.
6664 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
6666 2017-09-05 Yao Qi <yao.qi@linaro.org>
6668 * Makefile.in (arch-i386.o): New rule.
6669 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
6670 (x86_64-*-linux*): Likewise.
6671 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
6672 include arch/i386.h.
6673 (i386_linux_read_description): Remove code and call
6674 i386_create_target_description.
6675 * tdesc.c (allocate_target_description): New function.
6676 * tdesc.h (set_tdesc_architecture): Remove declaration.
6677 (set_tdesc_osabi): Likewise.
6679 2017-09-05 Yao Qi <yao.qi@linaro.org>
6681 * linux-x86-tdesc.c: Don't include <inttypes.h>.
6682 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
6683 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
6685 * server.c (get_features_xml): Call tdesc_get_features_xml.
6686 * tdesc.c (set_tdesc_architecture): New function.
6687 (set_tdesc_osabi): New function.
6688 (tdesc_get_features_xml): New function.
6689 (tdesc_create_feature): Add an argument.
6690 * tdesc.h (struct target_desc) <features>: New field.
6691 <arch, osabi>: New field.
6692 (~target_desc): xfree features, arch, and osabi.
6693 (target_desc::oerator==): Don't compare .xmltarget.
6694 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
6695 (set_tdesc_osabi): Likewise.
6696 (tdesc_get_features_xml): Likewise.
6698 2017-09-05 Yao Qi <yao.qi@linaro.org>
6700 * linux-x86-tdesc.c: Include selftest.h.
6701 (i386_tdesc_test): New function.
6702 (initialize_low_tdesc): Call selftests::register_test.
6703 * tdesc.h: Include regdef.h.
6704 (target_desc): Override operator == and !=.
6706 2017-09-05 Yao Qi <yao.qi@linaro.org>
6708 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
6709 (ipa_obj): Likewise.
6710 * linux-i386-ipa.c: Include common/x86-xstate.h
6711 (get_ipa_tdesc): Call i386_linux_read_description.
6712 (initialize_low_tracepoint): Don't call init_registers_XXX
6713 functions, call initialize_low_tdesc instead.
6714 * linux-x86-low.c (x86_linux_read_description): Call
6715 i386_linux_read_description.
6716 (initialize_low_arch): Don't call init_registers_i386_XXX
6717 functions, call initialize_low_tdesc.
6718 * linux-x86-tdesc.c: New file.
6719 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
6720 (i386_get_ipa_tdesc_idx): Declare.
6721 (i386_get_ipa_tdesc): Declare.
6722 (initialize_low_tdesc): Declare.
6724 2017-09-05 Yao Qi <yao.qi@linaro.org>
6726 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
6729 2017-09-05 Yao Qi <yao.qi@linaro.org>
6731 * Makefile.in (IPA_OBJS): Add vec-ipa.o
6732 * regcache.c (get_thread_regcache): Use VEC_length.
6733 (init_register_cache): Likewise.
6734 (regcache_cpy): Likewise.
6735 (registers_to_string): Iterate reg_defs via VEC_iterate.
6736 (find_regno): Likewise.
6737 (find_register_by_number): Use VEC_index.
6738 (register_size): Call find_register_by_number.
6739 (register_data): Call find_register_by_number.
6740 (supply_regblock): Use VEC_length.
6741 (regcache_raw_read_unsigned): Likewise.
6742 * tdesc.c (init_target_desc): Iterate reg_defs via
6744 (default_description): Update initializer.
6745 (copy_target_description): Don't update field num_registers.
6746 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
6747 <num_registers>: Remove.
6749 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
6751 * Makefile.in (.SECONDARY): Define target.
6753 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
6755 * linux-low.c (linux_wait_1): Adjust.
6756 * server.c (queue_stop_reply_callback): Adjust.
6758 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
6760 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
6761 QEnvironmentUnset and QEnvironmentReset packets.
6762 (handle_query): Inform remote that QEnvironmentHexEncoded,
6763 QEnvironmentUnset and QEnvironmentReset are supported.
6765 2017-08-25 Simon Marchi <simon.marchi@ericsson.com>
6767 * inferiors.h (inferior_target_data): Rename to ...
6768 (thread_target_data): ... this.
6769 (inferior_regcache_data): Rename to ...
6770 (thread_regcache_data): ... this.
6771 (set_inferior_regcache_data): Rename to ...
6772 (set_thread_regcache_data): ... this.
6773 * inferiors.c (inferior_target_data): Rename to ...
6774 (thread_target_data): ... this.
6775 (inferior_regcache_data): Rename to ...
6776 (thread_regcache_data): ... this.
6777 (set_inferior_regcache_data): Rename to ...
6778 (set_thread_regcache_data): ... this.
6779 (free_one_thread): Update.
6780 * linux-low.h (get_thread_lwp): Update.
6781 * regcache.c (get_thread_regcache): Update.
6782 (regcache_invalidate_thread): Update.
6783 (free_register_cache_thread): Update.
6784 * win32-i386-low.c (update_debug_registers_callback): Update.
6785 (win32_get_current_dr): Update.
6786 * win32-low.c (thread_rec): Update.
6787 (delete_thread_info): Update.
6788 (continue_one_thread): Update.
6789 (suspend_one_thread): Update.
6791 2017-08-24 Simon Marchi <simon.marchi@ericsson.com>
6793 * inferiors.c (set_inferior_target_data): Remove.
6794 * inferiors.h (set_inferior_target_data): Remove.
6796 2017-08-18 Yao Qi <yao.qi@linaro.org>
6798 * Makefile.in (OBS): Add selftest.o.
6799 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
6800 * configure, config.in: Re-generated.
6801 * server.c: Include common/sefltest.h.
6802 (captured_main): Handle option --selftest.
6804 2017-08-09 Yao Qi <yao.qi@linaro.org>
6806 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
6807 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
6808 i386-avx-mpx.o and i386-mmx.o.
6809 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
6810 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
6811 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
6812 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
6813 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
6814 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
6815 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
6816 i386/amd64-avx-mpx.xml.
6818 2017-08-09 Yao Qi <yao.qi@linaro.org>
6820 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
6821 and x32-avx-avx512.o.
6822 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
6823 i386/x32-avx-avx512.xml.
6825 2017-07-26 Simon Marchi <simon.marchi@ericsson.com>
6827 * tracepoint.h (enum class fast_tpoint_collect_result): New
6829 (fast_tracepoint_collecting): Change return type to
6830 fast_tpoint_collect_result.
6831 * tracepoint.c (fast_tracepoint_collecting): Likewise.
6832 * linux-low.h: Include tracepoint.h.
6833 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
6834 fast_tpoint_collect_result.
6835 * linux-low.c (handle_tracepoints): Adjust.
6836 (linux_fast_tracepoint_collecting): Change return type to
6837 fast_tpoint_collect_result.
6838 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
6839 linux_wait_1, stuck_in_jump_pad_callback,
6840 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
6841 proceed_one_lwp): Adjust to type change.
6843 2017-07-10 Yao Qi <yao.qi@linaro.org>
6845 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
6847 2017-06-29 Yao Qi <yao.qi@linaro.org>
6849 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
6851 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
6853 2017-06-20 Simon Marchi <simon.marchi@ericsson.com>
6855 * Makefile.in (IPA_OBJS): Sort and format one item per line.
6857 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
6859 * linux-low.c (linux_create_inferior): Adjust code to access the
6860 environment information via 'gdb_environ' class.
6861 * lynx-low.c (lynx_create_inferior): Likewise.
6862 * server.c (our_environ): Make it an instance of 'gdb_environ'.
6863 (get_environ): Return a pointer to 'our_environ'.
6864 (captured_main): Initialize 'our_environ'.
6865 * server.h (get_environ): Adjust prototype.
6866 * spu-low.c (spu_create_inferior): Adjust code to access the
6867 environment information via 'gdb_environ' class.
6869 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6871 * linux-low.c (linux_read_memory, linux_write_memory): Remove
6872 usage of "register" keyword.
6874 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6876 * configure: Re-generate.
6878 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6880 * configure: Re-generate.
6882 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6884 * Makefile.in (COMPILE.pre): Add "-x c++".
6886 2017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
6888 * fork-child.c: Conditionally include <signal.h>.
6890 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6892 * server.c (handle_general_set): Handle new packet
6893 "QStartupWithShell".
6894 (handle_query): Add "QStartupWithShell" to the list of supported
6896 (gdbserver_usage): Add help text explaining the
6897 new "--startup-with-shell" and "--no-startup-with-shell" CLI
6899 (captured_main): Recognize and act upon the presence of the new
6902 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6903 Pedro Alves <palves@redhat.com>
6905 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
6906 * configure: Regenerate.
6907 * configure.srv (srv_linux_obj): Add "fork-child.o" and
6909 (i[34567]86-*-lynxos*): Likewise.
6910 (spu*-*-*): Likewise.
6911 * fork-child.c: New file.
6912 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
6914 (linux_ptrace_fun): New function.
6915 (linux_create_inferior): Adjust function prototype to reflect
6916 change on "target.h". Adjust function code to use
6918 (linux_request_interrupt): Delete "signal_pid".
6919 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
6920 (lynx_ptrace_fun): New function.
6921 (lynx_create_inferior): Adjust function prototype to reflect
6922 change on "target.h". Adjust function code to use
6924 * nto-low.c (nto_create_inferior): Adjust function prototype and
6925 code to reflect change on "target.h". Update comments.
6926 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
6927 "common-terminal.h" and "environ.h".
6928 (terminal_fd): Moved to fork-child.c.
6929 (old_foreground_pgrp): Likewise.
6930 (restore_old_foreground_pgrp): Likewise.
6931 (last_status): Make it global.
6932 (last_ptid): Likewise.
6933 (our_environ): New variable.
6934 (startup_with_shell): Likewise.
6935 (program_name): Likewise.
6936 (program_argv): Rename to...
6937 (program_args): ...this.
6938 (wrapper_argv): New variable.
6939 (start_inferior): Delete function.
6940 (get_exec_wrapper): New function.
6941 (get_exec_file): Likewise.
6942 (get_environ): Likewise.
6943 (prefork_hook): Likewise.
6944 (post_fork_inferior): Likewise.
6945 (postfork_hook): Likewise.
6946 (postfork_child_hook): Likewise.
6947 (handle_v_run): Update code to deal with arguments coming from the
6948 remote host. Update calls from "start_inferior" to
6950 (captured_main): Likewise. Initialize environment variable. Call
6952 * server.h (post_fork_inferior): New prototype.
6953 (get_environ): Likewise.
6954 (last_status): Declare.
6955 (last_ptid): Likewise.
6956 (signal_pid): Likewise.
6957 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
6958 (spu_ptrace_fun): New function.
6959 (spu_create_inferior): Adjust function prototype to reflect change
6960 on "target.h". Adjust function code to use "fork_inferior".
6961 * target.c (target_terminal_init): New function.
6962 (target_terminal_inferior): Likewise.
6963 (target_terminal_ours): Likewise.
6964 * target.h: Include <vector>.
6965 (struct target_ops) <create_inferior>: Update prototype.
6966 (create_inferior): Update macro.
6967 * utils.c (gdb_flush_out_err): New function.
6968 * win32-low.c (win32_create_inferior): Adjust function prototype
6969 and code to reflect change on "target.h".
6971 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6973 * inferiors.c (switch_to_thread): New function.
6975 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6977 * Makefile.in (SFILE): Add "common/job-control.c".
6978 (OBS): Add "job-control.o".
6980 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
6982 * Makefile: Remove "@host_makefile_frag@".
6984 2017-05-05 Pedro Alves <palves@redhat.com>
6986 * configure: Regenerate.
6988 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
6990 * configure: Regenerate.
6992 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
6994 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
6995 software_single_step change of return type to
6996 std::vector<CORE_ADDR>.
6997 * linux-low.c (install_software_single_step_breakpoints):
6999 * linux-low.h (install_software_single_step_breakpoints):
7002 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7004 * remote-utils.c: Include "gdb_termios.h" instead of
7006 * terminal.h: Delete file.
7008 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7010 * server.c: Include <vector>.
7011 <program_argv, wrapper_argv>: Convert to std::vector.
7012 (start_inferior): Rewrite function to use C++.
7013 (handle_v_run): Likewise. Update code that calculates the argv
7014 based on the vRun packet; use C++.
7015 (captured_main): Likewise.
7017 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7019 * server.c (handle_v_cont): Initialize thread_resume::thread
7022 2017-04-05 Pedro Alves <palves@redhat.com>
7024 * configure: Regenerate.
7026 2017-04-05 Pedro Alves <palves@redhat.com>
7028 * gdbreplay.c (sync_error): Constify.
7029 * linux-x86-low.c (push_opcode): Constify.
7031 2017-04-05 Pedro Alves <palves@redhat.com>
7033 * win32-low.c (get_child_debug_event)
7034 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
7035 Report TARGET_WAITKIND_SPURIOUS instead.
7037 2017-04-05 Pedro Alves <palves@redhat.com>
7039 * remote-utils.c (remote_prepare, remote_open): Constify.
7040 * remote-utils.h (remote_prepare, remote_open): Constify.
7041 * server.c (captured_main): Constify 'port' handling.
7043 2017-04-04 Simon Marchi <simon.marchi@ericsson.com>
7045 * Makefile.in (clean): Clear .deps.
7047 2017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
7049 * .gitignore: Remove generated files, replace with wildcard.
7050 * (clean): Replace removal of generated files with wildcard.
7051 (version.c): Replace with...
7052 (version-generated.c): ...this.
7053 (xml-builtin.c): Replace with...
7054 (xml-builtin-generated.c): ...this.
7055 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
7056 (%.c: *regformats*): Replace with...
7057 (%-generated.c: *regformats*): ...this.
7059 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7061 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
7062 (xtensa_fill_gregset): Call collect_register_by_name for
7064 (xtensa_store_gregset): Call supply_register_by_name for
7067 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7069 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
7070 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
7071 (xtensa_store_gregset): Call supply_register for all registers in
7072 a0_regnum..a0_regnum + C0_NREGS range.
7074 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7076 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
7077 (ax-ipa.o: ax.c): Remove.
7078 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
7079 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
7080 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
7081 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
7082 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
7084 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7086 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
7087 (print-utils-ipa.o: ../common/print-utils.c): Remove.
7088 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
7089 (errors-ipa.o: ../common/errors.c): Remove.
7090 (format-ipa.o: ../common/format.c): Remove.
7091 (common-utils-ipa.o: ../common/common-utils.c): Remove.
7093 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7095 * Makefile.in (%-ipa.o: %.c): New rule.
7096 (tracepoint-ipa.o: tracepoint.c): Remove.
7097 (utils-ipa.o: utils.c): Remove.
7098 (remote-utils-ipa.o: remote-utils.c): Remove.
7099 (regcache-ipa.o: regcache.c): Remove.
7100 (i386-linux-ipa.o: i386-linux.c): Remove.
7101 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
7102 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
7103 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
7104 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
7105 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
7106 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
7107 (amd64-linux-ipa.o: amd64-linux.c): Remove.
7108 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
7109 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
7110 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
7111 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
7112 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
7113 (aarch64-ipa.o: aarch64.c): Remove.
7114 (s390-linux32-ipa.o: s390-linux32.c): Remove.
7115 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
7116 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
7117 (s390-linux64-ipa.o: s390-linux64.c): Remove.
7118 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
7119 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
7120 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
7121 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
7122 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
7123 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
7124 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
7125 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
7126 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
7127 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
7128 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
7129 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
7130 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
7131 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
7132 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
7133 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
7134 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
7135 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
7136 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
7137 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
7138 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
7139 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
7140 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
7141 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
7142 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
7143 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
7144 (tdesc-ipa.o: tdesc.c): Remove.
7145 (x32-linux-ipa.o: x32-linux.c): Remove.
7146 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
7147 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
7149 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7151 * Makefile.in (%.o: ../arch/%.c): New rule.
7152 (arm.o: ../arch/arm.c): Remove.
7153 (arm-linux.o: ../arch/arm-linux.c): Remove.
7154 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
7155 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
7157 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7159 * Makefile.in (%.o: ../nat/%.c): New rule.
7160 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
7161 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
7162 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
7163 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
7164 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
7165 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
7166 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
7167 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
7168 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
7169 (linux-personality.o: ../nat/linux-personality.c): Remove.
7170 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
7171 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
7172 (x86-linux.o: ../nat/x86-linux.c): Remove.
7173 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
7174 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
7176 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7178 * Makefile.in (%.o: ../common/%.c): New rule.
7179 (signals.o: ../common/signals.c): Remove.
7180 (print-utils.o: ../common/print-utils.c): Remove.
7181 (rsp-low.o: ../common/rsp-low.c): Remove.
7182 (common-utils.o: ../common/common-utils.c): Remove.
7183 (posix-strerror.o: ../common/posix-strerror.c): Remove.
7184 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
7185 (vec.o: ../common/vec.c): Remove.
7186 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
7187 (xml-utils.o: ../common/xml-utils.c): Remove.
7188 (ptid.o: ../common/ptid.c): Remove.
7189 (buffer.o: ../common/buffer.c): Remove.
7190 (format.o: ../common/format.c): Remove.
7191 (filestuff.o: ../common/filestuff.c): Remove.
7192 (agent.o: ../common/agent.c): Remove.
7193 (errors.o: ../common/errors.c): Remove.
7194 (environ.o: ../common/environ.c): Remove.
7195 (common-debug.o: ../common/common-debug.c): Remove.
7196 (cleanups.o: ../common/cleanups.c): Remove.
7197 (common-exceptions.o: ../common/common-exceptions.c): Remove.
7198 (fileio.o: ../common/fileio.c): Remove.
7199 (common-regcache.o: ../common/common-regcache.c): Remove.
7200 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
7201 (new-op.o: ../common/new-op.c): Remove.
7202 (btrace-common.o: ../common/btrace-common.c): Remove.
7204 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7206 * Makefile.in (%.o: ../target/%.c): New rule.
7207 (waitstatus.o: ../target/waitstatus.c): Remove.
7209 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7212 (%.c: ../regformats/%.dat,
7213 (%.c: ../regformats/arm/%.dat,
7214 (%.c: ../regformats/i386/%.dat,
7215 (%.c: ../regformats/rs6000/%.dat): New rules.
7216 (aarch64.c): Remove.
7217 (reg-arm.c): Remove.
7218 (arm-with-iwmmxt.c): Remove.
7219 (arm-with-vfpv2.c): Remove.
7220 (arm-with-vfpv3.c): Remove.
7221 (arm-with-neon.c): Remove.
7222 (reg-bfin.c): Remove.
7223 (reg-cris.c): Remove.
7224 (reg-crisv32.c): Remove.
7226 (i386-linux.c): Remove.
7227 (i386-avx.c): Remove.
7228 (i386-avx-linux.c): Remove.
7229 (i386-avx-avx512.c): Remove.
7230 (i386-avx-avx512-linux.c): Remove.
7231 (i386-mpx.c): Remove.
7232 (i386-mpx-linux.c): Remove.
7233 (i386-avx-mpx-avx512-pku.c): Remove.
7234 (i386-avx-mpx-avx512-pku-linux.c): Remove.
7235 (i386-avx-mpx.c): Remove.
7236 (i386-avx-mpx-linux.c): Remove.
7237 (i386-mmx.c): Remove.
7238 (i386-mmx-linux.c): Remove.
7239 (reg-ia64.c): Remove.
7240 (reg-m32r.c): Remove.
7241 (reg-m68k.c): Remove.
7243 (mips-linux.c): Remove.
7244 (mips-dsp-linux.c): Remove.
7245 (mips64-linux.c): Remove.
7246 (mips64-dsp-linux.c): Remove.
7247 (nios2-linux.c): Remove.
7248 (powerpc-32.c): Remove.
7249 (powerpc-32l.c): Remove.
7250 (powerpc-altivec32l.c): Remove.
7251 (powerpc-cell32l.c): Remove.
7252 (powerpc-vsx32l.c): Remove.
7253 (powerpc-isa205-32l.c): Remove.
7254 (powerpc-isa205-altivec32l.c): Remove.
7255 (powerpc-isa205-vsx32l.c): Remove.
7256 (powerpc-e500l.c): Remove.
7257 (powerpc-64l.c): Remove.
7258 (powerpc-altivec64l.c): Remove.
7259 (powerpc-cell64l.c): Remove.
7260 (powerpc-vsx64l.c): Remove.
7261 (powerpc-isa205-64l.c): Remove.
7262 (powerpc-isa205-altivec64l.c): Remove.
7263 (powerpc-isa205-vsx64l.c): Remove.
7264 (s390-linux32.c): Remove.
7265 (s390-linux32v1.c): Remove.
7266 (s390-linux32v2.c): Remove.
7267 (s390-linux64.c): Remove.
7268 (s390-linux64v1.c): Remove.
7269 (s390-linux64v2.c): Remove.
7270 (s390-te-linux64.c): Remove.
7271 (s390-vx-linux64.c): Remove.
7272 (s390-tevx-linux64.c): Remove.
7273 (s390x-linux64.c): Remove.
7274 (s390x-linux64v1.c): Remove.
7275 (s390x-linux64v2.c): Remove.
7276 (s390x-te-linux64.c): Remove.
7277 (s390x-vx-linux64.c): Remove.
7278 (s390x-tevx-linux64.c): Remove.
7279 (tic6x-c64xp-linux.c): Remove.
7280 (tic6x-c64x-linux.c): Remove.
7281 (tic6x-c62x-linux.c): Remove.
7283 (reg-sparc64.c): Remove.
7284 (reg-spu.c): Remove.
7286 (amd64-linux.c): Remove.
7287 (amd64-avx.c): Remove.
7288 (amd64-avx-linux.c): Remove.
7289 (amd64-avx-avx512.c): Remove.
7290 (amd64-avx-avx512-linux.c): Remove.
7291 (amd64-mpx.c): Remove.
7292 (amd64-mpx-linux.c): Remove.
7293 (amd64-avx-mpx-avx512-pku.c): Remove.
7294 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
7295 (amd64-avx-mpx.c): Remove.
7296 (amd64-avx-mpx-linux.c): Remove.
7298 (x32-linux.c): Remove.
7299 (x32-avx.c): Remove.
7300 (x32-avx-linux.c): Remove.
7301 (x32-avx-avx512.c): Remove.
7302 (x32-avx-avx512-linux.c): Remove.
7303 (reg-xtensa.c): Remove.
7304 (reg-tilegx.c): Remove.
7305 (reg-tilegx32.c): Remove.
7307 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
7309 * Makefile.in (SFILES): Add "common/environ.c".
7310 (OBJS): Add "common/environ.h".
7312 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7314 * configure.ac: Check if the fs_base and gs_base members of
7315 `struct user_regs_struct' exist.
7316 * config.in: Regenerated.
7317 * configure: Likewise.
7319 2017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
7321 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
7323 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
7324 (get_next_pcs_syscall_next_pc): Likewise.
7326 2016-12-23 Luis Machado <lgustavo@codesourcery.com>
7328 * win32-i386-low.c: Fix incorrect reference to a couple source files.
7329 * nto-x86-low.c: Likewise.
7331 2016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
7333 * Makefile.in: Include disable-implicit-rules.mk.
7335 2016-11-23 Pedro Alves <palves@redhat.com>
7337 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
7338 (debug_vprintf): Use std::chrono::steady_clock instead of
7339 gettimeofday. Use '.' instead of ':'.
7340 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
7341 (get_timestamp): Use std::chrono::steady_clock instead of
7344 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7346 * Makefile.in: Fix whitespace formatting.
7348 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7350 * Makefile.in (SFILES, OBS): Flatten list and order
7353 2016-11-23 Pedro Alves <palves@redhat.com>
7355 * event-loop.c (handle_file_event): Use warning.
7356 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
7357 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
7360 2016-11-23 Pedro Alves <palves@redhat.com>
7362 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
7364 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
7365 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
7366 debug_printf and debug_flush for debug output.
7367 * server.c (handle_general_set): Likewise.
7368 * thread-db.c (try_thread_db_load): Use debug_printf for debug
7371 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7373 * Makefile.in (.c.o): Replace rule with ...
7374 (%.o: %.c): ... this one.
7376 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7378 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
7379 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
7381 * configure.ac: Remove checks for the make program.
7382 * configure: Re-generate.
7384 2016-10-28 Pedro Alves <palves@redhat.com>
7386 * Makefile.in (CXX_DIALECT): Get from configure.
7387 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
7388 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
7389 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
7390 * config.in: Regenerate.
7391 * configure: Regenerate.
7393 2016-10-27 Yao Qi <yao.qi@linaro.org>
7395 * linux-low.c (linux_supports_range_stepping): Return true if
7396 can_software_single_step return true.
7398 2016-10-27 Yao Qi <yao.qi@linaro.org>
7400 * inferiors.c (find_inferior_in_random): New function.
7401 * inferiors.h (find_inferior_in_random): Declare.
7402 * linux-low.c (linux_wait_for_event_filtered): Call
7403 find_inferior_in_random instead of find_inferior.
7405 2016-10-27 Yao Qi <yao.qi@linaro.org>
7407 * linux-low.c (linux_wait_1): If single-step breakpoints are
7408 inserted, remove them.
7410 2016-10-26 Pedro Alves <palves@redhat.com>
7412 * linux-low.c (handle_extended_wait): Link parent/child fork
7414 (linux_wait_1): Unlink them.
7415 (linux_set_resume_request): Ignore resume requests for
7416 already-resumed and unhandled fork child threads.
7417 * linux-low.h (struct lwp_info) <fork_relative>: New field.
7418 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
7420 (handle_v_requests) <vCont>: Don't call require_running.
7421 * server.h (in_queued_stop_replies): New declaration.
7423 2016-10-24 Yao Qi <yao.qi@linaro.org>
7426 * linux-aarch64-low.c (append_insns): Cast the return value to
7429 2016-10-10 Yao Qi <yao.qi@linaro.org>
7431 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
7433 2016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
7435 * target.c (target_supports_multi_process): New function, moved
7437 * target.h (target_supports_multi_process): ... here. Remove
7440 2016-10-05 Tom Tromey <tom@tromey.com>
7443 * tracepoint.c (handle_tracepoint_bkpts): Check
7444 ipa_error_tracepoint, not ipa_stopping_tracepoint.
7446 2016-10-05 Yao Qi <yao.qi@linaro.org>
7448 * configure.srv: Update the path of arm-*.xml files.
7450 2016-10-05 Terry Guo <terry.guo@arm.com>
7451 Yao Qi <yao.qi@linaro.org>
7453 * Makefile.in: Adjust the path of rules.
7454 * configure.srv: Update the path of xml files.
7455 * regformats/arm-with-iwmmxt.dat: Regenerated.
7456 * regformats/arm-with-neon.dat: Likewise.
7457 * regformats/arm-with-vfpv2.dat: Likewise.
7458 * regformats/arm-with-vfpv3.dat Likewise.
7460 2016-09-30 Yao Qi <yao.qi@linaro.org>
7463 * target.c (target_stop_and_wait): Don't call
7464 target_continue_no_signal, use resume_stop instead.
7466 2016-09-26 Yao Qi <yao.qi@linaro.org>
7468 * linux-low.c (linux_wait_1): Call debug_exit.
7470 2016-09-23 Pedro Alves <palves@redhat.com>
7472 * Makefile.in (SFILES): Add common/new-op.c.
7473 (OBS): Add common/new-op.o.
7474 (new-op.o): New rule.
7476 2016-09-21 Simon Marchi <simon.marchi@ericsson.com>
7478 * .gitinore: Ignore more files.
7480 2016-09-21 Yao Qi <yao.qi@linaro.org>
7482 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
7485 2016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
7487 * server.c (start_inferior): Call target_mourn_inferior instead of
7488 mourn_inferior; pass ptid_t argument to it.
7490 (handle_target_event): Likewise.
7491 * target.c (target_mourn_inferior): New function.
7492 * target.h (mourn_inferior): Delete macro.
7494 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
7496 * linux-low.c (lwp_is_stepping): New function.
7498 2016-09-06 Carl Love <cel@us.ibm.com>
7500 * server.c (start_inferior): Fixed comment, requested comment change
7501 didn't get updated correctly. Removed reference to ptrace () call as
7502 it is only true on Linux systems.
7504 2016-09-06 Carl Love <cel@us.ibm.com>
7506 * server.c (start_inferior): Do not call
7507 function target_post_create_inferior () if the
7508 inferior process has already exited.
7510 2016-09-05 Pedro Alves <palves@redhat.com>
7512 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
7513 (COMPILE.pre, CC_LD): Use CXX directly.
7514 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
7515 * acinclude.m4: Don't include build-with-cxx.m4.
7516 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
7517 * configure: Regenerate.
7519 2016-09-02 Akash Trehan <akash.trehan123@gmail.com>
7522 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
7523 call writing data to own_buf.
7525 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7527 * target.c (mywait): Call target_wait instead of
7529 (target_wait): New function.
7531 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7533 * server.c (start_inferior): New variable 'ptid'. Replace calls
7534 to the_target->resume by target_continue{,_no_signal}, depending
7536 * target.c (target_stop_and_wait): Call target_continue_no_signal
7537 instead of the_target->resume.
7538 (target_continue): New function.
7540 2016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
7542 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
7544 2016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7547 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
7549 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
7550 * linux-arm-low.c (ps_get_thread_area): Likewise.
7551 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
7552 * linux-m68k-low.c (ps_get_thread_area): Likewise.
7553 * linux-mips-low.c (ps_get_thread_area): Likewise.
7554 * linux-nios2-low.c (ps_get_thread_area): Likewise.
7555 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
7556 * linux-x86-low.c (ps_get_thread_area): Likewise.
7557 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
7559 2016-08-19 Pedro Alves <palves@redhat.com>
7561 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
7563 2016-08-19 Pedro Alves <palves@redhat.com>
7565 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
7566 comment. Use memcpy instead of casting through unsigned long.
7568 2016-08-19 Pedro Alves <palves@redhat.com>
7570 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
7571 allocating around 0x80000000.
7573 2016-08-19 Pedro Alves <palves@redhat.com>
7576 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
7577 (x32-avx512-linux-ipa.o): New rules.
7578 * configure.ac (x86_64-*-linux*): New x32 check.
7579 * configure.srv (ipa_x32_linux_regobj): New.
7580 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
7581 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
7583 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
7585 * configure: Regenerate.
7587 2016-08-09 Pedro Alves <palves@redhat.com>
7590 * Makefile.in (OBS): Add signals-state-save-restore.o.
7591 (signals-state-save-restore.o): New rule.
7592 * config.in: Regenerate.
7593 * configure: Regenerate.
7594 * linux-low.c: Include "signals-state-save-restore.h".
7595 (linux_create_inferior): Call
7596 restore_original_signals_state.
7597 * server.c: Include "dispositions-save-restore.h".
7598 (captured_main): Call save_original_signals_state.
7600 2016-08-05 Pedro Alves <palves@redhat.com>
7602 * configure: Regenerate.
7604 2016-08-04 Yao Qi <yao.qi@linaro.org>
7606 * linux-low.c (regsets_fetch_inferior_registers): Check
7607 errno is ESRCH or not.
7609 2016-08-02 Yao Qi <yao.qi@linaro.org>
7611 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
7612 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
7613 (thread_db_load_search): Update.
7614 (try_thread_db_load_1): Don't look for td_ta_event_addr,
7615 td_ta_set_event and td_ta_event_getmsg.
7617 2016-07-26 Pedro Alves <palves@redhat.com>
7620 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
7621 of unsigned long for 64-bit registers and use uint32_t instead of
7622 unsigned int for 32-bit registers.
7624 2016-07-26 Pedro Alves <palves@redhat.com>
7626 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
7629 2016-07-21 Tom Tromey <tom@tromey.com>
7631 * configure: Rebuild.
7633 2016-07-21 Yao Qi <yao.qi@linaro.org>
7635 * mem-break.c (find_gdb_breakpoint): Cast bp to
7636 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
7638 2016-07-21 Yao Qi <yao.qi@linaro.org>
7640 * server.c (handle_v_requests): Support s and S actions
7641 if target_supports_software_single_step return true.
7643 2016-07-21 Yao Qi <yao.qi@linaro.org>
7645 * linux-low.c (resume_stopped_resumed_lwps): If resume request
7646 is resume_step, call maybe_hw_step.
7647 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
7649 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
7651 (proceed_one_lwp): If resume request is resume_step, install
7652 reinsert breakpoints and call maybe_hw_step.
7654 2016-07-21 Yao Qi <yao.qi@linaro.org>
7656 * linux-low.c (proceed_one_lwp): Declare.
7657 (linux_resume_one_thread): Remove local variable 'step'.
7658 Lift code enqueue signal. Call proceed_one_lwp instead of
7659 linux_resume_one_lwp.
7661 2016-07-21 Yao Qi <yao.qi@linaro.org>
7663 * linux-low.c (linux_resume_one_thread): Call
7664 enqueue_pending_signal.
7666 2016-07-21 Yao Qi <yao.qi@linaro.org>
7668 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
7669 * inferiors.c (do_restore_current_thread_cleanup): New function.
7670 (make_cleanup_restore_current_thread): Likewise.
7671 * linux-low.c (install_software_single_step_breakpoints): Call
7672 make_cleanup_restore_current_thread. Switch current_thread to
7675 2016-07-21 Yao Qi <yao.qi@linaro.org>
7677 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
7678 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
7679 (clone_one_breakpoint): Likewise.
7680 (delete_reinsert_breakpoints): Change parameter to thread.
7682 (has_reinsert_breakpoints): Likewise.
7683 (uninsert_reinsert_breakpoints): Likewise.
7684 (reinsert_reinsert_breakpoints): Likewise.
7685 * mem-break.h (set_reinsert_breakpoint): Update declaration.
7686 (delete_reinsert_breakpoints): Likewise.
7687 (reinsert_reinsert_breakpoints): Likewise.
7688 (uninsert_reinsert_breakpoints): Likewise.
7689 (has_reinsert_breakpoints): Likewise.
7691 2016-07-21 Yao Qi <yao.qi@linaro.org>
7693 * inferiors.c (get_thread_process): Make parameter const.
7694 * inferiors.h (get_thread_process): Update declaration.
7695 * mem-break.c (clone_all_breakpoints): Remove all parameters.
7696 Add new parameters child_thread and parent_thread. Callers
7698 * mem-break.h (clone_all_breakpoints): Update declaration.
7700 2016-07-21 Yao Qi <yao.qi@linaro.org>
7702 * mem-break.c (struct breakpoint) <cond_list>: Remove.
7703 <command_list, handler>: Remove.
7704 (struct gdb_breakpoint): New.
7705 (struct other_breakpoint): New.
7706 (struct reinsert_breakpoint): New.
7707 (is_gdb_breakpoint): New function.
7708 (any_persistent_commands): Update command_list if
7709 is_gdb_breakpoint returns true.
7710 (set_breakpoint): Create breakpoints according to their types.
7711 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
7712 (set_gdb_breakpoint_1): Likewise.
7713 (set_gdb_breakpoint): Likewise.
7714 (clear_breakpoint_conditions): Change parameter type to
7715 'struct gdb_breakpoint *'.
7716 (clear_breakpoint_commands): Likewise.
7717 (clear_breakpoint_conditions_and_commands): Likewise.
7718 (add_condition_to_breakpoint): Likewise.
7719 (add_breakpoint_condition): Likewise.
7720 (add_commands_to_breakpoint): Likewise.
7721 (check_breakpoints): Check other_breakpoint.
7722 (clone_one_breakpoint): Clone breakpopint according to its type.
7723 * mem-break.h (struct gdb_breakpoint): Declare.
7724 (set_gdb_breakpoint): Update declaration.
7725 (clear_breakpoint_conditions_and_commands): Likewise.
7726 (add_breakpoint_condition): Likewise.
7727 (add_breakpoint_commands): Likewise.
7728 * server.c (process_point_options): Change parameter type to
7729 'struct gdb_breakpoint *'.
7731 2016-07-21 Yao Qi <yao.qi@linaro.org>
7733 * mem-break.c (set_breakpoint_at): Rename it to ...
7734 (set_breakpoint_type_at): ... it.
7735 (set_breakpoint_at): Call set_breakpoint_type_at.
7736 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
7737 * mem-break.h (set_breakpoint_at): Update comments.
7739 2016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
7741 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
7743 (nios2_store_gregset): Likewise.
7745 2016-07-01 Pedro Alves <palves@redhat.com>
7746 Antoine Tremblay <antoine.tremblay@ericsson.com>
7748 * linux-low.c: Change interface to take the target lwp_info
7749 pointer directly and return void. Handle detaching from a zombie
7751 (linux_detach_lwp_callback): New function.
7752 (linux_detach): Detach from the leader thread after detaching from
7755 2016-06-28 Yao Qi <yao.qi@linaro.org>
7757 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
7758 for variable new_offset.
7759 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
7760 (aarch64_ftrace_insn_reloc_cb): Likewise.
7761 (aarch64_ftrace_insn_reloc_tb): Likewise.
7762 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
7763 PRIx64 instead of PRIx32.
7765 2016-06-28 Yao Qi <yao.qi@linaro.org>
7767 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
7768 (the_low_target): Install arm_get_syscall_trapinfo.
7770 2016-06-28 Yao Qi <yao.qi@linaro.org>
7772 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
7774 (the_low_target): Install aarch64_get_syscall_trapinfo.
7776 2016-06-28 Yao Qi <yao.qi@linaro.org>
7778 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
7780 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
7781 Remove parameter sysno.
7782 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
7785 2016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7787 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
7788 (s390_emit_ne_goto): Likewise.
7789 (s390_emit_lt_goto): Likewise.
7790 (s390_emit_le_goto): Likewise.
7791 (s390_emit_gt_goto): Likewise.
7792 (s390_emit_ge_goto): Likewise.
7793 (s390x_emit_eq_goto): Likewise.
7794 (s390x_emit_ne_goto): Likewise.
7795 (s390x_emit_lt_goto): Likewise.
7796 (s390x_emit_le_goto): Likewise.
7797 (s390x_emit_gt_goto): Likewise.
7798 (s390x_emit_ge_goto): Likewise.
7799 (s390_emit_ops_impl): Mark variable static.
7800 (s390x_emit_ops): Likewise.
7802 2016-06-17 Yao Qi <yao.qi@linaro.org>
7804 * linux-low.c (handle_extended_wait): Call
7805 uninsert_reinsert_breakpoints for the parent process. Remove
7806 reinsert breakpoints from the child process. Reinsert them to
7807 the parent process when vfork is done.
7808 * mem-break.c (uninsert_reinsert_breakpoints): New function.
7809 (reinsert_reinsert_breakpoints): New function.
7810 * mem-break.h (uninsert_reinsert_breakpoints): Declare
7811 (reinsert_reinsert_breakpoints): Declare.
7813 2016-06-17 Yao Qi <yao.qi@linaro.org>
7815 * linux-low.c (handle_extended_wait): If the parent is doing
7816 step-over, remove the reinsert breakpoints from the forked child.
7818 2016-06-17 Yao Qi <yao.qi@linaro.org>
7820 * linux-low.c (unsuspend_all_lwps): Declare.
7821 (linux_low_filter_event): If thread exited, call finish_step_over.
7822 If step-over is finished, unsuspend other threads.
7824 2016-06-17 Yao Qi <yao.qi@linaro.org>
7826 * linux-low.c (linux_resume_one_lwp_throw): Assert
7827 has_reinsert_breakpoints returns false.
7828 * mem-break.c (delete_disabled_breakpoints): Assert
7829 bp type isn't reinsert_breakpoint.
7831 2016-06-17 Yao Qi <yao.qi@linaro.org>
7833 * linux-low.c (maybe_hw_step): New function.
7834 (linux_resume_one_lwp_throw): Call maybe_hw_step.
7835 (finish_step_over): Switch current_thread to lwp temporarily,
7836 and assert has_reinsert_breakpoints returns true.
7837 (proceed_one_lwp): Call maybe_hw_step.
7838 * mem-break.c (has_reinsert_breakpoints): New function.
7839 * mem-break.h (has_reinsert_breakpoints): Declare.
7841 2016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
7843 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
7845 2016-05-17 Yao Qi <yao.qi@linaro.org>
7847 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
7848 instead of find_inferior.
7850 2016-05-05 Yao Qi <yao.qi@linaro.org>
7852 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
7853 Initialize res to zero.
7855 2016-05-05 Yao Qi <yao.qi@linaro.org>
7857 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
7860 2016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7862 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
7863 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
7864 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
7866 2016-04-28 Par Olsson <par.olsson@windriver.com>
7867 Simon Marchi <simon.marchi@ericsson.com>
7869 * tracepoint.c (write_inferior_int8): New function.
7870 (cmd_qtenable_disable): Write enable flag using
7871 write_inferior_int8.
7873 2016-04-25 Yao Qi <yao.qi@linaro.org>
7875 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
7876 (need_step_over_p): Return zero if the LWP has pending signals
7877 can be delivered on software single step target.
7879 2016-04-25 Yao Qi <yao.qi@linaro.org>
7881 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
7882 return instead of error.
7884 2016-04-22 Yao Qi <yao.qi@linaro.org>
7886 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
7889 2016-04-22 Yao Qi <yao.qi@linaro.org>
7891 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
7892 signal when stepping over breakpoint with software single
7895 2016-04-21 Pedro Alves <palves@redhat.com>
7897 * linux-s390-low.c (s390_collect_ptrace_register)
7898 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
7900 (s390_check_regset): Use void * instead of gdb_byte *.
7902 2016-04-20 Pedro Alves <palves@redhat.com>
7904 * configure: Renegerate.
7906 2016-04-20 Yao Qi <yao.qi@linaro.org>
7908 * linux-aarch32-low.c: Include "arch/arm-linux.h".
7909 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
7911 (arm_store_gregset): Likewise.
7913 2016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
7915 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
7916 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
7917 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
7918 (amd64-avx-mpx-linux.c): New rules.
7919 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
7920 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
7921 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
7922 (srv_amd64_regobj): Add amd64-avx-mpx.o.
7923 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
7924 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
7925 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
7926 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
7927 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
7928 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
7929 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
7930 * linux-x86-low.c (x86_linux_read_description): Add case for
7931 X86_XSTATE_AVX_MPX_MASK.
7932 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
7933 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
7934 init_registers_i386_avx_mpx_linux.
7935 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
7936 (initialize_low_tracepoint): Call
7937 init_registers_i386_avx_mpx_linux.
7938 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
7939 (initialize_low_tracepoint): Call
7940 init_registers_amd64_avx_mpx_linux.
7941 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
7942 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
7943 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
7946 2016-04-18 Pedro Alves <palves@redhat.com>
7948 * configure: Regenerate.
7950 2016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
7952 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
7953 (aarch64_emit_sub): Likewise.
7955 2016-04-12 Pedro Alves <palves@redhat.com>
7957 * utils.c (prepare_to_throw_exception): Delete.
7959 2016-04-05 Simon Marchi <simon.marchi@ericsson.com>
7961 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
7963 2016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
7965 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
7967 2016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
7969 * linux-aarch64-ipa.c: Add <elf.h> include.
7970 * linux-ppc-ipa.c: Add <elf.h> include.
7971 * linux-s390-ipa.c: Add <elf.h> include.
7973 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
7975 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
7976 (get_raw_reg_ptr): Likewise.
7977 (get_trace_state_variable_value_ptr): Likewise.
7978 (set_trace_state_variable_value_ptr): Likewise.
7979 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
7982 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
7983 Marcin Kościelnicki <koriakin@0x04.net>
7986 * linux-ppc-low.c (emit_insns): New function.
7987 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
7988 (ppc_emit_prologue): New function.
7989 (ppc_emit_epilogue): New function.
7990 (ppc_emit_add): New function.
7991 (ppc_emit_sub): New function.
7992 (ppc_emit_mul): New function.
7993 (ppc_emit_lsh): New function.
7994 (ppc_emit_rsh_signed): New function.
7995 (ppc_emit_rsh_unsigned): New function.
7996 (ppc_emit_ext): New function.
7997 (ppc_emit_zero_ext): New function.
7998 (ppc_emit_log_not): New function.
7999 (ppc_emit_bit_and): New function.
8000 (ppc_emit_bit_or): New function.
8001 (ppc_emit_bit_xor): New function.
8002 (ppc_emit_bit_not): New function.
8003 (ppc_emit_equal): New function.
8004 (ppc_emit_less_signed): New function.
8005 (ppc_emit_less_unsigned): New function.
8006 (ppc_emit_ref): New function.
8007 (ppc_emit_const): New function.
8008 (ppc_emit_reg): New function.
8009 (ppc_emit_pop): New function.
8010 (ppc_emit_stack_flush): New function.
8011 (ppc_emit_swap): New function.
8012 (ppc_emit_stack_adjust): New function.
8013 (ppc_emit_call): New function.
8014 (ppc_emit_int_call_1): New function.
8015 (ppc_emit_void_call_2): New function.
8016 (ppc_emit_if_goto): New function.
8017 (ppc_emit_goto): New function.
8018 (ppc_emit_eq_goto): New function.
8019 (ppc_emit_ne_goto): New function.
8020 (ppc_emit_lt_goto): New function.
8021 (ppc_emit_le_goto): New function.
8022 (ppc_emit_gt_goto): New function.
8023 (ppc_emit_ge_goto): New function.
8024 (ppc_write_goto_address): New function.
8025 (ppc_emit_ops_impl): New static variable.
8026 (ppc64v1_emit_prologue): New function.
8027 (ppc64v2_emit_prologue): New function.
8028 (ppc64_emit_epilogue): New function.
8029 (ppc64_emit_add): New function.
8030 (ppc64_emit_sub): New function.
8031 (ppc64_emit_mul): New function.
8032 (ppc64_emit_lsh): New function.
8033 (ppc64_emit_rsh_signed): New function.
8034 (ppc64_emit_rsh_unsigned): New function.
8035 (ppc64_emit_ext): New function.
8036 (ppc64_emit_zero_ext): New function.
8037 (ppc64_emit_log_not): New function.
8038 (ppc64_emit_bit_and): New function.
8039 (ppc64_emit_bit_or): New function.
8040 (ppc64_emit_bit_xor): New function.
8041 (ppc64_emit_bit_not): New function.
8042 (ppc64_emit_equal): New function.
8043 (ppc64_emit_less_signed): New function.
8044 (ppc64_emit_less_unsigned): New function.
8045 (ppc64_emit_ref): New function.
8046 (ppc64_emit_const): New function.
8047 (ppc64v1_emit_reg): New function.
8048 (ppc64v2_emit_reg): New function.
8049 (ppc64_emit_pop): New function.
8050 (ppc64_emit_stack_flush): New function.
8051 (ppc64_emit_swap): New function.
8052 (ppc64v1_emit_call): New function.
8053 (ppc64v2_emit_call): New function.
8054 (ppc64v1_emit_int_call_1): New function.
8055 (ppc64v2_emit_int_call_1): New function.
8056 (ppc64v1_emit_void_call_2): New function.
8057 (ppc64v2_emit_void_call_2): New function.
8058 (ppc64_emit_if_goto): New function.
8059 (ppc64_emit_eq_goto): New function.
8060 (ppc64_emit_ne_goto): New function.
8061 (ppc64_emit_lt_goto): New function.
8062 (ppc64_emit_le_goto): New function.
8063 (ppc64_emit_gt_goto): New function.
8064 (ppc64_emit_ge_goto): New function.
8065 (ppc64v1_emit_ops_impl): New static variable.
8066 (ppc64v2_emit_ops_impl): New static variable.
8067 (ppc_emit_ops): New function.
8068 (linux_low_target): Wire in ppc_emit_ops.
8070 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
8071 Marcin Kościelnicki <koriakin@0x04.net>
8074 * Makefile.in: Add powerpc-*-ipa.o
8075 * configure.srv: Add ipa_obj for powerpc*-linux.
8076 * linux-ppc-ipa.c: New file.
8077 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
8079 (PPC_FIELD): New macro.
8080 (PPC_SEXT): New macro.
8081 (PPC_OP6): New macro.
8082 (PPC_BO): New macro.
8083 (PPC_LI): New macro.
8084 (PPC_BD): New macro.
8085 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
8086 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
8087 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
8088 (ppc_get_thread_area): New function.
8089 (is_elfv2_inferior): New function.
8090 (gen_ds_form): New function.
8091 (GEN_STD): New macro.
8092 (GEN_STDU): New macro.
8093 (GEN_LD): New macro.
8094 (GEN_LDU): New macro.
8095 (gen_d_form): New function.
8096 (GEN_ADDI): New macro.
8097 (GEN_ADDIS): New macro.
8098 (GEN_LI): New macro.
8099 (GEN_LIS): New macro.
8100 (GEN_ORI): New macro.
8101 (GEN_ORIS): New macro.
8102 (GEN_LWZ): New macro.
8103 (GEN_STW): New macro.
8104 (GEN_STWU): New macro.
8105 (gen_xfx_form): New function.
8106 (GEN_MFSPR): New macro.
8107 (GEN_MTSPR): New macro.
8108 (GEN_MFCR): New macro.
8109 (GEN_MTCR): New macro.
8110 (GEN_SYNC): New macro.
8111 (GEN_LWSYNC): New macro.
8112 (gen_x_form): New function.
8113 (GEN_OR): New macro.
8114 (GEN_MR): New macro.
8115 (GEN_LWARX): New macro.
8116 (GEN_STWCX): New macro.
8117 (GEN_CMPW): New macro.
8118 (gen_md_form): New function.
8119 (GEN_RLDICL): New macro.
8120 (GEN_RLDICR): New macro.
8121 (gen_i_form): New function.
8123 (GEN_BL): New macro.
8124 (gen_b_form): New function.
8125 (GEN_BNE): New macro.
8126 (GEN_LOAD): New macro.
8127 (GEN_STORE): New macro.
8128 (gen_limm): New function.
8129 (gen_atomic_xchg): New function.
8130 (gen_call): New function.
8131 (ppc_relocate_instruction): New function.
8132 (ppc_install_fast_tracepoint_jump_pad): New function.
8133 (ppc_get_min_fast_tracepoint_insn_len): New function.
8134 (ppc_get_ipa_tdesc_idx): New function.
8135 (the_low_target): Wire in the new functions.
8136 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
8138 * linux-ppc-tdesc.h: New file.
8140 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8142 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8143 (alloc_jump_pad_buffer): New function.
8144 * linux-amd64-ipa.c: Add <sys/mman.h> include.
8145 (alloc_jump_pad_buffer): New function.
8146 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
8147 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8148 (alloc_jump_pad_buffer): New function.
8149 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
8150 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
8151 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
8152 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
8154 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8156 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
8157 * linux-amd64-ipa.c: Likewise.
8158 * linux-i386-ipa.c: Likewise.
8159 * linux-s390-ipa.c: Likewise.
8160 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
8161 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
8162 set_trace_state_variable_value_ptr.
8163 (struct ipa_sym_addresses): Likewise.
8164 (symbol_list): Likewise.
8165 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
8166 accessing gdb_collect directly.
8167 (gdb_collect_ptr_type): New typedef.
8168 (get_raw_reg_ptr_type): New typedef.
8169 (get_trace_state_variable_value_ptr_type): New typedef.
8170 (set_trace_state_variable_value_ptr_type): New typedef.
8171 (gdb_collect_ptr): New global.
8172 (get_raw_reg_ptr): New global.
8173 (get_trace_state_variable_value_ptr): New global.
8174 (set_trace_state_variable_value_ptr): New global.
8175 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
8176 accessing get_raw_reg directly.
8177 (get_get_tsv_func_addr): Likewise for
8178 get_trace_state_variable_value_ptr.
8179 (get_set_tsv_func_addr): Likewise for
8180 set_trace_state_variable_value_ptr.
8181 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
8183 2016-03-30 Simon Marchi <simon.marchi@ericsson.com>
8185 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
8187 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8189 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
8191 (relocate_instruction): Remove own_buf.
8192 * server.c (own_buf): Make global.
8193 (handle_v_requests): Make global.
8194 * server.h (own_buf): New declaration.
8195 (handle_v_requests): New prototype.
8197 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8200 * linux-s390-low.c (add_insns): New function.
8201 (s390_emit_prologue): New function.
8202 (s390_emit_epilogue): New function.
8203 (s390_emit_add): New function.
8204 (s390_emit_sub): New function.
8205 (s390_emit_mul): New function.
8206 (s390_emit_lsh): New function.
8207 (s390_emit_rsh_signed): New function.
8208 (s390_emit_rsh_unsigned): New function.
8209 (s390_emit_ext): New function.
8210 (s390_emit_log_not): New function.
8211 (s390_emit_bit_and): New function.
8212 (s390_emit_bit_or): New function.
8213 (s390_emit_bit_xor): New function.
8214 (s390_emit_bit_not): New function.
8215 (s390_emit_equal): New function.
8216 (s390_emit_less_signed): New function.
8217 (s390_emit_less_unsigned): New function.
8218 (s390_emit_ref): New function.
8219 (s390_emit_if_goto): New function.
8220 (s390_emit_goto): New function.
8221 (s390_write_goto_address): New function.
8222 (s390_emit_litpool): New function.
8223 (s390_emit_const): New function.
8224 (s390_emit_call): New function.
8225 (s390_emit_reg): New function.
8226 (s390_emit_pop): New function.
8227 (s390_emit_stack_flush): New function.
8228 (s390_emit_zero_ext): New function.
8229 (s390_emit_swap): New function.
8230 (s390_emit_stack_adjust): New function.
8231 (s390_emit_set_r2): New function.
8232 (s390_emit_int_call_1): New function.
8233 (s390_emit_void_call_2): New function.
8234 (s390_emit_eq_goto): New function.
8235 (s390_emit_ne_goto): New function.
8236 (s390_emit_lt_goto): New function.
8237 (s390_emit_le_goto): New function.
8238 (s390_emit_gt_goto): New function.
8239 (s390_emit_ge_goto): New function.
8240 (s390x_emit_prologue): New function.
8241 (s390x_emit_epilogue): New function.
8242 (s390x_emit_add): New function.
8243 (s390x_emit_sub): New function.
8244 (s390x_emit_mul): New function.
8245 (s390x_emit_lsh): New function.
8246 (s390x_emit_rsh_signed): New function.
8247 (s390x_emit_rsh_unsigned): New function.
8248 (s390x_emit_ext): New function.
8249 (s390x_emit_log_not): New function.
8250 (s390x_emit_bit_and): New function.
8251 (s390x_emit_bit_or): New function.
8252 (s390x_emit_bit_xor): New function.
8253 (s390x_emit_bit_not): New function.
8254 (s390x_emit_equal): New function.
8255 (s390x_emit_less_signed): New function.
8256 (s390x_emit_less_unsigned): New function.
8257 (s390x_emit_ref): New function.
8258 (s390x_emit_if_goto): New function.
8259 (s390x_emit_const): New function.
8260 (s390x_emit_call): New function.
8261 (s390x_emit_reg): New function.
8262 (s390x_emit_pop): New function.
8263 (s390x_emit_stack_flush): New function.
8264 (s390x_emit_zero_ext): New function.
8265 (s390x_emit_swap): New function.
8266 (s390x_emit_stack_adjust): New function.
8267 (s390x_emit_int_call_1): New function.
8268 (s390x_emit_void_call_2): New function.
8269 (s390x_emit_eq_goto): New function.
8270 (s390x_emit_ne_goto): New function.
8271 (s390x_emit_lt_goto): New function.
8272 (s390x_emit_le_goto): New function.
8273 (s390x_emit_gt_goto): New function.
8274 (s390x_emit_ge_goto): New function.
8275 (s390_emit_ops): New function.
8276 (struct linux_target_ops): Fill in emit_ops hook.
8278 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8281 * Makefile.in: Add s390 IPA files.
8282 * configure.srv: Build IPA for s390.
8283 * linux-s390-ipa.c: New file.
8284 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
8285 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
8286 (tdesc_s390_linux32): Likewise.
8287 (init_registers_s390_linux32v1): Likewise.
8288 (tdesc_s390_linux32v1): Likewise.
8289 (init_registers_s390_linux32v2): Likewise.
8290 (tdesc_s390_linux32v2): Likewise.
8291 (init_registers_s390_linux64): Likewise.
8292 (tdesc_s390_linux64): Likewise.
8293 (init_registers_s390_linux64v1): Likewise.
8294 (tdesc_s390_linux64v1): Likewise.
8295 (init_registers_s390_linux64v2): Likewise.
8296 (tdesc_s390_linux64v2): Likewise.
8297 (init_registers_s390_te_linux64): Likewise.
8298 (tdesc_s390_te_linux64): Likewise.
8299 (init_registers_s390_vx_linux64): Likewise.
8300 (tdesc_s390_vx_linux64): Likewise.
8301 (init_registers_s390_tevx_linux64): Likewise.
8302 (tdesc_s390_tevx_linux64): Likewise.
8303 (init_registers_s390x_linux64): Likewise.
8304 (tdesc_s390x_linux64): Likewise.
8305 (init_registers_s390x_linux64v1): Likewise.
8306 (tdesc_s390x_linux64v1): Likewise.
8307 (init_registers_s390x_linux64v2): Likewise.
8308 (tdesc_s390x_linux64v2): Likewise.
8309 (init_registers_s390x_te_linux64): Likewise.
8310 (tdesc_s390x_te_linux64): Likewise.
8311 (init_registers_s390x_vx_linux64): Likewise.
8312 (tdesc_s390x_vx_linux64): Likewise.
8313 (init_registers_s390x_tevx_linux64): Likewise.
8314 (tdesc_s390x_tevx_linux64): Likewise.
8315 (have_hwcap_s390_vx): New static variable.
8316 (s390_arch_setup): Fill have_hwcap_s390_vx.
8317 (s390_get_thread_area): New function.
8318 (s390_ft_entry_gpr_esa): New const.
8319 (s390_ft_entry_gpr_zarch): New const.
8320 (s390_ft_entry_misc): New const.
8321 (s390_ft_entry_fr): New const.
8322 (s390_ft_entry_vr): New const.
8323 (s390_ft_main_31): New const.
8324 (s390_ft_main_64): New const.
8325 (s390_ft_exit_fr): New const.
8326 (s390_ft_exit_vr): New const.
8327 (s390_ft_exit_misc): New const.
8328 (s390_ft_exit_gpr_esa): New const.
8329 (s390_ft_exit_gpr_zarch): New const.
8330 (append_insns): New function.
8331 (s390_relocate_instruction): New function.
8332 (s390_install_fast_tracepoint_jump_pad): New function.
8333 (s390_get_min_fast_tracepoint_insn_len): New function.
8334 (s390_get_ipa_tdesc_idx): New function.
8335 (struct linux_target_ops): Wire in the above functions.
8336 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
8337 * linux-s390-tdesc.h: New file.
8339 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8341 * linux-s390-low.c (s390_supports_tracepoints): New function.
8342 (struct linux_target_ops): Fill supports_tracepoints hook.
8344 2016-03-18 Yao Qi <yao.qi@linaro.org>
8346 * linux-low.c (lwp_signal_can_be_delivered): New function.
8347 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
8349 2016-03-18 Yao Qi <yao.qi@linaro.org>
8351 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
8352 0 if signal is enqueued. Remove 'signal' from one debugging
8353 message. Move one debugging message to some lines below.
8354 Remove code setting 'signal' to 0.
8356 2016-03-18 Yao Qi <yao.qi@linaro.org>
8358 * linux-low.c (linux_low_filter_event): Remove redundant
8359 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
8361 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
8363 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
8364 (struct linux_target_ops): Wire in the above.
8366 2016-03-03 Yao Qi <yao.qi@linaro.org>
8368 * linux-low.c: Update comments to start_step_over.
8370 2016-03-03 Yao Qi <yao.qi@linaro.org>
8373 * linux-low.c (handle_extended_wait): Set child suspended
8374 if event_lwp->bp_reinsert isn't zero.
8376 2016-03-02 Yao Qi <yao.qi@linaro.org>
8378 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
8379 enqueue_pending_signal.
8381 2016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
8383 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
8386 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8388 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
8389 (s390_regmap_3264) [!__s390x__]: New global.
8390 (s390_collect_ptrace_register): Skip map entries containing -1.
8391 (s390_supply_ptrace_register): Ditto.
8392 (s390_fill_gprs_high): New function.
8393 (s390_store_gprs_high): New function.
8394 (s390_regsets): Add NT_S390_HIGH_GPRS.
8395 (s390_get_hwcap): Enable on 31-bit.
8396 (have_hwcap_s390_high_gprs): Enable on 31-bit.
8397 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
8398 Detect NT_S390_HIGH_GPRS.
8399 (s390_usrregs_info_3264): Enable on 31-bit.
8400 (s390_regs_info): Enable regs_info_3264 on 31-bit.
8401 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
8403 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8406 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
8407 * configure.srv: Ditto.
8408 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
8409 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
8410 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
8411 (init_registers_amd64_linux): Remove prototype.
8412 (tdesc_amd64_linux): Remove declaration.
8413 (get_ipa_tdesc): New function.
8414 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8415 initialize remaining tdescs.
8416 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
8417 (init_registers_i386_linux): Remove prototype.
8418 (tdesc_i386_linux): Remove declaration.
8419 (get_ipa_tdesc): New function.
8420 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8421 initialize remaining tdescs.
8422 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
8423 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
8424 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
8425 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
8426 (x86_get_ipa_tdesc_idx): New function.
8427 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
8428 * linux-x86-tdesc.h: New file.
8429 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
8430 (target_get_ipa_tdesc_idx): New macro.
8431 * tracepoint.c (ipa_tdesc_idx): New macro.
8432 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
8433 (symbol_list): Add ipa_tdesc_idx.
8434 (cmd_qtstart): Write ipa_tdesc_idx in the target.
8435 (ipa_tdesc): Remove.
8436 (ipa_tdesc_idx): New variable.
8437 (get_context_regcache): Use get_ipa_tdesc.
8438 (gdb_collect): Ditto.
8440 * tracepoint.h (get_ipa_tdesc): New prototype.
8441 (ipa_tdesc): Remove.
8443 2016-02-24 Pedro Alves <palves@redhat.com>
8445 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
8446 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
8447 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
8448 Factor out common code between the USE_SIGTRAP_SIGINFO and
8449 !USE_SIGTRAP_SIGINFO blocks.
8450 (linux_low_filter_event): Call save_stop_reason instead of
8451 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
8453 (linux_wait_1): Update comments.
8455 2016-02-24 Wei-cheng Wang <cole945@gmail.com>
8457 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
8458 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
8459 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
8460 ppc_insert_point, ppc_remove_point.
8462 2016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
8464 * linux-s390-low.c (s390_supports_z_point_type): New function.
8465 (struct linux_target_ops): Wire s390_supports_z_point_type in.
8467 2016-02-16 Yao Qi <yao.qi@linaro.org>
8469 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
8470 PC. Get pc from regcache_read_pc.
8472 2016-02-12 Yao Qi <yao.qi@linaro.org>
8474 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
8475 or linux_get_pc_32bit.
8476 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
8478 2016-02-12 Yao Qi <yao.qi@linaro.org>
8480 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
8481 arm_linux_get_next_pcs_fixup.
8483 2016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
8485 * tracepoint.c (x_tracepoint_action_download): Change
8486 write_inferior_data_ptr to write_inferior_data_pointer.
8487 (cmd_qtstart): Likewise.
8488 (write_inferior_data_ptr): Remove.
8489 (download_agent_expr): Change write_inferior_data_ptr to
8490 write_inferior_data_pointer.
8491 (download_tracepoint_1): Likewise.
8492 (download_tracepoint): Likewise.
8493 (download_trace_state_variables): Likewise.
8495 2016-02-11 Wei-cheng Wang <cole945@gmail.com>
8496 Marcin Kościelnicki <koriakin@0x04.net>
8498 * tracepoint.c (struct tracepoint_action_ops): Remove.
8499 (struct tracepoint_action): Remove ops.
8500 (m_tracepoint_action_download, r_tracepoint_action_download)
8501 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
8502 size and offset accordingly.
8503 (m_tracepoint_action_ops, r_tracepoint_action_ops)
8504 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
8505 (tracepoint_action_send, tracepoint_action_download): New functions.
8506 Helpers for trace action handlers.
8507 (add_tracepoint_action): Remove setup actions ops.
8508 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
8510 2016-02-10 Yao Qi <yao.qi@linaro.org>
8512 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
8514 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8516 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
8518 * configure: Regenerate.
8520 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8522 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
8523 void * to gdb_byte *.
8524 * linux-low.c (siginfo_fixup): Likewise.
8525 (linux_xfer_siginfo): Likewise.
8526 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
8528 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
8530 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
8532 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
8534 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
8536 * linux-x86-low.c [__x86_64__]: Include
8537 "nat/amd64-linux-siginfo.h".
8538 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
8539 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
8540 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
8541 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
8542 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
8543 (cpt_si_fd, si_timerid, si_overrun): Move from
8544 nat/amd64-linux-siginfo.c.
8545 * Makefile.in (amd64-linux-siginfo.o:): New rule.
8547 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
8549 * server.c (skip_to_semicolon): Remove.
8550 (process_point_options): Use strchrnul instead of
8553 2016-01-26 Yao Qi <yao.qi@linaro.org>
8555 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
8556 * linux-low.c (install_software_single_step_breakpoints): Don't
8557 call regcache_read_pc.
8558 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
8561 2016-01-26 Yao Qi <yao.qi@linaro.org>
8563 * linux-low.c (install_software_single_step_breakpoints): Call
8564 regcache_read_pc instead of get_pc.
8566 2016-01-26 Yao Qi <yao.qi@linaro.org>
8568 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
8569 (unblock_async_io): Rename to ...
8570 (block_unblock_async_io): ... it. New function.
8571 (enable_async_io): Don't install SIGIO handler. Unblock it
8573 (disable_async_io): Don't ignore SIGIO. Block it instead.
8574 (initialize_async_io): Install SIGIO handler. Don't call
8577 2016-01-26 Yao Qi <yao.qi@linaro.org>
8579 * remote-utils.c (getpkt): If the buffer isn't empty, and the
8580 first character is '\003', call *the_target->request_interrupt.
8582 2016-01-25 Yao Qi <yao.qi@linaro.org>
8584 * remote-utils.c (new_thread_notify): Remove.
8585 (dead_thread_notify): Likewise.
8586 * remote-utils.h (new_thread_notify): Remove declaration.
8587 (dead_thread_notify): Likewise.
8589 2016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
8591 * gdb.trace/pending.exp: Fix expected message on continue.
8593 2016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
8595 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
8596 it works properly on big-endian machines where sizeof (CORE_ADDR)
8599 2016-01-21 Pedro Alves <palves@redhat.com>
8601 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
8602 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
8603 * configure: Regenerate.
8605 2016-01-21 Yao Qi <yao.qi@linaro.org>
8607 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
8608 is_thumb and set it according to CPSR saved on the stack.
8609 (get_next_pcs_syscall_next_pc): Pass is_thumb to
8610 arm_sigreturn_next_pc.
8612 2016-01-18 Yao Qi <yao.qi@linaro.org>
8614 * linux-low.c (linux_set_pc_64bit): New function.
8615 (linux_get_pc_64bit): New function.
8616 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
8618 * linux-sparc-low.c (debug_threads): Remove declaration.
8619 (sparc_get_pc): Remove.
8620 (the_low_target): Use linux_get_pc_64bit instead of
8622 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
8623 (the_low_target): Use linux_get_pc_64bit and
8626 2016-01-18 Yao Qi <yao.qi@linaro.org>
8628 * linux-arm-low.c (debug_threads): Remove declaration.
8629 (arm_get_pc, arm_set_pc): Remove.
8630 (the_low_target): Use linux_get_pc_32bit and
8632 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
8633 (the_low_target): Use linux_get_pc_32bit and
8635 * linux-cris-low.c (debug_threads): Remove declaration.
8636 (cris_get_pc, cris_set_pc,): Remove.
8637 (the_low_target): Use linux_get_pc_32bit and
8639 * linux-crisv32-low.c (debug_threads): Remove declaration.
8640 (cris_get_pc, cris_set_pc): Remove.
8641 (the_low_target): Use linux_get_pc_32bit and
8643 * linux-low.c: Include inttypes.h.
8644 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
8645 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
8646 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
8647 (the_low_target): Use linux_get_pc_32bit and
8649 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
8650 (the_low_target): Use linux_get_pc_32bit and
8652 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
8653 (the_low_target): Use linux_get_pc_32bit and
8655 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
8656 (the_low_target): Use linux_get_pc_32bit and
8658 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
8659 (the_low_target): Use linux_get_pc_32bit and
8662 2016-01-18 Gary Benson <gbenson@redhat.com>
8664 * configure.ac (AC_FUNC_FORK): New check.
8665 * config.in: Regenerate.
8666 * configure: Likewise.
8668 2016-01-14 Yao Qi <yao.qi@linaro.org>
8670 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
8671 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
8672 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
8673 arm_get_next_pcs_ctor.
8675 2016-01-12 Josh Stone <jistone@redhat.com>
8676 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8678 * inferiors.h: Include "gdb_vecs.h".
8679 (struct process_info): Add syscalls_to_catch.
8680 * inferiors.c (remove_process): Free syscalls_to_catch.
8681 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
8682 syscall_return stops.
8683 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
8684 * server.c (handle_general_set): Handle QCatchSyscalls.
8685 (handle_query): Report support for QCatchSyscalls.
8686 * target.h (struct target_ops): Add supports_catch_syscall.
8687 (target_supports_catch_syscall): New macro.
8688 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
8689 (struct lwp_info): Add syscall_state.
8690 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
8691 Maintain syscall_state and syscalls_to_catch across exec.
8692 (get_syscall_trapinfo): New function, proxy to the_low_target.
8693 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
8694 (linux_low_filter_event): Toggle syscall_state entry/return for
8695 syscall traps, and set it ignored for all others.
8696 (gdb_catching_syscalls_p): New function.
8697 (gdb_catch_this_syscall_p): New function.
8698 (linux_wait_1): Handle SYSCALL_SIGTRAP.
8699 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
8700 (linux_supports_catch_syscall): New function.
8701 (linux_target_ops): Install it.
8702 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
8703 (the_low_target): Install it.
8705 2016-01-12 Mike Frysinger <vapier@gentoo.org>
8707 * acinclude.m4: Include new ../warning.m4 file.
8708 * configure: Regenerated.
8709 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
8711 2016-01-12 Mike Frysinger <vapier@gentoo.org>
8713 * ax.c (is_goto_target): Mark static.
8714 * linux-low.c (register_addr): Likewise.
8715 (linux_fetch_registers, linux_store_registers): Likewise.
8716 * mem-break.c (any_persistent_commands): Fix old prototype.
8717 (add_commands_to_breakpoint): Mark static.
8718 * regcache.c (find_register_by_name): Delete unused func.
8719 * remote-utils.c (hex_or_minus_one): Mark static.
8720 * server.c (monitor_show_help): Mark static.
8721 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
8722 handle_v_requests): Likewise.
8724 2016-01-12 Pedro Alves <palves@redhat.com>
8726 Remove use of the registered trademark symbol throughout.
8728 2016-01-08 Yao Qi <yao.qi@linaro.org>
8730 * remote-utils.c (getpkt): If c is '\003', call target hook
8733 2016-01-06 Yao Qi <yao.qi@linaro.org>
8735 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
8736 linux-aarch32-low.c.
8737 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8738 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
8739 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8740 (thumb2_breakpoint): Declare.
8741 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
8742 linux-aarch32-low.h.
8743 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8744 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
8745 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8747 2016-01-01 Joel Brobecker <brobecker@adacore.com>
8749 * gdbreplay.c (gdbreplay_version): Change copyright year in
8751 * server.c (gdbserver_version): Likewise.
8753 2015-12-28 Patrick Palka <patrick@parcs.ath.cx>
8755 * server.c (crc32_table): Delete.
8756 (crc32): Use libiberty's xcrc32 function.
8758 2015-12-22 Joel Brobecker <brobecker@adacore.com>
8760 * lynx-low.c (lynx_delete_thread_callback): New function.
8761 (lynx_mourn): Properly delete our process and all of its
8762 threads. Remove call to clear_inferiors.
8764 2015-12-22 Joel Brobecker <brobecker@adacore.com>
8766 * target.c (thread_search_callback): Add check that
8767 the thread_stopped target callback is not NULL before
8770 2015-12-21 Yao Qi <yao.qi@linaro.org>
8772 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
8775 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8777 * server.c (handle_query): Call target_supports_software_single_step.
8779 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8781 * linux-low.c (single_step): New function.
8782 (linux_resume_one_lwp_throw): Call single_step.
8783 (start_step_over): Likewise.
8785 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8787 * Makefile.in (SFILES): Append arch/arm-linux.c,
8788 arch/arm-get-next-pcs.c.
8789 (arm-linux.o): New rule.
8790 (arm-get-next-pcs.o): New rule.
8791 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
8793 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
8794 to linux-aarch32-low.c.
8795 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8796 (arm_breakpoint_len, thumb_breakpoint): Likewise.
8797 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
8798 (thumb2_breakpoint_len): Likewise.
8799 (arm_is_thumb_mode): Make non-static.
8800 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
8801 from linux-aarch32-low.c.
8802 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8803 (arm_breakpoint_len, thumb_breakpoint): Likewise.
8804 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
8805 (thumb2_breakpoint_len): Likewise.
8806 (arm_is_thumb_mode): New declaration.
8807 * linux-arm-low.c: Include arch/arm-linux.h
8808 aarch/arm-get-next-pcs.h, sys/syscall.h.
8809 (get_next_pcs_ops): New struct.
8810 (get_next_pcs_addr_bits_remove): New function.
8811 (get_next_pcs_is_thumb): New function.
8812 (get_next_pcs_read_memory_unsigned_integer): Likewise.
8813 (arm_sigreturn_next_pc): Likewise.
8814 (get_next_pcs_syscall_next_pc): Likewise.
8815 (arm_gdbserver_get_next_pcs): Likewise.
8816 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
8818 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
8819 * server.h: Include gdb_vecs.h.
8821 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8823 * Makefile.in (SFILES): Append common/common-regcache.c.
8824 (OBS): Append common-regcache.o.
8825 (common-regcache.o): New rule.
8826 * regcache.c (init_register_cache): Initialize cache to
8828 (regcache_raw_read_unsigned): New function.
8829 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
8830 register_status enum.
8832 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8834 * linux-aarch64-low.c (the_low_targets): Rename
8835 breakpoint_reinsert_addr to get_next_pcs.
8836 * linux-arm-low.c (the_low_targets): Likewise.
8837 * linux-bfin-low.c (the_low_targets): Likewise.
8838 * linux-cris-low.c (the_low_targets): Likewise.
8839 * linux-crisv32-low.c (the_low_targets): Likewise.
8840 * linux-low.c (can_software_single_step): Likewise.
8841 (install_software_single_step_breakpoints): New function.
8842 (start_step_over): Use install_software_single_step_breakpoints.
8843 * linux-low.h: New CORE_ADDR vector.
8844 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
8846 * linux-mips-low.c (the_low_targets): Likewise.
8847 * linux-nios2-low.c (the_low_targets): Likewise.
8848 * linux-sparc-low.c (the_low_targets): Likewise.
8850 2015-12-17 Pedro Alves <palves@redhat.com>
8852 * linux-low.c (linux_kill_one_lwp): Remove references to
8854 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
8856 (linux_init_signals): Delete.
8857 (initialize_low): Adjust.
8858 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
8860 2015-12-16 Pedro Alves <palves@redhat.com>
8862 * configure.ac (compiler warning flags): When testing a
8863 -Wno-foo option, check whether -Wfoo works instead.
8864 * configure: Regenerate.
8866 2015-12-11 Don Breazeal <donb@codesourcery.com>
8868 * server.c (process_serial_event): Don't exit from gdbserver
8869 in remote mode if there are still active inferiors.
8871 2015-12-11 Yao Qi <yao.qi@linaro.org>
8873 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
8874 arm_breakpoint_at if the process is 32-bit.
8876 2015-12-11 Yao Qi <yao.qi@linaro.org>
8878 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
8881 2015-12-07 Yao Qi <yao.qi@linaro.org>
8883 * configure.srv: Append arm.o to srv_tgtobj for
8884 aarch64*-*-linux* target.
8885 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
8886 from linux-arm-low.c.
8887 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8888 (arm_breakpoint_len, thumb_breakpoint): Likewise.
8889 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
8890 (thumb2_breakpoint_len): Likewise.
8891 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
8892 (arm_breakpoint_kinds): Likewise.
8893 (arm_breakpoint_kind_from_pc): Likewise.
8894 (arm_sw_breakpoint_from_kind): Likewise.
8895 (arm_breakpoint_kind_from_current_state): Likewise.
8896 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
8897 (arm_sw_breakpoint_from_kind): Declare.
8898 (arm_breakpoint_kind_from_current_state): Declare.
8899 (arm_breakpoint_at): Declare.
8900 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
8901 arm_sw_breakpoint_from_kind if process is 32-bit.
8902 (aarch64_breakpoint_kind_from_pc): New function.
8903 (aarch64_breakpoint_kind_from_current_state): New function.
8904 (the_low_target): Initialize fields breakpoint_kind_from_pc
8905 and breakpoint_kind_from_current_state.
8906 * linux-arm-low.c (arm_breakpoint_kinds): Move to
8907 linux-aarch32-low.c.
8908 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
8909 (arm_breakpoint, arm_breakpoint_len): Likewise.
8910 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
8911 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8912 (arm_is_thumb_mode): Likewise.
8913 (arm_breakpoint_at): Likewise.
8914 (arm_breakpoint_kind_from_pc): Likewise.
8915 (arm_sw_breakpoint_from_kind): Likewise.
8916 (arm_breakpoint_kind_from_current_state): Likewise.
8919 2015-08-04 Yao Qi <yao.qi@linaro.org>
8921 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
8922 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
8923 * server.c (extended_protocol): Remove "static".
8924 * server.h (extended_protocol): Declare it.
8926 2015-12-04 Josh Stone <jistone@redhat.com>
8928 * target.h (struct target_ops) <arch_setup>: Rename to ...
8929 (struct target_ops) <post_create_inferior>: ... this.
8930 (target_arch_setup): Rename to ...
8931 (target_post_create_inferior): ... this, calling post_create_inferior.
8932 * server.c (start_inferior): Update target_arch_setup calls to
8933 target_post_create_inferior.
8934 * linux-low.c (linux_low_ptrace_options): Forward declare.
8935 (linux_arch_setup): Update its comment for general use.
8936 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
8937 (struct linux_target_ops): Use linux_post_create_inferior.
8938 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
8939 to post_create_inferior.
8940 * nto-low.c (struct nto_target_ops): Likewise.
8941 * spu-low.c (struct spu_target_ops): Likewise.
8942 * win32-low.c (struct win32_target_ops): Likewise.
8944 2015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
8946 * linux-arm-low.c: Remove duplicate arch/arm.h include.
8948 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
8950 * linux-arm-low.c (arm_reinsert_addr): Remove function.
8951 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
8952 * linux-cris-low.c (cris_reinsert_addr> Remove function.
8953 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
8954 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
8955 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
8956 * linux-mips-low.c (mips_reinsert_addr): Remove function.
8957 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
8958 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
8959 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
8960 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
8961 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
8963 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
8965 * linux-low.c (linux_look_up_symbols): Don't call
8966 linux_supports_traceclone.
8967 * linux-low.h (thread_db_init): Remove use_events argument.
8968 * thread-db.c (thread_db_use_event): Remove global variable.
8969 (struct thread_db) <td_thr_event_enable_p>: Remove field.
8970 (struct thread_db) <td_create_bp>: Remove field.
8971 (thread_db_create_event): Remove function.
8972 (thread_db_enable_reporting): Likewise.
8973 (find_one_thread): Don't check for thread_db_use_events.
8974 (attach_thread): Likewise.
8975 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
8976 (try_thread_db_load_1): Don't check for thread_db_use_events.
8977 (thread_db_init): Remove use_events argument and thread events
8979 (remove_thread_event_breakpoints): Remove function.
8980 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
8982 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
8984 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
8986 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8987 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
8988 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8989 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
8990 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
8992 * linux-crisv32-low.c (cris_supports_hardware_single_step):
8994 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8995 * linux-low.c (can_hardware_single_step): Use
8996 supports_hardware_single_step.
8997 (can_software_single_step): New function.
8998 (start_step_over): Call can_software_single_step.
8999 (linux_supports_hardware_single_step): New function.
9000 (struct target_ops) <supports_software_single_step>: Initialize.
9001 * linux-low.h (struct linux_target_ops)
9002 <supports_hardware_single_step>: Initialize.
9003 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
9004 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9005 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
9006 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
9007 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
9008 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9009 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
9010 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9011 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
9012 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
9014 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
9015 (struct linux_target_ops) <tile_supports_hardware_single_step>:
9017 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
9018 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9019 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
9021 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9022 * target.h (struct target_ops): <supports_software_single_step>:
9024 (target_supports_software_single_step): New macro.
9026 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9028 * linux-low.c (linux_wait_1): Fix pc advance condition.
9029 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
9030 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
9032 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9034 * linux-arm-low.c (arm_is_thumb_mode): New function.
9035 (arm_breakpoint_at): Use arm_is_thumb_mode.
9036 (arm_breakpoint_kind_from_current_state): New function.
9037 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
9039 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
9040 (linux_breakpoint_kind_from_current_state): New function.
9041 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
9042 * linux-low.h (struct linux_target_ops)
9043 <breakpoint_kind_from_current_state>: New field.
9044 * target.h (struct target_ops): Likewise.
9045 (target_breakpoint_kind_from_current_state): New macro.
9047 2015-11-30 Pedro Alves <palves@redhat.com>
9049 * linux-low.c (linux_resume): Wake up the event loop before
9052 2015-11-30 Pedro Alves <palves@redhat.com>
9054 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
9056 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
9058 * target.c (struct thread_search): New structure.
9059 (thread_search_callback): New function.
9060 (prev_general_thread): New global.
9061 (prepare_to_access_memory, done_accessing_memory): New functions.
9062 * target.h (prepare_to_access_memory, done_accessing_memory):
9063 Replace macros with function declarations.
9065 2015-11-30 Pedro Alves <palves@redhat.com>
9068 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
9069 report TARGET_WAITKIND_NO_RESUMED.
9070 * remote-utils.c (prepare_resume_reply): Handle
9071 TARGET_WAITKIND_NO_RESUMED.
9072 * server.c (report_no_resumed): New global.
9073 (handle_query) <qSupported>: Handle "no-resumed+". Report
9074 "no-resumed+" support.
9075 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
9076 return error if the client doesn't support no-resumed events.
9077 (push_stop_notification): New function.
9078 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
9079 events if the client supports them.
9081 2015-11-30 Pedro Alves <palves@redhat.com>
9083 * linux-low.c (thread_still_has_status_pending_p): Don't check
9085 (lwp_resumed): New function.
9086 (status_pending_p_callback): Return early if the LWP is not
9087 supposed to be resumed.
9089 2015-11-30 Pedro Alves <palves@redhat.com>
9091 * linux-low.c (handle_extended_wait): Assert that the LWP's
9092 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
9093 thread create events, leave the new child's status pending.
9094 (linux_low_filter_event): If GDB wants to hear about thread exit
9095 events, leave the LWP marked dead and don't delete it.
9096 (linux_wait_for_event_filtered): Don't check for thread exit.
9097 (filter_exit_event): New function.
9098 (linux_wait_1): Use it, when returning an exit event.
9099 (linux_resume_one_lwp_throw): Assert that the LWP's
9100 waitstatus is TARGET_WAITKIND_IGNORE.
9101 * remote-utils.c (prepare_resume_reply): Handle
9102 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
9103 * server.c (report_thread_events): New global.
9104 (handle_general_set): Handle QThreadEvents.
9105 (handle_query) <qSupported>: Handle and report QThreadEvents+;
9106 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
9107 TARGET_WAITKIND_THREAD_EXITED.
9108 * server.h (report_thread_events): Declare.
9110 2015-11-30 Pedro Alves <palves@redhat.com>
9112 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
9113 the thread's last_resume_kind was resume_stop.
9115 2015-11-30 Pedro Alves <palves@redhat.com>
9117 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
9120 2015-11-30 Pedro Alves <palves@redhat.com>
9122 * server.c (handle_v_requests): Handle vCtrlC.
9124 2015-11-30 Pedro Alves <palves@redhat.com>
9126 * gdbthread.h (find_any_thread_of_pid): Declare.
9127 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
9129 * server.c (handle_query): If current_thread is NULL, look for
9130 another thread of the selected process.
9132 2015-11-26 Daniel Colascione <dancol@dancol.org>
9133 Simon Marchi <simon.marchi@ericsson.com>
9135 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
9136 * server.c (handle_qxfer_threads_worker): Refactor to include thread
9138 * target.h (struct target_ops) <thread_name>: New field.
9139 (target_thread_name): New macro.
9141 2015-11-23 Joel Brobecker <brobecker@adacore.com>
9143 * regcache.h (regcache_invalidate_pid): Add declaration.
9144 * regcache.c (regcache_invalidate_pid): New function, extracted
9145 from regcache_invalidate.
9146 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
9147 Add trivial documentation comment.
9148 * lynx-low.c: Use regcache_invalidate_pid instead of
9149 regcache_invalidate.
9151 2015-11-23 Joel Brobecker <brobecker@adacore.com>
9153 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
9154 and Elf64_auxv_t if the target is Android.
9156 2015-11-22 Doug Evans <xdje42@gmail.com>
9158 * target.h: #include <sys/types.h>.
9160 2015-11-19 Pedro Alves <palves@redhat.com>
9162 * linux-low.c (linux_process_qsupported): Change prototype.
9164 * linux-low.h (struct linux_target_ops) <process_qsupported>:
9166 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
9167 and adjust to loop over all features.
9168 * server.c (handle_query) <qSupported>: Adjust to call
9169 target_process_qsupported once, passing it a vector of unprocessed
9171 * target.h (struct target_ops) <process_qsupported>: Change
9173 (target_process_qsupported): Adjust.
9175 2015-11-19 Pedro Alves <palves@redhat.com>
9177 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
9179 * configure: Regenerate.
9181 2015-11-19 Pedro Alves <palves@redhat.com>
9183 * configure: Regenerate.
9185 2015-11-19 Yao Qi <yao.qi@linaro.org>
9187 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
9190 2015-11-19 Yao Qi <yao.qi@linaro.org>
9192 * linux-aarch64-low.c (enum aarch64_operand_type): New.
9193 (struct aarch64_operand): Move enum out.
9195 2015-11-19 Yao Qi <yao.qi@linaro.org>
9197 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
9198 struct user_fpsimd_state *.
9199 (aarch64_store_fpregset): Likewise.
9201 2015-11-19 Yao Qi <yao.qi@linaro.org>
9203 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
9204 struct user_pt_regs *.
9205 (aarch64_store_gregset): Likewise.
9207 2015-11-18 Pedro Alves <palves@redhat.com>
9209 * Makefile.in (all_object_files): Add $IPA_OBJS.
9211 2015-11-17 Pedro Alves <palves@redhat.com>
9213 * win32-low.c (win32_resume): Use gdb_signal_from_host,
9214 GDB_SIGNAL_0 and gdb_signal_to_string.
9216 2015-11-17 Pedro Alves <palves@redhat.com>
9218 * win32-low.c (handle_output_debug_string): Remove parameter.
9219 (win32_kill): Remove our_status local and adjust call to
9220 handle_output_debug_string.
9221 (get_child_debug_event): Adjust call to
9222 handle_output_debug_string.
9224 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9226 * linux-mips-low.c (mips_fill_gregset): Add cast.
9227 (mips_store_gregset): Likewise.
9228 (mips_fill_fpregset): Likewise.
9229 (mips_store_fpregset): Likewise.
9231 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9233 * linux-mips-low.c (mips_add_watchpoint): Rename private to
9236 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9238 * linux-mips-low.c (mips_linux_new_thread): Change type of
9239 watch_type to enum target_hw_bp_type.
9241 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9243 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
9244 Change return type to arm_hwbp_type.
9246 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9248 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
9249 (arm_store_gregset): Likewise.
9250 * linux-arm-low.c (arm_get_hwcap): Likewise.
9251 (arm_read_description): Likewise.
9253 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9255 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
9257 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9259 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
9260 (ppc_fill_vsxregset): Likewise.
9261 (ppc_store_vsxregset): Likewise.
9262 (ppc_fill_vrregset): Likewise.
9263 (ppc_store_vrregset): Likewise.
9264 (ppc_fill_evrregset): Likewise.
9265 (ppc_store_evrregset): Likewise.
9267 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9269 * linux-ppc-low.c (ppc_usrregs_info): Remove
9270 forward-declaration.
9271 (ppc_arch_setup): Move lower in file.
9273 2015-10-30 Simon Marchi <simon.marchi@ericsson.com>
9275 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
9276 (ps_pdwrite): Likewise.
9278 2015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
9280 * linux-arm-low.c (arm_new_thread): Move pointer dereference
9281 to after assert checks.
9283 2015-10-29 Simon Marchi <simon.marchi@ericsson.com>
9285 * proc-service.c (ps_pdread): Add/adjust casts.
9286 (ps_pdwrite): Add/adjust casts.
9288 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9290 * server.c (handle_search_memory_1): Cast return value of
9293 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9295 * server.c (write_qxfer_response): Change type of data to
9298 2015-10-29 Pedro Alves <palves@redhat.com>
9300 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
9302 2015-10-29 Pedro Alves <palves@redhat.com>
9304 * tracepoint.c (clear_installed_tracepoints): Add casts.
9306 2015-10-29 Pedro Alves <palves@redhat.com>
9308 * server.c (handle_v_cont, process_serial_event): Add enum
9309 gdb_signal casts to signal parsing code.
9311 2015-10-29 Pedro Alves <palves@redhat.com>
9313 * linux-low.h (NULL_REGSET): Define.
9314 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9315 * linux-arm-low.c (arm_regsets): Likewise.
9316 * linux-crisv32-low.c (cris_regsets): Likewise.
9317 * linux-m68k-low.c (m68k_regsets): Likewise.
9318 * linux-mips-low.c (mips_regsets): Likewise.
9319 * linux-nios2-low.c (nios2_regsets): Likewise.
9320 * linux-ppc-low.c (ppc_regsets): Likewise.
9321 * linux-s390-low.c (s390_regsets): Likewise.
9322 * linux-sh-low.c (sh_regsets): Likewise.
9323 * linux-sparc-low.c (sparc_regsets): Likewise.
9324 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9325 * linux-tile-low.c (tile_regsets): Likewise.
9326 * linux-x86-low.c (x86_regsets): Likewise.
9327 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9329 2015-10-29 Pedro Alves <palves@redhat.com>
9331 * linux-low.h (NULL_REGSET): Define.
9332 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9333 * linux-arm-low.c (arm_regsets): Likewise.
9334 * linux-crisv32-low.c (cris_regsets): Likewise.
9335 * linux-m68k-low.c (m68k_regsets): Likewise.
9336 * linux-mips-low.c (mips_regsets): Likewise.
9337 * linux-nios2-low.c (nios2_regsets): Likewise.
9338 * linux-ppc-low.c (ppc_regsets): Likewise.
9339 * linux-s390-low.c (s390_regsets): Likewise.
9340 * linux-sh-low.c (sh_regsets): Likewise.
9341 * linux-sparc-low.c (sparc_regsets): Likewise.
9342 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9343 * linux-tile-low.c (tile_regsets): Likewise.
9344 * linux-x86-low.c (x86_regsets): Likewise.
9345 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9347 2015-10-26 Doug Evans <dje@google.com>
9349 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
9351 2015-10-26 Doug Evans <dje@google.com>
9353 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
9355 2015-10-26 Doug Evans <dje@google.com>
9357 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
9359 (attach_thread, find_new_threads_callback): Ditto.
9361 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9363 * mem-break.h (set_breakpoint_data): Remove.
9365 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9367 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
9368 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9369 (initialize_low): Remove set_breakpoint_data call.
9370 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
9371 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
9372 (initialize_low): Remove set_breakpoint_data call.
9373 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
9374 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9375 (initialize_low): Remove set_breakpoint_data call.
9377 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9379 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
9380 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
9381 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
9382 * target.h (target_breakpoint_kind_from_pc): New macro.
9384 2015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
9386 * linux-low.c (default_breakpoint_kind_from_pc): New function.
9387 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
9388 the default breakpoint kind.
9390 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9392 * linux-arm-low.c (arm_supports_z_point_type): Add software
9395 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9397 * linux-arm-low.c: Refactor breakpoint definitions.
9398 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
9399 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
9401 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9403 * Makefile.in: Add arm.c/o.
9404 * configure.srv: Likewise.
9405 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
9406 (arm_breakpoint_kind_from_pc): New function.
9407 (arm_sw_breakpoint_from_kind): Return proper kind.
9408 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
9410 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9412 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
9414 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
9415 (struct raw_breakpoint) <size>: Remove.
9416 (struct raw_breakpoint) <kind>: Add.
9417 (bp_size): New function.
9418 (bp_opcode): Likewise.
9419 (find_raw_breakpoint_at): Adjust for kind.
9420 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
9421 (remove_memory_breakpoint): Adjust for kind call bp_size.
9422 (set_raw_breakpoint_at): Adjust for kind.
9423 (set_breakpoint): Likewise.
9424 (set_breakpoint_at): Call breakpoint_kind_from_pc.
9425 (delete_raw_breakpoint): Adjust for kind.
9426 (delete_breakpoint): Likewise.
9427 (find_gdb_breakpoint): Likewise.
9428 (set_gdb_breakpoint_1): Likewise.
9429 (set_gdb_breakpoint): Likewise.
9430 (delete_gdb_breakpoint_1): Likewise.
9431 (delete_gdb_breakpoint): Likewise.
9432 (uninsert_raw_breakpoint): Likewise.
9433 (reinsert_raw_breakpoint): Likewise.
9434 (set_breakpoint_data): Remove.
9435 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
9436 (check_mem_read): Adjust for kind call bp_size.
9437 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
9438 (clone_one_breakpoint): Adjust for kind.
9439 * mem-break.h (set_gdb_breakpoint): Likewise.
9440 (delete_gdb_breakpoint): Likewise.
9441 * server.c (process_serial_event): Likewise.
9443 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9445 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
9446 (struct linux_target_ops) <breakpoint>: Remove.
9447 (struct linux_target_ops) <breakpoint_len>: Remove.
9448 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9449 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9450 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
9451 (arm_sw_breakpoint_from_kind): New function.
9452 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
9453 (struct linux_target_ops) <breakpoint>: Remove.
9454 (struct linux_target_ops) <breakpoint_len>: Remove.
9455 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9456 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9457 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
9458 (struct linux_target_ops) <breakpoint>: Remove.
9459 (struct linux_target_ops) <breakpoint_len>: Remove.
9460 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9461 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9462 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
9463 (struct linux_target_ops) <breakpoint>: Remove.
9464 (struct linux_target_ops) <breakpoint_len>: Remove.
9465 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9466 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9467 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
9468 and sw_breakpoint_from_kind to increment the pc.
9469 (linux_breakpoint_kind_from_pc): New function.
9470 (linux_sw_breakpoint_from_kind): New function.
9471 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
9472 (initialize_low): Call breakpoint_kind_from_pc and
9473 sw_breakpoint_from_kind to replace breakpoint_data/len.
9474 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
9476 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
9477 * linux-m32r-low.c (m32r_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-m68k-low.c (m68k_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-mips-low.c (mips_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-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
9493 (struct linux_target_ops) <breakpoint>: Remove.
9494 (struct linux_target_ops) <breakpoint_len>: Remove.
9495 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9496 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9497 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
9498 (struct linux_target_ops) <breakpoint>: Remove.
9499 (struct linux_target_ops) <breakpoint_len>: Remove.
9500 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9501 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9502 * linux-s390-low.c (s390_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-sh-low.c (sh_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-sparc-low.c (sparc_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-tic6x-low.c (tic6x_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-tile-low.c (tile_sw_breakpoint_from_kind): New function.
9523 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
9524 (struct linux_target_ops) <breakpoint>: Remove.
9525 (struct linux_target_ops) <breakpoint_len>: Remove.
9526 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9527 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9528 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
9529 (struct linux_target_ops) <breakpoint>: Remove.
9530 (struct linux_target_ops) <breakpoint_len>: Remove.
9531 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9532 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9534 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9536 * linux-cris-low.c (cris_get_pc): Remove void arg.
9538 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9540 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
9543 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9545 * inferiors.c (thread_pid_matches_callback): New function.
9546 (find_thread_process): New function.
9547 (remove_thread): Reset current_thread.
9548 (remove_process): Assert threads have been removed first.
9550 2015-10-15 Yao Qi <yao.qi@linaro.org>
9552 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
9554 (aarch64_remove_point): Likewise.
9555 * regcache.c (regcache_register_size): New function.
9557 2015-10-12 Yao Qi <yao.qi@linaro.org>
9559 * linux-aarch64-low.c: Update all callers as emit_load_store
9560 is renamed to aarch64_emit_load_store.
9562 2015-10-12 Yao Qi <yao.qi@linaro.org>
9564 * linux-aarch64-low.c: Update all callers of function renaming
9565 from emit_insn to aarch64_emit_insn.
9567 2015-10-12 Yao Qi <yao.qi@linaro.org>
9569 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
9570 arch/aarch64-insn.h.
9571 (struct aarch64_memory_operand): Likewise.
9573 (emit_insn): Move to arch/aarch64-insn.c.
9574 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
9575 (emit_load_store): Move to arch/aarch64-insn.c.
9576 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
9577 (can_encode_int32): Remove.
9579 2015-10-12 Yao Qi <yao.qi@linaro.org>
9581 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
9582 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
9583 (aarch64_relocate_instruction): Likewise.
9584 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
9585 (struct aarch64_insn_visitor): Likewise.
9587 2015-10-12 Yao Qi <yao.qi@linaro.org>
9589 * linux-aarch64-low.c (struct aarch64_insn_data): New.
9590 (struct aarch64_insn_visitor): New.
9591 (struct aarch64_insn_relocation_data): New.
9592 (aarch64_ftrace_insn_reloc_b): New function.
9593 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
9594 (aarch64_ftrace_insn_reloc_cb): Likewise.
9595 (aarch64_ftrace_insn_reloc_tb): Likewise.
9596 (aarch64_ftrace_insn_reloc_adr): Likewise.
9597 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
9598 (aarch64_ftrace_insn_reloc_others): Likewise.
9600 (aarch64_relocate_instruction): Use visitor.
9602 2015-10-12 Yao Qi <yao.qi@linaro.org>
9604 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
9605 int. Add argument buf.
9606 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
9607 aarch64_relocate_instruction.
9609 2015-10-12 Yao Qi <yao.qi@linaro.org>
9611 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
9612 argument insn. Remove local variable insn. Don't call
9614 (aarch64_install_fast_tracepoint_jump_pad): Call
9617 2015-09-30 Yao Qi <yao.qi@linaro.org>
9619 * linux-aarch64-low.c (emit_movk): Shorten a long line.
9620 (emit_load_store_pair): Likewise.
9622 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9624 * dll.c (match_dll): Add cast(s).
9625 (unloaded_dll): Likewise.
9626 * linux-low.c (second_thread_of_pid_p): Likewise.
9627 (delete_lwp_callback): Likewise.
9628 (count_events_callback): Likewise.
9629 (select_event_lwp_callback): Likewise.
9630 (linux_set_resume_request): Likewise.
9631 * server.c (accumulate_file_name_length): Likewise.
9632 (emit_dll_description): Likewise.
9633 (handle_qxfer_threads_worker): Likewise.
9634 (visit_actioned_threads): Likewise.
9635 * thread-db.c (any_thread_of): Likewise.
9636 * tracepoint.c (same_process_p): Likewise.
9637 (match_blocktype): Likewise.
9638 (build_traceframe_info_xml): Likewise.
9640 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9642 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
9644 (gdb_unparse_agent_expr): Likewise.
9645 * hostio.c (require_data): Likewise.
9646 (handle_pread): Likewise.
9647 * linux-low.c (disable_regset): Likewise.
9648 (fetch_register): Likewise.
9649 (store_register): Likewise.
9650 (get_dynamic): Likewise.
9651 (linux_qxfer_libraries_svr4): Likewise.
9652 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
9653 (set_fast_tracepoint_jump): Likewise.
9654 (uninsert_fast_tracepoint_jumps_at): Likewise.
9655 (reinsert_fast_tracepoint_jumps_at): Likewise.
9656 (validate_inserted_breakpoint): Likewise.
9657 (clone_agent_expr): Likewise.
9658 * regcache.c (init_register_cache): Likewise.
9659 * remote-utils.c (putpkt_binary_1): Likewise.
9660 (decode_M_packet): Likewise.
9661 (decode_X_packet): Likewise.
9662 (look_up_one_symbol): Likewise.
9663 (relocate_instruction): Likewise.
9664 (monitor_output): Likewise.
9665 * server.c (handle_search_memory): Likewise.
9666 (handle_qxfer_exec_file): Likewise.
9667 (handle_qxfer_libraries): Likewise.
9668 (handle_qxfer): Likewise.
9669 (handle_query): Likewise.
9670 (handle_v_cont): Likewise.
9671 (handle_v_run): Likewise.
9672 (captured_main): Likewise.
9673 * target.c (write_inferior_memory): Likewise.
9674 * thread-db.c (try_thread_db_load_from_dir): Likewise.
9675 * tracepoint.c (init_trace_buffer): Likewise.
9676 (add_tracepoint_action): Likewise.
9677 (add_traceframe): Likewise.
9678 (add_traceframe_block): Likewise.
9679 (cmd_qtdpsrc): Likewise.
9680 (cmd_qtdv): Likewise.
9681 (cmd_qtstatus): Likewise.
9682 (response_source): Likewise.
9683 (response_tsv): Likewise.
9684 (cmd_qtnotes): Likewise.
9685 (gdb_collect): Likewise.
9686 (initialize_tracepoint): Likewise.
9688 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9690 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
9691 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
9692 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
9694 (enum aarch64_condition_codes): New enum.
9695 (w0): New static global.
9698 (struct aarch64_memory_operand) <type>: New
9699 MEMORY_OPERAND_POSTINDEX type.
9700 (postindex_memory_operand): New helper function.
9701 (emit_ret): New function.
9702 (emit_load_store_pair): New function, factored out of emit_stp
9703 with support for MEMORY_OPERAND_POSTINDEX.
9704 (emit_stp): Rewrite using emit_load_store_pair.
9705 (emit_ldp): New function.
9706 (emit_load_store): Likewise.
9707 (emit_ldr): Mention post-index instruction in comment.
9708 (emit_ldrh): New function.
9709 (emit_ldrb): New function.
9710 (emit_ldrsw): Mention post-index instruction in comment.
9711 (emit_str): Likewise.
9712 (emit_subs): New function.
9713 (emit_cmp): Likewise.
9714 (emit_and): Likewise.
9715 (emit_orr): Likewise.
9716 (emit_orn): Likewise.
9717 (emit_eor): Likewise.
9718 (emit_mvn): Likewise.
9719 (emit_lslv): Likewise.
9720 (emit_lsrv): Likewise.
9721 (emit_asrv): Likewise.
9722 (emit_mul): Likewise.
9723 (emit_sbfm): Likewise.
9724 (emit_sbfx): Likewise.
9725 (emit_ubfm): Likewise.
9726 (emit_ubfx): Likewise.
9727 (emit_csinc): Likewise.
9728 (emit_cset): Likewise.
9729 (emit_nop): Likewise.
9730 (emit_ops_insns): New helper function.
9731 (emit_pop): Likewise.
9732 (emit_push): Likewise.
9733 (aarch64_emit_prologue): New function.
9734 (aarch64_emit_epilogue): Likewise.
9735 (aarch64_emit_add): Likewise.
9736 (aarch64_emit_sub): Likewise.
9737 (aarch64_emit_mul): Likewise.
9738 (aarch64_emit_lsh): Likewise.
9739 (aarch64_emit_rsh_signed): Likewise.
9740 (aarch64_emit_rsh_unsigned): Likewise.
9741 (aarch64_emit_ext): Likewise.
9742 (aarch64_emit_log_not): Likewise.
9743 (aarch64_emit_bit_and): Likewise.
9744 (aarch64_emit_bit_or): Likewise.
9745 (aarch64_emit_bit_xor): Likewise.
9746 (aarch64_emit_bit_not): Likewise.
9747 (aarch64_emit_equal): Likewise.
9748 (aarch64_emit_less_signed): Likewise.
9749 (aarch64_emit_less_unsigned): Likewise.
9750 (aarch64_emit_ref): Likewise.
9751 (aarch64_emit_if_goto): Likewise.
9752 (aarch64_emit_goto): Likewise.
9753 (aarch64_write_goto_address): Likewise.
9754 (aarch64_emit_const): Likewise.
9755 (aarch64_emit_call): Likewise.
9756 (aarch64_emit_reg): Likewise.
9757 (aarch64_emit_pop): Likewise.
9758 (aarch64_emit_stack_flush): Likewise.
9759 (aarch64_emit_zero_ext): Likewise.
9760 (aarch64_emit_swap): Likewise.
9761 (aarch64_emit_stack_adjust): Likewise.
9762 (aarch64_emit_int_call_1): Likewise.
9763 (aarch64_emit_void_call_2): Likewise.
9764 (aarch64_emit_eq_goto): Likewise.
9765 (aarch64_emit_ne_goto): Likewise.
9766 (aarch64_emit_lt_goto): Likewise.
9767 (aarch64_emit_le_goto): Likewise.
9768 (aarch64_emit_gt_goto): Likewise.
9769 (aarch64_emit_ge_got): Likewise.
9770 (aarch64_emit_ops_impl): New static global variable.
9771 (aarch64_emit_ops): New target function, return
9772 &aarch64_emit_ops_impl.
9773 (struct linux_target_ops): Install it.
9775 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9777 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
9778 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
9780 * linux-aarch64-ipa.c: New file.
9781 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
9783 (aarch64_get_thread_area): New target method.
9784 (extract_signed_bitfield): New helper function.
9785 (aarch64_decode_ldr_literal): New function.
9786 (enum aarch64_opcodes): New enum.
9787 (struct aarch64_register): New struct.
9788 (struct aarch64_operand): New struct.
9789 (x0): New static global.
9798 (aarch64_register): New helper function.
9799 (register_operand): Likewise.
9800 (immediate_operand): Likewise.
9801 (struct aarch64_memory_operand): New struct.
9802 (offset_memory_operand): New helper function.
9803 (preindex_memory_operand): Likewise.
9804 (enum aarch64_system_control_registers): New enum.
9805 (ENCODE): New macro.
9806 (emit_insn): New helper function.
9807 (emit_b): New function.
9808 (emit_bcond): Likewise.
9809 (emit_cb): Likewise.
9810 (emit_tb): Likewise.
9811 (emit_blr): Likewise.
9812 (emit_stp): Likewise.
9813 (emit_ldp_q_offset): Likewise.
9814 (emit_stp_q_offset): Likewise.
9815 (emit_load_store): Likewise.
9816 (emit_ldr): Likewise.
9817 (emit_ldrsw): Likewise.
9818 (emit_str): Likewise.
9819 (emit_ldaxr): Likewise.
9820 (emit_stxr): Likewise.
9821 (emit_stlr): Likewise.
9822 (emit_data_processing_reg): Likewise.
9823 (emit_data_processing): Likewise.
9824 (emit_add): Likewise.
9825 (emit_sub): Likewise.
9826 (emit_mov): Likewise.
9827 (emit_movk): Likewise.
9828 (emit_mov_addr): Likewise.
9829 (emit_mrs): Likewise.
9830 (emit_msr): Likewise.
9831 (emit_sevl): Likewise.
9832 (emit_wfe): Likewise.
9833 (append_insns): Likewise.
9834 (can_encode_int32_in): New helper function.
9835 (aarch64_relocate_instruction): New function.
9836 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
9837 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
9838 (struct linux_target_ops): Install aarch64_get_thread_area,
9839 aarch64_install_fast_tracepoint_jump_pad and
9840 aarch64_get_min_fast_tracepoint_insn_len.
9842 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9844 * Makefile.in (aarch64-insn.o): New rule.
9845 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
9847 2015-09-21 Yao Qi <yao.qi@linaro.org>
9849 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
9851 2015-09-21 Yao Qi <yao.qi@linaro.org>
9853 * tracepoint.c (max_jump_pad_size): Remove.
9855 2015-09-18 Yao Qi <yao.qi@linaro.org>
9857 * linux-aarch64-low.c: Don't include sys/uio.h.
9858 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
9860 2015-09-16 Wei-cheng Wang <cole945@gmail.com>
9862 * tracepoint.c (eval_result_type): Change prototype.
9863 (condition_true_at_tracepoint): Fix argument to compiled_cond.
9865 2015-09-15 Pedro Alves <palves@redhat.com>
9867 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
9868 Check whether to report exec events instead of checking whether
9869 multiprocess is enabled.
9871 2015-09-15 Pedro Alves <palves@redhat.com>
9874 * remote-utils.c (prepare_resume_reply): Merge
9875 TARGET_WAITKIND_VFORK_DONE switch case with the
9876 TARGET_WAITKIND_FORKED case.
9878 2015-09-15 Yao Qi <yao.qi@linaro.org>
9880 * server.c (handle_query): Check string comparison using
9881 "else if" instead of "if".
9883 2015-09-15 Yao Qi <yao.qi@linaro.org>
9885 * server.c (vCont_supported): New global variable.
9886 (handle_query): Set vCont_supported to 1 if "vContSupported+"
9887 matches. Append ";vContSupported+" to own_buf.
9888 (handle_v_requests): Append ";s;S" to own_buf if target supports
9889 hardware single step or vCont_supported is false.
9890 (capture_main): Set vCont_supported to zero.
9892 2015-09-15 Yao Qi <yao.qi@linaro.org>
9894 * linux-low.c (linux_supports_conditional_breakpoints): Rename
9896 (linux_supports_hardware_single_step): ... New function.
9897 (linux_target_ops): Update.
9898 * lynx-low.c (lynx_target_ops): Set field
9899 supports_hardware_single_step to target_can_do_hardware_single_step.
9900 * nto-low.c (nto_target_ops): Likewise.
9901 * spu-low.c (spu_target_ops): Likewise.
9902 * win32-low.c (win32_target_ops): Likewise.
9903 * target.c (target_can_do_hardware_single_step): New function.
9904 * target.h (struct target_ops) <supports_conditional_breakpoints>:
9905 Remove. <supports_hardware_single_step>: New field.
9906 (target_supports_conditional_breakpoints): Remove.
9907 (target_supports_hardware_single_step): New macro.
9908 (target_can_do_hardware_single_step): Declare.
9909 * server.c (handle_query): Use target_supports_hardware_single_step
9910 instead of target_supports_conditional_breakpoints.
9912 2015-09-15 Yao Qi <yao.qi@linaro.org>
9914 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
9916 (struct linux_target_ops the_low_target): Install
9917 aarch64_linux_siginfo_fixup.
9919 2015-09-11 Don Breazeal <donb@codesourcery.com>
9920 Luis Machado <lgustavo@codesourcery.com>
9922 * linux-low.c (linux_mourn): Static declaration.
9923 (linux_arch_setup): Move in front of
9924 handle_extended_wait.
9925 (linux_arch_setup_thread): New function.
9926 (handle_extended_wait): Handle exec events. Call
9927 linux_arch_setup_thread. Make event_lwp argument a
9928 pointer-to-a-pointer.
9929 (check_zombie_leaders): Do not check stopped threads.
9930 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
9931 (linux_low_filter_event): Add lwp and thread for exec'ing
9932 non-leader thread if leader thread has been deleted.
9933 Refactor code into linux_arch_setup_thread and call it.
9934 Pass child lwp pointer by reference to handle_extended_wait.
9935 (linux_wait_for_event_filtered): Update comment.
9936 (linux_wait_1): Prevent clobbering exec event status.
9937 (linux_supports_exec_events): New function.
9938 (linux_target_ops) <supports_exec_events>: Initialize new member.
9939 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
9941 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
9942 * server.c (report_exec_events): New global variable.
9943 (handle_query): Handle qSupported query for exec-events feature.
9944 (captured_main): Initialize report_exec_events.
9945 * server.h (report_exec_events): Declare new global variable.
9946 * target.h (struct target_ops) <supports_exec_events>: New
9948 (target_supports_exec_events): New macro.
9949 * win32-low.c (win32_target_ops) <supports_exec_events>:
9950 Initialize new member.
9952 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
9954 * linux-low.c (linux_low_enable_btrace): Remove.
9955 (linux_target_ops): Replace linux_low_enable_btrace with
9956 linux_enable_btrace.
9958 2015-09-03 Yao Qi <yao.qi@linaro.org>
9960 * linux-aarch64-low.c (aarch64_insert_point): Call
9961 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
9964 2015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9966 * linux-low.c (check_stopped_by_breakpoint): Use
9967 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
9969 2015-08-27 Pedro Alves <palves@redhat.com>
9971 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
9973 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
9975 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
9976 the XNEW-family equivalent.
9977 (compile_bytecodes): Likewise.
9978 * dll.c (loaded_dll): Likewise.
9979 * event-loop.c (append_callback_event): Likewise.
9980 (create_file_handler): Likewise.
9981 (create_file_event): Likewise.
9982 * hostio.c (handle_open): Likewise.
9983 * inferiors.c (add_thread): Likewise.
9984 (add_process): Likewise.
9985 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
9986 * linux-arm-low.c (arm_new_process): Likewise.
9987 (arm_new_thread): Likewise.
9988 * linux-low.c (add_to_pid_list): Likewise.
9989 (linux_add_process): Likewise.
9990 (handle_extended_wait): Likewise.
9991 (add_lwp): Likewise.
9992 (enqueue_one_deferred_signal): Likewise.
9993 (enqueue_pending_signal): Likewise.
9994 (linux_resume_one_lwp_throw): Likewise.
9995 (linux_resume_one_thread): Likewise.
9996 (linux_read_memory): Likewise.
9997 (linux_write_memory): Likewise.
9998 * linux-mips-low.c (mips_linux_new_process): Likewise.
9999 (mips_linux_new_thread): Likewise.
10000 (mips_add_watchpoint): Likewise.
10001 * linux-x86-low.c (initialize_low_arch): Likewise.
10002 * lynx-low.c (lynx_add_process): Likewise.
10003 * mem-break.c (set_raw_breakpoint_at): Likewise.
10004 (set_breakpoint): Likewise.
10005 (add_condition_to_breakpoint): Likewise.
10006 (add_commands_to_breakpoint): Likewise.
10007 (clone_agent_expr): Likewise.
10008 (clone_one_breakpoint): Likewise.
10009 * regcache.c (new_register_cache): Likewise.
10010 * remote-utils.c (look_up_one_symbol): Likewise.
10011 * server.c (queue_stop_reply): Likewise.
10012 (start_inferior): Likewise.
10013 (queue_stop_reply_callback): Likewise.
10014 (handle_target_event): Likewise.
10015 * spu-low.c (fetch_ppc_memory): Likewise.
10016 (store_ppc_memory): Likewise.
10017 * target.c (set_target_ops): Likewise.
10018 * thread-db.c (thread_db_load_search): Likewise.
10019 (try_thread_db_load_1): Likewise.
10020 * tracepoint.c (add_tracepoint): Likewise.
10021 (add_tracepoint_action): Likewise.
10022 (create_trace_state_variable): Likewise.
10023 (cmd_qtdpsrc): Likewise.
10024 (cmd_qtro): Likewise.
10025 (add_while_stepping_state): Likewise.
10026 * win32-low.c (child_add_thread): Likewise.
10027 (get_image_name): Likewise.
10029 2015-08-25 Yao Qi <yao.qi@linaro.org>
10031 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
10033 2015-08-25 Yao Qi <yao.qi@linaro.org>
10035 * Makefile.in (aarch64-linux.o): New rule.
10036 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
10038 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
10039 (aarch64_init_debug_reg_state): Make it extern.
10040 (aarch64_linux_prepare_to_resume): Remove.
10042 2015-08-25 Yao Qi <yao.qi@linaro.org>
10044 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
10045 lwp_arch_private_info and ptid_of_lwp.
10047 2015-08-25 Yao Qi <yao.qi@linaro.org>
10049 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
10050 Find proc_info by find_process_pid. All callers updated.
10052 2015-08-25 Yao Qi <yao.qi@linaro.org>
10054 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
10056 (debug_reg_change_callback): Remove.
10057 (aarch64_notify_debug_reg_change): Remove.
10059 2015-08-25 Yao Qi <yao.qi@linaro.org>
10061 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
10062 Call current_lwp_ptid.
10064 2015-08-25 Yao Qi <yao.qi@linaro.org>
10066 * linux-aarch64-low.c (debug_reg_change_callback): Use
10069 2015-08-25 Yao Qi <yao.qi@linaro.org>
10071 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
10073 2015-08-25 Yao Qi <yao.qi@linaro.org>
10075 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
10077 2015-08-25 Yao Qi <yao.qi@linaro.org>
10079 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
10082 2015-08-25 Yao Qi <yao.qi@linaro.org>
10084 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
10086 (debug_reg_change_callback): Remove argument entry and add argument
10087 lwp. Remove local variable thread. Don't print thread id in the
10088 debugging output. Don't check whether pid of thread equals to pid.
10089 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
10090 iterate_over_lwps instead find_inferior.
10092 2015-08-24 Pedro Alves <palves@redhat.com>
10094 * inferiors.c (get_first_process): New function.
10095 * inferiors.h (get_first_process): New declaration.
10096 * remote-utils.c (read_ptid): Default to the first process in the
10097 list, instead of to the current thread's process.
10099 2015-08-24 Pedro Alves <palves@redhat.com>
10101 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
10102 * event-loop.c: Likewise.
10103 * remote-utils.c: Likewise.
10104 * tracepoint.c: Likewise.
10106 2015-08-24 Pedro Alves <palves@redhat.com>
10108 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
10111 2015-08-21 Pedro Alves <palves@redhat.com>
10113 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
10114 instead of literal 1.
10116 2015-08-21 Pedro Alves <palves@redhat.com>
10118 * tdesc.c (default_description): Explicitly zero-initialize.
10120 2015-08-21 Pedro Alves <palves@redhat.com>
10123 * inferiors.c (remove_thread): Discard any pending stop reply for
10125 * server.c (remove_all_on_match_pid): Rename to ...
10126 (remove_all_on_match_ptid): ... this. Work with a filter ptid
10128 (discard_queued_stop_replies): Change parameter to a ptid. Now
10130 (handle_v_kill, kill_inferior_callback, captured_main)
10131 (process_serial_event): Adjust.
10132 * server.h (discard_queued_stop_replies): Declare.
10134 2015-08-21 Pedro Alves <palves@redhat.com>
10136 * linux-low.c (wait_for_sigstop): Always switch to no thread
10137 selected if the previously current thread dies.
10138 * lynx-low.c (lynx_request_interrupt): Use the first thread's
10139 process instead of the current thread's.
10140 * remote-utils.c (input_interrupt): Don't check if there's no
10142 * server.c (gdb_read_memory, gdb_write_memory): If setting the
10143 current thread to the general thread fails, error out.
10144 (handle_qxfer_auxv, handle_qxfer_libraries)
10145 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
10146 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
10147 (handle_query): Check if there's a thread selected instead of
10148 checking whether there's any thread in the thread list.
10149 (handle_qxfer_threads, handle_qxfer_btrace)
10150 (handle_qxfer_btrace_conf): Don't error out early if there's no
10151 thread in the thread list.
10152 (handle_v_cont, myresume): Don't set the current thread to the
10154 (process_serial_event) <Hg handling>: Also set thread_id if the
10155 previous general thread is still alive.
10156 (process_serial_event) <g/G handling>: If setting the current
10157 thread to the general thread fails, error out.
10158 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
10159 thread's lwp instead of the current thread's.
10160 * target.c (set_desired_thread): If the desired thread was not
10161 found, leave the current thread pointing to NULL. Return an int
10162 (boolean) indicating success.
10163 * target.h (set_desired_thread): Change return type to int.
10165 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
10167 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
10168 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
10170 (ps_get_thread_area): New function.
10172 2015-08-19 Gary Benson <gbenson@redhat.com>
10174 * hostio.c (handle_pread): Do not attempt to read more data
10175 than hostio_reply_with_data can fit in a packet.
10177 2015-08-18 Joel Brobecker <brobecker@adacore.com>
10179 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
10181 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
10183 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
10185 2015-08-06 Pedro Alves <palves@redhat.com>
10187 * tracepoint.c (expr_eval_result): Now an int.
10189 2015-08-06 Pedro Alves <palves@redhat.com>
10191 * gdbthread.h (struct regcache): Forward declare.
10192 (struct thread_info) <regcache_data>: Now a struct regcache
10194 * inferiors.c (inferior_regcache_data)
10195 (set_inferior_regcache_data): Now work with struct regcache
10197 * inferiors.h (struct regcache): Forward declare.
10198 (inferior_regcache_data, set_inferior_regcache_data): Now work
10199 with struct regcache pointers.
10200 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
10201 (free_register_cache_thread): Remove struct regcache pointer
10204 2015-08-06 Pedro Alves <palves@redhat.com>
10206 * server.c (captured_main): On error, print the exception message
10207 to stderr, and if run_once is set, throw a quit.
10209 2015-08-06 Pedro Alves <palves@redhat.com>
10211 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
10212 the current thread.
10214 2015-08-06 Pedro Alves <palves@redhat.com>
10216 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
10217 reading beyond the passed in buffer length.
10219 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
10221 * tracepoint.c (symbol_list) <required>: Remove.
10223 2015-08-06 Pedro Alves <palves@redhat.com>
10225 * linux-low.c (handle_extended_wait): Set the fork child's suspend
10226 count if stopping and suspending threads.
10227 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
10228 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
10229 (linux_detach): Complete an ongoing step-over.
10230 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
10232 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
10233 (linux_wait_1): If passing a signal to the inferior after
10234 finishing a step-over, unsuspend and re-resume all lwps. If we
10235 see a single-step event but the thread should be continuing, don't
10236 pass the trap to gdb.
10237 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
10238 internal_error instead of gdb_assert.
10239 (enqueue_pending_signal): New function.
10240 (check_ptrace_stopped_lwp_gone): Add debug output.
10241 (start_step_over): Use internal_error instead of gdb_assert.
10242 (complete_ongoing_step_over): New function.
10243 (linux_resume_one_thread): Don't resume a suspended thread.
10244 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
10247 2015-08-06 Pedro Alves <palves@redhat.com>
10249 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
10250 (linux_thread_alive): Use lwp_is_marked_dead.
10251 (extended_event_reported): Delete.
10252 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
10253 instead of extended_event_reported.
10254 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
10256 (lwp_is_marked_dead): New function.
10257 (lwp_running): Use lwp_is_marked_dead.
10258 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
10261 2015-08-06 Pedro Alves <palves@redhat.com>
10263 * linux-low.c (linux_wait_1): Move fork event output out of the
10264 !report_to_gdb check. Pass event_child->waitstatus to
10265 target_waitstatus_to_string instead of ourstatus.
10267 2015-08-04 Yao Qi <yao.qi@linaro.org>
10269 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
10270 if current_thread is 32 bit.
10272 2015-08-04 Yao Qi <yao.qi@linaro.org>
10274 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
10275 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
10276 * server.c (extended_protocol): Remove "static".
10277 * server.h (extended_protocol): Declare it.
10279 2015-08-04 Yao Qi <yao.qi@linaro.org>
10281 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
10282 both aarch64 and aarch32.
10283 (aarch64_set_pc): Likewise.
10285 2015-08-04 Yao Qi <yao.qi@linaro.org>
10287 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
10288 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
10289 arm-with-neon.xml to srv_xmlfiles.
10290 * linux-aarch64-low.c: Include linux-aarch32-low.h.
10291 (is_64bit_tdesc): New function.
10292 (aarch64_linux_read_description): New function.
10293 (aarch64_arch_setup): Call aarch64_linux_read_description.
10294 (regs_info): Rename to regs_info_aarch64.
10295 (aarch64_regs_info): Return right regs_info.
10296 (initialize_low_arch): Call initialize_low_arch_aarch32.
10298 2015-08-04 Yao Qi <yao.qi@linaro.org>
10300 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
10301 * linux-aarch32-low.c: New file.
10302 * linux-aarch32-low.h: New file.
10303 * linux-arm-low.c (arm_fill_gregset): Move it to
10304 linux-aarch32-low.c.
10305 (arm_store_gregset): Likewise.
10306 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
10307 (arm_store_vfpregset): Call arm_store_vfpregset_num.
10308 (arm_arch_setup): Check if PTRACE_GETREGSET works.
10309 (regs_info): Rename to regs_info_arm.
10310 (arm_regs_info): Return regs_info_aarch32 if
10311 have_ptrace_getregset is 1 and target description is
10312 arm_with_neon or arm_with_vfpv3.
10313 (initialize_low_arch): Don't call init_registers_arm_with_neon.
10314 Call initialize_low_arch_aarch32 instead.
10316 2015-08-04 Yao Qi <yao.qi@linaro.org>
10318 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
10319 * linux-low.c: ... here.
10320 * linux-low.h (have_ptrace_getregset): Declare it.
10322 2015-08-04 Pedro Alves <palves@redhat.com>
10324 * thread-db.c (struct thread_db): Use new typedefs.
10325 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
10327 (disable_thread_event_reporting): Cast result of dlsym to
10328 destination function pointer type.
10329 (thread_db_mourn): Use td_ta_delete_ftype.
10331 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
10333 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
10335 (CDX_BREAKPOINT): Define for R2.
10336 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
10337 (the_low_target): Add comments.
10339 2015-07-30 Yao Qi <yao.qi@linaro.org>
10341 * linux-arm-low.c (arm_hwcap): Remove it.
10342 (arm_read_description): New local variable arm_hwcap. Don't
10343 set arm_hwcap to zero.
10345 2015-07-30 Yao Qi <yao.qi@linaro.org>
10347 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
10348 Use regcache->tdesc instead.
10349 (arm_store_wmmxregset): Likewise.
10350 (arm_fill_vfpregset): Likewise.
10351 (arm_store_vfpregset): Likewise.
10353 2015-07-30 Yao Qi <yao.qi@linaro.org>
10355 * linux-arm-low.c: Include arch/arm.h.
10356 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
10357 (arm_store_gregset): Likewise.
10359 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
10361 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
10362 ptrace's 4th parameter.
10364 2015-07-27 Yao Qi <yao.qi@linaro.org>
10366 * configure.srv (case aarch64*-*-linux*): Don't set
10369 2015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
10371 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
10373 * linux-arm-low.c: Likewise.
10374 * linux-cris-low.c: Likewise.
10375 * linux-crisv32-low.c: Likewise.
10376 * linux-low.c: Likewise.
10377 * linux-m68k-low.c: Likewise.
10378 * linux-mips-low.c: Likewise.
10379 * linux-nios2-low.c: Likewise.
10380 * linux-s390-low.c: Likewise.
10381 * linux-sparc-low.c: Likewise.
10382 * linux-tic6x-low.c: Likewise.
10383 * linux-tile-low.c: Likewise.
10384 * linux-x86-low.c: Likewise.
10386 2015-07-24 Pedro Alves <palves@redhat.com>
10388 * config.in: Regenerate.
10389 * configure: Regenerate.
10391 2015-07-24 Pedro Alves <palves@redhat.com>
10393 * acinclude.m4: Include ../ptrace.m4.
10394 * configure.ac: Call GDB_AC_PTRACE.
10395 * config.in, configure: Regenerate.
10397 2015-07-24 Yao Qi <yao.qi@linaro.org>
10399 * linux-low.c (linux_create_inferior): Remove setting to
10400 proc->priv->new_inferior.
10401 (linux_attach): Likewise.
10402 (linux_low_filter_event): Likewise.
10403 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
10405 2015-07-24 Yao Qi <yao.qi@linaro.org>
10407 * linux-low.c (linux_arch_setup): New function.
10408 (linux_low_filter_event): If proc->tdesc is NULL and
10409 proc->attached is true, call the_low_target.arch_setup.
10410 Otherwise, keep status pending, and return.
10411 (linux_resume_one_lwp_throw): Don't call get_pc if
10412 thread->while_stepping isn't NULL. Don't call
10413 get_thread_regcache if proc->tdesc is NULL.
10414 (need_step_over_p): Return 0 if proc->tdesc is NULL.
10415 (linux_target_ops): Install arch_setup.
10416 * server.c (start_inferior): Call the_target->arch_setup.
10417 * target.h (struct target_ops) <arch_setup>: New field.
10418 (target_arch_setup): New marco.
10419 * lynx-low.c (lynx_target_ops): Update.
10420 * nto-low.c (nto_target_ops): Update.
10421 * spu-low.c (spu_target_ops): Update.
10422 * win32-low.c (win32_target_ops): Update.
10424 2015-07-24 Yao Qi <yao.qi@linaro.org>
10426 * linux-low.c (linux_add_process): Don't set
10427 proc->priv->new_inferior.
10428 (linux_create_inferior): Set proc->priv->new_inferior to 1.
10429 (linux_attach): Likewise.
10431 2015-07-24 Yao Qi <yao.qi@linaro.org>
10433 * server.c (start_inferior): Code refactor.
10435 2015-07-24 Yao Qi <yao.qi@linaro.org>
10437 * server.c (process_serial_event): Set general_thread.
10439 2015-07-21 Yao Qi <yao.qi@linaro.org>
10441 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
10442 aarch64_linux_get_debug_reg_capacity.
10444 2015-07-17 Yao Qi <yao.qi@linaro.org>
10446 * Makefile.in (aarch64-linux-hw-point.o): New rule.
10447 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
10448 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
10449 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
10450 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
10451 (AARCH64_HWP_ALIGNMENT): Likewise.
10452 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
10453 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
10454 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
10455 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
10456 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
10457 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
10458 (struct aarch64_debug_reg_state): Likewise.
10459 (struct arch_lwp_info): Likewise.
10460 (aarch64_align_watchpoint): Likewise.
10461 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
10462 (aarch64_watchpoint_length): Likewise.
10463 (aarch64_point_encode_ctrl_reg): Likewise
10464 (aarch64_point_is_aligned): Likewise.
10465 (aarch64_align_watchpoint): Likewise.
10466 (aarch64_linux_set_debug_regs):
10467 (aarch64_dr_state_insert_one_point): Likewise.
10468 (aarch64_dr_state_remove_one_point): Likewise.
10469 (aarch64_handle_breakpoint): Likewise.
10470 (aarch64_handle_aligned_watchpoint): Likewise.
10471 (aarch64_handle_unaligned_watchpoint): Likewise.
10472 (aarch64_handle_watchpoint): Likewise.
10474 2015-07-17 Yao Qi <yao.qi@linaro.org>
10476 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
10477 and don't aarch64_get_debug_reg_state. All callers update.
10478 (aarch64_handle_aligned_watchpoint): Likewise.
10479 (aarch64_handle_unaligned_watchpoint): Likewise.
10480 (aarch64_handle_watchpoint): Likewise.
10481 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
10482 (aarch64_remove_point): Likewise.
10484 2015-07-17 Yao Qi <yao.qi@linaro.org>
10486 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
10488 (aarch64_handle_unaligned_watchpoint): Likewise.
10490 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10492 Revert the previous 3 commits:
10493 Move gdb_regex* to common/
10494 Move linux_find_memory_regions_full & co.
10495 gdbserver build-id attribute generator
10497 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10498 Jan Kratochvil <jan.kratochvil@redhat.com>
10500 gdbserver build-id attribute generator.
10501 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
10502 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
10503 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
10505 (get_dynamic): Use find_pdhr to traverse program headers.
10506 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
10507 (compare_mapping_entry_range, struct find_memory_region_callback_data)
10508 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
10509 (get_hex_build_id): New.
10510 (linux_qxfer_libraries_svr4): Add optional build-id attribute
10511 to reply XML document.
10513 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10514 Jan Kratochvil <jan.kratochvil@redhat.com>
10516 * target.c: Include target/target-utils.h and fcntl.h.
10517 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
10518 (target_fileio_read_stralloc): New functions.
10520 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10522 * Makefile.in (OBS): Add gdb_regex.o.
10523 (gdb_regex.o): New.
10524 * config.in: Rebuilt.
10525 * configure: Rebuilt.
10527 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10528 Jan Kratochvil <jan.kratochvil@redhat.com>
10530 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
10531 * Makefile.in (OBS): Add target-utils.o.
10532 (linux-maps.o, target-utils.o): New.
10533 * configure.srv (srv_linux_obj): Add linux-maps.o.
10535 2015-07-15 Pierre Langlois <pierre.langlois@arm.com>
10537 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
10538 function, return 1.
10539 (the_low_target): Install it.
10541 2015-07-14 Pedro Alves <palves@redhat.com>
10543 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
10544 Instead, ignore ECHILD, and throw an error for other errnos.
10546 2015-07-10 Pedro Alves <palves@redhat.com>
10548 * event-loop.c (struct callback_event) <data>: Change type to
10549 gdb_client_data instance instead of gdb_client_data pointer.
10550 (append_callback_event): Adjust.
10552 2015-07-10 Pierre Langlois <pierre.langlois@arm.com>
10554 * linux-aarch64-low.c: Add comments for each linux_target_ops
10555 method. Remove comments already covered in target_ops and
10556 linux_target_ops definitions.
10557 (the_low_target): Add comments for each unimplemented method.
10559 2015-07-09 Yao Qi <yao.qi@linaro.org>
10561 * linux-aarch64-low.c (aarch64_regmap): Remove.
10562 (aarch64_usrregs_info): Remove.
10563 (regs_info): Set field usrregs to NULL.
10565 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
10567 * linux-low.c: Include "rsp-low.h"
10568 (linux_low_encode_pt_config, linux_low_encode_raw): New.
10569 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
10570 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
10571 (handle_btrace_enable_pt): New.
10572 (handle_btrace_general_set): Support "pt".
10573 (handle_btrace_conf_general_set): Support "pt:size".
10575 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10577 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
10580 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10582 * linux-aarch64-low.c: Remove comment about endianness.
10583 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
10584 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
10587 2015-06-24 Gary Benson <gbenson@redhat.com>
10589 * linux-i386-ipa.c (stdint.h): Do not include.
10590 * lynx-i386-low.c (stdint.h): Likewise.
10591 * lynx-ppc-low.c (stdint.h): Likewise.
10592 * mem-break.c (stdint.h): Likewise.
10593 * thread-db.c (stdint.h): Likewise.
10594 * tracepoint.c (stdint.h): Likewise.
10595 * win32-low.c (stdint.h): Likewise.
10597 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
10599 * server.c (write_qxfer_response): Update call to
10600 remote_escape_output.
10602 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
10603 Jan Kratochvil <jan.kratochvil@redhat.com>
10605 Merge multiple hex conversions.
10606 * gdbreplay.c (tohex): Rename to 'fromhex'.
10607 (logchar): Use fromhex.
10609 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10611 * server.c (handle_qxfer_libraries): Set `version' attribute for
10614 2015-06-10 Gary Benson <gbenson@redhat.com>
10616 * target.h (struct target_ops) <multifs_open>: New field.
10617 <multifs_unlink>: Likewise.
10618 <multifs_readlink>: Likewise.
10619 * linux-low.c (nat/linux-namespaces.h): New include.
10620 (linux_target_ops): Initialize the_target->multifs_open,
10621 the_target->multifs_unlink and the_target->multifs_readlink.
10622 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
10623 * hostio.c (hostio_fs_pid): New static variable.
10624 (hostio_handle_new_gdb_connection): New function.
10625 (handle_setfs): Likewise.
10626 (handle_open): Use the_target->multifs_open as appropriate.
10627 (handle_unlink): Use the_target->multifs_unlink as appropriate.
10628 (handle_readlink): Use the_target->multifs_readlink as
10630 (handle_vFile): Handle vFile:setfs packets.
10631 * server.c (handle_query): Call hostio_handle_new_gdb_connection
10632 after target_handle_new_gdb_connection.
10634 2015-06-10 Gary Benson <gbenson@redhat.com>
10636 * configure.ac (AC_CHECK_FUNCS): Add setns.
10637 * config.in: Regenerate.
10638 * configure: Likewise.
10639 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
10640 (linux-namespaces.o): New rule.
10641 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
10643 2015-06-09 Gary Benson <gbenson@redhat.com>
10645 * hostio.c (handle_open): Process mode argument with
10646 fileio_to_host_mode.
10648 2015-06-01 Yao Qi <yao.qi@linaro.org>
10650 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
10651 * linux-x86-low.c: Likewise.
10653 2015-05-28 Don Breazeal <donb@codesourcery.com>
10655 * linux-low.c (handle_extended_wait): Initialize
10656 thread_info.last_resume_kind for new fork children.
10658 2015-05-15 Pedro Alves <palves@redhat.com>
10660 * target.h (target_handle_new_gdb_connection): Rewrite using if
10661 wrapped in do/while.
10663 2015-05-14 Joel Brobecker <brobecker@adacore.com>
10665 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
10666 * configure, config.in: Regenerate.
10667 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
10670 2015-05-12 Don Breazeal <donb@codesourcery.com>
10672 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
10673 PTRACE_EVENT_VFORK_DONE.
10674 (linux_low_ptrace_options, extended_event_reported): Add vfork
10676 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
10677 and "vforkdone" for RSP 'T' Stop Reply Packet.
10678 * server.h (report_vfork_events): Declare
10681 2015-05-12 Don Breazeal <donb@codesourcery.com>
10683 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
10684 (the_low_target) <new_fork>: Initialize new member.
10685 * linux-arm-low.c (arm_new_fork): New function.
10686 (the_low_target) <new_fork>: Initialize new member.
10687 * linux-low.c (handle_extended_wait): Call new target function
10689 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
10690 * linux-mips-low.c (mips_add_watchpoint): New function
10691 extracted from mips_insert_point.
10692 (the_low_target) <new_fork>: Initialize new member.
10693 (mips_linux_new_fork): New function.
10694 (mips_insert_point): Call mips_add_watchpoint.
10695 * linux-x86-low.c (x86_linux_new_fork): New function.
10696 (the_low_target) <new_fork>: Initialize new member.
10698 2015-05-12 Don Breazeal <donb@codesourcery.com>
10700 * linux-low.c (handle_extended_wait): Implement return value,
10701 rename argument 'event_child' to 'event_lwp', handle
10702 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
10703 (linux_low_ptrace_options): New function.
10704 (linux_low_filter_event): Call linux_low_ptrace_options,
10705 use different argument fo linux_enable_event_reporting,
10706 use return value from handle_extended_wait.
10707 (extended_event_reported): New function.
10708 (linux_wait_1): Call extended_event_reported and set
10709 status to report fork events.
10710 (linux_write_memory): Add pid to debug message.
10711 (reset_lwp_ptrace_options_callback): New function.
10712 (linux_handle_new_gdb_connection): New function.
10713 (linux_target_ops): Initialize new structure member.
10714 * linux-low.h (struct lwp_info) <waitstatus>: New member.
10715 * lynx-low.c: Initialize new structure member.
10716 * remote-utils.c (prepare_resume_reply): Implement stop reason
10717 "fork" for "T" stop message.
10718 * server.c (handle_query): Call handle_new_gdb_connection.
10719 * server.h (report_fork_events): Declare global flag.
10720 * target.h (struct target_ops) <handle_new_gdb_connection>:
10722 (target_handle_new_gdb_connection): New macro.
10723 * win32-low.c: Initialize new structure member.
10725 2015-05-12 Don Breazeal <donb@codesourcery.com>
10727 * mem-break.c (APPEND_TO_LIST): Define macro.
10728 (clone_agent_expr): New function.
10729 (clone_one_breakpoint): New function.
10730 (clone_all_breakpoints): New function.
10731 * mem-break.h: Declare new functions.
10733 2015-05-12 Don Breazeal <donb@codesourcery.com>
10735 * linux-low.c (linux_supports_fork_events): New function.
10736 (linux_supports_vfork_events): New function.
10737 (linux_target_ops): Initialize new structure members.
10738 (initialize_low): Call linux_check_ptrace_features.
10739 * lynx-low.c (lynx_target_ops): Initialize new structure
10741 * server.c (report_fork_events, report_vfork_events):
10743 (handle_query): Add new features to qSupported packet and
10745 (captured_main): Initialize new global variables.
10746 * target.h (struct target_ops) <supports_fork_events>:
10748 <supports_vfork_events>: New member.
10749 (target_supports_fork_events): New macro.
10750 (target_supports_vfork_events): New macro.
10751 * win32-low.c (win32_target_ops): Initialize new structure
10754 2015-05-12 Gary Benson <gbenson@redhat.com>
10756 * server.c (handle_qxfer_exec_file): Use current process
10759 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
10761 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
10762 Remove HAVE_PTRACE_GETREGS conditionals.
10763 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
10764 instead of PTRACE_GETREGS and PTRACE_SETREGS.
10766 2015-05-08 Yao Qi <yao.qi@linaro.org>
10768 * linux-low.c (linux_supports_conditional_breakpoints): New
10770 (linux_target_ops): Install new target method.
10771 * lynx-low.c (lynx_target_ops): Install NULL hook for
10772 supports_conditional_breakpoints.
10773 * nto-low.c (nto_target_ops): Likewise.
10774 * spu-low.c (spu_target_ops): Likewise.
10775 * win32-low.c (win32_target_ops): Likewise.
10776 * server.c (handle_query): Check
10777 target_supports_conditional_breakpoints.
10778 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10780 (target_supports_conditional_breakpoints): New macro.
10782 2015-05-06 Pedro Alves <palves@redhat.com>
10785 * server.c (start_inferior): If the process exits, mourn it.
10787 2015-04-21 Gary Benson <gbenson@redhat.com>
10789 * hostio.c (fileio_open_flags_to_host): Factored out to
10790 fileio_to_host_openflags in common/fileio.c. Single use
10793 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
10795 * linux-xtensa-low.c (xtensa_fill_gregset)
10796 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
10799 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
10801 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
10802 (regs_info): Replace usrregs pointer with NULL.
10804 2015-04-17 Gary Benson <gbenson@redhat.com>
10806 * target.h (struct target_ops) <pid_to_exec_file>: New field.
10807 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
10808 * server.c (handle_qxfer_exec_file): New function.
10809 (qxfer_packets): Add exec-file entry.
10810 (handle_query): Report qXfer:exec-file:read as supported packet.
10812 2015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
10814 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
10816 2015-04-09 Gary Benson <gbenson@redhat.com>
10818 * hostio-errno.c (errno_to_fileio_error): Remove function.
10819 Update caller to use remote_fileio_to_fio_error.
10821 2015-04-09 Yao Qi <yao.qi@linaro.org>
10823 * linux-low.c (linux_insert_point): Call
10824 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
10825 (linux_remove_point): Call remove_memory_breakpoint if type is
10827 * linux-x86-low.c (x86_insert_point): Don't call
10828 insert_memory_breakpoint.
10829 (x86_remove_point): Don't call remove_memory_breakpoint.
10831 2015-04-01 Pedro Alves <palves@redhat.com>
10832 Cleber Rosa <crosa@redhat.com>
10834 * server.c (gdbserver_usage): Reorganize and extend the usage
10837 2015-03-24 Pedro Alves <palves@redhat.com>
10839 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
10840 output. Also dump TRAP_TRACE.
10841 (linux_low_filter_event): In debug output, distinguish a
10842 resume_stop SIGSTOP from a delayed SIGSTOP.
10844 2015-03-24 Gary Benson <gbenson@redhat.com>
10846 * linux-x86-low.c (x86_linux_new_thread): Moved to
10848 (x86_linux_prepare_to_resume): Likewise.
10850 2015-03-24 Gary Benson <gbenson@redhat.com>
10852 * Makefile.in (x86-linux-dregs.o): New rule.
10853 * configure.srv: Add x86-linux-dregs.o to relevant targets.
10854 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
10855 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
10856 (x86_linux_dr_get): Likewise.
10857 (x86_linux_dr_set): Likewise.
10858 (update_debug_registers_callback): Likewise.
10859 (x86_linux_dr_set_addr): Likewise.
10860 (x86_linux_dr_get_addr): Likewise.
10861 (x86_linux_dr_set_control): Likewise.
10862 (x86_linux_dr_get_control): Likewise.
10863 (x86_linux_dr_get_status): Likewise.
10864 (x86_linux_update_debug_registers): Likewise.
10866 2015-03-24 Gary Benson <gbenson@redhat.com>
10868 * linux-x86-low.c (x86_linux_update_debug_registers):
10869 New function, factored out from...
10870 (x86_linux_prepare_to_resume): ...this.
10872 2015-03-24 Gary Benson <gbenson@redhat.com>
10874 * linux-x86-low.c (x86_linux_dr_get): Update comments.
10875 (x86_linux_dr_set): Likewise.
10876 (update_debug_registers_callback): Likewise.
10877 (x86_linux_dr_set_addr): Likewise.
10878 (x86_linux_dr_get_addr): Likewise.
10879 (x86_linux_dr_set_control): Likewise.
10880 (x86_linux_dr_get_control): Likewise.
10881 (x86_linux_dr_get_status): Likewise.
10882 (x86_linux_prepare_to_resume): Likewise.
10884 2015-03-24 Gary Benson <gbenson@redhat.com>
10886 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
10887 Use perror_with_name. Pass string through gettext.
10888 (x86_linux_dr_set): Likewise.
10890 2015-03-24 Gary Benson <gbenson@redhat.com>
10892 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
10893 (x86_linux_dr_set_addr): ...this.
10894 (x86_dr_low_get_addr): Rename to...
10895 (x86_linux_dr_get_addr): ...this.
10896 (x86_dr_low_set_control): Rename to...
10897 (x86_linux_dr_set_control): ...this.
10898 (x86_dr_low_get_control): Rename to...
10899 (x86_linux_dr_get_control): ...this.
10900 (x86_dr_low_get_status): Rename to...
10901 (x86_linux_dr_get_status): ...this.
10902 (x86_dr_low): Update with new function names.
10904 2015-03-24 Gary Benson <gbenson@redhat.com>
10906 * Makefile.in (x86-linux.o): New rule.
10907 * configure.srv: Add x86-linux.o to relevant targets.
10908 * linux-low.c (lwp_set_arch_private_info): New function.
10909 (lwp_arch_private_info): Likewise.
10910 * linux-x86-low.c: Include nat/x86-linux.h.
10911 (arch_lwp_info): Removed structure.
10912 (update_debug_registers_callback):
10913 Use lwp_set_debug_registers_changed.
10914 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
10915 and lwp_set_debug_registers_changed.
10916 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
10918 2015-03-24 Gary Benson <gbenson@redhat.com>
10920 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
10921 * linux-arm-low.c (arm_new_thread): Likewise.
10922 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
10923 * linux-mips-low.c (mips_linux_new_thread): Likewise.
10924 * linux-x86-low.c (x86_linux_new_thread): Likewise.
10925 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
10927 2015-03-24 Gary Benson <gbenson@redhat.com>
10929 * linux-low.c (ptid_of_lwp): New function.
10930 (lwp_is_stopped): Likewise.
10931 (lwp_stop_reason): Likewise.
10932 * linux-x86-low.c (update_debug_registers_callback):
10933 Use lwp_is_stopped.
10934 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
10937 2015-03-24 Gary Benson <gbenson@redhat.com>
10939 * linux-low.h (linux_stop_lwp): Remove declaration.
10941 2015-03-24 Gary Benson <gbenson@redhat.com>
10943 * linux-low.h: Include nat/linux-nat.h.
10944 * linux-low.c (iterate_over_lwps_args): New structure.
10945 (iterate_over_lwps_filter): New function.
10946 (iterate_over_lwps): Likewise.
10947 * linux-x86-low.c (update_debug_registers_callback):
10948 Update signature to what iterate_over_lwps expects.
10949 Remove PID check that iterate_over_lwps now performs.
10950 (x86_dr_low_set_addr): Use iterate_over_lwps.
10951 (x86_dr_low_set_control): Likewise.
10953 2015-03-24 Gary Benson <gbenson@redhat.com>
10955 * linux-x86-low.c (x86_debug_reg_state): New function.
10956 (x86_linux_prepare_to_resume): Use the above.
10958 2015-03-24 Gary Benson <gbenson@redhat.com>
10960 * linux-low.c (current_lwp_ptid): New function.
10961 * linux-x86-low.c: Include nat/linux-nat.h.
10962 (x86_dr_low_get_addr): Use current_lwp_ptid.
10963 (x86_dr_low_get_control): Likewise.
10964 (x86_dr_low_get_status): Likewise.
10966 2015-03-20 Pedro Alves <palves@redhat.com>
10968 * tracepoint.c (cmd_qtstatus): Make "str" const.
10970 2015-03-20 Pedro Alves <palves@redhat.com>
10972 * server.c (handle_general_set): Make "req_str" const.
10974 2015-03-19 Pedro Alves <palves@redhat.com>
10976 * linux-low.c (linux_resume_one_lwp): Rename to ...
10977 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
10978 instead call perror_with_name.
10979 (check_ptrace_stopped_lwp_gone): New function.
10980 (linux_resume_one_lwp): Reimplement as wrapper around
10981 linux_resume_one_lwp_throw that swallows errors if the LWP is
10984 2015-03-19 Pedro Alves <palves@redhat.com>
10986 * linux-low.c (count_events_callback, select_event_lwp_callback):
10987 No longer check whether the thread has resume_stop as last resume
10990 2015-03-19 Pedro Alves <palves@redhat.com>
10992 * linux-low.c (count_events_callback, select_event_lwp_callback):
10993 Use the lwp's status_pending_p field, not the thread's.
10995 2015-03-19 Pedro Alves <palves@redhat.com>
10997 * linux-low.c (select_event_lwp_callback): Update comments to
10998 no longer mention SIGTRAP.
11000 2015-03-18 Gary Benson <gbenson@redhat.com>
11002 * server.c (handle_query): Do not report vFile:fstat as supported.
11004 2015-03-11 Gary Benson <gbenson@redhat.com>
11006 * hostio.c (sys/types.h): New include.
11007 (sys/stat.h): Likewise.
11008 (common-remote-fileio.h): Likewise.
11009 (handle_fstat): New function.
11010 (handle_vFile): Handle vFile:fstat packets.
11012 2015-03-11 Gary Benson <gbenson@redhat.com>
11014 * configure.ac (AC_CHECK_MEMBERS): Add checks for
11015 struct stat.st_blocks and struct stat.st_blksize.
11016 * configure: Regenerate.
11017 * config.in: Likewise.
11018 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
11019 (OBS): Add common-remote-fileio.o.
11020 (common-remote-fileio.o): New rule.
11022 2015-03-09 Pedro Alves <palves@redhat.com>
11024 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
11025 'struct sockaddr' pointer in 'accept' call.
11027 2015-03-09 Pedro Alves <palves@redhat.com>
11030 2015-03-07 Pedro Alves <palves@redhat.com>
11031 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11032 or <winsock2.h> here. Instead include "gdb_socket.h".
11033 (remote_open): Use union gdb_sockaddr_u.
11034 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11035 or <winsock2.h> here. Instead include "gdb_socket.h".
11036 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11037 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11039 (init_named_socket, gdb_agent_helper_thread): Use union
11042 2015-03-07 Pedro Alves <palves@redhat.com>
11044 * configure.ac (build_warnings): Move
11045 -Wdeclaration-after-statement to the C-specific set.
11046 * configure: Regenerate.
11048 2015-03-07 Pedro Alves <palves@redhat.com>
11050 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11051 or <winsock2.h> here. Instead include "gdb_socket.h".
11052 (remote_open): Use union gdb_sockaddr_u.
11053 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11054 or <winsock2.h> here. Instead include "gdb_socket.h".
11055 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11056 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11058 (init_named_socket, gdb_agent_helper_thread): Use union
11061 2015-03-07 Pedro Alves <palves@redhat.com>
11063 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
11066 2015-03-06 Yao Qi <yao.qi@linaro.org>
11068 * linux-aarch64-low.c (aarch64_insert_point): Use
11069 show_debug_regs as a boolean.
11070 (aarch64_remove_point): Likewise.
11072 2015-03-05 Pedro Alves <palves@redhat.com>
11074 * lynx-low.c (lynx_target_ops): Install NULL hooks for
11075 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
11076 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
11077 * nto-low.c (nto_target_ops): Likewise.
11078 * spu-low.c (spu_target_ops): Likewise.
11079 * win32-low.c (win32_target_ops): Likewise.
11081 2015-03-04 Pedro Alves <palves@redhat.com>
11083 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
11084 Decide whether a breakpoint triggered based on the SIGTRAP's
11086 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
11087 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
11088 (linux_low_filter_event): Check for breakpoints before checking
11090 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
11092 (linux_stopped_by_sw_breakpoint)
11093 (linux_supports_stopped_by_sw_breakpoint)
11094 (linux_stopped_by_hw_breakpoint)
11095 (linux_supports_stopped_by_hw_breakpoint): New functions.
11096 (linux_target_ops): Install new target methods.
11098 2015-03-04 Pedro Alves <palves@redhat.com>
11100 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
11101 * server.c (swbreak_feature, hwbreak_feature): New globals.
11102 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
11103 (captured_main): Clear swbreak_feature and hwbreak_feature.
11104 * server.h (swbreak_feature, hwbreak_feature): Declare.
11105 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
11106 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
11107 supports_stopped_by_hw_breakpoint>: New fields.
11108 (target_supports_stopped_by_sw_breakpoint)
11109 (target_stopped_by_sw_breakpoint)
11110 (target_supports_stopped_by_hw_breakpoint)
11111 (target_stopped_by_hw_breakpoint): Declare.
11113 2015-03-04 Pedro Alves <palves@redhat.com>
11115 enum lwp_stop_reason -> enum target_stop_reason
11116 * linux-low.c (check_stopped_by_breakpoint): Adjust.
11117 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
11118 (linux_wait_1, stuck_in_jump_pad_callback)
11119 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
11120 (linux_stopped_by_watchpoint):
11121 * linux-low.h (enum lwp_stop_reason): Delete.
11122 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
11123 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11125 2015-03-04 Yao Qi <yao.qi@linaro.org>
11127 * Makefile.in (SFILES): Add linux-aarch64-low.c.
11129 2015-03-03 Gary Benson <gbenson@redhat.com>
11131 * hostio.c (handle_vFile): Fix prefix lengths.
11133 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
11135 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
11138 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
11140 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
11141 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
11142 (clean): Add "rm -f" for above C files.
11143 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
11144 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
11145 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
11146 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
11147 * linux-s390-low.c (HWCAP_S390_VX): New macro.
11148 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
11149 (init_registers_s390x_vx_linux64)
11150 (init_registers_s390x_tevx_linux64)
11151 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
11152 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
11154 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
11155 (s390_store_vxrs_high): New functions.
11156 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
11158 (s390_arch_setup): Add logic for selecting one of the new target
11159 descriptions. Activate the new vector regsets if applicable.
11160 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
11161 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
11162 and init_registers_s390x_tevx_linux64.
11164 2015-03-01 Pedro Alves <palves@redhat.com>
11166 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
11169 2015-02-27 Pedro Alves <palves@redhat.com>
11171 * linux-x86-low.c (u_debugreg_offset): New function.
11172 (x86_linux_dr_get, x86_linux_dr_set): Use it.
11174 2015-02-27 Pedro Alves <palves@redhat.com>
11176 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
11177 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
11178 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
11179 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
11180 (ps_lsetfpregs, ps_getpid)
11181 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
11182 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
11183 (ps_lsetxregs, ps_plog): Declare.
11185 2015-02-27 Pedro Alves <palves@redhat.com>
11187 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
11188 IP_AGENT_EXPORT_FUNC.
11189 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
11190 IP_AGENT_EXPORT_FUNC.
11191 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
11192 (IP_AGENT_EXPORT): Delete.
11193 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11194 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11195 (gdb_trampoline_buffer_error, collecting, gdb_collect)
11196 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
11197 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
11198 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
11199 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
11200 (traceframe_read_count, traceframe_write_count)
11201 (traceframes_created, trace_state_variables, get_raw_reg)
11202 (get_trace_state_variable_value, set_trace_state_variable_value)
11203 (ust_loaded, helper_thread_id, cmd_buf): Use
11204 IPA_SYM_EXPORTED_NAME.
11205 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
11206 (tracepoints) Use IP_AGENT_EXPORT_VAR.
11207 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
11208 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11209 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
11210 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
11211 EXTERN_C_PUSH/EXTERN_C_POP.
11212 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
11213 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
11214 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11215 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
11216 (traceframe_write_count, traceframe_read_count)
11217 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
11218 (about_to_request_buffer_space, get_trace_state_variable_value)
11219 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
11220 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
11221 EXTERN_C_PUSH/EXTERN_C_POP.
11222 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
11223 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
11224 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
11225 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11226 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11227 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11228 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
11229 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
11231 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
11232 (IP_AGENT_EXPORT_VAR_DECL): Define.
11233 (tracing): Declare.
11234 (gdb_agent_get_raw_reg): Declare.
11236 2015-02-27 Tom Tromey <tromey@redhat.com>
11237 Pedro Alves <palves@redhat.com>
11239 Rename symbols whose names are reserved C++ keywords throughout.
11241 2015-02-27 Pedro Alves <palves@redhat.com>
11243 * Makefile.in (COMPILER): New, get it from autoconf.
11244 (CXX): Get from autoconf instead.
11245 (COMPILE.pre): Use COMPILER.
11246 (CC-LD): Rename to ...
11247 (CC_LD): ... this. Use COMPILER.
11248 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
11249 (CXX_FOR_TARGET): Default to g++ instead of gcc.
11250 * acinclude.m4: Include build-with-cxx.m4.
11251 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
11252 Disable -Werror by default if building in C++ mode.
11253 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
11254 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
11255 the C++ compiler. Save/restore CXXFLAGS too.
11256 * configure: Regenerate.
11258 2015-02-27 Pedro Alves <palves@redhat.com>
11260 * acinclude.m4: Include libiberty.m4.
11261 * configure.ac: Call libiberty_INIT.
11262 * config.in, configure: Regenerate.
11264 2015-02-26 Pedro Alves <palves@redhat.com>
11266 * linux-low.c (linux_wait_1): When incrementing the PC past a
11267 program breakpoint always use the_low_target.breakpoint_len as
11268 increment, rather than the maximum between that and
11269 the_low_target.decr_pc_after_break.
11271 2015-02-23 Pedro Alves <palves@redhat.com>
11273 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
11274 thread was doing a step-over; always adjust the PC if
11275 we stepped over a permanent breakpoint.
11276 (linux_wait_1): If we stepped over breakpoint that was on top of a
11277 permanent breakpoint, manually advance the PC past it.
11279 2015-02-23 Pedro Alves <palves@redhat.com>
11281 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
11283 (x86_fill_gregset, x86_store_gregset): Use it when handling
11286 2015-02-20 Pedro Alves <palves@redhat.com>
11288 * thread-db.c: Include "nat/linux-procfs.h".
11289 (thread_db_init): Skip listing new threads if the kernel supports
11290 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
11292 2015-02-20 Pedro Alves <palves@redhat.com>
11294 * linux-low.c (status_pending_p_callback): Use ptid_match.
11296 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
11298 PR breakpoints/16812
11299 * linux-low.c (wstatus_maybe_breakpoint): Remove.
11300 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
11301 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
11303 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
11305 PR breakpoints/15956
11306 * tracepoint.c (cmd_qtinit): Add check for current_thread.
11308 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11310 * linux-low.c (linux_low_btrace_conf): Print size.
11311 * server.c (handle_btrace_conf_general_set): New.
11312 (hanle_general_set): Call handle_btrace_conf_general_set.
11313 (handle_query): Report Qbtrace-conf:bts:size as supported.
11315 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11317 * linux-low.c (linux_low_enable_btrace): Update parameters.
11318 (linux_low_btrace_conf): New.
11319 (linux_target_ops)<to_btrace_conf>: Initialize.
11320 * server.c (current_btrace_conf): New.
11321 (handle_btrace_enable): Rename to ...
11322 (handle_btrace_enable_bts): ... this. Pass ¤t_btrace_conf
11323 to target_enable_btrace. Update comment. Update users.
11324 (handle_qxfer_btrace_conf): New.
11325 (qxfer_packets): Add btrace-conf entry.
11326 (handle_query): Report qXfer:btrace-conf:read as supported packet.
11327 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
11328 (target_ops)<read_btrace_conf>: New.
11329 (target_enable_btrace): Update parameters.
11330 (target_read_btrace_conf): New.
11332 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11334 * server.c (handle_btrace_general_set): Remove call to
11335 target_supports_btrace.
11336 (supported_btrace_packets): New.
11337 (handle_query): Call supported_btrace_packets.
11338 * target.h: include btrace-common.h.
11339 (btrace_target_info): Removed.
11340 (supports_btrace, target_supports_btrace): Update parameters.
11342 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11344 * Makefile.in (SFILES): Add common/btrace-common.c.
11345 (OBS): Add common/btrace-common.o.
11346 (btrace-common.o): Add build rules.
11347 * linux-low: Include btrace-common.h.
11348 (linux_low_read_btrace): Use struct btrace_data. Call
11349 btrace_data_init and btrace_data_fini.
11351 2015-02-06 Pedro Alves <palves@redhat.com>
11353 * thread-db.c (find_new_threads_callback): Add debug output.
11355 2015-02-04 Pedro Alves <palves@redhat.com>
11357 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
11358 (resume_stopped_resumed_lwps): New function.
11359 (linux_wait_for_event_filtered): Use it.
11361 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11363 * Makefile.in (SFILES): Add linux-personality.c.
11364 (linux-personality.o): New rule.
11365 * configure.srv (srv_linux_obj): Add linux-personality.o to the
11366 list of objects to be built.
11367 * linux-low.c: Include nat/linux-personality.h.
11368 (linux_create_inferior): Remove code to disable address space
11369 randomization (moved to ../nat/linux-personality.c). Create
11370 cleanup to disable address space randomization.
11372 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11374 * Makefile.in (posix-strerror.o): New rule.
11375 (mingw-strerror.o): Likewise.
11376 * configure: Regenerated.
11377 * configure.ac: Source file ../common/common.host. Initialize new
11378 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
11380 2015-01-14 Yao Qi <yao@codesourcery.com>
11382 * Makefile.in (SFILES): Add nat/ppc-linux.c.
11383 (ppc-linux.o): New rule.
11384 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
11385 * configure.ac: AC_CHECK_FUNCS(getauxval).
11386 * config.in: Re-generated.
11387 * configure: Re-generated.
11388 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
11389 ppc64_64bit_inferior_p
11391 2015-01-14 Yao Qi <yao@codesourcery.com>
11393 * linux-ppc-low.c: Include "nat/ppc-linux.h".
11394 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
11395 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
11396 (PT_ORIG_R3, PT_TRAP): Likewise.
11397 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
11398 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
11399 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
11401 2015-01-10 Joel Brobecker <brobecker@adacore.com>
11403 * i387-fp.c (i387_cache_to_xsave): In look over
11404 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
11405 zmmh_low_space field by use of zmmh_high_space.
11407 2015-01-09 Pedro Alves <palves@redhat.com>
11409 * linux-low.c (step_over_bkpt): Move higher up in the file.
11410 (handle_extended_wait): Don't store the stop_pc here.
11411 (get_stop_pc): Adjust comments and rename to ...
11412 (check_stopped_by_breakpoint): ... this. Record whether the LWP
11413 stopped for a software breakpoint or hardware breakpoint.
11414 (thread_still_has_status_pending_p): New function.
11415 (status_pending_p_callback): Use
11416 thread_still_has_status_pending_p. If the event is no longer
11417 interesting, resume the LWP.
11418 (handle_tracepoints): Add assert.
11419 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
11420 (wstatus_maybe_breakpoint): New function.
11421 (cancel_breakpoint): Delete function.
11422 (check_stopped_by_watchpoint): New function, factored out from
11423 linux_low_filter_event.
11424 (lp_status_maybe_breakpoint): Delete function.
11425 (linux_low_filter_event): Remove filter_ptid argument.
11426 Leave thread group exits pending here. Store the LWP's stop PC.
11427 Always leave events pending.
11428 (linux_wait_for_event_filtered): Pull all events out of the
11429 kernel, and leave them all pending.
11430 (count_events_callback, select_event_lwp_callback): Consider all
11432 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
11433 (select_event_lwp): Only give preference to the stepping LWP in
11434 all-stop mode. Adjust comments.
11435 (ignore_event): New function.
11436 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
11437 references to cancel_breakpoints. Adjust to renames. Also give
11438 equal priority to all LWPs that have had events in non-stop mode.
11439 If reporting a software breakpoint event, unadjust the LWP's PC.
11440 (linux_wait): If linux_wait_1 returned an ignored event, retry.
11441 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
11443 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
11444 (resume_status_pending_p): Use thread_still_has_status_pending_p.
11445 (linux_stopped_by_watchpoint): Adjust.
11446 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
11447 * linux-low.h (enum lwp_stop_reason): New.
11448 (struct lwp_info) <stop_pc>: Adjust comment.
11449 <stopped_by_watchpoint>: Delete field.
11450 <stop_reason>: New field.
11451 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11452 * mem-break.c (software_breakpoint_inserted_here)
11453 (hardware_breakpoint_inserted_here): New function.
11454 * mem-break.h (software_breakpoint_inserted_here)
11455 (hardware_breakpoint_inserted_here): Declare.
11456 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
11457 (cancel_breakpoints): Delete.
11458 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
11459 (upload_fast_traceframes): Remove references to
11460 cancel_breakpoints.
11462 2015-01-09 Pedro Alves <palves@redhat.com>
11464 * thread-db.c (find_new_threads_callback): Ignore thread if the
11465 kernel thread ID is -1.
11467 2015-01-09 Pedro Alves <palves@redhat.com>
11469 * linux-low.c (linux_attach_fail_reason_string): Move to
11470 nat/linux-ptrace.c, and rename.
11471 (linux_attach_lwp): Update comment.
11472 (attach_proc_task_lwp_callback): New function.
11473 (linux_attach): Adjust to rename and use
11474 linux_proc_attach_tgid_threads.
11475 (linux_attach_fail_reason_string): Delete declaration.
11477 2015-01-01 Joel Brobecker <brobecker@adacore.com>
11479 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
11480 * server.c (gdbserver_version): Likewise.
11482 2014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
11484 * remote-utils.c: Include ctype.h.
11485 (input_interrupt): Explicitly handle the case when the char
11486 received is the NUL byte. Improve the printing of non-ASCII
11489 2014-12-16 Joel Brobecker <brobecker@adacore.com>
11491 * linux-low.c (linux_low_filter_event): Update call to
11492 linux_enable_event_reporting following the addition of
11493 a new parameter to that function.
11495 2014-12-16 Catalin Udma <catalin.udma@freescale.com>
11498 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
11499 (AARCH64_FPCR_REGNO): Likewise.
11500 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
11501 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
11502 (aarch64_store_fpregset): Likewise.
11504 2014-12-15 Joel Brobecker <brobecker@adacore.com>
11506 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
11507 Remove FIXME comment about assumption about N.
11509 2014-12-13 Joel Brobecker <brobecker@adacore.com>
11511 * configure.ac: If large-file support is disabled in GDBserver,
11512 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
11513 * configure: Regenerate.
11515 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11517 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
11518 warning upon ENODATA from ptrace.
11519 * linux-s390-low.c (s390_store_tdb): New.
11520 (s390_regsets): Add regset for NT_S390_TDB.
11522 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11524 * linux-low.c (regsets_store_inferior_registers): Skip regsets
11525 without a fill_function.
11526 * linux-s390-low.c (s390_fill_last_break): Remove.
11527 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
11528 (s390_arch_setup): Use regset's size instead of fill_function for
11529 loop end condition.
11531 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11533 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
11534 the regset's store function when ptrace returned an error.
11535 * regcache.c (get_thread_regcache): Invalidate register cache
11536 before fetching inferior's registers.
11538 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11540 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
11541 while-loop as for-loop.
11542 (regsets_store_inferior_registers): Likewise.
11544 2014-11-28 Yao Qi <yao@codesourcery.com>
11546 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
11547 * config.in, configure: Re-generate.
11548 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
11551 2014-11-21 Yao Qi <yao@codesourcery.com>
11553 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
11554 (AC_CHECK_HEADERS): Remove malloc.h.
11555 * configure: Re-generated.
11556 * config.in: Re-generated.
11557 * server.h: Don't include alloca.h and malloc.h.
11558 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
11559 Don't include malloc.h.
11561 2014-11-17 Joel Brobecker <brobecker@adacore.com>
11563 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
11564 corresponding ERRNO check in same block.
11566 2014-11-12 Pedro Alves <palves@redhat.com>
11568 * server.c (cont_thread): Update comment.
11569 (start_inferior, attach_inferior): No longer clear cont_thread.
11570 (handle_v_cont): No longer set cont_thread.
11571 (captured_main): Clear cont_thread each time a GDB connects.
11573 2014-11-12 Pedro Alves <palves@redhat.com>
11575 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
11576 thread, and don't resume all threads if the Hc thread has exited.
11578 2014-11-12 Pedro Alves <palves@redhat.com>
11580 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
11581 the process group instead of to a specific LWP.
11583 2014-10-15 Pedro Alves <palves@redhat.com>
11586 * win32-arm-low.c (arm_set_thread_context): Remove current_event
11588 (arm_set_thread_context): Delete.
11589 (the_low_target): Adjust.
11590 * win32-i386-low.c (debug_registers_changed)
11591 (debug_registers_used): Delete.
11592 (update_debug_registers_callback): New function.
11593 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
11594 needing to update their debug registers.
11595 (win32_get_current_dr): New function.
11596 (x86_dr_low_get_addr, x86_dr_low_get_control)
11597 (x86_dr_low_get_status): Fetch the debug register from the thread
11599 (i386_initial_stuff): Adjust.
11600 (i386_get_thread_context): Remove current_event parameter. Don't
11601 clear debug_registers_changed nor copy DR values to
11603 (i386_set_thread_context): Delete.
11604 (i386_prepare_to_resume): New function.
11605 (i386_thread_added): Mark the thread as needing to update irs
11607 (the_low_target): Remove i386_set_thread_context and install
11608 i386_prepare_to_resume.
11609 * win32-low.c (win32_get_thread_context): Adjust.
11610 (win32_set_thread_context): Use SetThreadContext
11612 (win32_prepare_to_resume): New function.
11613 (win32_require_context): New function, factored out from ...
11614 (thread_rec): ... this.
11615 (continue_one_thread): Call win32_prepare_to_resume on each thread
11616 we're about to continue.
11617 (win32_resume): Call win32_prepare_to_resume on the event thread.
11618 * win32-low.h (struct win32_thread_info)
11619 <debug_registers_changed>: New field.
11620 (struct win32_target_ops): Change prototype of set_thread_context,
11621 delete set_thread_context and add prepare_to_resume.
11622 (win32_require_context): New declaration.
11624 2014-10-08 Gary Benson <gbenson@redhat.com>
11626 * server.h: Do not include common-exceptions.h.
11628 2014-10-08 Gary Benson <gbenson@redhat.com>
11630 * server.h: Do not include cleanups.h.
11632 2014-09-30 James Hogan <james.hogan@imgtec.com>
11634 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
11635 mips64-dsp-linux.c.
11637 2014-09-23 Yao Qi <yao@codesourcery.com>
11639 * linux-low.c (lp_status_maybe_breakpoint): New function.
11640 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
11641 (count_events_callback): Likewise.
11642 (select_event_lwp_callback): Likewise.
11643 (cancel_breakpoints_callback): Likewise.
11645 2014-09-19 Don Breazeal <donb@codesourcery.com>
11647 * linux-low.c (handle_extended_wait): Call
11648 linux_ptrace_get_extended_event.
11649 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
11650 linux_is_extended_waitstatus.
11652 2014-09-16 Joel Brobecker <brobecker@adacore.com>
11654 * Makefile.in (CPPFLAGS): Define.
11655 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
11656 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
11658 2014-09-16 Gary Benson <gbenson@redhat.com>
11660 * inferiors.h (current_inferior): Renamed as...
11661 (current_thread): New variable. All uses updated.
11662 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
11663 (maybe_move_out_of_jump_pad): Likewise.
11664 (cancel_breakpoint): Likewise.
11665 (linux_low_filter_event): Likewise.
11666 (wait_for_sigstop): Likewise.
11667 (linux_resume_one_lwp): Likewise.
11668 (need_step_over_p): Likewise.
11669 (start_step_over): Likewise.
11670 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
11671 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
11672 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
11673 and save_inferior as saved_thread.
11674 * regcache.c (get_thread_regcache): Renamed saved_inferior as
11676 (regcache_invalidate_thread): Likewise.
11677 * remote-utils.c (prepare_resume_reply): Likewise.
11678 * thread-db.c (thread_db_get_tls_address): Likewise.
11679 (disable_thread_event_reporting): Likewise.
11680 (remove_thread_event_breakpoints): Likewise.
11681 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
11683 * target.h (set_desired_inferior): Renamed as...
11684 (set_desired_thread): New declaration. All uses updated.
11685 * server.c (myresume): Updated comment to reference thread instead
11687 (handle_serial_event): Likewise.
11688 (handle_target_event): Likewise.
11690 2014-09-12 Tom Tromey <tromey@redhat.com>
11691 Gary Benson <gbenson@redhat.com>
11693 * regcache.h: Include common-regcache.h.
11694 (regcache_read_pc): Don't declare.
11695 * regcache.c (get_thread_regcache_for_ptid): New function.
11697 2014-09-11 Tom Tromey <tromey@redhat.com>
11698 Gary Benson <gbenson@redhat.com>
11700 * symbol.c: New file.
11701 * Makefile.in (SFILES): Add symbol.c.
11702 (OBS): Add symbol.o.
11704 2014-09-11 Gary Benson <gbenson@redhat.com>
11706 * target.c (target_stop_ptid, target_continue_ptid): New
11709 2014-09-11 Tom Tromey <tromey@redhat.com>
11710 Gary Benson <gbenson@redhat.com>
11712 * target.h: Include target/target.h.
11713 * target.c (target_read_memory, target_read_uint32)
11714 (target_write_memory): New functions.
11716 2014-09-11 Gary Benson <gbenson@redhat.com>
11718 * server.h (debug_hw_points): Don't declare.
11719 * server.c (debug_hw_points): Don't define. Replace all uses
11720 with show_debug_regs.
11721 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
11722 all uses with show_debug_regs.
11724 2014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
11726 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
11727 endianness into account.
11728 (ppc_supply_ptrace_register): Likewise.
11730 2014-09-03 James Hogan <james.hogan@imgtec.com>
11732 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
11733 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
11735 2014-09-03 Gary Benson <gbenson@redhat.com>
11737 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
11738 ALL_DEBUG_ADDRESS_REGISTERS.
11740 2014-09-02 Gary Benson <gbenson@redhat.com>
11742 * i386-low.h: Renamed as...
11743 * x86-low.h: New file. All type, function and variable name
11744 prefixes changed from "i386_" to "x86_". All references updated.
11745 * i386-low.c: Renamed as...
11746 * x86-low.c: New file. All type, function and variable name
11747 prefixes changed from "i386_" to "x86_". All references updated.
11749 2014-09-02 Gary Benson <gbenson@redhat.com>
11751 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
11752 (x86_linux_new_thread): Likewise.
11754 2014-08-29 Gary Benson <gbenson@redhat.com>
11756 * server.h (setjmp.h): Do not include.
11757 (toplevel): Do not declare.
11758 (common-exceptions.h): Include.
11759 (cleanups.h): Likewise.
11760 * server.c (toplevel): Do not define.
11761 (exit_code): New static global.
11762 (detach_or_kill_for_exit_cleanup): New function.
11763 (main): New function. Original main renamed to...
11764 (captured_main): New function.
11765 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
11767 2014-08-29 Gary Benson <gbenson@redhat.com>
11769 * Makefile.in (SFILES): Add common/common-exceptions.c.
11770 (OBS): Add common-exceptions.o.
11771 (common-exceptions.o): New rule.
11772 * utils.c (prepare_to_throw_exception): New function.
11774 2014-08-29 Gary Benson <gbenson@redhat.com>
11776 * config.in: Regenerate.
11777 * configure: Likewise.
11779 2014-08-29 Gary Benson <gbenson@redhat.com>
11781 * Makefile.in (SFILES): Add common/cleanups.c.
11783 (cleanups.o): New rule.
11785 2014-08-29 Gary Benson <gbenson@redhat.com>
11787 * utils.c (internal_vwarning): New function.
11789 2014-08-28 Gary Benson <gbenson@redhat.com>
11791 * utils.h (fatal): Remove declaration.
11792 * utils.c (fatal): Remove function.
11794 2014-08-28 Gary Benson <gbenson@redhat.com>
11796 * tracepoint.c (gdb_agent_init): Replace fatal with
11798 (initialize_tracepoint): Likewise.
11800 2014-08-28 Gary Benson <gbenson@redhat.com>
11802 * remote-utils.c (remote_prepare): Replace fatal with error.
11804 2014-08-28 Gary Benson <gbenson@redhat.com>
11806 * linux-low.c (linux_async): Replace fatal with warning.
11807 Tidy up and return.
11808 (linux_start_non_stop): Return -1 if linux_async failed.
11810 2014-08-28 Gary Benson <gbenson@redhat.com>
11812 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
11814 (i386_dr_low_get_addr): Remove vague comment.
11815 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
11818 2014-08-28 Gary Benson <gbenson@redhat.com>
11820 * inferiors.c (get_thread_process): Replace check with gdb_assert.
11821 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
11823 (linux_resume_one_lwp): Likewise.
11824 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
11826 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
11827 with internal_error.
11828 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
11829 (init_register_cache): Replace fatal with gdb_assert_not_reached.
11830 (find_register_by_name): Replace fatal with internal_error.
11831 (find_regno): Likewise.
11832 * tdesc.c (init_target_desc): Replace check with gdb_assert.
11833 * thread-db.c (thread_db_create_event): Likewise.
11834 (thread_db_load_search): Likewise.
11835 (try_thread_db_load_1): Likewise.
11836 * tracepoint.c (get_jump_space_head): Replace fatal with
11838 (claim_trampoline_space): Likewise.
11839 (have_fast_tracepoint_trampoline_buffer): Likewise.
11840 (cmd_qtstart): Likewise.
11841 (stop_tracing): Likewise.
11842 (fast_tracepoint_collecting): Likewise.
11843 (target_malloc): Likewise.
11844 (download_tracepoint): Likewise.
11845 (download_trace_state_variables): Replace check with gdb_assert.
11846 (upload_fast_traceframes): Replace fatal with internal_error.
11848 2014-08-19 Tom Tromey <tromey@redhat.com>
11849 Gary Benson <gbenson@redhat.com>
11851 * Makefile.in (SFILES): Add common/common-debug.c.
11852 (OBS): Add common-debug.o.
11853 (common-debug.o): New rule.
11854 * debug.h (debug_printf): Don't declare.
11855 * debug.c (debug_printf): Renamed and rewritten as...
11856 (debug_vprintf): New function.
11858 2014-08-19 Gary Benson <gbenson@redhat.com>
11860 * utils.h: Do not include print-utils.h.
11862 2014-08-19 Tom Tromey <tromey@redhat.com>
11863 Gary Benson <gbenson@redhat.com>
11865 * server.h: Add static assertion.
11866 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
11868 2014-08-19 Tom Tromey <tromey@redhat.com>
11869 Gary Benson <gbenson@redhat.com>
11871 * Makefile.in (SFILES): Add common/errors.c.
11872 (OBS): Add errors.o.
11873 (IPA_OBS): Add errors-ipa.o.
11874 (errors.o): New rule.
11875 (errors-ipa.o): Likewise.
11876 * utils.h (perror_with_name, error, warning): Don't declare.
11877 * utils.c (warning): Renamed and rewritten as...
11878 (vwarning): New function.
11879 (error): Renamed and rewritten as...
11880 (verror): New function.
11881 (internal_error): Renamed and rewritten as...
11882 (internal_verror): New function.
11884 2014-08-07 Gary Benson <gbenson@redhat.com>
11886 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
11887 * configure: Regenerate.
11888 * config.in: Likewise.
11889 * server.h: Do not include errno.h.
11890 * event-loop.c: Likewise.
11891 * hostio-errno.c: Likewise.
11892 * linux-low.c: Likewise.
11893 * remote-utils.c: Likewise.
11894 * spu-low.c: Likewise.
11895 * utils.c: Likewise.
11896 * gdbreplay.c: Unconditionally include errno.h.
11898 2014-08-07 Gary Benson <gbenson@redhat.com>
11900 * server.h: Do not include string.h.
11901 * event-loop.c: Likewise.
11902 * linux-low.c: Likewise.
11903 * regcache.c: Likewise.
11904 * remote-utils.c: Likewise.
11905 * spu-low.c: Likewise.
11906 * utils.c: Likewise.
11908 2014-08-07 Gary Benson <gbenson@redhat.com>
11910 * server.h: Do not include gdb_assert.h.
11912 2014-08-07 Gary Benson <gbenson@redhat.com>
11914 * server.h: Do not include common-utils.h.
11916 2014-08-07 Gary Benson <gbenson@redhat.com>
11918 * server.h: Do not include ptid.h.
11919 * notif.h: Likewise.
11921 2014-08-07 Gary Benson <gbenson@redhat.com>
11923 * server.h: Do not include gdb_locale.h.
11925 2014-08-07 Gary Benson <gbenson@redhat.com>
11927 * server.h: Do not include gdb/signals.h.
11928 * win32-low.c: Likewise.
11930 2014-08-07 Gary Benson <gbenson@redhat.com>
11932 * server.h: Do not include pathmax.h.
11934 2014-08-07 Gary Benson <gbenson@redhat.com>
11936 * server.h: Do not include libiberty.h.
11937 * linux-bfin-low.c: Likewise.
11939 2014-08-07 Gary Benson <gbenson@redhat.com>
11941 * server.h: Do not include ansidecl.h.
11943 2014-08-07 Gary Benson <gbenson@redhat.com>
11945 * linux-x86-low.c: Do not include stddef.h.
11946 * lynx-ppc-low.c: Likewise.
11947 * tracepoint.c: Likewise.
11949 2014-08-07 Gary Benson <gbenson@redhat.com>
11951 * server.h: Do not include stdarg.h.
11952 * nto-low.c: Likewise.
11954 2014-08-07 Gary Benson <gbenson@redhat.com>
11956 * server.h: Do not include stdlib.h.
11957 * inferiors.c: Likewise.
11958 * linux-low.c: Likewise.
11959 * regcache.c: Likewise.
11960 * spu-low.c: Likewise.
11961 * tracepoint.c: Likewise.
11962 * utils.c: Likewise.
11964 2014-08-07 Gary Benson <gbenson@redhat.com>
11966 * server.h: Do not include stdio.h.
11967 * linux-low.c: Likewise.
11968 * remote-utils.c: Likewise.
11969 * spu-low.c: Likewise.
11970 * utils.c: Likewise.
11971 * wincecompat.c: Likewise.
11973 2014-08-06 Gary Benson <gbenson@redhat.com>
11975 * regcache.c (init_register_cache): Move conditionals inside if.
11977 2014-08-06 Gary Benson <gbenson@redhat.com>
11979 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
11981 2014-07-31 Gary Benson <gbenson@redhat.com>
11983 * ax.h: Do not include server.h.
11984 * gdbthread.h: Likewise.
11985 * lynx-low.h: Likewise.
11986 * notif.h: Likewise.
11988 2014-07-30 Gary Benson <gbenson@redhat.com>
11990 * server.h: Include common-defs.h.
11991 Do not include config.h or build-gnulib-gdbserver/config.h.
11993 2014-07-30 Gary Benson <gbenson@redhat.com>
11995 * hostio-errno.c: Move server.h to top of includes list.
11996 * inferiors.c: Likewise.
11997 * linux-x86-low.c: Likewise.
11998 * notif.c: Include server.h.
12000 2014-07-24 Tom Tromey <tromey@redhat.com>
12001 Gary Benson <gbenson@redhat.com>
12003 * server.h (CORE_ADDR): Now unsigned.
12005 2014-07-16 Pedro Alves <palves@redhat.com>
12007 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
12009 2014-07-15 Pedro Alves <palves@redhat.com>
12011 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
12014 2014-07-11 Pedro Alves <palves@redhat.com>
12016 * linux-low.c (kill_wait_lwp): New function, based on
12017 kill_one_lwp_callback, but use my_waitpid directly.
12018 (kill_one_lwp_callback, linux_kill): Use it.
12020 2014-06-23 Pedro Alves <palves@redhat.com>
12022 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
12023 before setting DR0..DR3.
12025 2014-06-20 Gary Benson <gbenson@redhat.com>
12027 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
12028 * configure: Regenerated.
12029 * config.in: Likewise.
12031 2014-06-20 Gary Benson <gbenson@redhat.com>
12033 * Makefile.in (SFILES): Update locations for files moved
12034 from common to nat.
12035 (object file files): Reordered.
12037 2014-06-20 Gary Benson <gbenson@redhat.com>
12039 * i386-low.h (i386_dr_low_can_set_addr): Removed.
12040 (i386_dr_low_set_addr): Likewise.
12041 (i386_dr_low_get_addr): Likewise.
12042 (i386_dr_low_can_set_control): Likewise.
12043 (i386_dr_low_set_control): Likewise.
12044 (i386_dr_low_get_control): Likewise.
12045 (i386_dr_low_get_status): Likewise.
12046 (i386_get_debug_register_length): Likewise.
12047 * linux-x86-low.c (i386_dr_low_set_addr):
12048 Changed signature. Made static.
12049 (i386_dr_low_get_addr): Likewise.
12050 (i386_dr_low_set_control): Likewise.
12051 (i386_dr_low_get_control): Likewise.
12052 (i386_dr_low_get_status): Likewise.
12053 (i386_dr_low): New global variable.
12054 * win32-i386-low.c (i386_dr_low_set_addr):
12055 Changed signature. Made static.
12056 (i386_dr_low_get_addr): Likewise.
12057 (i386_dr_low_set_control): Likewise.
12058 (i386_dr_low_get_control): Likewise.
12059 (i386_dr_low_get_status): Likewise.
12060 (i386_dr_low): New global variable.
12062 2014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
12064 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
12065 * Makefile.in (AR, AR_FLAGS): Define.
12066 * configure: Regenerate.
12068 2014-06-19 Gary Benson <gbenson@redhat.com>
12070 * Makefile.in (i386-dregs.o): New rule.
12071 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
12072 * i386-low.c (target.h): Remove include.
12073 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
12074 (DR_CONTROL_SHIFT): Likewise.
12075 (DR_CONTROL_SIZE): Likewise.
12076 (DR_RW_EXECUTE): Likewise.
12077 (DR_RW_WRITE): Likewise.
12078 (DR_RW_READ): Likewise.
12079 (DR_RW_IORW): Likewise.
12080 (DR_LEN_1): Likewise.
12081 (DR_LEN_2): Likewise.
12082 (DR_LEN_4): Likewise.
12083 (DR_LEN_8): Likewise.
12084 (DR_LOCAL_ENABLE_SHIFT): Likewise.
12085 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
12086 (DR_ENABLE_SIZE): Likewise.
12087 (DR_LOCAL_SLOWDOWN): Likewise.
12088 (DR_GLOBAL_SLOWDOWN): Likewise.
12089 (DR_CONTROL_RESERVED): Likewise.
12090 (I386_DR_CONTROL_MASK): Likewise.
12091 (I386_DR_VACANT): Likewise.
12092 (I386_DR_LOCAL_ENABLE): Likewise.
12093 (I386_DR_GLOBAL_ENABLE): Likewise.
12094 (I386_DR_DISABLE): Likewise.
12095 (I386_DR_SET_RW_LEN): Likewise.
12096 (I386_DR_GET_RW_LEN): Likewise.
12097 (I386_DR_WATCH_HIT): Likewise.
12098 (i386_wp_op_t): Likewise.
12099 (i386_show_dr): Likewise.
12100 (i386_length_and_rw_bits): Likewise.
12101 (i386_insert_aligned_watchpoint): Likewise.
12102 (i386_remove_aligned_watchpoint): Likewise.
12103 (i386_handle_nonaligned_watchpoint): Likewise.
12104 i386_update_inferior_debug_regs(): Likewise.
12105 (i386_dr_insert_watchpoint): Likewise.
12106 (i386_dr_remove_watchpoint): Likewise.
12107 (i386_dr_region_ok_for_watchpoint): Likewise.
12108 (i386_dr_stopped_data_address): Likewise.
12109 (i386_dr_stopped_by_watchpoint): Likewise.
12111 2014-06-19 Gary Benson <gbenson@redhat.com>
12113 * i386-low.c (i386_dr_show): Renamed to
12114 i386_show_dr and made static. All uses updated.
12115 (i386_dr_length_and_rw_bits): Renamed to
12116 i386_length_and_rw_bits and made static.
12118 (i386_dr_insert_aligned_watchpoint): Renamed to
12119 i386_insert_aligned_watchpoint and made static.
12121 (i386_dr_remove_aligned_watchpoint): Renamed to
12122 i386_remove_aligned_watchpoint and made static.
12124 (i386_dr_update_inferior_debug_regs): Renamed to
12125 i386_update_inferior_debug_regs and made static.
12128 2014-06-18 Gary Benson <gbenson@redhat.com>
12130 * i386-low.h (i386_dr_low_can_set_addr): New macro.
12131 (i386_dr_low_can_set_control): Likewise.
12132 (i386_get_debug_register_length): Likewise.
12133 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
12134 (i386_dr_low_can_set_control): Likewise.
12135 (i386_get_debug_register_length): Likewise.
12137 2014-06-17 Gary Benson <gbenson@redhat.com>
12139 * i386-low.h (i386-dregs.h): New include.
12140 (DR_FIRSTADDR): Now in i386-dregs.h.
12141 (DR_LASTADDR): Likewise.
12142 (DR_NADDR): Likewise.
12143 (DR_STATUS): Likewise.
12144 (DR_CONTROL): Likewise.
12145 (i386_debug_reg_state): Likewise.
12146 (i386_dr_insert_watchpoint): Likewise.
12147 (i386_dr_remove_watchpoint): Likewise.
12148 (i386_dr_region_ok_for_watchpoint): Likewise.
12149 (i386_dr_stopped_data_address): Likewise.
12150 (i386_dr_stopped_by_watchpoint): Likewise.
12151 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
12153 2014-06-18 Gary Benson <gbenson@redhat.com>
12155 * i386-low.h (i386_low_insert_watchpoint): Renamed to
12156 i386_dr_insert_watchpoint.
12157 (i386_low_remove_watchpoint): Renamed to
12158 i386_dr_remove_watchpoint.
12159 (i386_low_region_ok_for_watchpoint): Renamed to
12160 i386_dr_region_ok_for_watchpoint.
12161 (i386_low_stopped_data_address): Renamed to
12162 i386_dr_stopped_data_address.
12163 (i386_low_stopped_by_watchpoint): Renamed to
12164 i386_dr_stopped_by_watchpoint.
12165 * i386-low.c (i386_show_dr): Renamed to
12166 i386_dr_show and made nonstatic. All uses updated.
12167 (i386_length_and_rw_bits): Renamed to
12168 i386_dr_length_and_rw_bits and made nonstatic.
12170 (i386_insert_aligned_watchpoint): Renamed to
12171 i386_dr_insert_aligned_watchpoint and made nonstatic.
12173 (i386_remove_aligned_watchpoint): Renamed to
12174 i386_dr_remove_aligned_watchpoint and made nonstatic.
12176 (i386_update_inferior_debug_regs): Renamed to
12177 i386_dr_update_inferior_debug_regs and made nonstatic.
12179 (i386_low_insert_watchpoint): Renamed to
12180 i386_dr_insert_watchpoint. All uses updated.
12181 (i386_low_remove_watchpoint): Renamed to
12182 i386_dr_remove_watchpoint. All uses updated.
12183 (i386_low_region_ok_for_watchpoint): Renamed to
12184 i386_dr_region_ok_for_watchpoint. All uses updated.
12185 (i386_low_stopped_data_address): Renamed to
12186 i386_dr_stopped_data_address. All uses updated.
12187 (i386_low_stopped_by_watchpoint): Renamed to
12188 i386_dr_stopped_by_watchpoint. All uses updated.
12190 2014-06-18 Gary Benson <gbenson@redhat.com>
12192 * i386-low.c (i386_dr_low_can_set_addr): New macro.
12193 (i386_dr_low_can_set_control): Likewise.
12194 (i386_insert_aligned_watchpoint): New check.
12196 2014-06-18 Gary Benson <gbenson@redhat.com>
12198 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
12201 2014-06-18 Gary Benson <gbenson@redhat.com>
12203 * i386-low.c (i386_length_and_rw_bits): Use internal_error
12204 instead of fatal and error.
12205 (i386_handle_nonaligned_watchpoint): Likewise.
12207 2014-06-18 Gary Benson <gbenson@redhat.com>
12209 * i386-low.c (i386_get_debug_register_length): New macro.
12210 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
12211 (i386_show_dr): Use debug_printf instead of fprintf. Use
12212 phex to format values.
12214 2014-06-18 Gary Benson <gbenson@redhat.com>
12216 * i386-low.h: Comment changes.
12217 * i386-low.c: Likewise.
12219 2014-06-18 Gary Benson <gbenson@redhat.com>
12221 * i386-low.c: Whitespace changes.
12223 2014-06-12 Tom Tromey <tromey@redhat.com>
12225 * utils.c (freeargv): Remove.
12227 2014-06-12 Tom Tromey <tromey@redhat.com>
12229 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
12230 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
12231 (parse_debug_format_options): Likewise.
12232 (gdbserver_usage): Likewise.
12233 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
12234 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
12235 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
12237 ($(LIBGNU)): Depend on libiberty.
12238 (all-lib): Recurse into all subdirs.
12239 (install-only): Invoke "install" target in subdirs.
12240 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
12242 * configure: Rebuild.
12243 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
12244 for vasprintf, vsnprintf, or gettimeofday.
12245 * configure.srv: Don't add safe-ctype.o or lbasename.o to
12248 2014-06-05 Joel Brobecker <brobecker@adacore.com>
12250 * development.sh: Delete.
12251 * Makefile.in (config.status): Adjust dependency on development.sh.
12252 * configure.ac: Adjust development.sh source call.
12253 * configure: Regenerate.
12255 2014-06-02 Pedro Alves <palves@redhat.com>
12257 * ax.c (gdb_free_agent_expr): New function.
12258 * ax.h (gdb_free_agent_expr): New declaration.
12259 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
12261 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
12263 (clear_breakpoint_conditions_and_commands): New function.
12264 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
12265 (clear_breakpoint_conditions_and_commands): New declaration.
12267 2014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12269 * linux-aarch64-low.c (asm/ptrace.h): Include.
12271 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12273 Fix TLS access for -static -pthread.
12274 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
12275 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
12276 (thread_db_load_search, try_thread_db_load_1): Initialize it.
12278 2014-05-20 Pedro Alves <palves@redhat.com>
12280 * linux-aarch64-low.c (aarch64_insert_point)
12281 (aarch64_remove_point): No longer check whether the type is
12282 supported here. Adjust to new interface.
12283 (the_low_target): Install aarch64_supports_z_point_type as
12284 supports_z_point_type method.
12285 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
12286 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
12287 instead of a Z packet char. Adjust.
12288 (arm_supports_z_point_type): New function.
12289 (arm_insert_point, arm_remove_point): Adjust to new interface.
12290 (the_low_target): Install arm_supports_z_point_type.
12291 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
12292 (cris_insert_point, cris_remove_point): Adjust to new interface.
12293 Don't check whether the type is supported here.
12294 (the_low_target): Install cris_supports_z_point_type.
12295 * linux-low.c (linux_supports_z_point_type): New function.
12296 (linux_insert_point, linux_remove_point): Adjust to new interface.
12297 * linux-low.h (struct linux_target_ops) <insert_point,
12298 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
12299 raw_breakpoint pointer parameter.
12300 <supports_z_point_type>: New method.
12301 * linux-mips-low.c (mips_supports_z_point_type): New function.
12302 (mips_insert_point, mips_remove_point): Adjust to new interface.
12303 Use mips_supports_z_point_type.
12304 (the_low_target): Install mips_supports_z_point_type.
12305 * linux-ppc-low.c (the_low_target): Install NULL as
12306 supports_z_point_type method.
12307 * linux-s390-low.c (the_low_target): Install NULL as
12308 supports_z_point_type method.
12309 * linux-sparc-low.c (the_low_target): Install NULL as
12310 supports_z_point_type method.
12311 * linux-x86-low.c (x86_supports_z_point_type): New function.
12312 (x86_insert_point): Adjust to new insert_point interface. Use
12313 insert_memory_breakpoint. Adjust to new
12314 i386_low_insert_watchpoint interface.
12315 (x86_remove_point): Adjust to remove_point interface. Use
12316 remove_memory_breakpoint. Adjust to new
12317 i386_low_remove_watchpoint interface.
12318 (the_low_target): Install x86_supports_z_point_type.
12319 * lynx-low.c (lynx_target_ops): Install NULL as
12320 supports_z_point_type callback.
12321 * nto-low.c (nto_supports_z_point_type): New.
12322 (nto_insert_point, nto_remove_point): Adjust to new interface.
12323 (nto_target_ops): Install nto_supports_z_point_type.
12324 * mem-break.c: Adjust intro comment.
12325 (struct raw_breakpoint) <raw_type, size>: New fields.
12326 <inserted>: Update comment.
12327 <shlib_disabled>: Delete field.
12328 (enum bkpt_type) <gdb_breakpoint>: Delete value.
12329 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
12330 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
12331 (raw_bkpt_type_to_target_hw_bp_type): New function.
12332 (find_enabled_raw_code_breakpoint_at): New function.
12333 (find_raw_breakpoint_at): New type and size parameters. Use them.
12334 (insert_memory_breakpoint): New function, based off
12335 set_raw_breakpoint_at.
12336 (remove_memory_breakpoint): New function.
12337 (set_raw_breakpoint_at): Reimplement.
12338 (set_breakpoint): New, based on set_breakpoint_at.
12339 (set_breakpoint_at): Reimplement.
12340 (delete_raw_breakpoint): Go through the_target->remove_point
12341 instead of assuming memory breakpoints.
12342 (find_gdb_breakpoint_at): Delete.
12343 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
12344 (find_gdb_breakpoint): New function.
12345 (set_gdb_breakpoint_at): Delete.
12346 (z_type_supported): New function.
12347 (set_gdb_breakpoint_1): New function, loosely based off
12348 set_gdb_breakpoint_at.
12349 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
12350 (delete_gdb_breakpoint_at): Delete.
12351 (delete_gdb_breakpoint_1): New function, loosely based off
12352 delete_gdb_breakpoint_at.
12353 (delete_gdb_breakpoint): New function.
12354 (clear_gdb_breakpoint_conditions): Rename to ...
12355 (clear_breakpoint_conditions): ... this. Don't handle a NULL
12357 (add_condition_to_breakpoint): Make static.
12358 (add_breakpoint_condition): Take a struct breakpoint pointer
12359 instead of an address. Adjust.
12360 (gdb_condition_true_at_breakpoint): Rename to ...
12361 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
12363 (gdb_condition_true_at_breakpoint): Reimplement.
12364 (add_breakpoint_commands): Take a struct breakpoint pointer
12365 instead of an address. Adjust.
12366 (gdb_no_commands_at_breakpoint): Rename to ...
12367 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
12368 parameter. Return true if no breakpoint was found. Change debug
12370 (gdb_no_commands_at_breakpoint): Reimplement.
12371 (run_breakpoint_commands): Rename to ...
12372 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
12373 and change return type to boolean.
12374 (run_breakpoint_commands): New function.
12375 (gdb_breakpoint_here): Also check for Z1 breakpoints.
12376 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
12377 breakpoint. Go through the_target->remove_point instead of
12378 assuming memory breakpoint.
12379 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
12380 software and hardware breakpoints.
12381 (reinsert_raw_breakpoint): Go through the_target->insert_point
12382 instead of assuming memory breakpoint.
12383 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
12384 software and hardware breakpoints.
12385 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
12386 Check both software and hardware breakpoints.
12387 (validate_inserted_breakpoint): Assert the breakpoint is a
12388 software breakpoint. Set the inserted flag to -1 instead of
12389 setting shlib_disabled.
12390 (delete_disabled_breakpoints): Adjust.
12391 (validate_breakpoints): Only validate software breakpoints.
12392 Adjust to inserted flag change.
12393 (check_mem_read, check_mem_write): Skip breakpoint types other
12394 than software breakpoints. Adjust to inserted flag change.
12395 * mem-break.h (enum raw_bkpt_type): New enum.
12396 (raw_breakpoint, struct process_info): Forward declare.
12397 (Z_packet_to_target_hw_bp_type): Delete declaration.
12398 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
12399 (set_gdb_breakpoint, delete_gdb_breakpoint)
12400 (clear_breakpoint_conditions): New declarations.
12401 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
12402 (breakpoint_inserted_here): Update comment.
12403 (add_breakpoint_condition, add_breakpoint_commands): Replace
12404 address parameter with a breakpoint pointer parameter.
12405 (gdb_breakpoint_here): Update comment.
12406 (delete_gdb_breakpoint_at): Delete.
12407 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
12408 * server.c (process_point_options): Take a struct breakpoint
12409 pointer instead of an address. Adjust.
12410 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
12411 delete_gdb_breakpoint.
12412 * spu-low.c (spu_target_ops): Install NULL as
12413 supports_z_point_type method.
12414 * target.h: Include mem-break.h.
12415 (struct target_ops) <prepare_to_access_memory>: Update comment.
12416 <supports_z_point_type>: New field.
12417 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12418 instead of a char. Also take a raw breakpoint pointer.
12419 * win32-arm-low.c (the_low_target): Install NULL as
12420 supports_z_point_type.
12421 * win32-i386-low.c (i386_supports_z_point_type): New function.
12422 (i386_insert_point, i386_remove_point): Adjust to new interface.
12423 (the_low_target): Install i386_supports_z_point_type.
12424 * win32-low.c (win32_supports_z_point_type): New function.
12425 (win32_insert_point, win32_remove_point): Adjust to new interface.
12426 (win32_target_ops): Install win32_supports_z_point_type.
12427 * win32-low.h (struct win32_target_ops):
12428 <supports_z_point_type>: New method.
12429 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12430 instead of a char. Also take a raw breakpoint pointer.
12432 2014-05-20 Pedro Alves <palves@redhat.com>
12434 * mem-break.h: Include break-common.h.
12435 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12436 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
12437 (Z_packet_to_target_hw_bp_type): New declaration.
12438 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
12439 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
12440 (Z_PACKET_ACCESS_WP): Delete macros.
12441 (Z_packet_to_hw_type): Delete function.
12442 * i386-low.h: Don't include break-common.h here.
12443 (Z_packet_to_hw_type): Delete declaration.
12444 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
12445 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12446 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
12447 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12448 * linux-aarch64-low.c: Don't include break-common.h here.
12449 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12450 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
12451 (Z_packet_to_target_hw_bp_type): Delete function.
12452 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
12454 (mips_insert_point, mips_remove_point): Use
12455 Z_packet_to_target_hw_bp_type.
12457 2014-05-20 Pedro Alves <palves@redhat.com>
12459 * linux-aarch64-low.c: Include break-common.h.
12460 (enum target_point_type): Delete.
12461 (Z_packet_to_point_type): Rename to ...
12462 (Z_packet_to_target_hw_bp_type): ... this, and return a
12463 target_hw_bp_type instead.
12464 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
12465 instead of an enum target_point_type.
12466 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
12468 (aarch64_dr_state_insert_one_point)
12469 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
12470 (aarch64_handle_aligned_watchpoint)
12471 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
12472 Take an enum target_hw_bp_type instead of an enum
12474 (aarch64_supports_z_point_type): New function.
12475 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
12476 use Z_packet_to_target_hw_bp_type.
12478 2014-05-20 Joel Brobecker <brobecker@adacore.com>
12480 * configure.ac: Only use -Werror by default when DEVELOPMENT
12482 * configure: Regenerate.
12484 2014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
12486 Fix gdbserver qGetTLSAddr for x86_64 -m32.
12487 * linux-x86-low.c (X86_64_USER_REGS): New.
12488 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
12490 2014-04-28 Yao Qi <yao@codesourcery.com>
12492 * Makefile.in (i386-avx512.c): Fix the typo of generated file
12495 2014-04-25 Pedro Alves <palves@redhat.com>
12498 * linux-low.c (linux_attach_fail_reason_string): New function.
12499 (linux_attach_lwp): Delete.
12500 (linux_attach_lwp_1): Rename to ...
12501 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
12502 argument. Remove "initial" parameter. Return int instead of
12503 void. Don't error or warn here.
12504 (linux_attach): Adjust to call linux_attach_lwp. Call error on
12505 failure to attach to the tgid. Call warning when failing to
12507 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
12508 argument. Remove "initial" parameter. Return int instead of
12509 void. Don't error or warn here.
12510 (linux_attach_fail_reason_string): New declaration.
12511 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
12512 interface change. Use linux_attach_fail_reason_string.
12514 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
12515 Walfred Tedeschi <walfred.tedeschi@intel.com>
12517 * Makefile.in: Added rules to handle new files
12518 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
12519 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
12520 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
12521 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
12522 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
12523 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
12524 x32-avx512-linux.o.
12525 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
12526 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
12527 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
12528 i386/x32-avx512.xml.
12529 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
12530 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
12531 i386/x32-avx512-linux.xml.
12532 * i387-fp.c (num_avx512_k_registers): New constant for number
12534 (num_avx512_zmmh_low_registers): New constant for number of
12535 lower ZMM registers (0-15).
12536 (num_avx512_zmmh_high_registers): New constant for number of
12537 higher ZMM registers (16-31).
12538 (num_avx512_ymmh_registers): New contant for number of higher
12539 YMM registers (ymm16-31 added by avx521 on x86_64).
12540 (num_avx512_xmm_registers): New constant for number of higher
12541 XMM registers (xmm16-31 added by AVX512 on x86_64).
12542 (struct i387_xsave): Add space for AVX512 registers.
12543 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
12544 Add code to handle AVX512 registers.
12545 (i387_xsave_to_cache): Add code to handle AVX512 registers.
12546 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
12547 prototypei from generated file.
12548 (tdesc_amd64_avx512_linux): Likewise.
12549 (init_registers_x32_avx512_linux): Likewise.
12550 (tdesc_x32_avx512_linux): Likewise.
12551 (init_registers_i386_avx512_linux): Likewise.
12552 (tdesc_i386_avx512_linux): Likewise.
12553 (x86_64_regmap): Add AVX512 registers.
12554 (x86_linux_read_description): Add code to handle AVX512 XSTATE
12556 (initialize_low_arch): Add code to initialize AVX512 registers.
12558 2014-04-23 Pedro Alves <palves@redhat.com>
12560 * mem-break.c (find_gdb_breakpoint_at): Make static.
12561 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
12563 2014-04-23 Pedro Alves <palves@redhat.com>
12565 * i386-low.c: Don't include break-common.h here.
12566 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12567 prototype to take target_hw_bp_type as argument instead of a Z
12569 * i386-low.h: Include break-common.h here.
12570 (Z_packet_to_hw_type): Declare.
12571 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12573 * linux-x86-low.c (x86_insert_point): Convert the packet number to
12574 a target_hw_bp_type before calling i386_low_insert_watchpoint.
12575 (x86_remove_point): Convert the packet number to a
12576 target_hw_bp_type before calling i386_low_remove_watchpoint.
12577 * win32-i386-low.c (i386_insert_point): Convert the packet number
12578 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
12579 (i386_remove_point): Convert the packet number to a
12580 target_hw_bp_type before calling i386_low_remove_watchpoint.
12582 2014-04-23 Pedro Alves <palves@redhat.com>
12584 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
12586 2014-04-10 Pedro Alves <palves@redhat.com>
12588 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
12589 Check if the condition or command is NULL before checking if the
12590 breakpoint is known. On success, return true.
12591 * mem-break.h (add_breakpoint_condition): Document return.
12592 (add_breakpoint_commands): Add describing comment.
12593 * server.c (skip_to_semicolon): New function.
12594 (process_point_options): Use it.
12596 2014-04-09 Pedro Alves <palves@redhat.com>
12598 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
12601 2014-02-27 Pedro Alves <palves@redhat.com>
12604 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
12606 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
12608 (last_thread_of_process_p): Take a PID argument instead of a
12610 (linux_wait_for_lwp): Delete.
12611 (num_lwps, check_zombie_leaders, not_stopped_callback): New
12613 (linux_low_filter_event): New function, party factored out from
12614 linux_wait_for_event.
12615 (linux_wait_for_event): Rename to ...
12616 (linux_wait_for_event_filtered): ... this. Add new filter ptid
12617 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
12618 sigsuspend. Check for zombie leaders.
12619 (linux_wait_for_event): Reimplement as wrapper around
12620 linux_wait_for_event_filtered.
12621 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
12622 a normal or signal exit is seen, it's the whole process exiting.
12623 (wait_for_sigstop): No longer a for_each_inferior callback.
12624 Rewrite on top of linux_wait_for_event_filtered.
12625 (stop_all_lwps): Call wait_for_sigstop directly.
12626 * server.c (resume, handle_target_event): Handle
12627 TARGET_WAITKIND_NO_RESUMED.
12629 2014-02-26 Joel Brobecker <brobecker@adacore.com>
12631 * win32-low.c (psapi_get_dll_name,
12632 * win32_CreateToolhelp32Snapshot): Delete.
12633 (win32_CreateToolhelp32Snapshot, win32_Module32First)
12634 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
12636 (handle_load_dll): Add function description.
12637 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
12639 2014-02-26 Joel Brobecker <brobecker@adacore.com>
12641 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
12643 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
12644 base address when calling win32_add_one_solib.
12645 (handle_load_dll): Delete local variable load_addr.
12646 Remove 0x1000 offset applied to DLL base address when calling
12647 win32_add_one_solib.
12648 (handle_unload_dll): Add comment.
12650 2014-02-26 Joel Brobecker <brobecker@adacore.com>
12652 * win32-low.c (win32_add_all_dlls): Renames
12653 win32_ensure_ntdll_loaded. Rewrite function documentation.
12654 Adjust implementation to always load all DLLs.
12655 Add 0x1000 offset to DLL base address when calling
12656 win32_add_one_solib.
12657 (child_initialization_done): New static global.
12658 (do_initial_child_stuff): Set child_initialization_done to
12659 zero during child initialization, and 1 after. Replace call
12660 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
12662 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
12663 (handle_unload_dll): Add function documentation.
12664 (get_child_debug_event): Ignore load and unload DLL events
12665 during child initialization.
12667 2014-02-20 Doug Evans <dje@google.com>
12669 Remove global all_lwps.
12670 * inferiors.h (ptid_of): Move here from linux-low.h.
12671 (pid_of, lwpid_of): Ditto.
12672 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
12673 parameter is a struct thread_info * now.
12674 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
12675 directly. Pass &all_threads to find_inferior instead of &all_lwps.
12676 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
12678 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
12679 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
12680 * linux-arm-low.c (update_registers_callback): Update, "entry"
12681 parameter is a struct thread_info * now.
12682 Fetch lwpid from current_inferior directly.
12683 (arm_insert_point): Pass &all_threads to find_inferior instead of
12685 (arm_remove_point): Ditto.
12686 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
12687 (arm_prepare_to_resume): Fetch pid from thread.
12688 (arm_read_description): Fetch lwpid from current_inferior directly.
12689 * linux-low.c (all_lwps): Delete.
12690 (delete_lwp): Delete call to remove_inferior.
12691 (handle_extended_wait): Fetch lwpid from thread.
12692 (add_lwp): Don't set lwp->entry.id. Remove call to
12693 add_inferior_to_list.
12694 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
12695 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
12696 (kill_one_lwp_callback): Ditto.
12697 (linux_kill): Don't dereference NULL pointer.
12698 Fetch ptid,lwpid from thread.
12699 (get_detach_signal): Fetch ptid from thread.
12700 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
12701 Simplify call to regcache_invalidate_thread.
12702 (delete_lwp_callback): Update, "entry" parameter is a
12703 struct thread_info * now. Fetch pid from thread.
12704 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
12705 (status_pending_p_callback): Update, "entry" parameter is a
12706 struct thread_info * now. Fetch ptid from thread.
12707 (find_lwp_pid): Update, "entry" parameter is a
12708 struct thread_info * now.
12709 (linux_wait_for_lwp): Fetch pid from thread.
12710 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
12711 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
12712 (enqueue_one_deferred_signal): Fetch lwpid from thread.
12713 (dequeue_one_deferred_signal): Ditto.
12714 (cancel_breakpoint): Fetch ptid from current_inferior.
12715 (linux_wait_for_event): Pass &all_threads to find_inferior,
12716 not &all_lwps. Fetch ptid, lwpid from thread.
12717 (count_events_callback): Update, "entry" parameter is a
12718 struct thread_info * now.
12719 (select_singlestep_lwp_callback): Ditto.
12720 (select_event_lwp_callback): Ditto.
12721 (cancel_breakpoints_callback): Ditto.
12722 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
12724 (select_event_lwp): Ditto. Fetch ptid from event_thread.
12725 (unsuspend_one_lwp): Update, "entry" parameter is a
12726 struct thread_info * now.
12727 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
12729 (linux_stabilize_threads): Ditto. And for for_each_inferior.
12730 Fetch lwpid from thread, not lwp.
12731 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
12732 Pass &all_threads to find_inferior, not &all_lwps.
12733 (send_sigstop): Fetch lwpid from thread, not lwp.
12734 (send_sigstop_callback): Update, "entry" parameter is a
12735 struct thread_info * now.
12736 (suspend_and_send_sigstop_callback): Ditto.
12737 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
12738 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
12739 struct thread_info * now.
12740 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
12742 (lwp_running): Update, "entry" parameter is a
12743 struct thread_info * now.
12744 (stop_all_lwps): Fetch ptid from thread.
12745 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
12746 (linux_resume_one_lwp): Fetch lwpid from thread.
12747 (linux_set_resume_request): Update, "entry" parameter is a
12748 struct thread_info * now. Fetch pid, lwpid from thread.
12749 (resume_status_pending_p): Update, "entry" parameter is a
12750 struct thread_info * now.
12751 (need_step_over_p): Ditto. Fetch lwpid from thread.
12752 (start_step_over): Fetch lwpid from thread.
12753 (linux_resume_one_thread): Update, "entry" parameter is a
12754 struct thread_info * now. Fetch lwpid from thread.
12755 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
12756 (proceed_one_lwp): Update, "entry" parameter is a
12757 struct thread_info * now. Fetch lwpid from thread.
12758 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
12759 struct thread_info * now.
12760 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
12761 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
12762 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
12764 (regsets_store_inferior_registers): Ditto.
12765 (fetch_register, store_register): Ditto.
12766 (linux_read_memory, linux_write_memory): Ditto.
12767 (linux_request_interrupt): Ditto.
12768 (linux_read_auxv): Ditto.
12769 (linux_xfer_siginfo): Ditto.
12770 (linux_qxfer_spu): Ditto.
12771 (linux_qxfer_libraries_svr4): Ditto.
12772 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
12773 moved to inferiors.h.
12775 (get_thread_lwp): Update.
12776 (struct lwp_info): Delete member "entry". Simplify comment for
12778 (all_lwps): Delete.
12779 * linux-mips-low.c (mips_read_description): Fetch lwpid from
12780 current_inferior directly.
12781 (update_watch_registers_callback): Update, "entry" parameter is a
12782 struct thread_info * now. Fetch pid from thread.
12783 (mips_linux_prepare_to_resume): Fetch ptid from thread.
12784 (mips_insert_point): Fetch lwpid from current_inferior.
12785 Pass &all_threads to find_inferior, not &all_lwps.
12786 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
12787 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
12789 (mips_stopped_data_address): Ditto.
12790 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
12792 * linux-tile-low.c (tile_arch_setup): Ditto.
12793 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
12794 (update_debug_registers_callback): Update, "entry" parameter is a
12795 struct thread_info * now. Fetch pid from thread.
12796 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
12797 Pass &all_threads to find_inferior, not &all_lwps.
12798 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
12799 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
12800 Pass &all_threads to find_inferior, not &all_lwps.
12801 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
12802 (i386_dr_low_get_status): Ditto.
12803 (x86_linux_prepare_to_resume): Fetch ptid from thread.
12804 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
12805 (x86_linux_read_description): Ditto.
12806 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
12808 2014-02-20 Doug Evans <dje@google.com>
12810 * inferiors.c (get_first_inferior): Fix buglet.
12812 2014-02-19 Doug Evans <dje@google.com>
12814 * gdbthread.h (add_thread): Change result type to struct thread_info *.
12815 * inferiors.c (add_thread): Change result type to struct thread_info *.
12816 All callers updated.
12817 (add_lwp): Call add_thread here instead of in callers.
12818 All callers updated.
12819 * linux-low.h (get_lwp_thread): Rewrite.
12820 (struct lwp_info): New member "thread".
12822 2014-02-19 Doug Evans <dje@google.com>
12824 * linux-low.c (add_lwp): Change result to struct lwp_info *.
12825 All callers updated.
12827 2014-02-19 Doug Evans <dje@google.com>
12829 * inferiors.c (add_thread): Fix whitespace.
12831 2014-02-19 Doug Evans <dje@google.com>
12833 * dll.c (clear_dlls): Replace accessing list implemention details
12835 * gdbthread.h (get_first_thread): Declare.
12836 * inferiors.c (for_each_inferior_with_data): New function.
12837 (get_first_thread): New function.
12838 (find_thread_ptid): Simplify.
12839 (get_first_inferior): New function.
12840 (clear_list): Delete.
12841 (one_inferior_p): New function.
12842 (clear_inferior_list): New function.
12843 (clear_inferiors): Update.
12844 * inferiors.h (for_each_inferior_with_data): Declare.
12845 (clear_inferior_list): Declare.
12846 (one_inferior_p): Declare.
12847 (get_first_inferior): Declare.
12848 * linux-low.c (linux_wait_for_event): Replace accessing list
12849 implemention details with API function.
12850 * server.c (target_running): Ditto.
12851 (accumulate_file_name_length): New function.
12852 (emit_dll_description): New function.
12853 (handle_qxfer_libraries): Replace accessing list implemention
12854 details with API function.
12855 (handle_qxfer_threads_worker): New function.
12856 (handle_qxfer_threads_proper): Replace accessing list implemention
12857 details with API function.
12858 (handle_query): Ditto.
12859 (visit_actioned_threads_callback_ftype): New typedef.
12860 (visit_actioned_threads_data): New struct.
12861 (visit_actioned_threads): Rewrite to be find_inferior callback.
12862 (resume): Call find_inferior.
12863 (handle_status): Replace accessing list implemention
12864 details with API function.
12865 (process_serial_event): Replace accessing list implemention details
12867 * target.c (set_desired_inferior): Replace accessing list implemention
12868 details with API function.
12869 * tracepoint.c (same_process_p): New function.
12870 (gdb_agent_about_to_close): Replace accessing list implemention
12871 details with API function.
12872 * win32-low.c (child_delete_thread): Replace accessing list
12873 implemention details with API function.
12874 (match_dll_by_basename): New function.
12875 (dll_is_loaded_by_basename): New function.
12876 (win32_ensure_ntdll_loaded): Replace accessing list implemention
12877 details call to dll_is_loaded_by_basename.
12879 2014-02-19 Doug Evans <dje@google.com>
12881 * dll.h (struct dll_info): Add comment.
12882 * gdbthread.h (struct thread_info): Add comment.
12883 (current_ptid): Simplify.
12884 * inferiors.c (add_process): Update.
12885 (remove_process): Update.
12886 * inferiors.h (struct process_info): Rename member "head" to "entry".
12887 * linux-low.c (delete_lwp): Update.
12889 (last_thread_of_process_p): Update.
12890 (kill_one_lwp_callback, linux_kill): Update.
12891 (status_pending_p_callback): Update.
12892 (wait_for_sigstop): Update. Simplify read of ptid.
12893 (start_step_over): Update.
12894 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
12895 (get_lwp_thread): Update.
12896 (struct lwp_info): Rename member "head" to "entry".
12897 * regcache.h (inferior_list_entry): Delete.
12898 * server.c (kill_inferior_callback): Update.
12899 (detach_or_kill_inferior_callback): Update.
12900 (print_started_pid): Update.
12901 (print_attached_pid): Update.
12902 (process_serial_event): Simplify read of ptid.
12903 * thread-db.c (thread_db_create_event): Update.
12904 (thread_db_get_tls_address): Update.
12905 * win32-low.c (current_inferior_ptid): Simplify.
12907 2014-02-19 Tom Tromey <tromey@redhat.com>
12909 * target.h (struct target_ops) <supports_btrace>: Add target_ops
12911 (target_supports_btrace): Update.
12913 2014-02-14 Yao Qi <yao@codesourcery.com>
12915 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
12916 (rsp-low-ipa.o): New target.
12918 2014-02-12 Tom Tromey <tromey@redhat.com>
12920 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
12921 convert_ascii_to_int.
12922 * regcache.c (registers_to_string): Likewise.
12923 * remote-utils.c (decode_M_packet): Likewise.
12924 * server.c (process_serial_event): Likewise.
12926 2014-02-12 Tom Tromey <tromey@redhat.com>
12928 * server.c (handle_query, handle_v_run): Use hex2bin, not
12930 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
12932 2014-02-12 Tom Tromey <tromey@redhat.com>
12934 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
12935 convert_int_to_ascii.
12936 * regcache.c (registers_to_string, collect_register_as_string):
12938 * remote-utils.c (look_up_one_symbol, relocate_instruction):
12940 * server.c (process_serial_event): Likewise.
12941 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
12942 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
12944 2014-02-12 Tom Tromey <tromey@redhat.com>
12946 * remote-utils.c (look_up_one_symbol, monitor_output): Use
12947 bin2hex, not hexify.
12948 * tracepoint.c (cmd_qtstatus): Likewise.
12950 2014-02-12 Tom Tromey <tromey@redhat.com>
12952 * remote-utils.c (monitor_output): Pass explicit length to
12955 2014-02-12 Tom Tromey <tromey@redhat.com>
12957 * tracepoint.c: Include rsp-low.h.
12958 * server.c: Include rsp-low.h.
12959 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
12960 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
12962 * remote-utils.c: Include rsp-low.h.
12963 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
12964 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
12965 (convert_int_to_ascii, convert_ascii_to_int): Move to
12967 * regcache.c: Include rsp-low.h.
12968 * ax.c: Include rsp-low.h.
12969 * Makefile.in (SFILES): Add common/rsp-low.c.
12970 (OBS): Add rsp-low.o.
12971 (rsp-low.o): New target.
12973 2014-02-12 Tom Tromey <tromey@redhat.com>
12975 * utils.h (pulongest, plongest, phex_nz): Don't declare.
12976 Include print-utils.h.
12977 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
12978 (plongest, thirty_two, phex_nz): Remove.
12979 * Makefile.in (SFILES): Add common/print-utils.c.
12980 (OBS): Add print-utils.o.
12981 (print-utils-ipa.o): New target.
12982 (print-utils.o): New target.
12983 (IPA_OBJS): Add print-utils-ipa.o.
12985 2014-02-06 Tom Tromey <tromey@redhat.com>
12987 * Makefile.in (SFILES): Fix indentation.
12989 2014-02-05 Doug Evans <dje@google.com>
12991 * linux-low.c (linux_wait_for_event): Improve comment.
12992 (linux_wait_1): Keep current_inferior in sync with event_child.
12994 2014-01-22 Doug Evans <dje@google.com>
12996 * gdbthread.h (gdb_id_to_thread): Delete, unused.
12998 2014-01-22 Doug Evans <dje@google.com>
13000 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
13001 * configure: Regenerate.
13002 * config.in: Regenerate.
13003 * Makefile.in (SFILES): Add debug.c.
13004 (OBS): Add debug.o.
13005 * debug.c: New file.
13006 * debug.h: New file.
13007 * linux-aarch64-low.c (*): Update all debugging printfs to use
13008 debug_printf instead of fprintf.
13009 * linux-arm-low.c (*): Ditto.
13010 * linux-cris-low.c (*): Ditto.
13011 * linux-crisv32-low.c (*): Ditto.
13012 * linux-m32r-low.c (*): Ditto.
13013 * linux-sparc-low.c (*): Ditto.
13014 * linux-x86.c (*): Ditto.
13015 * linux-low.c (*): Ditto.
13016 (linux_wait_1): Add calls to debug_enter, debug_exit.
13017 (linux_wait): Remove redundant debugging printf.
13018 (stop_all_lwps): Add calls to debug_enter, debug_exit.
13019 (linux_resume, unstop_all_lwps): Ditto.
13020 * mem-break.c (*): Update all debugging printfs to use
13021 debug_printf instead of fprintf.
13022 * remote-utils.c (*): Ditto.
13023 * thread-db.c (*): Ditto.
13024 * server.c #include <ctype.h>, "gdb_vecs.h".
13025 (debug_threads): Moved to debug.c.
13026 (*): Update all debugging printfs to use debug_printf instead of
13028 (start_inferior): Replace call to fflush with call to debug_flush.
13029 (monitor_show_help): Mention set debug-format.
13030 (parse_debug_format_options): New function.
13031 (handle_monitor_command): Handle "monitor set debug-format".
13032 (gdbserver_usage): Mention --debug-format.
13033 (main): Parse --debug-format.
13034 * server.h (debug_threads): Declaration moved to debug.h.
13035 #include "debug.h".
13036 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
13037 trace_debug_1 that uses debug_printf.
13038 (tracepoint_look_up_symbols): Update all debugging printfs to use
13039 debug_printf instead of fprintf.
13041 2014-01-20 Baruch Siach <baruch@tkos.co.il>
13043 * linux-xtensa-low.c: Include asm/ptrace.h instead of
13046 2014-01-17 Pedro Alves <palves@redhat.com>
13049 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
13050 defined after including gdb_proc_service.h.
13052 2014-01-16 Doug Evans <dje@google.com>
13054 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
13055 (match_dll): Use it.
13057 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13059 * target.h (target_ops) <read_btrace>: Change parameters and
13060 return type to allow error reporting.
13061 * server.c (handle_qxfer_btrace): Support delta reads. Pass
13062 trace reading errors on.
13063 * linux-low.c (linux_low_read_btrace): Pass trace reading
13065 (linux_low_disable_btrace): New.
13067 2014-01-15 Doug Evans <dje@google.com>
13069 * inferiors.c (thread_id_to_gdb_id): Delete.
13070 * inferiors.h (thread_id_to_gdb_id): Delete.
13072 2014-01-13 Eli Zaretskii <eliz@gnu.org>
13074 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
13075 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
13078 2014-01-08 Pedro Alves <palves@redhat.com>
13080 * server.c (handle_status): Don't discard previous queued stop
13081 replies or thread's pending status here.
13082 (main) <disconnection>: Do it here instead.
13084 2014-01-08 Pedro Alves <palves@redhat.com>
13086 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
13087 * server.c (visit_actioned_threads, handle_pending_status): New
13089 (handle_v_cont): Factor out parts to ...
13090 (resume): ... this new function. If in all-stop, and a thread
13091 being resumed has a pending status, report it without actually
13093 (myresume): Adjust to use the new 'resume' function.
13094 (clear_pending_status_callback, set_pending_status_callback)
13095 (find_status_pending_thread_callback): New functions.
13096 (handle_status): Handle the case of multiple threads having
13097 interesting statuses to report. Report threads' real last signal
13098 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
13099 with an interesting thread to report the status for, instead of
13100 always reporting the status of the first thread.
13102 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13104 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
13105 * gdbreplay.c (gdbreplay_version): Likewise.
13107 2013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
13109 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
13110 iov.iov_len with the real length in use.
13112 2013-12-13 Joel Brobecker <brobecker@adacore.com>
13114 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
13115 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
13116 for all targets that use win32-low.c.
13117 * win32-low.c (win32_ensure_ntdll_loaded): New function.
13118 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
13120 2013-12-13 Pedro Alves <palves@redhat.com>
13122 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
13123 if equal to TARGET_WAITKIND_LOADED.
13124 * win32-low.c (cached_status): New static global.
13125 (win32_wait): Add declaration.
13126 (do_initial_child_stuff): Flush all initial pending debug events
13127 up to the initial breakpoint.
13128 (win32_wait): If CACHED_STATUS was set, return that instead
13129 of doing a real wait. Remove the code resuming the execution
13130 of the inferior after receiving a TARGET_WAITKIND_LOADED event
13131 during the initial phase. Also remove the code changing
13132 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
13133 TARGET_WAITKIND_STOPPED.
13135 2013-12-11 Yao Qi <yao@codesourcery.com>
13137 * notif.c (handle_notif_ack): Return 0 if no notification
13140 2013-11-20 Doug Evans <dje@google.com>
13142 * linux-low.c (linux_set_resume_request): Fix comment.
13144 2013-11-20 Doug Evans <dje@google.com>
13146 * linux-low.c (resume_status_pending_p): Tweak comment.
13148 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
13150 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
13151 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
13152 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
13153 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
13154 (srv_amd64_regobj): Add amd64-mpx.o.
13155 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
13156 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
13157 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
13158 * i387-fp.c (num_pl_bnd_register) Added constant.
13159 (num_pl_bnd_cfg_registers) Added constant.
13160 (struct i387_xsave) Added reserved area and MPX fields.
13161 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
13162 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
13164 (tdesc_i386_mpx_linux): Add MPX amd64 target.
13165 (init_registers_amd64_mpx_linux): Declare new function.
13166 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
13167 (x86_64_regmap): Add MPX registers.
13168 (x86_linux_read_description): Add MPX case.
13169 (initialize_low_arch): Initialize MPX targets.
13171 2013-11-18 Tom Tromey <tromey@redhat.com>
13173 * configure: Rebuild.
13174 * configure.ac: Don't check for stdlib.h.
13175 * gdbreplay.c: Unconditionally include stdlib.h.
13177 2013-11-18 Tom Tromey <tromey@redhat.com>
13179 * config.in: Rebuild.
13180 * configure: Rebuild.
13181 * configure.ac: Don't use AC_HEADER_DIRENT.
13183 2013-11-18 Tom Tromey <tromey@redhat.com>
13185 * server.h: Don't check HAVE_STRING_H.
13186 * gdbreplay.c: Don't check HAVE_STRING_H.
13187 * configure: Rebuild.
13189 2013-11-18 Tom Tromey <tromey@redhat.com>
13191 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
13194 2013-11-08 Tom Tromey <tromey@redhat.com>
13196 * configure, config.in: Rebuild.
13197 * configure.ac: Remove unused configury.
13199 2013-11-08 Tom Tromey <tromey@redhat.com>
13201 * acinclude.m4: Include common.m4, codeset.m4.
13202 * configure, config.in: Rebuild.
13203 * configure.ac: Use GDB_AC_COMMON.
13205 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
13207 * linux-s390-low.c (HWCAP_S390_TE): New define.
13208 (s390_arch_setup): Consider the TE field in the HWCAP for
13209 determining 'have_regset_tdb'.
13211 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
13214 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
13217 2013-10-02 Pedro Alves <palves@redhat.com>
13219 * server.c (process_serial_event): Don't output "GDBserver
13220 exiting" if GDB is connected through stdio.
13221 * target.c (mywait): Likewise, be silent if GDB is connected
13224 2013-10-01 Joel Brobecker <brobecker@adacore.com>
13226 * lynx-low.c (lynx_add_threads_after_attach): New function.
13227 (lynx_attach): Remove call to add_thread. Add call to
13228 lynx_add_threads_after_attach instead.
13230 2013-09-28 Mike Frysinger <vapier@gentoo.org>
13232 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
13233 * config.in, configure: Regenerated.
13235 2013-09-18 Yao Qi <yao@codesourcery.com>
13238 * server.c (start_inferior): Clear 'resume_info'.
13240 2013-09-16 Jiong Wang <jiwang@tilera.com>
13242 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
13245 2013-09-16 Jiong Wang <jiwang@tilera.com>
13247 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
13248 linux-tile-low.o to srv_tgtobj.
13250 2013-09-16 Will Newton <will.newton@linaro.org>
13252 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
13255 2013-09-06 Pedro Alves <palves@redhat.com>
13257 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
13258 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
13259 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
13260 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
13261 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
13262 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
13264 2013-09-06 Pedro Alves <palves@redhat.com>
13266 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
13267 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
13269 2013-09-06 Pedro Alves <palves@redhat.com>
13271 * linux-amd64-ipa.c: Include tracepoint.h.
13272 * linux-i386-ipa.c: Include tracepoint.h.
13274 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
13276 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
13277 (ps_get_thread_area): New function.
13279 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
13281 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
13282 (initialize_low_arch): Call init_registers_crisv32 rather than
13283 init_register_crisv32.
13285 2013-09-05 Pedro Alves <palves@redhat.com>
13287 * server.h (handle_vFile, hostio_last_error_from_errno): Move
13289 * hostio.h: ... this new file.
13290 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
13291 win32-low.c: Include hostio.h.
13293 2013-09-05 Pedro Alves <palves@redhat.com>
13295 * server.h (gdb_client_data, handler_func, callback_handler_func)
13296 (delete_file_handler, add_file_handler, append_callback_event)
13297 (delete_callback_event, start_event_loop, initialize_event_loop):
13298 Move to event-loop.h and include it.
13299 * event-loop.h: New file.
13301 2013-09-05 Pedro Alves <palves@redhat.com>
13303 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
13304 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
13305 (loaded_dll, unloaded_dll): Move to ...
13306 * dll.h: ... this new file.
13307 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
13309 2013-09-05 Pedro Alves <palves@redhat.com>
13311 * server.h (current_process, get_thread_process, all_processes)
13312 (add_inferior_to_list, for_each_inferior, current_inferior)
13313 (remove_inferior, add_process, remove_process, find_process_pid)
13314 (have_started_inferiors_p, have_attached_inferiors_p)
13315 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
13316 (clear_inferiors, find_inferior, find_inferior_id)
13317 (inferior_target_data, set_inferior_target_data)
13318 (inferior_regcache_data, set_inferior_regcache_data): Move to
13319 inferiors.h, and include it.
13320 * inferiors.h: New file.
13322 2013-09-05 Pedro Alves <palves@redhat.com>
13324 * server.h (struct emit_ops, current_insn_ptr, emit_error):
13328 2013-09-05 Pedro Alves <palves@redhat.com>
13330 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
13332 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
13333 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
13334 (handle_tracepoint_general_set, handle_tracepoint_query)
13335 (tracepoint_finished_step, tracepoint_was_hit)
13336 (release_while_stepping_state_list, current_traceframe)
13337 (in_readonly_region, traceframe_read_mem)
13338 (fetch_traceframe_registers, traceframe_read_sdata)
13339 (traceframe_read_info, struct fast_tpoint_collect_status)
13340 (fast_tracepoint_collecting, force_unlock_trace_buffer)
13341 (handle_tracepoit_bkpts, initialize_low_tracepoint)
13342 (supply_fast_tracepoint_registers)
13343 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
13344 (ipa_tdesc, claim_trampoline_space)
13345 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
13346 (agent_mem_read, agent_get_trace_state_variable_value)
13347 (agent_set_trace_state_variable_value, agent_tsv_read)
13348 (agent_mem_read_string, get_raw_reg_func_addr)
13349 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
13350 * tracepoint.h: ... this new file.
13352 2013-09-05 Pedro Alves <palves@redhat.com>
13354 * server.h (perror_with_name, error, fatal, warning, paddress)
13355 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
13357 * utils.h: New file.
13359 2013-09-05 Pedro Alves <palves@redhat.com>
13361 * server.h (remote_debug, noack_mode, transport_is_reliable)
13362 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
13363 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
13364 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
13365 (write_enn, initialize_async_io, enable_async_io)
13366 (disable_async_io, check_remote_input_interrupt_request)
13367 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
13368 (dead_thread_notify, prepare_resume_reply)
13369 (decode_address_to_semicolon, decode_address, decode_m_packet)
13370 (decode_M_packet, decode_X_packet, decode_xfer_write)
13371 (decode_search_memory_packet, unhexify, hexify)
13372 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
13373 (look_up_one_symbol, relocate_instruction)
13374 (monitor_output): Move to remote-utils.h, and include it.
13375 * remote-utils.h: New file.
13377 2013-09-05 Pedro Alves <palves@redhat.com>
13379 * server.h (_): Delete.
13381 2013-09-02 Pedro Alves <palves@redhat.com>
13383 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
13384 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
13386 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
13388 2013-09-02 Pierre Muller <muller@sourceware.org>
13390 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
13391 or WriteProcessMemory complete successfully and handle
13392 ERROR_PARTIAL_COPY error.
13394 2013-09-02 Pedro Alves <palves@redhat.com>
13396 * server.c (gdb_read_memory): Return -1 on traceframe memory read
13397 error instead of EIO.
13399 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
13402 * linux-low.c: Include filestuff.h.
13403 (linux_create_inferior) <pid == 0>: Call close_most_fds.
13404 * lynx-low.c: Include filestuff.h.
13405 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
13406 * server.c: Include filestuff.h.
13407 (main): Call notice_open_fds.
13408 * spu-low.c: Include filestuff.h.
13409 (spu_create_inferior) <pid == 0>: Call close_most_fds.
13411 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
13413 * Makefile.in: Explain why ../target and ../nat are not
13414 listed as include file search paths.
13415 (linux-waitpid.o): New object file rule.
13416 * configure.srv (srv_native_linux_obj): New variable.
13417 Replace all occurrences of linux native object files with
13418 $srv_native_linux_obj.
13419 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
13420 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
13421 (linux_enable_event_reporting): Remove declaration.
13422 (my_waitpid): Moved to common/linux-waitpid.c.
13423 (linux_wait_for_event): Pass ptid when calling
13424 linux_enable_event_reporting.
13425 (linux_supports_tracefork_flag): Remove.
13426 (linux_enable_event_reporting): Likewise.
13427 (linux_tracefork_grandchild): Remove.
13428 (STACK_SIZE): Moved to common/linux-ptrace.c.
13429 (linux_tracefork_child): Remove.
13430 (linux_test_for_tracefork): Remove.
13431 (linux_look_up_symbols): Call linux_supports_traceclone.
13432 (initialize_low): Remove call to linux_test_for_tracefork.
13433 * linux-low.h (PTRACE_TYPE_ARG3): Move to
13434 common/linux-ptrace.h.
13435 (PTRACE_TYPE_ARG4): Likewise.
13436 Include linux-ptrace.h.
13438 2013-08-21 Pedro Alves <palves@redhat.com>
13440 * config.in: Renegerate.
13442 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
13444 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
13445 (SFILES): Remove $(srcdir)/common/target-common.c and
13446 add $(srcdir)/target/waitstatus.c.
13447 (OBS): Remove target-common.o and add waitstatus.o.
13448 (server_h): Remove $(srcdir)/../common/target-common.h and
13449 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
13450 and $(srcdir)/../target/waitstatus.h.
13451 (target-common.o): Remove.
13452 (waitstatus.o): New target object file.
13453 * target.h: Do not include target-common.h and
13454 include target/resume.h, target/wait.h and
13455 target/waitstatus.h.
13457 2013-08-13 Luis Machado <lgustavo@codesourcery.com>
13459 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13460 to PTRACE_TYPE_ARG3.
13461 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13462 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
13464 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
13465 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
13467 2013-07-27 Jie Zhang <jie@codesourcery.com>
13468 Daniel Jacobowitz <dan@codesourcery.com>
13469 Yao Qi <yao@codesourcery.com>
13471 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
13472 (mips-linux-watch.o): New rule.
13473 (mips_linux_watch_h): New variable.
13474 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
13476 * linux-mips-low.c: Include mips-linux-watch.h.
13477 (struct arch_process_info, struct arch_lwp_info): New.
13478 (update_watch_registers_callback): New function.
13479 (mips_linux_new_process, mips_linux_new_thread) New functions.
13480 (mips_linux_prepare_to_resume, mips_insert_point): New
13482 (mips_remove_point, mips_stopped_by_watchpoint): New
13484 (rsp_bp_type_to_target_hw_bp_type): New function.
13485 (mips_stopped_data_address): New function.
13486 (the_low_target): Add watchpoint support functions.
13488 2013-07-27 Yao Qi <yao@codesourcery.com>
13490 * i386-low.c: Include break-common.h.
13491 (enum target_hw_bp_type): Remove.
13493 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
13495 * Makefile.in (SFILES): /common/target-common.c.
13496 (OBS): Add target-common.o.
13497 (server_h): Add $(srcdir)/../common/target-common.h.
13498 (target-common.o): New target.
13499 * server.c (queue_stop_reply_callback): Free
13500 status string after use.
13501 * target.c (target_waitstatus_to_string): Remove.
13502 * target.h: Include target-common.h.
13503 (resume_kind): Likewise.
13504 (target_waitkind): Likewise.
13505 (target_waitstatus): Likewise.
13506 (TARGET_WNOHANG): Likewise.
13508 2013-07-04 Yao Qi <yao@codesourcery.com>
13510 * Makefile.in (host_alias): Use @host_noncanonical@.
13511 (target_alias): Use @target_noncanonical@.
13512 * configure.ac: Use ACX_NONCANONICAL_TARGET and
13513 ACX_NONCANONICAL_HOST.
13514 * configure: Regenerated.
13517 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13519 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13520 * configure: Rebuild.
13521 * Makefile.in (version_host, version_target): Get from configure.
13522 (version.c): Use $(version_host) and $(version_target).
13524 2013-07-03 Pedro Alves <palves@redhat.com>
13526 * Makefile.in (config.status): Depend on development.sh.
13527 * acinclude.m4: Include libmcheck.m4.
13528 * configure: Regenerate.
13530 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13532 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
13533 attribute inside the parentheses.
13534 (winapi_DebugSetProcessKillOnExit): Ditto.
13535 (winapi_DebugBreakProcess): Ditto.
13536 (winapi_GenerateConsoleCtrlEvent): Ditto.
13538 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13540 * notif.h (notif_event): Add a dummy member to avoid compiler
13543 2013-07-01 Pedro Alves <palves@redhat.com>
13545 * hostio.c (HOSTIO_PATH_MAX): Define.
13546 (require_filename, handle_open, handle_unlink, handle_readlink):
13549 2013-07-01 Pedro Alves <palves@redhat.com>
13551 * server.h: Include "pathmax.h".
13552 * linux-low.c: Don't include sys/param.h.
13553 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
13555 * win32-low.c: Don't include sys/param.h.
13556 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
13558 2013-07-01 Pedro Alves <palves@redhat.com>
13560 * event-loop.c: Don't check HAVE_UNISTD_H before including
13562 * gdbreplay.c: Likewise.
13563 * remote-utils.c: Likewise.
13564 * server.c: Likewise.
13565 * configure.ac: Don't check for unistd.h.
13566 * configure: Regenerate.
13568 2013-06-28 Tom Tromey <tromey@redhat.com>
13570 * Makefile.in (version.c): Use version.in, not
13573 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13575 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13576 * configure: Rebuild.
13577 * Makefile.in (version_host, version_target): Get from configure.
13578 (version.c): Use $(version_host) and $(version_target).
13580 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13582 Fix trace-status to output user name without trailing colon.
13583 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
13585 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13587 Fix trace-status to output proper start-time and stop-time.
13588 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
13589 output start time and stop time in hex as gdb expects.
13591 2013-06-26 Pedro Alves <pedro@codesourcery.com>
13593 * tracepoint.c (build_traceframe_info_xml): Output trace state
13594 variables present in the trace buffer.
13596 2013-06-24 Tom Tromey <tromey@redhat.com>
13598 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
13600 (version.o): Remove.
13601 * gdbreplay.c: Include version.h.
13602 (version, host_name): Don't declare.
13603 * server.h: Include version.h.
13604 (version, host_name): Don't declare.
13606 2013-06-12 Pedro Alves <palves@redhat.com>
13608 * linux-x86-low.c (linux_is_elf64): Delete global.
13609 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
13610 with local linux_pid_exe_is_elf_64_file use.
13612 2013-06-11 Pedro Alves <palves@redhat.com>
13614 * linux-low.c (regset_disabled, disable_regset): New functions.
13615 (regsets_fetch_inferior_registers)
13616 (regsets_store_inferior_registers): Use them.
13617 (initialize_regsets_info); Don't allocate the disabled_regsets
13619 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
13622 2013-06-11 Pedro Alves <palves@redhat.com>
13624 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
13627 2013-06-11 Pedro Alves <palves@redhat.com>
13629 * linux-x86-low.c (initialize_low_arch): Call
13630 init_registers_x32_avx_linux.
13632 2013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13634 Fix compatibility with Android Bionic.
13635 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
13638 2013-06-07 Pedro Alves <palves@redhat.com>
13641 * Makefile.in (OBS): Add tdesc.o.
13642 (IPA_OBJS): Add tdesc-ipa.o.
13643 (tdesc-ipa.o): New rule.
13644 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
13646 * linux-low.c (new_inferior): Delete.
13647 (disabled_regsets, num_regsets): Delete.
13648 (linux_add_process): Adjust to set the new per-process
13650 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
13651 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
13652 was a stop. When calling arch_setup, switch the current inferior
13653 to the thread that got an event.
13654 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
13655 (regsets_fetch_inferior_registers)
13656 (regsets_store_inferior_registers): New regsets_info parameter.
13658 (linux_register_in_regsets): New regs_info parameter. Adjust to
13660 (register_addr, fetch_register, store_register): New usrregs_info
13661 parameter. Adjust to use it.
13662 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
13663 parameter regs_info. Adjust to use it.
13664 (linux_fetch_registers): Get the current inferior's regs_info, and
13666 (linux_store_registers): Ditto.
13667 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
13668 (initialize_low): Don't initialize the target_regsets here. Call
13669 initialize_low_arch.
13670 * linux-low.h (target_regsets): Delete declaration.
13671 (struct regsets_info): New.
13672 (struct usrregs_info): New.
13673 (struct regs_info): New.
13674 (struct process_info_private) <new_inferior>: New field.
13675 (struct linux_target_ops): Delete the num_regs, regmap, and
13676 regset_bitmap fields. New field regs_info.
13677 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
13678 * i387-fp.c (num_xmm_registers): Delete.
13679 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
13680 calls to new interface.
13681 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
13682 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
13683 Infer the number of xmm registers from the regcache's target
13685 * i387-fp.h (num_xmm_registers): Delete.
13686 * inferiors.c (add_thread): Don't install the thread's regcache
13688 * proc-service.c (gregset_info): Fetch the current inferior's
13689 regs_info. Adjust to use it.
13690 * regcache.c: Include tdesc.h.
13691 (register_bytes, reg_defs, num_registers)
13692 (gdbserver_expedite_regs): Delete.
13693 (get_thread_regcache): If the thread doesn't have a regcache yet,
13694 create one, instead of aborting gdbserver.
13695 (regcache_invalidate_one): Rename to ...
13696 (regcache_invalidate_thread): ... this.
13697 (regcache_invalidate_one): New.
13698 (regcache_invalidate): Only invalidate registers of the current
13700 (init_register_cache): Add target_desc parameter, and use it.
13701 (new_register_cache): Ditto. Assert the target description has a
13702 non zero registers_size.
13703 (regcache_cpy): Add assertions. Adjust.
13704 (realloc_register_cache, set_register_cache): Delete.
13705 (registers_to_string, registers_from_string): Adjust.
13706 (find_register_by_name, find_regno, find_register_by_number)
13707 (register_cache_size): Add target_desc parameter, and use it.
13708 (free_register_cache_thread, free_register_cache_thread_one)
13709 (regcache_release, register_cache_size): New.
13710 (register_size): Add target_desc parameter, and use it.
13711 (register_data, supply_register, supply_register_zeroed)
13712 (supply_regblock, supply_register_by_name, collect_register)
13713 (collect_register_as_string, collect_register_by_name): Adjust.
13714 * regcache.h (struct target_desc): Forward declare.
13715 (struct regcache) <tdesc>: New field.
13716 (init_register_cache, new_register_cache): Add target_desc
13718 (regcache_invalidate_thread): Declare.
13719 (regcache_invalidate_one): Delete declaration.
13720 (regcache_release): Declare.
13721 (find_register_by_number, register_cache_size, register_size)
13722 (find_regno): Add target_desc parameter.
13723 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
13725 * remote-utils.c: Include tdesc.h.
13726 (outreg, prepare_resume_reply): Adjust.
13727 * server.c: Include tdesc.h.
13728 (gdbserver_xmltarget): Delete declaration.
13729 (get_features_xml, process_serial_event): Adjust.
13730 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
13732 (struct process_info) <tdesc>: New field.
13733 (ipa_tdesc): Declare.
13734 * tdesc.c: New file.
13735 * tdesc.h: New file.
13736 * tracepoint.c: Include tdesc.h.
13737 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
13738 (get_context_regcache): Adjust to pass ipa_tdesc down.
13739 (do_action_at_tracepoint): Adjust to get the register cache size
13740 from the context regcache's description.
13741 (traceframe_walk_blocks): Adjust to get the register cache size
13742 from the current trace frame's description.
13743 (traceframe_get_pc): Adjust to get current trace frame's
13744 description and pass it down.
13745 (gdb_collect): Adjust to get the register cache size from the
13747 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
13748 (gdbserver_xmltarget): Delete.
13749 (initialize_low_tracepoint): Set the ipa's target description.
13750 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
13751 (initialize_low_tracepoint): Set the ipa's target description.
13752 * linux-x86-low.c: Include tdesc.h.
13753 [__x86_64__] (is_64bit_tdesc): New.
13754 (ps_get_thread_area, x86_get_thread_area): Use it.
13755 (i386_cannot_store_register): Rename to ...
13756 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
13757 (i386_cannot_fetch_register): Rename to ...
13758 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
13759 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
13761 (target_regsets): Rename to ...
13762 (x86_regsets): ... this.
13763 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
13765 (x86_siginfo_fixup): Use is_64bit_tdesc.
13766 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
13767 (tdesc_x32_avx_linux, tdesc_x32_linux)
13768 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
13770 (x86_linux_update_xmltarget): Delete.
13771 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
13772 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
13773 (AMD64_LINUX_USER64_CS): New.
13774 (x86_linux_read_description): New, based on
13775 x86_linux_update_xmltarget.
13776 (same_process_callback): New.
13777 (x86_arch_setup_process_callback): New.
13778 (x86_linux_update_xmltarget): New.
13779 (x86_regsets_info): New.
13780 (amd64_linux_regs_info): New.
13781 (i386_linux_usrregs_info): New.
13782 (i386_linux_regs_info): New.
13783 (x86_linux_regs_info): New.
13784 (x86_arch_setup): Reimplement.
13785 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
13786 (x86_emit_ops): Ditto.
13787 (the_low_target): Adjust. Install x86_linux_regs_info,
13788 x86_cannot_fetch_register, and x86_cannot_store_register.
13789 (initialize_low_arch): New.
13790 * linux-ia64-low.c (tdesc_ia64): Declare.
13791 (ia64_fetch_register): Adjust.
13792 (ia64_usrregs_info, regs_info): New globals.
13793 (ia64_regs_info): New function.
13794 (the_low_target): Adjust.
13795 (initialize_low_arch): New function.
13796 * linux-sparc-low.c (tdesc_sparc64): Declare.
13797 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
13799 (sparc_arch_setup): New function.
13800 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
13801 (the_low_target): Adjust.
13802 (initialize_low_arch): New function.
13803 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
13804 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
13805 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
13806 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
13807 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
13808 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
13809 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
13810 (tdesc_powerpc_isa205_vsx64l): Declare.
13811 (ppc_cannot_store_register, ppc_collect_ptrace_register)
13812 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
13813 (ppc_set_pc, ppc_get_hwcap): Adjust.
13814 (ppc_usrregs_info): Forward declare.
13815 (!__powerpc64__) ppc_regmap_adjusted: New global.
13816 (ppc_arch_setup): Adjust to the current process'es target
13818 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
13819 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
13820 (ppc_store_evrregset): Adjust.
13821 (target_regsets): Rename to ...
13822 (ppc_regsets): ... this, and make static.
13823 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
13824 (ppc_regs_info): New function.
13825 (the_low_target): Adjust.
13826 (initialize_low_arch): New function.
13827 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
13828 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
13829 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
13830 (tdesc_s390x_linux64v2): Declare.
13831 (s390_collect_ptrace_register, s390_supply_ptrace_register)
13832 (s390_fill_gregset, s390_store_last_break): Adjust.
13833 (target_regsets): Rename to ...
13834 (s390_regsets): ... this, and make static.
13835 (s390_get_pc, s390_set_pc): Adjust.
13836 (s390_get_hwcap): New target_desc parameter, and use it.
13837 [__s390x__] (have_hwcap_s390_high_gprs): New global.
13838 (s390_arch_setup): Adjust to set the current process'es target
13839 description. Don't adjust the regmap.
13840 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
13841 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
13842 (regs_info_3264): New globals.
13843 (s390_regs_info): New function.
13844 (the_low_target): Adjust.
13845 (initialize_low_arch): New function.
13846 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
13847 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
13848 [__mips64] (init_registers_mips_linux)
13849 (init_registers_mips_dsp_linux): Delete defines.
13850 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
13851 (have_dsp): New global.
13852 (mips_read_description): New, based on mips_arch_setup.
13853 (mips_arch_setup): Reimplement.
13854 (get_usrregs_info): New function.
13855 (mips_cannot_fetch_register, mips_cannot_store_register)
13856 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
13857 (mips_fill_fpregset, mips_store_fpregset): Adjust.
13858 (target_regsets): Rename to ...
13859 (mips_regsets): ... this, and make static.
13860 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
13861 (dsp_regs_info, regs_info): New globals.
13862 (mips_regs_info): New function.
13863 (the_low_target): Adjust.
13864 (initialize_low_arch): New function.
13865 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
13866 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
13868 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
13869 (arm_read_description): New, with bits factored from
13871 (arm_arch_setup): Reimplement.
13872 (target_regsets): Rename to ...
13873 (arm_regsets): ... this, and make static.
13874 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
13875 (arm_regs_info): New function.
13876 (the_low_target): Adjust.
13877 (initialize_low_arch): New function.
13878 * linux-m68k-low.c (tdesc_m68k): Declare.
13879 (target_regsets): Rename to ...
13880 (m68k_regsets): ... this, and make static.
13881 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
13882 (m68k_regs_info): New function.
13883 (m68k_arch_setup): New function.
13884 (the_low_target): Adjust.
13885 (initialize_low_arch): New function.
13886 * linux-sh-low.c (tdesc_sharch): Declare.
13887 (target_regsets): Rename to ...
13888 (sh_regsets): ... this, and make static.
13889 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
13890 (sh_regs_info, sh_arch_setup): New functions.
13891 (the_low_target): Adjust.
13892 (initialize_low_arch): New function.
13893 * linux-bfin-low.c (tdesc_bfin): Declare.
13894 (bfin_arch_setup): New function.
13895 (bfin_usrregs_info, regs_info): New globals.
13896 (bfin_regs_info): New function.
13897 (the_low_target): Adjust.
13898 (initialize_low_arch): New function.
13899 * linux-cris-low.c (tdesc_cris): Declare.
13900 (cris_arch_setup): New function.
13901 (cris_usrregs_info, regs_info): New globals.
13902 (cris_regs_info): New function.
13903 (the_low_target): Adjust.
13904 (initialize_low_arch): New function.
13905 * linux-cris-low.c (tdesc_crisv32): Declare.
13906 (cris_arch_setup): New function.
13907 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
13908 (cris_regs_info): New function.
13909 (the_low_target): Adjust.
13910 (initialize_low_arch): New function.
13911 * linux-m32r-low.c (tdesc_m32r): Declare.
13912 (m32r_arch_setup): New function.
13913 (m32r_usrregs_info, regs_info): New globals.
13914 (m32r_regs_info): Adjust.
13915 (initialize_low_arch): New function.
13916 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
13917 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
13918 (tic6x_usrregs_info): Forward declare.
13919 (tic6x_read_description): New function, based on ...
13920 (tic6x_arch_setup): ... this. Reimplement.
13921 (target_regsets): Rename to ...
13922 (tic6x_regsets): ... this, and make static.
13923 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
13924 (tic6x_regs_info): New function.
13925 (the_low_target): Adjust.
13926 (initialize_low_arch): New function.
13927 * linux-xtensa-low.c (tdesc_xtensa): Declare.
13928 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
13929 (target_regsets): Rename to ...
13930 (xtensa_regsets): ... this, and make static.
13931 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
13933 (xtensa_arch_setup, xtensa_regs_info): New functions.
13934 (the_low_target): Adjust.
13935 (initialize_low_arch): New function.
13936 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
13937 (nios2_arch_setup): Set the current process'es tdesc.
13938 (target_regsets): Rename to ...
13939 (nios2_regsets): ... this.
13940 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
13941 (nios2_regs_info): New function.
13942 (the_low_target): Adjust.
13943 (initialize_low_arch): New function.
13944 * linux-aarch64-low.c (tdesc_aarch64): Declare.
13945 (aarch64_arch_setup): Set the current process'es tdesc.
13946 (target_regsets): Rename to ...
13947 (aarch64_regsets): ... this.
13948 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
13949 (aarch64_regs_info): New function.
13950 (the_low_target): Adjust.
13951 (initialize_low_arch): New function.
13952 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
13954 (target_regsets): Rename to ...
13955 (tile_regsets): ... this.
13956 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
13957 (tile_regs_info): New function.
13958 (tile_arch_setup): Set the current process'es tdesc.
13959 (the_low_target): Adjust.
13960 (initialize_low_arch): New function.
13961 * spu-low.c (tdesc_spu): Declare.
13962 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
13963 * win32-arm-low.c (tdesc_arm): Declare.
13964 (arm_arch_setup): New function.
13965 (the_low_target): Install arm_arch_setup instead of
13966 init_registers_arm.
13967 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
13968 (init_windows_x86): Rename to ...
13969 (i386_arch_setup): ... this. Set `win32_tdesc'.
13970 (the_low_target): Adjust.
13971 * win32-low.c (win32_tdesc): New global.
13972 (child_add_thread): Don't create the thread cache here.
13973 (do_initial_child_stuff): Set the new process'es tdesc.
13974 * win32-low.h (struct target_desc): Forward declare.
13975 (win32_tdesc): Declare.
13976 * lynx-i386-low.c (tdesc_i386): Declare global.
13977 (lynx_i386_arch_setup): Set `lynx_tdesc'.
13978 * lynx-low.c (lynx_tdesc): New global.
13979 (lynx_add_process): Set the new process'es tdesc.
13980 * lynx-low.h (struct target_desc): Forward declare.
13981 (lynx_tdesc): Declare global.
13982 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
13983 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
13984 * nto-low.c (nto_tdesc): New global.
13985 (do_attach): Set the new process'es tdesc.
13986 * nto-low.h (struct target_desc): Forward declare.
13987 (nto_tdesc): Declare.
13988 * nto-x86-low.c (tdesc_i386): Declare.
13989 (nto_x86_arch_setup): Set `nto_tdesc'.
13991 2013-06-04 Gary Benson <gbenson@redhat.com>
13993 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
13994 to qSupported response when appropriate.
13995 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
13996 with nonzero-length annex.
13997 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
13998 arguments supplied in annex.
14000 2013-05-31 Doug Evans <dje@google.com>
14003 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
14004 64 bits in 64-cross-32 environment.
14006 2013-05-28 Pedro Alves <palves@redhat.com>
14008 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
14009 (aarch64-without-fpu.c): Delete rule.
14010 * configure.srv (aarch64*-*-linux*): Remove references to
14011 aarch64-without-fpu.o and aarch64-without-fpu.xml.
14012 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
14015 2013-05-24 Pedro Alves <palves@redhat.com>
14017 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
14018 instead of strchr/decode_address. Error if the range isn't split
14019 with a ','. Don't assume there's be a ':' in the action.
14021 2013-05-23 Yao Qi <yao@codesourcery.com>
14022 Pedro Alves <palves@redhat.com>
14024 * linux-low.c (lwp_in_step_range): New function.
14025 (linux_wait_1): If the thread was range stepping and stopped
14026 outside the stepping range, report the stop to GDB. Otherwise,
14027 continue stepping. Add range stepping debug output.
14028 (linux_set_resume_request): Copy the step range from the resume
14029 request to the lwp.
14030 (linux_supports_range_stepping): New.
14031 (linux_target_ops) <supports_range_stepping>: Set to
14032 linux_supports_range_stepping.
14033 * linux-low.h (struct linux_target_ops)
14034 <supports_range_stepping>: New field.
14035 (struct lwp_info) <step_range_start, step_range_end>: New fields.
14036 * linux-x86-low.c (x86_supports_range_stepping): New.
14037 (the_low_target) <supports_range_stepping>: Set to
14038 x86_supports_range_stepping.
14039 * server.c (handle_v_cont): Handle 'r' action.
14040 (handle_v_requests): Append ";r" if the target supports range
14042 * target.h (struct thread_resume) <step_range_start,
14043 step_range_end>: New fields.
14044 (struct target_ops) <supports_range_stepping>:
14046 (target_supports_range_stepping): New macro.
14048 2013-05-17 Joel Brobecker <brobecker@adacore.com>
14050 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
14051 confusion in comment.
14053 2013-05-17 Joel Brobecker <brobecker@adacore.com>
14055 * lynx-low.c (struct process_info_private): New type.
14056 (lynx_add_process): New function.
14057 (lynx_create_inferior, lynx_attach): Replace calls to
14058 add_process by calls to lynx_add_process.
14059 (lynx_resume): If PTID is null, then try using
14060 current_process()->private->last_wait_event_ptid.
14062 (lynx_clear_inferiors): Delete. The contents of that function
14063 has been inlined in lynx_mourn;
14064 (lynx_wait_1): Save the ptid in the process's private data.
14065 (lynx_mourn): Free the process' private data. Replace call
14066 to lynx_clear_inferiors by call to clear_inferiors.
14068 2013-05-17 Yao Qi <yao@codesourcery.com>
14070 * i386-low.c (i386_length_and_rw_bits): Move the comment to
14073 2013-05-16 Luis Machado <lgustavo@codesourcery.com>
14075 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
14076 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
14077 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
14078 PT_TEXT_END_ADDR guards. Update comments.
14079 (linux_target_op) <read_offsets>: Conditionally define to
14080 linux_read_offsets if the target is UCLIBC and if it defines
14081 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
14083 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
14084 Andrew Jenner <andrew@codesourcery.com>
14086 * Makefile.in (SFILES): Add linux-nios2-low.c.
14087 (clean): Add action to delete nios2-linux.c.
14088 (nios2-linux.c): New rule.
14089 * configure.srv: Add nios2*-*-linux*.
14090 * linux-nios2-low.c: New.
14092 2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
14094 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
14096 2013-04-25 Hui Zhu <hui@codesourcery.com>
14099 * ax.c (ax_printf): Add fflush.
14101 2013-04-22 Tom Tromey <tromey@redhat.com>
14103 * Makefile.in (SFILES): Add filestuff.c.
14104 (OBS): Add filestuff.o.
14105 (filestuff.o): New target.
14106 * config.in, configure: Rebuild.
14107 * configure.ac: Check for fdwalk, pipe2.
14109 2013-04-17 Pedro Alves <palves@redhat.com>
14111 * configure.ac (USE_THREAD_DB): Delete variable.
14112 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
14113 Don't AC_SUBST USE_THREAD_DB.
14114 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
14115 * config.in, configure: Regenerate.
14117 2013-04-16 Pedro Alves <palves@redhat.com>
14119 * linux-low.h (struct lwp_info) <thread_known>: Move under
14120 the USE_THREAD_DB #ifdef.
14122 2013-04-16 Pedro Alves <palves@redhat.com>
14124 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
14125 (linux-low.o): Delete rule.
14126 * linux-low.h: Always include "gdb_thread_db.h" instead of
14127 conditionally including thread_db.h.
14128 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
14131 2013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14133 * Makefile.in (install-only): Fix make install regression.
14135 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
14137 Convert man pages to texinfo, new gdbinit.5 texinfo page.
14138 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
14140 * gdbserver.1: Remove.
14142 2013-03-22 Pedro Alves <palves@redhat.com>
14144 * linux-low.c (handle_extended_wait): Don't call
14145 linux_enable_event_reporting.
14147 2013-03-15 Tony Theodore <tonyt@logyst.com>
14150 * Makefile.in (SHELL): Use @SHELL@.
14152 2013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
14154 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
14157 2013-03-13 Joel Brobecker <brobecker@adacore.com>
14159 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
14160 Remove extraneous NULL element.
14162 2013-03-13 Yao Qi <yao@codesourcery.com>
14164 * tracepoint.c (traceframe_read_tsv): Look for the last matched
14165 'V' block in trace frame.
14167 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14169 * target.h (struct target_ops): Add btrace ops.
14170 (target_supports_btrace): New macro.
14171 (target_enable_btrace): New macro.
14172 (target_disable_btrace): New macro.
14173 (target_read_btrace): New macro.
14174 * gdbthread.h (struct thread_info): Add btrace field.
14175 * server.c: Include btrace-common.h.
14176 (handle_btrace_general_set): New function.
14177 (handle_btrace_enable): New function.
14178 (handle_btrace_disable): New function.
14179 (handle_general_set): Call handle_btrace_general_set.
14180 (handle_qxfer_btrace): New function.
14181 (struct qxfer qxfer_packets[]): Add btrace entry.
14182 * inferiors.c (remove_thread): Disable btrace.
14183 * linux-low: Include linux-btrace.h.
14184 (linux_low_enable_btrace): New function.
14185 (linux_low_read_btrace): New function.
14186 (linux_target_ops): Add btrace ops.
14187 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
14188 Add srv_linux_btrace=yes.
14189 (x86_64-*-linux*): Add linux-btrace.o.
14190 Add srv_linux_btrace=yes.
14191 * configure.ac: Define HAVE_LINUX_BTRACE.
14192 * config.in: Regenerated.
14193 * configure: Regenerated.
14195 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14197 * server.c (handle_qxfer): Preserve error message if -3 is
14199 (qxfer): Document the -3 return value.
14201 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14203 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
14204 (linux_btrace_h): New variable.
14205 (linux-btrace.o): New rule.
14207 2013-03-08 Stan Shebs <stan@codesourcery.com>
14208 Hafiz Abid Qadeer <abidh@codesourcery.com>
14210 * tracepoint.c (trace_buffer_size): New global.
14211 (DEFAULT_TRACE_BUFFER_SIZE): New define.
14212 (init_trace_buffer): Change to one-argument function. Allocate
14213 trace buffer memory.
14214 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
14215 handle QTBuffer:size packet.
14216 (cmd_bigqtbuffer_size): New function.
14217 (initialize_tracepoint): Call init_trace_buffer with
14218 DEFAULT_TRACE_BUFFER_SIZE.
14219 * server.c (handle_query): Add QTBuffer:size in the
14222 2013-03-07 Yao Qi <yao@codesourcery.com>
14224 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
14225 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
14227 (cmd_qtsp): Adjust condition. Do post increment.
14228 Set cur_action and cur_step_action back to 0.
14230 2013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
14233 * linux-low.c (linux_write_memory): Return early success if LEN is
14236 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
14238 * configure.srv: Add x86_64-*-cygwin* as target.
14240 2013-02-28 Tom Tromey <tromey@redhat.com>
14242 * configure.ac: Invoke AC_SYS_LARGEFILE.
14243 * configure, config.in: Rebuild.
14245 2013-02-28 Corinna Vinschen <vinschen@redhat.com>
14247 * win32-low.c: Throughout, fix format strings and casts of
14248 printf-like functions to avoid type related warnings on all
14250 (get_child_debug_event): Print dwDebugEventCode as hex since
14251 that's how it's usually documented.
14253 2013-02-28 Yao Qi <yao@codesourcery.com>
14255 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
14258 2013-02-27 Jiong Wang <jiwang@tilera.com>
14260 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
14261 (reg-tilegx32.c): New rule.
14262 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
14263 * linux-tile-low.c (tile_arch_setup): New function. Invoke
14264 different register info initializer according to elf class.
14265 (init_registers_tilgx32): New function. The tilegx32 register info
14267 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
14268 (tile_store_gregset): Likewise.
14270 2013-02-27 Yao Qi <yao@codesourcery.com>
14272 * server.c (process_point_options): Print debug message when
14273 debug_threads is true.
14275 2013-02-26 Yao Qi <yao@codesourcery.com>
14277 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
14279 2013-02-19 Pedro Alves <palves@redhat.com>
14280 Kai Tietz <ktietz@redhat.com>
14284 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
14285 instead of strtoul to extract address from packet.
14286 (process_serial_event) <'z'>: Likewise.
14288 2013-02-18 Yao Qi <yao@codesourcery.com>
14290 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
14292 2013-02-14 Pedro Alves <palves@redhat.com>
14296 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
14297 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
14299 2013-02-14 Pedro Alves <palves@redhat.com>
14301 * tracepoint.c (cmd_qtdpsrc): Use savestring.
14303 2013-02-14 Pedro Alves <palves@redhat.com>
14305 * tracepoint.c (save_string): Delete.
14306 (add_tracepoint_action): Use savestring instead of save_string.
14308 2013-02-12 Pedro Alves <palves@redhat.com>
14310 * linux-xtensa-low.c: Ditto.
14311 * xtensa-xtregs.c: Ditto.
14313 2013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14315 * thread-db.c (thread_db_get_tls_address): NULL pointer check
14318 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14320 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
14321 aarch64_num_wp_regs and aarch64_num_bp_regs to
14322 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
14324 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14326 * linux-aarch64-low.c (ps_get_thread_area): Replace
14327 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
14329 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
14330 Marcus Shawcroft <marcus.shawcroft@arm.com>
14331 Nigel Stephens <nigel.stephens@arm.com>
14332 Yufeng Zhang <yufeng.zhang@arm.com>
14334 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
14335 (aarch64.c, aarch64-without-fpu.c): New targets.
14336 * configure.srv (aarch64*-*-linux*): New.
14337 * linux-aarch64-low.c: New file.
14339 2013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
14341 * linux-low.c (handle_extended_wait, linux_create_inferior)
14342 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
14343 (dequeue_one_deferred_signal, linux_resume_one_thread)
14344 (fetch_register, linux_write_memory, linux_enable_event_reporting)
14345 (linux_tracefork_grandchild, linux_test_for_tracefork)
14346 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
14347 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
14348 where the argument is 0.
14350 2013-01-25 Yao Qi <yao@codesourcery.com>
14352 * event-loop.c: Include "queue.h".
14353 (gdb_event_p): New typedef.
14354 (struct gdb_event) <next_event>: Remove.
14355 (event_queue): Change to QUEUE(gdb_event_p).
14356 (async_queue_event): Remove.
14357 (gdb_event_xfree): New.
14358 (initialize_event_loop): New.
14359 (process_event): Use API from QUEUE.
14360 (wait_for_event): Likewise.
14361 * server.c (main): Call initialize_event_loop.
14362 * server.h (initialize_event_loop): Declare.
14364 2013-01-18 Yao Qi <yao@codesourcery.com>
14366 * ax.h (struct eval_agent_expr_context): New.
14367 (gdb_eval_agent_expr): Update declaration.
14368 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
14369 TFRAME. Add new argument CTX.
14370 * server.h (struct eval_agent_expr_context): Declare.
14371 (agent_mem_read, agent_tsv_read): Update declaration.
14372 (agent_mem_read_string): Likewise.
14373 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
14374 (add_traceframe_block): Add new argument TPOINT.
14375 Increase TPOINT->traceframe_usage.
14376 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
14377 eval_tracepoint_agent_expr.
14378 (condition_true_at_tracepoint): Likewise.
14379 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
14380 (agent_mem_read_string, agent_tsv_read): Likewise.
14382 2013-01-16 Yao Qi <yao@codesourcery.com>
14384 * linux-low.c (linux_resume_one_lwp): Don't check
14385 'lwp->bp_reinsert != 0'.
14387 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14388 Pedro Alves <palves@redhat.com>
14390 * lynx-low.c (ptrace_request_to_str): Define a temporary
14391 macro and use it to simplify this function's implementation.
14393 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14395 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
14398 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14400 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
14402 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14404 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
14406 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14408 * lynx-low.c (lynx_resume): Use the resume_info parameter
14409 to determine the ptid for the lynx_ptrace call, unless
14410 it is equal to minus_one_ptid, in which case we use the
14411 ptid of the current_inferior.
14412 (lynx_wait_1): After having received a thread create/exit
14413 event, resume the inferior's execution using the signaling
14414 thread's ptid, rather than the old ptid.
14416 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14418 * lynx-low.c (lynx_resume): Delete variable ret.
14420 2013-01-01 Joel Brobecker <brobecker@adacore.com>
14422 * gdbreplay.c (gdbreplay_version): Update copyright year.
14423 * server.c (gdbserver_version): Likewise.
14425 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14427 * lynx-low.c (lynx_wait_1): Add debug trace before adding
14430 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14432 * lynx-low.c (ptrace_request_to_str): Add handling for
14433 PTRACE_GETTRACESIG.
14435 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14437 * lynx-low.c (lynx_attach): Delete variable new_process.
14439 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14441 * lynx-low.c (lynx_create_inferior): Delete variable
14444 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14446 * lynx-low.c (ptrace_request_to_str): Do not handle
14447 PTRACE_GETTHREADLIST if this macro does not exist.
14449 2012-12-15 Yao Qi <yao@codesourcery.com>
14451 * Makefile.in (OBS): Add notif.o.
14452 * notif.c, notif.h: New.
14453 * server.c: Include "notif.h".
14454 (struct vstop_notif) <next>: Remove.
14456 (queue_stop_reply): Update.
14457 (push_event, send_next_stop_reply): Remove.
14458 (discard_queued_stop_replies): Update.
14459 (notif_stop): New variable.
14460 (handle_v_stopped): Remove.
14461 (handle_v_requests): Don't call handle_v_stopped. Call
14462 handle_ack_notif instead.
14463 (queue_stop_reply_callback): Call notif_event_enque instead
14464 of queue_stop_reply.
14465 (handle_status): Don't call send_next_stop_reply, call
14466 notif_write_event instead.
14467 (kill_inferior_callback): Likewise.
14468 (detach_or_kill_inferior_callback): Likewise.
14469 (main): Call initialize_notif.
14470 (process_serial_event): Call QUEUE_is_empty.
14471 (handle_target_event): Call notif_push instead of push event.
14472 * server.h (push_event): Remove declaration.
14474 2012-12-10 Tom Tromey <tromey@redhat.com>
14476 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
14477 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
14480 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
14481 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
14482 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
14483 (amd64-linux-ipa.o, ax.o): Rewrite.
14484 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
14485 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
14486 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
14487 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
14488 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
14489 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
14490 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
14491 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
14492 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
14493 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
14494 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
14495 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
14496 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
14497 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
14498 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
14499 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
14500 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
14501 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
14502 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
14503 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
14504 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
14505 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
14506 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
14507 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
14508 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
14509 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
14510 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
14511 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
14512 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
14513 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
14514 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
14515 (reg-tilegx.o): Remove.
14516 (all_object_files): New macro.
14517 Include .deps files.
14518 * aclocal.m4, configure: Rebuild.
14519 * acinclude.m4: Include depstand.m4, lead-dot.m4.
14520 * configure.ac: Invoke ZW_CREATE_DEPDIR,
14521 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
14523 2012-12-05 Tom Tromey <tromey@redhat.com>
14526 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
14528 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
14530 * configure.ac: Check for linux/perf_event.h.
14531 * config.in: Regenerated.
14532 * configure: Regenerated.
14534 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
14536 * hostio.c (handle_readlink): Decrease buffer size
14537 parameter passed to readlink by one byte.
14539 2012-11-26 Yao Qi <yao@codesourcery.com>
14541 * configure.ac (build_warnings): Append '-Wempty-body'.
14542 * configure: Regenerated.
14543 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
14546 2012-11-15 Pierre Muller <muller@sourceware.org>
14548 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
14549 * config.in: Regenerate.
14550 * configure: Regenerate.
14551 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
14552 Use "gdb_wait.h" header instead of <sys/wait.h> header.
14553 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14554 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
14556 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
14557 instead of <sys/wait.h> header.
14558 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14560 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
14562 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
14563 (various make rules): Remove -DGDBSERVER
14565 2012-11-09 Yao Qi <yao@codesourcery.com>
14567 * spu-low.c (current_ptid): Move it to ..
14568 * gdbthread.h: ... here. New.
14569 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
14570 * server.c (myresume, process_serial_event): Likewise.
14571 * thread-db.c (thread_db_find_new_threads): Likewise.
14572 * tracepoint.c (run_inferior_command): Likewise.
14574 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
14576 * server.c (handle_search_memory_1): Include access length in
14579 2012-09-05 Michael Brandt <michael.brandt@axis.com>
14581 * linux-crisv32-low.c: Fix compile errors.
14583 2012-09-04 Yao Qi <yao@codesourcery.com>
14585 * tracepoint.c (cmd_qtsv): Adjust debug message.
14586 Don't check CUR_TPOINT.
14588 2012-08-28 Yao Qi <yao@codesourcery.com>
14590 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
14591 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
14592 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
14593 Remove declarations of xmalloc, xreallloc, xstrdup and
14595 * Makefile.in (libiberty_h): New.
14596 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
14597 (linux-bfin-low.o): Append dependency 'libiberty.h'.
14599 2012-08-23 Yao Qi <yao@codesourcery.com>
14601 * server.h: Remove declaration of 'xsnprintf'.
14603 2012-08-22 Keith Seitz <keiths@redhat.com>
14605 * server.h: Include build-gnulib-gbserver/config.h.
14606 * gdbreplay.c: Likewise.
14608 2012-08-08 Doug Evans <dje@google.com>
14610 * Makefile.in (SFILES): Add gdb_vecs.c.
14611 (OBS): Add gdb_vecs.o.
14612 (gdb_vecs_h, host_defs_h): New variables.
14613 (thread-db.o): Add $(gdb_vecs_h) dependency.
14614 (gdb_vecs.o): New rule.
14615 * thread-db.c: #include "gdb_vecs.h".
14616 (thread_db_load_search): Use a vector to iterate over path elements.
14617 Handle text appearing after "$pdir".
14619 * configure.ac: Add check for strstr.
14620 * config.in: Regenerate.
14621 * configure: Regenerate.
14623 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
14625 * hostio.c (handle_pread): If pread fails, fall back to attempting
14627 (handle_pwrite): Likewise for pwrite.
14629 2012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
14631 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
14632 between unsupported TYPE and unimplementable ADDR/LEN combination.
14633 (arm_insert_point): Act on new return value.
14635 2012-07-31 Pedro Alves <palves@redhat.com>
14637 * server.c (process_point_options): Only skip tokens if we find
14638 one that is unrecognized. Don't treat 'X' specially while
14639 skipping unrecognized tokens.
14641 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
14643 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
14644 to 4-byte-align HW breakpoint addresses for Thumb.
14646 2012-07-27 Yao Qi <yao@codesourcery.com>
14650 * server.h: Declare gdb_agent_about_to_close.
14651 * target.c (kill_inferior): Include "agent.h".
14652 New. Send command 'kill'.
14653 * target.h (kill_inferior): Removed macro.
14654 * tracepoint.c (gdb_agent_about_to_close): New.
14655 (gdb_agent_helper_thread): Handle command 'close'.
14656 Wait endlessly until the inferior stops.
14657 Install gdb_agent_remove_socket to atexit hook.
14658 (agent_socket_name): New static variable.
14659 (gdb_agent_socket_init): Replace local variable 'name' with
14660 'agent_socket_name'.
14661 (gdb_agent_remove_socket): New.
14663 2012-07-27 Yao Qi <yao@codesourcery.com>
14665 * server.c (process_point_options): Stop at 'X' when parsing.
14667 2012-07-19 Michael Eager <eager@eagercon.com>
14669 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
14671 * linux-x86-low.c (x86_insert_point, x86_remove_point):
14672 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
14673 hardware breakpoint.
14675 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14677 * gdbserver/linux-low.c (initialize_low): Call
14678 linux_ptrace_init_warnings.
14680 2012-07-02 Doug Evans <dje@google.com>
14682 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
14685 2012-07-02 Stan Shebs <stan@codesourcery.com>
14687 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
14688 (ax.o): Add it to build rule.
14690 (OBS): Add format.o.
14691 (IPA_OBS): Add format.o.
14692 * server.c (handle_query): Claim support for breakpoint commands.
14693 (process_point_options): Add command case.
14694 (process_serial_event): Leave running if there are printfs in
14696 * mem-break.h (any_persistent_commands): Declare.
14697 (add_breakpoint_commands): Declare.
14698 (gdb_no_commands_at_breakpoint): Declare.
14699 (run_breakpoint_commands): Declare.
14700 * mem-break.c (struct point_command_list): New struct.
14701 (struct breakpoint): New field command_list.
14702 (any_persistent_commands): New function.
14703 (add_commands_to_breakpoint): New function.
14704 (add_breakpoint_commands): New function.
14705 (gdb_no_commands_at_breakpoint): New function.
14706 (run_breakpoint_commands): New function.
14707 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
14709 * ax.c: Include format.h.
14710 (ax_printf): New function.
14711 (gdb_eval_agent_expr): Add printf opcode.
14713 2012-06-13 Yao Qi <yao@codesourcery.com>
14715 * server.c (start_inferior): Remove duplicated writes to fields
14716 'last_resume_kind' and 'last_status' of 'current_inferior'.
14718 2012-06-12 Yao Qi <yao@codesourcery.com>
14719 Pedro Alves <palves@redhat.com>
14721 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
14723 * server.c (handle_v_cont): Extend comment.
14725 2012-06-11 Yao Qi <yao@codesourcery.com>
14727 * linux-low.c (linux_attach): Add 'static'.
14729 2012-06-06 Yao Qi <yao@codesourcery.com>
14731 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
14733 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
14735 Fix gcc -flto compilation warning.
14736 * server.c (main): Make variable multi_mode and attach volatile.
14738 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14740 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
14741 if the platform doesn't know about it.
14743 2012-05-30 Jeff Kenton <jkenton@tilera.com>
14745 * Makefile.in (SFILES): Add linux-tile-low.c.
14746 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
14747 * configure.srv: Handle tilegx-*-linux*.
14748 * linux-tile-low.c: New file.
14750 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
14752 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
14754 2012-05-24 Pedro Alves <palves@redhat.com>
14758 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
14760 2012-05-24 Pedro Alves <palves@redhat.com>
14764 Replace target_signal with gdb_signal throughout.
14766 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
14768 * linux-low.c (linux_store_registers): Avoid the copying sequence
14769 when no data has been retrieved by ptrace.
14771 2012-05-22 Will Deacon <will.deacon@arm.com>
14773 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
14774 Include asm/ptrace.h.
14775 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
14778 2012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
14780 * linux-low.c (linux_store_registers): Don't re-retrieve data
14781 with ptrace that has already been obtained from /proc. Always
14782 copy any data retrieved with ptrace to the buffer supplied.
14784 2012-05-11 Yao Qi <yao@codesourcery.com>
14785 Pedro Alves <palves@redhat.com>
14787 * linux-low.c (enum stopping_threads_kind): New.
14788 (stopping_threads): Change type to `enum stopping_threads_kind'.
14789 (handle_extended_wait): If stopping and suspending threads, leave
14790 the new_lwp suspended too.
14791 (linux_wait_for_event): Adjust.
14792 (stop_all_lwps): Set `stopping_threads' to
14793 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
14794 whether we're suspending threads or just stopping them. Assert no
14797 2012-04-29 Yao Qi <yao@codesourcery.com>
14799 * server.h: Move some code to ...
14800 * gdbthread.h: ... here. New.
14801 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
14802 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
14803 (nto-low.o, win32-low.o): Likewise.
14804 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
14805 * regcache.c, remote-utils.c, server.c: Likewise.
14806 * target.c, tracepoint.c, win32-low.c: Likewise.
14808 2012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14810 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
14811 (PTRACE_ARG4_TYPE): Likewise.
14812 (PTRACE_XFER_TYPE): Likewise.
14813 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
14814 ptrace to PTRACE_ARG3_TYPE.
14815 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
14816 (PTRACE_ARG4_TYPE): Likewise.
14817 (PTRACE_XFER_TYPE): Likewise.
14818 (linux_detach_one_lwp): Cast fourth argument of
14819 ptrace to long then PTRACE_ARG4_TYPE.
14820 (regsets_fetch_inferior_registers): Cast third argument of
14821 ptrace to long then PTRACE_ARG3_TYPE.
14822 (regsets_store_inferior_registers): Likewise.
14824 2012-04-20 Pedro Alves <palves@redhat.com>
14826 * configure: Regenerate.
14828 2012-04-19 Pedro Alves <palves@redhat.com>
14830 * Makefile.in (GNULIB_BUILDDIR): New.
14831 (LIBGNU, INCGNU, GNULIB_H): Adjust.
14832 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
14833 (all, install-only, uninstall, clean-info, all-lib, clean): No
14834 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
14835 (maintainer-clean realclean distclean): Use subdir_do.
14837 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
14838 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
14839 * acinclude.m4: Include acx_configure_dir.m4.
14840 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
14841 calls. Call AC_PROG_RANLIB. Configure gnulib using
14844 (GNULIB_STDINT_H): Adjust.
14845 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
14846 * gdbreplay.c: Include build-gnulib/config.h.
14847 * server.h: Likewise.
14848 * aclocal.m4: Regenerate.
14849 * config.in: Regenerate.
14850 * configure: Regenerate.
14852 2012-04-19 Pedro Alves <palves@redhat.com>
14854 * Makefile.in (LIBGNU, INCGNU): Adjust.
14855 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
14856 (all, install-only, uninstall, clean-info, all-lib, clean)
14857 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
14858 * configure.ac: Adjust AC_OUTPUT output.
14859 * aclocal.m4: Regenerate.
14860 * configure: Regenerate.
14862 2012-04-19 Pedro Alves <palves@redhat.com>
14864 * Makefile.in (generated_files): New.
14865 (server_h): Remove the explicit dependency on config.h, and depend
14866 on $generated_files.
14868 2012-04-19 Pedro Alves <palves@redhat.com>
14870 * Makefile.in (INCGNU): Add -Ignulib.
14872 2012-04-19 Pedro Alves <palves@redhat.com>
14874 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
14875 (INCGNU): ... this, and spell out -I here.
14876 (GNULIB_LIB): Rename to ...
14877 (LIBGNU): ... this.
14878 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
14880 2012-04-19 Pedro Alves <palves@redhat.com>
14882 * config.in: Regenerate.
14884 2012-04-19 Pedro Alves <palves@redhat.com>
14886 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
14887 * server.h (memmem): Remove declaration.
14888 * config.in: Regenerate.
14889 * configure: Regenerate.
14891 2012-04-19 Yao Qi <yao@codesourcery.com>
14893 * Makefile.in (SFILES): Add common/vec.c.
14897 2012-04-19 Yao Qi <yao@codesourcery.com>
14899 * remote-utils.c (prepare_resume_reply): Replace with macro
14900 target_core_of_thread.
14901 * server.c (handle_qxfer_threads_proper): Likewise.
14902 * target.h (traget_core_of_thread): New macro.
14904 2012-04-18 Pedro Alves <palves@redhat.com>
14906 * aclocal.m4: Regenerate.
14907 * configure: Regenerate.
14909 2012-04-16 Yao Qi <yao@codesourcery.com>
14911 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
14912 duplicated on address.
14914 2012-04-16 Yao Qi <yao@codesourcery.com>
14916 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
14917 (struct tracepoint_action_ops) <send>: New field.
14918 (m_tracepoint_action_send, r_tracepoint_action_send): New.
14919 (agent_expr_send, x_tracepoint_action_send): New.
14920 (l_tracepoint_action_send): New.
14921 (cmd_qtdp): Download and install tracepoint
14922 according to `use_agent'.
14923 (run_inferior_command): Add one more parameter `len'.
14925 (tracepoint_send_agent): New.
14926 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
14928 2012-04-16 Yao Qi <yao@codesourcery.com>
14930 * tracepoint.c (download_tracepoints): Moved to ...
14931 (cmd_qtstart): ... here.
14933 2012-04-14 Yao Qi <yao@codesourcery.com>
14935 * tracepoint.c: Include inttypes.h.
14936 (struct collect_memory_action): Use sized types.
14937 (struct tracepoint): Likewise.
14938 (cmd_qtdp, stop_tracing): Update print specifiers.
14939 (cmd_qtp, response_tracepoint): Likewise.
14940 (collect_data_at_tracepoint): Likewise.
14941 (collect_data_at_step): Likewise.
14943 2012-04-14 Yao Qi <yao@codesourcery.com>
14945 Import gnulib module inttypes.
14946 * aclocal.m4, config.in, configure: Regenerated.
14948 2012-04-14 Yao Qi <yao@codesourcery.com>
14950 * Makefile.in (maintainer-clean, realclean, distclean): Remove
14951 Makefile and config.status at last.
14953 2012-04-13 Yao Qi <yao@codesourcery.com>
14955 * tracepoint.c: Include stdint.h unconditionally.
14957 2012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14959 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
14960 on BFD_HAVE_SYS_PROCFS_TYPE.
14961 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
14962 * configure: Regenerate.
14963 * config.in: Likewise.
14965 2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
14967 * Makefile.in (clean): Also remove x32.c x32-linux.c
14968 x32-avx.c x32-avx-linux.c.
14969 (x32.o): New target.
14971 (x32-linux.o): Likewise.
14972 (x32-linux.c): Likewise.
14973 (x32-avx.o): Likewise.
14974 (x32-avx.c): Likewise.
14975 (x32-avx-linux.o): Likewise.
14976 (x32-avx-linux.c): Likewise.
14978 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
14979 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
14980 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
14981 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
14982 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
14983 i386/x32-avx-linux.xml.
14985 * linux-x86-low.c (init_registers_x32_linux): New prototype.
14986 (init_registers_x32_avx_linux): Likwise.
14987 (x86_linux_update_xmltarget): Call init_registers_x32_linux
14988 or init_registers_x32_avx_linux if linux_is_elf64 is false.
14990 2012-04-13 Pedro Alves <palves@redhat.com>
14992 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
14993 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
14994 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
14995 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
14998 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15000 * linux-x86-low.c (compat_x32_clock_t): New.
15001 (compat_x32_siginfo_t): Likewise.
15002 (compat_x32_siginfo_from_siginfo): Likewise.
15003 (siginfo_from_compat_x32_siginfo): Likewise.
15004 (linux_is_elf64): Likewise.
15005 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
15006 and siginfo_from_compat_x32_siginfo for x32.
15007 (x86_arch_setup): Set linux_is_elf64.
15009 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15012 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
15014 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
15015 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
15016 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
15017 compatible with process.
15019 2012-04-12 Yao Qi <yao@codesourcery.com>
15021 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
15022 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
15023 (install-only, install-info, clean): Handle sub dir gnulib.
15024 (all-lib, am--refresh): New targets.
15025 (memmem.o): Remove target.
15026 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
15027 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
15028 (AC_REPLACE_FUNCS): Remove memmem.
15029 Invoke gl_INIT and AM_INIT_AUTOMAKE.
15030 (AC_OUTPUT): Generate Makefile in gnulib/.
15031 * aclocal.m4, config.in, configure: Regenerated.
15033 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
15035 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
15037 2012-04-05 Pedro Alves <palves@redhat.com>
15039 -Werror=strict-aliasing
15041 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
15044 2012-04-04 Pedro Alves <palves@redhat.com>
15046 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
15047 (sparc_store_gregset_from_stack, sparc_store_gregset)
15048 (sparc_breakpoint_at): Fix formatting.
15050 2012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15052 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
15054 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
15055 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
15056 * config.in: Regenerate.
15057 * configure: Likewise.
15059 2012-03-29 Pedro Alves <palves@redhat.com>
15061 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
15062 Correct ptrace arguments.
15064 2012-03-28 Pedro Alves <palves@redhat.com>
15066 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
15067 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
15068 (IA64_FR1_REGNUM): New defines.
15069 (ia64_fetch_register): New.
15070 (the_low_target): Install it.
15071 * linux-low.h (struct linux_target_ops) <fetch_register>: New
15073 * linux-low.c (linux_fetch_registers): Try the
15074 the_low_target.fetch_register hook first.
15076 * linux-arm-low.c (the_low_target): Adjust.
15077 * linux-bfin-low.c (the_low_target): Adjust.
15078 * linux-cris-low.c (the_low_target): Adjust.
15079 * linux-crisv32-low.c (the_low_target): Adjust.
15080 * linux-m32r-low.c (the_low_target): Adjust.
15081 * linux-m68k-low.c (the_low_target): Adjust.
15082 * linux-mips-low.c (the_low_target): Adjust.
15083 * linux-ppc-low.c (the_low_target): Adjust.
15084 * linux-s390-low.c (the_low_target): Adjust.
15085 * linux-sh-low.c (the_low_target): Adjust.
15086 * linux-sparc-low.c (the_low_target): Adjust.
15087 * linux-tic6x-low.c (the_low_target): Adjust.
15088 * linux-x86-low.c (the_low_target): Adjust.
15089 * linux-xtensa-low.c (the_low_target): Adjust.
15091 2012-03-26 Pedro Alves <palves@redhat.com>
15093 * server.c (handle_qxfer_libraries): Don't bail early if
15094 the_target->qxfer_libraries_svr4 is not NULL.
15096 2012-03-26 Pedro Alves <palves@redhat.com>
15098 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
15100 2012-03-23 Pedro Alves <palves@redhat.com>
15102 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
15103 "library-list-svr4" element's start tag when the the DSO list is
15106 2012-03-23 Pedro Alves <palves@redhat.com>
15108 * linux-low.c (read_one_ptr): Read the inferior's pointer through
15109 a variable whose type size is the same as the inferior's pointer
15112 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
15114 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
15116 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
15117 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
15118 * linux-low.h: Include <signal.h>.
15119 (struct siginfo): Remove forward declaration.
15120 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
15123 2012-03-21 Mike Frysinger <vapier@gentoo.org>
15125 * .gitignore: Ignore more files.
15127 2012-03-19 Pedro Alves <palves@redhat.com>
15128 Jan Kratochvil <jan.kratochvil@redhat.com>
15130 * server.c (cont_thread, general_thread): Add describing comments.
15131 (start_inferior): Clear `cont_thread'.
15132 (handle_v_cont): Don't set `cont_thread' if resuming all threads
15135 2012-03-15 Yao Qi <yao@codesourcery.com>
15137 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
15139 (cmd_qtdp): ... here.
15141 2012-03-15 Yao Qi <yao@codesourcery.com>
15143 * tracepoint.c (struct tracepoint_action_ops): New.
15144 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
15145 (m_tracepoint_action_download): New.
15146 (r_tracepoint_action_download): New.
15147 (x_tracepoint_action_download): New.
15148 (l_tracepoint_action_download): New.
15149 (add_tracepoint_action): Install `action->ops' according type.
15150 (download_tracepoint_1): Move code `download' function pointer
15151 of various tracepoint_action_ops.
15153 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15155 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
15156 linux_ptrace_attach_warnings.
15158 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15160 * Makefile.in (linux-ptrace.o): New.
15161 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
15162 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
15163 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
15164 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
15165 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
15167 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
15169 2012-03-08 Yao Qi <yao@codesourcery.com>
15170 Pedro Alves <palves@redhat.com>
15172 Fix PR server/13392.
15173 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
15174 offset of JMP insn.
15175 * tracepoint.c (remove_tracepoint): New.
15176 (cmd_qtdp): Call remove_tracepoint when failed to install.
15178 2012-03-07 Pedro Alves <palves@redhat.com>
15180 * linux-low.c (get_detach_signal): New.
15181 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
15182 Pass on pending signals to PTRACE_DETACH. Check the result of the
15184 * server.c (program_signals, program_signals_p): New.
15185 (handle_general_set): Handle QProgramSignals.
15186 * server.h (program_signals, program_signals_p): Declare.
15188 2012-03-05 Pedro Alves <palves@redhat.com>
15189 Jan Kratochvil <jan.kratochvil@redhat.com>
15191 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
15194 2012-03-03 Yao Qi <yao@codesourcery.com>
15196 * tracepoint.c (tracepoint_look_up_symbols): Update call to
15197 agent_look_up_symbols.
15199 2012-03-03 Yao Qi <yao@codesourcery.com>
15201 * Makefile.in (linux-low.o): Keep dependence on agent.h.
15202 (linux-x86-low.o): Likewise.
15203 * server.h: Remove in_process_agent_loaded.
15204 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
15208 2012-03-03 Yao Qi <yao@codesourcery.com>
15210 * tracepoint.c (gdb_agent_capability): New global.
15211 (in_process_agent_loaded_ust): Renamed to
15212 `in_process_agent_supports_ust'.
15214 (in_process_agent_supports_ust): Call agent_capability_check.
15215 (clear_installed_tracepoints): Assert that agent supports
15218 2012-03-03 Yao Qi <yao@codesourcery.com>
15220 * linux-low.c (linux_supports_agent): New.
15221 (linux_target_ops): Initialize field `supports_agent' with
15222 linux_supports_agent.
15223 * target.h (struct target_ops) <supports_agent>: New.
15224 (target_supports_agent): New macro.
15225 * server.c (handle_general_set): Handle packet 'QAgent'.
15226 (handle_query): Send `QAgent+'.
15227 * Makefile.in (server.o): Depends on agent.h.
15229 2012-03-03 Yao Qi <yao@codesourcery.com>
15231 * Makefile.in (OBS): Add agent.o.
15232 Add new rule for agent.o.
15233 Track dependence of tracepoint.c on agent.h.
15234 * tracepoint.c (run_inferior_command_1):
15235 (run_inferior_command): Call agent_run_command.
15236 (gdb_ust_connect_sync_socket): Deleted. Move it to
15238 (resume_thread, stop_thread): Likewise.
15239 (gdb_ust_socket_init): Renamed to ...
15240 (gdb_agent_socket_init): ... New.
15241 (gdb_ust_thread): Renamed to ...
15242 (gdb_agent_helper_thread): ... New.
15243 (gdb_ust_init): Move some code to ...
15244 (gdb_agent_init): ... here. New.
15245 [HAVE_UST]: Call gdb_ust_init.
15246 (initialize_tracepoint_ftlib): Call gdb_agent_init.
15247 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
15248 * config.in, configure: Regenerated.
15250 2012-03-02 Pedro Alves <palves@redhat.com>
15252 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
15253 * linux-low.c (struct simple_pid_list): New.
15254 (stopped_pids): New a struct simple_pid_list pointer.
15255 (add_to_pid_list, pull_pid_from_list): New.
15256 (handle_extended_wait): Don't assume the first signal new children
15257 report is SIGSTOP. Adjust call to pull_pid_from_list.
15258 (linux_wait_for_lwp): Adjust.
15260 2012-03-02 Yao Qi <yao@codesourcery.com>
15262 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
15265 2012-03-02 Yao Qi <yao@codesourcery.com>
15267 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
15268 `stop_pc' and `tpoint'. Update caller.
15270 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
15272 * linux-low.h (linux_target_ops): Add regset_bitmap member.
15273 * linux-low.c (use_linux_regsets): New macro.
15274 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
15275 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
15276 (linux_register_in_regsets): New function.
15277 (usr_fetch_inferior_registers): Skip registers covered by
15279 (usr_store_inferior_registers): Likewise.
15280 (usr_fetch_inferior_registers): New macro.
15281 (usr_store_inferior_registers): Likewise.
15282 (linux_fetch_registers): Handle mixed regset/non-regset targets.
15283 (linux_store_registers): Likewise.
15284 * linux-mips-low.c (init_registers_mips_dsp_linux): New
15286 (init_registers_mips64_dsp_linux): Likewise.
15287 (init_registers_mips_linux): New macro.
15288 (init_registers_mips_dsp_linux): Likewise.
15289 (mips_dsp_num_regs): Likewise.
15290 (DSP_BASE, DSP_CONTROL): New fallback macros.
15291 (mips_base_regs): New macro.
15292 (mips_regmap): Use it. Fix the size.
15293 (mips_dsp_regmap): New variable.
15294 (mips_dsp_regset_bitmap): Likewise.
15295 (mips_arch_setup): New function.
15296 (mips_cannot_fetch_register): Use the_low_target.regmap rather
15298 (mips_cannot_store_register): Likewise.
15299 (the_low_target): Update .arch_setup, .num_regs and .regmap
15300 initializers. Add .regset_bitmap initializer.
15301 * linux-arm-low.c (the_low_target): Add .regset_bitmap
15303 * linux-bfin-low.c (the_low_target): Likewise.
15304 * linux-cris-low.c (the_low_target): Likewise.
15305 * linux-crisv32-low.c (the_low_target): Likewise.
15306 * linux-ia64-low.c (the_low_target): Likewise.
15307 * linux-m32r-low.c (the_low_target): Likewise.
15308 * linux-m68k-low.c (the_low_target): Likewise.
15309 * linux-ppc-low.c (the_low_target): Likewise.
15310 * linux-s390-low.c (the_low_target): Likewise.
15311 * linux-sh-low.c (the_low_target): Likewise.
15312 * linux-sparc-low.c (the_low_target): Likewise.
15313 * linux-tic6x-low.c (the_low_target): Likewise.
15314 * linux-x86-low.c (the_low_target): Likewise.
15315 * linux-xtensa-low.c (the_low_target): Likewise.
15316 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
15317 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
15318 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
15320 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
15321 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
15323 2012-02-29 Yao Qi <yao@codesourcery.com>
15324 Pedro Alves <palves@redhat.com>
15326 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
15327 `step_over_finished' is true.
15329 2012-02-27 Pedro Alves <palves@redhat.com>
15331 * linux-low.c (pid_is_stopped): Delete, moved to common/.
15332 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
15334 2012-02-27 Pedro Alves <palves@redhat.com>
15337 * linux-low.c (pid_is_stopped): New.
15338 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
15340 2012-02-25 Luis Machado <lgustavo@codesourcery.com>
15342 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
15345 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
15347 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
15349 2012-02-24 Luis Machado <lgustavo@codesourcery>
15351 * server.c (handle_query): Advertise support for target-side
15352 breakpoint condition evaluation.
15353 (process_point_options): New function.
15354 (process_serial_event): When inserting a breakpoint, check for
15355 a target-side condition that should be evaluated.
15357 * mem-break.c: Include regcache.h and ax.h.
15358 (point_cond_list_t): New data structure.
15359 (breakpoint) <cond_list>: New field.
15360 (find_gdb_breakpoint_at): Make non-static.
15361 (delete_gdb_breakpoint_at): Clear any target-side
15363 (clear_gdb_breakpoint_conditions): New function.
15364 (add_condition_to_breakpoint): Likewise.
15365 (add_breakpoint_condition): Likewise.
15366 (gdb_condition_true_at_breakpoint): Likewise.
15367 (gdb_breakpoint_here): Return result directly instead
15368 of going through a local variable.
15370 * mem-break.h (find_gdb_breakpoint_at): New prototype.
15371 (clear_gdb_breakpoint_conditions): Likewise.
15372 (add_breakpoint_condition): Likewise.
15373 (gdb_condition_true_at_breakpoint): Likewise.
15375 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
15376 (need_step_over_p): Take target-side breakpoint condition into
15379 2012-02-24 Luis Machado <lgustavo@codesourcery>
15381 * server.h: Include tracepoint.h.
15382 (agent_mem_read, agent_get_trace_state_variable_value,
15383 agent_set_trace_state_variable_value,
15384 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
15385 get_set_tsv_func_addr): New prototypes.
15387 * ax.h: New include file.
15388 * ax.c: New source file.
15390 * tracepoint.c: Include ax.h.
15391 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
15392 agent_expr, eval_result_type): Move to ax.h.
15393 (parse_agent_expr): Rename to ...
15394 (gdb_parse_agent_expr): ... this, make it non-static and move
15396 (unparse_agent_expr) Rename to ...
15397 (gdb_unparse_agent_expr): ... this, make it non-static and move
15399 (eval_agent_expr): Rename to ...
15400 (eval_tracepoint_agent_expr): ... this.
15401 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
15402 forward declarations.
15403 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
15404 (agent_get_trace_state_variable_value): New function.
15405 (agent_set_trace_state_variable_value): New function.
15406 (cmd_qtdp): Call gdb_parse_agent_expr (...).
15407 (response_tracepoint): Call gdb_unparse_agent_expr (...).
15408 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
15409 (condition_true_at_tracepoint): Likewise.
15410 (parse_agent_expr): Rename to ...
15411 (gdb_parse_agent_expr): ... this and move to ax.c.
15412 (unparse_agent_expr): Rename to ...
15413 (gdb_unparse_agent_expr): ... this and move to ax.c.
15414 (gdb_agent_op_name): Move to ax.c.
15415 (eval_agent_expr): Rename to ...
15416 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
15418 (eval_tracepoint_agent_expr): New function.
15419 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
15421 (current_insn_ptr, emit_error, struct bytecode_address): Move to
15423 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
15424 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
15425 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
15426 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
15427 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
15428 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
15429 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
15430 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
15431 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
15432 (compile_bytecodes): Remove forward declaration.
15433 (is_goto_target): Move to ax.c.
15434 (compile_bytecodes): Move to ax.c and call
15435 agent_get_trace_state_variable_value (...) and
15436 agent_set_trace_state_variable_value (...).
15438 * Makefile.in: Update ax.c and IPA dependencies.
15440 2012-02-24 Pedro Alves <palves@redhat.com>
15442 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
15443 (cmd_bigqtbuffer_circular): ... this. Only handle
15444 'QTBuffer:circular:'.
15445 (handle_tracepoint_general_set): Adjust.
15447 2012-02-16 Yao Qi <yao@codesourcery.com>
15449 * inferiors.c: Move code to ...
15450 * dll.c: .... here. New.
15451 * server.h: Declare clear_dlls.
15452 * Makefile.in (SFILES): Add dll.c.
15456 2012-02-11 Yao Qi <yao@codesourcery.com>
15458 * server.c: (handle_monitor_command): Add a new parameter
15460 (handle_query): Update caller.
15462 2012-02-09 Joel Brobecker <brobecker@adacore.com>
15464 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
15465 * configure, config.in: Regenerate.
15466 * hostio.c: Provide an alternate implementation if HAVE_READLINK
15469 2012-02-02 Pedro Alves <palves@redhat.com>
15471 Try SIGKILL first, then PTRACE_KILL.
15472 * linux-low.c (linux_kill_one_lwp): New.
15473 (linux_kill_one_lwp): Rename to ...
15474 (kill_one_lwp_callback): ... this. Use the new
15475 linux_kill_one_lwp.
15477 2012-02-02 Pedro Alves <palves@redhat.com>
15479 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
15482 2012-01-27 Pedro Alves <palves@redhat.com>
15484 * linux-low.c (linux_child_pid_to_exec_file): Delete.
15485 (elf_64_file_p): Make static.
15486 (linux_pid_exe_is_elf_64_file): New.
15487 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
15488 Delete declarations.
15489 (linux_pid_exe_is_elf_64_file): Declare.
15490 * linux-x86-low.c (x86_arch_setup): Use
15491 linux_pid_exe_is_elf_64_file.
15493 2012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
15495 * linux-low.c (linux_wait_for_event_1): Rename to ...
15496 (linux_wait_for_event): ... here and merge it with former
15497 linux_wait_for_event - new variable wait_ptid, use it.
15498 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
15500 2012-01-23 Pedro Alves <palves@redhat.com>
15502 * server.c (main): Avoid yet another case of infinite loop while
15503 detaching/killing after a longjmp.
15505 2012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15508 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
15510 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
15512 * hostio.c (handle_readlink): New function.
15513 (handle_vFile): Call it to handle "vFile:readlink" packets.
15515 2012-01-20 Pedro Alves <palves@redhat.com>
15516 Ulrich Weigand <ulrich.weigand@linaro.org>
15518 * server.c (handle_v_requests): Only support vAttach and vRun to
15519 start multiple processes when in extended protocol mode.
15521 2012-01-17 Pedro Alves <palves@redhat.com>
15523 * tracepoint.c (initialize_tracepoint): Use mmap instead of
15524 memalign plus mprotect to allocate the scratch buffer.
15526 2012-01-13 Pedro Alves <palves@redhat.com>
15528 * server.c (attach_inferior): Clear `cont_thread'.
15530 2012-01-13 Pedro Alves <palves@redhat.com>
15532 * server.c (main): Avoid infinite loop while detaching/killing
15535 2012-01-09 Doug Evans <dje@google.com>
15537 * server.c (start_inferior): Set last_ptid in --wrapper case.
15539 2012-01-06 Yao Qi <yao@codesourcery.com>
15541 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
15543 [IN_PROCESS_AGENT] (debug_agent): New global variable.
15545 2012-01-04 Yao Qi <yao@codesourcery.com>
15547 * tracepoint.c (cmd_qtdp): Print debug message
15548 for static tracepoint.
15550 2012-01-04 Yao Qi <yao@codesourcery.com>
15552 * tracepoint.c (trace_vdebug): Differentiate debug message
15553 between gdbserver and IPA.
15555 2012-01-03 Yao Qi <yao@codesourcery.com>
15557 * tracepoint.c (tracepoint_was_hit): Don't collect for
15560 2012-01-02 Joel Brobecker <brobecker@adacore.com>
15562 * terminal.h: Reformat copyright header.
15564 2012-01-02 Joel Brobecker <brobecker@adacore.com>
15566 * server.c (gdbserver_version): Update copyright year.
15567 * gdbreplay.c (gdbreplay_version): Likewise.
15569 2011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
15571 * linux-low.c (linux_create_inferior): Put empty if clause for write.
15574 2011-12-18 Hui Zhu <teawater@gmail.com>
15575 * linux-low.c (linux_create_inferior): Save return value to ret.
15577 2011-12-18 Hui Zhu <teawater@gmail.com>
15579 * linux-low.c (linux_create_inferior): Save return value to ret.
15581 2011-12-16 Doug Evans <dje@google.com>
15583 * linux-low.c (linux_create_inferior): If stdio connection,
15584 redirect stdin from /dev/null, stdout to stderr.
15585 * remote-utils.c (remote_is_stdio): New static global.
15586 (remote_connection_is_stdio): New function.
15587 (remote_prepare): Handle stdio connection.
15588 (remote_open): Ditto.
15589 (remote_close): Don't close stdin for stdio connections.
15590 (read_prim,write_prim): New functions. Replace all calls to
15591 read/write to these.
15592 * server.c (main): Watch for "-" argument. Move call to
15593 remote_prepare before start_inferior.
15594 * server.h (STDIO_CONNECTION_NAME): New macro.
15595 (remote_connection_is_stdio): Declare.
15597 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
15598 in debugging output.
15600 2011-12-15 Yao Qi <yao@codesourcery.com>
15602 * tracepoint.c: Include sys/syscall.h.
15603 (gdb_ust_thread): Remove preprocessor conditional.
15605 2011-12-14 Pedro Alves <pedro@codesourcery.com>
15607 * linux-low.c (linux_detach_one_lwp): Call
15608 the_low_target.prepare_to_resume before detaching.
15610 2011-12-14 Yao Qi <yao@codesourcery.com>
15612 * tracepoint.c (gdb_ust_thread): Don't ignore return value
15615 2011-12-14 Yao Qi <yao@codesourcery.com>
15617 * i386-low.c (i386_low_stopped_data_address): Initialize local
15618 variable `control'.
15620 2011-12-13 Pedro Alves <pedro@codesourcery.com>
15624 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
15625 DR_CONTROL unless necessary. Extend comments.
15626 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
15627 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
15629 2011-12-13 Yao Qi <yao@codesourcery.com>
15631 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
15633 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
15635 2011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
15637 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
15638 Print new debug message for such case.
15640 2011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
15642 Fix overlapping memcpy.
15643 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
15644 the read_inferior_memory transfer.
15645 (delete_fast_tracepoint_jump): New variable buf. Use it for the
15646 write_inferior_memory transfer.
15647 (set_fast_tracepoint_jump): New variable buf. Use it for the
15648 read_inferior_memory and write_inferior_memory transfers.
15649 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
15650 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
15651 Use it for the write_inferior_memory transfer.
15652 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
15655 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15657 * linux-low.c (fetch_register, store_register): Make code
15658 consistent, fix formatting.
15660 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15662 * linux-low.c (usr_store_inferior_registers): Factor out code
15663 to handle individual registers into...
15664 (store_register): ... this new function.
15666 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
15668 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
15669 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
15670 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
15671 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
15672 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
15673 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
15674 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
15675 (srv_xmlfiles): Add new XML files.
15677 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
15679 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
15680 (init_registers_s390_linux32v1): Add prototype.
15681 (init_registers_s390_linux32v2): Likewise.
15682 (init_registers_s390_linux64v1): Likewise.
15683 (init_registers_s390_linux64v2): Likewise.
15684 (init_registers_s390x_linux64v1): Likewise.
15685 (init_registers_s390x_linux64v2): Likewise.
15686 (s390_num_regs): Increment to 52.
15687 (s390_regmap): Add orig_r2 register.
15688 (s390_num_regs_3264): Increment to 68.
15689 (s390_regmap_3264): Add orig_r2 register.
15690 (s390_collect_ptrace_register): Handle orig_r2 register.
15691 (s390_supply_ptrace_register): Likewise.
15692 (s390_fill_last_break): New function.
15693 (s390_store_last_break): Likewise.
15694 (s390_fill_system_call): New function.
15695 (s390_store_system_call): Likewise.
15696 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
15698 (s390_check_regset): New function.
15699 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
15700 NT_S390_SYSTEM_CALL regsets and use appropriate description.
15701 Update target_regsets for available register sets.
15703 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
15704 Jan Kratochvil <jan.kratochvil@redhat.com>
15706 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
15707 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
15709 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
15710 * linux-low.h (struct process_info_private): New member r_debug.
15711 * server.c (handle_qxfer_libraries): Call
15712 the_target->qxfer_libraries_svr4.
15713 (handle_qxfer_libraries_svr4): New function.
15714 (qxfer_packets): New entry "libraries-svr4".
15715 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
15716 * target.h (struct target_ops): New member qxfer_libraries_svr4.
15717 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
15718 PACKET_qXfer_libraries_svr4.
15720 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
15722 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
15723 PSW address/mask between 8-byte and 16-byte formats.
15724 (s390_supply_ptrace_register): Likewise.
15725 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
15726 basic addressing mode bit.
15728 2011-11-24 Stan Shebs <stan@codesourcery.com>
15730 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
15732 2011-11-17 Stan Shebs <stan@codesourcery.com>
15734 * tracepoint.c (struct tracepoint): New field traceframe_usage.
15735 (tracing_start_time): New global.
15736 (tracing_stop_time): New global.
15737 (tracing_user_name): New global.
15738 (tracing_notes): New global.
15739 (tracing_stop_note): New global.
15740 (cmd_qtstart): Set traceframe_usage, start_time.
15741 (stop_tracing): Set stop_time.
15742 (cmd_qtstatus): Report additional status.
15743 (cmd_qtp): New function.
15744 (handle_tracepoint_query): Call it.
15745 (cmd_qtnotes): New function.
15746 (handle_tracepoint_general_set): Call it.
15747 (get_timestamp): Rename from tsv_get_timestamp.
15749 2011-11-14 Stan Shebs <stan@codesourcery.com>
15750 Kwok Cheung Yeung <kcy@codesourcery.com>
15752 * linux-x86-low.c (small_jump_insn): New.
15753 (i386_install_fast_tracepoint_jump_pad): Add arguments for
15754 trampoline and error message, build a trampoline and issue a small
15755 jump instruction to it.
15756 (x86_install_fast_tracepoint_jump_pad): Add arguments for
15757 trampoline and error message.
15758 (x86_get_min_fast_tracepoint_insn_len): New.
15759 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
15760 * linux-low.h (struct linux_target_ops): Add arguments to
15761 install_fast_tracepoint_jump_pad operation, add new operation.
15762 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
15764 (linux_get_min_fast_tracepoint_insn_len): New function.
15765 (linux_target_op): Add new operation.
15766 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
15767 (gdb_trampoline_buffer_end): Ditto.
15768 (gdb_trampoline_buffer_error): Ditto.
15769 (struct ipa_sym_addresses): Add fields for new IPA variables.
15770 (symbol_list): Add entries for new IPA variables.
15771 (struct tracepoint): Add fields to hold the address range of the
15772 trampoline used by the tracepoint.
15773 (trampoline_buffer_head): New static variable.
15774 (trampoline_buffer_tail): Ditto.
15775 (claim_trampoline_space): New function.
15776 (have_fast_tracepoint_trampoline_buffer): New function.
15777 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
15779 (install_fast_tracepoint): Ditto, also add error buffer argument.
15780 (cmd_qtminftpilen): New function.
15781 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
15782 (fast_tracepoint_from_trampoline_address): New function.
15783 (fast_tracepoint_collecting): Handle trampoline as part of jump
15785 (set_trampoline_buffer_space): New function.
15786 (initialize_tracepoint): Initialize new IPA variables.
15787 * target.h (struct target_ops): Add arguments to
15788 install_fast_tracepoint_jump_pad operation, add new
15789 get_min_fast_tracepoint_insn_len operation.
15790 (target_get_min_fast_tracepoint_insn_len): New.
15791 (install_fast_tracepoint_jump_pad): Add arguments.
15792 * server.h (IPA_BUFSIZ): Define.
15793 * linux-i386-ipa.c: Include extra header files.
15794 (initialize_fast_tracepoint_trampoline_buffer): New function.
15795 (initialize_low_tracepoint): Call it.
15796 * server.h (set_trampoline_buffer_space): Declare.
15797 (claim_trampoline_space): Ditto.
15798 (have_fast_tracepoint_trampoline_buffer): Ditto.
15800 2011-11-14 Yao Qi <yao@codesourcery.com>
15802 * server.c (handle_query): Handle InstallInTrace for qSupported.
15803 * tracepoint.c (add_tracepoint): Sort list.
15804 (install_tracepoint, download_tracepoint): New.
15805 (cmd_qtdp): Call them to install and download tracepoints.
15806 (sort_tracepoints): Removed.
15807 (cmd_qtstart): Update.
15809 2011-11-14 Yao Qi <yao@codesourcery.com>
15811 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
15812 * mem-break.h: Declare.
15813 * tracepoint.c (cmd_qtstart): Move some code to ...
15814 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
15816 (download_tracepoints): Move some code to ...
15817 (download_tracepoint_1): ... here. New.
15819 2011-11-08 Yao Qi <yao@codesourcery.com>
15821 * remote-utils.c (relocate_instruction): A comment fix.
15823 2011-11-07 Joel Brobecker <brobecker@adacore.com>
15825 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
15826 (i386_dr_low_get_control, i386_dr_low_get_status): Use
15827 dr_status_mirror and dr_control_mirror from debug_reg_state.
15828 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
15829 (i386_initial_stuff): Remove use of deleted globals.
15830 (i386_get_thread_context, i386_set_thread_context,
15831 i386_thread_added): Use dr_status_mirror and dr_control_mirror
15832 from debug_reg_state.
15834 2011-11-05 Yao Qi <yao@codesourcery.com>
15836 * tracepoint.c (gdb_collect): Loop over tracepoints of same
15837 address as TPOINT's.
15839 2011-11-02 Stan Shebs <stan@codesourcery.com>
15841 * tracepoint.c (agent_mem_read_string): New function.
15842 (eval_agent_expr): Call it for tracenz.
15843 * server.c (handle_query): Report support for tracenz.
15845 2011-11-02 Yao Qi <yao@codesourcery.com>
15847 * tracepoint.c (cmd_qtstart): Remove unused local variables.
15849 2011-11-02 Yao Qi <yao@codesourcery.com>
15851 * target.h: Fix a typo in comment.
15853 2011-10-31 Pedro Alves <pedro@codesourcery.com>
15855 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
15856 clobber the breakpoints' shadows with fast tracepoint jumps.
15857 * mem-break.h (check_mem_write): Add `myaddr' parameter.
15858 * target.c (write_inferior_memory): Also pass MYADDR down to
15861 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
15863 * configure.ac: Check support for personality routine.
15864 * configure: Regenerate.
15865 * config.in: Likewise.
15866 * linux-low.c: Include <sys/personality.h>.
15867 Define ADDR_NO_RANDOMIZE if necessary.
15868 (linux_create_inferior): Disable address space randomization when
15869 forking inferior, if requested.
15870 (linux_supports_disable_randomization): New function.
15871 (linux_target_ops): Install it.
15872 * server.h (disable_randomization): Declare.
15873 * server.c (disable_randomization): New global variable.
15874 (handle_general_set): Handle QDisableRandomization.
15875 (handle_query): Likewise for qSupported.
15876 (main): Support --disable-randomization and --no-disable-randomization
15877 command line arguments.
15878 * target.h (struct target_ops): Add supports_disable_randomization.
15879 (target_supports_disable_randomization): New macro.
15881 2011-09-29 Mike Frysinger <vapier@gentoo.org>
15883 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
15885 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
15886 [!PT_GETDSBT] (target_loadmap): New definition.
15887 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
15888 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
15889 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
15890 and PT_GETDSBT to LINUX_LOADMAP.
15891 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
15892 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
15894 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
15896 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
15897 (arm_linux_hwbp_cap): New static variable.
15898 (arm_linux_get_hwbp_cap): Replace by ...
15899 (arm_linux_init_hwbp_cap): ... this new function.
15900 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
15901 (arm_linux_get_hw_watchpoint_count): Likewise.
15902 (arm_linux_get_hw_watchpoint_max_length): Likewise.
15903 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
15904 (arm_prepare_to_resume): Use perror_with_name instead of error.
15906 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
15908 * linux-arm-low.c: Include <signal.h>.
15909 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
15910 (struct arm_linux_hwbp_cap): New data type.
15911 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
15912 (struct arm_linux_hw_breakpoint): New data type.
15913 (MAX_BPTS, MAX_WPTS): Define.
15914 (struct arch_process_info, struct arch_lwp_info): New data types.
15915 (arm_linux_get_hwbp_cap): New function.
15916 (arm_linux_get_hw_breakpoint_count): Likewise.
15917 (arm_linux_get_hw_watchpoint_count): Likewise.
15918 (arm_linux_get_hw_watchpoint_max_length): Likewise.
15919 (arm_hwbp_control_initialize): Likewise.
15920 (arm_hwbp_control_is_enabled): Likewise.
15921 (arm_hwbp_control_is_initialized): Likewise.
15922 (arm_hwbp_control_disable): Likewise.
15923 (arm_linux_hw_breakpoint_equal): Likewise.
15924 (arm_linux_hw_point_initialize): Likewise.
15925 (struct update_registers_data): New data structure.
15926 (update_registers_callback: New function.
15927 (arm_insert_point): Likewise.
15928 (arm_remove_point): Likewise.
15929 (arm_stopped_by_watchpoint): Likewise.
15930 (arm_stopped_data_address): Likewise.
15931 (arm_new_process): Likewise.
15932 (arm_new_thread): Likewise.
15933 (arm_prepare_to_resume): Likewise.
15934 (the_low_target): Register arm_insert_point, arm_remove_point,
15935 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
15936 arm_new_thread, and arm_prepare_to_resume.
15938 2011-09-15 Stan Shebs <stan@codesourcery.com>
15940 * server.h (struct emit_ops): Add compare-goto fields.
15941 * tracepoint.c (gdb_agent_op_sizes): New table.
15942 (emit_eq_goto): New function.
15943 (emit_ne_goto): New function.
15944 (emit_lt_goto): New function.
15945 (emit_le_goto): New function.
15946 (emit_gt_goto): New function.
15947 (emit_ge_goto): New function.
15948 (is_goto_target): New function.
15949 (compile_bytecodes): Recognize special cases of compare-goto
15950 combinations and call specialized emitters for them.
15951 * linux-x86-low.c (amd64_emit_eq_goto): New function.
15952 (amd64_emit_ne_goto): New function.
15953 (amd64_emit_lt_goto): New function.
15954 (amd64_emit_le_goto): New function.
15955 (amd64_emit_gt_goto): New function.
15956 (amd64_emit_ge_goto): New function.
15957 (amd64_emit_ops): Add the new functions.
15958 (i386_emit_eq_goto): New function.
15959 (i386_emit_ne_goto): New function.
15960 (i386_emit_lt_goto): New function.
15961 (i386_emit_le_goto): New function.
15962 (i386_emit_gt_goto): New function.
15963 (i386_emit_ge_goto): New function.
15964 (i386_emit_ops): Add the new functions.
15966 2011-09-08 Stan Shebs <stan@codesourcery.com>
15968 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
15969 (i386_emit_epilogue): Restore %ebx.
15971 2011-08-31 Jie Zhang <jzhang918@gmail.com>
15973 * server.c (step_thread): Remove definition.
15974 (process_serial_event): Don't handle Hs.
15975 * server.h (step_thread): Remove declaration.
15976 * target.c (set_desired_inferior): Remove use of step_thread.
15978 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
15980 * linux-low.c: Include linux-procfs.h.
15981 (linux_attach_lwp_1): Update comments.
15982 (linux_attach): Scan for existing threads when attaching to a
15983 process that is the tgid.
15984 * Makefile.in: Update dependencies.
15986 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
15988 * configure.srv: Add linux-procfs.o dependencies.
15990 2011-08-14 Yao Qi <yao@codesourcery.com>
15992 * target.h (struct target_ops): Fix indent.
15993 * win32-low.c (win32_target_ops): Fix comment.
15995 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
15996 Yao Qi <yao@codesourcery.com>
15998 * Makefile.in (clean): Remove tic6x-*.c files.
15999 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
16000 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
16001 (tic6x-c64xp-linux.c): Likewise.
16002 * configure.srv: Add support for tic6x-*-uclinux.
16003 * linux-tic6x-low.c: New.
16004 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
16006 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
16007 Yao Qi <yao@codesourcery.com>
16009 * target.h (struct target_ops): Add read_loadmap.
16010 * linux-low.c (struct target_loadseg): New type.
16011 (struct target_loadmap): New type.
16012 (linux_read_loadmap): New function.
16013 (linux_target_ops): Add linux_read_loadmap.
16014 * server.c (handle_query): Support qXfer:fdpic:read packet.
16015 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
16018 2011-08-05 Eli Zaretskii <eliz@gnu.org>
16020 * win32-low.c: Include <stdint.h>.
16022 2011-07-22 Pedro Alves <pedro@codesourcery.com>
16024 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
16025 to the inferior here.
16026 (i386_remove_aligned_watchpoint): Ditto.
16027 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
16028 fit part of the watchpoint in the debug registers.
16029 (i386_update_inferior_debug_regs): New.
16030 (i386_low_insert_watchpoint): Work on a local mirror of the debug
16031 registers, and only update the inferior on success.
16032 (i386_low_remove_watchpoint): Ditto.
16034 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
16036 * linux-low.c (compare_ints, unique, list_threads, show_process,
16037 linux_core_of_thread): Delete.
16038 (linux_target_ops): Change linux_core_of_thread to
16039 linux_common_core_of_thread.
16040 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
16041 * utils.c (malloc_failure): Change type of argument.
16042 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
16043 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
16044 common/linux-osdata.c, common/ptid.c and common/buffer.c.
16045 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
16046 (IPA_OBJS): Add common-utils-ipa.o.
16047 (ptid_h, linux_osdata_h): New macros.
16048 (server_h): Add common/common-utils.h, common/xml-utils.h,
16049 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
16051 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
16052 ptid.o, buffer.o): New rules.
16053 (linux-low.o): Add common/linux-osdata.h as a dependency.
16054 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
16055 * configure.ac: Add AC_HEADER_DIRENT check.
16056 * config.in: Regenerate.
16057 * configure: Regenerate.
16058 * remote-utils.c (xml_escape_text): Delete.
16059 (buffer_grow, buffer_free, buffer_init, buffer_finish,
16060 buffer_xml_printf): Move to common/buffer.c.
16061 * server.c (main): Remove call to initialize_inferiors.
16062 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
16063 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
16064 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
16065 internal_error, gdb_assert, gdb_assert_fail): Delete.
16066 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
16067 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
16069 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
16070 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
16071 initialize_inferiors): Delete.
16073 2011-07-20 Pedro Alves <pedro@codesourcery.com>
16075 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
16078 2011-05-31 Pedro Alves <pedro@codesourcery.com>
16080 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
16082 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
16084 2011-05-26 Yao Qi <yao@codesourcery.com>
16086 * Makefile.in (thread-db.o): Track dependence to
16087 common/gdb_thread_db.h.
16088 * thread-db.c: include gdb_thread_db.h from right place.
16090 2011-05-16 Adrian Cornish <gnu@bluedreamer.com>
16092 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
16093 __FILE__ and __LINE__ to internal_error.
16095 2011-05-13 Doug Evans <dje@google.com>
16097 * thread-db.c (try_thread_db_load_from_sdir): New function.
16098 (try_thread_db_load_from_dir): New function.
16099 (thread_db_load_search): Handle $sdir, ignore $pdir.
16100 Remove trying of system directories if search of
16101 libthread-db-search-path fails, that is now done via $sdir.
16103 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
16105 * server.c (handle_query): Add EnableDisableTracepoints to the list
16106 of supported features.
16107 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
16109 (cmd_qtenable_disable): New.
16110 (cmd_qtstart): Install tracepoints even if disabled.
16111 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
16112 receiving a QTEnable or QTDisable packet.
16113 (gdb_collect): Skip data collection if fast tracepoint is disabled.
16114 (ust_marker_to_static_tracepoint): Do not ignore disabled static
16116 (gdb_probe): Skip data collection if static tracepoint is disabled.
16118 2011-05-10 Doug Evans <dje@google.com>
16120 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
16122 2011-05-04 Doug Evans <dje@google.com>
16124 * linux-low.c (linux_join): Skip process lookup.
16125 * spu-low.c (spu_join): Ditto.
16126 * server.c (join_inferiors_callback): Delete.
16127 (process_serial_event): For 'D' packet (detach) call join_inferior
16130 2011-05-04 Joseph Myers <joseph@codesourcery.com>
16132 * README: Don't mention xscale*-*-linux*.
16133 * configure.srv (xscale*-*-linux*): Don't handle target.
16135 2011-04-27 Nathan Froyd <froydnj@codesourcery.com>
16137 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
16139 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
16140 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
16141 (i386_emit_void_call_2): Likewise.
16143 2011-04-26 Yao Qi <yao@codesourcery.com>
16145 * linux-low.c: Move common macros to linux-ptrace.h.
16146 Include linux-ptrace.h.
16147 * Makefile.in (linux_ptrace_h): New.
16148 (linux-low.o): Depends on linux-ptrace.h.
16150 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
16152 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
16153 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
16154 (remote_prepare): New function with most of the TCP code from ...
16155 (remote_open): ... here. Detect PORT here unconditionally. Move also
16156 setting transport_is_reliable.
16157 * server.c (run_once): New variable.
16158 (gdbserver_usage): Document it.
16159 (main): Set run_once for `--once'. Call remote_prepare. Exit after
16160 the first run if RUN_ONCE.
16161 * server.h (run_once, remote_prepare): New declarations.
16163 2011-04-19 Tom Tromey <tromey@redhat.com>
16165 * win32-low.c (handle_load_dll): Remove duplicate "the".
16167 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
16169 Remove support for old Cygwin 1.5 versions.
16170 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
16171 function to avoid warning.
16172 (win32_add_one_solib): Use cygwin_conv_path function to avoid
16175 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
16177 * gdbserver/server.h (Macro _): Define it if not available.
16179 2011-03-14 Michael Snyder <msnyder@vmware.com>
16181 * hostio.c (handle_close): Remove unnecessary null test.
16183 2011-03-10 Joel Brobecker <brobecker@adacore.com>
16185 * Makefile.in (maintainer-clean realclean distclean): Remove
16186 "make ... subdir_do" command.
16188 2011-03-10 Michael Snyder <msnyder@vmware.com>
16190 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
16192 * server.c (handle_v_run): Free alloced buffer on early return.
16194 2011-03-09 Yao Qi <yao@codesourcery.com>
16197 2011-03-04 Yao Qi <yao@codesourcery.com>
16199 * Makefile.in: Remove GNU make feature --directory.
16201 2011-03-05 Yao Qi <yao@codesourcery.com>
16203 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16204 (subdir_do): New make target. Copied from gdb/Makefile.
16205 (maintainer-clean, realclean, distclean, clean): Call corresponding
16206 make targets in common/Makefile.
16208 2011-02-11 Yao Qi <yao@codesourcery.com>
16210 * configure.ac: Call AC_PROG_RANLIB.
16211 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16212 * configure: Regenerate.
16214 2011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
16216 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
16218 2011-03-06 Yao Qi <yao@codesourcery.com>
16220 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
16222 2011-03-05 Yao Qi <yao@codesourcery.com>
16224 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16225 (subdir_do): New make target. Copied from gdb/Makefile.
16226 (maintainer-clean, realclean, distclean, clean): Call corresponding
16227 make targets in common/Makefile.
16229 2011-03-04 Yao Qi <yao@codesourcery.com>
16231 * Makefile.in: Remove GNU make feature --directory.
16233 2011-03-04 Michael Snyder <msnyder@vmware.com>
16235 * server.c (queue_stop_reply): Call xmalloc not malloc.
16237 2011-03-02 Michael Snyder <msnyder@vmware.com>
16239 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
16241 2011-02-28 Michael Snyder <msnyder@vmware.com>
16243 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
16244 (cmd_qtframe): Ditto.
16245 (cmd_qtbuffer): Ditto.
16246 (cmd_bigqtbuffer): Ditto.
16248 * utils.c (decimal2str): Initialize 'width' to nine, then
16249 don't mess with it.
16251 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
16253 * hostio.c (require_data): Free *data, not data.
16255 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
16257 * hostio.c (require_data): Use free, not xfree.
16259 2011-02-27 Michael Snyder <msnyder@vmware.com>
16261 * server.c (handle_query): Discard unused value.
16263 * hostio.c (require_data): Free malloc memory before returning
16266 2011-02-26 Michael Snyder <msnyder@vmware.com>
16268 * linux-low.c (list_threads): Call closedir for dirent.
16270 2011-02-27 Michael Snyder <msnyder@vmware.com>
16272 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
16273 a case statement falls through.
16275 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
16277 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
16280 2011-02-26 Michael Snyder <msnyder@vmware.com>
16282 * utils.c (decimal2str): Eliminate dead code and dead param.
16283 (pulongest): Drop dead param from call to decimal2str.
16286 2011-02-24 Joel Brobecker <brobecker@adacore.com>
16288 Revert the following patch (not approved yet):
16289 2011-02-21 Hui Zhu <teawater@gmail.com>
16290 * tracepoint.c (tp_printf): New function.
16291 (eval_agent_expr): Handle gdb_agent_op_printf.
16293 2011-02-21 Hui Zhu <teawater@gmail.com>
16295 * tracepoint.c (tp_printf): New function.
16296 (eval_agent_expr): Handle gdb_agent_op_printf.
16298 2011-02-18 Tom Tromey <tromey@redhat.com>
16300 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
16301 (tracepoint.o): Likewise.
16302 * tracepoint.c (enum gdb_agent_op): Use ax.def.
16303 (gdb_agent_op_names): Likewise.
16305 2011-02-18 Tom Tromey <tromey@redhat.com>
16307 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
16308 gdb_agent_op_rot>: New constants.
16309 (gdb_agent_op_names): Add pick and roll.
16310 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
16313 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
16315 * aclocal.m4: Regenerated with aclocal-1.11.1.
16317 2011-02-14 Pedro Alves <pedro@codesourcery.com>
16319 * server.c (handle_qxfer_traceframe_info): New.
16320 (qxfer_packets): Register "traceframe-info".
16321 (handle_query): Report support for qXfer:traceframe-info:read+.
16322 * tracepoint.c (match_blocktype): New.
16323 (traceframe_find_block_type): Rename to ...
16324 (traceframe_walk_blocks): ... this. Add callback filter argument,
16326 (traceframe_find_block_type): New, reimplemented on top of
16327 traceframe_walk_blocks.
16328 (build_traceframe_info_xml): New.
16329 (traceframe_read_info): New.
16330 * server.h (traceframe_read_info): Declare.
16332 2011-02-11 Yao Qi <yao@codesourcery.com>
16334 * configure.ac: Call AC_PROG_RANLIB.
16335 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16336 * configure: Regenerate.
16338 2011-02-07 Pedro Alves <pedro@codesourcery.com>
16340 * server.c (gdb_read_memory): Change return semantics to allow
16342 (handle_search_memory_1): Adjust.
16343 (process_serial_event) <'m' packet>: Handle partial transfers.
16344 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
16346 2011-01-28 Pedro Alves <pedro@codesourcery.com>
16348 * regcache.c (init_register_cache): Initialize
16349 regcache->register_status.
16350 (free_register_cache): Release regcache->register_status.
16351 (regcache_cpy): Copy register_status.
16352 (registers_to_string): Print 'x's for unavailable registers.
16353 (supply_register): Mark the register's status valid or
16354 unavailable, depending on whether a buffer was passed in or not.
16355 (supply_register_zeroed): New.
16356 (supply_regblock): Mark the registers' status valid or
16357 unavailable, depending on whether a buffer was passed in or not.
16358 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
16359 (struct regcache): New `register_status' field.
16360 (supply_register_zeroed): Declare.
16361 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
16362 supply_register_zeroed, rather than passing a NULL buffer to
16364 * tracepoint.c (fetch_traceframe_registers): Update comment.
16366 2011-01-28 Pedro Alves <pedro@codesourcery.com>
16368 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
16371 2011-01-25 Pedro Alves <pedro@codesourcery.com>
16373 * server.h (decode_xfer_write): Change prototype.
16374 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
16375 and don't extract the annex here.
16376 * server.c (decode_xfer_read): Remove `annex' parameter,
16377 and don't extract the annex here.
16378 (decode_xfer): New.
16379 (struct qxfer): New.
16380 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
16381 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
16382 (handle_qxfer_statictrace): New functions, abstracted out from
16383 handle_query, and made to use the struct qxfer interface.
16384 (handle_threads_qxfer_proper): Rename to ...
16385 (handle_qxfer_threads_proper): ... this.
16386 (handle_threads_qxfer): Rename to ...
16387 (handle_qxfer_threads): ... this. Adjust.
16388 (qxfer_packets): New array.
16389 (handle_qxfer): New function.
16390 (handle_query): Use handle_qxfer.
16392 2011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
16394 * gdbreplay.c: Shorten lines of >= 80 columns.
16395 * linux-low.c: Ditto.
16396 * linux-ppc-low.c: Ditto.
16397 * linux-s390-low.c: Ditto.
16398 * linux-sparc-low.c: Ditto.
16399 * linux-x86-low.c: Ditto.
16400 * linux-xtensa-low.c: Ditto.
16401 * mem-break.c: Ditto.
16402 * nto-low.c: Ditto.
16403 * regcache.h: Ditto.
16404 * remote-utils.c: Ditto.
16407 * thread-db.c: Ditto.
16408 * tracepoint.c: Ditto.
16410 * win32-low.h: Ditto.
16412 2011-01-05 Joel Brobecker <brobecker@adacore.com>
16414 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
16417 2011-01-01 Joel Brobecker <brobecker@adacore.com>
16419 * server.c (gdbserver_version): Update copyright year in version
16421 * gdbreplay.c (gdbreplay_version): Ditto.
16423 2010-12-29 Jie Zhang <jie.zhang@analog.com>
16425 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
16426 * linux-bfin-low.c: New file.
16427 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
16428 PT_DATA_ADDR for BFIN targets.
16429 * Makefile.in (SFILES): Add linux-bfin-low.c.
16430 (clean): Remove reg-bfin.c.
16431 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
16432 * README: Mention supported Blackfin targets.
16434 2010-12-23 Mike Frysinger <vapier@gentoo.org>
16436 * .gitignore: New file.
16438 2010-11-16 Mike Frysinger <vapier@gentoo.org>
16440 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
16442 2010-10-22 Jie Zhang <jie@codesourcery.com>
16444 * Makefile.in: Add FLAGS_TO_PASS variable.
16445 (install): Remove dependency of install-only and recursively
16446 invoke make for install-only.
16448 2010-10-04 Doug Evans <dje@google.com>
16450 * Makefile.in (uninstall): Use $(DESTDIR).
16452 2010-09-24 Pedro Alves <pedro@codesourcery.com>
16456 * linux-x86-low.c (compat_siginfo_from_siginfo)
16457 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
16458 si_code is < 0. Check for si_code == SI_TIMER before checking for
16461 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16463 * lynx-i386-low.c: New file.
16464 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
16466 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16468 * lynx-low.c (ptrace_request_to_str): Remove handling for
16469 request values that have been removed in LynxOS 5.x.
16471 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16473 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
16476 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
16478 * configure.ac: Add --enable-inprocess-agent option.
16479 * configure: Rebuilt.
16481 2010-09-06 Yao Qi <yao@codesourcery.com>
16483 * linux-low.c (linux_kill): Remove unused variable.
16484 (linux_stabilize_threads): Likewise.
16485 * server.c (start_inferior): Likewise.
16486 (queue_stop_reply_callback): Likewise.
16487 * tracepoint.c (do_action_at_tracepoint): Likewise.
16489 2010-09-06 Yao Qi <yao@codesourcery.com>
16491 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
16494 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16496 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
16498 2010-09-06 Pedro Alves <pedro@codesourcery.com>
16500 * Makefile.in (install-only): Replace $IPA_DEPFILES with
16503 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16505 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
16506 gdbserver/lynx-ppc-low.c: New files.
16507 * Makefile.in (lynx_low_h): New variable.
16508 (lynx-low.o, lynx-ppc-low.o): New rules.
16509 * configure.ac: On LynxOS, link with -lnetinet.
16510 * configure.srv: Add handling of powerpc-*-lynxos* targets.
16511 * configure: regenerate.
16513 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16515 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
16516 * configure.ac: Add check for vasprintf and vsnprintf.
16517 * configure, config.in: Regenerate.
16518 * server.h (vasprintf, vsnprintf): Add conditional declarations.
16520 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16522 * gdbreplay.c: Move include of alloca.h up, next to include of
16524 * server.h: Add include of malloc.h.
16525 * mem-break.c: Remove include of malloc.h.
16526 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
16528 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16530 * Makefile.in (memmem.o): Build with -Wno-error.
16532 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16534 * utils.c (xsnprintf): Make non-static.
16535 * server.h: Add xsnprintf declaration.
16536 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
16537 replace calls to snprintf by calls to xsnprintf throughout.
16539 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16541 * configure.ac: Add configure check for alloca.
16542 * configure, config.in: Regenerate.
16543 * server.h: Include alloca.h if it exists.
16544 * gdbreplay.c: Include alloca.h if it exists.
16546 2010-08-28 Pedro Alves <pedro@codesourcery.com>
16548 * linux-low.c (__SIGRTMIN): Define if not already defined.
16549 (linux_create_inferior): Check for __ANDROID__ rather than
16551 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
16552 are already deferred.
16553 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
16554 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
16555 stopped and already has a pending signal to report.
16556 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
16557 a pending signal to report or is moving out of a jump pad.
16558 (linux_init_signals): Check for __ANDROID__ rather than
16561 2010-08-28 Pedro Alves <pedro@codesourcery.com>
16563 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
16564 debug_threads check. Avoid a linear search when not doing debug
16567 2010-08-27 Pedro Alves <pedro@codesourcery.com>
16569 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
16570 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
16571 (struct file_handler) <fd>: Change type to gdb_fildes_t.
16572 (process_event): Change local fd's type to gdb_fildes_t.
16573 (create_file_handler): Adjust prototype.
16574 (delete_file_handler): Adjust prototype.
16575 (handle_file_event): Adjust prototype. Use pfildes.
16576 (create_file_event): Adjsut prototype.
16577 * remote-utils.c (remote_desc, listen_desc): Change type to
16579 * server.h: New gdb_fildes_t typedef.
16580 [USE_WIN32API]: Include winsock2.h.
16581 (delete_file_handler, add_file_handler): Adjust prototypes.
16582 (pfildes): Declare.
16583 * utils.c (pfildes): New.
16585 2010-08-27 Pedro Alves <pedro@codesourcery.com>
16587 * configure.ac (build_warnings): Add -Wno-char-subscripts.
16588 * configure: Regenerate.
16590 2010-08-27 Pedro Alves <pedro@codesourcery.com>
16592 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
16593 (linux_done_accessing_memory): ... this.
16594 (linux_target_ops): Adjust.
16595 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
16596 * nto-low.c (nto_target_ops): Adjust comment.
16597 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
16598 * spu-low.c (spu_target_ops): Adjust comment.
16599 * target.h (target_ops): Rename unprepare_to_access_memory field
16600 to done_accessing_memory.
16601 (unprepare_to_access_memory): Rename to ...
16602 (done_accessing_memory): ... this.
16604 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16606 * linux-low.c (linux_prepare_to_access_memory): New.
16607 (linux_unprepare_to_access_memory): New.
16608 (linux_target_ops): Install them.
16609 * server.c (read_memory): Rename to ...
16610 (gdb_read_memory): ... this. Use
16611 prepare_to_access_memory/prepare_to_access_memory.
16612 (write_memory): Rename to ...
16613 (gdb_write_memory): ... this. Use
16614 prepare_to_access_memory/prepare_to_access_memory.
16615 (handle_search_memory_1): Adjust.
16616 (process_serial_event): Adjust.
16617 * target.h (struct target_ops): New fields
16618 prepare_to_access_memory and unprepare_to_access_memory.
16619 (prepare_to_access_memory, unprepare_to_access_memory): New.
16620 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
16621 prepare_to_access_memory/prepare_to_access_memory.
16622 * nto-low.c (nto_target_ops): Adjust.
16623 * spu-low.c (spu_target_ops): Adjust.
16624 * win32-low.c (win32_target_ops): Adjust.
16626 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16628 * Makefile.in (WARN_CFLAGS): Get it from configure.
16629 (WERROR_CFLAGS): New.
16630 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
16631 * configure.ac: Introduce --enable-werror, which adds -Werror to
16632 the compiler command line. Enabled by default. Disable with
16633 --disable-werror. Add -Wdeclaration-after-statement
16634 Wpointer-arith and -Wformat-nonliteral to warning flags.
16635 * configure: Regenerate.
16637 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16639 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
16641 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16643 * gdbreplay.c (remote_error): New.
16645 (expect): Use gdbchar. Check for error reading from GDB.
16646 Clarify sync error output.
16647 (play): Check for errors writing to GDB.
16648 * linux-low.c (sigchld_handler): Really ignore `write' errors.
16649 * remote-utils.c (getpkt): Check for errors writing to the remote
16652 2010-08-25 Pedro Alves <pedro@codesourcery.com>
16654 * linux-low.c (linux_wait_1): Move non-debugging code out of
16655 `debug_threads' control.
16657 2010-08-25 Pedro Alves <pedro@codesourcery.com>
16659 * linux-low.c (linux_wait_1): Don't set last_status here.
16660 * server.c (push_event, queue_stop_reply_callback): Assert we're
16661 not pushing a TARGET_WAITKIND_IGNORE event.
16662 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
16663 (myresume, handle_target_event): Set the thread's last_resume_kind
16664 and last_status from the target returned status.
16666 2010-08-25 Pedro Alves <pedro@codesourcery.com>
16670 * linux-x86-low.c (update_debug_registers_callback): New.
16671 (i386_dr_low_set_addr): Use it.
16672 (i386_dr_low_get_addr): New.
16673 (i386_dr_low_set_control): Use update_debug_registers_callback.
16674 (i386_dr_low_get_control): New.
16675 (i386_dr_low_get_status): Adjust.
16676 * linux-low.c (linux_stop_lwp): New.
16677 * linux-low.h (linux_stop_lwp): Declare.
16679 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
16680 argument instead of a i386_debug_reg_state.
16681 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
16682 a i386_debug_reg_state.
16683 (i386_insert_aligned_watchpoint): Adjust.
16684 (i386_remove_aligned_watchpoint): Adjust.
16685 (i386_low_stopped_data_address): Read the debug registers from the
16686 inferior instead of from the mirrors.
16687 * i386-low.h (struct i386_debug_reg_state): Extend comment.
16688 (i386_dr_low_get_addr): Declare.
16689 (i386_dr_low_get_control): Declare.
16690 (i386_dr_low_get_status): Change prototype.
16692 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
16693 (i386_dr_low_get_addr): New.
16694 (i386_dr_low_get_control): New.
16695 (i386_dr_low_get_status): Adjust prototype. Return
16697 (i386_initial_stuff): Clear dr_status_mirror and
16699 (i386_get_thread_context): Adjust.
16700 (i386_set_thread_context): Adjust.
16701 (i386_thread_added): Adjust.
16703 2010-08-24 Pedro Alves <pedro@codesourcery.com>
16705 * linux-low.h (linux_thread_area): Delete declaration.
16707 2010-08-11 Thomas Schwinge <thomas@codesourcery.com>
16709 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
16710 after its termination.
16712 2010-08-09 Pedro Alves <pedro@codesourcery.com>
16714 * linux-low.c (gdb_wants_lwp_stopped): Delete.
16715 (gdb_wants_all_stopped): Delete.
16716 (linux_wait_1): Don't call them.
16717 * server.c (handle_v_cont): Tag all threads as want-stopped.
16718 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
16719 stopped as "client-wants-stopped".
16721 2010-07-31 Pedro Alves <pedro@codesourcery.com>
16723 * Makefile.in (signals_h): New.
16724 (server_h): Depend on it.
16725 (server.o): Don't depend on $(signals_def).
16726 (signals.o): Depend on $(signals_def).
16728 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
16730 * Makefile.in (signals_def): New.
16731 (server_h): Append include/gdb/signals.h and signals_def.
16732 (server.o): Append signals_def.
16734 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
16736 * server.c (handle_target_event): Use target_signal_to_host for
16737 resume_info.sig initialization.
16738 * target.h (struct thread_resume) <sig>: New comment.
16740 2010-07-20 Ozkan Sezer <sezeroz@gmail.com>
16742 * server.c (handle_query): strcpy() the returned string from paddress()
16743 instead of sprintf().
16744 * utils.c (paddress): Return phex_nz().
16746 2010-07-07 Joel Brobecker <brobecker@adacore.com>
16748 * server.c (handle_v_cont): Call mourn_inferior if process
16750 (myresume): Likewise.
16752 2010-07-01 Pedro Alves <pedro@codesourcery.com>
16754 Static tracepoints, and integration with UST.
16756 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
16757 * mem-break.c (uninsert_all_breakpoints)
16758 (reinsert_all_breakpoints): New.
16759 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
16760 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
16761 (gdb_agent_ust_loaded, helper_thread_id)
16762 (gdb_agent_helper_thread_id): New macros.
16763 (struct ipa_sym_addresses): Add addr_ust_loaded,
16764 addr_helper_thread_id, addr_cmd_buf.
16765 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
16766 (in_process_agent_loaded_ust): New.
16767 (write_e_ust_not_loaded): New.
16768 (maybe_write_ipa_ust_not_loaded): New.
16769 (struct collect_static_trace_data_action): New.
16770 (enum tracepoint_type) <static_tracepoint>: New.
16771 (struct tracepoint) <handle>: Mention static tracepoints.
16772 (struct static_tracepoint_ctx): New.
16773 (CMD_BUF_SIZE): New.
16774 (add_tracepoint_action): Handle static tracepoint actions.
16775 (unprobe_marker_at): New.
16776 (clear_installed_tracepoints): Handle static tracepoints.
16777 (cmd_qtdp): Handle static tracepoints.
16778 (probe_marker_at): New.
16779 (cmd_qtstart): Handle static tracepoints.
16780 (response_tracepoint): Handle static tracepoints.
16781 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
16782 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
16783 (get_context_regcache): Handle static tracepoints.
16784 (do_action_at_tracepoint): Handle static tracepoint actions.
16785 (traceframe_find_block_type): Handle static trace data blocks.
16786 (traceframe_read_sdata): New.
16787 (download_tracepoints): Download static tracepoint actions.
16788 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
16789 (GDB_PROBE_NAME): New.
16791 (GET_UST_SYM): New.
16794 (ust_marker_to_static_tracepoint): New.
16796 (collect_ust_data_at_tracepoint): New.
16797 (gdb_ust_probe): New.
16798 (UNIX_PATH_MAX, SOCK_DIR): New.
16799 (gdb_ust_connect_sync_socket): New.
16800 (resume_thread, stop_thread): New.
16801 (run_inferior_command): New.
16802 (init_named_socket): New.
16803 (gdb_ust_socket_init): New.
16804 (cstr_to_hexstr): New.
16806 (first_marker, next_marker): New.
16807 (response_ust_marker): New.
16808 (cmd_qtfstm, cmd_qtsstm): New.
16809 (unprobe_marker_at, probe_marker_at): New.
16810 (cmd_qtstmat, gdb_ust_thread): New.
16811 (gdb_ust_init): New.
16812 (initialize_tracepoint_ftlib): Call gdb_ust_init.
16813 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
16814 (ST_REGENTRY): New.
16815 (x86_64_st_collect_regmap): New.
16816 (X86_64_NUM_ST_COLLECT_GREGS): New.
16817 (AMD64_RIP_REGNUM): New.
16818 (supply_static_tracepoint_registers): New.
16819 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
16820 (ST_REGENTRY): New.
16821 (i386_st_collect_regmap): New.
16822 (i386_NUM_ST_COLLECT_GREGS): New.
16823 (supply_static_tracepoint_registers): New.
16824 * server.c (handle_query): Handle qXfer:statictrace:read.
16825 <qSupported>: Report support for StaticTracepoints, and
16826 qXfer:statictrace:read features.
16827 * server.h (traceframe_read_sdata)
16828 (supply_static_tracepoint_registers): Declare.
16829 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
16830 (unpack_varlen_hex): Include in IPA build.
16831 * Makefile.in (ustlibs, ustinc): New.
16832 (IPA_OBJS): Add remote-utils-ipa.o.
16833 ($(IPA_LIB)): Link -ldl and -lpthread.
16835 (IPAGENT_CFLAGS): Add UST_CFLAGS.
16836 * config.in, configure: Regenerate.
16838 2010-06-20 Ian Lance Taylor <iant@google.com>
16839 Pedro Alves <pedro@codesourcery.com>
16841 * linux-x86-low.c (always_true): Delete.
16842 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
16843 trying to fool the compiler with always_true.
16845 2010-06-20 Pedro Alves <pedro@codesourcery.com>
16847 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
16848 conditions in gdbserver.
16850 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
16852 * spu-low.c (spu_read_memory): Wrap around local store limit.
16853 (spu_write_memory): Likewise.
16855 2010-06-15 Pedro Alves <pedro@codesourcery.com>
16857 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
16858 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
16860 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
16862 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
16863 uses with LONGEST uses.
16865 2010-06-14 Stan Shebs <stan@codesourcery.com>
16866 Pedro Alves <pedro@codesourcery.com>
16870 * linux-x86-low.c: Include limits.h.
16872 (always_true): New.
16875 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
16876 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
16877 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
16878 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
16879 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
16880 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
16881 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
16882 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
16883 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
16884 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
16885 (amd64_emit_void_call_2): New.
16886 (amd64_emit_ops): New.
16887 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
16888 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
16889 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
16890 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
16891 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
16892 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
16893 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
16894 (i386_emit_call, i386_emit_reg, i386_emit_pop)
16895 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
16896 (i386_emit_stack_adjust, i386_emit_int_call_1)
16897 (i386_emit_void_call_2): New.
16898 (i386_emit_ops): New.
16899 (x86_emit_ops): New.
16900 (the_low_target): Install x86_emit_ops.
16901 * server.h (struct emit_ops): New.
16902 (get_raw_reg_func_addr): Declare.
16903 (current_insn_ptr, emit_error): Declare.
16904 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
16905 (set_trace_state_variable_value): New defines.
16906 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
16907 addr_get_trace_state_variable_value and
16908 addr_set_trace_state_variable_value.
16909 (symbol_list): New fields for get_raw_reg,
16910 get_trace_state_variable_value and set_trace_state_variable_value.
16911 (condfn): New typedef.
16912 (struct tracepoint): New field `compiled_cond'.
16913 (do_action_at_tracepoint): Clear compiled_cond.
16914 (get_trace_state_variable_value, set_trace_state_variable_value):
16916 (condition_true_at_tracepoint): If there's a compiled condition,
16918 (current_insn_ptr, emit_error): New globals.
16919 (struct bytecode_address): New.
16920 (get_raw_reg_func_addr): New.
16921 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
16922 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
16923 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
16924 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
16925 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
16926 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
16927 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
16928 (compile_tracepoint_condition, compile_bytecodes): New.
16929 * target.h (emit_ops): Forward declare.
16930 (struct target_ops): New field emit_ops.
16931 (target_emit_ops): New.
16932 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
16933 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
16934 * linux-low.c (linux_emit_ops): New.
16935 (linux_target_ops): Install it.
16936 * linux-low.h (struct linux_target_ops): New field emit_ops.
16938 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
16940 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
16941 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
16943 2010-06-01 Pedro Alves <pedro@codesourcery.com>
16944 Stan Shebs <stan@codesourcery.com>
16946 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
16947 (all): Depend on $(extra_libraries).
16948 (install-only): Install the IPA.
16949 (IPA_OBJS, IPA_LIB): New.
16950 (clean): Remove the IPA lib.
16951 (IPAGENT_CFLAGS): New.
16952 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
16953 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
16954 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
16955 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
16956 * configure.ac: Check for atomic builtins support in the compiler.
16957 (IPA_DEPFILES, extra_libraries): Define.
16958 * configure.srv (ipa_obj): Add description.
16959 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
16960 (i[34567]86-*-linux*): Set ipa_obj.
16961 (x86_64-*-linux*): Set ipa_obj.
16962 * linux-low.c (stabilizing_threads): New.
16963 (supports_fast_tracepoints): New.
16964 (linux_detach): Stabilize threads before detaching.
16965 (handle_tracepoints): Handle internal tracing breakpoints. Assert
16966 the lwp is either not stabilizing, or is moving out of a jump pad.
16967 (linux_fast_tracepoint_collecting): New.
16968 (maybe_move_out_of_jump_pad): New.
16969 (enqueue_one_deferred_signal): New.
16970 (dequeue_one_deferred_signal): New.
16971 (linux_wait_for_event_1): If moving out of a jump pad, defer
16972 pending signals to later.
16973 (linux_stabilize_threads): New.
16974 (linux_wait_1): Check if threads need moving out of jump pads, and
16976 (stuck_in_jump_pad_callback): New.
16977 (move_out_of_jump_pad_callback): New.
16978 (lwp_running): New.
16979 (linux_resume_one_lwp): Handle moving out of jump pads.
16980 (linux_set_resume_request): Dequeue deferred signals.
16981 (need_step_over_p): Also step over fast tracepoint jumps.
16982 (start_step_over): Also uninsert fast tracepoint jumps.
16983 (finish_step_over): Also reinsert fast tracepoint jumps.
16984 (linux_install_fast_tracepoint_jump): New.
16985 (linux_target_ops): Install linux_stabilize_threads and
16986 linux_install_fast_tracepoint_jump_pad.
16987 * linux-low.h (linux_target_ops) <get_thread_area,
16988 install_fast_tracepoint_jump_pad>: New fields.
16989 (struct lwp_info) <collecting_fast_tracepoint,
16990 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
16991 (linux_get_thread_area): Declare.
16992 * linux-x86-low.c (jump_insn): New.
16993 (x86_get_thread_area): New.
16994 (append_insns): New.
16995 (push_opcode): New.
16996 (amd64_install_fast_tracepoint_jump_pad): New.
16997 (i386_install_fast_tracepoint_jump_pad): New.
16998 (x86_install_fast_tracepoint_jump_pad): New.
16999 (the_low_target): Install x86_get_thread_area and
17000 x86_install_fast_tracepoint_jump_pad.
17001 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
17002 (struct fast_tracepoint_jump): New.
17003 (fast_tracepoint_jump_insn): New.
17004 (fast_tracepoint_jump_shadow): New.
17005 (find_fast_tracepoint_jump_at): New.
17006 (fast_tracepoint_jump_here): New.
17007 (delete_fast_tracepoint_jump): New.
17008 (set_fast_tracepoint_jump): New.
17009 (uninsert_fast_tracepoint_jumps_at): New.
17010 (reinsert_fast_tracepoint_jumps_at): New.
17011 (set_breakpoint_at): Use write_inferior_memory.
17012 (uninsert_raw_breakpoint): Use write_inferior_memory.
17013 (check_mem_read): Mask out fast tracepoint jumps.
17014 (check_mem_write): Mask out fast tracepoint jumps.
17015 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
17016 (set_fast_tracepoint_jump): Declare.
17017 (delete_fast_tracepoint_jump)
17018 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
17019 (reinsert_fast_tracepoint_jumps_at): Declare.
17020 * regcache.c: Don't compile many functions when building the
17021 in-process agent library.
17022 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
17023 the register buffer in the heap.
17024 (free_register_cache): If the register buffer isn't owned by the
17025 regcache, don't free it.
17026 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
17027 pre-existing register caches.
17028 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
17030 (convert_ascii_to_int): : Constify `from' parameter type.
17031 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
17032 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
17033 the needed buffer in-place.
17034 (relocate_instruction): New.
17035 * server.c (handle_query) <qSymbols>: If the target supports
17036 tracepoints, give it a chance of looking up symbols. Report
17037 support for fast tracepoints.
17038 (handle_status): Stabilize threads.
17039 (process_serial_event): Adjust.
17040 * server.h (struct fast_tracepoint_jump): Forward declare.
17041 (struct process_info) <fast_tracepoint_jumps>: New field.
17042 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
17043 (decode_X_packet, decode_M_packet): Adjust.
17044 (relocate_instruction): Declare.
17045 (in_process_agent_loaded): Declare.
17046 (tracepoint_look_up_symbols): Declare.
17047 (struct fast_tpoint_collect_status): Declare.
17048 (fast_tracepoint_collecting): Declare.
17049 (force_unlock_trace_buffer): Declare.
17050 (handle_tracepoint_bkpts): Declare.
17051 (initialize_low_tracepoint)
17052 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
17053 * target.h (struct target_ops) <stabilize_threads,
17054 install_fast_tracepoint_jump_pad>: New fields.
17055 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
17056 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
17057 [HAVE_STDINT_H]: Include stdint.h.
17058 (trace_debug_1): Rename to ...
17059 (trace_vdebug): ... this.
17060 (trace_debug): Rename to ...
17061 (trace_debug_1): ... this. Add `level' parameter.
17062 (trace_debug): New.
17063 (ATTR_USED, ATTR_NOINLINE): New.
17064 (IP_AGENT_EXPORT): New.
17065 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
17066 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
17067 (about_to_request_buffer_space, trace_buffer_is_full)
17068 (stopping_tracepoint, expr_eval_result, error_tracepoint)
17069 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
17070 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
17071 (traceframe_write_count, traceframes_created)
17072 (trace_state_variables)
17073 New renaming defines.
17074 (struct ipa_sym_addresses): New.
17075 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
17076 (symbol_list): New.
17077 (ipa_sym_addrs): New.
17078 (all_tracepoint_symbols_looked_up): New.
17079 (in_process_agent_loaded): New.
17080 (write_e_ipa_not_loaded): New.
17081 (maybe_write_ipa_not_loaded): New.
17082 (tracepoint_look_up_symbols): New.
17083 (debug_threads) [IN_PROCESS_AGENT]: New.
17084 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
17085 (UNKNOWN_SIDE_EFFECTS): New.
17086 (stop_tracing): New.
17087 (flush_trace_buffer): New.
17088 (stop_tracing_bkpt): New.
17089 (flush_trace_buffer_bkpt): New.
17090 (read_inferior_integer): New.
17091 (read_inferior_uinteger): New.
17092 (read_inferior_data_pointer): New.
17093 (write_inferior_data_pointer): New.
17094 (write_inferior_integer): New.
17095 (write_inferior_uinteger): New.
17096 (struct collect_static_trace_data_action): Delete.
17097 (enum tracepoint_type): New.
17098 (struct tracepoint) <type>: New field `type'.
17099 <actions_str, step_actions, step_actions_str>: Only include in
17101 <orig_size, obj_addr_on_target, adjusted_insn_addr>
17102 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
17103 (tracepoints): Use IP_AGENT_EXPORT.
17104 (last_tracepoint): Don't include in the IPA.
17105 (stopping_tracepoint): Use IP_AGENT_EXPORT.
17106 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
17107 (alloced_trace_state_variables): New.
17108 (trace_state_variables): Use IP_AGENT_EXPORT.
17109 (traceframe_t): Delete unused variable.
17110 (circular_trace_buffer): Don't include in the IPA.
17111 (trace_buffer_start): Delete.
17112 (struct trace_buffer_control): New.
17113 (trace_buffer_free): Delete.
17114 (struct ipa_trace_buffer_control): New.
17115 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
17116 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
17118 (trace_buffer_ctrl): New.
17119 (TRACE_BUFFER_CTRL_CURR): New.
17120 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
17121 Reimplement as macros.
17122 (trace_buffer_wrap): Delete.
17123 (traceframe_write_count, traceframe_read_count)
17124 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
17125 (struct tracepoint_hit_ctx) <type>: New field.
17126 (struct fast_tracepoint_ctx): New.
17127 (memory_barrier): New.
17129 (record_tracepoint_error): Update atomically in the IPA.
17130 (clear_inferior_trace_buffer): New.
17131 (about_to_request_buffer_space): New.
17132 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
17133 updating the same buffer.
17134 (add_tracepoint): Default the tracepoint's type to trap
17135 tracepoint, and orig_size to -1.
17136 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
17137 internal variables.
17138 (create_trace_state_variable): New parameter `gdb'. Handle it.
17139 (clear_installed_tracepoints): Clear fast tracepoint jumps.
17140 (cmd_qtdp): Handle fast tracepoints.
17141 (cmd_qtdv): Adjust.
17142 (max_jump_pad_size): New.
17143 (gdb_jump_pad_head): New.
17144 (get_jump_space_head): New.
17145 (claim_jump_space): New.
17146 (sort_tracepoints): New.
17147 (MAX_JUMP_SIZE): New.
17148 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
17150 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
17151 support. Upload fast traceframes, and delete internal IPA
17153 (stop_tracing_handler): New.
17154 (flush_trace_buffer_handler): New.
17155 (cmd_qtstop): Upload fast tracepoints.
17156 (response_tracepoint): Handle fast tracepoints.
17157 (tracepoint_finished_step): Upload fast traceframes. Set the
17158 tracepoint hit context's tracepoint type.
17159 (handle_tracepoint_bkpts): New.
17160 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
17161 type. Add comment about fast tracepoints.
17162 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
17163 non-existing action_str field.
17164 (get_context_regcache): Handle fast tracepoints.
17165 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
17167 (fast_tracepoint_from_jump_pad_address): New.
17168 (fast_tracepoint_from_ipa_tpoint_address): New.
17169 (collecting_t): New.
17170 (force_unlock_trace_buffer): New.
17171 (fast_tracepoint_collecting): New.
17173 (gdb_collect): New.
17174 (write_inferior_data_ptr): New.
17175 (target_tp_heap): New.
17176 (target_malloc): New.
17177 (download_agent_expr): New.
17179 (download_tracepoints): New.
17180 (download_trace_state_variables): New.
17181 (upload_fast_traceframes): New.
17182 (IPA_FIRST_TRACEFRAME): New.
17183 (IPA_NEXT_TRACEFRAME_1): New.
17184 (IPA_NEXT_TRACEFRAME): New.
17185 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
17186 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
17187 (gdb_jump_pad_buffer_end): New.
17188 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
17189 (initialize_tracepoint): Adjust.
17190 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
17191 buffer. Initialize the low module.
17192 * utils.c (PREFIX, TOOLNAME): New.
17193 (malloc_failure): Use PREFIX.
17194 (error): In the IPA, an error causes an exit.
17195 (fatal, warning): Use PREFIX.
17196 (internal_error): Use TOOLNAME.
17197 (NUMCELLS): Increase to 10.
17198 * configure, config.in: Regenerate.
17200 2010-06-01 Pedro Alves <pedro@codesourcery.com>
17202 * server.c (handle_query) <qSupported>: Do two passes over the
17203 qSupported string to avoid nesting strtok.
17205 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17207 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
17209 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
17210 -Wl,--dynamic-list.
17211 * configure: Regenerate.
17212 * proc-service.list: New.
17214 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17216 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
17219 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
17221 * gdbreplay.c (remote_open): Check error return from socket() call by
17222 its equality to -1 not by it being negative.
17223 * remote-utils.c (remote_open): Likewise.
17225 2010-05-23 Pedro Alves <pedro@codesourcery.com>
17227 * config.h: Regenerate.
17229 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17231 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
17232 doesn't provide PTRACE_GET_THREAD_AREA.
17234 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17236 * linux-m68k-low.c: Include <asm/ptrace.h>
17237 (ps_get_thread_area): Implement.
17239 2010-05-03 Doug Evans <dje@google.com>
17241 * event-loop.c (struct callback_event): New struct.
17242 (callback_list): New global.
17243 (append_callback_event, delete_callback_event): New functions.
17244 (process_callback): New function.
17245 (start_event_loop): Call it.
17246 * remote-utils.c (NOT_SCHEDULED): Define.
17247 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
17248 moved out of readchar.
17249 (readchar): Rewrite. Call reschedule before returning.
17250 (reset_readchar): New function.
17251 (remote_close): Call it.
17252 (process_remaining, reschedule): New functions.
17253 * server.h (callback_handler_func): New typedef.
17254 (append_callback_event, delete_callback_event): Declare.
17256 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17258 * proc-service.c (ps_pglobal_lookup): Use
17259 thread_db_look_up_one_symbol.
17260 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
17261 parameter. Use it instead of all_symbols_looked_up.
17262 * server.h (struct process_info) <all_symbols_looked_up>: Delete
17264 (all_symbols_looked_up): Don't declare.
17265 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
17266 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
17268 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
17269 Set all_symbols_looked_up here.
17270 (thread_db_look_up_one_symbol): New.
17271 (thread_db_get_tls_address): Adjust.
17272 (thread_db_load_search, try_thread_db_load_1): Always allocate the
17273 thread_db object on the heap, and tentatively set it in the
17275 (thread_db_init): Don't set all_symbols_looked_up here.
17276 * linux-low.h (thread_db_look_up_one_symbol): Declare.
17278 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17280 * linux-low.c (linux_kill, linux_detach): Adjust.
17281 (status_pending_p_callback): Remove redundant statement. Check
17282 for !TARGET_WAITIKIND_IGNORE, instead of
17283 TARGET_WAITKIND_STOPPED.
17284 (handle_tracepoints): Make sure LWP is locked. Adjust.
17285 (linux_wait_for_event_1): Adjust.
17286 (linux_cancel_breakpoints): New.
17287 (unsuspend_one_lwp): New.
17288 (unsuspend_all_lwps): New.
17289 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
17290 (send_sigstop_callback): Change return type to int, add new
17291 `except' parameter and handle it.
17292 (suspend_and_send_sigstop_callback): New.
17293 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
17294 pass them down. If SUSPEND, also increment the lwp's suspend
17296 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
17297 (need_step_over_p): Don't consider suspended LWPs.
17298 (start_step_over): Adjust.
17299 (proceed_one_lwp): Change return type to int, add new `except'
17300 parameter and handle it.
17301 (unsuspend_and_proceed_one_lwp): New.
17302 (proceed_all_lwps): Use find_inferior instead of
17304 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
17305 also decrement the suspend count of LWPs. Pass `except' down,
17306 instead of hacking its suspend count.
17307 (linux_pause_all): Add `freeze' parameter. Adjust.
17308 (linux_unpause_all): New.
17309 (linux_target_ops): Install linux_unpause_all.
17310 * server.c (handle_status): Adjust.
17311 * target.h (struct target_ops): New fields `unpause_all' and
17312 `cancel_breakpoints'. Add new parameter to `pause_all'.
17313 (pause_all): Add new `freeze' parameter.
17314 (unpause_all): New.
17315 (cancel_breakpoints): New.
17316 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
17317 cancel breakpoints.
17318 (cmd_qtstart): Pause threads.
17319 (stop_tracing): Pause threads, and cancel breakpoints.
17320 * win32-low.c (win32_target_ops): Adjust.
17322 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17324 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
17325 the inferior right away from here...
17326 (linux_wait_1): ... to here, and adjust to check the thread's
17327 last_resume_kind instead of the lwp's step or stop_expected flags.
17329 2010-05-02 Pedro Alves <pedro@codesourcery.com>
17331 * README: Use consistent `GDB' and `GDBserver' spellings.
17333 2010-05-02 Pedro Alves <pedro@codesourcery.com>
17335 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
17336 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
17337 (linux_detach_one_lwp): Assume the lwp is stopped.
17338 (any_thread_of): Delete.
17339 (linux_detach): Stop all lwps here. Don't blindly delete all
17341 (delete_lwp_callback): New.
17342 (linux_mourn): Delete all lwps of the process that is gone.
17343 (linux_wait_1): Don't delete the last lwp of the process here.
17344 * mem-break.h (mark_breakpoints_out): Declare.
17345 * mem-break.c (mark_breakpoints_out): New.
17346 (free_all_breakpoints): Use it.
17347 * server.c (handle_target_event): If the process is gone, mark
17349 * thread-db.c (struct thread_db) <create_bp>: New field.
17350 (thread_db_enable_reporting): Fix prototype. Store a thread event
17351 breakpoint reference in the thread_db struct.
17352 (thread_db_load_search): Clear the thread_db object.
17353 (try_thread_db_load_1): Ditto.
17354 (switch_to_process): New.
17355 (disable_thread_event_reporting): Use it.
17356 (remove_thread_event_breakpoints): New.
17357 (thread_db_detach, thread_db_mourn): Use it.
17359 2010-05-01 Pedro Alves <pedro@codesourcery.com>
17361 * linux-low.c (linux_enable_event_reporting): New.
17362 (linux_wait_for_event_1, handle_extended_wait): Use it.
17364 2010-04-30 Pedro Alves <pedro@codesourcery.com>
17366 * linux-low.c (linux_kill_one_lwp, linux_kill)
17367 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
17368 (send_sigstop): Take an lwp_info as parameter instead. Queue a
17369 SIGSTOP even if the LWP is stopped.
17370 (send_sigstop_callback): New.
17371 (stop_all_lwps): Use send_sigstop_callback instead.
17372 (linux_resume_one_thread): Adjust.
17373 (proceed_one_lwp): Still proceed an LWP that the client has
17374 requested to stop, if we haven't reported it as stopped yet. Make
17375 sure that LWPs the client want stopped, have a pending SIGSTOP.
17377 2010-04-26 Doug Evans <dje@google.com>
17379 * server.c (handle_general_set): Make static.
17381 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
17382 Print received char after testing for error/eof instead of before.
17383 (input_interrupt): Tweak comment.
17385 2010-04-23 Doug Evans <dje@google.com>
17387 * server.c (start_inferior): Print inferior argv if --debug.
17389 2010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
17391 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
17392 * nto-x86-low.c: Include server.h
17394 2010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
17396 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
17397 be consistent with other sources of this directory.
17398 (init_registers_amd64): Correct name of source file of this function
17401 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17403 * configure.srv (x86_64-*-mingw*): New configuration for Windows
17404 64-bit executables.
17406 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17408 * win32-i386-low.c: Add 64-bit support.
17409 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
17410 (init_registers_amd64): Declare.
17411 (mappings): Add 64-bit version of array.
17412 (init_windows_x86): New function.
17413 (the_low_target): Change init_arch field to init_windows_x86.
17415 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17417 * win32-low.c: Adapt to support also 64-bit architecture.
17418 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
17419 (get_image_name): Use SIZE_T type for local variable `done'.
17420 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
17421 (toolhelp_get_dll_name): Idem.
17422 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
17423 Use uintptr_t typecast to avoid warning.
17424 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
17425 (handle_exception): Use phex_nz to avoid warning.
17426 (win32_wait): Remove unused local variable `process'.
17428 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17430 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
17433 2010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
17435 * configure.ac: Use `ws2_32' library for srv_mingw.
17436 * configure: Regenerate.
17437 * gdbreplay.c: Include winsock2.h instead of winsock.h.
17438 * remote-utils.c: Likewise.
17440 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
17442 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
17443 if __x86_64__ is defined.
17445 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17447 * configure: Regenerate.
17449 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17451 * server.c (handle_query): Handle 'qGetTIBAddr' query.
17452 * target.h (target_ops): New get_tib_address field.
17453 * win32-low.h (win32_thread_info): Add thread_local_base field.
17454 * win32-low.c (child_add_thread): Add tlb argument.
17455 Set thread_local_base field to TLB.
17456 (get_child_debug_event): Adapt to child_add_thread change.
17457 (win32_get_tib_address): New function.
17458 (win32_target_ops): Set get_tib_address field to
17459 win32_get_tib_address.
17460 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
17462 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17464 * linux-low.c (linux_mourn): Also remove the process.
17465 * server.c (handle_target_event): Don't remove the process here.
17466 * nto-low.c (nto_mourn): New.
17467 (nto_target_ops): Install it.
17468 * spu-low.c (spu_mourn): New.
17469 (spu_target_ops): Install it.
17470 * win32-low.c (win32_mourn): New.
17471 (win32_target_ops): Install it.
17473 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17475 * server.h (buffer_xml_printf): Remove redundant `;'.
17477 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17479 * regcache.c (set_register_cache): Invalidate regcaches before
17480 changing the register cache layout.
17481 (regcache_invalidate_one): Allow a NULL regcache.
17482 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
17483 regcaches before changing the register cache layout or the target
17486 2010-04-12 H.J. Lu <hongjiu.lu@intel.com>
17488 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
17489 variable warning on Linux/x86-64.
17491 2010-04-11 Pedro Alves <pedro@codesourcery.com>
17493 GDBserver disconnected tracing support.
17495 * linux-low.c (linux_remove_process): Delete.
17496 (add_lwp): Don't set last_resume_kind here.
17497 (linux_kill): Use `mourn'.
17498 (linux_detach): Use `thread_db_detach', and `mourn'.
17499 (linux_mourn): New.
17500 (linux_attach_lwp_1): Adjust comment.
17501 (linux_attach): last_resume_kind moved the thread_info; adjust.
17502 (status_pending_p_callback): Adjust.
17503 (linux_wait_for_event_1): Adjust.
17504 (count_events_callback, select_singlestep_lwp_callback)
17505 (select_event_lwp_callback, cancel_breakpoints_callback)
17506 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
17507 (proceed_one_lwp): Adjust.
17508 (linux_async): Add debug output.
17509 (linux_thread_stopped): New.
17510 (linux_pause_all): New.
17511 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
17513 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
17514 (thread_db_free): Delete declaration.
17515 (thread_db_detach, thread_db_mourn): Declare.
17516 * thread-db.c (thread_db_init): Use thread_db_mourn.
17517 (thread_db_free): Delete, split in two.
17518 (disable_thread_event_reporting): New.
17519 (thread_db_detach): New.
17520 (thread_db_mourn): New.
17522 * server.h (struct thread_info) <last_resume_kind>: New field.
17523 <attached>: Add comment.
17524 <gdb_detached>: New field.
17525 (handler_func): Change return type to int.
17526 (handle_serial_event, handle_target_event): Ditto.
17527 (gdb_connected): Declare.
17529 (disconnected_tracing): Declare.
17530 (stop_tracing): Declare.
17532 * server.c (handle_query) <qSupported>: Report support for
17533 disconnected tracing.
17534 (queue_stop_reply_callback): Account for running threads.
17535 (gdb_wants_thread_stopped): New.
17536 (gdb_wants_all_threads_stopped): New.
17537 (gdb_reattached_process): New.
17538 (handle_status): Clear the `gdb_detached' flag of all processes.
17539 In all-stop, stop all threads.
17540 (main): Be sure to leave tfind mode. Handle disconnected tracing.
17541 (process_serial_event): If the remote connection breaks, or if an
17542 exit was forced with "monitor exit", force an event loop exit.
17543 Handle disconnected tracing on detach.
17544 (handle_serial_event): Adjust.
17545 (handle_target_event): If GDB isn't connected, forward events back
17546 to the inferior, unless the last process exited, in which case,
17547 exit gdbserver. Adjust interface.
17549 * remote-utils.c (remote_open): Don't block in accept. Instead
17550 register an event loop source on the listen socket file
17551 descriptor. Refactor bits into ...
17552 (listen_desc): ... this new global.
17553 (gdb_connected): ... this new function.
17554 (enable_async_notification): ... this new function.
17555 (handle_accept_event): ... this new function.
17556 (remote_close): Clear remote_desc.
17558 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
17560 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
17562 (mourn_inferior): Define.
17563 (target_process_qsupported): Avoid the dangling else problem.
17564 (thread_stopped): Define.
17565 (pause_all): Define.
17566 (target_waitstatus_to_string): Declare.
17567 * target.c (target_waitstatus_to_string): New.
17569 * tracepoint.c (tracing): Make extern.
17570 (disconnected_tracing): New.
17571 (stop_tracing): Make extern. Handle tracing stops due to GDB
17573 (cmd_qtdisconnected): New.
17574 (cmd_qtstatus): Report disconnected tracing status in trace reply.
17575 (handle_tracepoint_general_set): Handle QTDisconnected.
17577 * event-loop.c (event_handler_func): Change return type to int.
17578 (process_event): Bail out if the event handler wants the event
17580 (handle_file_event): Ditto.
17581 (start_event_loop): Bail out if the event handler wants the event
17584 * nto-low.c (nto_target_ops): Adjust.
17585 * spu-low.c (spu_wait): Don't remove the process here.
17586 (spu_target_ops): Adjust.
17587 * win32-low.c (win32_wait): Don't remove the process here.
17588 (win32_target_ops): Adjust.
17590 2010-04-11 Pedro Alves <pedro@codesourcery.com>
17592 * regcache.c (realloc_register_cache): Invalidate inferior's
17593 regcache before recreating it.
17595 2010-04-09 Pedro Alves <pedro@codesourcery.com>
17597 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
17599 2010-04-09 Stan Shebs <stan@codesourcery.com>
17600 Pedro Alves <pedro@codesourcery.com>
17602 * server.h (LONGEST): New.
17603 (struct thread_info) <while_stepping>: New field.
17604 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
17606 (initialize_tracepoint, handle_tracepoint_general_set)
17607 (handle_tracepoint_query, tracepoint_finished_step)
17608 (tracepoint_was_hit, release_while_stepping_state_list):
17609 (current_traceframe): Declare.
17610 * server.c (handle_general_set): Handle tracepoint packets.
17611 (read_memory): New.
17612 (write_memory): New.
17613 (handle_search_memory_1): Use read_memory.
17614 (handle_query): Report support for conditional tracepoints, trace
17615 state variables, and tracepoint sources. Handle tracepoint
17617 (main): Initialize the tracepoints module.
17618 (process_serial_event): Handle traceframe reads/writes.
17620 * linux-low.c (handle_tracepoints): New.
17621 (linux_wait_1): Call it.
17622 (linux_resume_one_lwp): Handle while-stepping.
17623 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
17624 (linux_target_ops): Install them.
17625 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
17627 * linux-x86-low.c (x86_supports_tracepoints): New.
17628 (the_low_target). Install it.
17630 * mem-break.h (delete_breakpoint): Declare.
17631 * mem-break.c (delete_breakpoint): Make external.
17633 * target.h (struct target_ops): Add `supports_tracepoints',
17634 `read_pc', and `write_pc' fields.
17635 (target_supports_tracepoints): Define.
17636 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
17639 * regcache.h (struct regcache) <registers_owned>: New field.
17640 (init_register_cache, regcache_cpy): Declare.
17641 (regcache_read_pc, regcache_write_pc): Declare.
17642 (register_cache_size): Declare.
17643 (supply_regblock): Declare.
17644 * regcache.c (init_register_cache): New.
17645 (new_register_cache): Use it.
17646 (regcache_cpy): New.
17647 (register_cache_size): New.
17648 (supply_regblock): New.
17649 (regcache_read_pc, regcache_write_pc): New.
17651 * tracepoint.c: New.
17653 * Makefile.in (OBS): Add tracepoint.o.
17654 (tracepoint.o): New rule.
17656 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
17658 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
17660 (i386-mmx.c): Likewise.
17661 (i386-mmx-linux.o): Likewise.
17662 (i386-mmx-linux.c): Likewise.
17664 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
17665 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
17666 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
17667 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
17669 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
17670 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
17671 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
17673 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
17675 * Makefile.in (clean): Updated.
17677 (i386-avx.c): Likewise.
17678 (i386-avx-linux.o): Likewise.
17679 (i386-avx-linux.c): Likewise.
17680 (amd64-avx.o): Likewise.
17681 (amd64-avx.c): Likewise.
17682 (amd64-avx-linux.o): Likewise.
17683 (amd64-avx-linux.c): Likewise.
17685 * configure.srv (srv_i386_regobj): Add i386-avx.o.
17686 (srv_i386_linux_regobj): Add i386-avx-linux.o.
17687 (srv_amd64_regobj): Add amd64-avx.o.
17688 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
17689 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
17690 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
17691 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
17692 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
17693 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
17694 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
17696 * i387-fp.c: Include "i386-xstate.h".
17698 (i387_cache_to_xsave): Likewise.
17699 (i387_xsave_to_cache): Likewise.
17700 (x86_xcr0): Likewise.
17702 * i387-fp.h (i387_cache_to_xsave): Likewise.
17703 (i387_xsave_to_cache): Likewise.
17704 (x86_xcr0): Likewise.
17706 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
17707 * linux-crisv32-low.c (target_regsets): Likewise.
17708 * linux-m68k-low.c (target_regsets): Likewise.
17709 * linux-mips-low.c (target_regsets): Likewise.
17710 * linux-ppc-low.c (target_regsets): Likewise.
17711 * linux-s390-low.c (target_regsets): Likewise.
17712 * linux-sh-low.c (target_regsets): Likewise.
17713 * linux-sparc-low.c (target_regsets): Likewise.
17714 * linux-xtensa-low.c (target_regsets): Likewise.
17716 * linux-low.c: Include <sys/uio.h>.
17717 (regsets_fetch_inferior_registers): Support nt_type.
17718 (regsets_store_inferior_registers): Likewise.
17719 (linux_process_qsupported): New.
17720 (linux_target_ops): Add linux_process_qsupported.
17722 * linux-low.h (regset_info): Add nt_type.
17723 (linux_target_ops): Add process_qsupported.
17725 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
17727 (init_registers_i386_avx_linux): New.
17728 (init_registers_amd64_avx_linux): Likewise.
17729 (xmltarget_i386_linux_no_xml): Likewise.
17730 (xmltarget_amd64_linux_no_xml): Likewise.
17731 (PTRACE_GETREGSET): Likewise.
17732 (PTRACE_SETREGSET): Likewise.
17733 (x86_fill_xstateregset): Likewise.
17734 (x86_store_xstateregset): Likewise.
17735 (use_xml): Likewise.
17736 (x86_linux_update_xmltarget): Likewise.
17737 (x86_linux_process_qsupported): Likewise.
17738 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
17739 (x86_arch_setup): Don't call init_registers_amd64_linux nor
17740 init_registers_i386_linux here. Call
17741 x86_linux_update_xmltarget.
17742 (the_low_target): Add x86_linux_process_qsupported.
17744 * server.c (handle_query): Call target_process_qsupported.
17746 * target.h (target_ops): Add process_qsupported.
17747 (target_process_qsupported): New.
17749 2010-04-03 Pedro Alves <pedro@codesourcery.com>
17751 * inferiors.c (add_thread): Set last_status kind to
17752 TARGET_WAITKIND_IGNORE.
17753 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
17754 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
17755 (linux_wait_1): Move `thread' local definition to block that uses
17756 it. Don't NULL initialize `event_child'.
17757 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
17758 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
17759 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
17761 2010-04-01 Pedro Alves <pedro@codesourcery.com>
17763 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
17764 an extended waitstatus, or by a watchpoint.
17765 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
17766 thread was stepping or has been stopped by a watchpoint.
17768 2010-04-01 Pedro Alves <pedro@codesourcery.com>
17770 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
17771 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
17772 of another, then delete the previous, and validate all
17774 (validate_inserted_breakpoint): New.
17775 (delete_disabled_breakpoints): New.
17776 (validate_breakpoints): New.
17777 (check_mem_read): Validate breakpoints before trusting their
17778 shadow. Delete disabled breakpoints.
17779 (check_mem_write): Validate breakpoints before trusting they
17780 should be inserted. Delete disabled breakpoints.
17781 * mem-break.h (validate_breakpoints):
17782 * server.c (handle_query): Validate breakpoints when we see a
17785 2010-04-01 Pedro Alves <pedro@codesourcery.com>
17787 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
17788 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
17789 if we could tell there's a GDB breakpoint at stop_pc.
17790 (need_step_over_p): Don't do a step over if we find a GDB
17791 breakpoint at the resume PC.
17793 * mem-break.c (struct raw_breakpoint): New.
17794 (enum bkpt_type): New type `gdb_breakpoint'.
17795 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
17796 fields. New field `raw'.
17797 (find_raw_breakpoint_at): New.
17798 (set_raw_breakpoint_at): Handle refcounting. Create a raw
17799 breakpoint instead.
17800 (set_breakpoint_at): Adjust.
17801 (delete_raw_breakpoint): New.
17802 (release_breakpoint): New.
17803 (delete_breakpoint): Rename to...
17804 (delete_breakpoint_1): ... this. Add proc parameter. Use
17805 release_breakpoint. Return ENOENT.
17806 (delete_breakpoint): Reimplement.
17807 (find_breakpoint_at): Delete.
17808 (find_gdb_breakpoint_at): New.
17809 (delete_breakpoint_at): Delete.
17810 (set_gdb_breakpoint_at): New.
17811 (delete_gdb_breakpoint_at): New.
17812 (gdb_breakpoint_here): New.
17813 (set_reinsert_breakpoint): Use release_breakpoint.
17814 (uninsert_breakpoint): Rename to ...
17815 (uninsert_raw_breakpoint): ... this.
17816 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
17817 (reinsert_raw_breakpoint): Change parameter type to
17819 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
17821 (check_breakpoints): Adjust. Use release_breakpoint.
17822 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
17823 (breakpoint_inserted_here): Ditto.
17824 (check_mem_read): Adjust to iterate over raw breakpoints instead.
17825 Don't trust the breakpoint's shadow if it is not inserted.
17826 (check_mem_write): Adjust to iterate over raw breakpoints instead.
17827 (delete_all_breakpoints): Adjust.
17828 (free_all_breakpoints): Mark all breakpoints as uninserted, and
17829 use delete_breakpoint_1.
17831 * mem-break.h (breakpoints_supported): Delete declaration.
17832 (set_gdb_breakpoint_at): Declare.
17833 (gdb_breakpoint_here): Declare.
17834 (delete_breakpoint_at): Delete.
17835 (delete_gdb_breakpoint_at): Declare.
17837 * server.h (struct raw_breakpoint): Forward declare.
17838 (struct process_info): New field `raw_breakpoints'.
17840 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
17843 2010-03-24 Pedro Alves <pedro@codesourcery.com>
17845 * linux-low.c (status_pending_p_callback): Fix comment.
17846 (linux_wait_for_event_1): Move most of the internal breakpoint
17847 handling from here...
17848 (linux_wait_1): ... to here.
17849 (count_events_callback): New.
17850 (select_singlestep_lwp_callback): New.
17851 (select_event_lwp_callback): New.
17852 (cancel_breakpoints_callback): New.
17853 (select_event_lwp): New.
17854 (linux_wait_1): Simplify internal breakpoint handling. Give equal
17855 priority to all LWPs that have had events that should be reported
17856 to the client. Cancel breakpoints when about to reporting the
17857 event to the client, not while stopping lwps. No longer cancel
17858 finished single-steps here.
17859 (cancel_finished_single_step): Delete.
17860 (cancel_finished_single_steps): Delete.
17862 2010-03-24 Pedro Alves <pedro@codesourcery.com>
17864 * mem-break.c (enum bkpt_type): New.
17865 (struct breakpoint): New field `type'.
17866 (set_breakpoint_at): Change return type to struct breakpoint
17867 pointer. Set type to `other_breakpoint' by default.
17868 (delete_breakpoint): Rewrite, supporting more than one breakpoint
17869 in the breakpoint list.
17870 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
17871 (reinsert_breakpoint): Rename to ...
17872 (reinsert_raw_breakpoint): ... this.
17873 (reinsert_breakpoints_at): Adjust.
17874 * mem-break.h (struct breakpoint): Declare.
17875 (set_breakpoint_at): Change return type to struct breakpoint
17878 2010-03-24 Pedro Alves <pedro@codesourcery.com>
17880 * server.c (handle_query): Assign, not compare.
17882 2010-03-24 Pedro Alves <pedro@codesourcery.com>
17884 Teach linux gdbserver to step-over-breakpoints.
17886 * linux-low.c (can_hardware_single_step): New.
17887 (supports_breakpoints): New.
17888 (handle_extended_wait): If stopping threads, read the stop pc of
17889 the new cloned LWP.
17891 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
17892 low target doesn't support retrieving the PC.
17893 (add_lwp): Set last_resume_kind to resume_continue.
17894 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
17895 (linux_attach): Don't clear stop_expected. Set the lwp's
17896 last_resume_kind to resume_stop.
17897 (linux_detach_one_lwp): Don't check for removed breakpoints.
17898 (check_removed_breakpoint): Delete.
17899 (status_pending_p): Rename to ...
17900 (status_pending_p_callback): ... this. Don't check for removed
17901 breakpoints. Don't consider threads that are stopped from GDB's
17903 (linux_wait_for_lwp): Always read the stop_pc here.
17904 (cancel_breakpoint): New.
17905 (step_over_bkpt): New global.
17906 (linux_wait_for_event_1): Implement stepping over breakpoints.
17907 (gdb_wants_lwp_stopped): New.
17908 (gdb_wants_all_stopped): New.
17909 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
17910 single-step traps here. Store the thread's last reported target
17912 (send_sigstop): Don't clear stop_expected. Always set it,
17914 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
17915 (cancel_finished_single_step): New.
17916 (cancel_finished_single_steps): New.
17917 (wait_for_sigstop): Don't cancel finished single-step traps here.
17918 (linux_resume_one_lwp): Don't check for removed breakpoints.
17919 Don't set `step' on non-hardware step archs.
17920 (linux_set_resume_request): Ignore resume_stop requests if already
17921 stopping or stopped. Set the lwp's last_resume_kind.
17922 (resume_status_pending_p): Don't check for removed breakpoints.
17923 (need_step_over_p): New.
17924 (start_step_over): New.
17925 (finish_step_over): New.
17926 (linux_resume_one_thread): Always queue a sigstop for resume_stop
17927 requests. Clear the thread's last reported target waitstatus.
17928 Don't use the `suspended' flag. Don't consider pending breakpoints.
17929 (linux_resume): Start a step-over if necessary.
17930 (proceed_one_lwp): New.
17931 (proceed_all_lwps): New.
17932 (unstop_all_lwps): New.
17933 * linux-low.h (struct lwp_info): Rewrite comment for the
17934 `suspended' flag. Add the `stop_pc' field. Delete the
17935 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
17936 Add `'last_resume_kind' and `need_step_over' fields.
17937 * inferiors.c (struct thread_info): Delete, moved elsewhere.
17938 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
17939 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
17940 (set_raw_breakpoint_at): New.
17941 (set_breakpoint_at): Rewrite to use it.
17942 (reinsert_breakpoint_handler): Delete.
17943 (set_reinsert_breakpoint): New.
17944 (reinsert_breakpoint_by_bp): Delete.
17945 (delete_reinsert_breakpoints): New.
17946 (uninsert_breakpoint): Rewrite.
17947 (uninsert_breakpoints_at): New.
17948 (reinsert_breakpoint): Rewrite.
17949 (reinsert_breakpoints_at): New.
17950 (check_breakpoints): Rewrite.
17951 (breakpoint_here): New.
17952 (breakpoint_inserted_here): New.
17953 (check_mem_read): Adjust.
17954 * mem-break.h (breakpoints_supported, breakpoint_here)
17955 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
17956 (reinsert_breakpoint_by_bp): Delete declaration.
17957 (delete_reinsert_breakpoints): Declare.
17958 (reinsert_breakpoint): Delete declaration.
17959 (reinsert_breakpoints_at): Declare.
17960 (uninsert_breakpoint): Delete declaration.
17961 (uninsert_breakpoints_at): Declare.
17962 (check_breakpoints): Adjust prototype.
17963 * server.h: Adjust include order.
17964 (struct thread_info): Declare here. Add a `last_status' field.
17966 2010-03-23 Michael Snyder <msnyder@vmware.com>
17968 * server.c (crc32): New function.
17969 (handle_query): Add handling for 'qCRC:' request.
17971 2010-03-23 Pedro Alves <pedro@codesourcery.com>
17973 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
17974 lwp had been stopped by a watchpoint.
17976 2010-03-16 Pedro Alves <pedro@codesourcery.com>
17978 * server.h (internal_error): Declare.
17979 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
17980 * utils.c (internal_error): New function.
17982 2010-03-15 Andreas Schwab <schwab@redhat.com>
17984 * configure.srv: Fix typo setting srv_regobj.
17986 2010-03-15 Pedro Alves <pedro@codesourcery.com>
17988 * linux-low.c (fetch_register): Avoid passing a non string literal
17990 (usr_store_inferior_registers): Ditto.
17992 2010-03-14 Pedro Alves <pedro@codesourcery.com>
17994 * linux-low.c (linux_write_memory): Bail out early if peeking
17997 2010-03-14 Pedro Alves <pedro@codesourcery.com>
17999 * linux-low.h (struct lwp_info): New fields
18000 `stopped_by_watchpoint' and `stopped_data_address'.
18001 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
18002 here, and cache them in the lwp object.
18003 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
18005 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
18007 (linux_stopped_by_watchpoint): Rewrite.
18008 (linux_stopped_data_address): Rewrite.
18010 2010-03-06 Simo Melenius <simo.melenius@iki.fi>
18012 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
18013 switching the current inferior, not before.
18015 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
18017 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
18018 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
18019 i386-linux.c and amd64-linux.c.
18020 (reg-i386.o): Removed.
18021 (reg-i386.c): Likewise.
18022 (reg-i386-linux.o): Likewise.
18023 (reg-i386-linux.c): Likewise.
18024 (reg-x86-64.o): Likewise.
18025 (reg-x86-64.c): Likewise.
18026 (reg-x86-64-linux.o): Likewise.
18027 (reg-x86-64-linux.c): Likewise.
18029 (i386.c): Likewise.
18030 (i386-linux.o): Likewise.
18031 (i386-linux.c): Likewise.
18032 (amd64.o): Likewise.
18033 (amd64.c): Likewise.
18034 (amd64-linux.o): Likewise.
18035 (amd64-linux.c): Likewise.
18037 * configure.srv (srv_i386_regobj): New.
18038 (srv_i386_linux_regobj): Likewise.
18039 (srv_amd64_regobj): Likewise.
18040 (srv_amd64_linux_regobj): Likewise.
18041 (srv_i386_32bit_xmlfiles): Likewise.
18042 (srv_i386_64bit_xmlfiles): Likewise.
18043 (srv_i386_xmlfiles): Likewise.
18044 (srv_amd64_xmlfiles): Likewise.
18045 (srv_i386_linux_xmlfiles): Likewise.
18046 (srv_amd64_linux_xmlfiles): Likewise.
18047 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
18048 srv_xmlfiles to $srv_i386_xmlfiles.
18049 (i[34567]86-*-mingw32ce*): Likewise.
18050 (i[34567]86-*-mingw*): Likewise.
18051 (i[34567]86-*-nto*): Likewise.
18052 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
18053 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
18054 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
18055 (x86_64-*-linux*): Likewise.
18057 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
18058 (init_registers_amd64_linux): New.
18059 (x86_arch_setup): Replace init_registers_x86_64_linux with
18060 init_registers_amd64_linux.
18062 2010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
18064 * configure.ac: Check for libdl. If it is not available link against
18065 static libthread_db.
18066 * configure: Regenerate.
18068 2010-02-22 Pedro Alves <pedro@codesourcery.com>
18072 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
18073 handing a read watchpoint.
18074 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
18076 2010-02-12 Doug Evans <dje@google.com>
18078 * linux-low.c (linux_supports_tracefork_flag): Document.
18079 (linux_look_up_symbols): Add comment.
18081 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
18083 * regcache.c (supply_register): Clear regcache if buf is NULL.
18085 2010-02-02 Nicolas Roche <roche@sourceware.org>
18086 Joel Brobecker <brobecker@adacore.com>
18088 * inferiors.c (find_inferior): Add function documentation.
18089 (unloaded_dll): Handle the case where the unloaded dll has not
18090 been previously registered in the dll list.
18092 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
18094 * linux-arm-low.c (thumb_breakpoint_len): Delete.
18095 (thumb2_breakpoint): New.
18096 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
18098 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18100 * linux-low.c (get_stop_pc): Check for SIGTRAP.
18101 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
18104 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18106 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
18108 2010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
18110 * linux-s390-low.c (s390_collect_ptrace_register)
18111 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
18113 2010-01-21 Doug Evans <dje@google.com>
18115 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
18116 (PTRACE_ARG4_TYPE): New macro.
18117 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
18118 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
18119 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
18120 (usr_store_inferior_registers): Ditto.
18121 (linux_read_memory, linux_write_memory): Ditto.
18122 (linux_test_for_tracefork): Ditto.
18124 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
18125 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
18127 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18129 * proc-service.c (ps_lgetregs): Don't refetch registers from the
18132 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18134 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
18135 prototype to take a regcache. Adjust.
18137 2010-01-20 Pedro Alves <pedro@codesourcery.com>
18139 * regcache.h (struct thread_info): Forward declare.
18140 (struct regcache): New.
18141 (new_register_cache): Adjust prototype.
18142 (get_thread_regcache): Declare.
18143 (free_register_cache): Adjust prototype.
18144 (registers_to_string, registers_from_string): Ditto.
18145 (supply_register, supply_register_by_name, collect_register)
18146 (collect_register_as_string, collect_register_by_name): Ditto.
18147 * regcache.c (struct inferior_regcache_data): Delete.
18148 (get_regcache): Rename to ...
18149 (get_thread_regcache): ... this. Adjust. Switch inferior before
18150 fetching registers.
18151 (regcache_invalidate_one): Adjust.
18152 (regcache_invalidate): Fix prototype.
18153 (new_register_cache): Return the new register cache.
18154 (free_register_cache): Change prototype.
18155 (realloc_register_cache): Adjust.
18156 (registers_to_string): Change prototype to take a regcache. Adjust.
18157 (registers_from_string): Ditto.
18158 (register_data): Ditto.
18159 (supply_register): Ditto.
18160 (supply_register_by_name): Ditto.
18161 (collect_register): Ditto.
18162 (collect_register_as_string): Ditto.
18163 (collect_register_by_name): Ditto.
18164 * server.c (process_serial_event): Adjust.
18165 * linux-low.h (regset_fill_func, regset_store_func): Change
18167 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
18169 * linux-low.c (get_stop_pc): Adjust.
18170 (check_removed_breakpoint): Adjust.
18171 (linux_wait_for_event): Adjust.
18172 (linux_resume_one_lwp): Adjust.
18173 (fetch_register): Add regcache parameter. Adjust.
18174 (usr_store_inferior_registers): Ditto.
18175 (regsets_fetch_inferior_registers): Ditto.
18176 (regsets_store_inferior_registers): Ditto.
18177 (linux_fetch_registers, linux_store_registers): Ditto.
18178 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
18180 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
18182 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
18183 prototype to take a regcache.
18184 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
18185 * remote-utils.c (convert_ascii_to_int, outreg)
18186 (prepare_resume_reply): Change prototype to take a regcache.
18188 * target.h (struct target_ops) <fetch_registers, store_registers>:
18189 Change prototype to take a regcache.
18190 (fetch_inferior_registers, store_inferior_registers): Change
18191 prototype to take a regcache. Adjust.
18192 * proc-service.c (ps_lgetregs): Adjust.
18193 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
18194 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
18195 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
18196 take a regcache. Adjust.
18197 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
18198 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
18199 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
18200 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
18201 * linux-cris-low.c (cris_get_pc, cris_set_pc)
18202 (cris_cannot_fetch_register):
18203 (cris_breakpoint_at): Change prototype to take a regcache.
18205 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
18206 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
18207 to take a regcache. Adjust.
18208 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
18210 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
18211 take a regcache. Adjust.
18212 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
18213 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
18214 (m68k_set_pc): Change prototype to take a regcache. Adjust.
18215 * linux-mips-low.c (mips_get_pc):
18216 (mips_set_pc): Change prototype to take a regcache. Adjust.
18217 (mips_reinsert_addr): Adjust.
18218 (mips_collect_register): Change prototype to take a regcache.
18220 (mips_supply_register):
18221 (mips_collect_register_32bit, mips_supply_register_32bit)
18222 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
18223 (mips_store_fpregset): Ditto.
18224 * linux-ppc-low.c (ppc_supply_ptrace_register)
18225 (ppc_supply_ptrace_register): Ditto.
18226 (parse_spufs_run): Adjust.
18227 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
18228 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
18229 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
18230 take a regcache. Adjust.
18231 * linux-s390-low.c (s390_collect_ptrace_register)
18232 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
18233 (s390_set_pc): Change prototype to take a regcache. Adjust.
18234 (s390_arch_setup): Adjust.
18235 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
18236 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
18237 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
18238 (sparc_fill_gregset, sparc_store_gregset_from_stack)
18239 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
18241 (sparc_breakpoint_at): Adjust.
18242 * linux-xtensa-low.c (xtensa_fill_gregset):
18243 (xtensa_store_gregset):
18244 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
18245 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
18246 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
18247 prototype to take a regcache. Adjust.
18248 * win32-arm-low.c (arm_fetch_inferior_register)
18249 (arm_store_inferior_register): Change prototype to take a
18251 * win32-i386-low.c (i386_fetch_inferior_register)
18252 (i386_store_inferior_register): Change prototype to take a
18254 * win32-low.c (child_fetch_inferior_registers)
18255 (child_store_inferior_registers): Change prototype to take a
18257 (win32_wait): Adjust.
18258 (win32_fetch_inferior_registers): Change prototype to take a
18260 (win32_store_inferior_registers): Adjust.
18261 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
18262 store_inferior_register>: Change prototype to take a regcache.
18264 2010-01-20 Doug Evans <dje@google.com>
18266 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
18268 (linux_wait_for_event1, linux_init_signals): Ditto.
18269 (W_STOPCODE): Provide definition if missing.
18271 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
18273 * linux-low.c (linux_core_of_thread): New.
18274 (compare_ints, show_process, list_threads): New.
18275 (linux_qxfer_osdata): Report threads and cores.
18276 (linux_target_op): Register linux_core_of_thread.
18277 * remote-utils.c (prepare_resume_reply): Report the core.
18278 (buffer_xml_printf): Support %d specifier.
18279 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
18281 (handle_query): Handle qXfer:threads. Announce availability
18283 * target.h (struct target_ops): New field core_of_thread.
18285 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
18287 * Makefile.in (clean): Remove new generated files.
18288 (reg-s390.o, reg-s390.c): Remove rules.
18289 (reg-s390x.o, reg-s390x.c): Likewise.
18290 (s390-linux32.o, s390-linux32.c): Add rules.
18291 (s390-linux64.o, s390-linux64.c): Likewise.
18292 (s390x-linux64.o, s390x-linux64.c): Likewise.
18293 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
18294 * linux-s390-low.c: Include <elf.h>.
18295 (HWCAP_S390_HIGH_GPRS): Define if undefined.
18296 (init_registers_s390): Remove prototype.
18297 (init_registers_s390x): Likewise.
18298 (init_registers_s390_linux32): Add prototype.
18299 (init_registers_s390_linux64): Likewise.
18300 (init_registers_s390x_linux64): Likewise.
18301 (s390_num_regs_3264): New define.
18302 (s390_regmap_3264): New global variable.
18303 (s390_cannot_fetch_register): Remove obsolete check.
18304 (s390_cannot_store_register): Likewise.
18305 (s390_collect_ptrace_register): Handle upper/lower register halves.
18306 (s390_supply_ptrace_register): Likewise.
18307 (s390_fill_gregset): Update to register number changes.
18308 (s390_get_hwcap): New routine.
18309 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
18310 Install appropriate regmap and register set.
18312 2010-01-01 Joel Brobecker <brobecker@adacore.com>
18314 * server.c (gdbserver_version): Update copyright year to 2010.
18315 * gdbreplay.c (gdbreplay_version): Likewise.
18317 2009-12-28 Doug Evans <dje@google.com>
18319 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
18320 elf/external.h. Include <elf.h> instead but only if necessary.
18322 2009-12-28 Pedro Alves <pedro@codesourcery.com>
18324 * linux-low.c (linux_remove_process): Remove `detaching'
18325 parameter. Don't release/detach from thread_db here.
18326 (linux_kill): Release/detach from thread_db here, ...
18327 (linux_detach): ... and here, before actually detaching.
18328 (linux_wait_1): ... and here, when a process exits.
18329 * thread-db.c (any_thread_of): New.
18330 (thread_db_free): Switch the current inferior to a thread of the
18333 2009-12-21 Doug Evans <dje@google.com>
18335 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
18337 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
18338 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
18339 warning ifndef __NR_tkill. Move setting of errno there too.
18340 Delete unnecessary resetting of errno after syscall.
18341 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
18343 * configure.ac: Check for dladdr.
18344 * config.in: Regenerate.
18345 * configure: Regenerate.
18346 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
18347 (try_thread_db_load): Update.
18349 * linux-low.c (my_waitpid): Delete unnecessary prototype.
18351 2009-12-18 Doug Evans <dje@google.com>
18353 * event-loop.c: Include unistd.h if it exists.
18355 * linux-low.c (my_waitpid): Move definition away from being in
18356 between linux_tracefork_child/linux_test_for_tracefork.
18358 * gdb_proc_service.h (psaddr_t): Fix type.
18359 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
18360 signature to match glibc.
18362 2009-12-16 Doug Evans <dje@google.com>
18364 * linux-low.c (linux_read_memory): Fix argument to read.
18366 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18368 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
18369 events, don't leave current_inferior pointing at null.
18371 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18373 * win32-low.c (LOG): Delete.
18374 (OUTMSG): Output to stderr.
18375 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
18376 on compile time LOG macro.
18377 (win32_wait): Fix debug output.
18379 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18381 * win32-low.c (win32_add_one_solib): If the dll name is
18382 "ntdll.dll", prepend the system directory to the dll path.
18384 2009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
18386 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
18388 2009-11-17 Nathan Sidwell <nathan@codesourcery.com>
18389 Vladimir Prus <vladimir@codesourcery.com>
18391 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
18392 * configure.ac: Check for __mcoldfire__ and set
18393 gdb_cv_m68k_is_coldfire.
18394 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
18395 reg-cf.o and reg-m68k.o.
18396 * configure: Regenerated.
18398 2009-11-16 Pedro Alves <pedro@codesourcery.com>
18400 * linux-low.c (linux_remove_process): Add `detaching' parameter.
18401 Pass it to thread_db_free.
18402 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
18403 proper `detaching' argument to linux_remove_process.
18404 * linux-low.h (thread_db_free): Add `detaching' parameter.
18405 * thread-db.c (thread_db_init): Pass false as `detaching' argument
18407 (thread_db_free): Add `detaching' parameter. Only
18408 call td_ta_clear_event if detaching from process.
18410 2009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
18412 * thread-db.c (thread_db_free): Fix typo.
18414 2009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
18417 * thread-db.c (thread_db_free): Call td_ta_clear_event.
18419 2009-11-03 Nathan Sidwell <nathan@codesourcery.com>
18421 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
18422 with an i686 compiler.
18423 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
18425 * configure: Rebuilt.
18427 2009-10-29 Sandra Loosemore <sandra@codesourcery.com>
18431 * server.c (handle_search_memory_1): Correct read_addr initialization
18432 in loop for searching subsequent chunks.
18434 2009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
18436 * configure.ac: New --with-libthread-db option.
18437 * thread-db.c: Allow direct dependence on libthread_db.
18438 (thread_db_free): Adjust.
18439 * config.in: Regenerate.
18440 * configure: Likewise.
18442 2009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
18445 * thread-db.c (attach_thread): New function.
18446 (maybe_attach_thread): Return success/failure.
18447 (find_new_threads_callback): Adjust.
18448 (thread_db_find_new_threads): Loop until no new threads.
18450 2009-10-13 Pedro Alves <pedro@codesourcery.com>
18452 * proc-service.c (ps_lgetregs): Formatting.
18454 2009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
18456 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
18457 * configure.ac: Adjust.
18458 * linux-low.h (struct process_info_private): Move members to struct
18460 (thread_db_free, thread_db_handle_monitor_command): New prototype.
18461 * linux-low.c (linux_remove_process): Adjust.
18462 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
18463 * server.c (handle_query): Move code ...
18464 (handle_monitor_command): ... here. New function.
18465 * target.h (struct target_ops): New member.
18466 * thread-db.c (struct thread_db): New.
18467 (libthread_db_search_path): New variable.
18468 (thread_db_create_event, thread_db_enable_reporting)
18469 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
18470 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
18471 (try_thread_db_load_1, dladdr_to_soname): New functions.
18472 (try_thread_db_load, thread_db_load_search): New functions.
18473 (thread_db_init): Search for libthread_db.
18474 (thread_db_free): New function.
18475 (thread_db_handle_monitor_command): Likewise.
18476 * config.in: Regenerate.
18477 * configure: Regenerate.
18479 2009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
18481 * spu-low.c (spu_kill): Wait for inferior to terminate.
18482 Call clear_inferiors.
18483 (spu_detach): Call clear_inferiors.
18485 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18487 * aclocal.m4: Regenerate.
18488 * config.in: Likewise.
18489 * configure: Likewise.
18491 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18493 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
18494 (parse_spufs_run): New function.
18495 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
18496 (ppc_breakpoint_at): Handle SPU breakpoints.
18498 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18500 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
18501 (SPUFS_MAGIC): Define.
18502 (spu_enumerate_spu_ids): New function.
18503 (linux_qxfer_spu): New function.
18504 (linux_target_ops): Install linux_qxfer_spu.
18506 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18508 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
18509 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
18510 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
18511 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
18512 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
18513 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
18514 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
18515 (init_registers_powerpc_cell32l): Add prototype.
18516 (init_registers_powerpc_cell64l): Likewise.
18517 (ppc_arch_setup): Detect Cell/B.E. architecture.
18519 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18521 * Makefile.in (datarootdir): New variable.
18523 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18525 * linux-low.c (linux_write_memory): Update debugging output.
18526 * Makefile.in (clean): Add new descriptions.
18527 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
18528 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
18529 * configure.srv: Add new files for arm*-*-linux*.
18530 * linux-arm-low.c: Add new declarations.
18531 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
18532 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
18533 (HWCAP_VFPv3D16): New.
18534 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
18535 instead of __IWMMXT__.
18536 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
18537 (arm_arch_setup): New.
18538 (target_regsets): Remove #ifdef. Add VFP regset.
18539 (the_low_target): Use arm_arch_setup.
18541 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18543 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
18544 the main thread again.
18546 2009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
18548 Adding Neutrino gdbserver.
18549 * configure: Regenerated.
18550 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
18551 * configure.srv (i[34567]86-*-nto*): New target.
18552 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
18553 * remote-utils.c [__QNX__]: Include sys/iomgr.h
18554 (nto_comctrl) [__QNX__]: New function.
18555 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
18557 2009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
18559 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
18562 2009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
18563 Pedro Alves <pedro@codesourcery.com>
18565 * win32-i386-low.c (i386_get_thread_context): Handle systems that
18566 don't support CONTEXT_EXTENDED_REGISTERS.
18567 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
18568 (the_low_target): Install them.
18569 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
18570 failing with ERROR_PIPE_NOT_CONNECTED.
18572 2009-06-30 Doug Evans <dje@google.com>
18573 Pierre Muller <muller@ics.u-strasbg.fr>
18575 Add h/w watchpoint support to x86-linux, win32-i386.
18576 * Makefile.in (SFILES): Add i386-low.c
18577 (i386_low_h): Define.
18578 (i386-low.o): Add dependencies.
18579 (linux-x86-low.o): Add i386-low.h dependency.
18580 (win32-i386-low.o): Ditto.
18581 * i386-low.c: New file.
18582 * i386-low.h: New file.
18583 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
18584 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
18585 * linux-low.c (linux_add_process): Initialize arch_private.
18586 (linux_remove_process): Free arch_private.
18587 (add_lwp): Initialize arch_private.
18588 (delete_lwp): Free arch_private.
18589 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
18591 * linux-low.h (process_info_private): New member arch_private.
18592 (lwp_info): New member arch_private.
18593 (linux_target_ops): New members new_process, new_thread,
18595 (ptid_of): New macro.
18596 * linux-x86-low.c: Include stddef.h, i386-low.h.
18597 (arch_process_info): New struct.
18598 (arch_lwp_info): New struct.
18599 (x86_linux_dr_get, x86_linux_dr_set): New functions.
18600 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18601 (i386_dr_low_get_status): New function.
18602 (x86_insert_point, x86_remove_point): New functions.
18603 (x86_stopped_by_watchpoint): New function.
18604 (x86_stopped_data_address): New function.
18605 (x86_linux_new_process, x86_linux_new_thread): New functions.
18606 (x86_linux_prepare_to_resume): New function.
18607 (the_low_target): Add entries for insert_point, remove_point,
18608 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
18610 * server.c (debug_hw_points): New global.
18611 (monitor_show_help): Document set debug-hw-points.
18612 (handle_query): Process "set debug-hw-points".
18613 * server.h (debug_hw_points): Declare.
18614 (paddress): Declare.
18615 * utils.c (NUMCELLS, CELLSIZE): New macros.
18616 (get_sell, xsnprintf, paddress): New functions.
18617 * win32-arm-low.c (the_low_target): Add entries for insert_point,
18618 remove_point, stopped_by_watchpoint, stopped_data_address.
18619 * win32-i386-low.c: Include i386-low.h.
18620 (debug_reg_state): Replaces dr.
18621 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18622 (i386_dr_low_get_status): New function.
18623 (i386_insert_point, i386_remove_point): New functions.
18624 (i386_stopped_by_watchpoint): New function.
18625 (i386_stopped_data_address): New function.
18626 (i386_initial_stuff): Update.
18627 (get_thread_context,set_thread_context,i386_thread_added): Update.
18628 (the_low_target): Add entries for insert_point,
18629 remove_point, stopped_by_watchpoint, stopped_data_address.
18630 * win32-low.c (win32_insert_watchpoint): New function.
18631 (win32_remove_watchpoint): New function.
18632 (win32_stopped_by_watchpoint): New function.
18633 (win32_stopped_data_address): New function.
18634 (win32_target_ops): Add entries for insert_watchpoint,
18635 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
18636 * win32-low.h (win32_target_ops): New members insert_point,
18637 remove_point, stopped_by_watchpoint, stopped_data_address.
18639 2009-06-25 Pedro Alves <pedro@codesourcery.com>
18641 * server.c (process_serial_event): Re-return unsupported, not
18642 error, if the type isn't recognized. Re-allow supporting only
18643 insert or remove packets. Also call require_running for
18644 breakpoints. Add missing break statement to default case. Tidy.
18645 * target.h (struct target_ops): Rename insert_watchpoint to
18646 insert_point, and remove_watchpoint to remove_point.
18648 * linux-low.h (struct linux_target_ops): Likewise.
18649 * linux-low.c (linux_insert_watchpoint): Rename to ...
18650 (linux_insert_point): ... this. Adjust.
18651 (linux_remove_watchpoint): Rename to ...
18652 (linux_remove_point): ... this. Adjust.
18653 (linux_target_ops): Adjust.
18654 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
18655 (cris_insert_point): ... this.
18656 (cris_remove_watchpoint): Rename to ...
18657 (cris_remove_point): ... this.
18658 (the_low_target): Adjust.
18660 2009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
18662 * server.c (handle_v_kill): Pass signal_pid to
18663 kill_inferior if multi_process is zero.
18665 2009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
18667 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
18668 * target.h (target_ops): Comment for *_watchpoint to make it clear
18669 the functions can get types '0' and '1'.
18671 2009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
18673 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
18674 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
18675 * regcache.c (get_regcache): Likewise.
18676 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
18677 * win32-low.c (child_fetch_inferior_registers): Remove check for
18680 2009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
18681 Pedro Alves <pedro@codesourcery.com>
18683 * target.h (struct target_ops) <supports_multi_process>: New
18685 (target_supports_multi_process): New.
18686 * server.c (handle_query): Even if GDB reports support, only
18687 enable multi-process if the target also supports it. Report
18688 multi-process support only if the target backend supports it.
18689 * linux-low.c (linux_supports_multi_process): New function.
18690 (linux_target_ops): Install it as target_supports_multi_process
18693 2009-05-24 Doug Evans <dje@google.com>
18695 Global renaming of find_thread_pid to find_thread_ptid.
18696 * server.h (find_thread_ptid): Renamed from find_thread_pid.
18697 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
18698 All callers updated.
18700 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
18701 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
18704 * linux-low.c (get_stop_pc): Print pc if debug_threads.
18705 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
18706 (linux_resume_one_lwp): Ditto.
18708 2009-05-23 Doug Evans <dje@google.com>
18710 * linux-low.c (linux_resume_one_lwp): Change type of first arg
18711 from struct inferior_list_entry * to struct lwp_info *.
18712 All callers updated.
18714 2009-05-13 Doug Evans <dje@google.com>
18716 * linux-x86-low.c: Don't include assert.h.
18717 (x86_siginfo_fixup): Use fatal, not assert.
18718 (x86_arch_setup): Fix comment.
18720 2009-05-12 Doug Evans <dje@google.com>
18722 Biarch support for i386/amd64 gdbserver.
18723 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
18724 Add linux-x86-low.c.
18725 (linux-i386-low.o, linux-x86-64-low.o): Delete.
18726 (linux-x86-low.o): Add.
18727 * linux-x86-64-low.c: Delete.
18728 * linux-i386-low.c: Delete.
18729 * linux-x86-low.c: New file.
18730 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
18732 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
18734 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
18735 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
18736 (linux_child_pid_to_exec_file): New function.
18737 (elf_64_header_p, elf_64_file_p): New functions.
18738 (siginfo_fixup): New function.
18739 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
18740 give target a chance to convert layout.
18741 * linux-low.h (linux_target_ops): New member siginfo_fixup.
18742 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
18744 2009-05-07 Doug Evans <dje@google.com>
18746 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
18747 (regsets_store_inferior_registers): Ditto.
18749 2009-05-06 Pedro Alves <pedro@codesourcery.com>
18753 * linux-low.c (must_set_ptrace_flags): Delete.
18754 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
18756 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
18757 `lwp->must_set_ptrace_flags' instead.
18758 (linux_wait_for_event_1): Set ptrace options here.
18759 (linux_wait_1): ... not here.
18761 2009-04-30 Doug Evans <dje@google.com>
18763 * inferiors.c (started_inferior_callback): New function.
18764 (attached_inferior_callback): New function.
18765 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
18766 * server.c (print_started_pid, print_attached_pid): New functions.
18767 (detach_or_kill_for_exit): New function.
18768 (main): Call it instead of for_each_inferior (kill_inferior_callback).
18769 * server.h (have_started_inferiors_p): Declare.
18770 (have_attached_inferiors_p): Declare.
18772 * inferiors.c (remove_process): Fix memory leak, free process.
18773 * linux-low.c (linux_remove_process): New function.
18774 (linux_kill): Call it instead of remove_process.
18775 (linux_detach, linux_wait_1): Ditto.
18777 2009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
18779 * configure.srv: Add x86 Windows CE target.
18781 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
18783 * inferiors.c (get_thread_process): Make global.
18784 * server.h (get_thread_process): Add prototype.
18785 * thread-db.c (find_one_thread): Use get_thread_process
18786 instead of current_process.
18787 (thread_db_get_tls_address): Do not crash if called when
18788 thread layer is not yet initialized.
18790 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
18792 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
18793 * spu-low.c (current_tid): Rename to ...
18794 (current_ptid): ... this.
18795 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
18796 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
18797 ptid_get_lwp (current_ptid) instead of current_tid.
18798 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
18799 instead of current_tid. Use find_process_pid to verify pid
18800 argument is valid. Pass proper argument to remove_process.
18801 (spu_thread_alive): Compare current_ptid instead of current_tid.
18802 (spu_resume): Likewise.
18804 2009-04-02 Pedro Alves <pedro@codesourcery.com>
18806 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
18809 2009-04-01 Pedro Alves <pedro@codesourcery.com>
18811 Implement the multiprocess extensions, and add linux multiprocess
18814 * server.h (ULONGEST): Declare.
18815 (struct ptid, ptid_t): New.
18816 (minus_one_ptid, null_ptid): Declare.
18817 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
18818 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
18819 (struct inferior_list_entry): Change `id' type from unsigned from
18821 (struct sym_cache, struct breakpoint, struct
18822 process_info_private): Forward declare.
18823 (struct process_info): Declare.
18824 (current_process): Declare.
18825 (all_processes): Declare.
18826 (initialize_inferiors): Declare.
18827 (add_thread): Adjust to use ptid_t.
18828 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
18829 (add_process, remove_process, find_thread_pid): Declare.
18830 (find_inferior_id): Adjust to use ptid_t.
18831 (cont_thread, general_thread, step_thread): Change type to ptid_t.
18832 (multi_process): Declare.
18833 (push_event): Adjust to use ptid_t.
18834 (read_ptid, write_ptid): Declare.
18835 (prepare_resume_reply): Adjust to use ptid_t.
18836 (clear_symbol_cache): Declare.
18837 * inferiors.c (all_processes): New.
18838 (null_ptid, minus_one_ptid): New.
18839 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
18840 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
18841 (add_thread): Change unsigned long to ptid. Remove gdb_id
18843 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
18844 (gdb_id_to_thread): Rename to ...
18845 (find_thread_pid): ... this. Change unsigned long to ptid.
18846 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
18847 (loaded_dll, pull_pid_from_list): Adjust.
18848 (add_process, remove_process, find_process_pid)
18849 (get_thread_process, current_process, initialize_inferiors): New.
18850 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
18851 (struct target_waitstatus) <related_pid>: Ditto.
18852 (struct target_ops) <kill, detach>: Add `pid' argument. Change
18853 return type to int.
18854 (struct target_ops) <join>: Add `pid' argument.
18855 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
18856 (struct target_ops) <wait>: Add `ptid' field. Change return type
18858 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
18859 (mywait): Add `ptid' argument. Change return type to ptid_t.
18860 (target_pid_to_str): Declare.
18861 * target.c (set_desired_inferior): Adjust to use ptids.
18862 (mywait): Add new `ptid' argument. Adjust.
18863 (target_pid_to_str): New.
18864 * mem-break.h (free_all_breakpoints): Declare.
18865 * mem-break.c (breakpoints): Delelete.
18866 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
18867 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
18868 to use per-process breakpoint list.
18869 (free_all_breakpoints): New.
18870 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
18871 (symbol_cache, all_symbols_looked_up): Delete.
18873 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
18875 (prepare_resume_reply): Change ptid argument's type from unsigned
18876 long to ptid_t. Adjust. Implement W;process and X;process.
18877 (free_sym_cache, clear_symbol_cache): New.
18878 (look_up_one_symbol): Adjust to per-process symbol cache. *
18879 * server.c (cont_thread, general_thread, step_thread): Change type
18881 (attached): Delete.
18882 (multi_process): New.
18883 (last_ptid): Change type to ptid_t.
18884 (struct vstop_notif) <ptid>: Change type to ptid_t.
18885 (queue_stop_reply, push_event): Change `ptid' argument's type to
18887 (discard_queued_stop_replies): Add `pid' argument.
18888 (start_inferior): Adjust to use ptids. Adjust to mywait interface
18889 changes. Don't reference the `attached' global.
18890 (attach_inferior): Adjust to mywait interface changes.
18891 (handle_query): Adjust to use ptids. Parse GDB's qSupported
18892 features. Handle and report "multiprocess+". Handle
18894 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
18896 (handle_v_kill): New.
18897 (handle_v_stopped): Adjust to use target_pid_to_str.
18898 (handle_v_requests): Allow multiple attaches and runs when
18899 multiprocess extensions are in effect. Handle "vKill".
18900 (myresume): Adjust to use ptids.
18901 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
18902 (handle_status): Adjust to discard_queued_stop_replies interface
18904 (first_thread_of, kill_inferior_callback)
18905 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
18906 (main): Call initialize_inferiors. Adjust to use ptids, killing
18907 and detaching from all inferiors. Handle multiprocess packet
18909 * linux-low.h: Include gdb_proc_service.h.
18910 (struct process_info_private): New.
18911 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
18912 <lwpid_of>: Use ptid_get_lwp.
18913 (get_lwp_thread): Adjust.
18914 (struct lwp_info): Add `dead' member.
18915 (find_lwp_pid): Declare.
18916 * linux-low.c (thread_db_active): Delete.
18917 (new_inferior): Adjust comment.
18918 (inferior_pid): Delete.
18919 (linux_add_process): New.
18920 (handle_extended_wait): Adjust.
18921 (add_lwp): Change unsigned long to ptid.
18922 (linux_create_inferior): Add process to processes table. Adjust
18923 to use ptids. Don't set new_inferior here.
18924 (linux_attach_lwp): Rename to ...
18925 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
18926 it. Adjust to use ptids.
18927 (linux_attach_lwp): New.
18928 (linux_attach): Add process to processes table. Don't set
18930 (struct counter): New.
18931 (second_thread_of_pid_p, last_thread_of_process_p): New.
18932 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
18933 multiple processes.
18934 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
18935 processes. Remove process from process table.
18936 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
18937 to multiple processes.
18938 (any_thread_of): New.
18939 (linux_detach): Add `pid' argument, and handle it. Remove process
18940 from processes table.
18941 (linux_join): Add `pid' argument. Handle it.
18942 (linux_thread_alive): Change unsighed long argument to ptid_t.
18943 Consider dead lwps as not being alive.
18944 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
18945 threads we're not interested in.
18946 (same_lwp, find_lwp_pid): New.
18947 (linux_wait_for_lwp): Change `pid' argument's type from int to
18949 (linux_wait_for_event): Rename to ...
18950 (linux_wait_for_event_1): ... this. Change `pid' argument's type
18951 from int to ptid_t. Adjust.
18952 (linux_wait_for_event): New.
18953 (linux_wait_1): Add `ptid' argument. Change return type to
18954 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
18955 that exit from the process table.
18956 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
18958 (mark_lwp_dead): New.
18959 (wait_for_sigstop): Adjust to use ptids. If a process exits while
18960 stopping all threads, mark its main lwp as dead.
18961 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
18963 (fetch_register, usr_store_inferior_registers)
18964 (regsets_fetch_inferior_registers)
18965 (regsets_store_inferior_registers, linux_read_memory)
18966 (linux_write_memory): Inline `inferior_pid'.
18967 (linux_look_up_symbols): Adjust to use per-process
18968 `thread_db_active'.
18969 (linux_request_interrupt): Adjust to use ptids.
18970 (linux_read_auxv): Inline `inferior_pid'.
18971 (initialize_low): Don't reference thread_db_active.
18972 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
18973 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
18974 (ps_getpid): Return the pid of the current inferior.
18975 * thread-db.c (proc_handle, thread_agent): Delete.
18976 (thread_db_create_event, thread_db_enable_reporting): Adjust to
18978 (find_one_thread): Change argument type to ptid_t. Adjust to
18980 (maybe_attach_thread): Adjust to per-process data and ptids.
18981 (thread_db_find_new_threads): Ditto.
18982 (thread_db_init): Ditto.
18983 * spu-low.c (spu_create_inferior, spu_attach): Add process to
18984 processes table. Adjust to use ptids.
18985 (spu_kill, spu_detach): Adjust interface. Remove process from
18987 (spu_join, spu_thread_alive): Adjust interface.
18988 (spu_wait): Adjust interface. Remove process from processes
18989 table. Adjust to use ptids.
18990 * win32-low.c (current_inferior_tid): Delete.
18991 (current_inferior_ptid): New.
18992 (debug_event_ptid): New.
18993 (thread_rec): Take a ptid. Adjust.
18994 (child_add_thread): Add `pid' argument. Adjust to use ptids.
18995 (child_delete_thread): Ditto.
18996 (do_initial_child_stuff): Add `attached' argument. Add process to
18998 (child_fetch_inferior_registers, child_store_inferior_registers):
19000 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
19001 (win32_attach): Pass 1 to do_initial_child_stuff.
19002 (win32_kill): Adjust interface. Remove process from processes
19004 (win32_detach): Ditto.
19005 (win32_join): Adjust interface.
19006 (win32_thread_alive): Take a ptid.
19007 (win32_resume): Adjust to use ptids.
19008 (get_child_debug_event): Ditto.
19009 (win32_wait): Adjust interface. Remove exiting process from
19012 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19014 Non-stop mode support.
19016 * server.h (non_stop): Declare.
19017 (gdb_client_data, handler_func): Declare.
19018 (delete_file_handler, add_file_handler, start_event_loop):
19020 (handle_serial_event, handle_target_event, push_event)
19021 (putpkt_notif): Declare.
19022 * target.h (enum resume_kind): New.
19023 (struct thread_resume): Replace `step' field by `kind' field.
19024 (TARGET_WNOHANG): Define.
19025 (struct target_ops) <wait>: Add `options' argument.
19026 <supports_non_stop, async, start_non_stop>: New fields.
19027 (target_supports_non_stop, target_async): New.
19028 (start_non_stop): Declare.
19029 (mywait): Add `options' argument.
19030 * target.c (mywait): Add `options' argument. Print child exit
19031 notifications here.
19032 (start_non_stop): New.
19033 * server.c (non_stop, own_buf, mem_buf): New globals.
19034 (struct vstop_notif): New.
19035 (notif_queue): New global.
19036 (queue_stop_reply, push_event, discard_queued_stop_replies)
19037 (send_next_stop_reply): New.
19038 (start_inferior): Adjust to use resume_kind. Adjust to mywait
19040 (attach_inferior): In non-stop mode, don't wait for the target
19042 (handle_general_set): Handle QNonStop.
19043 (handle_query): When handling qC, return the current general
19044 thread, instead of the first thread of the list.
19045 (handle_query): If the backend supports non-stop mode, include
19046 QNonStop+ in the qSupported query response.
19047 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
19049 (handle_v_attach, handle_v_run): Handle non-stop mode.
19050 (handle_v_stopped): New.
19051 (handle_v_requests): Report support for vCont;t. Handle vStopped.
19052 (myresume): Adjust to use resume_kind. Handle non-stop.
19053 (queue_stop_reply_callback): New.
19054 (handle_status): Handle non-stop mode.
19055 (main): Clear non_stop flag on reconnection. Use the event-loop.
19056 Refactor serial protocol handling from here ...
19057 (process_serial_event): ... to this new function. When GDB
19058 selects any thread, select one here. In non-stop mode, wait until
19059 GDB acks all pending events before exiting.
19060 (handle_serial_event, handle_target_event): New.
19061 * remote-utils.c (remote_open): Install remote_desc in the event
19063 (remote_close): Remove remote_desc from the event loop.
19064 (putpkt_binary): Rename to...
19065 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
19066 (putpkt_binary): New as wrapper around putpkt_binary_1.
19067 (putpkt_notif): New.
19068 (prepare_resume_reply): In non-stop mode, don't change the
19070 * event-loop.c: New.
19071 * Makefile.in (OBJ): Add event-loop.o.
19072 (event-loop.o): New rule.
19074 * linux-low.h (pid_of): Moved here.
19076 (get_lwp_thread): Use lwpid_of.
19077 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
19078 * linux-low.c (pid_of): Delete.
19079 (inferior_pid): Use lwpid_of.
19080 (linux_event_pipe): New.
19081 (target_is_async_p): New.
19083 (handle_extended_wait): Use lwpid_of.
19084 (add_lwp): Don't set lwpid field.
19085 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
19086 (linux_kill_one_lwp): If killing a running lwp, stop it first.
19087 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
19088 (linux_detach_one_lwp): If detaching from a running lwp, stop it
19089 first. Adjust to linux_wait_for_event interface changes. Use
19091 (linux_detach): Don't delete the main lwp here.
19092 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
19093 (status_pending_p): Don't consider explicitly suspended lwps.
19094 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
19095 pointer. Add OPTIONS argument. Change return type to int. Use
19096 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
19097 (linux_wait_for_event): Take an integer pid instead of a lwp_info
19098 pointer. Add status pointer argument. Return a pid instead of a
19099 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
19100 changes. In non-stop mode, don't switch to a random thread.
19101 (linux_wait): Rename to...
19102 (linux_wait_1): ... this. Add target_options argument, and handle
19103 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
19104 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
19105 clean exit and signal exit code. Don't stop all threads in
19106 non-stop mode. In all-stop mode, only stop all threads when
19107 reporting a stop to GDB. Handle explicit thread stop requests.
19108 (async_file_flush, async_file_mark): New.
19110 (send_sigstop): Use lwpid_of.
19111 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
19112 interface changes. In non-stop mode, don't switch to a random
19114 (linux_resume_one_lwp): Use lwpid_of.
19115 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
19116 (linux_resume_one_thread): ... this. Handle resume_stop. In
19117 non-stop mode, don't look for pending flag in all threads.
19118 (resume_status_pending_p): Don't consider explicitly suspended
19120 (my_waitpid): Reimplement. Emulate __WALL.
19121 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19123 (sigchld_handler, linux_supports_non_stop, linux_async)
19124 (linux_start_non_stop): New.
19125 (linux_target_ops): Register linux_supports_non_stop, linux_async
19126 and linux_start_non_stop.
19127 (initialize_low): Install SIGCHLD handler.
19128 * thread-db.c (thread_db_create_event, find_one_thread)
19129 (thread_db_get_tls_address): Use lwpid_of.
19130 * win32-low.c (win32_detach): Adjust to use resume_kind.
19131 (win32_wait): Add `options' argument.
19132 * spu-low.c (spu_resume): Adjust to use resume_kind.
19133 (spu_wait): Add `options' argument.
19135 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19137 Decouple target code from remote protocol.
19139 * target.h (enum target_waitkind): New.
19140 (struct target_waitstatus): New.
19141 (struct target_ops) <wait>: Return an unsigned long. Take a
19142 target_waitstatus pointer instead of a char pointer.
19143 (mywait): Likewise.
19144 * target.c (mywait): Change prototype to return an unsigned long.
19145 Take a target_waitstatus pointer instead of a char pointer. Adjust.
19146 * server.h (thread_from_wait, old_thread_from_wait): Delete
19148 (prepare_resume_reply): Change prototype to take a
19150 * server.c (thread_from_wait, old_thread_from_wait): Delete.
19151 (last_status, last_ptid): New.
19152 (start_inferior): Remove "statusptr" argument. Adjust. Return a
19153 pid instead of a signal.
19154 (attach_inferior): Remove "status" and "signal" parameters.
19156 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
19158 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
19159 (handle_v_requests, myresume): Remove "status" and "signal"
19160 parameters. Adjust.
19161 (handle_status): New.
19162 (main): Delete local `status'. Adjust.
19163 * remote-utils.c: Include target.h.
19164 (prepare_resume_reply): Change prototype to take a
19165 target_waitstatus. Adjust.
19167 * linux-low.c (linux_wait): Adjust to new target_ops->wait
19169 * spu-low.c (spu_wait): Adjust.
19170 * win32-low.c (enum target_waitkind, struct target_waitstatus):
19172 (win32_wait): Adjust.
19174 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19176 * target.h (struct thread_resume): Delete leave_stopped member.
19177 (struct target_ops): Add a `n' argument to the `resume' callback.
19178 * server.c (start_inferior): Adjust.
19179 (handle_v_cont, myresume): Adjust.
19180 * linux-low.c (check_removed_breakpoint): Adjust to resume
19181 interface change, and to removed leave_stopped field.
19182 (resume_ptr): Delete.
19183 (struct thread_resume_array): New.
19184 (linux_set_resume_request): Add new `arg' parameter. Adjust to
19185 resume interface change.
19186 (linux_continue_one_thread, linux_queue_one_thread)
19187 (resume_status_pending_p): Check if the resume field is NULL
19188 instead of checking the leave_stopped member.
19189 (linux_resume): Adjust to the target resume interface change.
19190 * spu-low.c (spu_resume): Adjust to the target resume interface
19192 * win32-low.c (win32_detach, win32_resume): Ditto.
19194 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19196 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
19198 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
19200 (linux_continue_one_thread): Only preserve the stepping flag if
19201 there's a pending breakpoint.
19203 2009-03-31 Pedro Alves <pedro@codesourcery.com>
19205 * server.c (main): After the inferior having exited, call
19206 remote_close before exiting gdbserver.
19208 2009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
19210 Fix size of FPSCR in Power 7 processors.
19211 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
19212 (PPC_FEATURE_HAS_DFP): New #define.
19213 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
19216 2009-03-23 Pedro Alves <pedro@codesourcery.com>
19218 * server.c (handle_query) Whitespace and formatting.
19220 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19222 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
19223 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
19224 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
19225 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
19226 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
19227 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
19228 Makefile.in, configure.ac: Fix whitespace throughout.
19229 * configure: Regenerate.
19231 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19233 * inferiors.c (find_inferior): Make it safe for the callback
19234 function to delete the currently iterated inferior.
19236 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19238 * Makefile.in (linuw_low_h): Move higher.
19239 (thread-db.o): Depend on $(linux_low_h).
19241 2009-03-17 Pedro Alves <pedro@codesourcery.com>
19243 Rename "process" to "lwp" throughout.
19245 * linux-low.c (all_processes): Rename to...
19246 (all_lwps): ... this.
19247 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
19248 (add_process): Rename to ...
19249 (add_lwp): ... this. Adjust.
19250 (linux_create_inferior): Adjust.
19251 (linux_attach_lwp): Adjust.
19252 (linux_attach): Adjust.
19253 (linux_kill_one_process): Rename to ...
19254 (linux_kill_one_lwp): ... this. Adjust.
19255 (linux_kill): Adjust.
19256 (linux_detach_one_process): Rename to ...
19257 (linux_detach_one_lwp): ... this. Adjust.
19258 (linux_detach): Adjust.
19259 (check_removed_breakpoint): Adjust.
19260 (status_pending_p): Adjust.
19261 (linux_wait_for_process): Rename to ...
19262 (linux_wait_for_lwp): ... this. Adjust.
19263 (linux_wait_for_event): Adjust.
19264 (send_sigstop): Adjust.
19265 (wait_for_sigstop): Adjust.
19266 (stop_all_processes): Rename to ...
19267 (stop_all_lwps): ... this.
19268 (linux_resume_one_process): Rename to ...
19269 (linux_resume_one_lwp): ... this. Adjust.
19270 (linux_set_resume_request, linux_continue_one_thread)
19271 (linux_queue_one_thread, resume_status_pending_p)
19272 (usr_store_inferior_registers, regsets_store_inferior_registers)
19273 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19275 * linux-low.h (get_process): Rename to ...
19276 (get_lwp): ... this. Adjust.
19277 (get_thread_process): Rename to ...
19278 (get_thread_lwp): ... this. Adjust.
19279 (get_process_thread): Rename to ...
19280 (get_lwp_thread): ... this. Adjust.
19281 (struct process_info): Rename to ...
19282 (struct lwp_info): ... this.
19283 (all_processes): Rename to ...
19284 (all_lwps): ... this.
19285 * proc-service.c (ps_lgetregs): Adjust.
19286 * thread-db.c (thread_db_create_event, find_one_thread)
19287 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
19289 2009-03-14 Pedro Alves <pedro@codesourcery.com>
19291 * server.c (handle_query): Handle "qAttached".
19293 2009-03-13 Nathan Sidwell <nathan@codesourcery.com>
19295 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
19296 GPLv3, update license URL.
19298 2009-03-01 Doug Evans <dje@google.com>
19300 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
19301 (server_h): Add gdb_signals.h.
19302 (signals.o): Update.
19303 * server.h (target_signal_from_host,target_signal_to_host_p)
19304 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
19306 2009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
19308 * remote-utils.c (getpkt): Also generate remote-debug
19309 information if noack_mode is set.
19311 2009-02-06 Pedro Alves <pedro@codesourcery.com>
19313 * server.c (handle_query): Report qXfer:siginfo:read and
19314 qXfer:siginfo:write as supported and handle them.
19315 * target.h (struct target_ops) <qxfer_siginfo>: New field.
19316 * linux-low.c (linux_xfer_siginfo): New.
19317 (linux_target_ops): Set it.
19319 2009-01-26 Pedro Alves <pedro@codesourcery.com>
19321 * server.c (gdbserver_usage): Mention --remote-debug.
19322 (main): Accept '--remote-debug' switch.
19324 2009-01-18 Doug Evans <dje@google.com>
19326 * regcache.c (new_register_cache): No need to check result of xcalloc.
19327 * server.c (handle_search_memory): Back out calls to xmalloc,
19328 result is checked and error is returned to user upon failure.
19329 (handle_query): Ditto. Add more checks for result of malloc.
19330 (handle_v_cont): Check result of malloc, report error back to
19332 (handle_v_run): Ditto. Call freeargv.
19333 * server.h (freeargv): Declare.
19334 * utils.c (freeargv): New fn.
19336 2009-01-15 Doug Evans <dje@google.com>
19338 * gdbreplay.c (perror_with_name): Make arg const char *.
19339 * server.h (target_signal_to_name): Make return type const char *.
19340 * thread-db.c (thread_db_err_str): Make return type const char *.
19341 * utils.c (perror_with_name): Make arg const char *.
19343 2009-01-14 Pedro Alves <pedro@codesourcery.com>
19345 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
19346 when handling a EXIT_PROCESS_DEBUG_EVENT.
19348 2009-01-06 Joel Brobecker <brobecker@adacore.com>
19350 * gdbreplay.c (gdbreplay_version): Update copyright year.
19351 * server.c (gdbserver_version): Likewise.
19353 2009-01-05 Doug Evans <dje@google.com>
19355 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
19356 (handle_extended_wait): Improve comment.
19358 2008-12-13 Doug Evans <dje@google.com>
19360 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
19361 * server.h (ATTR_MALLOC): New macro.
19362 (xmalloc,xcalloc,xstrdup): Declare.
19363 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
19364 * inferiors.c: Ditto.
19365 * linux-low.c: Ditto.
19366 * mem-break.c: Ditto.
19367 * regcache.c: Ditto.
19368 * remote-utils.c: Ditto.
19371 * win32-low.c: Ditto.
19373 2008-12-12 Doug Evans <dje@google.com>
19375 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
19376 in debugging printf.
19378 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
19380 2008-12-09 Doug Evans <dje@google.com>
19382 * linux-low.h (struct process_info): Delete member tid, unused.
19383 * thread-db.c (find_one_thread): Update.
19384 (maybe_attach_thread): Update.
19386 2008-12-02 Pedro Alves <pedro@codesourcery.com>
19388 * target.h (struct target_ops): Add qxfer_osdata member.
19389 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
19391 (linux_qxfer_osdata): New functions.
19392 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
19394 * server.c (handle_query): Handle "qXfer:osdata:read:".
19395 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
19396 (buffer_xml_printf): New functions.
19397 * server.h (struct buffer): New.
19398 (buffer_grow_str, buffer_grow_str0): New macros.
19399 (buffer_grow, buffer_free, buffer_init, buffer_finish)
19400 (buffer_xml_printf): Declare.
19402 2008-11-24 Doug Evans <dje@google.com>
19404 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
19406 2008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
19408 * server.c (handle_v_run): Always use the supplied argument list.
19410 2008-11-19 Bob Wilson <bob.wilson@acm.org>
19412 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
19413 (xtensa_regmap_table): Add entry for scompare1.
19415 2008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
19417 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
19418 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
19419 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
19420 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
19421 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
19422 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
19423 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
19424 XML target descriptions.
19425 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
19426 when inferior is running on an ISA 2.05 or later processor. Add
19427 special case to return offset for full 64-bit slot of FPSCR when
19430 2008-11-14 Daniel Gutson <dgutson@codesourcery.com>
19432 * Makefile.in (SFILES, clean): Added sparc64 files.
19433 (reg-sparc64.o, reg-sparc64.c): New.
19434 * configure.srv (sparc*-*-linux*): New configuration.
19435 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
19436 syscall arguments for SPARC.
19437 (regsets_store_inferior_registers): Likewise.
19438 * linux-sparc-low.c: New file.
19440 2008-10-21 Doug Evans <dje@google.com>
19442 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
19443 (READLINE_DIR,READLINE_DEP): Delete.
19444 (INTERNAL_CFLAGS): Update.
19445 (LINTFLAGS): Update.
19447 2008-10-10 Pedro Alves <pedro@codesourcery.com>
19449 * server.c (handle_v_run): If GDB didn't specify an argv, use the
19450 whole argv from the last run, not just argv[0].
19452 2008-09-08 Pedro Alves <pedro@codesourcery.com>
19454 * regcache.c (new_register_cache): Return NULL if the register
19455 cache size isn't known yet.
19456 (free_register_cache): Avoid dereferencing a NULL regcache.
19458 2008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
19460 * configure.srv: Merge MIPS and MIPS64.
19462 2008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
19464 * Makefile.in (uninstall): Apply $(EXEEXT) too.
19466 2008-08-18 Luis Machado <luisgpm@br.ibm.com>
19468 * Makefile.in: Add required vsx dependencies.
19470 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
19471 Declare init_registers_powerpc_vsx32l.
19472 Declare init_registers_powerpc_vsx64l.
19473 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
19474 (ppc_arch_setup): Check for VSX in hwcap.
19475 (ppc_fill_vsxregset): New function.
19476 (ppc_store_vsxregset): New function.
19477 Add new VSX entry in regset_info target_regsets.
19479 * configure.srv: Add new VSX dependencies.
19481 2008-08-12 Pedro Alves <pedro@codesourcery.com>
19483 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
19484 (remote_open): Set or clear transport_is_reliable.
19485 (putpkt_binary): Don't expect acks in noack mode.
19486 (getpkt): Don't send ack/nac in noack mode.
19487 * server.c (handle_general_set): Handle QStartNoAckMode.
19488 (handle_query): If connected by tcp pass QStartNoAckMode+ in
19490 (main): Reset noack_mode on every connection.
19491 * server.h (noack_mode): Declare.
19493 2008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19495 * Makefile.in (GDBREPLAY_OBS): New variable.
19496 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
19498 2008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
19499 Daniel Jacobowitz <dan@codesourcery.com>
19501 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
19502 (usr_store_inferior_registers): Likewise.
19503 (regsets_store_inferior_registers): Likewise.
19505 2008-07-31 Rolf Jansen <rj@surtec.com>
19506 Pedro Alves <pedro@codesourcery.com>
19508 * configure.ac: Check for memmem declaration.
19509 * server.c [HAVE_MALLOC_H]: Include malloc.h.
19510 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
19511 (disable_packet_qfThreadInfo): Unconditionally compile.
19512 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
19513 * configure, config.in: Regenerate.
19515 2008-07-28 Doug Kwan <dougkwan@google.com>
19517 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
19518 (linux_write_memory): Remove declaration of errno.
19520 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
19522 * linux-low.c (handle_extended_wait): Do not use "status"
19523 variable uninitialized.
19525 2008-07-07 Pedro Alves <pedro@codesourcery.com>
19527 * server.c (handle_v_attach): Inhibit reporting dll changes.
19529 2008-06-27 Pedro Alves <pedro@codesourcery.com>
19531 * remote-utils.c (prepare_resume_reply): If requested, don't
19532 output "thread:TID" in the T stop reply.
19534 * server.c (disable_packet_vCont, disable_packet_Tthread)
19535 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
19536 (handle_query): If requested, disable support for qC, qfThreadInfo
19538 (handle_v_requests): If requested, disable support for vCont.
19539 (gdbserver_show_disableable): New.
19540 (main): Handle --disable-packet and --disable-packet=LIST.
19542 * server.h (disable_packet_vCont, disable_packet_Tthread)
19543 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
19545 2008-06-20 Carlos O'Donell <carlos@codesourcery.com>
19547 * server.c (gdbserver_usage): Mention --version.
19549 2008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
19551 * Makefile.in (gdbreplay.o): New rule.
19553 2008-06-06 Joseph Myers <joseph@codesourcery.com>
19555 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
19556 message, not gdbserver.
19558 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
19559 Nathan Sidwell <nathan@codesourcery.com>
19560 Joseph Myers <joseph@codesourcery.com>
19562 * acinclude.m4: Include ../../config/acx.m4.
19563 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
19564 * configure, config.in: Regenerate.
19565 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
19566 * server.c (gdbserver_version): Print PKGVERSION.
19567 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
19568 (main): Adjust gdbserver_usage calls.
19569 * gdbreplay.c (version, host_name): Add declarations.
19570 (gdbreplay_version, gdbreplay_usage): New.
19571 (main): Accept --version and --help options.
19573 2008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
19575 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
19576 (arm_breakpoint_at): Handle Thumb.
19577 (the_low_target): Add comment.
19579 2008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
19581 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
19583 2008-05-09 Doug Evans <dje@google.com>
19585 * server.h (decode_search_memory_packet): Declare.
19586 * remote-utils.c (decode_search_memory_packet): New fn.
19587 * server.c (handle_search_memory_1): New fn.
19588 (handle_search_memory): New fn.
19589 (handle_query): Process qSearch:memory packets.
19591 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
19593 * regcache.c (registers_length): Remove.
19594 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
19595 full register packet.
19596 * regcache.h (registers_length): Remove prototype.
19597 * server.h (PBUFSIZ): Define to 16384.
19599 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
19601 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
19602 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
19603 powerpc-64l.o, and powerpc-altivec64l.o.
19604 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
19605 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
19606 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
19607 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
19608 rs6000/power-linux.xml, and rs6000/power64-linux.xml
19611 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
19612 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
19613 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
19614 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
19615 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
19616 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
19617 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
19618 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
19619 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
19620 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
19623 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
19624 (init_registers_powerpc_32l): ... this new prototype.
19625 (init_registers_powerpc_32): Remove, replace by ...
19626 (init_registers_powerpc_altivec32l): ... this new prototype.
19627 (init_registers_powerpc_e500): Remove, replace by ...
19628 (init_registers_powerpc_e500l): ... this new prototype.
19629 (init_registers_ppc64): Remove, replace by ...
19630 (init_registers_powerpc_64l): ... this new prototype.
19631 (init_registers_powerpc_64): Remove, replace by ...
19632 (init_registers_powerpc_altivec64l): ... this new prototype.
19633 (ppc_num_regs): Set to 73.
19634 (PT_ORIG_R3, PT_TRAP): Define if necessary.
19635 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
19636 (ppc_cannot_store_register): Handle orig_r3 and trap.
19637 (ppc_arch_setup): Update init_registers_... calls.
19638 (ppc_fill_gregset): Handle orig_r3 and trap.
19640 * inferiors.c (clear_inferiors): Reset current_inferior.
19642 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
19644 * acinclude.m4: Add override.m4.
19645 * configure: Regenerate.
19647 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19649 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
19650 initial call to init_register_ppc64.
19652 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19654 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
19655 single powerpc*-*-linux* case.
19656 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
19658 2008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
19660 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
19661 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
19663 * linux-ppc-low.c: Include <elf.h>.
19664 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
19665 (ppc_hwcap): New global variable.
19666 (ppc_regmap): Remove __SPE__ #ifdef sections.
19667 (ppc_regmap_e500): New global variable.
19668 (ppc_cannot_store_register): Update __SPE__ special case.
19669 (ppc_get_hwcap): New function.
19670 (ppc_arch_setup): Use it to determine whether inferior supports
19671 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
19672 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
19673 Do not access registers if target does not support AltiVec.
19674 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
19675 Do not access registers if target does not support SPE.
19676 (target_regsets): Unconditionally include AltiVec and SPE regsets.
19678 2008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
19680 * linux-low.c (disabled_regsets, num_regsets): New.
19681 (use_regsets_p): Delete.
19682 (linux_wait_for_process): Clear disabled_regsets.
19683 (regsets_fetch_inferior_registers): Check and set it.
19684 (regsets_store_inferior_registers): Likewise.
19685 (linux_fetch_registers, linux_store_registers): Do not use
19687 (initialize_low): Allocate disabled_regsets.
19689 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
19691 * Makefile.in (LIBOBJS): New.
19692 (OBS): Use LIBOBJS.
19693 (memmem.o): New rule.
19694 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
19695 * configure: Regenerated.
19697 2008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
19699 * server.c (handle_query): Never return "unsupported" for
19700 qXfer:features:read queries.
19702 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
19704 * server.c (get_features_xml): Fix inverted condition.
19705 (handle_query): Always support qXfer:feature:read.
19707 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
19709 * server.c (wrapper_argv): New.
19710 (start_inferior): Handle wrapper_argv. If set, expect an extra
19712 (gdbserver_usage): Document --wrapper.
19713 (main): Parse --wrapper.
19715 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19717 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
19718 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
19719 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
19720 (ppc_set_pc): Likewise.
19721 (ppc_arch_setup): New function.
19722 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
19723 of collect_register.
19724 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
19726 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19728 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
19729 instead of linux-ppc64-low.o.
19730 * linux-ppc64-low.c: Remove file.
19731 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
19732 (linux-ppc64-low.o): Remove rule.
19734 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
19735 (init_registers_powerpc_64): Likewise.
19736 (ppc_regmap): Conditionally define depending on __powerpc64__.
19737 (ppc_cannot_store_register): Do not special-case "fpscr" when
19738 compiled on __powerpc64__.
19739 (ppc_collect_ptrace_register): New function.
19740 (ppc_supply_ptrace_register): New function.
19741 (ppc_breakpoint): Change type to "unsigned int".
19742 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
19743 (the_low_target): Conditionally provide initializers for the
19744 arch_setup member depending on __powerpc64__. Install
19745 collect_ptrace_register and supply_ptrace_register members.
19747 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19749 * regcache.h (gdbserver_xmltarget): Add extern declaration.
19750 * server.c (gdbserver_xmltarget): Define.
19751 (get_features_xml): Use it to replace "target.xml" and arch_string.
19753 * configure.srv: Remove srv_xmltarget. Add XML files that were
19754 mentioned there to srv_xmlfiles instead. Remove conditional tests
19755 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
19756 srv_xmlfiles and srv_regobj to include all possible choices.
19757 * configure.ac (srv_xmltarget): Remove.
19758 (srv_xmlfiles): Do not add "target.xml".
19759 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
19760 checks for supplementary target information.
19761 * configure: Regenerate.
19762 * Makefile.in (XML_TARGET): Remove.
19763 (target.xml): Remove rule.
19764 (clean): Do not clean up target.xml.
19765 (.PRECIOUS): Do not mention target.xml.
19767 * target.h (struct target_ops): Remove arch_string member.
19768 * linux-low.c (linux_arch_string): Remove.
19769 (linux_target_ops): Remove arch_string initializer.
19770 * linux-low.h (struct linux_target_ops): Remove arch_string member.
19771 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
19772 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
19773 * spu-low.c (spu_arch_string): Remove.
19774 (spu_target_ops): Remove arch_string initializer.
19775 * win32-low.c (win32_arch_string): Remove.
19776 (win32_target_ops): Remove arch_string initializer.
19777 * win32-low.h (struct win32_target_ops): Remove arch_string member.
19778 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
19779 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
19781 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19783 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
19784 by collect_ptrace_register and supply_ptrace_register hooks.
19785 * linux-low.c (fetch_register): Use supply_ptrace_register callback
19786 instead of checking for the_low_target.left_pad_xfer.
19787 (usr_store_inferior_registers): Use collect_ptrace_register callback
19788 instead of checking for the_low_target.left_pad_xfer.
19790 * linux-s390-low.c (s390_collect_ptrace_register): New function.
19791 (s390_supply_ptrace_register): Likewise.
19792 (s390_fill_gregset): Call s390_collect_ptrace_register.
19793 (the_low_target): Update.
19795 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
19796 (ppc_supply_ptrace_register): Likewise.
19797 (the_low_target): Update.
19799 * linux-i386-low.c (the_low_target): Update.
19800 * linux-x86-64-low.c (the_low_target): Update.
19802 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19804 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
19805 reg-s390.o and reg-s390x.o.
19807 * linux-low.c (new_inferior): New global variable.
19808 (linux_create_inferior, linux_attach): Set it.
19809 (linux_wait_for_process): Call the_low_target.arch_setup after the
19810 target has stopped for the first time.
19811 (initialize_low): Do not call the_low_target.arch_setup.
19813 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
19814 (s390_set_pc): Likewise.
19815 (s390_arch_setup): New function.
19816 (the_low_target): Use s390_arch_setup as arch_setup routine.
19818 * regcache.c (realloc_register_cache): New function.
19819 (set_register_cache): Call it for each existing regcache.
19821 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19823 * server.h (init_registers): Remove prototype.
19825 * linux-low.h (struct linux_target_ops): Add arch_setup field.
19826 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
19827 instead of init_registers ().
19828 * linux-arm-low.c (init_registers_arm): Add prototype.
19829 (init_registers_arm_with_iwmmxt): Likewise.
19830 (the_low_target): Add initializer for arch_setup field.
19831 * linux-cris-low.c (init_registers_cris): Add prototype.
19832 (the_low_target): Add initializer for arch_setup field.
19833 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
19834 (the_low_target): Add initializer for arch_setup field.
19835 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
19836 (the_low_target): Add initializer for arch_setup field.
19837 * linux-ia64-low.c (init_registers_ia64): Add prototype.
19838 (the_low_target): Add initializer for arch_setup field.
19839 * linux-m32r-low.c (init_registers_m32r): Add prototype.
19840 (the_low_target): Add initializer for arch_setup field.
19841 * linux-m68k-low.c (init_registers_m68k): Add prototype.
19842 (the_low_target): Add initializer for arch_setup field.
19843 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
19844 (init_registers_mips64_linux): Likewise.
19845 (the_low_target): Add initializer for arch_setup field.
19846 * linux-ppc-low.c (init_registers_ppc): Add prototype.
19847 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
19848 (the_low_target): Add initializer for arch_setup field.
19849 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
19850 (init_registers_powerpc_64): Likewise.
19851 (the_low_target): Add initializer for arch_setup field.
19852 * linux-s390-low.c (init_registers_s390): Add prototype.
19853 (init_registers_s390x): Likewise.
19854 (the_low_target): Add initializer for arch_setup field.
19855 * linux-sh-low.c (init_registers_sh): Add prototype.
19856 (the_low_target): Add initializer for arch_setup field.
19857 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
19858 (the_low_target): Add initializer for arch_setup field.
19859 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
19860 (the_low_target): Add initializer for arch_setup field.
19862 * win32-low.h (struct win32_target_ops): Add arch_setup field.
19863 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
19864 instead of init_registers ().
19865 * win32-arm-low.c (init_registers_arm): Add prototype.
19866 (the_low_target): Add initializer for arch_setup field.
19867 * win32-i386-low.c (init_registers_i386): Add prototype.
19868 (the_low_target): Add initializer for arch_setup field.
19870 * spu-low.c (init_registers_spu): Add prototype.
19871 (initialize_low): Call initialie_registers_spu () instead of
19872 initialize_registers ().
19874 2008-02-19 Pedro Alves <pedro@codesourcery.com>
19876 * server.c (handle_v_requests): When handling the vRun and vAttach
19877 packets, if already debugging a process, don't kill it. Return an
19880 2008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
19882 * server.c (handle_query): Correct length check.
19884 2008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
19886 * win32-low.c (do_initial_child_stuff): Add process handle
19887 parameter. Set current_process_handle and current_process_id from the
19888 parameters. Clear globals.
19889 (win32_create_inferior): Don't set current_process_handle and
19890 current_process_id here. Instead pass them on the call to
19891 do_initial_child_stuff.
19892 (win32_attach): Likewise.
19893 (win32_clear_inferiors): New.
19894 (win32_kill): Don't close the current process handle or the
19895 current thread handle here. Instead call win32_clear_inferiors.
19896 (win32_detach): Don't open a new handle to the process. Call
19897 win32_clear_inferiors.
19898 (win32_join): Don't rely on current_process_handle; open a new
19899 handle using the process id.
19900 (win32_wait): Call win32_clear_inferiors when the inferior process
19903 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
19905 * server.c (monitor_show_help): Add "exit".
19907 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
19909 * Makefile.in (SFILES): Add linux-xtensa-low.c.
19910 (clean): Add reg-xtensa.c.
19911 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
19912 * configure.srv (xtensa*-*-linux*) New target.
19913 * linux-xtensa-low.c: New.
19914 * xtensa-xtregs.c: New.
19916 2008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
19918 * hostio.c: Don't include errno.h.
19919 (errno_to_fileio_errno): Move to hostio-errno.
19920 * hostio.c: (hostio_error): Remove the error parameter. Defer the
19921 error number outputting to the target->hostio_last_error callback.
19922 (hostio_packet_error): Use FILEIO_EINVAL directly.
19923 (handle_open, handle_pread, hostio_error, handle_unlink): Update
19924 calls to hostio_error.
19925 * hostio-errno.c: New.
19926 * server.h (hostio_last_error_from_errno): Declare.
19927 * target.h (target_ops): Add hostio_last_error member.
19928 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
19929 as hostio_last_error handler.
19930 * spu-low.c (spu_target_ops): Likewise.
19931 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
19932 (wince_hostio_last_error): New functions.
19933 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
19934 as hostio_last_error handler.
19935 (win32_target_ops) [!_WIN32_WCE]: Register
19936 hostio_last_error_from_errno as hostio_last_error handler.
19937 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
19938 (hostio-errno.o): New rule.
19939 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
19940 * configure.srv (srv_hostio_err_objs): New variable. Default to
19942 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
19943 * configure: Regenerate.
19945 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
19947 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
19948 (linux_kill, linux_detach): Clean up the process list.
19949 * remote-utils.c (remote_open): Improve port number parsing.
19950 (putpkt_binary, input_interrupt): Only send interrupts if the target
19952 * server.c (extended_protocol): Make static.
19953 (attached): Define earlier.
19954 (exit_requested, response_needed, program_argv): New variables.
19955 (target_running): New.
19956 (start_inferior): Clear attached here.
19957 (attach_inferior): Set attached here.
19958 (require_running): Define.
19959 (handle_query): Use require_running and target_running. Implement
19961 (handle_v_attach, handle_v_run): New.
19962 (handle_v_requests): Use require_running. Handle vAttach and vRun.
19963 (gdbserver_usage): Update.
19964 (main): Redo argument parsing. Handle --debug and --multi. Handle
19965 --attach along with other options or after the port. Save
19966 program_argv. Support no initial program. Resynchronize
19967 communication with GDB after an error. Handle "monitor exit".
19968 Use require_running and target_running. Always allow the extended
19969 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
19970 restart in extended mode.
19971 * README: Refer to the GDB manual. Update --attach usage.
19973 2007-12-20 Andreas Schwab <schwab@suse.de>
19975 * linux-low.c (STACK_SIZE): Define.
19976 (linux_tracefork_child): Use it. Use __clone2 on ia64.
19977 (linux_test_for_tracefork): Likewise.
19979 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
19981 * linux-low.c (linux_wait_for_event): Update messages. Do not
19982 reinsert auto-delete breakpoints.
19983 * mem-break.c (struct breakpoint): Change return type of handler to
19985 (set_breakpoint_at): Update handler type.
19986 (reinsert_breakpoint_handler): Return 1 instead of calling
19988 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
19990 (check_breakpoints): Delete auto-delete breakpoints and return 2.
19991 * mem-break.h (set_breakpoint_at): Update handler type.
19992 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
19993 * win32-low.c (auto_delete_breakpoint): New.
19994 (get_child_debug_event): Use it.
19996 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
19998 * configure.ac: Check for pread and pwrite.
19999 * hostio.c (handle_pread): Fall back to lseek and read.
20000 (handle_pwrite): Fall back to lseek and write.
20001 * config.in, configure: Regenerated.
20003 2007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
20005 * server.c (myresume): Add own_buf argument.
20006 (main): Update calls.
20008 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
20010 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
20011 * remote-utils.c (remote_open): Do not call disable_async_io.
20012 (block_async_io): Delete.
20013 (unblock_async_io): Make static.
20014 (initialize_async_io): New.
20015 * server.c (handle_v_cont): Handle async I/O here.
20016 (myresume): Likewise. Move other common resume tasks here...
20017 (main): ... from here. Call initialize_async_io. Disable async
20018 I/O before the main loop.
20019 * server.h (initialize_async_io): Declare.
20020 (block_async_io, unblock_async_io): Delete prototypes.
20021 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
20023 2007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
20025 * remote-utils.c (readchar): Allow binary data in received messages.
20027 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20029 * win32-low.c (attaching): New global.
20030 (win32_create_inferior): Clear the `attaching' global.
20031 (win32_attach): Set the `attaching' global.
20032 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
20033 attaching. Only set a breakpoint at the entry point if not
20036 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20038 * server.c (main): Don't report dll events on the initial
20039 connection on attaches.
20041 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20043 * server.c (main): Relax numerical bases supported for the pid of
20044 the --attach command line argument.
20046 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20048 * win32-low.c (win32_attach): Call OpenProcess before
20049 DebugActiveProcess, not after. Add last error output to error
20052 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20054 * win32-low.c (win32_get_thread_context)
20055 (win32_set_thread_context): New functions.
20056 (thread_rec): Use win32_get_thread_context.
20057 (continue_one_thread, win32_resume): Use win32_set_thread_context.
20058 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
20061 2007-12-03 Leo Zayas
20062 Pedro Alves <pedro_alves@portugalmail.pt>
20064 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
20066 (child_add_thread): Minor cleanup.
20067 (child_continue): Resume artificially suspended threads before
20068 calling ContinueDebugEvent.
20069 (suspend_one_thread): New.
20070 (fake_breakpoint_event): New.
20071 (get_child_debug_event): Change return type to int. Check here if
20072 gdb sent an interrupt request. If a soft interrupt was requested,
20073 fake a breakpoint event. Return 0 if there is no event to handle,
20075 (win32_wait): Don't check here if gdb sent an interrupt request.
20076 Ensure there is a valid event to handle.
20077 (win32_request_interrupt): Add soft interruption method as last
20080 2007-12-03 Leo Zayas
20081 Pedro Alves <pedro_alves@portugalmail.pt>
20083 * win32-low.h (win32_thread_info): Add descriptions to the
20084 structure members. Replace `suspend_count' counter by a
20086 * win32-low.c (thread_rec): Update condition of when to get the
20087 context from the inferior. Rely on ContextFlags being set if it
20088 has already been retrieved. Only suspend the inferior thread if
20089 we haven't already. Warn if that fails.
20090 (continue_one_thread): s/suspend_count/suspended/. Only call
20091 ResumeThread once. Warn if that fails.
20093 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20095 * win32-low.c (win32_wait): Don't read from the inferior when it
20096 has already exited.
20098 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20100 * Makefile.in (win32_low_h): New variable.
20101 (win32-low.o): Add dependency on $(win32_low_h).
20102 (win32-arm-low.o, win32-i386-low.o): New rules.
20104 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20106 * hostio.c: Correct copyright year.
20108 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20110 * Makefile.in (OBS): Add hostio.o.
20111 (hostio.o): New rule.
20112 * server.h (handle_vFile): Declare.
20113 * hostio.c: New file.
20114 * server.c (handle_v_requests): Take packet_len and new_packet_len
20115 for binary packets. Call handle_vFile.
20116 (main): Update call to handle_v_requests.
20118 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
20120 * linux-low.c: Include <sched.h>.
20122 2007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
20124 * linux-low.c (linux_tracefork_grandchild): New.
20125 (linux_tracefork_child): Use clone.
20126 (linux_test_for_tracefork): Use clone; allocate and free a stack.
20128 2007-10-31 Joel Brobecker <brobecker@adacore.com>
20130 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
20132 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
20134 * linux-low.c (handle_extended_wait): Handle unexpected signals.
20136 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
20138 * inferiors.c (change_inferior_id): Delete.
20139 (add_pid_to_list, pull_pid_from_list): New.
20140 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
20141 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
20142 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
20143 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
20144 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
20145 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
20146 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
20147 (using_threads): Always set to 1.
20148 (handle_extended_wait): New.
20149 (add_process): Do not set TID.
20150 (linux_create_inferior): Set must_set_ptrace_flags.
20151 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
20152 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
20153 (linux_thread_alive): Rename TID argument to LWPID.
20154 (linux_wait_for_process): Handle unknown processes. Do not use TID.
20155 (linux_wait_for_event): Do not use TID or check using_threads. Update
20156 call to dead_thread_notify. Call handle_extended_wait.
20157 (linux_create_inferior): Use PTRACE_SETOPTIONS.
20158 (send_sigstop): Delete sigstop_sent.
20159 (wait_for_sigstop): Avoid TID.
20160 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
20161 (linux_test_for_tracefork): New.
20162 (linux_lookup_signals): Use thread_db_active and
20163 linux_supports_tracefork_flag.
20164 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
20165 * linux-low.h (get_process_thread): Avoid TID.
20166 (struct process_ifo): Move thread_known and tid to the end. Remove
20168 (linux_attach_lwp, thread_db_init): Update prototypes.
20169 * server.h (change_inferior_id): Delete prototype.
20170 (add_pid_to_list, pull_pid_from_list): New prototypes.
20171 * thread-db.c (thread_db_use_events): New.
20172 (find_first_thread): Rename to...
20173 (find_one_thread): ...this. Update callers and messages. Do not
20174 call fatal. Check thread_db_use_events. Do not call
20175 change_inferior_id or new_thread_notify.
20176 (maybe_attach_thread): Update. Do not call new_thread_notify.
20177 (thread_db_init): Set thread_db_use_events. Check use_events.
20178 * utils.c (fatal, warning): Correct message prefix.
20180 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
20182 * Makefile.in (clean): Remove new files.
20183 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
20184 (powerpc-64.o, powerpc-64.c): New rules.
20185 * configure.srv: Use alternate register sets for powerpc64-*-linux*
20186 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
20188 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
20190 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
20191 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
20192 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
20193 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
20194 (target_regsets): Add AltiVec and SPE register sets.
20195 * configure.ac: Check for AltiVec and SPE.
20196 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
20197 (ppc_fill_vrregset, ppc_store_vrregset): New.
20198 (target_regsets): Add AltiVec register set.
20199 * configure: Regenerated.
20201 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
20203 * linux-low.c (O_LARGEFILE): Define.
20204 (linux_read_memory): Use /proc/PID/mem.
20205 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
20206 * configure, config.in: Regenerated.
20208 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20210 * linux-low.c (linux_wait_for_event): Do not pass signals while
20213 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20215 * win32-low.c (create_process): New.
20216 (win32_create_inferior): Use create_process instead of
20217 CreateProcess. If create_process failed retry appending an ".exe"
20218 suffix. Store the GetLastError result immediatelly after
20219 create_process calls and use it on the call to error.
20221 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20223 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
20225 2007-08-23 Joel Brobecker <brobecker@adacore.com>
20227 * configure.ac: Switch license to GPLv3.
20229 2007-08-01 Michael Snyder <msnyder@access-company.com>
20231 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
20233 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
20235 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
20237 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
20238 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
20239 CloseToolhelp32Snapshot.
20240 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
20241 CloseToolhelp32Snapshot.
20243 2007-07-27 Michael Snyder <michael.snyder@access-company.com>
20245 * server.c (main): Check for inferior exit before main loop.
20247 2007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
20249 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
20250 instead of on tmp_desc.
20252 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
20253 Daniel Jacobowitz <dan@codesourcery.com>
20255 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
20256 (add_thread): Minor cleanups.
20257 (clear_inferiors): Move lower in the file. Clear the DLL
20259 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
20260 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
20261 (xml_escape_text): New.
20262 * server.c (handle_query): Handle qXfer:libraries:read. Report it
20264 (handle_v_cont): Report errors.
20265 (gdbserver_version): Update.
20266 (main): Correct size of own_buf. Do not report initial DLL events.
20267 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
20268 (unloaded_dll, xml_escape_text): New.
20269 * win32-low.c (enum target_waitkind): Update comments.
20270 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
20271 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
20272 (win32_EnumProcessModules, win32_GetModuleInformation)
20273 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
20274 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
20275 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
20276 (win32_Module32First, win32_Module32Next, load_toolhelp)
20277 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
20278 (get_child_debug_event): Handle DLL events.
20279 (win32_wait): Likewise.
20281 2007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20283 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
20284 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
20286 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20288 * win32-low.c (handle_output_debug_string): Ignore event if not
20291 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20293 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
20295 2007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
20297 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
20299 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
20301 * inferiors.c (change_inferior_id): Add comment.
20302 * linux-low.c (check_removed_breakpoint): Add an early
20303 prototype. Improve debug output.
20304 (linux_attach): Doc update.
20305 (linux_detach_one_process, linux_detach): Clean up before releasing
20307 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
20308 * linux-low.h (struct process_info): Doc improvement.
20309 * mem-break.c (delete_all_breakpoints): New.
20310 * mem-break.h (delete_all_breakpoints): New prototype.
20311 * thread-db.c (find_first_thread): New.
20312 (thread_db_create_event): Call it instead of
20313 thread_db_find_new_threads. Clean up unused variables.
20314 (maybe_attach_thread): Remove first thread handling.
20315 (thread_db_find_new_threads): Use find_first_thread.
20316 (thread_db_get_tls_address): Likewise.
20318 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
20320 * thread-db.c (thread_db_find_new_threads): Add prototype.
20321 (thread_db_create_event): Check for the main thread before adding
20323 (maybe_attach_thread): Only enable event reporting if TID == 0.
20324 (thread_db_get_tls_address): Check for new threads.
20326 2007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
20328 * linux-low.c (linux_create_inferior): Try execv before execvp.
20329 * spu-low.c (spu_create_inferior): Likewise.
20331 2007-06-13 Mike Frysinger <vapier@gentoo.org>
20333 * linux-low.c (linux_create_inferior): Change execv to execvp.
20334 * spu-low.c (spu_create_inferior): Likewies.
20336 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
20338 * Makefile.in (clean): Clean new files instead of deleted ones.
20339 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
20340 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
20342 * configure.srv: Specify XML files and new regformats for MIPS and
20344 * linux-mips-low.c (mips_num_regs): Set to only used registers.
20345 (mips_regmap): Do not fetch $0. Remove unused registers. Add
20346 an entry for the restart register.
20347 (mips_cannot_fetch_register, mips_cannot_store_register)
20348 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
20349 register names to match the XML descriptions.
20350 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
20351 restart register instead of $0.
20353 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20354 Markus Deuling <deuling@de.ibm.com>
20356 * remote-utils.c (decode_xfer_write): New function.
20357 * server.h (decode_xfer_write): Add prototype.
20358 * server.c (handle_query): Add PACKET_LEN argument. Support
20359 qXfer:spu:read and qXfer:spu:write packets.
20360 (main): Pass packet_len to handle_query.
20361 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
20362 * target.h (target_ops): Add qxfer_spu.
20364 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20366 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
20367 accessing non-seekable spufs files.
20369 2007-05-16 Markus Deuling <deuling@de.ibm.com>
20371 * server.c (handle_query): Add reply for qC packet.
20373 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20374 Leo Zayas <lerele@champenstudios@com>
20376 * server.h (check_remote_input_interrupt_request): New function.
20377 * remote_utils.c (INVALID_DESCRIPTOR): New define.
20378 (remote_desc): Initialize with INVALID_DESCRIPTOR.
20379 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
20380 (check_remote_input_interrupt_request): New function.
20381 * server.h (check_remote_input_interrupt_request): Declare.
20382 * win32-low.c (winapi_DebugBreakProcess,
20383 winapi_GenerateConsoleCtrlEvent): New typedefs.
20384 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
20386 (win32_wait): Check for remote interrupt request
20387 with check_remote_input_interrupt_request.
20388 (win32_request_interrupt): New function.
20389 (win32_target_op): Set request_interrupt to win32_request_interrupt.
20391 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20393 * win32-low.c (debug_registers_changed,
20394 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
20395 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
20396 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
20397 (thread_rec): Get context using the low target.
20398 (child_add_thread): Call thread_added on the low target,
20399 which does the same thing.
20401 (do_initial_child_stuff): Remove debug registers references.
20402 Set context using the low target. Resume threads after
20403 setting the contexts.
20404 (child_continue): Remove dead variable. Remove debug
20405 registers references.
20406 (child_fetch_inferior_registers): Go through the low target.
20407 (do_child_store_inferior_registers): Remove.
20408 (child_store_inferior_registers): Go through the low target.
20409 (win32_resume): Remove debug registers references.
20410 Set context using the low target.
20411 (handle_exception): Change return type to void. Don't record
20412 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
20413 first chance exception.
20414 (get_child_debug_event): Change return type to void. Remove
20415 goto loop. Always return after waiting for debug event.
20416 (win32_wait): Convert to switch statement. Handle spurious
20419 * win32-i386-low.c (debug_registers_changed,
20420 debug_registers_used): New.
20421 (initial_stuff): Rename to ...
20422 (i386_initial_stuff): ... this. Clear debug registers
20424 (store_debug_registers): Delete.
20425 (i386_get_thread_context): New.
20426 (load_debug_registers): Delete.
20427 (i386_set_thread_context): New.
20428 (i386_thread_added): New.
20429 (single_step): Rename to ...
20430 (i386_single_step): ... this.
20431 (do_fetch_inferior_registers): Rename to ...
20432 (i386_fetch_inferior_register): ... this.
20433 (i386_store_inferior_register): New.
20434 (the_low_target): Adapt to new interface.
20436 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
20437 (arm_get_thread_context): New.
20438 (arm_set_thread_context): New.
20440 (do_fetch_inferior_registers): Rename to ...
20441 (arm_fetch_inferior_register): ... this.
20442 (arm_store_inferior_register): New.
20443 (arm_wince_breakpoint): Reimplement as unsigned long.
20444 (arm_wince_breakpoint_len): Define.
20445 (the_low_target): Adapt to new interface.
20447 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
20448 load_debug_registers. Add get_thread_context, set_thread_context,
20449 thread_added and store_inferior_register. Rename
20450 fetch_inferior_registers to fetch_inferior_register.
20451 (regptr): Remove declaration.
20453 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20455 * linux-low.c (linux_detach): Change return type to int. Return 0.
20456 * spu-low.c (spu_detach): Likewise.
20458 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20460 * target.h (target_ops): Change return type of detach to int.
20462 (join_inferior): New.
20463 * server.c (main): Don't skip detach support on mingw32.
20464 If the inferior doesn't support detaching return error.
20465 Call join_inferior instead of using waitpid.
20466 * linux-low.c (linux_join): New.
20467 (linux_target_op): Add linux_join.
20468 * spu-low.c (spu_join): New.
20469 (spu_target_ops): Add spu_join.
20470 * win32-low.c (win32_detach): Adapt to new interface.
20471 Reopen current_process_handle before detaching. Issue a child
20472 resume before detaching.
20474 (win32_target_op): Add win32_join.
20476 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20478 * win32-low.c (win32-attach): Fix return value.
20479 * target.h (target_ops): Describe ATTACH return values.
20481 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20483 * win32-low.c (GETPROCADDRESS): Define.
20484 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
20485 (winapi_DebugSetProcessKillOnExit): Likewise.
20486 (win32_create_inferior): Force usage of ansi CreateProcessA.
20487 (win32_attach): Use GETPROCADDRESS.
20488 (win32_detach): Likewise.
20490 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20492 * win32-low.c (win32_wait): Don't use WSTOPSIG.
20494 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
20496 * win32-low.c: Commit leftover changes from 2007-03-29.
20498 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20500 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
20501 fields short instead of int. Add explicit padding.
20502 (i387_cache_to_fsave): Remove unnecessary casts.
20503 (i387_fsave_to_cache): Doc fix.
20504 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
20506 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20508 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
20509 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
20511 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20513 * configure.srv (arm*-*-mingw32ce*): Move near the other
20516 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20518 * configure.ac: Add errno checking.
20519 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
20520 sys/file.h and malloc.h.
20521 (AC_CHECK_DECLS): Add perror.
20522 (srv_mingwce): Handle.
20523 * configure.srv (i[34567]86-*-cygwin*): Add
20524 win32-i386-low.o to srv_tgtobj.
20525 (i[34567]86-*-mingw*): Likewise.
20526 (arm*-*-mingw32ce*): Add case.
20527 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20528 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
20529 [__MINGW32CE__] (strerror): New function.
20530 [__MINGW32CE__] (errno): Define to GetLastError.
20531 [__MINGW32CE__] (COUNTOF): New macro.
20532 (remote_open): Remove extra close call.
20533 * mem-break.c (delete_breakpoint_at): New function.
20534 * mem-break.h (delete_breakpoint_at): Declare.
20535 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20536 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
20537 [USE_WIN32API] (read, write): Add char* casts.
20538 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
20539 * server.h: Include wincecompat.h on Windows CE.
20540 [HAVE_ERRNO_H]: Check.
20541 (perror): Declare if not declared.
20542 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
20543 (perror_with_name): Remove errno declaration.
20544 * wincecompat.h: New.
20545 * wincecompat.c: New.
20546 * win32-low.h: New.
20547 * win32-arm-low.c: New.
20548 * win32-i386-low.c: New.
20549 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
20550 (OUTMSG2): Make it safe.
20552 (COUNTOF): New macro.
20553 (NUM_REGS): Get it from the low target.
20554 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
20555 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
20556 (thread_rec): Let low target handle debug registers.
20557 (child_add_thread): Likewise.
20558 (child_init_thread_list): Likewise.
20559 (continue_one_thread): Likewise.
20561 (do_child_fetch_inferior_registers): Move to ...
20562 * win32-i386-low.c: ... here, and rename to ...
20563 (do_fetch_inferior_registers): ... this.
20564 * win32-low.c (child_fetch_inferior_registers):
20565 Go through the low target.
20566 (do_child_store_inferior_registers): Use regptr.
20567 (strwinerror): New function.
20568 (win32_create_inferior): Handle Windows CE.
20569 Use strwinerror instead of strerror on Windows error
20570 codes. Add program to the error output.
20571 Don't close the main thread handle on Windows CE.
20572 (win32_attach): Use coredll.dll on Windows CE.
20573 (win32_kill): Close current process and current
20575 (win32_detach): Use coredll.dll on Windows CE.
20576 (win32_resume): Let low target handle debug registers, and
20578 (handle_exception): Add/Remove initial breakpoint. Avoid
20579 non-existant WSTOPSIG on Windows CE.
20580 (win32_read_inferior_memory): Cast to remove warning.
20581 (win32_arch_string): Go through the low target.
20582 (initialize_low): Call set_breakpoint_data with the low
20583 target's breakpoint.
20584 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
20585 FOP_REGNUM, mappings): Move to ...
20586 * win32-i386-low.c: ... here.
20587 * win32-low.c (win32_thread_info): Move to ...
20588 * win32-low.h: ... here.
20589 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
20590 win32-arm-low.c and wincecompat.c.
20591 (all:): Add $EXEEXT.
20592 (install-only:): Likewise.
20593 (gdbserver:): Likewise.
20594 (gdbreplay:): Likewise.
20595 * config.in: Regenerate.
20596 * configure: Regenerate.
20598 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20600 * win32-low.c: Rename typedef thread_info to
20601 win32_thread_info throughout.
20603 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20605 * win32-i386-low.c: Rename to ...
20606 * win32-low.c: ... this.
20607 * configure.srv: Replace win32-i386-low.o with win32-low.o.
20608 * Makefile.in: Likewise.
20610 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
20612 * remote-utils.c (monitor_output): Constify msg parameter.
20613 * server.h (monitor_output): Likewise.
20614 * win32-i386-low.c (handle_output_debug_string): New.
20615 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
20616 handle_output_debug_string.
20617 (get_child_debug_event): Likewise.
20619 2007-03-27 Mat Hostetter <mat@lcs.mit.edu>
20621 * server.c (main): Correct strtoul check.
20623 2007-03-27 Jon Ringle <jon@ringle.org>
20625 * linux-low.c: Check __ARCH_HAS_MMU__ also.
20627 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
20629 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
20631 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
20633 * terminal.h: Check HAVE_SGTTY_H.
20635 2007-02-27 Mat Hostetter <mat@lcs.mit.edu>
20637 * remote-utils.c (remote_open): Print out the assigned port number.
20639 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
20641 * remote-utils.c (monitor_output): New function.
20642 * server.c (debug_threads): Define here.
20643 (monitor_show_help): New function.
20644 (handle_query): Handle qRcmd.
20645 (main): Do not handle 'd' packet.
20646 * server.h (debug_threads, remote_debug, monitor_output): Declare.
20647 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
20650 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20652 * Makefile.in (EXEEXT): New.
20653 (clean): Use $(EXEEXT).
20655 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20657 * target.h (target_ops): Rename send_signal to request_interrupt,
20658 and remove enum target_signal parameter.
20659 * linux-low.c (linux_request_interrupt): Rename from
20660 linux_send_signal, and always send SIGINT.
20661 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
20662 and always send SIGINT.
20663 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
20665 (input_interrupt): Likewise.
20667 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20669 * server.c (get_features_xml): Check if target implemented
20671 * win32-i386-low.c (win32_arch_string): New.
20672 (win32_target_ops): Add win32_arch_string as arch_string member.
20674 2007-02-22 Markus Deuling <deuling@de.ibm.com>
20676 * spu-low.c (spu_arch_string): New.
20677 (spu_target_ops): Add spu_arch_string.
20679 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
20681 * remote-utils.c: Remove HAVE_TERMINAL_H check.
20682 * configure.ac: Do not check for terminal.h.
20683 * configure, config.in: Regenerated.
20685 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
20687 * Makefile.in (OBS): Add $(XML_BUILTIN).
20688 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
20690 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
20691 (arm-with-iwmmxt.c): New.
20692 * config.in, configure: Regenerate.
20693 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
20694 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
20695 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
20696 (arm*-*-linux*): Add iWMMXt and regset support.
20697 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
20698 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
20699 (arm_store_wmmxregset, target_regsets): New.
20700 * server.c (get_features_xml): Take annex argument. Check builtin
20702 (handle_query): Handle multiple annexes.
20704 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20706 * remote-utils.c [USE_WIN32API] (read, write): Define.
20707 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
20710 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
20712 * linux-i386-low.c (the_low_target): Set arch_string.
20713 * linux-x86-64-low.c (the_low_target): Likewise.
20714 * linux-low.c (linux_arch_string): New.
20715 (linux_target_ops): Add it.
20716 * linux-low.h (struct linux_target_ops): Add arch_string.
20717 * server.c (write_qxfer_response): Use const void * for DATA.
20718 (get_features_xml): New.
20719 (handle_query): Handle qXfer:features:read. Report it for qSupported.
20720 * target.h (struct target_ops): Add arch_string method.
20722 2007-01-03 Denis Pilat <denis.pilat@st.com>
20723 Daniel Jacobowitz <dan@codesourcery.com>
20725 * linux-low.c (linux_kill): Handle being called with no threads.
20726 * win32-i386-low.c (win32_kill): Likewise.
20727 (get_child_debug_event): Clear current_process_handle.
20729 2006-12-30 Denis PILAT <denis.pilat@st.com>
20730 Daniel Jacobowitz <dan@codesourcery.com>
20732 * remote-utils.c (remote_open): Check the type of specified
20733 serial port devices before opening them.
20734 * server.c (main): Kill the inferior if an error occurs during
20735 the first remote_open.
20737 2006-12-05 Markus Deuling <deuling@de.ibm.com>
20739 * README: Update supported targets.
20741 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
20743 * Makefile.in (clean): Remove reg-mips64.c.
20744 (reg-mips64.c, reg-mips64.o): New rules.
20745 * configure.srv: Handle mips64. Include regset support for mips.
20746 * linux-mips-low.c (union mips_register): New.
20747 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
20748 (mips_breakpoint, mips_breakpoint_at): Use int.
20749 (mips_collect_register, mips_supply_register)
20750 (mips_collect_register_32bit, mips_supply_register_32bit)
20751 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
20752 (mips_store_fpregset, target_regsets): New.
20753 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
20755 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
20757 * configure.srv: Add target "spu*-*-*".
20758 * Makefile.in (clean): Remove reg-spu.c.
20759 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
20760 * spu-low.c: New file.
20762 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
20764 * configure.ac: Correct td_thr_tls_get_addr test.
20765 * configure: Regenerated.
20767 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
20769 * linux-low.c (linux_wait_for_event): Reformat. Use the
20770 pass_signals array.
20771 * remote-utils.c (decode_address_to_semicolon): New.
20772 * server.c (pass_signals, handle_general_set): New.
20773 (handle_query): Mention QPassSignals for qSupported.
20774 (main): Call handle_general_set.
20775 * server.h (pass_signals, decode_address_to_semicolon): New.
20777 2006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
20779 * server.c (handle_query): Correct error handling for read_auxv.
20781 2005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
20783 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
20784 and srv_linux_thread_db to yes.
20785 * linux-s390-low.c (s390_fill_gregset): New function.
20786 (target_regsets): Define data structure.
20788 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
20790 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
20791 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
20792 * config.in, configure: Regenerated.
20793 * inferiors.c (gdb_id_to_thread): New function.
20794 (gdb_id_to_thread_id): Use it.
20795 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
20796 * linux-low.h (struct process_info): Add th member.
20797 (thread_db_get_tls_address): New prototype.
20798 * remote-utils.c (decode_address): Make non-static.
20799 * server.c (handle_query): Handle qGetTLSAddr.
20800 * server.h (gdb_id_to_thread, decode_address): New prototypes.
20801 * target.h (struct target_ops): Add get_tls_address.
20802 * thread-db.c (maybe_attach_thread): Save the thread handle.
20803 (thread_db_get_tls_address): New.
20805 2006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
20807 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
20808 (linux_resume_one_process): Take a siginfo_t *. Update all
20809 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
20810 (struct pending_signals): Add a siginfo_t.
20811 (linux_wait_for_process): Always set last_status.
20812 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
20813 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
20814 * linux-low.h (struct process_info): Add last_status.
20816 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
20818 * remote-utils.c (try_rle): New function.
20819 (putpkt_binary): Use it.
20821 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
20823 * Makefile.in (clean): Clean reg-x86-64-linux.c.
20824 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
20825 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
20826 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
20827 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
20830 2006-08-08 Richard Sandiford <richard@codesourcery.com>
20832 * server.c (terminal_fd): New variable.
20833 (old_foreground_pgrp): Likewise.
20834 (restore_old_foreground_pgrp): New function.
20835 (start_inferior): Record the terminal file descriptor in terminal_fd
20836 and its original foreground group in old_foreground_pgrp. Register
20837 restore_old_foreground_pgrp with atexit().
20839 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
20841 * server.c (handle_query): Correct qPart to qXfer.
20843 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
20845 * configure.ac: Check for more headers which are missing on
20846 Windows. Automatically supply -lwsock32 and USE_WIN32API.
20847 * configure.srv: Add Cygwin and mingw32.
20848 * remote-utils.c: Don't include headers unconditionally which
20849 are missing on mingw32. Include <winsock.h> for mingw32.
20850 (remote_open): Adjust for mingw32 support. Flush
20851 standard error after writing to it.
20852 (remote_close, putpkt_binary, input_interrupt, block_async_io)
20853 (unblock_async_io, enable_async_io, disable_async_io)
20854 (readchar, getpkt): Update for Winsock support.
20855 (prepare_resume_reply): Expect a protocol signal number.
20856 * server.c: Disable <sys/wait.h> on mingw32.
20857 (start_inferior): Adjust for mingw32 support. Flush
20858 standard error after writing to it.
20859 (attach_inferior): Likewise. Use protocol signal
20861 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
20863 * win32-i386-low.c: New file.
20864 * Makefile.in (XM_CLIBS): Set.
20865 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
20866 (win32-i386-low.o): New dependency rule.
20867 * linux-low.c (linux_wait): Use target signal numbers.
20868 * target.h (struct target_ops): Doc fix.
20869 * server.h (target_signal_to_name): New prototype.
20870 * gdbreplay.c: Don't include headers unconditionally which
20871 are missing on mingw32. Include <winsock.h> for mingw32.
20872 (remote_close, remote_open): Adjust for Winsock support.
20873 * configure, config.in: Regenerated.
20875 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20877 * server.c (decode_xfer_read, write_qxfer_response): New.
20878 (handle_query): Take a packet length argument. Handle
20879 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
20880 the qSupported response.
20881 (main): Update call to handle_query.
20883 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
20885 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
20886 (putpkt_binary): Renamed from putpkt and adjusted for binary
20888 (putpkt): New wrapper for putpkt_binary.
20889 (readchar): Don't mask off the high bit.
20890 (decode_X_packet): New function.
20891 * server.c (main): Call putpkt_binary if a handler sets the packet
20892 length. Save the length of the incoming packet. Handle 'X'.
20893 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
20895 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
20897 * server.c (handle_query): Handle qSupported.
20899 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
20901 * remote-utils.c (all_symbols_looked_up): New variable.
20902 (look_up_one_symbol): Check it.
20903 * server.h (look_up_one_symbol): New declaration.
20904 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
20906 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
20908 * Makefile.in (linux-arm-low.o): Update dependencies.
20909 * linux-arm-low.c: Include "gdb_proc_service.h".
20910 (PTRACE_GET_THREAD_AREA): Define.
20911 (ps_get_thread_area): New function.
20913 2006-05-09 Nathan Sidwell <nathan@codesourcery.com>
20915 * configure.srv (m68k*-*-uclinux*): New target.
20916 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
20917 (linux_resume_one_process): Remove extraneous cast.
20918 (linux_read_offsets): New.
20919 (linux_target_op): Add linux_read_offsets on mmuless systems.
20920 * server.c (handle_query): Add qOffsets logic.
20921 * target.h (struct target_ops): Add read_offsets.
20923 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
20925 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
20926 (PTRACE_GET_THREAD_AREA): Define.
20927 (ps_get_thread_area): New function.
20928 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
20929 (linux-x86-64-low.o): Update.
20931 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
20933 * configure.ac: Remove checks for prfpregset_t.
20934 * gdb_proc_service.h: New file.
20935 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
20936 new "gdb_proc_service.h".
20937 * proc-service.c: Likewise.
20938 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
20939 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
20940 * Makefile.in (gdb_proc_service_h): Updated.
20941 * configure, config.in: Regenerated.
20943 2006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
20945 * remote-utils.c (prepare_resume_reply): Move declaration
20946 of gdb_id_from_wait to the top of the block.
20948 2006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
20950 * linux-low.c (regsets_store_inferior_registers): Read the regset
20951 from the target before filling it.
20953 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
20955 * server.c (attach_inferior): Return SIGTRAP for a successful
20958 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
20960 * Makefile.in (OBS): Add version.o.
20961 (STAGESTUFF): Delete.
20962 (version.o): Add dependencies.
20963 (version.c): Replace rule.
20964 (clean): Remove version.c.
20965 * server.c (gdbserver_version): New.
20966 (gdbserver_usage): Use printf.
20967 (main): Handle --version and --help.
20968 * server.h (version, host_name): Add declarations.
20970 2005-12-23 Eli Zaretskii <eliz@gnu.org>
20982 * linux-x86-64-low.c:
20984 * linux-s390-low.c:
20985 * linux-ppc64-low.c:
20987 * linux-mips-low.c:
20988 * linux-m68k-low.c:
20989 * linux-m32r-low.c:
20992 * linux-ia64-low.c:
20993 * linux-i386-low.c:
20994 * linux-crisv32-low.c:
21006 * gdbserver.1: Add (C) after Copyright. Update the FSF
21009 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
21011 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
21012 (arm_breakpoint_at): Recognize both breakpoints.
21013 (the_low_target): Use the correct breakpoint instruction.
21015 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
21017 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
21018 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
21019 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
21020 (the_low_target): Update.
21022 2005-10-25 Andreas Schwab <schwab@suse.de>
21024 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
21026 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
21027 (ia64_num_regs): Reduce to 462.
21029 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
21031 * acinclude.m4: Correct quoting.
21032 * aclocal.m4: Regenerated.
21034 Suggested by SZOKOVACS Robert <szo@ies.hu>:
21035 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
21036 (thread_db_init): Call thread_db_err_str.
21037 * configure.ac: Check for TD_VERSION.
21038 * config.in, configure: Regenerated.
21040 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21042 * server.h (error, fatal, warning): Add ATTR_FORMAT.
21044 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21046 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
21047 is not available. Define HAVE_PTRACE_GETREGS if it is.
21048 * config.in, configure: Regenerated.
21049 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
21050 * linux-i386-low.c, linux-m68k-low.c: Update to use
21051 HAVE_PTRACE_GETREGS.
21052 * linux-low.c (regsets_fetch_inferior_registers)
21053 (regsets_store_inferior_registers): Only return 0 if we processed
21055 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
21056 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
21058 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21060 * inferiors.c (struct thread_info): Add gdb_id.
21061 (add_thread): Add gdb_id argument.
21062 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
21063 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
21064 calls to add_thread.
21065 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
21066 * server.c (handle_query): Use thread_to_gdb_id.
21067 (handle_v_cont, main): Use gdb_id_to_thread_id.
21068 * server.h (add_thread): Update prototype.
21069 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
21072 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21074 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
21075 left-padded registers.
21076 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
21077 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
21079 2005-07-01 Steve Ellcey <sje@cup.hp.com>
21081 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
21082 * configure: Regenerate.
21083 * config.in: Regenerate.
21084 * server.h (NEED_DECLARATION_STRERROR):
21085 Replace with !HAVE_DECL_STRERROR.
21087 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
21089 * linux-low.c (linux_wait, linux_send_signal): Don't test
21090 an unsigned long variable for > 0 if it could be MAX_ULONG.
21091 * server.c (myresume): Likewise.
21092 * target.c (set_desired_inferior): Likewise.
21094 2005-06-13 Mark Kettenis <kettenis@gnu.org>
21096 * configure.ac: Simplify and improve check for socklen_t.
21097 * configure, config.in: Regenerate.
21099 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
21101 * acconfig.h: Remove.
21102 * configure.ac: Add a test for socklen_t. Use three-argument
21103 AC_DEFINE throughout.
21104 * config.in: Regenerated using autoheader 2.59.
21105 * configure: Regenerated.
21107 * gdbreplay.c (socklen_t): Provide a default.
21108 (remote_open): Use socklen_t.
21109 * remote-utils.c (socklen_t): Provide a default.
21110 (remote_open): Use socklen_t.
21111 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
21114 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
21116 * linux-low.c (linux_read_memory, linux_write_memory)
21117 (linux_read_auxv): Likewise.
21118 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
21119 (check_mem_write): Likewise.
21120 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
21122 * regcache.c (struct inferior_rgcache_data, registers_to_string)
21123 (registers_from_string, register_data): Likewise.
21124 * server.c (handle_query, main): Likewise.
21125 * server.h (convert_ascii_to_int, convert_int_to_ascii)
21126 (decode_M_packet): Likewise.
21127 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
21128 * target.h (struct target_ops): Update read_memory, write_memory,
21130 (read_inferior_memory, write_inferior_memory): Update.
21131 * linux-low.h (struct linux_target_ops): Change type of breakpoint
21132 to unsigned char *.
21133 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
21134 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
21135 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
21136 linux-s390-low.c, linux-sh-low.c: Update for changes in
21137 read_inferior_memory and the_low_target->breakpoint.
21139 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
21141 * Makefile.in (SFILES): Add linux-ppc64-low.c.
21142 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
21143 * configure.srv: Add powerpc64-*-linux*.
21144 * linux-ppc64-low.c: New file.
21146 2005-05-23 Orjan Friberg <orjanf@axis.com>
21148 * linux-cris-low.c: New file with support for CRIS.
21149 * linux-crisv32-low.c: Ditto for CRISv32.
21150 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
21151 (clean): Add reg-cris.c and reg-crisv32.c.
21152 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
21153 reg-crisv32.o, and reg-crisv32.c to make rules.
21154 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
21155 recognized targets.
21157 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
21159 * linux-low.c (fetch_register): Ensure buffer size is a multiple
21160 of sizeof (PTRACE_XFER_TYPE).
21161 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
21163 2005-05-12 Orjan Friberg <orjanf@axis.com>
21165 * target.h (struct target_ops): Add insert_watchpoint,
21166 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
21167 pointers for hardware watchpoint support.
21168 * linux-low.h (struct linux_target_ops): Ditto.
21169 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
21170 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
21171 to linux_target_ops.
21172 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
21174 * server.c (main): Recognize 'Z' and 'z' packets.
21176 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
21178 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
21179 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
21180 (the_low_target): Add new members.
21182 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21184 * proc-service.c (ps_lgetregs): Search all_processes instead of
21187 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21189 * server.c (start_inferior): Change return type to int.
21190 (attach_inferior): Change sigptr to int *.
21191 (handle_v_cont, handle_v_requests): Change signal to int *.
21192 (main): Change signal to int.
21194 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
21196 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
21197 * configure.srv: Add m32r*-*-linux*.
21198 * linux-m32r-low.c: New file.
21200 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
21202 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
21204 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21206 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
21207 Take unsigned long arguments for PIDs.
21208 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
21209 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
21210 (wait_for_sigstop, linux_resume_one_process)
21211 (regsets_fetch_inferior_registers, linux_send_signal)
21212 (linux_read_auxv): Likewise. Update the types of variables holding
21213 PIDs. Update format string specifiers.
21214 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
21215 * remote-utils.c (prepare_resume_reply): Likewise.
21216 * server.c (cont_thread, general_thread, step_thread)
21217 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
21219 (handle_query): Update format specifiers.
21220 (handle_v_cont, main): Use strtoul for thread IDs.
21221 * server.h (struct inferior_list_entry): Use unsigned long for ID.
21222 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
21223 (general_thread, step_thread, thread_from_wait)
21224 (old_thread_from_wait): Update.
21225 * target.h (struct thread_resume): Use unsigned long for THREAD.
21226 (struct target_ops): Use unsigned long for arguments to attach and
21229 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
21231 * acinclude.m4: Include bfd/bfd.m4 directly.
21232 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
21233 <agriffis@toolchain.org>.
21234 * aclocal.m4, configure: Regenerated.
21236 2005-01-07 Andrew Cagney <cagney@gnu.org>
21238 * configure.ac: Rename configure.in, require autoconf 2.59.
21239 * configure: Re-generate.
21241 2004-12-08 Daniel Jacobowitz <dan@debian.org>
21243 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
21244 LIBS when finished.
21245 * aclocal.m4: Regenerated.
21246 * configure: Regenerated.
21248 2004-11-21 Andreas Schwab <schwab@suse.de>
21250 * linux-m68k-low.c (m68k_num_gregs): Define.
21251 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
21252 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
21253 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
21254 (m68k_breakpoint_at): New. Add to the_low_target.
21256 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
21257 srv_linux_thread_db to yes.
21259 2004-10-20 Joel Brobecker <brobecker@gnat.com>
21261 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
21262 (ARCH_SET_FS): Likewise.
21263 (ARCH_GET_FS): Likewise.
21264 (ARCH_GET_GS): Likewise.
21266 2004-10-16 Daniel Jacobowitz <dan@debian.org>
21268 * linux-i386-low.c (ps_get_thread_area): New.
21269 * linux-x86-64-low.c (ps_get_thread_area): New.
21270 * linux-low.c: Include <sys/syscall.h>.
21271 (linux_kill_one_process): Don't kill the first thread here.
21272 (linux_kill): Kill the first thread here.
21273 (kill_lwp): New function.
21274 (send_sigstop, linux_send_signal): Use it.
21275 * proc-service.c: Clean up #ifdefs.
21276 (fpregset_info): Delete.
21277 (ps_lgetregs): Update and enable implementation.
21278 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
21280 * remote-utils.c (struct sym_cache, symbol_cache): New.
21281 (input_interrupt): Print a clearer message.
21282 (async_io_enabled): New variable.
21283 (enable_async_io, disable_async_io): Use it. Update comments.
21284 (look_up_one_symbol): Use the symbol cache.
21285 * thread-db.c (thread_db_look_up_symbols): New function.
21286 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
21288 2004-10-16 Daniel Jacobowitz <dan@debian.org>
21290 * configure.in: Test for -rdynamic.
21291 * configure: Regenerated.
21292 * Makefile (INTERNAL_LDFLAGS): New.
21293 (gdbserver, gdbreplay): Use it.
21295 2004-09-02 Andrew Cagney <cagney@gnu.org>
21297 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
21299 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
21301 * linux-low.c (linux_wait): Clear all_processes list also.
21303 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
21305 * linux-low.c: Include <errno.h>. Remove extern declaration of
21308 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
21310 * gdbreplay.c, server.h, utils.c: Update copyright years.
21312 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21314 * server.c (main): Print child status or termination signal from
21315 variable 'signal', not 'sig'.
21317 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21319 * linux-low.c (linux_read_memory): Change return type to
21320 int. Check for and return error from ptrace().
21321 * target.c (read_inferior_memory): Change return type to int. Pass
21322 back return status from the_target->read_memory().
21323 * target.h (struct target_ops): Adapt *read_memory() prototype.
21325 (read_inferior_memory): Adapt prototype.
21326 * server.c (main): Return an error packet if
21327 read_inferior_memory() returns an error.
21329 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
21331 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
21332 Unify with other clean targets.
21334 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21336 * server.c (handle_v_cont): Call set_desired_inferior.
21338 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21340 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
21342 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21344 * linux-low.c (linux_wait): Unblock async I/O.
21345 (linux_resume): Block and enable async I/O.
21346 * remote-utils.c (block_async_io, unblock_async_io): New functions.
21347 * server.h (block_async_io, unblock_async_io): Add prototypes.
21349 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21351 * remote-utils.c (remote_open): Print a status notice after
21352 opening a TCP port.
21353 * server.c (attach_inferior): Print a status notice after
21356 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21358 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
21360 2004-02-26 Daniel Jacobowitz <drow@mvista.com>
21362 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
21364 * server.c, target.h: Update copyright years.
21366 2004-02-25 Roland McGrath <roland@redhat.com>
21368 * target.h (struct target_ops): New member `read_auxv'.
21369 * server.c (handle_query): Handle qPart:auxv:read: query using that.
21370 * linux-low.c (linux_read_auxv): New function.
21371 (linux_target_ops): Initialize `read_auxv' member to that.
21373 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21375 Committed by Jim Blandy <jimb@redhat.com>.
21377 * linux-s390-low.c (s390_num_regs): Update.
21378 (s390_regmap): Remove control registers. Use __s390x__ predefine
21379 instead of GPR_SIZE to distiguish s390 and s390x targets.
21381 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
21383 * linux-low.c: Update copyright year.
21384 (check_removed_breakpoint): Clear pending_is_breakpoint.
21385 (linux_set_resume_request, linux_queue_one_thread)
21386 (resume_status_pending_p): New functions.
21387 (linux_continue_one_thread): Use process->resume.
21388 (linux_resume): Only resume threads if there are no pending events.
21389 * linux-low.h (struct process_info): Add resume request
21392 2004-01-30 Daniel Jacobowitz <drow@mvista.com>
21394 * regcache.c (new_register_cache): Clear the allocated register
21395 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
21397 2003-10-13 Daniel Jacobowitz <drow@mvista.com>
21399 * linux-low.c (linux_resume): Take a struct thread_resume *
21401 (linux_wait): Update call.
21402 (resume_ptr): New static variable.
21403 (linux_continue_one_thread): Renamed from
21404 linux_continue_one_process. Use resume_ptr.
21405 (linux_resume): Use linux_continue_one_thread.
21406 * server.c (handle_v_cont, handle_v_requests): New functions.
21407 (myresume): New function.
21408 (main): Handle 'v' case.
21409 * target.h (struct thread_resume): New type.
21410 (struct target_ops): Change argument of "resume" to struct
21412 (myresume): Delete macro.
21414 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
21416 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
21417 (uninstall): Support DESTDIR.
21419 Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
21421 * configure.srv: Add xscale*linux copy of arm*linux entry.
21423 2003-07-24 Daniel Jacobowitz <drow@mvista.com>
21425 * linux-arm-low.c (arm_reinsert_addr): New function.
21426 (the_low_target): Add arm_reinsert_addr.
21428 2003-07-08 Mark Kettenis <kettenis@gnu.org>
21430 * mem-break.c: Remove whitespace at end of file.
21432 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
21434 * configure.in: Check whether we need to prototype strerror.
21435 * server.h: Optionally prototype strerror.
21436 * gdbreplay.c (perror_with_name): Use strerror.
21437 * linux-low.c (linux_attach_lwp): Use strerror.
21438 * utils.c (perror_with_name): Use strerror.
21439 * config.in, configure: Regenerated.
21441 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
21443 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
21444 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
21446 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
21448 * Makefile.in (SFILES): Update.
21449 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
21450 low-sun3.c: Remove files.
21452 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
21454 * linux-low.c: Move comment to linux_thread_alive where it belonged.
21455 (linux_detach_one_process, linux_detach): New functions.
21456 (linux_target_ops): Add linux_detach.
21457 * server.c (main): Handle 'D' packet.
21458 * target.h (struct target_ops): Add "detach" member.
21459 (detach_inferior): Define.
21461 2003-06-13 Mark Kettenis <kettenis@gnu.org>
21463 From Kelley Cook <kelleycook@wideopenwest.com>:
21464 * configure.srv: Accept i[34567]86 variants.
21466 2003-06-05 Daniel Jacobowitz <drow@mvista.com>
21468 * linux-low.c (linux_wait_for_event): Correct comment typos.
21469 (linux_resume_one_process): Call check_removed_breakpoint.
21470 (linux_send_signal): New function.
21471 (linux_target_ops): Add linux_send_signal.
21472 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
21474 * target.h (struct target_ops): Add send_signal.
21476 2003-05-29 Jim Blandy <jimb@redhat.com>
21478 * linux-low.c (usr_store_inferior_registers): Transfer buf in
21479 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
21480 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
21481 away part of the register's value.
21483 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
21485 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
21486 (linux_wait_for_event, linux_init_signals): Likewise.
21488 2003-03-17 Daniel Jacobowitz <drow@mvista.com>
21490 * configure.in: Check for stdlib.h.
21491 * configure: Regenerated.
21492 * config.in: Regenerated.
21494 2003-01-04 Andreas Schwab <schwab@suse.de>
21496 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
21498 2003-01-02 Andrew Cagney <ac131313@redhat.com>
21500 * Makefile.in: Remove obsolete code.
21502 2002-11-20 Daniel Jacobowitz <drow@mvista.com>
21504 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
21505 defined(PT_FPR0_HI).
21507 2002-11-17 Stuart Hughes <seh@zee2.com>
21509 * linux-arm-low.c (arm_num_regs): Increase.
21510 (arm_regmap): Include status register.
21512 2002-11-17 Daniel Jacobowitz <drow@mvista.com>
21514 * linux-low.c (register_addr): Remove incorrect -1 check.
21516 2002-08-29 Daniel Jacobowitz <drow@mvista.com>
21518 * linux-low.c (linux_create_inferior): Call setpgid. Return
21520 (unstopped_p, linux_signal_pid): Remove.
21521 (linux_target_ops): Remove linux_signal_pid.
21522 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
21523 global instead of target method.
21524 * target.h (struct target_ops): Remove signal_pid. Update comment
21525 for create_inferior.
21526 * server.c (signal_pid): New variable.
21527 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
21528 gdbserver. Set the child to be the foreground process group.
21529 (attach_inferior): Set signal_pid.
21531 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
21533 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
21535 2002-08-20 Jim Blandy <jimb@redhat.com>
21537 * Makefile.in (LDFLAGS): Allow the configure script to establish a
21540 2002-08-01 Andrew Cagney <cagney@redhat.com>
21542 * Makefile.in: Make chill references obsolete.
21544 2002-07-24 Kevin Buettner <kevinb@redhat.com>
21546 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
21547 * configure: Regenerate.
21548 * config.in: Regenerate.
21550 2002-07-09 David O'Brien <obrien@FreeBSD.org>
21552 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
21553 (perror_with_name, remote_close, remote_open, expect, play): Static.
21555 2002-07-04 Michal Ludvig <mludvig@suse.cz>
21557 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
21558 byte offsets instead of an array of indexes.
21559 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
21561 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
21563 * regcache.c: Add comment.
21565 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
21567 * thread-db.c: New file.
21568 * proc-service.c: New file.
21569 * acinclude.m4: New file.
21570 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
21571 proc-service.o, and thread-db.o.
21572 (linux-low.o): Add USE_THREAD_DB.
21573 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
21574 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
21575 * aclocal.m4: Regenerated.
21576 * config.in: Regenerated.
21577 * configure: Regenerated.
21578 * configure.in: Check for proc_service.h, sys/procfs.h,
21579 thread_db.h, and linux/elf.h headrs.
21580 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
21581 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
21582 Check for -lthread_db and thread support.
21583 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
21584 PowerPC, and SuperH.
21585 * i387-fp.c: Constify arguments.
21586 * i387-fp.h: Likewise.
21587 * inferiors.c: (struct thread_info): Renamed from
21588 `struct inferior_info'. Remove PID member. Use generic inferior
21589 list header. All uses updated.
21590 (inferiors, signal_pid): Removed.
21591 (all_threads): New variable.
21592 (get_thread): Define.
21593 (add_inferior_to_list): New function.
21594 (for_each_inferior): New function.
21595 (change_inferior_id): New function.
21596 (add_inferior): Removed.
21597 (remove_inferior): New function.
21598 (add_thread): New function.
21599 (free_one_thread): New function.
21600 (remove_thread): New function.
21601 (clear_inferiors): Use for_each_inferior and free_one_thread.
21602 (find_inferior): New function.
21603 (find_inferior_id): New function.
21604 (inferior_target_data): Update argument type.
21605 (set_inferior_target_data): Likewise.
21606 (inferior_regcache_data): Likewise.
21607 (set_inferior_regcache_data): Likewise.
21608 * linux-low.c (linux_bp_reinsert): Remove.
21609 (all_processes, stopping_threads, using_thrads)
21610 (struct pending_signals, debug_threads, pid_of): New.
21611 (inferior_pid): Replace with macro.
21612 (struct inferior_linux_data): Remove.
21613 (get_stop_pc, add_process): New functions.
21614 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
21615 Use add_process and add_thread.
21616 (linux_attach_lwp): New function, based on old linux_attach. Use
21617 add_process and add_thread. Set stop_expected for new threads.
21618 (linux_attach): New function.
21619 (linux_kill_one_process): New function.
21620 (linux_kill): Kill all LWPs.
21621 (linux_thread_alive): Use find_inferior_id.
21622 (check_removed_breakpoints, status_pending_p): New functions.
21623 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
21624 Update. Use WNOHANG. Wait for cloned processes also. Update process
21625 struct for the found process.
21626 (linux_wait_for_event): New function.
21627 (linux_wait): Use it. Support LWPs.
21628 (send_sigstop, wait_for_sigstop, stop_all_processes)
21629 (linux_resume_one_process, linux_continue_one_process): New functions.
21630 (linux_resume): Support LWPs.
21631 (REGISTER_RAW_SIZE): Remove.
21632 (fetch_register): Use register_size instead. Call supply_register.
21633 (usr_store_inferior_registers): Likewise. Call collect_register.
21634 Fix recursive case.
21635 (regsets_fetch_inferior_registers): Improve error message.
21636 (regsets_store_inferior_registers): Add debugging.
21637 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
21638 (unstopped_p, linux_signal_pid): New functions.
21639 (linux_target_ops): Add linux_signal_pid.
21640 (linux_init_signals): New function.
21641 (initialize_low): Call it. Initialize using_threads.
21642 * regcache.c (inferior_regcache_data): Add valid
21644 (get_regcache): Fetch registers lazily. Add fetch argument
21645 and update all callers.
21646 (regcache_invalidate_one, regcache_invalidate): New
21648 (new_register_cache): Renamed from create_register_cache.
21649 Return the new regcache.
21650 (free_register_cache): Change argument to a void *.
21651 (registers_to_string, registers_from_string): Call get_regcache
21652 with fetch flag set.
21653 (register_data): Make static. Pass fetch flag to get_regcache.
21654 (supply_register): Call get_regcache with fetch flag clear.
21655 (collect_register): Call get_regcache with fetch flag set.
21656 (collect_register_as_string): New function.
21657 * regcache.h: Update.
21658 * remote-utils.c (putpkt): Flush after debug output and use
21660 Handle input interrupts while waiting for an ACK.
21661 (input_interrupt): Use signal_pid method.
21662 (getpkt): Flush after debug output and use stderr.
21663 (outreg): Use collect_register_as_string.
21664 (new_thread_notify, dead_thread_notify): New functions.
21665 (prepare_resume_reply): Check using_threads. Set thread_from_wait
21666 and general_thread.
21667 (look_up_one_symbol): Flush after debug output.
21668 * server.c (step_thread, server_waiting): New variables.
21669 (start_inferior): Don't use signal_pid. Update call to mywait.
21670 (attach_inferior): Update call to mywait.
21671 (handle_query): Handle qfThreadInfo and qsThreadInfo.
21672 (main): Don't fetch/store registers explicitly. Use
21673 set_desired_inferior. Support proposed ``Hs'' packet. Update
21675 * server.h: Update.
21676 (struct inferior_list, struct_inferior_list_entry): New.
21677 * target.c (set_desired_inferior): New.
21678 (write_inferior_memory): Constify.
21679 (mywait): New function.
21680 * target.h: Update.
21681 (struct target_ops): New signal_pid method.
21682 (mywait): Removed macro, added prototype.
21684 * linux-low.h (regset_func): Removed.
21685 (regset_fill_func, regset_store_func): New.
21686 (enum regset_type): New.
21687 (struct regset_info): Add type field. Use new operation types.
21688 (struct linux_target_ops): stop_pc renamed to get_pc.
21689 Add decr_pc_after_break and breakpoint_at.
21690 (get_process, get_thread_proess, get_process_thread)
21691 (strut process_info, all_processes, linux_attach_lwp)
21692 (thread_db_init): New.
21694 * linux-arm-low.c (arm_get_pc, arm_set_pc,
21695 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
21696 (the_low_target): Add new members.
21697 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
21698 (i386_store_fpxregset): Constify.
21699 (target_regsets): Add new kind identifier.
21700 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
21701 (i386_set_pc): Add debugging.
21702 (i386_breakpoint_at): New function.
21703 (the_low_target): Add new members.
21704 * linux-mips-low.c (mips_get_pc, mips_set_pc)
21705 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
21706 (mips_breakpoint_at): New.
21707 (the_low_target): Add new members.
21708 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
21709 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
21710 (the_low_target): Add new members.
21711 * linux-sh-low.c (sh_get_pc, sh_set_pc)
21712 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
21713 (the_low_target): Add new members.
21714 * linux-x86-64-low.c (target_regsets): Add new kind
21717 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
21719 From Martin Pool <mbp@samba.org>:
21720 * server.c (gdbserver_usage): New function.
21723 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
21725 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
21726 stop_at -> stop_pc.
21728 2002-05-04 Andrew Cagney <ac131313@redhat.com>
21730 * Makefile.in: Remove obsolete code.
21732 2002-04-24 Michal Ludvig <mludvig@suse.cz>
21734 * linux-low.c (regsets_fetch_inferior_registers),
21735 (regsets_store_inferior_registers): Removed cast to int from
21737 * regcache.h: Added declaration of struct inferior_info.
21739 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
21741 * inferiors.c (struct inferior_info): Add regcache_data.
21742 (add_inferior): Call create_register_cache.
21743 (clear_inferiors): Call free_register_cache.
21744 (inferior_regcache_data, set_inferior_regcache_data): New functions.
21745 * regcache.c (struct inferior_regcache_data): New.
21746 (registers): Remove.
21747 (get_regcache): New function.
21748 (create_register_cache, free_register_cache): New functions.
21749 (set_register_cache): Don't initialize the register cache here.
21750 (registers_to_string, registers_from_string, register_data): Call
21752 * regcache.h: Add prototypes.
21753 * server.h: Likewise.
21755 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
21757 * mem-break.c: New file.
21758 * mem-break.h: New file.
21759 * Makefile.in: Add mem-break.o rule; update server.h
21761 * inferiors.c (struct inferior_info): Add target_data
21763 (clear_inferiors): Free target_data member if set.
21764 (inferior_target_data, set_inferior_target_data): New functions.
21765 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
21766 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
21767 * linux-low.c (linux_bp_reinsert): New variable.
21768 (struct inferior_linux_data): New.
21769 (linux_create_inferior): Use set_inferior_target_data.
21770 (linux_attach): Likewise. Call add_inferior.
21771 (linux_wait_for_one_inferior): New function.
21772 (linux_wait): Call it.
21773 (linux_write_memory): Add const.
21774 (initialize_low): Call set_breakpoint_data.
21775 * linux-low.h (struct linux_target_ops): Add breakpoint
21777 * server.c (attach_inferior): Remove extra add_inferior
21779 * server.h: Include mem-break.h. Update inferior.c
21781 * target.c (read_inferior_memory)
21782 (write_inferior_memory): New functions.
21783 * target.h (read_inferior_memory)
21784 (write_inferior_memory): Change macros to prototypes.
21785 (struct target_ops): Update comments. Add const to write_memory
21788 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
21790 * linux-low.c (usr_store_inferior_registers): Support
21791 registers which are allowed to fail to store.
21792 * linux-low.h (linux_target_ops): Likewise.
21793 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
21794 (ppc_cannot_store_register): FPSCR may not be storable.
21796 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
21798 * server.h: Include <string.h> if HAVE_STRING_H.
21799 * ChangeLog: Correct paths in last ChangeLog entry.
21801 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
21803 * linux-low.h: Remove obsolete prototypes.
21804 (struct linux_target_ops): New.
21805 (extern the_low_target): New.
21806 * linux-low.c (num_regs, regmap): Remove declarations.
21807 (register_addr): Use the_low_target explicitly.
21808 (fetch_register): Likewise.
21809 (usr_fetch_inferior_registers): Likewise.
21810 (usr_store_inferior_registers): Likewise.
21811 * linux-arm-low.c (num_regs): Remove.
21812 (arm_num_regs): Define.
21813 (arm_regmap): Renamed from regmap, made static.
21814 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
21816 (arm_cannot_store_register): Renamed from cannot_store_register,
21818 (the_low_target): New.
21819 * linux-i386-low.c (num_regs): Remove.
21820 (i386_num_regs): Define.
21821 (i386_regmap): Renamed from regmap, made static.
21822 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
21824 (i386_cannot_store_register): Renamed from cannot_store_register,
21826 (the_low_target): New.
21827 * linux-ia64-low.c (num_regs): Remove.
21828 (ia64_num_regs): Define.
21829 (ia64_regmap): Renamed from regmap, made static.
21830 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
21832 (ia64_cannot_store_register): Renamed from cannot_store_register,
21834 (the_low_target): New.
21835 * linux-m68k-low.c (num_regs): Remove.
21836 (m68k_num_regs): Define.
21837 (m68k_regmap): Renamed from regmap, made static.
21838 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
21840 (m68k_cannot_store_register): Renamed from cannot_store_register,
21842 (the_low_target): New.
21843 * linux-mips-low.c (num_regs): Remove.
21844 (mips_num_regs): Define.
21845 (mips_regmap): Renamed from regmap, made static.
21846 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
21848 (mips_cannot_store_register): Renamed from cannot_store_register,
21850 (the_low_target): New.
21851 * linux-ppc-low.c (num_regs): Remove.
21852 (ppc_num_regs): Define.
21853 (ppc_regmap): Renamed from regmap, made static.
21854 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
21856 (ppc_cannot_store_register): Renamed from cannot_store_register,
21858 (the_low_target): New.
21859 * linux-s390-low.c (num_regs): Remove.
21860 (s390_num_regs): Define.
21861 (s390_regmap): Renamed from regmap, made static.
21862 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
21864 (s390_cannot_store_register): Renamed from cannot_store_register,
21866 (the_low_target): New.
21867 * linux-sh-low.c (num_regs): Remove.
21868 (sh_num_regs): Define.
21869 (sh_regmap): Renamed from regmap, made static.
21870 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
21872 (sh_cannot_store_register): Renamed from cannot_store_register,
21874 (the_low_target): New.
21875 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
21876 (the_low_target): New.
21878 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
21880 * Makefile.in: Add stamp-h target.
21881 * configure.in: Create stamp-h.
21882 * configure: Regenerated.
21884 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
21886 * inferiors.c: New file.
21887 * target.c: New file.
21888 * target.h: New file.
21889 * Makefile.in: Add target.o and inferiors.o. Update
21891 * linux-low.c (inferior_pid): New static variable,
21892 moved from server.c.
21893 (linux_create_inferior): Renamed from create_inferior.
21894 Call add_inferior. Return 0 on success instead of a PID.
21895 (linux_attach): Renamed from myattach.
21896 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
21897 (linux_thread_alive): Renamed from mythread_alive.
21898 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
21900 (linux_resume): Renamed from myresume. Add missing ``return 0''.
21901 (regsets_store_inferior_registers): Correct error message.
21902 Add missing ``return 0''.
21903 (linux_fetch_registers): Renamed from fetch_inferior_registers.
21904 (linux_store_registers): Renamed from store_inferior_registers.
21905 (linux_read_memory): Renamed from read_inferior_memory.
21906 (linux_write_memory): Renamed from write_inferior_memory.
21907 (linux_target_ops): New structure.
21908 (initialize_low): Call set_target_ops ().
21909 * remote-utils.c (unhexify): New function.
21910 (hexify): New function.
21911 (input_interrupt): Send signals to ``signal_pid''.
21912 * server.c (inferior_pid): Remove.
21913 (start_inferior): Update create_inferior call.
21914 (attach_inferior): Call add_inferior.
21915 (handle_query): New function.
21916 (main): Call handle_query for `q' packets.
21917 * server.h: Include "target.h". Remove obsolete prototypes.
21918 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
21920 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
21922 * Makefile.in: Add WARN_CFLAGS. Update configury
21924 * configure.in: Check for <string.h>
21925 * configure: Regenerate.
21926 * config.in: Regenerate.
21927 * gdbreplay.c: Include needed system headers.
21928 (remote_open): Remove strchr prototype.
21929 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
21930 * regcache.c (supply_register): Change buf argument to const void *.
21931 (supply_register_by_name): Likewise.
21932 (collect_register): Change buf argument to void *.
21933 (collect_register_by_name): Likewise.
21934 * regcache.h: Add missing prototypes.
21935 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
21936 * server.c (handle_query): New function.
21937 (attached): New static variable, moved out of main.
21938 (main): Quiet longjmp clobber warnings.
21939 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
21940 * utils.c (error): Remove NORETURN.