1 2020-04-08 Tom Tromey <tromey@adacore.com>
3 * win32-low.h (struct windows_thread_info): Remove.
5 2020-04-08 Tom Tromey <tromey@adacore.com>
7 * win32-low.h (struct windows_thread_info): Rename from
8 win32_thread_info. Remove typedef.
9 (struct win32_target_ops, win32_require_context): Update.
10 * win32-low.c (win32_get_thread_context)
11 (win32_set_thread_context, win32_prepare_to_resume)
12 (win32_require_context, thread_rec, child_add_thread)
13 (delete_thread_info, continue_one_thread)
14 (child_fetch_inferior_registers, child_store_inferior_registers)
15 (win32_resume, suspend_one_thread, win32_get_tib_address):
17 * win32-i386-low.c (update_debug_registers)
18 (win32_get_current_dr, i386_get_thread_context)
19 (i386_prepare_to_resume, i386_thread_added, i386_single_step)
20 (i386_fetch_inferior_register, i386_store_inferior_register):
22 * win32-arm-low.c (arm_get_thread_context)
23 (arm_fetch_inferior_register, arm_store_inferior_register):
26 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
28 * linux-low.h (struct linux_target_ops): Remove.
29 (the_low_target): Remove.
30 * linux-x86-low.cc (the_low_target): Remove.
31 * linux-aarch64-low.cc (the_low_target): Ditto.
32 * linux-arm-low.cc (the_low_target): Ditto.
33 * linux-bfin-low.cc (the_low_target): Ditto.
34 * linux-cris-low.cc (the_low_target): Ditto.
35 * linux-crisv32-low.cc (the_low_target): Ditto.
36 * linux-ia64-low.cc (the_low_target): Ditto.
37 * linux-m32r-low.cc (the_low_target): Ditto.
38 * linux-m68k-low.cc (the_low_target): Ditto.
39 * linux-mips-low.cc (the_low_target): Ditto.
40 * linux-nios2-low.cc (the_low_target): Ditto.
41 * linux-ppc-low.cc (the_low_target): Ditto.
42 * linux-riscv-low.cc (the_low_target): Ditto.
43 * linux-s390-low.cc (the_low_target): Ditto.
44 * linux-sh-low.cc (the_low_target): Ditto.
45 * linux-sparc-low.cc (the_low_target): Ditto.
46 * linux-tic6x-low.cc (the_low_target): Ditto.
47 * linux-tile-low.cc (the_low_target): Ditto.
48 * linux-xtensa-low.cc (the_low_target): Ditto.
50 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
52 Remove the 'get_ipa_tdesc_idx' linux target op and let a concrete
53 linux target define the op by overriding the declaration in
54 process_stratum_target.
56 * linux-low.h (struct linux_target_ops): Remove the op.
57 (class linux_process_target) <get_ipa_tdesc_idx>: Remove.
58 * linux-low.cc (linux_process_target::get_ipa_tdesc_idx): Remove.
59 * linux-x86-low.cc (class x86_target) <get_ipa_tdesc_idx>: Declare.
60 (x86_get_ipa_tdesc_idx): Turn into...
61 (x86_target::get_ipa_tdesc_idx): ...this.
62 (the_low_target): Remove the op field.
63 * linux-ppc-low.cc (class ppc_target) <get_ipa_tdesc_idx>: Declare.
64 (ppc_get_ipa_tdesc_idx): Turn into...
65 (ppc_target::get_ipa_tdesc_idx): ...this.
66 (the_low_target): Remove the op field.
67 * linux-s390-low.cc (class s390_target) <get_ipa_tdesc_idx>: Declare.
68 (s390_get_ipa_tdesc_idx): Turn into...
69 (s390_target::get_ipa_tdesc_idx): ...this.
70 (the_low_target): Remove the op field.
72 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
74 Turn the 'get_syscall_trapinfo' linux target op into a method
75 of process_stratum_target.
77 * linux-low.h (struct linux_target_ops): Remove the op.
78 (class linux_process_target) <get_syscall_trapinfo>
79 <gdb_catch_this_syscall>
80 <low_supports_catch_syscall>
81 <low_get_syscall_trapinfo>: Declare.
82 * linux-low.cc (get_syscall_trapinfo): Turn into...
83 (linux_process_target::get_syscall_trapinfo): ...this.
84 (linux_process_target::low_get_syscall_trapinfo): Define.
85 (gdb_catch_this_syscall_p): Turn into...
86 (linux_process_target::gdb_catch_this_syscall): ...this.
87 (linux_process_target::low_supports_catch_syscall): Define.
89 Update the callers below.
91 (linux_process_target::wait_1)
92 (linux_process_target::supports_catch_syscall)
94 * linux-x86-low.cc (class x86_target) <low_supports_catch_syscall>
95 <low_get_syscall_trapinfo>: Declare.
96 (x86_target::low_supports_catch_syscall): Define.
97 (x86_get_syscall_trapinfo): Turn into...
98 (x86_target::low_get_syscall_trapinfo): ...this.
99 (the_low_target): Remove the op field.
100 * linux-aarch64-low.cc (class aarch64_target)
101 <low_supports_catch_syscall>
102 <low_get_syscall_trapinfo>: Declare.
103 (aarch64_target::low_supports_catch_syscall): Define.
104 (aarch64_get_syscall_trapinfo): Turn into...
105 (aarch64_target::low_get_syscall_trapinfo): ...this.
106 (the_low_target): Remove the op field.
107 * linux-arm-low.cc (class arm_target) <low_supports_catch_syscall>
108 <low_get_syscall_trapinfo>: Declare.
109 (arm_target::low_supports_catch_syscall): Define.
110 (arm_get_syscall_trapinfo): Turn into...
111 (arm_target::low_get_syscall_trapinfo): ...this.
112 (the_low_target): Remove the op field.
113 * linux-ppc-low.cc (the_low_target): Remove the op field.
114 * linux-s390-low.cc (the_low_target): Remove the op field.
116 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
118 Remove the 'supports_hardware_single_step' linux target op and
119 override the process_stratum_target's op definition in
120 linux_process_target to return true.
122 * linux-low.h (struct linux_target_ops): Remove the op.
123 (class linux_process_target) <finish_step_over>
124 <maybe_hw_step>: Declare.
125 * linux-low.cc (can_hardware_single_step): Remove.
126 (maybe_hw_step): Turn into...
127 (linux_process_target::maybe_hw_step): ...this.
128 (finish_step_over): Turn into...
129 (linux_process_target::finish_step_over): ...this.
130 (linux_process_target::supports_hardware_single_step): Update
133 Update the callers below.
135 (linux_process_target::single_step)
136 (linux_process_target::resume_one_lwp_throw)
138 * linux-arm-low.cc (class arm_target)
139 <supports_hardware_single_step>: Declare.
140 (arm_supports_hardware_single_step): Turn into...
141 (arm_target::supports_hardware_single_step): ...this.
142 (the_low_target): Remove the op field.
143 * linux-x86-low.cc (x86_supports_hardware_single_step): Remove.
144 (the_low_target): Remove the op field.
145 * linux-aarch64-low.cc (aarch64_supports_hardware_single_step):
147 (the_low_target): Remove the op field.
148 * linux-bfin-low.cc (bfin_supports_hardware_single_step): Remove.
149 (the_low_target): Remove the op field.
150 * linux-crisv32-low.cc (cris_supports_hardware_single_step): Remove.
151 (the_low_target): Remove the op field.
152 * linux-m32r-low.cc (m32r_supports_hardware_single_step): Remove.
153 (the_low_target): Remove the op field.
154 * linux-m68k-low.cc (m68k_supports_hardware_single_step): Remove.
155 (the_low_target): Remove the op field.
156 * linux-ppc-low.cc (ppc_supports_hardware_single_step): Remove.
157 (the_low_target): Remove the op field.
158 * linux-s390-low.cc (s390_supports_hardware_single_step): Remove.
159 (the_low_target): Remove the op field.
160 * linux-sh-low.cc (sh_supports_hardware_single_step): Remove.
161 (the_low_target): Remove the op field.
162 * linux-tic6x-low.cc (tic6x_supports_hardware_single_step): Remove.
163 (the_low_target): Remove the op field.
164 * linux-tile-low.cc (tile_supports_hardware_single_step): Remove.
165 (the_low_target): Remove the op field.
166 * linux-xtensa-low.cc (xtensa_supports_hardware_single_step):
168 (the_low_target): Remove the op field.
170 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
172 Turn the 'supports_range_stepping' linux target op into a method
173 of linux_process_target.
175 * linux-low.h (struct linux_target_ops): Remove the op.
176 (class linux_process_target) <low_supports_range_stepping>: Declare.
177 * linux-low.cc (linux_process_target::low_supports_range_stepping):
179 (linux_process_target::supports_range_stepping): Update the call
181 * linux-x86-low.cc (class x86_target)
182 <low_supports_range_stepping>: Declare.
183 (x86_supports_range_stepping): Turn into...
184 (x86_target::low_supports_range_stepping): ...this.
185 (the_low_target): Remove the op field.
186 * linux-aarch64-low.cc (class aarch64_target)
187 <low_supports_range_stepping>: Declare.
188 (aarch64_supports_range_stepping): Turn into...
189 (aarch64_target::low_supports_range_stepping): ...this.
190 (the_low_target): Remove the op field.
191 * linux-arm-low.cc (the_low_target): Remove the op field.
192 * linux-bfin-low.cc (the_low_target): Ditto.
193 * linux-crisv32-low.cc (the_low_target): Ditto.
194 * linux-m32r-low.cc (the_low_target): Ditto.
195 * linux-m68k-low.cc (the_low_target): Ditto.
196 * linux-ppc-low.cc (the_low_target): Ditto.
197 * linux-s390-low.cc (the_low_target): Ditto.
198 * linux-sh-low.cc (the_low_target): Ditto.
199 * linux-tic6x-low.cc (the_low_target): Ditto.
200 * linux-tile-low.cc (the_low_target): Ditto.
201 * linux-xtensa-low.cc (the_low_target): Ditto.
203 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
205 Remove the 'emit_ops' linux target ops and let the concrete
206 linux target define the op by overriding the declaration of
207 process_stratum_target.
209 * linux-low.h (struct linux_target_ops): Remove the op.
210 (class linux_process_target) <emit_ops>: Remove.
211 * linux-low.cc (linux_process_target::emit_ops): Remove.
212 * linux-x86-low.cc (class x86_target) <emit_ops>: Declare.
213 (x86_emit_ops): Turn into...
214 (x86_target::emit_ops): ...this.
215 (the_low_target): Remove the op field.
216 * linux-aarch64-low.cc (class aarch64_target) <emit_ops>: Declare.
217 (aarch64_emit_ops): Turn into...
218 (aarch64_target::emit_ops): ...this.
219 (the_low_target): Remove the op field.
220 * linux-ppc-low.cc (class ppc_target) <emit_ops>: Declare.
221 (ppc_emit_ops): Turn into...
222 (ppc_target::emit_ops): ...this.
223 (the_low_target): Remove the op field.
224 * linux-s390-low.cc (class s390_target) <emit_ops>: Declare.
225 (s390_emit_ops): Turn into...
226 (s390_target::emit_ops): ...this.
227 (the_low_target): Remove the op field.
228 * linux-arm-low.cc (the_low_target): Remove the op field.
229 * linux-bfin-low.cc (the_low_target): Ditto.
230 * linux-crisv32-low.cc (the_low_target): Ditto.
231 * linux-m32r-low.cc (the_low_target): Ditto.
232 * linux-m68k-low.cc (the_low_target): Ditto.
233 * linux-sh-low.cc (the_low_target): Ditto.
234 * linux-tic6x-low.cc (the_low_target): Ditto.
235 * linux-tile-low.cc (the_low_target): Ditto.
236 * linux-xtensa-low.cc (the_low_target): Ditto.
238 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
240 Remove the 'install_fast_tracepoint_jump_pad' and
241 'get_min_fast_tracepoint_insn_len' linux target ops to let the
242 concrete linux target define the ops by overriding the declarations
243 of process_stratum_target.
245 * linux-low.h (struct linux_target_ops): Remove the ops.
246 (class linux_process_target) <supports_fast_tracepoints>
247 <install_fast_tracepoint_jump_pad>
248 <get_min_fast_tracepoint_insn_len>: Remove.
249 * linux-low.cc (linux_process_target::supports_fast_tracepoints)
250 (linux_process_target::install_fast_tracepoint_jump_pad)
251 (linux_process_target::get_min_fast_tracepoint_insn_len): Remove.
252 * linux-x86-low.cc (class x86_target) <supports_fast_tracepoints>
253 <install_fast_tracepoint_jump_pad>
254 <get_min_fast_tracepoint_insn_len>: Declare.
255 (x86_target::supports_fast_tracepoints): Define.
256 (x86_install_fast_tracepoint_jump_pad): Turn into...
257 (x86_target::install_fast_tracepoint_jump_pad): ...this.
258 (x86_get_min_fast_tracepoint_insn_len): Turn into...
259 (x86_target::get_min_fast_tracepoint_insn_len): ...this.
260 (the_low_target): Remove the op fields.
261 * linux-aarch64-low.cc (class aarch64_target)
262 <supports_fast_tracepoints>
263 <install_fast_tracepoint_jump_pad>
264 <get_min_fast_tracepoint_insn_len>: Declare.
265 (aarch64_target::supports_fast_tracepoints): Define.
266 (aarch64_install_fast_tracepoint_jump_pad): Turn into...
267 (aarch64_target::install_fast_tracepoint_jump_pad): ...this.
268 (aarch64_get_min_fast_tracepoint_insn_len): Turn into...
269 (aarch64_target::get_min_fast_tracepoint_insn_len): ...this.
270 (the_low_target): Remove the op fields.
271 * linux-ppc-low.cc (class ppc_target) <supports_fast_tracepoints>
272 <install_fast_tracepoint_jump_pad>
273 <get_min_fast_tracepoint_insn_len>: Declare.
274 (ppc_target::supports_fast_tracepoints): Define.
275 (ppc_install_fast_tracepoint_jump_pad): Turn into...
276 (ppc_target::install_fast_tracepoint_jump_pad): ...this.
277 (ppc_get_min_fast_tracepoint_insn_len): Turn into...
278 (ppc_target::get_min_fast_tracepoint_insn_len): ...this.
279 (the_low_target): Remove the op fields.
280 * linux-s390-low.cc (class s390_target) <supports_fast_tracepoints>
281 <install_fast_tracepoint_jump_pad>
282 <get_min_fast_tracepoint_insn_len>: Declare.
283 (s390_target::supports_fast_tracepoints): Define.
284 (s390_install_fast_tracepoint_jump_pad): Turn into...
285 (s390_target::install_fast_tracepoint_jump_pad): ...this.
286 (s390_get_min_fast_tracepoint_insn_len): Turn into...
287 (s390_target::get_min_fast_tracepoint_insn_len): ...this.
288 (the_low_target): Remove the op fields.
289 * linux-arm-low.cc (the_low_target): Remove the op fields.
290 * linux-bfin-low.cc (the_low_target): Ditto.
291 * linux-crisv32-low.cc (the_low_target): Ditto.
292 * linux-m32r-low.cc (the_low_target): Ditto.
293 * linux-m68k-low.cc (the_low_target): Ditto.
294 * linux-sh-low.cc (the_low_target): Ditto.
295 * linux-tic6x-low.cc (the_low_target): Ditto.
296 * linux-tile-low.cc (the_low_target): Ditto.
297 * linux-xtensa-low.cc (the_low_target): Ditto.
299 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
301 Turn the 'get_thread_area' linux target op into a method of
302 process_stratum_target.
304 * linux-low.h (struct linux_target_ops): Remove the op.
305 (class linux_process_target) <stuck_in_jump_pad>
306 <linux_fast_tracepoint_collecting>
307 <low_get_thread_area>: Declare.
308 * linux-low.cc (supports_fast_tracepoints): Remove.
309 (linux_fast_tracepoint_collecting): Turn into...
310 (linux_process_target::linux_fast_tracepoint_collecting): ...this.
311 (linux_process_target::low_get_thread_area): Define.
312 (stuck_in_jump_pad_callback): Turn into...
313 (linux_process_target::stuck_in_jump_pad): ...this.
315 Update the caller below.
317 (linux_process_target::stabilize_threads)
319 * linux-x86-low.cc (class x86_target) <low_get_thread_area>:
321 (x86_get_thread_area): Turn into...
322 (x86_target::low_get_thread_area): ...this.
323 (the_low_target): Remove the op field.
324 * linux-aarch64-low.cc (class aarch64_target) <low_get_thread_area>:
326 (aarch64_get_thread_area): Turn into...
327 (aarch64_target::low_get_thread_area): ...this.
328 (the_low_target): Remove the op field.
329 * linux-ppc-low.cc (class ppc_target) <low_get_thread_area>:
331 (ppc_get_thread_area): Turn into...
332 (ppc_target::low_get_thread_area): ...this.
333 (the_low_target): Remove the op field.
334 * linux-s390-low.cc (class s390_target) <low_get_thread_area>:
336 (s390_get_thread_area): Turn into...
337 (s390_target::low_get_thread_area): ...this.
338 (the_low_target): Remove the op field.
339 * linux-arm-low.cc (the_low_target): Remove the op field.
340 * linux-bfin-low.cc (the_low_target): Ditto.
341 * linux-crisv32-low.cc (the_low_target): Ditto.
342 * linux-m32r-low.cc (the_low_target): Ditto.
343 * linux-m68k-low.cc (the_low_target): Ditto.
344 * linux-sh-low.cc (the_low_target): Ditto.
345 * linux-tic6x-low.cc (the_low_target): Ditto.
346 * linux-tile-low.cc (the_low_target): Ditto.
347 * linux-xtensa-low.cc (the_low_target): Ditto.
349 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
351 Remote the 'supports_tracepoints' linux target op and let the
352 concrete linux target define it by overriding the op declared in
353 process_stratum_target.
355 * linux-low.h (struct linux_target_ops): Remove the op.
356 (class linux_process_target) <supports_tracepoints>: Remove.
357 * linux-low.cc (linux_process_target::supports_tracepoints): Remove.
358 * linux-x86-low.cc (class x86_target) <supports_tracepoints>:
360 (x86_supports_tracepoints): Turn into...
361 (x86_target::supports_tracepoints): ...this.
362 (the_low_target): Remove the op field.
363 * linux-aarch64-low.cc (class aarch64_target)
364 <supports_tracepoints>: Declare.
365 (aarch64_supports_tracepoints): Turn into...
366 (aarch64_target::supports_tracepoints): ...this.
367 (the_low_target): Remove the op field.
368 * linux-ppc-low.cc (class ppc_target) <supports_tracepoints>:
370 (ppc_supports_tracepoints): Turn into...
371 (ppc_target::supports_tracepoints): ...this.
372 (the_low_target): Remove the op field.
373 * linux-s390-low.cc (class s390_target) <supports_tracepoints>:
375 (s390_supports_tracepoints): Turn into...
376 (s390_target::supports_tracepoints): ...this.
377 (the_low_target): Remove the op field.
378 * linux-arm-low.cc (the_low_target): Remove the op field.
379 * linux-bfin-low.cc (the_low_target): Ditto.
380 * linux-crisv32-low.cc (the_low_target): Ditto.
381 * linux-m32r-low.cc (the_low_target): Ditto.
382 * linux-m68k-low.cc (the_low_target): Ditto.
383 * linux-sh-low.cc (the_low_target): Ditto.
384 * linux-tic6x-low.cc (the_low_target): Ditto.
385 * linux-tile-low.cc (the_low_target): Ditto.
386 * linux-xtensa-low.cc (the_low_target): Ditto.
388 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
390 Remove the 'process_qsupported' linux target op and let a concrete
391 linux target define the op by overriding the op declaration in
392 process_stratum_target.
394 * linux-low.h (struct linux_target_ops): Remove the op.
395 (class linux_process_target) <process_qsupported>: Remove.
396 * linux-low.cc (linux_process_target::process_qsupported): Remove.
397 * linux-x86-low.cc (class x86_target) <process_qsupported>: Declare.
398 (x86_linux_process_qsupported): Turn into...
399 (x86_target::process_qsupported): ...this.
400 (the_low_target): Remove the op field.
401 * linux-aarch64-low.cc (the_low_target): Remove the op
403 * linux-arm-low.cc (the_low_target): Ditto.
404 * linux-bfin-low.cc (the_low_target): Ditto.
405 * linux-crisv32-low.cc (the_low_target): Ditto.
406 * linux-m32r-low.cc (the_low_target): Ditto.
407 * linux-m68k-low.cc (the_low_target): Ditto.
408 * linux-ppc-low.cc (the_low_target): Ditto.
409 * linux-s390-low.cc (the_low_target): Ditto.
410 * linux-sh-low.cc (the_low_target): Ditto.
411 * linux-tic6x-low.cc (the_low_target): Ditto.
412 * linux-tile-low.cc (the_low_target): Ditto.
413 * linux-xtensa-low.cc (the_low_target): Ditto.
415 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
417 Turn the 'prepare_to_resume' linux target op into a method of
418 linux_process_target.
420 * linux-low.h (struct linux_target_ops): Remove the op.
421 (class linux_process_target) <low_prepare_to_resume>: Declare.
422 * linux-low.cc (linux_process_target::low_prepare_to_resume):
425 Update the callers below:
427 (linux_process_target::resume_one_lwp_throw)
428 (linux_process_target::low_prepare_to_resume)
430 * linux-x86-low.cc (class x86_target) <low_prepare_to_resume>:
432 (x86_target::low_prepare_to_resume): Define.
433 (the_low_target): Remove the op field.
434 * linux-aarch64-low.cc (class aarch64_target)
435 <low_prepare_to_resume>: Declare.
436 (aarch64_target::low_prepare_to_resume): Define.
437 (the_low_target): Remove the op field.
438 * linux-arm-low.cc (class arm_target) <low_prepare_to_resume>:
440 (arm_prepare_to_resume): Turn into...
441 (arm_target::low_prepare_to_resume): ...this.
442 (the_low_target): Remove the op field.
443 * linux-mips-low.cc (class mips_target) <low_prepare_to_resume>:
445 (mips_linux_prepare_to_resume): Turn into...
446 (mips_target::low_prepare_to_resume): ...this.
447 (the_low_target): Remove the op field.
448 * linux-bfin-low.cc (the_low_target): Remove the op field.
449 * linux-crisv32-low.cc (the_low_target): Ditto.
450 * linux-m32r-low.cc (the_low_target): Ditto.
451 * linux-m68k-low.cc (the_low_target): Ditto.
452 * linux-ppc-low.cc (the_low_target): Ditto.
453 * linux-s390-low.cc (the_low_target): Ditto.
454 * linux-sh-low.cc (the_low_target): Ditto.
455 * linux-tic6x-low.cc (the_low_target): Ditto.
456 * linux-tile-low.cc (the_low_target): Ditto.
457 * linux-xtensa-low.cc (the_low_target): Ditto.
459 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
461 Turn the 'new_process', 'delete_process', 'new_thread',
462 'delete_thread', and 'new_fork' linux target ops into methods
463 of linux_process_target.
465 * linux-low.h (struct linux_target_ops): Remove the ops.
466 (class linux_process_target) <add_linux_process>
471 <check_zombie_leaders>
477 <low_new_fork>: Declare.
478 * linux-low.cc (delete_lwp): Turn into...
479 (linux_process_target::delete_lwp): ...this.
480 (linux_process_target::low_delete_thread): Define.
481 (linux_add_process): Turn into...
482 (linux_process_target::add_linux_process): ...this.
483 (linux_process_target::low_new_process): Define.
484 (linux_process_target::low_delete_process): Define.
485 (linux_process_target::low_new_fork): Define.
486 (add_lwp): Turn into...
487 (linux_process_target::add_lwp): ...this.
488 (linux_process_target::low_new_thread): Define.
489 (linux_attach_lwp): Turn into...
490 (linux_process_target::attach_lwp): ...this.
491 (linux_detach_one_lwp): Turn into...
492 (linux_process_target::detach_one_lwp): ...this.
493 (linux_detach_lwp_callback): Remove and inline...
494 (linux_process_target::detach): ...here.
495 (check_zombie_leaders): Turn into...
496 (linux_process_target::check_zombie_leaders): ...this.
497 (filter_exit_event): Turn into...
498 (linux_process_target::filter_exit_event): ...this.
500 Update the callers below.
502 (linux_process_target::handle_extended_wait)
503 (linux_process_target::create_inferior)
504 (attach_proc_task_lwp_callback)
505 (linux_process_target::attach)
506 (linux_process_target::detach)
507 (linux_process_target::mourn)
508 * thread-db.cc (attach_thread)
510 * linux-x86-low.cc (class x86_target) <low_new_process>
514 <low_new_fork>: Declare.
515 (x86_linux_new_process): Turn into...
516 (x86_target::low_new_process): ...this.
517 (x86_linux_delete_process): Turn into...
518 (x86_target::low_delete_process): ...this.
519 (x86_target::low_new_thread): Define.
520 (x86_target::low_delete_thread): Define.
521 (x86_linux_new_fork): Turn into...
522 (x86_target::low_new_fork): ...this.
523 (the_low_target): Remove the op fields.
524 * linux-aarch64-low.cc (class aarch64_target) <low_new_process>
528 <low_new_fork>: Declare.
529 (aarch64_linux_new_process): Turn into...
530 (aarch64_target::low_new_process): ...this.
531 (aarch64_linux_delete_process): Turn into...
532 (aarch64_target::low_delete_process): ...this.
533 (aarch64_target::low_new_thread): Define.
534 (aarch64_target::low_delete_thread): Define.
535 (aarch64_linux_new_fork): Turn into...
536 (aarch64_target::low_new_fork): ...this.
537 (the_low_target): Remove the op fields.
538 * linux-arm-low.cc (class arm_target) <low_new_process>
542 <low_new_fork>: Declare.
543 (arm_new_process): Turn into...
544 (arm_target::low_new_process): ...this.
545 (arm_delete_process): Turn into...
546 (arm_target::low_delete_process): ...this.
547 (arm_new_thread): Turn into...
548 (arm_target::low_new_thread): ...this.
549 (arm_delete_thread): Turn into...
550 (arm_target::low_delete_thread): ...this.
551 (arm_new_fork): Turn into...
552 (arm_target::low_new_fork): ...this.
553 (the_low_target): Remove the op fields.
554 * linux-mips-low.cc (class mips_target) <low_new_process>
558 <low_new_fork>: Declare.
559 (mips_linux_new_process): Turn into...
560 (mips_target::low_new_process): ...this.
561 (mips_linux_delete_process): Turn into...
562 (mips_target::low_delete_process): ...this.
563 (mips_linux_new_thread): Turn into...
564 (mips_target::low_new_thread): ...this.
565 (mips_linux_delete_thread): Turn into...
566 (mips_target::low_delete_thread): ...this.
567 (mips_linux_new_fork): Turn into...
568 (mips_target::low_new_fork): ...this.
569 (the_low_target): Remove the op fields.
570 * linux-bfin-low.cc (the_low_target): Remove the op fields.
571 * linux-crisv32-low.cc (the_low_target): Ditto.
572 * linux-m32r-low.cc (the_low_target): Ditto.
573 * linux-m68k-low.cc (the_low_target): Ditto.
574 * linux-ppc-low.cc (the_low_target): Ditto.
575 * linux-s390-low.cc (the_low_target): Ditto.
576 * linux-sh-low.cc (the_low_target): Ditto.
577 * linux-tic6x-low.cc (the_low_target): Ditto.
578 * linux-tile-low.cc (the_low_target): Ditto.
579 * linux-xtensa-low.cc (the_low_target): Ditto.
581 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
583 Turn the 'siginfo_fixup' linux target op into a method of
584 linux_process_target.
586 * linux-low.h (struct linux_target_ops): Remove the op.
587 (class linux_process_target) <siginfo_fixup>
588 <low_siginfo_fixup>: Declare.
589 * linux-low.cc (siginfo_fixup): Turn into...
590 (linux_process_target::siginfo_fixup): ...this.
591 (linux_process_target::low_siginfo_fixup): Define.
592 * linux-x86-low.cc (class x86_target) <low_siginfo_fixup>: Declare.
593 (x86_siginfo_fixup): Turn into...
594 (x86_target::low_siginfo_fixup): ...this.
595 (the_low_target): Remove the op field.
596 * linux-aarch64-low.cc (class aarch64_target):
597 <low_siginfo_fixup>: Declare.
598 (aarch64_linux_siginfo_fixup): Turn into...
599 (aarch64_target::low_siginfo_fixup): ...this.
600 (the_low_target): Remove the op field.
601 * linux-arm-low.cc (the_low_target): Remove the op field.
602 * linux-bfin-low.cc (the_low_target): Ditto.
603 * linux-crisv32-low.cc (the_low_target): Ditto.
604 * linux-m32r-low.cc (the_low_target): Ditto.
605 * linux-m68k-low.cc (the_low_target): Ditto.
606 * linux-mips-low.cc (the_low_target): Ditto.
607 * linux-ppc-low.cc (the_low_target): Ditto.
608 * linux-s390-low.cc (the_low_target): Ditto.
609 * linux-sh-low.cc (the_low_target): Ditto.
610 * linux-tic6x-low.cc (the_low_target): Ditto.
611 * linux-tile-low.cc (the_low_target): Ditto.
612 * linux-xtensa-low.cc (the_low_target): Ditto.
614 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
616 Turn the 'collect_ptrace_register' and 'supply_ptrace_register'
617 linux target ops into methods of linux_process_target.
619 * linux-low.h (struct linux_target_ops): Remove the ops.
620 (class linux_process_target) <low_collect_ptrace_register>
621 <low_store_ptrace_register>: Declare.
622 * linux-low.cc (linux_process_target::low_collect_ptrace_register)
623 (linux_process_target::low_supply_ptrace_register): Define.
625 Update the callers below.
627 (linux_process_target::fetch_register)
628 (linux_process_target::store_register)
630 * linux-x86-low.cc (the_low_target): Remove the op fields.
631 * linux-aarch64-low.cc (the_low_target): Ditto.
632 * linux-arm-low.cc (the_low_target): Ditto.
633 * linux-bfin-low.cc (the_low_target): Ditto.
634 * linux-crisv32-low.cc (the_low_target): Ditto.
635 * linux-m32r-low.cc (the_low_target): Ditto.
636 * linux-m68k-low.cc (the_low_target): Ditto.
637 * linux-sh-low.cc (the_low_target): Ditto.
638 * linux-sparc-low.cc (the_low_target): Ditto.
639 * linux-tic6x-low.cc (the_low_target): Ditto.
640 * linux-tile-low.cc (the_low_target): Ditto.
641 * linux-xtensa-low.cc (the_low_target): Ditto.
642 * linux-mips-low.cc (class mips_target)
643 <low_collect_ptrace_register>
644 <low_supply_ptrace_register>: Declare.
645 (mips_collect_ptrace_register): Turn into ...
646 (mips_target::low_collect_ptrace_register): ...this.
647 (mips_supply_ptrace_register): Turn into...
648 (mips_target::low_supply_ptrace_register): ...this.
649 (the_low_target): Remove the op fields.
650 * linux-ppc-low.cc (class ppc_target)
651 <low_collect_ptrace_register>
652 <low_supply_ptrace_register>: Declare.
653 (ppc_collect_ptrace_register): Turn into ...
654 (ppc_target::low_collect_ptrace_register): ...this.
655 (ppc_supply_ptrace_register): Turn into ...
656 (ppc_target::low_supply_ptrace_register): ...this.
657 (ppc_fill_gregset): Update for the calls to
658 low_collect_ptrace_register.
659 (the_low_target): Remove the op fields.
660 * linux-s390-low.cc (class s390_target)
661 <low_collect_ptrace_register>
662 <low_supply_ptrace_register>: Declare.
663 (s390_collect_ptrace_register): Turn into ...
664 (s390_target::low_collect_ptrace_register): ...this.
665 (s390_supply_ptrace_register): Turn into ...
666 (s390_target::low_supply_ptrace_register): ...this.
667 (s390_fill_gregset): Update for the calls to
668 low_collect_ptrace_register.
669 (the_low_target): Remove the op fields.
671 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
673 Turn the 'stopped_by_watchpoint' and 'stopped_data_address' linux
674 target ops into methods of linux_process_target.
676 * linux-low.h (struct linux_target_ops): Remove the ops.
677 (class linux_process_target) <check_stopped_by_watchpoint>
678 <low_stopped_by_watchpoint>
679 <low_stopped_data_address>: Declare.
680 * linux-low.cc (check_stopped_by_watchpoint): Turn into...
681 (linux_process_target::check_stopped_by_watchpoint): ...this.
682 (linux_process_target::low_stopped_by_watchpoint): Define.
683 (linux_process_target::low_stopped_data_address): Define.
684 * linux-x86-low.cc (class x86_target) <low_stopped_by_watchpoint>
685 <low_stopped_data_address>: Declare.
686 (x86_stopped_by_watchpoint): Turn into...
687 (x86_target::low_stopped_by_watchpoint): ...this.
688 (x86_stopped_data_address): Turn into...
689 (x86_target::low_stopped_data_address): ...this.
690 (the_low_target): Remove the op fields.
691 * linux-aarch64-low.cc (class aarch64_target)
692 <low_stopped_by_watchpoint>
693 <low_stopped_data_address>: Declare.
694 (aarch64_stopped_by_watchpoint): Turn into...
695 (aarch64_target::low_stopped_by_watchpoint): ...this.
696 (aarch64_stopped_data_address): Turn into...
697 (aarch64_target::low_stopped_data_address): ...this.
698 (the_low_target): Remove the op fields.
699 * linux-arm-low.cc (class arm_target) <low_stopped_by_watchpoint>
700 <low_stopped_data_address>: Declare.
701 (arm_stopped_by_watchpoint): Turn into...
702 (arm_target::low_stopped_by_watchpoint): ...this.
703 (arm_stopped_data_address): Turn into...
704 (arm_target::low_stopped_data_address): ...this.
705 (the_low_target): Remove the op fields.
706 * linux-crisv32-low.cc (class crisv32_target)
707 <low_stopped_by_watchpoint>
708 <low_stopped_data_address>: Declare.
709 (cris_stopped_by_watchpoint): Turn into...
710 (crisv32_target::low_stopped_by_watchpoint): ...this.
711 (cris_stopped_data_address): Turn into...
712 (crisv32_target::low_stopped_data_address): ...this.
713 (the_low_target): Remove the op fields.
714 * linux-mips-low.cc (class mips_target) <low_stopped_by_watchpoint>
715 <low_stopped_data_address>: Declare.
716 (mips_stopped_by_watchpoint): Turn into...
717 (mips_target::low_stopped_by_watchpoint): ...this.
718 (mips_stopped_data_address): Turn into...
719 (mips_target::low_stopped_data_address): ...this.
720 (the_low_target): Remove the op fields.
721 * linux-bfin-low.cc (the_low_target): Remove the op fields.
722 * linux-m32r-low.cc (the_low_target): Ditto.
723 * linux-m68k-low.cc (the_low_target): Ditto.
724 * linux-ppc-low.cc (the_low_target): Ditto.
725 * linux-s390-low.cc (the_low_target): Ditto.
726 * linux-sh-low.cc (the_low_target): Ditto.
727 * linux-sparc-low.cc (the_low_target): Ditto.
728 * linux-tic6x-low.cc (the_low_target): Ditto.
729 * linux-tile-low.cc (the_low_target): Ditto.
730 * linux-xtensa-low.cc (the_low_target): Ditto.
732 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
734 Turn the 'insert_point' and 'remove_point' linux target ops into
735 methods of linux_process_target.
737 * linux-low.h (struct linux_target_ops): Remove the ops.
738 (class linux_process_target) <low_insert_point>
739 <low_remove_point>: Declare.
740 * linux-low.cc (linux_process_target::low_insert_point)
741 (linux_process_target::low_remove_point): Define.
742 (linux_process_target::insert_point)
743 (linux_process_target::remove_point): Update for calls to
744 low_insert_point and low_remove_point.
745 * linux-x86-low.cc (class x86_target) <low_insert_point>
746 <low_remove_point>: Declare.
747 (x86_insert_point): Turn into...
748 (x86_target::low_insert_point): ...this.
749 (x86_remove_point): Turn into...
750 (x86_target::low_remove_point): ...this.
751 (the_low_target): Remove the op fields.
752 * linux-aarch64-low.cc (class aarch64_target) <low_insert_point>
753 <low_remove_point>: Declare.
754 (aarch64_insert_point): Turn into...
755 (aarch64_target::low_insert_point): ...this.
756 (aarch64_remove_point): Turn into...
757 (aarch64_target::low_remove_point): ...this.
758 (the_low_target): Remove the op fields.
759 * linux-arm-low.cc (class arm_target) <low_insert_point>
760 <low_remove_point>: Declare.
761 (arm_insert_point): Turn into...
762 (arm_target::low_insert_point): ...this.
763 (arm_remove_point): Turn into...
764 (arm_target::low_remove_point): ...this.
765 (the_low_target): Remove the op fields.
766 * linux-crisv32-low.cc (class crisv32_target) <low_insert_point>
767 <low_remove_point>: Declare.
768 (crisv32_insert_point): Turn into...
769 (crisv32_target::low_insert_point): ...this.
770 (crisv32_remove_point): Turn into...
771 (crisv32_target::low_remove_point): ...this.
772 (the_low_target): Remove the op fields.
773 * linux-mips-low.cc (class mips_target) <low_insert_point>
774 <low_remove_point>: Declare.
775 (mips_insert_point): Turn into...
776 (mips_target::low_insert_point): ...this.
777 (mips_remove_point): Turn into...
778 (mips_target::low_remove_point): ...this.
779 (the_low_target): Remove the op fields.
780 * linux-ppc-low.cc (class ppc_target) <low_insert_point>
781 <low_remove_point>: Declare.
782 (ppc_insert_point): Turn into...
783 (ppc_target::low_insert_point): ...this.
784 (ppc_remove_point): Turn into...
785 (ppc_target::low_remove_point): ...this.
786 (the_low_target): Remove the op fields.
787 * linux-bfin-low.cc (the_low_target): Remove the op fields.
788 * linux-m32r-low.cc (the_low_target): Ditto.
789 * linux-m68k-low.cc (the_low_target): Ditto.
790 * linux-s390-low.cc (the_low_target): Ditto.
791 * linux-sh-low.cc (the_low_target): Ditto.
792 * linux-sparc-low.cc (the_low_target): Ditto.
793 * linux-tic6x-low.cc (the_low_target): Ditto.
794 * linux-tile-low.cc (the_low_target): Ditto.
795 * linux-xtensa-low.cc (the_low_target): Ditto.
797 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
799 Remove the 'supports_z_point_type' linux target op and let the
800 concrete linux target define it by overriding the op declared in
801 process_stratum_target.
803 * linux-low.cc (linux_process_target::supports_z_point_type):
805 * linux-low.h (struct linux_target_ops): Remove the op.
806 (class linux_process_target) <supports_z_point_type>: Remove.
807 * linux-x86-low.cc (class x86_target) <supports_z_point_type>:
809 (x86_supports_z_point_type): Turn into...
810 (x86_target::supports_z_point_type): ...this.
811 (the_low_target): Remove the op field.
812 * linux-aarch64-low.cc (class aarch64_target)
813 <supports_z_point_type>: Declare.
814 (aarch64_supports_z_point_type): Turn into...
815 (aarch64_target::supports_z_point_type): ...this.
816 (the_low_target): Remove the op field.
817 * linux-arm-low.cc (class arm_target) <supports_z_point_type>:
819 (arm_supports_z_point_type): Turn into...
820 (arm_target::supports_z_point_type): ...this.
821 (the_low_target): Remove the op field.
822 * linux-crisv32-low.cc (class crisv32_target)
823 <supports_z_point_type>: Declare.
824 (cris_supports_z_point_type): Turn into...
825 (crisv32_target::supports_z_point_type): ...this.
826 (the_low_target): Remove the op field.
827 * linux-mips-low.cc (class mips_target) <supports_z_point_type>:
829 (mips_supports_z_point_type): Turn into...
830 (mips_target::supports_z_point_type): ...this.
831 (the_low_target): Remove the op field.
832 * linux-ppc-low.cc (class ppc_target) <supports_z_point_type>:
834 (ppc_supports_z_point_type): Turn into...
835 (ppc_target::supports_z_point_type): ...this.
836 (the_low_target): Remove the op field.
837 * linux-s390-low.cc (class s390_target) <supports_z_point_type>:
839 (s390_supports_z_point_type): Turn into...
840 (s390_target::supports_z_point_type): ...this.
841 (the_low_target): Remove the op field.
842 * linux-bfin-low.cc (the_low_target): Remove the op field.
843 * linux-m32r-low.cc (the_low_target): Ditto.
844 * linux-m68k-low.cc (the_low_target): Ditto.
845 * linux-sh-low.cc (the_low_target): Ditto.
846 * linux-sparc-low.cc (the_low_target): Ditto.
847 * linux-tic6x-low.cc (the_low_target): Ditto.
848 * linux-tile-low.cc (the_low_target): Ditto.
849 * linux-xtensa-low.cc (the_low_target): Ditto.
851 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
853 Turn the 'breakpoint_at' linux target op into a method of
854 linux_process_target.
856 * linux-low.h (struct linux_target_ops): Remove the op.
857 (class linux_process_target) <low_breakpoint_at>: Declare.
859 Update the callers below:
861 * linux-low.cc (linux_process_target::save_stop_reason)
862 (linux_process_target::thread_still_has_status_pending)
863 (linux_process_target::wait_1)
865 * linux-x86-low.cc (class x86_target)
866 <low_breakpoint_at>: Declare.
867 (x86_breakpoint_at): Turn into...
868 (x86_target::low_breakpoint_at): ...this.
869 (the_low_target): Remove the op field.
870 * linux-aarch64-low.cc (class aarch64_target)
871 <low_breakpoint_at>: Declare.
872 (aarch64_breakpoint_at): Turn into...
873 (aarch64_target::low_breakpoint_at): ...this.
874 (the_low_target): Remove the op field.
875 * linux-arm-low.cc (class arm_target)
876 <low_breakpoint_at>: Declare.
877 (arm_target::low_breakpoint_at): Define.
878 (the_low_target): Remove the op field.
879 * linux-bfin-low.cc (class bfin_target)
880 <low_breakpoint_at>: Declare.
881 (bfin_breakpoint_at): Turn into...
882 (bfin_target::low_breakpoint_at): ...this.
883 (the_low_target): Remove the op field.
884 * linux-cris-low.cc (class cris_target)
885 <low_breakpoint_at>: Declare.
886 (cris_breakpoint_at): Turn into...
887 (cris_target::low_breakpoint_at): ...this.
888 (the_low_target): Remove the op field.
889 * linux-crisv32-low.cc (class crisv32_target)
890 <low_breakpoint_at>: Declare.
891 (crisv32_breakpoint_at): Turn into...
892 (crisv32_target::low_breakpoint_at): ...this.
893 (the_low_target): Remove the op field.
894 * linux-ia64-low.cc (class ia64_target)
895 <low_breakpoint_at>: Declare.
896 (ia64_target::low_breakpoint_at): Define.
897 * linux-m32r-low.cc (class m32r_target)
898 <low_breakpoint_at>: Declare.
899 (m32r_breakpoint_at): Turn into...
900 (m32r_target::low_breakpoint_at): ...this.
901 (the_low_target): Remove the op field.
902 * linux-m68k-low.cc (class m68k_target)
903 <low_breakpoint_at>: Declare.
904 (m68k_breakpoint_at): Turn into...
905 (m68k_target::low_breakpoint_at): ...this.
906 (the_low_target): Remove the op field.
907 * linux-mips-low.cc (class mips_target)
908 <low_breakpoint_at>: Declare.
909 (mips_breakpoint_at): Turn into...
910 (mips_target::low_breakpoint_at): ...this.
911 (the_low_target): Remove the op field.
912 * linux-nios2-low.cc (class nios2_target)
913 <low_breakpoint_at>: Declare.
914 (nios2_breakpoint_at): Turn into...
915 (nios2_target::low_breakpoint_at): ...this.
916 (the_low_target): Remove the op field.
917 * linux-ppc-low.cc (class ppc_target)
918 <low_breakpoint_at>: Declare.
919 (ppc_breakpoint_at): Turn into...
920 (ppc_target::low_breakpoint_at): ...this.
921 (the_low_target): Remove the op field.
922 * linux-riscv-low.cc (class riscv_target)
923 <low_breakpoint_at>: Declare.
924 (riscv_breakpoint_at): Turn into...
925 (riscv_target::low_breakpoint_at): ...this.
926 (the_low_target): Remove the op field.
927 * linux-s390-low.cc (class s390_target)
928 <low_breakpoint_at>: Declare.
929 (s390_breakpoint_at): Turn into...
930 (s390_target::low_breakpoint_at): ...this.
931 (the_low_target): Remove the op field.
932 * linux-sh-low.cc (class sh_target)
933 <low_breakpoint_at>: Declare.
934 (sh_breakpoint_at): Turn into...
935 (sh_target::low_breakpoint_at): ...this.
936 (the_low_target): Remove the op field.
937 * linux-sparc-low.cc (class sparc_target)
938 <low_breakpoint_at>: Declare.
939 (sparc_breakpoint_at): Turn into...
940 (sparc_target::low_breakpoint_at): ...this.
941 (the_low_target): Remove the op field.
942 * linux-tic6x-low.cc (class tic6x_target)
943 <low_breakpoint_at>: Declare.
944 (tic6x_breakpoint_at): Turn into...
945 (tic6x_target::low_breakpoint_at): ...this.
946 (the_low_target): Remove the op field.
947 * linux-tile-low.cc (class tile_target)
948 <low_breakpoint_at>: Declare.
949 (tile_breakpoint_at): Turn into...
950 (tile_target::low_breakpoint_at): ...this.
951 (the_low_target): Remove the op field.
952 * linux-xtensa-low.cc (class xtensa_target)
953 <low_breakpoint_at>: Declare.
954 (xtensa_breakpoint_at): Turn into...
955 (xtensa_target::low_breakpoint_at): ...this.
956 (the_low_target): Remove the op field.
958 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
960 Turn the 'decr_pc_after_break' linux_target_ops field into
961 a method of linux_process_target.
963 * linux-low.h (struct linux_target_ops)
964 <decr_pc_after_break>: Remove.
965 (class linux_process_target) <low_decr_pc_after_break>: New method
967 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
968 New method implementation.
970 Update the users below.
972 (linux_process_target::save_stop_reason)
973 (linux_process_target::wait_1)
974 * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
976 (x86_target::low_decr_pc_after_break): New method implementation.
977 (the_low_target): Remove the field.
978 * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
980 (bfin_target::low_decr_pc_after_break): New method implementation.
981 (the_low_target): Remove the field.
982 * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
984 (m68k_target::low_decr_pc_after_break): New method implementation.
985 (the_low_target): Remove the field.
986 * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
988 (s390_target::low_decr_pc_after_break): New method implementation.
989 (the_low_target): Remove the field.
990 * linux-aarch64-low.cc (the_low_target): Remove the field.
991 * linux-arm-low.cc (the_low_target): Remove the field.
992 * linux-cris-low.cc (the_low_target): Remove the field.
993 * linux-crisv32-low.cc (the_low_target): Remove the field.
994 * linux-m32r-low.cc (the_low_target): Remove the field.
995 * linux-mips-low.cc (the_low_target): Remove the field.
996 * linux-nios2-low.cc (the_low_target): Remove the field.
997 * linux-ppc-low.cc (the_low_target): Remove the field.
998 * linux-riscv-low.cc (the_low_target): Remove the field.
999 * linux-sh-low.cc (the_low_target): Remove the field.
1000 * linux-sparc-low.cc (the_low_target): Remove the field.
1001 * linux-tic6x-low.cc (the_low_target): Remove the field.
1002 * linux-tile-low.cc (the_low_target): Remove the field.
1003 * linux-xtensa-low.cc (the_low_target): Remove the field.
1005 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1007 Remove the 'supports_software_single_step' linux target op and let
1008 the concrete linux target define it by overriding the op in
1009 process_stratum_target.
1010 Turn the 'get_next_pcs' linux target op into a method of
1011 linux_process_target.
1013 * linux-low.h (struct linux_target_ops): Remove the ops.
1014 (class linux_process_target) <supports_software_single_step>:
1016 <low_get_next_pcs>: Declare.
1017 * linux-low.cc (can_software_single_step): Remove.
1018 (linux_process_target::low_get_next_pcs): Define.
1019 (linux_process_target::supports_software_single_step): Remove.
1021 Update the callers below.
1023 (linux_process_target::handle_extended_wait)
1024 (linux_process_target::wait_1)
1025 (linux_process_target::install_software_single_step_breakpoints)
1026 (linux_process_target::single_step)
1027 (linux_process_target::thread_needs_step_over)
1028 (linux_process_target::proceed_one_lwp)
1029 (linux_process_target::supports_range_stepping)
1031 * linux-x86-low.cc (the_low_target): Remove the op field.
1032 * linux-aarch64-low.cc (the_low_target): Ditto.
1033 * linux-bfin-low.cc (the_low_target): Ditto.
1034 * linux-cris-low.cc (the_low_target): Ditto.
1035 * linux-crisv32-low.cc (the_low_target): Ditto.
1036 * linux-m32r-low.cc (the_low_target): Ditto.
1037 * linux-m68k-low.cc (the_low_target): Ditto.
1038 * linux-mips-low.cc (the_low_target): Ditto.
1039 * linux-nios2-low.cc (the_low_target): Ditto.
1040 * linux-ppc-low.cc (the_low_target): Ditto.
1041 * linux-riscv-low.cc (the_low_target): Ditto.
1042 * linux-s390-low.cc (the_low_target): Ditto.
1043 * linux-sh-low.cc (the_low_target): Ditto.
1044 * linux-sparc-low.cc (the_low_target): Ditto.
1045 * linux-tic6x-low.cc (the_low_target): Ditto.
1046 * linux-tile-low.cc (the_low_target): Ditto.
1047 * linux-xtensa-low.cc (the_low_target): Ditto.
1048 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
1049 <supports_software_single_step>: Declare.
1050 (arm_target::supports_software_single_step): Define.
1051 (arm_gdbserver_get_next_pcs): Turn into...
1052 (arm_target::low_get_next_pcs): ...this.
1053 (the_low_target): Remove the op field.
1055 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1057 Remove the 'sw_breakpoint_from_kind' linux target op, and let
1058 the concrete linux target define it by overriding the op
1059 in process_stratum_target.
1061 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
1063 * linux-low.h (struct linux_target_ops): Remove the op.
1064 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
1065 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
1067 (x86_sw_breakpoint_from_kind): Turn into...
1068 (x86_target::sw_breakpoint_from_kind): ...this.
1069 (the_low_target): Remove the op field.
1070 * linux-aarch64-low.cc (class aarch64_target)
1071 <sw_breakpoint_from_kind>: Declare.
1072 (aarch64_sw_breakpoint_from_kind): Turn into...
1073 (aarch64_target::sw_breakpoint_from_kind): ...this.
1074 (the_low_target): Remove the op field.
1075 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
1077 (arm_target::sw_breakpoint_from_kind): Define.
1078 (the_low_target): Remove the op field.
1079 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
1081 (bfin_sw_breakpoint_from_kind): Turn into...
1082 (bfin_target::sw_breakpoint_from_kind): ...this.
1083 (the_low_target): Remove the op field.
1084 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
1086 (cris_sw_breakpoint_from_kind): Turn into...
1087 (cris_target::sw_breakpoint_from_kind): ...this.
1088 (the_low_target): Remove the op field.
1089 * linux-crisv32-low.cc (class crisv32_target)
1090 <sw_breakpoint_from_kind>: Declare.
1091 (cris_sw_breakpoint_from_kind): Turn into...
1092 (crisv32_target::sw_breakpoint_from_kind): ...this.
1093 (the_low_target): Remove the op field.
1094 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
1096 (ia64_target::sw_breakpoint_from_kind): Define.
1097 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
1099 (m32r_sw_breakpoint_from_kind): Turn into...
1100 (m32r_target::sw_breakpoint_from_kind): ...this.
1101 (the_low_target): Remove the op field.
1102 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
1104 (m68k_sw_breakpoint_from_kind): Turn into...
1105 (m68k_target::sw_breakpoint_from_kind): ...this.
1106 (the_low_target): Remove the op field.
1107 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
1109 (mips_sw_breakpoint_from_kind): Turn into...
1110 (mips_target::sw_breakpoint_from_kind): ...this.
1111 (the_low_target): Remove the op field.
1112 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
1114 (nios2_sw_breakpoint_from_kind): Turn into...
1115 (nios2_target::sw_breakpoint_from_kind): ...this.
1116 (the_low_target): Remove the op field.
1117 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
1119 (ppc_sw_breakpoint_from_kind): Turn into...
1120 (ppc_target::sw_breakpoint_from_kind): ...this.
1121 (the_low_target): Remove the op field.
1122 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
1124 (riscv_sw_breakpoint_from_kind): Turn into...
1125 (riscv_target::sw_breakpoint_from_kind): ...this.
1126 (the_low_target): Remove the op field.
1127 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
1129 (s390_sw_breakpoint_from_kind): Turn into...
1130 (s390_target::sw_breakpoint_from_kind): ...this.
1131 (the_low_target): Remove the op field.
1132 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
1134 (sh_sw_breakpoint_from_kind): Turn into...
1135 (sh_target::sw_breakpoint_from_kind): ...this.
1136 (the_low_target): Remove the op field.
1137 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
1139 (sparc_sw_breakpoint_from_kind): Turn into...
1140 (sparc_target::sw_breakpoint_from_kind): ...this.
1141 (the_low_target): Remove the op field.
1142 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
1144 (tic6x_sw_breakpoint_from_kind): Turn into...
1145 (tic6x_target::sw_breakpoint_from_kind): ...this.
1146 (the_low_target): Remove the op field.
1147 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
1149 (tile_sw_breakpoint_from_kind): Turn into...
1150 (tile_target::sw_breakpoint_from_kind): ...this.
1151 (the_low_target): Remove the op field.
1152 * linux-xtensa-low.cc (class xtensa_target)
1153 <sw_breakpoint_from_kind>: Declare.
1154 (xtensa_sw_breakpoint_from_kind): Turn into...
1155 (xtensa_target::sw_breakpoint_from_kind): ...this.
1156 (the_low_target): Remove the op field.
1158 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1160 Remove the 'breakpoint_kind_from_pc' and
1161 'breakpoint_kind_from_current_state' linux target ops, and let the
1162 concrete linux target define them by overriding the ops of
1163 process_stratum_target.
1165 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
1167 (linux_process_target::breakpoint_kind_from_current_state): Remove.
1168 * linux-low.h (struct linux_target_ops): Remove ops.
1169 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
1170 <breakpoint_kind_from_current_state>: Remove.
1171 * linux-x86-low.cc (the_low_target): Remove the op fields.
1172 * linux-bfin-low.cc (the_low_target): Ditto.
1173 * linux-cris-low.cc (the_low_target): Ditto.
1174 * linux-crisv32-low.cc (the_low_target): Ditto.
1175 * linux-m32r-low.cc (the_low_target): Ditto.
1176 * linux-m68k-low.cc (the_low_target): Ditto.
1177 * linux-mips-low.cc (the_low_target): Ditto.
1178 * linux-nios2-low.cc (the_low_target): Ditto.
1179 * linux-ppc-low.cc (the_low_target): Ditto.
1180 * linux-s390-low.cc (the_low_target): Ditto.
1181 * linux-sh-low.cc (the_low_target): Ditto.
1182 * linux-sparc-low.cc (the_low_target): Ditto.
1183 * linux-tic6x-low.cc (the_low_target): Ditto.
1184 * linux-tile-low.cc (the_low_target): Ditto.
1185 * linux-xtensa-low.cc (the_low_target): Ditto.
1186 * linux-aarch64-low.cc (class aarch64_target)
1187 <breakpoint_kind_from_pc>
1188 <breakpoint_kind_from_current_state>: Declare.
1189 (aarch64_breakpoint_kind_from_pc): Turn into...
1190 (aarch64_target::breakpoint_kind_from_pc): ...this.
1191 (aarch64_breakpoint_kind_from_current_state): Turn into...
1192 (aarch64_target::breakpoint_kind_from_current_state): ...this.
1193 (the_low_target): Remove the op fields.
1194 * linux-arm-low.cc (class arm_target):
1195 <breakpoint_kind_from_pc>
1196 <breakpoint_kind_from_current_state>: Declare.
1197 (arm_target::breakpoint_kind_from_pc): Define.
1198 (arm_target::breakpoint_kind_from_current_state): Define.
1199 (the_low_target): Remove the op fields.
1200 * linux-riscv-low.cc (class riscv_target):
1201 <breakpoint_kind_from_pc>: Declare.
1202 (riscv_breakpoint_kind_from_pc): Turn into...
1203 (riscv_target::breakpoint_kind_from_pc): ...this.
1204 (the_low_target): Remove the op fields.
1206 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1208 Turn the 'get_pc' and 'set_pc' linux target ops into methods
1209 of linux_process_target.
1211 * linux-low.h (struct linux_target_ops): Remove the ops.
1212 (class linux_process_target) <low_supports_breakpoints>
1214 <low_set_pc>: Declare.
1215 * linux-low.cc (supports_breakpoints): Turn into...
1216 (linux_process_target::low_supports_breakpoints): ...this.
1217 (linux_process_target::low_get_pc): Define.
1218 (linux_process_target::low_set_pc): Define.
1220 Update the callers below.
1222 (linux_process_target::get_pc)
1223 (linux_process_target::save_stop_reason)
1224 (linux_process_target::maybe_move_out_of_jump_pad)
1225 (linux_process_target::wait_1)
1226 (linux_process_target::resume_one_lwp_throw)
1227 (linux_process_target::resume)
1228 (linux_process_target::proceed_all_lwps)
1229 (linux_process_target::read_pc)
1230 (linux_process_target::write_pc)
1232 * linux-x86-low.cc (class linux_process_target)
1233 <low_supports_breakpoints>
1235 <low_set_pc>: Declare.
1236 (x86_target::low_supports_breakpoints): Define.
1237 (x86_get_pc): Turn into...
1238 (x86_target::low_get_pc): ...this.
1239 (x86_set_pc): Turn into...
1240 (x86_target::low_set_pc): ...this.
1241 (the_low_target): Remove the op fields.
1242 * linux-arm-low.cc (class arm_target)
1243 <low_supports_breakpoints>
1245 <low_set_pc>: Declare.
1246 (arm_target::low_supports_breakpoints)
1247 (arm_target::low_get_pc)
1248 (arm_target::low_set_pc): Define.
1249 (the_low_target): Remove the op fields.
1250 * linux-bfin-low.cc (class bfin_target)
1251 <low_supports_breakpoints>
1253 <low_set_pc>: Declare.
1254 (bfin_target::low_supports_breakpoints)
1255 (bfin_target::low_get_pc)
1256 (bfin_target::low_set_pc): Define.
1257 (the_low_target): Remove the op fields.
1258 * linux-cris-low.cc (class cris_target)
1259 <low_supports_breakpoints>
1261 <low_set_pc>: Declare.
1262 (cris_target::low_supports_breakpoints)
1263 (cris_target::low_get_pc)
1264 (cris_target::low_set_pc): Define.
1265 (the_low_target): Remove the op fields.
1266 * linux-crisv32-low.cc (class crisv32_target)
1267 <low_supports_breakpoints>
1269 <low_set_pc>: Declare.
1270 (crisv32_target::low_supports_breakpoints)
1271 (crisv32_target::low_get_pc)
1272 (crisv32_target::low_set_pc): Define.
1273 (the_low_target): Remove the op fields.
1274 * linux-m32r-low.cc (class m32r_target)
1275 <low_supports_breakpoints>
1277 <low_set_pc>: Declare.
1278 (m32r_target::low_supports_breakpoints)
1279 (m32r_target::low_get_pc)
1280 (m32r_target::low_set_pc): Define.
1281 (the_low_target): Remove the op fields.
1282 * linux-m68k-low.cc (class m68k_target)
1283 <low_supports_breakpoints>
1285 <low_set_pc>: Declare.
1286 (m68k_target::low_supports_breakpoints)
1287 (m68k_target::low_get_pc)
1288 (m68k_target::low_set_pc): Define.
1289 (the_low_target): Remove the op fields.
1290 * linux-nios2-low.cc (class nios2_target)
1291 <low_supports_breakpoints>
1293 <low_set_pc>: Declare.
1294 (nios2_target::low_supports_breakpoints)
1295 (nios2_target::low_get_pc)
1296 (nios2_target::low_set_pc): Define.
1297 (the_low_target): Remove the op fields.
1298 * linux-sh-low.cc (class sh_target)
1299 <low_supports_breakpoints>
1301 <low_set_pc>: Declare.
1302 (sh_target::low_supports_breakpoints)
1303 (sh_target::low_get_pc)
1304 (sh_target::low_set_pc): Define.
1305 (the_low_target): Remove the op fields.
1306 * linux-xtensa-low.cc (class xtensa_target)
1307 <low_supports_breakpoints>
1309 <low_set_pc>: Declare.
1310 (xtensa_target::low_supports_breakpoints)
1311 (xtensa_target::low_get_pc)
1312 (xtensa_target::low_set_pc): Define.
1313 (the_low_target): Remove the op fields.
1314 * linux-sparc-low.cc (class sparc_target)
1315 <low_supports_breakpoints>
1316 <low_get_pc>: Declare.
1317 (sparc_target::low_supports_breakpoints)
1318 (sparc_target::low_get_pc): Define.
1319 (the_low_target): Remove the op fields.
1320 * linux-tile-low.cc (class tile_target)
1321 <low_supports_breakpoints>
1323 <low_set_pc>: Declare.
1324 (tile_target::low_supports_breakpoints)
1325 (tile_target::low_get_pc)
1326 (tile_target::low_set_pc): Define.
1327 (the_low_target): Remove the op fields.
1328 * linux-aarch64-low.cc (class aarch64_target)
1329 <low_supports_breakpoints>
1331 <low_set_pc>: Declare.
1332 (aarch64_target::low_supports_breakpoints): Define.
1333 (aarch64_get_pc): Turn into...
1334 (aarch64_target::low_get_pc): ...this.
1335 (aarch64_set_pc): Turn into...
1336 (aarch64_target::low_set_pc): ...this.
1337 (the_low_target): Remove the op fields.
1338 * linux-mips-low.cc (class mips_target)
1339 <low_supports_breakpoints>
1341 <low_set_pc>: Declare.
1342 (mips_target::low_supports_breakpoints): Define.
1343 (mips_get_pc): Turn into...
1344 (mips_target::low_get_pc): ...this.
1345 (mips_set_pc): Turn into...
1346 (mips_target::low_set_pc): ...this.
1347 (the_low_target): Remove the op fields.
1348 * linux-ppc-low.cc (class ppc_target)
1349 <low_supports_breakpoints>
1351 <low_set_pc>: Declare.
1352 (ppc_target::low_supports_breakpoints): Define.
1353 (ppc_get_pc): Turn into...
1354 (ppc_target::low_get_pc): ...this.
1355 (ppc_set_pc): Turn into...
1356 (ppc_target::low_set_pc): ...this.
1357 (the_low_target): Remove the op fields.
1358 * linux-riscv-low.cc (class riscv_target)
1359 <low_supports_breakpoints>
1361 <low_set_pc>: Declare.
1362 (riscv_target::low_supports_breakpoints): Define.
1363 (riscv_get_pc): Turn into...
1364 (riscv_target::low_get_pc): ...this.
1365 (riscv_set_pc): Turn into...
1366 (riscv_target::low_set_pc): ...this.
1367 (the_low_target): Remove the op fields.
1368 * linux-s390-low.cc (class s390_target)
1369 <low_supports_breakpoints>
1371 <low_set_pc>: Declare.
1372 (s390_target::low_supports_breakpoints): Define.
1373 (s390_get_pc): Turn into...
1374 (s390_target::low_get_pc): ...this.
1375 (s390_set_pc): Turn into...
1376 (s390_target::low_set_pc): ...this.
1377 (the_low_target): Remove the op fields.
1378 * linux-tic6x-low.cc (class tic6x_target)
1379 <low_supports_breakpoints>
1381 <low_set_pc>: Declare.
1382 (tic6x_target::low_supports_breakpoints): Define.
1383 (tic6x_get_pc): Turn into...
1384 (tic6x_target::low_get_pc): ...this.
1385 (tic6x_set_pc): Turn into...
1386 (tic6x_target::low_set_pc): ...this.
1387 (the_low_target): Remove the op fields.
1389 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1391 Turn some more static methods in linux-low into private methods
1392 of linux_process_target.
1394 * linux-low.cc (get_pc): Turn into...
1395 (linux_process_target::get_pc): ...this.
1396 (save_stop_reason): Turn into...
1397 (linux_process_target::save_stop_reason): ...this.
1398 (thread_still_has_status_pending_p): Turn into...
1399 (linux_process_target::thread_still_has_status_pending): ...this.
1400 (status_pending_p_callback): Turn into...
1401 (linux_process_target::status_pending_p_callback): ...this.
1402 (resume_stopped_resumed_lwps): Turn into...
1403 (linux_process_target::resume_stopped_resumed_lwps): ...this.
1404 (install_software_single_step_breakpoints): Turn into...
1405 (linux_process_target::install_software_single_step_breakpoints):
1407 (single_step): Turn into...
1408 (linux_process_target::single_step): ...this.
1409 (linux_resume_one_lwp_throw): Turn into...
1410 (linux_process_target::resume_one_lwp_throw): ...this.
1411 (linux_resume_one_lwp): Turn into...
1412 (linux_process_target::resume_one_lwp): ...this.
1413 (resume_status_pending_p): Turn into...
1414 (linux_process_target::resume_status_pending): ...this.
1415 (need_step_over_p): Turn into...
1416 (linux_process_target::thread_needs_step_over): ...this.
1417 (linux_resume_one_thread): Turn into...
1418 (linux_process_target::resume_one_thread): ...this.
1419 (proceed_one_lwp): Turn into...
1420 (linux_process_target::proceed_one_lwp): ...this.
1421 (unsuspend_and_proceed_one_lwp): Turn into...
1422 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
1424 Update the calls/references to the above functions below.
1426 (linux_process_target::handle_extended_wait)
1427 (linux_process_target::filter_event)
1428 (linux_process_target::wait_for_event_filtered)
1429 (linux_process_target::wait_1)
1430 (linux_process_target::move_out_of_jump_pad)
1431 (linux_process_target::start_step_over)
1432 (linux_process_target::resume)
1433 (linux_process_target::proceed_all_lwps)
1434 (regsets_store_inferior_registers)
1435 (linux_process_target::store_register)
1437 * linux-low.h (class linux_process_target)
1440 <thread_still_has_status_pending>
1441 <status_pending_p_callback>
1442 <resume_stopped_resumed_lwps>
1443 <install_software_single_step_breakpoints>
1445 <resume_one_lwp_throw>
1447 <resume_status_pending>
1448 <thread_needs_step_over>
1451 <unsuspend_and_proceed_one_lwp>: Declare.
1453 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1455 Turn the 'fetch_register' linux target op into a method of
1456 linux_process_target.
1458 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
1459 (class linux_process_target) <low_fetch_register>: Declare.
1460 * linux-x86-low.cc (the_low_target)
1461 * linux-aarch64-low.cc (the_low_target)
1462 * linux-arm-low.cc (the_low_target)
1463 * linux-bfin-low.cc (the_low_target)
1464 * linux-cris-low.cc (the_low_target)
1465 * linux-crisv32-low.cc (the_low_target)
1466 * linux-m32r-low.cc (the_low_target)
1467 * linux-m68k-low.cc (the_low_target)
1468 * linux-nios2-low.cc (the_low_target)
1469 * linux-ppc-low.cc (the_low_target)
1470 * linux-s390-low.cc (the_low_target)
1471 * linux-sh-low.cc (the_low_target)
1472 * linux-sparc-low.cc (the_low_target)
1473 * linux-tic6x-low.cc (the_low_target)
1474 * linux-tile-low.cc (the_low_target)
1475 * linux-xtensa-low.cc (the_low_target): Remove the op field.
1476 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
1478 (ia64_fetch_register): Turn into...
1479 (ia64_target::low_fetch_register): ...this.
1480 (the_low_target): Remove the op field.
1481 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
1483 (mips_fetch_register): Turn into...
1484 (mips_target::low_fetch_register): ...this.
1485 (the_low_target): Remove the op field.
1486 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
1488 (riscv_fetch_register): Turn into...
1489 (riscv_target::low_fetch_register): ...this.
1490 (the_low_target): Remove the op field.
1492 Update the callers below.
1494 * linux-low.cc (linux_process_target::fetch_registers)
1495 (linux_process_target::low_fetch_register)
1497 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1499 Turn the 'cannot_fetch_register' and 'cannot_store_register'
1500 linux target ops into methods of linux_process_target.
1502 * linux-low.h (struct linux_target_ops): Remove the low target ops.
1503 (class linux_process_target) <fetch_register>
1505 <usr_fetch_inferior_registers>
1506 <usr_store_inferior_registers>
1507 <low_cannot_fetch_register>
1508 <low_cannot_fetch_register> Declare.
1509 * linux-low.cc (fetch_register): Turn into...
1510 (linux_process_target::fetch_register): ...this.
1511 (store_register): Turn into ...
1512 (linux_process_target::store_register): ...this.
1513 (usr_fetch_inferior_registers): Turn into...
1514 (linux_process_target::usr_fetch_inferior_registers): ...this.
1515 (usr_store_inferior_registers): Turn into...
1516 (linux_process_target::usr_store_inferior_registers): ...this.
1517 * linux-x86-low.cc (class x86_target)
1518 <low_cannot_fetch_register>
1519 <low_cannot_store_register>: Declare.
1520 (x86_cannot_store_register): Turn into...
1521 (x86_target::low_cannot_store_register): ...this.
1522 (x86_cannot_fetch_register): Turn into...
1523 (x86_target::low_cannot_fetch_register): ...this.
1524 (the_low_target): Remove the target op fields.
1525 * linux-aarch64-low.cc (class aarch64_target)
1526 <low_cannot_fetch_register>
1527 <low_cannot_store_register>: Declare.
1528 (aarch64_target::low_cannot_fetch_register)
1529 (aarch64_target::low_cannot_store_register): Define.
1530 (the_low_target): Remove the op fields.
1531 * linux-arm-low.cc (class arm_target)
1532 <low_cannot_fetch_register>
1533 <low_cannot_store_register>: Declare.
1534 (arm_cannot_fetch_register): Turn into...
1535 (arm_target::low_cannot_fetch_register): ...this.
1536 (arm_cannot_store_register): Turn into...
1537 (arm_target::low_cannot_store_register): ...this.
1538 (the_low_target): Remove the op fields.
1539 * linux-bfin-low.cc (class bfin_target)
1540 <low_cannot_fetch_register>
1541 <low_cannot_store_register>: Declare.
1542 (bfin_cannot_fetch_register): Turn into...
1543 (bfin_target::low_cannot_fetch_register): ...this.
1544 (bfin_cannot_store_register): Turn into...
1545 (bfin_target::low_cannot_store_register): ...this.
1546 (the_low_target): Remove the op fields.
1547 * linux-cris-low.cc (class cris_target)
1548 <low_cannot_fetch_register>
1549 <low_cannot_store_register>: Declare.
1550 (cris_cannot_fetch_register): Turn into...
1551 (cris_target::low_cannot_fetch_register): ...this.
1552 (cris_cannot_store_register): Turn into...
1553 (cris_target::low_cannot_store_register): ...this.
1554 (the_low_target): Remove the op fields.
1555 * linux-crisv32-low.cc (class crisv32_target)
1556 <low_cannot_fetch_register>
1557 <low_cannot_store_register>: Declare.
1558 (crisv32_target::low_cannot_fetch_register)
1559 (crisv32_target::low_cannot_store_register): Define.
1560 (the_low_target): Remove the op fields.
1561 * linux-ia64-low.cc (class ia64_target)
1562 <low_cannot_fetch_register>
1563 <low_cannot_store_register>: Declare.
1564 (ia64_cannot_fetch_register): Turn into...
1565 (ia64_target::low_cannot_fetch_register): ...this.
1566 (ia64_cannot_store_register): Turn into...
1567 (ia64_target::low_cannot_store_register): ...this.
1568 (the_low_target): Remove the op fields.
1569 * linux-m32r-low.cc (class m32r_target)
1570 <low_cannot_fetch_register>
1571 <low_cannot_store_register>: Declare.
1572 (m32r_cannot_fetch_register): Turn into...
1573 (m32r_target::low_cannot_fetch_register): ...this.
1574 (m32r_cannot_store_register): Turn into...
1575 (m32r_target::low_cannot_store_register): ...this.
1576 (the_low_target): Remove the op fields.
1577 * linux-m68k-low.cc (class m68k_target)
1578 <low_cannot_fetch_register>
1579 <low_cannot_store_register>: Declare.
1580 (m68k_cannot_fetch_register): Turn into...
1581 (m68k_target::low_cannot_fetch_register): ...this.
1582 (m68k_cannot_store_register): Turn into...
1583 (m68k_target::low_cannot_store_register): ...this.
1584 (the_low_target): Remove the op fields.
1585 * linux-mips-low.cc (class mips_target)
1586 <low_cannot_fetch_register>
1587 <low_cannot_store_register>: Declare.
1588 (mips_cannot_fetch_register): Turn into...
1589 (mips_target::low_cannot_fetch_register): ...this.
1590 (mips_cannot_store_register): Turn into...
1591 (mips_target::low_cannot_store_register): ...this.
1592 (get_usrregs_info): Inline at the call sites in
1593 low_cannot_fetch_register and low_cannot_store_register,
1595 (the_low_target): Remove the op fields.
1596 * linux-nios2-low.cc (class nios2_target)
1597 <low_cannot_fetch_register>
1598 <low_cannot_store_register>: Declare.
1599 (nios2_cannot_fetch_register): Turn into...
1600 (nios2_target::low_cannot_fetch_register): ...this.
1601 (nios2_cannot_store_register): Turn into...
1602 (nios2_target::low_cannot_store_register): ...this.
1603 (the_low_target): Remove the op fields.
1604 * linux-ppc-low.cc (class ppc_target)
1605 <low_cannot_fetch_register>
1606 <low_cannot_store_register>: Declare.
1607 (ppc_cannot_fetch_register): Turn into...
1608 (ppc_target::low_cannot_fetch_register): ...this.
1609 (ppc_cannot_store_register): Turn into...
1610 (ppc_target::low_cannot_store_register): ...this.
1611 (the_low_target): Remove the op fields.
1612 * linux-riscv-low.cc (class riscv_target)
1613 <low_cannot_fetch_register>
1614 <low_cannot_store_register>: Declare.
1615 (riscv_target::low_cannot_fetch_register)
1616 (riscv_target::low_cannot_store_register): Define.
1617 (the_low_target): Remove the op fields.
1618 * linux-s390-low.cc (class s390_target)
1619 <low_cannot_fetch_register>
1620 <low_cannot_store_register>: Declare.
1621 (s390_cannot_fetch_register): Turn into...
1622 (s390_target::low_cannot_fetch_register): ...this.
1623 (s390_cannot_store_register): Turn into...
1624 (s390_target::low_cannot_store_register): ...this.
1625 (the_low_target): Remove the op fields.
1626 * linux-sh-low.cc (class sh_target)
1627 <low_cannot_fetch_register>
1628 <low_cannot_store_register>: Declare.
1629 (sh_cannot_fetch_register): Turn into...
1630 (sh_target::low_cannot_fetch_register): ...this.
1631 (sh_cannot_store_register): Turn into...
1632 (sh_target::low_cannot_store_register): ...this.
1633 (the_low_target): Remove the op fields.
1634 * linux-sparc-low.cc (class sparc_target)
1635 <low_cannot_fetch_register>
1636 <low_cannot_store_register>: Declare.
1637 (sparc_cannot_fetch_register): Turn into...
1638 (sparc_target::low_cannot_fetch_register): ...this.
1639 (sparc_cannot_store_register): Turn into...
1640 (sparc_target::low_cannot_store_register): ...this.
1641 (the_low_target): Remove the op fields.
1642 * linux-tic6x-low.cc (class tic6x_target)
1643 <low_cannot_fetch_register>
1644 <low_cannot_store_register>: Declare.
1645 (tic6x_cannot_fetch_register): Turn into...
1646 (tic6x_target::low_cannot_fetch_register): ...this.
1647 (tic6x_cannot_store_register): Turn into...
1648 (tic6x_target::low_cannot_store_register): ...this.
1649 (the_low_target): Remove the op fields.
1650 * linux-tile-low.cc (class tile_target)
1651 <low_cannot_fetch_register>
1652 <low_cannot_store_register>: Declare.
1653 (tile_cannot_fetch_register): Turn into...
1654 (tile_target::low_cannot_fetch_register): ...this.
1655 (tile_cannot_store_register): Turn into...
1656 (tile_target::low_cannot_store_register): ...this.
1657 (the_low_target): Remove the op fields.
1658 * linux-xtensa-low.cc (class xtensa_target)
1659 <low_cannot_fetch_register>
1660 <low_cannot_store_register>: Declare.
1661 (xtensa_target::low_cannot_fetch_register)
1662 (xtensa_target::low_cannot_store_register): Define.
1663 (the_low_target): Remove the op fields.
1665 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1667 Turn the 'regs_info' linux target op into a method of
1668 linux_process_target.
1670 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
1671 (class linux_process_target) <get_regs_info>: Define.
1673 Update the callers below.
1675 * linux-low.cc (linux_process_target::fetch_registers)
1676 (linux_process_target::store_registers)
1677 * proc-service.cc (gregset_info)
1679 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
1680 (x86_linux_regs_info): Turn into ...
1681 (x86_target::get_regs_info): ...this.
1682 (the_low_target): Remove the op field.
1683 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
1685 (aarch64_regs_info): Turn into ...
1686 (aarch64_target::get_regs_info): ...this.
1687 (the_low_target): Remove the op field.
1688 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
1689 (arm_regs_info): Turn into ...
1690 (arm_target::get_regs_info): ...this.
1691 (the_low_target): Remove the op field.
1692 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
1693 (bfin_regs_info): Turn into ...
1694 (bfin_target::get_regs_info): ...this.
1695 (the_low_target): Remove the op field.
1696 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
1697 (cris_regs_info): Turn into ...
1698 (cris_target::get_regs_info): ...this.
1699 (the_low_target): Remove the op field.
1700 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
1702 (crisv32_regs_info): Turn into ...
1703 (crisv32_target::get_regs_info): ...this.
1704 (the_low_target): Remove the op field.
1705 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
1706 (ia64_regs_info): Turn into ...
1707 (ia64_target::get_regs_info): ...this.
1708 (the_low_target): Remove the op field.
1709 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
1710 (m32r_regs_info): Turn into ...
1711 (m32r_target::get_regs_info): ...this.
1712 (the_low_target): Remove the op field.
1713 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
1714 (m68k_regs_info): Turn into ...
1715 (m68k_target::get_regs_info): ...this.
1716 (the_low_target): Remove the op field.
1717 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
1718 (mips_regs_info): Turn into ...
1719 (mips_target::get_regs_info): ...this.
1720 (the_low_target): Remove the op field.
1721 (get_usrregs_info): Update the call to the op.
1722 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
1723 (nios2_regs_info): Turn into ...
1724 (nios2_target::get_regs_info): ...this.
1725 (the_low_target): Remove the op field.
1726 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
1727 (ppc_regs_info): Turn into ...
1728 (ppc_target::get_regs_info): ...this.
1729 (the_low_target): Remove the op field.
1730 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
1731 (riscv_regs_info): Turn into ...
1732 (riscv_target::get_regs_info): ...this.
1733 (the_low_target): Remove the op field.
1734 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
1735 (s390_regs_info): Turn into ...
1736 (s390_target::get_regs_info): ...this.
1737 (the_low_target): Remove the op field.
1738 (s390_collect_ptrace_register)
1739 (s390_supply_ptrace_register)
1740 (s390_fill_gregset): Update the call to the op.
1741 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
1742 (sh_regs_info): Turn into ...
1743 (sh_target::get_regs_info): ...this.
1744 (the_low_target): Remove the op field.
1745 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
1746 (sparc_regs_info): Turn into ...
1747 (sparc_target::get_regs_info): ...this.
1748 (the_low_target): Remove the op field.
1749 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
1750 (tic6x_regs_info): Turn into ...
1751 (tic6x_target::get_regs_info): ...this.
1752 (the_low_target): Remove the op field.
1753 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
1754 (tile_regs_info): Turn into ...
1755 (tile_target::get_regs_info): ...this.
1756 (the_low_target): Remove the op field.
1757 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
1759 (xtensa_regs_info): Turn into ...
1760 (xtensa_target::get_regs_info): ...this.
1761 (the_low_target): Remove the op field.
1763 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1765 Turn the 'arch_setup' linux target op into a method of
1766 linux_process_target.
1768 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
1769 (class linux_process_target) <arch_setup_thread>
1770 <low_arch_setup>: New declarations.
1771 * linux-low.cc (linux_arch_setup): Delete.
1772 (linux_arch_setup_thread): Turn into...
1773 (linux_process_target::arch_setup_thread): ... this.
1775 Update the callers below.
1777 (linux_process_target::handle_extended_wait)
1778 (linux_process_target::post_create_inferior)
1779 (linux_process_target::filter_event)
1781 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
1783 (x86_linux_update_xmltarget): Turn into...
1784 (x86_target::update_xmltarget): ...this.
1785 (x86_linux_process_qsupported): Update the call to
1786 x86_linux_update_xmltarget.
1787 (x86_arch_setup): Turn into ...
1788 (x86_target::low_arch_setup): ...this.
1789 (the_low_target): Remove the op field.
1790 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
1792 (aarch64_arch_setup): Turn into ...
1793 (aarch64_target::low_arch_setup): ...this.
1794 (the_low_target): Remove the op field.
1795 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
1797 (arm_arch_setup): Turn into ...
1798 (arm_target::low_arch_setup): ...this.
1799 (the_low_target): Remove the op field.
1800 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
1802 (bfin_arch_setup): Turn into ...
1803 (bfin_target::low_arch_setup): ...this.
1804 (the_low_target): Remove the op field.
1805 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
1807 (cris_arch_setup): Turn into ...
1808 (cris_target::low_arch_setup): ...this.
1809 (the_low_target): Remove the op field.
1810 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
1812 (crisv32_arch_setup): Turn into ...
1813 (crisv32_target::low_arch_setup): ...this.
1814 (the_low_target): Remove the op field.
1815 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
1817 (ia64_arch_setup): Turn into ...
1818 (ia64_target::low_arch_setup): ...this.
1819 (the_low_target): Remove the op field.
1820 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
1822 (m32r_arch_setup): Turn into ...
1823 (m32r_target::low_arch_setup): ...this.
1824 (the_low_target): Remove the op field.
1825 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
1827 (m68k_arch_setup): Turn into ...
1828 (m68k_target::low_arch_setup): ...this.
1829 (the_low_target): Remove the op field.
1830 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
1832 (mips_arch_setup): Turn into ...
1833 (mips_target::low_arch_setup): ...this.
1834 (the_low_target): Remove the op field.
1835 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
1837 (nios2_arch_setup): Turn into ...
1838 (nios2_target::low_arch_setup): ...this.
1839 (the_low_target): Remove the op field.
1840 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
1842 (ppc_arch_setup): Turn into ...
1843 (ppc_target::low_arch_setup): ...this.
1844 (the_low_target): Remove the op field.
1845 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
1847 (riscv_arch_setup): Turn into ...
1848 (riscv_target::low_arch_setup): ...this.
1849 (the_low_target): Remove the op field.
1850 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
1852 (s390_arch_setup): Turn into ...
1853 (s390_target::low_arch_setup): ...this.
1854 (the_low_target): Remove the op field.
1855 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
1857 (sh_arch_setup): Turn into ...
1858 (sh_target::low_arch_setup): ...this.
1859 (the_low_target): Remove the op field.
1860 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
1862 (sparc_arch_setup): Turn into ...
1863 (sparc_target::low_arch_setup): ...this.
1864 (the_low_target): Remove the op field.
1865 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
1867 (tic6x_arch_setup): Turn into ...
1868 (tic6x_target::low_arch_setup): ...this.
1869 (the_low_target): Remove the op field.
1870 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
1872 (tile_arch_setup): Turn into ...
1873 (tile_target::low_arch_setup): ...this.
1874 (the_low_target): Remove the op field.
1875 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
1877 (xtensa_arch_setup): Turn into ...
1878 (xtensa_target::low_arch_setup): ...this.
1879 (the_low_target): Remove the op field.
1881 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1883 * linux-low.h (the_linux_target): New extern declaration.
1884 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
1886 (the_linux_target): Remove.
1887 * linux-x86-low.cc (class x86_target): New class.
1888 (the_x86_target): New static object.
1889 (the_linux_target): Define as pointer to the_x86_target.
1890 * linux-aarch64-low.cc (class aarch64_target): New class.
1891 (the_aarch64_target): New static object.
1892 (the_linux_target): Define as pointer to the_aarch64_target.
1893 * linux-arm-low.cc (class arm_target): New class.
1894 (the_arm_target): New static object.
1895 (the_linux_target): Define as pointer to the_arm_target.
1896 * linux-bfin-low.cc (class bfin_target): New class.
1897 (the_bfin_target): New static object.
1898 (the_linux_target): Define as pointer to the_bfin_target.
1899 * linux-cris-low.cc (class cris_target): New class.
1900 (the_cris_target): New static object.
1901 (the_linux_target): Define as pointer to the_cris_target.
1902 * linux-crisv32-low.cc (class crisv32_target): New class.
1903 (the_crisv32_target): New static object.
1904 (the_linux_target): Define as pointer to the_crisv32_target.
1905 * linux-ia64-low.cc (class ia64_target): New class.
1906 (the_ia64_target): New static object.
1907 (the_linux_target): Define as pointer to the_ia64_target.
1908 * linux-m32r-low.cc (class m32r_target): New class.
1909 (the_m32r_target): New static object.
1910 (the_linux_target): Define as pointer to the_m32r_target.
1911 * linux-m68k-low.cc (class m68k_target): New class.
1912 (the_m68k_target): New static object.
1913 (the_linux_target): Define as pointer to the_m68k_target.
1914 * linux-mips-low.cc (class mips_target): New class.
1915 (the_mips_target): New static object.
1916 (the_linux_target): Define as pointer to the_mips_target.
1917 * linux-nios2-low.cc (class nios2_target): New class.
1918 (the_nios2_target): New static object.
1919 (the_linux_target): Define as pointer to the_nios2_target.
1920 * linux-ppc-low.cc (class ppc_target): New class.
1921 (the_ppc_target): New static object.
1922 (the_linux_target): Define as pointer to the_ppc_target.
1923 * linux-riscv-low.cc (class riscv_target): New class.
1924 (the_riscv_target): New static object.
1925 (the_linux_target): Define as pointer to the_riscv_target.
1926 * linux-s390-low.cc (class s390_target): New class.
1927 (the_s390_target): New static object.
1928 (the_linux_target): Define as pointer to the_s390_target.
1929 * linux-sh-low.cc (class sh_target): New class.
1930 (the_sh_target): New static object.
1931 (the_linux_target): Define as pointer to the_sh_target.
1932 * linux-sparc-low.cc (class sparc_target): New class.
1933 (the_sparc_target): New static object.
1934 (the_linux_target): Define as pointer to the_sparc_target.
1935 * linux-tic6x-low.cc (class tic6x_target): New class.
1936 (the_tic6x_target): New static object.
1937 (the_linux_target): Define as pointer to the_tic6x_target.
1938 * linux-tile-low.cc (class tile_target): New class.
1939 (the_tile_target): New static object.
1940 (the_linux_target): Define as pointer to the_tile_target.
1941 * linux-xtensa-low.cc (class xtensa_target): New class.
1942 (the_xtensa_target): New static object.
1943 (the_linux_target): Define as pointer to the_xtensa_target.
1945 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1947 Turn some static functions in linux-low.cc into private methods of
1948 linux_process_target.
1950 * linux-low.cc (handle_extended_wait): Turn into ...
1951 (linux_process_target::handle_extended_wait): ...this. Call
1952 'mourn' on 'this' object instead of 'the_target'.
1953 (maybe_move_out_of_jump_pad): Turn into...
1954 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
1955 (linux_low_filter_event): Turn into...
1956 (linux_process_target::filter_event): ...this.
1957 (linux_wait_for_event_filtered): Turn into...
1958 (linux_process_target::wait_for_event_filtered): ...this.
1959 (linux_wait_for_event): Turn into...
1960 (linux_process_target::wait_for_event): ...this.
1961 (linux_wait_1): Turn into...
1962 (linux_process_target::wait_1): ...this.
1963 (wait_for_sigstop): Turn into...
1964 (linux_process_target::wait_for_sigstop): ...this.
1965 (move_out_of_jump_pad_callback): Turn into...
1966 (linux_process_target::move_out_of_jump_pad): ...this.
1967 (stop_all_lwps): Turn into...
1968 (linux_process_target::stop_all_lwps): ...this.
1969 (start_step_over): Turn into...
1970 (linux_process_target::start_step_over): ...this.
1971 (complete_ongoing_step_over): Turn into...
1972 (linux_process_target::complete_ongoing_step_over): ...this.
1973 (proceed_all_lwps): Turn into...
1974 (linux_process_target::proceed_all_lwps): ...this.
1975 (unstop_all_lwps): Turn into...
1976 (linux_process_target::unstop_all_lwps): ...this.
1978 * linux-low.h (class linux_process_target)
1979 <handle_extended_wait>
1980 <maybe_move_out_of_jump_pad>
1982 <wait_for_event_filtered>
1986 <move_out_of_jump_pad>
1989 <complete_ongoing_step_over>
1991 <unstop_all_lwps>: Declare.
1993 Update the callers below.
1995 * linux-low.cc (linux_process_target::attach): Update.
1996 (linux_process_target::stabilize_threads): Ditto.
1997 (linux_process_target::wait): Ditto.
1999 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2001 * linux-low.h (struct linux_target_ops): Update the comment for
2002 'cannot_store_register' to return 0 or 1.
2003 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
2006 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
2008 * config.in: Re-generate.
2009 * configure: Re-generate.
2011 2020-03-17 Kamil Rytarowski <n54@gmx.com>
2013 * regcache.cc (find_register_by_number): Update.
2014 * tdesc.cc (init_target_desc): Likewise.
2015 * tdesc.h (target_desc::reg_defs): Likewise.
2017 2020-03-12 Tom Tromey <tom@tromey.com>
2019 * configure: Rebuild.
2020 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
2021 (WIN32APILIBS): New subst.
2022 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
2024 (gdbsupport/%.o): Remove target.
2025 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
2026 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
2027 (WIN32APILIBS): New variable.
2028 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
2029 (gdbreplay$(EXEEXT)): Likewise.
2031 2020-03-12 Tom Tromey <tom@tromey.com>
2033 * config.in, configure: Rebuild.
2034 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
2035 * acinclude.m4: Include gettext-sister.m4.
2036 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
2038 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
2039 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
2041 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2043 * acinclude.m4: Update path to selftest.m4.
2045 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2047 * configure.ac: Don't source bfd/development.sh, move
2048 GDB_AC_COMMON higher.
2049 * configure: Re-generate.
2051 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2053 * configure: Re-generate.
2055 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
2057 * configure: Re-generate.
2059 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2061 * .dir-locals.el: New file.
2063 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2065 * .gitattributes: New file.
2067 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
2069 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
2070 reply into an S reply.
2071 * server.cc (disable_packet_T): New global.
2072 (captured_main): Set new global when appropriate.
2073 * server.h (disable_packet_T): Declare.
2075 2020-02-21 Tom Tromey <tom@tromey.com>
2077 * Makefile.in (mostlyclean): New target.
2079 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2081 * target.h (struct process_stratum_target): Remove.
2082 (class process_target): Rename to ...
2083 (class process_stratum_target): ... this.
2084 * linux-low.h (class linux_process_target): Derive from
2085 'process_stratum_target'.
2086 * linux-low.cc (linux_target_ops): Remove.
2087 (initialize_low): Set the_target to the singleton instance of
2088 linux_process_target.
2089 * lynx-low.h (class lynx_process_target): Derive from
2090 'process_stratum_target'.
2091 * lynx-low.cc (lynx_target_ops): Remove.
2092 (initialize_low): Set the_target to the singleton instance of
2093 lynx_process_target.
2094 * nto-low.h (class nto_process_target): Derive from
2095 'process_stratum_target'.
2096 * nto-low.cc (nto_target_ops): Remove.
2097 (initialize_low): Set the_target to the singleton instance of
2099 * win32-low.h (class win32_process_target): Derive from
2100 'process_stratum_target'.
2101 * win32-low.cc (win32_target_ops): Remove.
2102 (initialize_low): Set the_target to the singleton instance of
2103 win32_process_target.
2105 Replace 'the_target->pt' with 'the_target' in the uses below.
2107 * hostio.cc (hostio_error)
2112 * linux-aarch32-low.cc (arm_breakpoint_at)
2113 * linux-aarch64-low.cc (aarch64_breakpoint_at)
2114 * linux-arm-low.cc (arm_sigreturn_next_pc)
2116 (arm_get_syscall_trapinfo)
2117 * linux-cris-low.cc (cris_breakpoint_at)
2118 * linux-crisv32-low.cc (cris_breakpoint_at)
2119 * linux-low.cc (handle_extended_wait)
2122 (linux_process_target::breakpoint_kind_from_pc)
2124 * linux-m32r-low.cc (m32r_breakpoint_at)
2125 * linux-mips-low.cc (mips_breakpoint_at)
2126 * linux-nios2-low.cc (nios2_breakpoint_at)
2127 * linux-ppc-low.cc (ppc_breakpoint_at)
2128 * linux-s390-low.cc (s390_get_hwcap)
2129 * linux-sh-low.cc (sh_breakpoint_at)
2130 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
2131 (sparc_store_gregset_from_stack)
2132 (sparc_breakpoint_at)
2133 * linux-tic6x-low.cc (tic6x_breakpoint_at)
2134 * linux-tile-low.cc (tile_breakpoint_at)
2135 * linux-x86-low.cc (x86_breakpoint_at)
2136 * linux-xtensa-low.cc (xtensa_breakpoint_at)
2137 * mem-break.cc (bp_size)
2139 (insert_memory_breakpoint)
2140 (set_raw_breakpoint_at)
2141 (delete_raw_breakpoint)
2143 (uninsert_raw_breakpoint)
2144 (reinsert_raw_breakpoint)
2145 (validate_inserted_breakpoint)
2146 * regcache.cc (regcache_read_pc)
2148 * remote-utils.cc (putpkt_binary_1)
2151 (prepare_resume_reply)
2152 * server.cc (handle_general_set)
2155 (handle_qxfer_exec_file)
2156 (handle_qxfer_libraries_svr4)
2157 (handle_qxfer_osdata)
2158 (handle_qxfer_siginfo)
2159 (handle_qxfer_fdpic)
2163 (queue_stop_reply_callback)
2165 * target.cc (prepare_to_access_memory)
2166 (done_accessing_memory)
2167 (read_inferior_memory)
2168 (target_write_memory)
2169 (target_stop_and_wait)
2171 (target_mourn_inferior)
2172 (target_continue_no_signal)
2174 (target_supports_multi_process)
2177 (target_create_inferior)
2178 (target_post_create_inferior)
2180 (target_supports_fork_events)
2181 (target_supports_vfork_events)
2182 (target_supports_exec_events)
2183 (target_handle_new_gdb_connection)
2186 (fetch_inferior_registers)
2187 (store_inferior_registers)
2189 (target_supports_non_stop)
2191 (target_process_qsupported)
2192 (target_supports_catch_syscall)
2193 (target_get_ipa_tdesc_idx)
2194 (target_supports_tracepoints)
2195 (target_supports_fast_tracepoints)
2196 (target_get_min_fast_tracepoint_insn_len)
2197 (target_thread_stopped)
2199 (target_unpause_all)
2200 (target_stabilize_threads)
2201 (target_install_fast_tracepoint_jump_pad)
2203 (target_supports_disable_randomization)
2204 (target_supports_agent)
2205 (target_enable_btrace)
2206 (target_disable_btrace)
2207 (target_read_btrace)
2208 (target_read_btrace_conf)
2209 (target_supports_range_stepping)
2210 (target_supports_stopped_by_sw_breakpoint)
2211 (target_stopped_by_sw_breakpoint)
2212 (target_supports_stopped_by_hw_breakpoint)
2213 (target_supports_hardware_single_step)
2214 (target_stopped_by_hw_breakpoint)
2215 (target_breakpoint_kind_from_pc)
2216 (target_breakpoint_kind_from_current_state)
2217 (target_supports_software_single_step)
2218 (target_core_of_thread)
2219 (target_thread_name)
2220 (target_thread_handle)
2221 * win32-low.cc (do_initial_child_stuff)
2223 Rename target op default definitions listed below.
2225 * target.cc (process_target::post_create_inferior): Rename as ...
2226 (process_stratum_target::post_create_inferior): ... this.
2227 (process_target::prepare_to_access_memory): Rename as ...
2228 (process_stratum_target::prepare_to_access_memory): ... this.
2229 (process_target::done_accessing_memory): Rename as ...
2230 (process_stratum_target::done_accessing_memory): ... this.
2231 (process_target::look_up_symbols): Rename as ...
2232 (process_stratum_target::look_up_symbols): ... this.
2233 (process_target::supports_read_auxv): Rename as ...
2234 (process_stratum_target::supports_read_auxv): ... this.
2235 (process_target::read_auxv): Rename as ...
2236 (process_stratum_target::read_auxv): ... this.
2237 (process_target::supports_z_point_type): Rename as ...
2238 (process_stratum_target::supports_z_point_type): ... this.
2239 (process_target::insert_point): Rename as ...
2240 (process_stratum_target::insert_point): ... this.
2241 (process_target::remove_point): Rename as ...
2242 (process_stratum_target::remove_point): ... this.
2243 (process_target::stopped_by_sw_breakpoint): Rename as ...
2244 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
2245 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
2246 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
2247 (process_target::stopped_by_hw_breakpoint): Rename as ...
2248 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
2249 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
2250 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
2251 (process_target::supports_hardware_single_step): Rename as ...
2252 (process_stratum_target::supports_hardware_single_step): ... this.
2253 (process_target::stopped_by_watchpoint): Rename as ...
2254 (process_stratum_target::stopped_by_watchpoint): ... this.
2255 (process_target::stopped_data_address): Rename as ...
2256 (process_stratum_target::stopped_data_address): ... this.
2257 (process_target::supports_read_offsets): Rename as ...
2258 (process_stratum_target::supports_read_offsets): ... this.
2259 (process_target::read_offsets): Rename as ...
2260 (process_stratum_target::read_offsets): ... this.
2261 (process_target::supports_get_tls_address): Rename as ...
2262 (process_stratum_target::supports_get_tls_address): ... this.
2263 (process_target::get_tls_address): Rename as ...
2264 (process_stratum_target::get_tls_address): ... this.
2265 (process_target::hostio_last_error): Rename as ...
2266 (process_stratum_target::hostio_last_error): ... this.
2267 (process_target::supports_qxfer_osdata): Rename as ...
2268 (process_stratum_target::supports_qxfer_osdata): ... this.
2269 (process_target::qxfer_osdata): Rename as ...
2270 (process_stratum_target::qxfer_osdata): ... this.
2271 (process_target::supports_qxfer_siginfo): Rename as ...
2272 (process_stratum_target::supports_qxfer_siginfo): ... this.
2273 (process_target::qxfer_siginfo): Rename as ...
2274 (process_stratum_target::qxfer_siginfo): ... this.
2275 (process_target::supports_non_stop): Rename as ...
2276 (process_stratum_target::supports_non_stop): ... this.
2277 (process_target::async): Rename as ...
2278 (process_stratum_target::async): ... this.
2279 (process_target::start_non_stop): Rename as ...
2280 (process_stratum_target::start_non_stop): ... this.
2281 (process_target::supports_multi_process): Rename as ...
2282 (process_stratum_target::supports_multi_process): ... this.
2283 (process_target::supports_fork_events): Rename as ...
2284 (process_stratum_target::supports_fork_events): ... this.
2285 (process_target::supports_vfork_events): Rename as ...
2286 (process_stratum_target::supports_vfork_events): ... this.
2287 (process_target::supports_exec_events): Rename as ...
2288 (process_stratum_target::supports_exec_events): ... this.
2289 (process_target::handle_new_gdb_connection): Rename as ...
2290 (process_stratum_target::handle_new_gdb_connection): ... this.
2291 (process_target::handle_monitor_command): Rename as ...
2292 (process_stratum_target::handle_monitor_command): ... this.
2293 (process_target::core_of_thread): Rename as ...
2294 (process_stratum_target::core_of_thread): ... this.
2295 (process_target::supports_read_loadmap): Rename as ...
2296 (process_stratum_target::supports_read_loadmap): ... this.
2297 (process_target::read_loadmap): Rename as ...
2298 (process_stratum_target::read_loadmap): ... this.
2299 (process_target::process_qsupported): Rename as ...
2300 (process_stratum_target::process_qsupported): ... this.
2301 (process_target::supports_tracepoints): Rename as ...
2302 (process_stratum_target::supports_tracepoints): ... this.
2303 (process_target::read_pc): Rename as ...
2304 (process_stratum_target::read_pc): ... this.
2305 (process_target::write_pc): Rename as ...
2306 (process_stratum_target::write_pc): ... this.
2307 (process_target::supports_thread_stopped): Rename as ...
2308 (process_stratum_target::supports_thread_stopped): ... this.
2309 (process_target::thread_stopped): Rename as ...
2310 (process_stratum_target::thread_stopped): ... this.
2311 (process_target::supports_get_tib_address): Rename as ...
2312 (process_stratum_target::supports_get_tib_address): ... this.
2313 (process_target::get_tib_address): Rename as ...
2314 (process_stratum_target::get_tib_address): ... this.
2315 (process_target::pause_all): Rename as ...
2316 (process_stratum_target::pause_all): ... this.
2317 (process_target::unpause_all): Rename as ...
2318 (process_stratum_target::unpause_all): ... this.
2319 (process_target::stabilize_threads): Rename as ...
2320 (process_stratum_target::stabilize_threads): ... this.
2321 (process_target::supports_fast_tracepoints): Rename as ...
2322 (process_stratum_target::supports_fast_tracepoints): ... this.
2323 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
2324 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
2325 (process_target::emit_ops): Rename as ...
2326 (process_stratum_target::emit_ops): ... this.
2327 (process_target::supports_disable_randomization): Rename as ...
2328 (process_stratum_target::supports_disable_randomization): ... this.
2329 (process_target::supports_qxfer_libraries_svr4): Rename as ...
2330 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
2331 (process_target::qxfer_libraries_svr4): Rename as ...
2332 (process_stratum_target::qxfer_libraries_svr4): ... this.
2333 (process_target::supports_agent): Rename as ...
2334 (process_stratum_target::supports_agent): ... this.
2335 (process_target::enable_btrace): Rename as ...
2336 (process_stratum_target::enable_btrace): ... this.
2337 (process_target::disable_btrace): Rename as ...
2338 (process_stratum_target::disable_btrace): ... this.
2339 (process_target::read_btrace): Rename as ...
2340 (process_stratum_target::read_btrace): ... this.
2341 (process_target::read_btrace_conf): Rename as ...
2342 (process_stratum_target::read_btrace_conf): ... this.
2343 (process_target::supports_range_stepping): Rename as ...
2344 (process_stratum_target::supports_range_stepping): ... this.
2345 (process_target::supports_pid_to_exec_file): Rename as ...
2346 (process_stratum_target::supports_pid_to_exec_file): ... this.
2347 (process_target::pid_to_exec_file): Rename as ...
2348 (process_stratum_target::pid_to_exec_file): ... this.
2349 (process_target::supports_multifs): Rename as ...
2350 (process_stratum_target::supports_multifs): ... this.
2351 (process_target::multifs_open): Rename as ...
2352 (process_stratum_target::multifs_open): ... this.
2353 (process_target::multifs_unlink): Rename as ...
2354 (process_stratum_target::multifs_unlink): ... this.
2355 (process_target::multifs_readlink): Rename as ...
2356 (process_stratum_target::multifs_readlink): ... this.
2357 (process_target::breakpoint_kind_from_pc): Rename as ...
2358 (process_stratum_target::breakpoint_kind_from_pc): ... this.
2359 (process_target::breakpoint_kind_from_current_state): Rename as ...
2360 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
2361 (process_target::thread_name): Rename as ...
2362 (process_stratum_target::thread_name): ... this.
2363 (process_target::thread_handle): Rename as ...
2364 (process_stratum_target::thread_handle): ... this.
2365 (process_target::supports_software_single_step): Rename as ...
2366 (process_stratum_target::supports_software_single_step): ... this.
2367 (process_target::supports_catch_syscall): Rename as ...
2368 (process_stratum_target::supports_catch_syscall): ... this.
2369 (process_target::get_ipa_tdesc_idx): Rename as ...
2370 (process_stratum_target::get_ipa_tdesc_idx): ... this.
2372 2020-02-20 Pedro Alves <palves@redhat.com>
2374 * target.cc (set_target_ops): Simply copy the given target pointer
2375 instead of creating a copy of the pointed object.
2377 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2379 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
2382 * target.h (struct process_stratum_target): Remove the target op.
2383 (class process_target): Add the target op.
2384 (target_get_ipa_tdesc_idx): Update the macro.
2385 * target.cc (process_target::get_ipa_tdesc_idx): Define.
2387 Update the derived classes and callers below.
2389 * linux-low.cc (linux_target_ops): Update.
2390 (linux_get_ipa_tdesc_idx): Turn into ...
2391 (linux_process_target::get_ipa_tdesc_idx): ... this.
2392 * linux-low.h (class linux_process_target): Update.
2393 * lynx-low.cc (lynx_target_ops): Update.
2394 * nto-low.cc (nto_target_ops): Update.
2395 * win32-low.cc (win32_target_ops): Update.
2397 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2399 Turn process_stratum_target's supports_catch_syscall op into a
2400 method of process_target.
2402 * target.h (struct process_stratum_target): Remove the target op.
2403 (class process_target): Add the target op.
2404 (target_supports_catch_syscall): Update the macro.
2405 * target.cc (process_target::supports_catch_syscall): Define.
2407 Update the derived classes and callers below.
2409 * linux-low.cc (linux_target_ops): Update.
2410 (linux_supports_catch_syscall): Turn into ...
2411 (linux_process_target::supports_catch_syscall): ... this.
2412 * linux-low.h (class linux_process_target): Update.
2413 * lynx-low.cc (lynx_target_ops): Update.
2414 * nto-low.cc (nto_target_ops): Update.
2415 * win32-low.cc (win32_target_ops): Update.
2417 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2419 Turn process_stratum_target's supports_software_single_step op
2420 into a method of process_target.
2422 * target.h (struct process_stratum_target): Remove the target op.
2423 (class process_target): Add the target op.
2424 (target_supports_software_single_step): Update the macro.
2425 * target.cc (process_target::supports_software_single_step): Define.
2427 Update the derived classes and callers below.
2429 * linux-low.cc (linux_target_ops): Update.
2430 (linux_supports_software_single_step): Turn into ...
2431 (linux_process_target::supports_software_single_step): ... this.
2432 * linux-low.h (class linux_process_target): Update.
2433 * lynx-low.cc (lynx_target_ops): Update.
2434 * nto-low.cc (nto_target_ops): Update.
2435 * win32-low.cc (win32_target_ops): Update.
2437 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2439 Turn process_stratum_target's thread_name and thread_handle ops
2440 into methods of process_target.
2442 * target.h (struct process_stratum_target): Remove the target ops.
2443 (class process_target): Add the target ops.
2444 (target_thread_name): Update the macro.
2445 (target_thread_handle): Update the macro.
2446 * target.cc (process_target::thread_name): Define.
2447 (process_target::thread_handle): Define.
2449 Update the derived classes and callers below.
2451 * linux-low.cc (linux_target_ops): Update.
2452 (linux_process_target::thread_name): Define.
2453 (linux_process_target::thread_handle): Define.
2454 * linux-low.h (class linux_process_target): Update.
2455 * lynx-low.cc (lynx_target_ops): Update.
2456 * nto-low.cc (nto_target_ops): Update.
2457 * win32-low.cc (win32_target_ops): Update.
2459 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2461 Turn process_stratum_target's breakpoint_kind_from_pc,
2462 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
2463 ops into methods of process_target.
2465 * target.h (struct process_stratum_target): Remove the target op.
2466 (class process_target): Add the target op.
2467 (target_breakpoint_kind_from_pc): Update the macro.
2468 (target_breakpoint_kind_from_current_state): Update the macro.
2469 (default_breakpoint_kind_from_pc): Remove declaration.
2470 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
2471 (process_target::breakpoint_kind_from_pc): ... this.
2472 (process_target::breakpoint_kind_from_current_state): Define.
2474 Update the derived classes and callers below.
2476 * mem-break.cc (bp_size): Update.
2477 (bp_opcode): Update.
2478 * linux-low.cc (linux_target_ops): Update.
2479 (linux_wait_1): Update.
2480 (linux_breakpoint_kind_from_pc): Turn into ...
2481 (linux_process_target::breakpoint_kind_from_pc): ... this.
2482 (linux_sw_breakpoint_from_kind): Turn into ...
2483 (linux_process_target::sw_breakpoint_from_kind): ... this.
2484 (linux_breakpoint_kind_from_current_state): Turn into ...
2485 (linux_process_target::breakpoint_kind_from_current_state): ... this.
2486 * linux-low.h (class linux_process_target): Update.
2487 * lynx-low.cc (lynx_target_ops): Update.
2488 (lynx_process_target::sw_breakpoint_from_kind): Define.
2489 * lynx-low.h (class lynx_process_target): Update.
2490 * nto-low.cc (nto_target_ops): Update.
2491 (nto_sw_breakpoint_from_kind): Turn into ...
2492 (nto_process_target::sw_breakpoint_from_kind): ... this.
2493 * nto-low.h (class nto_process_target): Update.
2494 * win32-low.cc (win32_target_ops): Update.
2495 (win32_sw_breakpoint_from_kind): Turn into ...
2496 (win32_process_target::sw_breakpoint_from_kind): ... this.
2497 * win32-low.h (class win32_process_target): Update.
2499 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2501 Turn process_stratum_target's multifs_open, multifs_readlink,
2502 multifs_unlink ops into methods of process_target.
2504 * target.h (struct process_stratum_target): Remove the target ops.
2505 (class process_target): Add the target ops. Also add
2507 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
2509 (process_target::supports_multifs): Define.
2510 (process_target::multifs_open): Define.
2511 (process_target::multifs_readlink): Define.
2512 (process_target::multifs_unlink): Define.
2514 Update the derived classes and callers below.
2516 * hostio.cc (handle_setfs): Update.
2517 (handle_open): Update.
2518 (handle_unlink): Update.
2519 (handle_readlink): Update.
2520 * linux-low.cc (linux_target_ops): Update.
2521 (linux_process_target::supports_multifs): Define.
2522 (linux_process_target::multifs_open): Define.
2523 (linux_process_target::multifs_readlink): Define.
2524 (linux_process_target::multifs_unlink): Define.
2525 * linux-low.h (class linux_process_target): Update.
2526 * lynx-low.cc (lynx_target_ops): Update.
2527 * nto-low.cc (nto_target_ops): Update.
2528 * win32-low.cc (win32_target_ops): Update.
2530 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2532 Turn process_stratum_target's pid_to_exec_file op into a method
2535 * target.h (struct process_stratum_target): Remove the target op.
2536 (class process_target): Add the target op. Also add
2537 'supports_pid_to_exec_file'.
2538 * target.cc (process_target::pid_to_exec_file): Define.
2539 (process_target::supports_pid_to_exec_file): Define.
2541 Update the derived classes and callers below.
2543 * server.cc (handle_qxfer_exec_file): Update.
2544 (handle_query): Update.
2545 * linux-low.cc (linux_target_ops): Update.
2546 (linux_process_target::supports_pid_to_exec_file): Define.
2547 (linux_process_target::pid_to_exec_file): Define.
2548 * linux-low.h (class linux_process_target): Update.
2549 * lynx-low.cc (lynx_target_ops): Update.
2550 * nto-low.cc (nto_target_ops): Update.
2551 * win32-low.cc (win32_target_ops): Update.
2553 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2555 Turn process_stratum_target's supports_range_stepping op into a
2556 method of process_target.
2558 * target.h (struct process_stratum_target): Remove the target op.
2559 (class process_target): Add the target op.
2560 (target_supports_range_stepping): Update the macro.
2561 * target.cc (process_target::supports_range_stepping): Define.
2563 Update the derived classes and callers below.
2565 * linux-low.cc (linux_target_ops): Update.
2566 (linux_supports_range_stepping): Turn into ...
2567 (linux_process_target::supports_range_stepping): ... this.
2568 * linux-low.h (class linux_process_target): Update.
2569 * lynx-low.cc (lynx_target_ops): Update.
2570 * nto-low.cc (nto_target_ops): Update.
2571 * win32-low.cc (win32_target_ops): Update.
2573 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2575 Turn process_stratum_target's btrace-related ops (enable_btrace,
2576 disable_btrace, read_btrace, read_btrace_conf) into methods of
2579 * target.h (struct process_stratum_target): Remove the target ops.
2580 (class process_target): Add the target ops.
2581 (target_enable_btrace): Update.
2582 (target_disable_btrace): Update.
2583 (target_read_btrace): Update.
2584 (target_read_btrace_conf): Update.
2585 * target.cc (process_target::enable_btrace): Define.
2586 (process_target::disable_btrace): Define.
2587 (process_target::read_btrace): Define.
2588 (process_target::read_btrace_conf): Define.
2590 Update the derived classes and callers below.
2592 * linux-low.cc (linux_target_ops): Update.
2593 (linux_process_target:enable_btrace): Define as a wrapper around
2594 linux_enable_btrace.
2595 (linux_low_disable_btrace): Turn into ...
2596 (linux_process_target::disable_btrace): ... this.
2597 (linux_low_read_btrace): Turn into ...
2598 (linux_process_target::read_btrace): ... this.
2599 (linux_low_btrace_conf): Turn into ...
2600 (linux_process_target::read_btrace_conf): ... this.
2601 * linux-low.h (class linux_process_target): Update.
2602 * lynx-low.cc (lynx_target_ops): Update.
2603 * nto-low.cc (nto_target_ops): Update.
2604 * win32-low.cc (win32_target_ops): Update.
2606 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2608 Turn process_stratum_target's supports_agent op into a method of
2611 * target.h (struct process_stratum_target): Remove the target op.
2612 (class process_target): Add the target op.
2613 (target_supports_agent): Update the macro.
2614 * target.cc (process_target::supports_agent): Define.
2616 Update the derived classes and callers below.
2618 * linux-low.cc (linux_target_ops): Update.
2619 (linux_supports_agent): Turn into ...
2620 (linux_process_target::supports_agent): ... this.
2621 * linux-low.h (class linux_process_target): Update.
2622 * lynx-low.cc (lynx_target_ops): Update.
2623 * nto-low.cc (nto_target_ops): Update.
2624 * win32-low.cc (win32_target_ops): Update.
2626 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2628 Turn process_stratum_target's qxfer_libraries_svr4 op into a
2629 method of process_target.
2631 * target.h (struct process_stratum_target): Remove the target op.
2632 (class process_target): Add the target op. Also add
2633 'supports_qxfer_libraries_svr4'.
2634 * target.cc (process_target::qxfer_libraries_svr4): Define.
2635 (process_target::supports_qxfer_libraries_svr4): Define.
2637 Update the derived classes and callers below.
2639 * server.cc (handle_qxfer_libraries_svr4): Update.
2640 (handle_query): Update.
2641 * linux-low.cc (linux_target_ops): Update.
2642 (linux_process_target::supports_qxfer_libraries_svr4): Define.
2643 (linux_qxfer_libraries_svr4): Turn into ...
2644 (linux_process_target::qxfer_libraries_svr4): ... this.
2645 * linux-low.h (class linux_process_target): Update.
2646 * lynx-low.cc (lynx_target_ops): Update.
2647 * nto-low.cc (nto_target_ops): Update.
2648 * win32-low.cc (win32_target_ops): Update.
2650 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2652 Turn process_stratum_target's supports_disable_randomization op
2653 into a method of process_target.
2655 * target.h (struct process_stratum_target): Remove the target op.
2656 (class process_target): Add the target op.
2657 (target_supports_disable_randomization): Update the macro.
2658 * target.cc (process_target::supports_disable_randomization): Define.
2660 Update the derived classes and callers below.
2662 * linux-low.cc (linux_target_ops): Update.
2663 (linux_supports_disable_randomization): Turn into ...
2664 (linux_process_target::supports_disable_randomization): ... this.
2665 * linux-low.h (class linux_process_target): Update.
2666 * lynx-low.cc (lynx_target_ops): Update.
2667 * nto-low.cc (nto_target_ops): Update.
2668 * win32-low.cc (win32_target_ops): Update.
2670 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2672 Turn process_stratum_target's emit_ops op into a method of
2675 * target.h (struct process_stratum_target): Remove the target op.
2676 (class process_target): Add the target op.
2677 (target_emit_ops): Update the macro.
2678 * target.cc (process_target::emit_ops): Define.
2680 Update the derived classes and callers below.
2682 * linux-low.cc (linux_target_ops): Update.
2683 (linux_emit_ops): Turn into ...
2684 (linux_process_target::emit_ops): ... this.
2685 * linux-low.h (class linux_process_target): Update.
2686 * lynx-low.cc (lynx_target_ops): Update.
2687 * nto-low.cc (nto_target_ops): Update.
2688 * win32-low.cc (win32_target_ops): Update.
2690 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2692 Turn process_stratum_target's install_fast_tracepoint_jump_pad
2693 and get_min_fast_tracepoint_insn_len ops into methods of
2696 * target.h (struct process_stratum_target): Remove the target ops.
2697 (class process_target): Add the target ops. Also add
2698 'supports_fast_tracepoints'.
2699 (target_supports_fast_tracepoints): Update the macro.
2700 (target_get_min_fast_tracepoint_insn_len): Update the macro.
2701 (install_fast_tracepoint_jump_pad): Update and rename the macro
2703 (target_install_fast_tracepoint_jump_pad): ... this.
2704 * target.cc (process_target::supports_fast_tracepoints): Define.
2705 (process_target::install_fast_tracepoint_jump_pad): Define.
2706 (process_target::get_min_fast_tracepoint_insn_len): Define.
2708 Update the derived classes and callers below.
2710 * tracepoint.cc (install_fast_tracepoint): Update.
2711 * linux-low.cc (linux_target_ops): Update.
2712 (linux_process_target::supports_fast_tracepoints): Define.
2713 (linux_install_fast_tracepoint_jump_pad): Turn into ...
2714 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
2715 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
2716 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
2717 * linux-low.h (class linux_process_target): Update.
2718 * lynx-low.cc (lynx_target_ops): Update.
2719 * nto-low.cc (nto_target_ops): Update.
2720 * win32-low.cc (win32_target_ops): Update.
2722 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2724 Turn process_stratum_target's stabilize_threads op into a
2725 method of process_target.
2727 * target.h (struct process_stratum_target): Remove the target op.
2728 (class process_target): Add the target op.
2729 (target_stabilize_threads): Update the macro.
2730 * target.cc (process_target::stabilize_threads): Define.
2732 Update the derived classes and callers below.
2734 * server.cc (handle_status): Update.
2735 * tracepoint.cc (cmd_qtdp): Update.
2736 (cmd_qtstart): Update.
2737 * linux-low.cc (linux_target_ops): Update.
2738 (linux_stabilize_threads): Turn into ...
2739 (linux_process_target::stabilize_threads): ... this.
2740 (linux_wait_1): Update.
2741 * linux-low.h (class linux_process_target): Update.
2742 * lynx-low.cc (lynx_target_ops): Update.
2743 * nto-low.cc (nto_target_ops): Update.
2744 * win32-low.cc (win32_target_ops): Update.
2746 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2748 Turn process_stratum_target's pause_all and unpause_all ops
2749 into methods of process_target.
2751 * target.h (struct process_stratum_target): Remove the target ops.
2752 (class process_target): Add the target ops.
2753 (pause_all): Update the macro and rename to...
2754 (target_pause_all): ... this.
2755 (unpause_all): Update the macro and rename to...
2756 (target_unpause_all): ... this.
2757 * target.cc (process_target::pause_all): Define.
2758 (process_target::unpause_all): Define.
2760 Update the derived classes and callers below.
2762 * server.cc (handle_status): Update.
2763 * tracepoint.cc (clear_installed_tracepoints): Update.
2765 (cmd_qtstart): Update.
2766 (stop_tracing): Update.
2767 (cmd_qtstatus): Update.
2768 (upload_fast_traceframes): Update.
2769 (run_inferior_command): Update.
2770 * linux-low.cc (linux_target_ops): Update.
2771 (linux_pause_all): Turn into ...
2772 (linux_process_target::pause_all): ... this.
2773 (linux_unpause_all): Turn into ...
2774 (linux_process_target::unpause_all): ... this.
2775 (linux_process_target::prepare_to_access_memory): Update.
2776 (linux_process_target::done_accessing_memory): Update.
2777 * linux-low.h (class linux_process_target): Update.
2778 * lynx-low.cc (lynx_target_ops): Update.
2779 * nto-low.cc (nto_target_ops): Update.
2780 * win32-low.cc (win32_target_ops): Update.
2782 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2784 Turn process_stratum_target's get_tib_address op into a method of
2787 * target.h (struct process_stratum_target): Remove the target op.
2788 (class process_target): Add the target op. Also add
2789 'supports_get_tib_address'.
2790 * target.cc (process_target::get_tib_address): Define.
2791 (process_target::supports_get_tib_address): Define.
2793 Update the derived classes and callers below.
2795 * server.cc (handle_query): Update.
2796 * linux-low.cc (win32_target_ops): Update.
2797 * lynx-low.cc (lynx_target_ops): Update.
2798 * nto-low.cc (nto_target_ops): Update.
2799 * win32-low.cc (win32_target_ops): Update.
2800 (win32_process_target::supports_get_tib_address): Define.
2801 (win32_get_tib_address): Turn into ...
2802 (win32_process_target::get_tib_address): ... this.
2803 * win32-low.h (class win32_process_target): Update.
2805 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2807 Turn process_stratum_target's thread_stopped op into a method of
2810 * target.h (struct process_stratum_target): Remove the target op.
2811 (class process_target): Add the target op. Also add
2812 'supports_thread_stopped'.
2813 (target_thread_stopped): Update the macro.
2814 * target.cc (process_target::thread_stopped): Define.
2815 (process_target::supports_thread_stopped): Define.
2816 (prepare_to_access_memory): Update.
2818 Update the derived classes and callers below.
2820 * server.cc (queue_stop_reply_callback): Update.
2821 * linux-low.cc (linux_target_ops): Update.
2822 (linux_process_target::supports_thread_stopped): Define.
2823 (linux_thread_stopped): Turn into ...
2824 (linux_process_target::thread_stopped): ... this.
2825 * linux-low.h (class linux_process_target): Update.
2826 * lynx-low.cc (lynx_target_ops): Update.
2827 * nto-low.cc (nto_target_ops): Update.
2828 * win32-low.cc (win32_target_ops): Update.
2830 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2832 Turn process_stratum_target's read_pc and write_pc ops into
2833 methods of process_target.
2835 * target.h (struct process_stratum_target): Remove the target ops.
2836 (class process_target): Add the target ops.
2837 * target.cc (process_target::read_pc): Define.
2838 (process_target::write_pc): Define.
2840 Update the derived classes and callers below.
2842 * regcache.cc (regcache_read_pc): Update.
2843 (regcache_write_pc): Update.
2844 * linux-low.cc (linux_target_ops): Update.
2845 (linux_read_pc): Turn into ...
2846 (linux_process_target::read_pc): ... this.
2847 (linux_write_pc): Turn into ...
2848 (linux_process_target::write_pc): ... this.
2849 * linux-low.h (class linux_process_target): Update.
2850 * lynx-low.cc (lynx_target_ops): Update.
2851 * nto-low.cc (nto_target_ops): Update.
2852 * win32-low.cc (win32_target_ops): Update.
2854 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2856 Turn process_stratum_target's supports_tracepoints op into a
2857 method of process_target.
2859 * target.h (struct process_stratum_target): Remove the target op.
2860 (class process_target): Add the target op.
2861 (target_supports_tracepoints): Update the macro.
2862 * target.cc (process_target::supports_tracepoints): Define.
2864 Update the derived classes and callers below.
2866 * linux-low.cc (linux_target_ops): Update.
2867 (linux_supports_tracepoints): Turn into ...
2868 (linux_process_target::supports_tracepoints): ... this.
2869 * linux-low.h (class linux_process_target): Update.
2870 * lynx-low.cc (lynx_target_ops): Update.
2871 * nto-low.cc (nto_target_ops): Update.
2872 * win32-low.cc (win32_target_ops): Update.
2874 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2876 Turn process_stratum_target's process_qsupported op into a method
2879 * target.h (struct process_stratum_target): Remove the target op.
2880 (class process_target): Add the target op.
2881 (target_process_qsupported): Update the macro.
2882 * target.cc (process_target::process_qsupported): Define.
2884 Update the derived classes and callers below.
2886 * linux-low.cc (linux_target_ops): Update.
2887 (linux_process_qsupported): Turn into ...
2888 (linux_process_target::process_qsupported): ... this.
2889 * linux-low.h (class linux_process_target): Update.
2890 * lynx-low.cc (lynx_target_ops): Update.
2891 * nto-low.cc (nto_target_ops): Update.
2892 * win32-low.cc (win32_target_ops): Update.
2894 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2896 Turn process_stratum_target's read_loadmap op into a method of
2899 * target.h (struct process_stratum_target): Remove the target op.
2900 (class process_target): Add the target op. Also add
2901 'supports_read_loadmap'.
2902 * target.cc (process_target::read_loadmap): Define.
2903 (process_target::supports_read_loadmap): Define.
2905 Update the derived classes and callers below.
2907 * server.cc (handle_qxfer_fdpic): Update.
2908 (handle_query): Update.
2909 * linux-low.cc (linux_target_ops): Update.
2910 (linux_process_target::supports_read_loadmap): Define.
2911 (linux_read_loadmap): Turn into ...
2912 (linux_process_target::read_loadmap): ... this.
2913 * linux-low.h (class linux_process_target): Update.
2914 * lynx-low.cc (lynx_target_ops): Update.
2915 * nto-low.cc (nto_target_ops): Update.
2916 * win32-low.cc (win32_target_ops): Update.
2918 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2920 Turn process_stratum_target's core_of_thread op into a method of
2923 * target.h (struct process_stratum_target): Remove the target op.
2924 (class process_target): Add the target op.
2925 (target_core_of_thread): Update the macro.
2926 * target.cc (process_target::core_of_thread): Define.
2928 Update the derived classes and callers below.
2930 * linux-low.cc (linux_target_ops): Update.
2931 (linux_process_target::core_of_thread): Define.
2932 * linux-low.h (class linux_process_target): Update.
2933 * lynx-low.cc (lynx_target_ops): Update.
2934 * nto-low.cc (nto_target_ops): Update.
2935 * win32-low.cc (win32_target_ops): Update.
2937 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2939 Turn process_stratum_target's handle_monitor_command op into a
2940 method of process_target.
2942 * target.h (struct process_stratum_target): Remove the target op.
2943 (class process_target): Add the target op.
2944 (target_handle_monitor_command): Update the macro.
2945 * target.cc (process_target::handle_monitor_command): Define.
2947 Update the derived classes and callers below.
2949 * server.cc (handle_query): Update.
2950 * linux-low.cc (linux_target_ops): Update.
2951 (linux_process_target::handle_monitor_command): Define.
2952 * linux-low.h (class linux_process_target): Update.
2953 * lynx-low.cc (lynx_target_ops): Update.
2954 * nto-low.cc (nto_target_ops): Update.
2955 * win32-low.cc (win32_target_ops): Update.
2957 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2959 Turn process_stratum_target's handle_new_gdb_connection op into a
2960 method of process_target.
2962 * target.h (struct process_stratum_target): Remove the target op.
2963 (class process_target): Add the target op.
2964 (target_handle_new_gdb_connection): Update the macro.
2965 * target.cc (process_target::handle_new_gdb_connection): Define.
2967 Update the derived classes and callers below.
2969 * linux-low.cc (linux_target_ops): Update.
2970 (linux_handle_new_gdb_connection): Turn into ...
2971 (linux_process_target::handle_new_gdb_connection): ... this.
2972 * linux-low.h (class linux_process_target): Update.
2973 * lynx-low.cc (lynx_target_ops): Update.
2974 * nto-low.cc (nto_target_ops): Update.
2975 * win32-low.cc (win32_target_ops): Update.
2977 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2979 Turn process_stratum_target's supports_fork_events,
2980 supports_vfork_events, and supports_exec_events ops into methods
2983 * target.h (struct process_stratum_target): Remove the target ops.
2984 (class process_target): Add the target ops.
2985 (target_supports_fork_events): Update the macro.
2986 (target_supports_vfork_events): Update the macro.
2987 (target_supports_exec_events): Update the macro.
2988 * target.cc (process_target::supports_fork_events): Define.
2989 (process_target::supports_vfork_events): Define.
2990 (process_target::supports_exec_events): Define.
2992 Update the derived classes and callers below.
2994 * linux-low.cc (linux_target_ops): Update.
2995 (linux_supports_fork_events): Turn into ...
2996 (linux_process_target::supports_fork_events): ... this.
2997 (linux_supports_vfork_events): Turn into ...
2998 (linux_process_target::supports_vfork_events): ... this.
2999 (linux_supports_exec_events): Turn into ...
3000 (linux_process_target::supports_exec_events): ... this.
3001 * linux-low.h (class linux_process_target): Update.
3002 * lynx-low.cc (lynx_target_ops): Update.
3003 * nto-low.cc (nto_target_ops): Update.
3004 * win32-low.cc (win32_target_ops): Update.
3006 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3008 Turn process_stratum_target's supports_multi_process op into a
3009 method of process_target.
3011 * target.h (struct process_stratum_target): Remove the target op.
3012 (class process_target): Add the target op.
3013 * target.cc (process_target::supports_multi_process): Define.
3014 (target_supports_multi_process): Update.
3016 Update the derived classes and callers below.
3018 * linux-low.cc (linux_target_ops): Update.
3019 (linux_supports_multi_process): Turn into ...
3020 (linux_process_target::supports_multi_process): ... this.
3021 * linux-low.h (class linux_process_target): Update.
3022 * lynx-low.cc (lynx_target_ops): Update.
3023 * nto-low.cc (nto_target_ops): Update.
3024 * win32-low.cc (win32_target_ops): Update.
3026 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3028 Turn process_stratum_target's supports_non_stop, async, and
3029 start_non_stop ops into methods of process_target.
3031 * target.h (struct process_stratum_target): Remove the target ops.
3032 (class process_target): Add the target ops.
3033 (target_supports_non_stop): Update the macro.
3034 (target_async): Update the macro.
3035 (start_non_stop): Remove declaration.
3036 * target.cc (process_target::supports_non_stop): Define.
3037 (process_target::async): Define.
3038 (process_target::start_non_stop): Define.
3039 (start_non_stop): Remove.
3041 Update the derived classes and callers below.
3043 * server.cc (handle_qxfer_siginfo): Update.
3044 (handle_query): Update.
3045 * linux-low.cc (linux_target_ops): Update.
3046 (linux_supports_non_stop): Turn into ...
3047 (linux_process_target::supports_non_stop): ... this.
3048 (linux_async): Turn into ...
3049 (linux_process_target::async): ... this.
3050 (linux_start_non_stop): Turn into ...
3051 (linux_process_target::start_non_stop): ... this.
3052 * linux-low.h (class linux_process_target): Update.
3053 * lynx-low.cc (lynx_target_ops): Update.
3054 * nto-low.cc (nto_target_ops): Update.
3055 (nto_supports_non_stop): Remove; rely on the default behavior
3057 * win32-low.cc (win32_target_ops): Update.
3059 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3061 Turn process_stratum_target's qxfer_siginfo op into a method of
3064 * target.h (struct process_stratum_target): Remove the target op.
3065 (class process_target): Add the target op. Also add
3066 'supports_qxfer_siginfo'.
3067 * target.cc (process_target::qxfer_siginfo): Define.
3068 (process_target::supports_qxfer_siginfo): Define.
3070 Update the derived classes and callers below.
3072 * server.cc (handle_qxfer_siginfo): Update.
3073 (handle_query): Update.
3074 * linux-low.cc (linux_target_ops): Update.
3075 (linux_process_target::supports_qxfer_siginfo): Define.
3076 (linux_xfer_siginfo): Turn into ...
3077 (linux_process_target::qxfer_siginfo): ... this.
3078 * linux-low.h (class linux_process_target): Update.
3079 * lynx-low.cc (lynx_target_ops): Update.
3080 * nto-low.cc (nto_target_ops): Update.
3081 * win32-low.cc (win32_target_ops): Update.
3083 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3085 Turn process_stratum_target's qxfer_osdata op into a method of
3088 * target.h (struct process_stratum_target): Remove the target op.
3089 (class process_target): Add the target op. Also add
3090 'supports_qxfer_osdata'.
3091 * target.cc (process_target::qxfer_osdata): Define.
3092 (process_target::supports_qxfer_osdata): Define.
3094 Update the derived classes and callers below.
3096 * server.cc (handle_qxfer_osdata): Update.
3097 (handle_query): Update.
3098 * linux-low.cc (linux_target_ops): Update.
3099 (linux_process_target::supports_qxfer_osdata): Define.
3100 (linux_qxfer_osdata): Turn into ...
3101 (linux_process_target::qxfer_osdata): ... this.
3102 * linux-low.h (class linux_process_target): Update.
3103 * lynx-low.cc (lynx_target_ops): Update.
3104 * nto-low.cc (nto_target_ops): Update.
3105 * win32-low.cc (win32_target_ops): Update.
3107 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3109 Turn process_stratum_target's hostio_last_error op into a
3110 method of process_target.
3112 * target.h (struct process_stratum_target): Remove the target op.
3113 (class process_target): Add the target op.
3114 * target.cc: Add "hostio.h" to includes.
3115 (process_target::hostio_last_error): Define.
3117 Update the derived classes and callers below.
3119 * hostio.cc (hostio_error): Update.
3120 * linux-low.cc: Remove "hostio.h" from includes.
3121 (linux_target_ops): Update.
3122 * lynx-low.cc (lynx_target_ops): Update.
3123 * nto-low.cc (nto_target_ops): Update.
3124 * win32-low.h (class win32_process_target): Update.
3125 * win32-low.cc (win32_target_ops): Update.
3126 (wince_hostio_last_error): Turn into ...
3127 (win32_process_target::hostio_last_error): ... this.
3129 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3131 Turn process_stratum_target's get_tls_address op into a method of
3134 * target.h (struct process_stratum_target): Remove the target op.
3135 (class process_target): Add the target op. Also add
3136 'supports_get_tls_address'.
3137 * target.cc (process_target::get_tls_address): Define.
3138 (process_target::supports_get_tls_address): Define.
3140 Update the derived classes and callers below.
3142 * server.cc (handle_query): Update.
3143 * linux-low.cc (linux_target_ops): Update.
3144 (linux_process_target::supports_get_tls_address): Define.
3145 (linux_process_target::get_tls_address): Define.
3146 * linux-low.h (class linux_process_target): Update.
3147 * lynx-low.cc (lynx_target_ops): Update.
3148 * nto-low.cc (nto_target_ops): Update.
3149 * win32-low.cc (win32_target_ops): Update.
3151 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3153 Turn process_stratum_target's read_offsets op into a method of
3156 * target.h (struct process_stratum_target): Remove the target op.
3157 (class process_target): Add the target op. Also add
3158 'supports_read_offsets'.
3159 * target.cc (process_target::read_offsets): Define.
3160 (process_target::supports_read_offsets): Define.
3162 Update the derived classes and callers below.
3164 * server.cc (handle_query): Update.
3165 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
3166 (linux_target_ops): Update.
3167 (linux_process_target::supports_read_offsets): Define.
3168 (linux_read_offsets): Turn into ...
3169 (linux_process_target::read_offsets): ... this.
3170 * linux-low.h (class linux_process_target): Update.
3171 * lynx-low.cc (lynx_target_ops): Update.
3172 * nto-low.cc (nto_target_ops): Update.
3173 * win32-low.cc (win32_target_ops): Update.
3175 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3177 Turn process_stratum_target's stopped_by_watchpoint and
3178 stopped_data_address ops into methods of process_target.
3180 * target.h (struct process_stratum_target): Remove the target ops.
3181 (class process_target): Add the target ops.
3182 * target.cc (process_target::stopped_by_watchpoint): Define.
3183 (process_target::stopped_data_address): Define.
3185 Update the derived classes and callers below.
3187 * remote-utils.cc (prepare_resume_reply): Update.
3188 * linux-low.cc (linux_target_ops): Update.
3189 (linux_stopped_by_watchpoint): Turn into ...
3190 (linux_process_target::stopped_by_watchpoint): ... this.
3191 (linux_stopped_data_address): Turn into ...
3192 (linux_process_target::stopped_data_address): ... this.
3193 * linux-low.h (class linux_process_target): Update.
3194 * lynx-low.cc (lynx_target_ops): Update.
3195 * nto-low.cc (nto_target_ops): Update.
3196 (nto_stopped_by_watchpoint): Turn into ...
3197 (nto_process_target::stopped_by_watchpoint): ... this.
3198 (nto_stopped_data_address): Turn into ...
3199 (nto_process_target::stopped_data_address): ... this.
3200 * nto-low.h (class nto_process_target): Update.
3201 * win32-low.cc (win32_target_ops): Update.
3202 (win32_stopped_by_watchpoint): Turn into ...
3203 (win32_process_target::stopped_by_watchpoint): ... this.
3204 (win32_stopped_data_address): Turn into ...
3205 (win32_process_target::stopped_data_address): ... this.
3206 * win32-low.h (class win32_process_target): Update.
3208 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3210 Turn process_stratum_target's supports_hardware_single_step op into
3211 a method of process_target.
3213 * target.h (struct process_stratum_target): Remove the target op.
3214 (class process_target): Add the target op.
3215 (target_supports_hardware_single_step): Update the macro.
3216 (target_can_do_hardware_single_step): Remove declaration.
3217 * target.cc (process_target::supports_hardware_single_step): Define.
3218 (target_can_do_hardware_single_step): Remove.
3220 Update the derived classes and callers below.
3222 * linux-low.h (class linux_process_target): Update.
3223 * linux-low.cc (linux_target_ops): Update.
3224 (linux_supports_hardware_single_step): Turn into ...
3225 (linux_process_target::supports_hardware_single_step): ... this.
3226 * lynx-low.h (class lynx_process_target): Update.
3227 * lynx-low.cc (lynx_target_ops): Update.
3228 (lynx_process_target::supports_hardware_single_step): Define.
3229 * nto-low.h (class nto_process_target): Update.
3230 * nto-low.cc (nto_target_ops): Update.
3231 (nto_process_target::supports_hardware_single_step): Define.
3232 * win32-low.h (class win32_process_target): Update.
3233 * win32-low.cc (win32_target_ops): Update.
3234 (win32_process_target::supports_hardware_single_step): Define.
3236 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3238 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
3239 ops into methods of process_target.
3241 * target.h (struct process_stratum_target): Remove the target ops.
3242 (class process_target): Add the target ops.
3243 (target_stopped_by_hw_breakpoint): Update the macro.
3244 (target_supports_stopped_by_hw_breakpoint): Update the macro.
3245 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
3246 (process_target::supports_stopped_by_hw_breakpoint): Define.
3248 Update the derived classes and callers below.
3250 * linux-low.cc (linux_target_ops): Update.
3251 (linux_stopped_by_hw_breakpoint): Turn into ...
3252 (linux_process_target::stopped_by_hw_breakpoint): ... this.
3253 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
3254 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
3255 * linux-low.h (class linux_process_target): Update.
3256 * lynx-low.cc (lynx_target_ops): Update.
3257 * nto-low.cc (nto_target_ops): Update.
3258 * win32-low.cc (win32_target_ops): Update.
3260 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3262 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
3263 ops into methods of process_target.
3265 * target.h (struct process_stratum_target): Remove the target ops.
3266 (class process_target): Add the target ops.
3267 (target_stopped_by_sw_breakpoint): Update the macro.
3268 (target_supports_stopped_by_sw_breakpoint): Update the macro.
3269 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
3270 (process_target::supports_stopped_by_sw_breakpoint): Define.
3272 Update the derived classes and callers below.
3274 * linux-low.cc (linux_target_ops): Update.
3275 (linux_stopped_by_sw_breakpoint): Turn into ...
3276 (linux_process_target::stopped_by_sw_breakpoint): ... this.
3277 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
3278 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
3279 * linux-low.h (class linux_process_target): Update.
3280 * lynx-low.cc (lynx_target_ops): Update.
3281 * nto-low.cc (nto_target_ops): Update.
3282 * win32-low.cc (win32_target_ops): Update.
3284 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3286 Turn process_stratum_target's insert_point and remove_point ops
3287 into methods of process_target.
3289 * target.h (struct process_stratum_target): Remove the target ops.
3290 (class process_target): Add the target ops.
3291 * target.cc (process_target::insert_point): Define.
3292 (process_target::remove_point): Define.
3294 Update the derived classes and callers below.
3296 * mem-break.cc (set_raw_breakpoint_at): Update.
3297 (delete_raw_breakpoint): Update.
3298 (uninsert_raw_breakpoint): Update.
3299 (reinsert_raw_breakpoint): Update.
3300 * linux-low.cc (linux_target_ops): Update.
3301 (linux_insert_point): Turn into ...
3302 (linux_process_target::insert_point): ... this.
3303 (linux_remove_point): Turn into ...
3304 (linux_process_target::remove_point): ... this.
3305 * linux-low.h (class linux_process_target): Update.
3306 * lynx-low.cc (lynx_target_ops): Update.
3307 * nto-low.cc (nto_target_ops): Update.
3308 (nto_insert_point): Turn into ...
3309 (nto_process_target::insert_point): ... this.
3310 (nto_remove_point): Turn into ...
3311 (nto_process_target::remove_point): ... this.
3312 * nto-low.h (class nto_process_target): Update.
3313 * win32-low.cc (win32_target_ops): Update.
3314 (win32_insert_point): Turn into ...
3315 (win32_process_target::insert_point): ... this.
3316 (win32_remove_point): Turn into ...
3317 (win32_process_target::remove_point): ... this.
3318 * win32-low.h (class win32_process_target): Update.
3320 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3322 Turn process_stratum_target's supports_z_point_type op into a
3323 method of process_target.
3325 * target.h (struct process_stratum_target): Remove the target op.
3326 (class process_target): Add the target op.
3327 * target.cc (process_target::supports_z_point_type): Define.
3329 Update the derived classes and callers below.
3331 * mem-break.cc (z_type_supported): Update.
3332 * linux-low.cc (linux_target_ops): Update.
3333 (linux_supports_z_point_type): Turn into ...
3334 (linux_process_target::supports_z_point_type): ... this.
3335 * linux-low.h (class linux_process_target): Update.
3336 * lynx-low.cc (lynx_target_ops): Update.
3337 * nto-low.cc (nto_target_ops): Update.
3338 (nto_supports_z_point_type): Turn into ...
3339 (nto_process_target::supports_z_point_type): ... this.
3340 * nto-low.h (class nto_process_target): Update.
3341 * win32-low.cc (win32_target_ops): Update.
3342 (win32_supports_z_point_type): Turn into ...
3343 (win32_process_target::supports_z_point_type): ... this.
3344 * win32-low.h (class win32_process_target): Update.
3346 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3348 Turn process_stratum_target's read_auxv op into a method of
3351 * target.h (class process_stratum_target): Remove the target op.
3352 (struct process_target): Add the target op. Also add
3353 'supports_read_auxv'.
3354 * target.cc (process_target::read_auxv): Define.
3355 (process_target::supports_read_auxv): Define.
3357 Update the derived classes and callers below.
3359 * server.cc (handle_qxfer_auxv): Update.
3360 (handle_query): Update.
3361 * linux-low.cc (linux_target_ops): Update.
3362 (linux_process_target::supports_read_auxv): Define.
3363 (linux_read_auxv): Turn into ...
3364 (linux_process_target::read_auxv): ... this.
3365 * linux-low.h (class linux_process_target): Update.
3366 * lynx-low.cc (lynx_target_ops): Update.
3367 * nto-low.cc (nto_target_ops): Update.
3368 (nto_process_target::supports_read_auxv): Define.
3369 (nto_read_auxv): Turn into ...
3370 (nto_process_target::read_auxv): ... this.
3371 * nto-low.h (class nto_process_target): Update.
3372 * win32-low.cc (win32_target_ops): Update.
3374 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3376 Turn process_stratum_target's request_interrupt op into a method of
3379 * target.h (struct process_stratum_target): Remove the target op.
3380 (class process_target): Add the target op.
3382 Update the derived classes and callers below.
3384 * remote-utils.cc (putpkt_binary_1): Update.
3385 (input_interrupt): Update.
3387 * server.cc (handle_v_requests): Update.
3388 * linux-low.cc (linux_target_ops): Update.
3389 (linux_request_interrupt): Turn into ...
3390 (linux_process_target::request_interrupt): ... this.
3391 * linux-low.h (class linux_process_target): Update.
3392 * lynx-low.cc (lynx_target_ops): Update.
3393 (lynx_request_interrupt): Turn into ...
3394 (lynx_process_target::request_interrupt): ... this.
3395 * lynx-low.h (class lynx_process_target): Update.
3396 * nto-low.cc (nto_target_ops): Update.
3397 (nto_request_interrupt): Turn into ...
3398 (nto_process_target::request_interrupt): ... this.
3399 * nto-low.h (class nto_process_target): Update.
3400 * win32-low.cc (win32_target_ops): Update.
3401 (win32_request_interrupt): Turn into ...
3402 (win32_process_target::request_interrupt): ... this.
3403 * win32-low.h (class win32_process_target): Update.
3405 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3407 Turn process_stratum_target's look_up_symbols op into a method of
3410 * target.h (struct process_stratum_target): Remove the target op.
3411 (class process_target): Add the target op.
3412 * target.cc (process_target::look_up_symbols): Define.
3414 Update the derived classes and callers below.
3416 * server.cc (handle_query): Update.
3417 * linux-low.cc (linux_target_ops): Update.
3418 (linux_look_up_symbols): Turn into ...
3419 (linux_process_target::look_up_symbols): ... this.
3420 * linux-low.h (class linux_process_target): Update.
3421 * lynx-low.cc (lynx_target_ops): Update.
3422 * nto-low.cc (nto_target_ops): Update.
3423 * win32-low.cc (win32_target_ops): Update.
3425 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3427 Turn process_stratum_target's read_memory and write_memory
3428 ops into methods of process_target.
3430 * target.h (struct process_stratum_target): Remove the target ops.
3431 (class process_target): Add the target ops.
3433 Update the derived classes and callers below.
3435 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
3436 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
3437 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
3438 (arm_get_syscall_trapinfo): Update.
3439 * linux-cris-low.cc (cris_breakpoint_at): Update.
3440 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
3441 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
3442 * linux-mips-low.cc (mips_breakpoint_at): Update.
3443 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
3444 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
3445 * linux-sh-low.cc (sh_breakpoint_at): Update.
3446 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
3447 (sparc_store_gregset_from_stack): Update.
3448 (sparc_breakpoint_at): Update.
3449 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
3450 * linux-tile-low.cc (tile_breakpoint_at): Update.
3451 * linux-x86-low.cc (x86_breakpoint_at): Update.
3452 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
3453 * mem-brea.cc (insert_memory_breakpoint): Update.
3454 (validate_inserted_breakpoint): Update.
3455 * target.cc (read_inferior_memory): Update.
3456 (target_write_memory): Update.
3457 * linux-low.cc (linux_target_ops): Update.
3458 (linux_read_memory): Make a wrapper around the read_memory target
3460 (linux_process_target::read_memory): Rename from linux_read_memory.
3461 (linux_write_memory): Turn into ...
3462 (linux_process_target::write_memory): ... this.
3463 * linux-low.h (class linux_process_target): Update.
3464 * lynx-low.cc (lynx_target_ops): Update.
3465 (lynx_read_memory): Turn into ...
3466 (lynx_process_target::read_memory): ... this.
3467 (lynx_write_memory): Turn into ...
3468 (lynx_process_target::write_memory): ... this.
3469 * lynx-low.h (class lynx_process_target): Update.
3470 * nto-low.cc (nto_target_ops): Update.
3471 (nto_read_memory): Turn into ...
3472 (nto_process_target::read_memory): ... this.
3473 (nto_write_memory): Turn into ...
3474 (nto_process_target::write_memory): ... this.
3475 * nto-low.h (class nto_process_target): Update.
3476 * win32-low.cc (win32_target_ops): Update.
3477 (win32_read_inferior_memory): Turn into ...
3478 (win32_process_target::read_memory): ... this.
3479 (win32_write_inferior_memory): Turn into ...
3480 (win32_process_target::write_memory): ... this.
3481 * win32-low.h (class win32_process_target): Update.
3483 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3485 Turn process_stratum_target's prepare_to_access_memory and
3486 done_accessing_memory ops into methods of process_target.
3488 * target.h (struct process_stratum_target): Remove the target ops.
3489 (class process_target): Add the target ops.
3490 * target.cc (process_target::prepare_to_access_memory): Define.
3491 (process_target::done_accessing_memory): Define.
3492 (prepare_to_access_memory): Update.
3493 (done_accessing_memory): Update.
3495 Update the derived classes and callers below.
3497 * linux-low.cc (linux_target_ops): Update.
3498 (linux_prepare_to_access_memory): Turn into ...
3499 (linux_process_target::prepare_to_access_memory): ... this.
3500 (linux_done_accessing_memory): Turn into ...
3501 (linux_process_target::done_accessing_memory): ... this.
3502 * linux-low.h (class linux_process_target): Update.
3503 * lynx-low.cc (lynx_target_ops): Update.
3504 * nto-low.cc (nto_target_ops): Update.
3505 * win32-low.cc (win32_target_ops): Update.
3507 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3509 Turn process_stratum_target's fetch_registers and store_registers
3510 ops into methods of process_target.
3512 * target.h (struct process_stratum_target): Remove the target ops.
3513 (class process_target): Add the target ops.
3514 (fetch_inferior_registers): Update the macro.
3515 (store_inferior_registers): Update the macro.
3517 Update the derived classes and callers below.
3519 * linux-low.cc (linux_target_ops): Update.
3520 (linux_fetch_registers): Turn into ...
3521 (linux_process_target::fetch_registers): ... this.
3522 (linux_store_registers): Turn into ...
3523 (linux_process_target::store_registers): ... this.
3524 * linux-low.h (class linux_process_target): Update.
3525 * lynx-low.cc (lynx_target_ops): Update.
3526 (lynx_fetch_registers): Turn into ...
3527 (lynx_process_target::fetch_registers): ... this.
3528 (lynx_store_registers): Turn into ...
3529 (lynx_process_target::store_registers): ... this.
3530 * lynx-low.h (class lynx_process_target): Update.
3531 * nto-low.cc (nto_target_ops): Update.
3532 (nto_fetch_registers): Turn into ...
3533 (nto_process_target::fetch_registers): ... this.
3534 (nto_store_registers): Turn into ...
3535 (nto_process_target::store_registers): ... this.
3536 * nto-low.h (class nto_process_target): Update.
3537 * win32-low.cc (win32_target_ops): Update.
3538 (win32_fetch_inferior_registers): Turn into ...
3539 (win32_process_target::fetch_registers): ... this.
3540 (win32_store_inferior_registers): Turn into ...
3541 (win32_process_target::store_registers): ... this.
3542 * win32-low.h (class win32_process_target): Update.
3544 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3546 Turn process_stratum_target's wait op into a method of
3549 * target.h (struct process_stratum_target): Remove the target op.
3550 (class process_target): Add the target op.
3552 Update the derived classes and callers below.
3554 * target.cc (target_wait): Update.
3555 * linux-low.cc (linux_target_ops): Update.
3556 (linux_wait): Turn into ...
3557 (linux_process_target::wait): ... this.
3558 * linux-low.h (class linux_process_target): Update.
3559 * lynx-low.cc (lynx_target_ops): Update.
3560 (lynx_wait): Turn into ...
3561 (lynx_process_target::wait): ... this.
3562 * lynx-low.h (class lynx_process_target): Update.
3563 * nto-low.cc (nto_target_ops): Update.
3564 (nto_wait): Turn into ...
3565 (nto_process_target::wait): ... this.
3566 * nto-low.h (class nto_process_target): Update.
3567 * win32-low.cc (win32_target_ops): Update.
3568 (win32_wait): Turn into ...
3569 (win32_process_target::wait): ... this.
3570 (do_initial_child_stuff): Update.
3571 * win32-low.h (class win32_process_target): Update.
3573 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3575 Turn process_stratum_target's resume op into a method of
3578 * target.h (struct process_stratum_target): Remove the target op.
3579 (class process_target): Add the target op.
3581 Update the derived classes and callers below.
3583 * server.cc (resume): Update.
3584 * target.cc (target_stop_and_wait): Update.
3585 (target_continue_no_signal): Update.
3586 (target_continue): Update.
3587 * linux-low.cc (linux_target_ops): Update.
3588 (linux_resume): Turn into ...
3589 (linux_process_target::resume): ... this.
3590 * linux-low.h (class linux_process_target): Update.
3591 * lynx-low.cc (lynx_target_ops): Update.
3592 (lynx_resume): Turn into ...
3593 (lynx_process_target::resume): ... this.
3594 * lynx-low.h (class lynx_process_target): Update.
3595 * nto-low.cc (nto_target_ops): Update.
3596 (nto_resume): Turn into ...
3597 (nto_process_target::resume): ... this.
3598 * nto-low.h (class nto_process_target): Update.
3599 * win32-low.cc (win32_target_ops): Update.
3600 (win32_resume): Turn into ...
3601 (win32_process_target::resume): ... this.
3602 (win32_process_target::detach): Update.
3603 (do_initial_child_stuff): Update.
3604 * win32-low.h (class win32_process_target): Update.
3606 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3608 Turn process_stratum_target's thread_alive op into a method of
3611 * target.h (struct process_stratum_target): Remove the target op.
3612 (class process_target): Add the target op.
3613 (mythread_alive): Update the macro.
3615 Update the derived classes and callers below.
3617 * linux-low.cc (linux_target_ops): Update.
3618 (linux_thread_alive): Turn into ...
3619 (linux_process_target::thread_alive): ... this.
3620 (wait_for_sigstop): Update.
3621 * linux-low.h (class linux_process_target): Update.
3622 * lynx-low.cc (lynx_target_ops): Update.
3623 (lynx_thread_alive): Turn into ...
3624 (lynx_process_target::thread_alive): ... this.
3625 * lynx-low.h (class lynx_process_target): Update.
3626 * nto-low.cc (nto_target_ops): Update.
3627 (nto_thread_alive): Turn into ...
3628 (nto_process_target::thread_alive): ... this.
3629 * nto-low.h (class nto_process_target): Update.
3630 * win32-low.cc (win32_target_ops): Update.
3631 (win32_thread_alive): Turn into ...
3632 (win32_process_target::thread_alive): ... this.
3633 * win32-low.h (class win32_process_target): Update.
3635 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3637 Turn process_stratum_target's join op into a method of
3640 * target.h (struct process_stratum_target): Remove the target op.
3641 (class process_target): Add the target op.
3642 (join_inferior): Update the macro.
3644 Update the derived classes and callers below.
3646 * linux-low.cc (linux_target_ops): Update.
3647 (linux_join): Turn into ...
3648 (linux_process_target::join): ... this.
3649 * linux-low.h (class linux_process_target): Update.
3650 * lynx-low.cc (lynx_target_ops): Update.
3651 (lynx_join): Turn into ...
3652 (lynx_process_target::join): ... this.
3653 * lynx-low.h (class lynx_process_target): Update.
3654 * nto-low.cc (nto_target_ops): Update.
3655 (nto_process_target::join): Define.
3656 * nto-low.h (class nto_process_target): Update.
3657 * win32-low.cc (win32_target_ops): Update.
3658 (win32_join): Turn into ...
3659 (win32_process_target::join): ... this.
3660 * win32-low.h (class win32_process_target): Update.
3662 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3664 Turn process_stratum_target's mourn op into a method of
3667 * target.h (struct process_stratum_target): Remove the target op.
3668 (class process_target): Add the target op.
3670 Update the derived classes and callers below.
3672 * target.cc (target_mourn_inferior): Update.
3673 * linux-low.cc (linux_target_ops): Update.
3674 (linux_mourn): Turn into ...
3675 (linux_process_target::mourn): ... this.
3676 (handle_extended_wait): Update.
3677 (linux_process_target::kill): Update.
3678 (linux_process_target::detach): Update.
3679 * linux-low.h (class linux_process_target): Update.
3680 * lynx-low.cc (lynx_target_ops): Update.
3681 (lynx_mourn): Turn into ...
3682 (lynx_process_target::mourn): ... this.
3683 * lynx-low.h (class lynx_process_target): Update.
3684 * nto-low.cc (nto_target_ops): Update.
3685 (nto_mourn): Turn into ...
3686 (nto_process_target::mourn): ... this.
3687 * nto-low.h (class nto_process_target): Update.
3688 * win32-low.cc (win32_target_ops): Update.
3689 (win32_mourn): Turn into ...
3690 (win32_process_target::mourn): ... this.
3691 * win32-low.h (class win32_process_target): Update.
3693 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3695 Turn process_stratum_target's detach op into a method of
3698 * target.h (struct process_stratum_target): Remove the target op.
3699 (class process_target): Add the target op.
3700 (detach_inferior): Update the macro.
3702 Update the derived classes and callers below.
3704 * linux-low.cc (linux_target_ops): Update.
3705 (linux_detach): Turn into ...
3706 (linux_process_target::detach): ... this.
3707 * linux-low.h (class linux_process_target): Update.
3708 * lynx-low.cc (lynx_target_ops): Update.
3709 (lynx_detach): Turn into ...
3710 (lynx_process_target::detach): ... this.
3711 * lynx-low.h (class lynx_process_target): Update.
3712 * nto-low.cc (nto_target_ops): Update.
3713 (nto_detach): Turn into ...
3714 (nto_process_target::detach): ... this.
3715 * nto-low.h (class nto_process_target): Update.
3716 * win32-low.cc (win32_target_ops): Update.
3717 (win32_detach): Turn into ...
3718 (win32_process_target::detach): ... this.
3719 * win32-low.h (class win32_process_target): Update.
3721 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3723 Turn process_stratum_target's kill op into a method of
3726 * target.h (struct process_stratum_target): Remove the target op.
3727 (class process_target): Add the target op.
3729 Update the derived classes and callers below.
3731 * target.cc (kill_inferior): Update.
3732 * linux-low.cc (linux_target_ops): Update.
3733 (linux_kill): Turn into ...
3734 (linux_process_target::kill): ... this.
3735 * linux-low.h (class linux_process_target): Update.
3736 * lynx-low.cc (lynx_target_ops): Update.
3737 (lynx_kill): Turn into ...
3738 (lynx_process_target::kill): ... this.
3739 * lynx-low.h (class lynx_process_target): Update.
3740 * nto-low.cc (nto_target_ops): Update.
3741 (nto_kill): Turn into ...
3742 (nto_process_target::kill): ... this.
3743 * nto-low.h (class nto_process_target): Update.
3744 * win32-low.cc (win32_target_ops): Update.
3745 (win32_kill): Turn into ...
3746 (win32_process_target::kill): ... this.
3747 * win32-low.h (class win32_process_target): Update.
3749 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3751 Turn process_stratum_target's attach op into a method of
3754 * target.h (struct process_stratum_target): Remove the target op.
3755 (class process_target): Add the target op.
3756 (myattach): Update the macro.
3758 Update the derived classes and callers below.
3760 * linux-low.cc (linux_target_ops): Update.
3761 (linux_attach): Turn into ...
3762 (linux_process_target::attach): ... this.
3763 * linux-low.h (class linux_process_target): Update.
3764 * lynx-low.cc (lynx_target_ops): Update.
3765 (lynx_attach): Turn into ...
3766 (lynx_process_target::attach): ... this.
3767 * lynx-low.h (class lynx_process_target): Update.
3768 * nto-low.cc (nto_target_ops): Update.
3769 (nto_attach): Turn into ...
3770 (nto_process_target::attach): ... this.
3771 * nto-low.h (class nto_process_target): Update.
3772 * win32-low.cc (win32_target_ops): Update.
3773 (win32_attach): Turn into ...
3774 (win32_process_target::attach): ... this.
3775 * win32-low.h (class win32_process_target): Update.
3777 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3779 Turn process_stratum_target's post_create_inferior op into a method
3782 * target.h (struct process_stratum_target): Remove the target op.
3783 (class process_target): Add the target op.
3784 (target_post_create_inferior): Update the macro.
3785 * target.cc (process_target::post_create_inferior): Define.
3787 Update the derived classes and callers below.
3789 * linux-low.cc (linux_target_ops): Update.
3790 (linux_post_create_inferior): Turn into ...
3791 (linux_process_target::post_create_inferior): ... this.
3792 * linux-low.h (class linux_process_target): Update.
3793 * lynx-low.cc (lynx_target_ops): Update.
3794 * nto-low.cc (nto_target_ops): Update.
3795 * win32-low.cc (win32_target_ops): Update.
3797 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3799 Turn process_stratum_target's create_inferior op into a method of
3802 * target.h (struct process_stratum_target): Remove the target op.
3803 (class process_target): Add the target op.
3804 (create_inferior): Rename the macro to ...
3805 (target_create_inferior): ... this.
3807 Update the derived classes and callers below.
3809 * server.cc (handle_v_run): Update.
3810 (captured_main): Update.
3811 (process_serial_event): Update.
3812 * linux-low.cc (linux_target_ops): Update.
3813 (linux_create_inferior): Turn into ...
3814 (linux_process_target::create_inferior): ... this.
3815 * linux-low.h (class linux_process_target): Update.
3816 * lynx-low.cc (lynx_target_ops): Update.
3817 (lynx_create_inferior): Turn into ...
3818 (lynx_process_target::create_inferior): ... this.
3819 * lynx-low.h (class lynx_process_target): Update.
3820 * nto-low.cc (nto_target_ops): Update.
3821 (nto_create_inferior): Turn into ...
3822 (nto_process_target::create_inferior): ... this.
3823 * nto-low.h (class nto_process_target): Update.
3824 * win32-low.cc (win32_target_ops): Update.
3825 (win32_create_inferior): Turn into ...
3826 (win32_process_target::create_inferior): ... this.
3827 * win32-low.h (class win32_process_target): Update.
3829 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3831 * target.h (class process_target): New class definition.
3832 (struct process_stratum_target) <pt>: New field with type
3834 * linux-low.h (class linux_process_target): Define as a derived
3835 class of 'process_target'.
3836 * linux-low.cc (linux_target_ops): Add a linux_process_target*
3838 * lynx-low.h (class lynx_process_target): Define as a derived
3839 class of 'process_target'.
3840 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
3842 * nto-low.h (class nto_process_target): Define as a derived
3843 class of 'process_target'.
3844 * nto-low.cc (nto_target_ops): Add an nto_process_target*
3846 * win32-low.h (class win32_process_target): Define as a derived
3847 class of 'process_target'.
3848 * win32-low.cc (win32_target_ops): Add a win32_process_target*
3851 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
3853 * configure: Regenerate.
3855 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
3856 Andrew Burgess <andrew.burgess@embecosm.com>
3858 * linux-riscv-low.cc: New file.
3859 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
3860 and nat/riscv-linux-tdesc.c.
3861 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
3862 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
3865 2020-02-14 Tom Tromey <tom@tromey.com>
3867 * acinclude.m4: Don't include acx_configure_dir.m4.
3868 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
3869 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
3870 (all, install-only, uninstall, clean-info, clean)
3871 (maintainer-clean): Don't recurse.
3872 (subdir_do, all-lib): Remove.
3873 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
3875 (generated_files): Update.
3876 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
3877 * configure: Rebuild.
3878 * configure.ac: Don't configure gnulib or libiberty.
3881 2020-02-14 Eli Zaretskii <eliz@gnu.org>
3883 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
3884 preparing the command line for CreateProcess.
3885 (win32_create_inferior): Reflect the program name in debugging
3886 output that shows the process and its command line.
3888 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
3890 * Makefile.in: Rename source files from .c to .cc.
3891 * %.c: Rename to %.cc.
3892 * configure.ac: Rename server.c to server.cc.
3893 * configure: Re-generate.
3895 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
3897 * Makefile.in: Rename gdbsupport source files from .c to .cc.
3899 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
3901 * win32-low.c (win32_create_inferior): Set signal_pid.
3903 2020-02-12 Maciej W. Rozycki <macro@wdc.com>
3904 Pedro Alves <palves@redhat.com>
3906 Skip building gdbserver in a cross-configuration.
3907 * configure.srv: Set $gdbserver_host depending on whether $target
3908 is $host. Use $gdbserver_host instead of $host.
3910 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
3912 * configure: Re-generate.
3914 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
3916 * configure: Re-generate.
3918 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
3920 * acinclude.m4: Update warning.m4 path.
3922 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
3924 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
3925 (handle_exception): Set siginfo_er.
3926 (win32_xfer_siginfo): New function.
3928 2020-02-07 Tom Tromey <tom@tromey.com>
3929 Pedro Alves <palves@redhat.com>
3931 * README: Update build documentation.
3932 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
3934 * configure.ac: Update paths.
3935 * configure: Rebuild.
3936 * acinclude.m4: Update paths.
3937 * Makefile.in: Update include paths.
3938 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
3939 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
3940 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
3941 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
3942 (%-generated.c): Update paths.
3943 * Move entire directory from ../gdb/gdbserver.
3945 2020-01-29 Maciej W. Rozycki <macro@wdc.com>
3947 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
3949 2020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3951 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
3952 assignment instead of srv_linux_obj.
3954 2020-01-28 Hannes Domani <ssbssa@yahoo.de>
3956 * server.c (handle_qxfer_libraries): Write segment-address with
3959 2020-01-24 Hannes Domani <ssbssa@yahoo.de>
3961 * Makefile.in (install-strip): New target.
3962 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
3963 * aclocal.m4: Regenerate.
3964 * configure: Regenerate.
3965 * configure.ac: Add AM_PROG_INSTALL_STRIP.
3967 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
3969 * Makefile.in (SFILES): Adjust paths to point to real files.
3970 (OBS): Move waitstatus.o to target/waitstatus.o.
3971 (TAGS): Transform paths appropriately.
3973 (nat/%.o): ... this pattern rule.
3975 (target/%.o): ... this pattern rule.
3976 * configure.srv: Adjust paths throughout to include nat/ prefix
3977 with the revant files.
3978 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
3979 * configure: Regenerate.
3981 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
3983 * Makefile.in (TAGS): Remove config files from the recipe.
3985 2020-01-14 Tom Tromey <tom@tromey.com>
3987 * configure: Rebuild.
3988 * configure.ac: Remove any checks that were added to common.m4.
3989 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
3992 2020-01-14 Tom Tromey <tom@tromey.com>
3994 * server.h: Include config.h.
3995 * gdbreplay.c: Include config.h.
3996 * configure: Rebuild.
3997 * configure.ac: Don't source common.host.
3998 * acinclude.m4: Update path.
3999 * Makefile.in (INCSUPPORT): New variable.
4000 (INCLUDE_CFLAGS): Add INCSUPPORT.
4001 (SFILES): Update paths.
4002 (version-generated.c): Update path to create-version.sh.
4003 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
4005 2020-01-14 Tom Tromey <tom@tromey.com>
4007 * configure.ac (LIBS): Use WIN32APILIBS.
4008 (USE_WIN32API): Don't define.
4009 * configure: Rebuild.
4011 2020-01-14 Tom Tromey <tom@tromey.com>
4013 * configure: Rebuild.
4015 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4017 * Makefile.in (%-generated.c): Remove rule for files from
4020 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4022 * configure: Re-generate.
4024 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4026 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
4028 * tracepoint.c (stop_tracing, flush_trace_buffer,
4029 about_to_request_buffer_space, get_trace_state_variable_value,
4030 set_trace_state_variable_value, gdb_collect): Add declaration.
4032 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4034 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
4035 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
4036 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
4037 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
4038 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
4041 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4043 * inferiors.c: Include gdbsupport/common-inferior.h.
4045 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4047 * hostio-errno.c: Include hostio.h.
4049 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4051 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
4054 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4056 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
4057 * linux-arm-tdesc.h: Include arch/arm.h.
4059 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4061 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
4063 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4065 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
4066 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
4068 2020-01-10 Pedro Alves <palves@redhat.com>
4070 * fork-child.c (post_fork_inferior): Pass target down to
4072 * inferiors.c (switch_to_thread): Add process_stratum_target
4074 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
4075 * nto-low.c (nto_target_ops): Now a process_stratum_target.
4076 * linux-low.c (linux_target_ops): Now a process_stratum_target.
4077 * remote-utils.c (prepare_resume_reply): Pass the target to
4079 * target.c (the_target): Now a process_stratum_target.
4080 (done_accessing_memory): Pass the target to switch_to_thread.
4081 (set_target_ops): Ajust to use process_stratum_target.
4082 * target.h (struct target_ops): Rename to ...
4083 (struct process_stratum_target): ... this.
4084 (the_target, set_target_ops): Adjust.
4085 (prepare_to_access_memory): Adjust comment.
4086 * win32-low.c (child_xfer_memory): Adjust to use
4087 process_stratum_target.
4088 (win32_target_ops): Now a process_stratum_target.
4090 2020-01-06 Eli Zaretskii <eliz@gnu.org>
4091 Pedro Alves <palves@redhat.com>
4093 * win32-low.c (get_child_debug_event): Extract the fatal exception
4094 from the exit status and convert to the equivalent Posix signal
4096 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
4097 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
4099 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
4101 * Makefile.in: Use INSTALL_PROGRAM_ENV.
4103 2020-01-01 Joel Brobecker <brobecker@adacore.com>
4105 * server.c (gdbserver_version): Change copyright year to 2020.
4106 * gdbreplay.c (gdbreplay_version): Likewise.
4108 2019-12-19 Christian Biesinger <cbiesinger@google.com>
4110 * configure: Regenerate.
4111 * configure.ac: Quote variable arguments of test.
4113 2019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
4115 * Makefile.in: Fix build with GNU Make 3.81
4117 2019-12-16 Tom Tromey <tromey@adacore.com>
4119 * server.c (get_exec_file): Constify result.
4121 2019-12-10 Christian Biesinger <cbiesinger@google.com>
4123 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
4124 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
4125 * config.in: Regenerate.
4126 * configure: Regenerate.
4127 * configure.ac: Don't check for strerror.
4128 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
4129 Call safe_strerror instead of strerror.
4130 * server.h (strerror): Remove this now-unnecessary declaration.
4131 * tracepoint.c (init_named_socket): Call safe_strerror instead of
4133 (gdb_agent_helper_thread): Likewise.
4134 * utils.c (perror_with_name): Likewise.
4136 2019-11-26 Tom Tromey <tom@tromey.com>
4138 * configure, config.in: Rebuild.
4140 2019-11-26 Tom Tromey <tom@tromey.com>
4142 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
4143 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
4145 * configure, config.in: Rebuild.
4147 2019-11-26 Tom Tromey <tom@tromey.com>
4149 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
4150 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
4151 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
4152 * acinclude.m4: Include ax_pthread.m4.
4153 * config.in, configure: Rebuild.
4155 2019-11-26 Christian Biesinger <cbiesinger@google.com>
4157 * debug.c (debug_set_output): Call safe_strerror instead of
4159 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
4160 (linux_kill_one_lwp): Likewise.
4161 (linux_detach_one_lwp): Likewise.
4162 (linux_wait_for_event_filtered): Likewise.
4163 (store_register): Likewise.
4164 * lynx-low.c (lynx_attach): Likewise.
4165 * mem-break.c (insert_memory_breakpoint): Likewise.
4166 (remove_memory_breakpoint): Likewise.
4167 (delete_fast_tracepoint_jump): Likewise.
4168 (set_fast_tracepoint_jump): Likewise.
4169 (uninsert_fast_tracepoint_jumps_at): Likewise.
4170 (reinsert_fast_tracepoint_jumps_at): Likewise.
4171 * nto-low.c (nto_xfer_memory): Likewise.
4172 (nto_resume): Likewise.
4174 2019-11-20 Luis Machado <luis.machado@linaro.org>
4176 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
4177 instead of register count.
4178 * tdesc.c (tdesc_contains_feature): New function.
4179 * tdesc.h (tdesc_contains_feature): New prototype.
4181 2019-11-15 Christian Biesinger <cbiesinger@google.com>
4183 * Makefile.in: Add safe-strerror.c.
4184 * configure: Regenerate.
4185 * configure.ac: Don't source common.host.
4187 2019-11-15 Christian Biesinger <cbiesinger@google.com>
4189 * config.in: Regenerate.
4190 * configure: Regenerate.
4192 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
4194 * ax.c (ax_printf): Handle size_t_arg.
4196 2019-11-06 Christian Biesinger <cbiesinger@google.com>
4198 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
4199 * mi/mi-main.c (output_cores): Likewise.
4200 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
4201 (linux_xfer_osdata_modules): Likewise.
4202 * remote.c (register_remote_support_xml): Likewise.
4203 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
4204 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
4206 2019-11-01 Christian Biesinger <cbiesinger@google.com>
4208 * configure: Regenerate.
4209 * configure.ac: Remove check for strerror_r.
4211 2019-10-31 Christian Biesinger <cbiesinger@google.com>
4213 * config.in: Regenerate.
4214 * configure: Regenerate.
4215 * configure.ac: Also check for strerror_r.
4217 2019-10-31 Christian Biesinger <cbiesinger@google.com>
4219 * ax.h (debug_agent): Remove duplicate declaration.
4221 2019-10-26 Tom de Vries <tdevries@suse.de>
4223 * linux-aarch64-low.c: Fix typos in comments.
4224 * linux-arm-low.c: Same.
4225 * linux-low.c: Same.
4226 * linux-ppc-low.c: Same.
4227 * proc-service.c: Same.
4230 * tracepoint.c: Same.
4231 * win32-low.c: Same.
4233 2019-10-25 Tom Tromey <tromey@adacore.com>
4235 * utils.c (xstrdup): Remove.
4237 2019-10-23 Tom Tromey <tom@tromey.com>
4239 * configure, config.in: Rebuild.
4241 2019-10-23 Tom Tromey <tom@tromey.com>
4243 * configure: Rebuild.
4244 * acinclude.m4: Use m4_include, not sinclude.
4246 2019-10-17 Tom Tromey <tromey@adacore.com>
4248 * configure: Rebuild.
4249 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
4250 in AC_CONFIG_FILES invocation.
4251 * Makefile.in (stamp-h, Makefile): Use new-style config.status
4254 2019-10-16 Christian Biesinger <cbiesinger@google.com>
4256 * server.c: Include xml-builtin.h.
4257 (get_xml_features): Don't declare xml_builtins here.
4259 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4261 * Makefile.in: Remove references to vec-ipa.o.
4263 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4265 * Makefile.in: Remove references to vec.c.
4267 2019-10-02 Christian Biesinger <cbiesinger@google.com>
4269 * server.c (server_waiting): Change to bool.
4270 (extended_protocol): Likewise.
4271 (response_needed): Likewise.
4272 (exit_requested): Likewise.
4273 (run_once): Likewise.
4274 (report_no_resumed): Likewise.
4275 (non_stop): Likewise.
4276 (disable_packet_vCont): Likewise.
4277 (disable_packet_Tthread): Likewise.
4278 (disable_packet_qC): Likewise.
4279 (disable_packet_qfThreadInfo): Likewise.
4280 (handle_general_set): Update.
4281 (handle_detach): Update.
4282 (handle_monitor_command): Update.
4283 (handle_query): Update.
4284 (captured_main): Update.
4285 (process_serial_event): Update.
4286 * server.h (server_waiting): Change to bool.
4287 (disable_packet_vCont): Likewise.
4288 (disable_packet_Tthread): Likewise.
4289 (disable_packet_qC): Likewise.
4290 (disable_packet_qfThreadInfo): Likewise.
4291 (run_once): Likewise.
4292 (non_stop): Likewise.
4293 * target.c (target_stop_and_wait): Update.
4295 2019-10-02 Tom Tromey <tromey@adacore.com>
4297 * Makefile.in (SFILES): Add common-inferior.c.
4298 (OBS): Add common-inferior.o.
4299 * server.c (startup_with_shell): Don't define.
4301 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
4303 * linux-low.c (linux_low_read_btrace): Update for change to
4306 2019-09-20 Christian Biesinger <cbiesinger@google.com>
4308 * debug.c (debug_threads): Remove comment in favor of the header.
4309 * debug.h (using_threads): Add declaration.
4310 (debug_threads): Add comment.
4311 * linux-aarch64-low.c: Include debug.h and remove declaration of
4313 * nto-low.c: Likewise.
4314 * remote-utils.c: Likewise.
4315 * thread-db.c: Likewise.
4317 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
4319 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
4320 and powerpc-cell64l-ipa.o.
4321 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
4322 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
4323 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
4326 * spu-low.c: Remove file.
4328 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
4329 (parse_spufs_run): Remove.
4330 (ppc_get_pc): Remove Cell/B.E. support.
4331 (ppc_set_pc): Likewise.
4332 (ppc_breakpoint_at): Likewise.
4333 (ppc_arch_setup): Likewise.
4334 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
4335 tdesc_powerpc_cell32l.
4336 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
4337 or init_registers_powerpc_cell32l.
4338 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
4339 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
4340 or init_registers_powerpc_cell32l.
4341 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
4342 (init_registers_powerpc_cell32l): Remove prototype.
4343 (init_registers_powerpc_cell64l): Likewise.
4345 * target.h (struct target_ops): Remove qxfer_spu member.
4346 * server.c (handle_qxfer_spu): Remove.
4347 (qxfer_packets): Remove entry for "spu".
4348 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
4349 * linux-low.c (SPUFS_MAGIC): Remove.
4350 (spu_enumerate_spu_ids): Remove.
4351 (linux_qxfer_spu): Remove.
4352 (linux_target_ops): Remove qxfer_spu member.
4353 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
4354 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
4355 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
4357 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4359 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
4360 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
4361 * config.in: Regenerate.
4362 * configure: Regenerate.
4364 2019-08-15 Tom Tromey <tromey@adacore.com>
4366 * target.c (target_write_memory): Use gdb::byte_vector.
4368 2019-08-15 Tom Tromey <tromey@adacore.com>
4370 * tracepoint.c (write_inferior_data_pointer)
4371 (write_inferior_integer, write_inferior_int8)
4372 (write_inferior_uinteger, m_tracepoint_action_download)
4373 (r_tracepoint_action_download, x_tracepoint_action_download)
4374 (l_tracepoint_action_download, clear_inferior_trace_buffer)
4375 (download_agent_expr, download_tracepoint_1)
4376 (download_trace_state_variables, upload_fast_traceframes): Update.
4377 * server.c (gdb_write_memory): Update.
4378 * remote-utils.c (relocate_instruction): Update.
4379 * proc-service.c (ps_pdwrite): Update.
4380 * mem-break.c (remove_memory_breakpoint)
4381 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
4382 (uninsert_fast_tracepoint_jumps_at)
4383 (reinsert_fast_tracepoint_jumps_at): Update.
4384 * linux-x86-low.c (append_insns)
4385 (i386_install_fast_tracepoint_jump_pad)
4386 (amd64_write_goto_address, i386_write_goto_address): Update.
4387 * linux-s390-low.c (append_insns, s390_write_goto_address):
4389 * linux-ppc-low.c (ppc_relocate_instruction)
4390 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
4391 (ppc_write_goto_address): Update.
4392 * linux-aarch64-low.c (append_insns): Update.
4393 * target.h (struct target_ops): Update.
4394 (write_inferior_memory): Don't declare.
4395 * target.c (target_write_memory): Rename from
4396 write_inferior_memory. Remove old target_write_memory.
4398 2019-08-15 Tom Tromey <tromey@adacore.com>
4400 * target.c (write_inferior_memory): Use std::vector.
4402 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
4405 * configure.ac: Drop enable-libmcheck support.
4406 * configure, config.in: Rebuild.
4407 * acinclude.m4: Don't include it.
4409 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4411 * configure.srv: Remove Arm xml files.
4413 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4415 * configure.srv: Add new files. Remove xml generated files.
4416 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
4418 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
4419 * linux-aarch32-tdesc.c: New file.
4420 * linux-aarch32-tdesc.h: New file.
4421 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
4422 * linux-arm-low.c (init_registers_arm, tdesc_arm)
4423 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
4424 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
4425 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
4426 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
4427 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
4428 (arm_read_description): Call arm_linux_read_description.
4429 (initialize_low_arch): Don't init registers.
4430 * linux-arm-tdesc.c: New file.
4431 * linux-arm-tdesc.h: New file.
4433 2019-07-10 Alan Hayward <alan.hayward@arm.com>
4435 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
4436 Move counter inside for.
4437 (arm_read_description): Check ptrace earlier.
4438 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
4440 2019-07-09 Tom Tromey <tom@tromey.com>
4442 * configure: Rebuild.
4443 * configure.ac: Change common to gdbsupport.
4444 * acinclude.m4: Change common to gdbsupport.
4445 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
4446 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
4447 common to gdbsupport.
4448 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
4449 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
4450 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
4451 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
4452 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
4453 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
4454 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
4455 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
4456 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
4457 common to gdbsupport.
4459 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4461 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
4463 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
4465 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4467 * configure.srv: Remove legacy xml.
4468 * linux-aarch64-low.c (initialize_low_arch): Remove
4469 initialize_low_tdesc call.
4470 * linux-aarch64-tdesc-selftest.c: Remove file.
4471 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
4472 * linux-x86-low.c (initialize_low_arch): Remove
4473 initialize_low_tdesc call.
4474 * linux-x86-tdesc-selftest.c: Remove file.
4475 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
4477 2019-06-20 Tom de Vries <tdevries@suse.de>
4479 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
4480 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
4482 2019-06-19 Tom de Vries <tdevries@suse.de>
4484 * debug.h (debug_write): Change return type to ssize_t.
4485 * debug.c (debug_write): Same.
4487 2019-06-14 Tom Tromey <tom@tromey.com>
4489 * configure.ac: Use new path to gnulib.
4490 * configure: Rebuild.
4491 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
4494 2019-06-11 Tom Tromey <tom@tromey.com>
4496 * Makefile.in (SFILES): Add alloc.c.
4498 (IPA_OBJS): Add alloc-ipa.o.
4499 (alloc-ipa.o): New target.
4500 (%.o: ../%.c): New pattern rule.
4502 2019-06-10 Tom Tromey <tromey@adacore.com>
4504 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
4505 end warning with a newline.
4506 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
4508 * thread-db.c (attach_thread): Don't end warning with a newline.
4509 (thread_db_notice_clone): Likewise.
4510 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
4512 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
4513 end warning with a newline.
4515 2019-06-04 Pedro Alves <palves@redhat.com>
4517 * server.c (captured_main): Use make_unique_xstrdup.
4519 2019-06-02 Tom Tromey <tom@tromey.com>
4521 * gdbreplay.c (fromhex): Remove.
4522 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
4524 2019-05-29 Tom Tromey <tromey@adacore.com>
4526 * configure: Rebuild.
4528 2019-05-06 Kevin Buettner <kevinb@redhat.com>
4530 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
4531 sign extension code on 32-bit builds.
4533 2019-05-03 Eli Zaretskii <eliz@gnu.org>
4536 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
4538 2019-04-19 Tom Tromey <tom@tromey.com>
4540 * server.c (struct vstop_notif): Derive from notif_event.
4542 (queue_stop_reply): Update.
4543 (remove_all_on_match_ptid): Change type. Rewrite.
4544 (discard_queued_stop_replies): Rewrite.
4545 (in_queued_stop_replies_ptid): Change type.
4546 (in_queued_stop_replies): Rewrite.
4547 (notif_stop): Update.
4548 (queue_stop_reply_callback): Update.
4549 (captured_main): Don't call initialize_notif.
4550 (push_stop_notification): Update.
4551 * notif.c (notif_write_event, handle_notif_ack)
4552 (notif_event_enque, notif_push): Update.
4553 (notif_event_xfree, initialize_notif): Remove.
4554 * notif.h (struct notif_event): Include <list>, not
4556 (struct notif_server) <queue>: Now a std::list.
4557 (notif_event_p): Remove typedef.
4558 (initialize_notif): Don't declare.
4559 (struct notif_event): Add virtual destructor.
4561 2019-04-17 Alan Hayward <alan.hayward@arm.com>
4563 * ax.c (ax_vdebug): Call debug_printf.
4564 * debug.c (debug_write): New function.
4565 * debug.h (debug_write): New declaration.
4566 * linux-low.c (sigchld_handler): Call debug_write.
4568 2019-04-17 Alan Hayward <alan.hayward@arm.com>
4570 * debug.c (debug_set_output): New function.
4571 (debug_vprintf): Send output to debug_file.
4572 (debug_flush): Likewise.
4573 * debug.h (debug_set_output): New declaration.
4574 * server.c (handle_monitor_command): Add debug-file option.
4575 (captured_main): Likewise.
4577 2019-04-17 Alan Hayward <alan.hayward@arm.com>
4579 * debug.c (remote_debug): Add definition.
4580 * debug.h (remote_debug): Add declaration.
4581 * hostio.c (remote_debug): Remove declaration.
4582 * remote-utils.c (struct ui_file): Likewise.
4583 (remote_debug): Likewise.
4584 * remote-utils.h (remote_debug): Likewise,
4585 * server.c (remote_debug): Remove definition.
4587 2019-04-10 Kevin Buettner <kevinb@redhat.com>
4589 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
4590 when using a 64-bit gdbserver.
4592 2019-04-09 Tom Tromey <tromey@adacore.com>
4594 * linux-low.c (select_event_lwp): Use find_thread_in_random.
4596 2019-04-08 Tom Tromey <tom@tromey.com>
4598 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
4600 (linux_resume_one_lwp): Likewise.
4602 2019-04-08 Tom Tromey <tom@tromey.com>
4604 * gdbreplay.c: Update.
4605 * linux-low.c: Update.
4608 2019-04-08 Tom Tromey <tom@tromey.com>
4610 * server.c: Use C++ exception handling.
4611 * linux-low.c: Use C++ exception handling.
4612 * gdbreplay.c: Use C++ exception handling.
4614 2019-04-08 Tom Tromey <tom@tromey.com>
4616 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
4617 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
4618 (captured_main, main): Update.
4619 * gdbreplay.c (main): Update.
4621 2019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4623 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
4624 value in argument pointer, return 1 if the entry is found and 0
4625 otherwise. Move comment.
4626 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
4627 * linux-low.h (linux_get_auxv): Declare.
4628 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
4630 2019-04-05 Tom Tromey <tromey@adacore.com>
4632 * server.c (gdbserver_usage): Use upper-case for metasyntactic
4635 2019-03-28 Alan Hayward <alan.hayward@arm.com>
4637 * linux-low.c (AT_HWCAP2): Add define if not already included.
4639 2019-03-26 Alan Hayward <alan.hayward@arm.com>
4641 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
4642 (aarch64_arch_setup): Call linux_get_hwcap.
4643 * linux-arm-low.c (arm_get_hwcap): Remove function.
4644 (arm_read_description): Call linux_get_hwcap.
4645 * linux-low.c (linux_get_auxv): New function.
4646 (linux_get_hwcap): Likewise.
4647 (linux_get_hwcap2): Likewise.
4648 * linux-low.h (linux_get_hwcap): New declaration.
4649 (linux_get_hwcap2): Likewise.
4650 * linux-ppc-low.c (ppc_get_auxv): Remove function.
4651 (ppc_arch_setup): Call linux_get_hwcap.
4652 * linux-s390-low.c (s390_get_hwcap): Remove function.
4653 (s390_arch_setup): Call linux_get_hwcap.
4655 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4656 Jiong Wang <jiong.wang@arm.com>
4658 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
4659 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
4661 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
4663 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4664 Jiong Wang <jiong.wang@arm.com>
4666 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
4667 (aarch64_get_hwcap): New function.
4668 (aarch64_arch_setup): Read APIA hwcap.
4670 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4671 Jiong Wang <jiong.wang@arm.com>
4673 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
4674 (initialize_low_tracepoint): Likewise.
4675 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
4676 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
4677 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
4678 (aarch64_linux_read_description): Likewise.
4679 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
4681 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4683 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
4684 i386_create_target_description for 'segments' parameter.
4685 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
4686 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
4687 * win32-i386-low.c (i386_arch_setup): Likewise.
4689 2019-03-12 Tom Tromey <tromey@adacore.com>
4691 * linux-low.c (iterate_over_lwps): Update.
4693 2019-03-06 Tom Tromey <tom@tromey.com>
4695 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
4696 (captured_main): Use SCOPE_EXIT.
4698 2019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
4700 * configure.srv: Use '$enable_unittest' instead of '$development'
4701 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
4704 2019-02-27 Tom Tromey <tromey@adacore.com>
4706 * gdbreplay.c (logchar): Handle \r\n.
4708 2019-02-07 Alan Hayward <alan.hayward@arm.com>
4710 * linux-low.c (linux_attach): Add process before lwp.
4711 * server.c (attach_inferior): Check if already attached.
4713 2019-02-07 Tom Tromey <tom@tromey.com>
4715 * x86-tdesc.h: Rename include guard.
4716 * x86-low.h: Add include guard.
4717 * wincecompat.h: Rename include guard.
4718 * win32-low.h: Add include guard.
4719 * utils.h: Rename include guard.
4720 * tracepoint.h: Rename include guard.
4721 * tdesc.h: Rename include guard.
4722 * target.h: Rename include guard.
4723 * server.h: Rename include guard.
4724 * remote-utils.h: Rename include guard.
4725 * regcache.h: Rename include guard.
4726 * nto-low.h: Rename include guard.
4727 * notif.h: Add include guard.
4728 * mem-break.h: Rename include guard.
4729 * lynx-low.h: Add include guard.
4730 * linux-x86-tdesc.h: Add include guard.
4731 * linux-s390-tdesc.h: Add include guard.
4732 * linux-ppc-tdesc-init.h: Add include guard.
4733 * linux-low.h: Add include guard.
4734 * linux-aarch64-tdesc.h: Add include guard.
4735 * linux-aarch32-low.h: Add include guard.
4736 * inferiors.h: Rename include guard.
4737 * i387-fp.h: Rename include guard.
4738 * hostio.h: Rename include guard.
4739 * gdbthread.h: Rename include guard.
4740 * gdb_proc_service.h: Rename include guard.
4741 * event-loop.h: Rename include guard.
4742 * dll.h: Rename include guard.
4743 * debug.h: Rename include guard.
4744 * ax.h: Rename include guard.
4746 2018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
4749 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
4750 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
4752 2019-01-25 Tom Tromey <tom@tromey.com>
4754 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
4756 2019-01-25 Tom Tromey <tom@tromey.com>
4758 * win32-low.c: Fix common/ includes.
4759 * win32-i386-low.c: Fix common/ includes.
4760 * tracepoint.c: Fix common/ includes.
4761 * thread-db.c: Fix common/ includes.
4762 * target.h: Fix common/ includes.
4763 * symbol.c: Fix common/ includes.
4764 * spu-low.c: Fix common/ includes.
4765 * server.h: Fix common/ includes.
4766 * server.c: Fix common/ includes.
4767 * remote-utils.c: Fix common/ includes.
4768 * regcache.h: Fix common/ includes.
4769 * regcache.c: Fix common/ includes.
4770 * nto-x86-low.c: Fix common/ includes.
4771 * notif.h: Fix common/ includes.
4772 * mem-break.h: Fix common/ includes.
4773 * lynx-low.c: Fix common/ includes.
4774 * lynx-i386-low.c: Fix common/ includes.
4775 * linux-x86-tdesc-selftest.c: Fix common/ includes.
4776 * linux-x86-low.c: Fix common/ includes.
4777 * linux-low.c: Fix common/ includes.
4778 * inferiors.h: Fix common/ includes.
4779 * i387-fp.c: Fix common/ includes.
4780 * hostio.c: Fix common/ includes.
4781 * hostio-errno.c: Fix common/ includes.
4782 * gdbthread.h: Fix common/ includes.
4783 * gdbreplay.c: Fix common/ includes.
4784 * fork-child.c: Fix common/ includes.
4785 * event-loop.c: Fix common/ includes.
4787 (enum gdb_agent_op): Fix common/ includes.
4789 2019-01-21 Tom Tromey <tom@tromey.com>
4791 * tracepoint.c: Fix includes.
4792 * remote-utils.c: Fix includes.
4793 * linux-x86-low.c: Fix includes.
4795 2019-01-01 Joel Brobecker <brobecker@adacore.com>
4797 * gdbreplay.c (gdbreplay_version): Update copyright year in
4799 * server.c (gdbserver_version): Likewise.
4801 2018-12-05 Alan Hayward <alan.hayward@arm.com>
4803 * linux-low.c (add_lwp): Switch ordering.
4805 2018-11-29 Tom Tromey <tom@tromey.com>
4807 * win32-low.c (win32_join): Take pid, not process.
4808 * target.h (struct target_ops) <join>: Change argument type.
4809 (join_inferior): Change argument name.
4810 * spu-low.c (spu_join): Take pid, not process.
4811 * server.c (handle_detach): Preserve pid before destroying
4813 * lynx-low.c (lynx_join): Take pid, not process.
4814 * linux-low.c (linux_join): Take pid, not process.
4816 2018-11-23 Alan Hayward <alan.hayward@arm.com>
4818 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
4819 (aarch64_cannot_fetch_register): Likewise.
4820 (struct linux_target_ops): Update references.
4822 2018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4824 * linux-ppc-low.c: Include nat/linux-ptrace.h.
4826 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4828 * configure.srv (ipa_ppc_linux_regobj): Add
4829 powerpc-isa207-htm-vsx32l-ipa.o and
4830 powerpc-isa207-htm-vsx64l-ipa.o.
4831 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
4832 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
4833 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
4834 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
4835 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
4836 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
4837 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
4838 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
4839 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
4840 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
4841 (init_registers_powerpc_isa207_htm_vsx32l)
4842 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
4843 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
4844 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
4845 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
4846 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
4847 (ppc_store_tm_ctarregset): New functions.
4848 (ppc_regsets): Add entries for HTM regsets.
4849 (ppc_arch_setup): Set htm in features struct when needed. Set
4850 sizes for the HTM regsets.
4851 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
4852 (initialize_low_arch): Call
4853 init_registers_powerpc_isa207_htm_vsx32l and
4854 init_registers_powerpc_isa207_htm_vsx64l.
4855 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
4856 PPC_TDESC_ISA207_HTM_VSX.
4857 (initialize_low_tracepoint): Call
4858 init_registers_powerpc_isa207_htm_vsx32l and
4859 init_registers_powerpc_isa207_htm_vsx64l.
4861 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4863 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
4864 rs6000/power-linux-pmu.xml to srv_xmlfiles.
4865 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
4866 (ppc_store_pmuregset): New functions.
4867 (ppc_regsets): Add entries for ebb and pmu regsets.
4868 (ppc_arch_setup): Set isa207 in features struct if the ebb and
4869 pmu regsets are available. Set sizes for these regsets.
4871 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4873 * configure.srv (ipa_ppc_linux_regobj): Add
4874 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
4875 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
4876 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
4877 rs6000/powerpc-isa207-vsx32l.xml, and
4878 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
4879 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
4880 <PPC_TDESC_ISA207_VSX>: New enum value.
4881 (init_registers_powerpc_isa207_vsx32l): Declare.
4882 (init_registers_powerpc_isa207_vsx64l): Declare.
4883 * linux-ppc-low.c (ppc_fill_tarregset): New function.
4884 (ppc_store_tarregset): New function.
4885 (ppc_regsets): Add entry for the TAR regset.
4886 (ppc_arch_setup): Set isa207 in features struct when needed. Set
4887 size for the TAR regsets.
4888 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
4889 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
4890 and init_registers_powerpc_isa207_vsx64l.
4891 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
4892 (initialize_low_tracepoint): Call
4893 init_registers_powerpc_isa207_vsx32l and
4894 init_registers_powerpc_isa207_vsx64l.
4896 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4897 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4899 * configure.srv (ipa_ppc_linux_regobj): Add
4900 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
4901 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
4902 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
4903 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
4904 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
4905 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
4906 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
4907 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
4908 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
4909 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
4910 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
4911 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
4912 (ppc_hwcap): Add comment.
4913 (ppc_hwcap2): New global.
4914 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
4915 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
4916 (ppc_regsets): Add entries for the DSCR and PPR regsets.
4917 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
4918 when needed. Set sizes for the the DSCR and PPR regsets.
4919 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
4920 (initialize_low_arch): Call
4921 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
4922 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
4923 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
4924 PPC_TDESC_ISA205_PPR_DSCR_VSX.
4925 (initialize_low_tracepoint): Call
4926 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
4927 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
4929 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4931 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
4933 2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
4934 Simon Marchi <simark@simark.ca>
4936 * acinclude.m4: Include "../selftest.m4".
4937 * configure: Regenerate.
4938 * configure.ac: Use "GDB_AC_SELFTEST".
4939 * configure.srv: Use "$enable_unittests" instead of
4940 "$development" when checking whether unit tests have been
4942 * server.c (captured_main): Update message informing that
4943 selftests have been disabled.
4945 2018-10-04 Tom Tromey <tom@tromey.com>
4947 * configure: Rebuild.
4949 2018-10-04 Tom Tromey <tom@tromey.com>
4951 * server.c (handle_status): Rename inner "thread".
4952 (process_serial_event): Declare "res" in 'm' case.
4953 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
4954 (iterate_over_lwps): Rename inner "thread".
4955 (linux_qxfer_libraries_svr4): Rename inner "len".
4956 * gdbthread.h (find_thread_in_random): Rename inner "thread".
4958 2018-10-01 Gary Benson <gbenson@redhat.com>
4960 * gdb_proc_service.h: Moved common code to
4961 common/gdb_proc_service.h.
4963 2018-10-01 Gary Benson <gbenson@redhat.com>
4965 * gdb_proc_service.h: Synchronize comments and whitespace with
4966 GDB's version of this file.
4968 2018-09-25 Tom Tromey <tom@tromey.com>
4970 * configure: Rebuild.
4971 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
4973 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
4975 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
4976 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
4977 ($(IPA_LIB)): Sort IPA_OBJS.
4979 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
4981 * Makefile.in: Remove references to $(ADD_DEPS).
4983 2018-09-16 Tom Tromey <tom@tromey.com>
4985 * remote-utils.c (remote_open): Use GNU style for metasyntactic
4987 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
4990 2018-09-05 Tom Tromey <tom@tromey.com>
4992 * configure: Rebuild.
4994 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
4997 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
4999 2018-08-27 Tom Tromey <tom@tromey.com>
5002 * configure: Rebuild.
5004 2018-08-27 Tom Tromey <tom@tromey.com>
5006 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
5007 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
5008 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
5009 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
5010 (s390x_emit_stack_adjust): Add casts to unsigned char.
5012 2018-08-22 Simon Marchi <simon.marchi@ericsson.com>
5016 * server.h (struct client_state) <disable_randomization>:
5019 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5021 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
5023 (mips_supply_ptrace_register): Likewise.
5025 2018-07-22 Tom Tromey <tom@tromey.com>
5027 * configure: Rebuild.
5029 2018-07-22 Tom Tromey <tom@tromey.com>
5031 * win32-low.c (win32_create_inferior): Remove unused variables.
5032 * gdbreplay.c (remote_open): Remove unused variable.
5033 * remote-utils.c (remote_prepare): Remove unused variable.
5034 * x86-tdesc.h (X86_TDESC_H): Define.
5035 (amd64_expedite_regs): Define conditionally.
5036 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
5037 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
5038 * remote-utils.c (readchar): Remove unused variable.
5040 2018-07-13 Pedro Alves <palves@redhat.com>
5042 * linux-low.c (linux_kill): Change parameter to process_info
5043 pointer instead of pid. Adjust.
5044 * lynx-low.c (lynx_kill): Likewise.
5045 * nto-low.c (nto_kill): Likewise.
5046 * spu-low.c (spu_kill): Likewise.
5047 * win32-low.c (win32_kill): Likewise.
5048 * server.c (handle_v_kill, kill_inferior_callback)
5049 (detach_or_kill_for_exit): Adjust.
5050 * target.c (kill_inferior): Change parameter to process_info
5051 pointer instead of pid. Adjust.
5052 * target.h (struct target_ops) <kill>: Change parameter to
5053 process_info pointer instead of pid. Adjust all implementations
5055 (kill_inferior): Likewise.
5057 2018-07-13 Pedro Alves <palves@redhat.com>
5059 * linux-low.c (linux_detach, linux_join): Change parameter to
5060 process_info pointer instead of pid. Adjust.
5061 * lynx-low.c (lynx_detach, lynx_join): Likewise.
5062 * nto-low.c (nto_detach): Likewise.
5063 * spu-low.c (spu_detach, spu_join): Likewise.
5064 * win32-low.c (win32_detach, win32_join): Likewise.
5065 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
5066 * target.h (struct target_ops) <detach, join>: Change parameter to
5067 process_info pointer instead of pid. Adjust all implementations
5069 (detach_inferior, join_inferior): Rename 'pid' parameter to
5072 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
5073 Jan Kratochvil <jan.kratochvil@redhat.com>
5074 Paul Fertser <fercerpav@gmail.com>
5075 Tsutomu Seki <sekiriki@gmail.com>
5077 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
5078 (OBS): Add 'common/netstuff.o'.
5079 (GDBREPLAY_OBS): Likewise.
5080 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
5081 (remote_open): Implement support for IPv6
5083 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
5085 (handle_accept_event): Accept connections from IPv6 sources.
5086 (remote_prepare): Handle IPv6-style hostnames; implement
5087 support for IPv6 connections.
5088 (remote_open): Implement support for printing connections from
5091 2018-07-11 Pedro Alves <palves@redhat.com>
5094 * mem-break.c (any_persistent_commands): Add process_info
5095 parameter and use it instead of relying on the current process.
5096 Change return type to bool.
5097 * mem-break.h (any_persistent_commands): Add process_info
5098 parameter and change return type to bool.
5099 * server.c (handle_detach): Remove require_running_or_return call.
5100 Look up the process_info for the process we're about to detach.
5101 If not found, return back error to GDB. Adjust
5102 any_persistent_commands call to pass down a process pointer.
5104 2018-07-11 Pedro Alves <palves@redhat.com>
5106 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
5107 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
5108 instead of collect_register_by_name.
5109 * regcache.c (regcache_raw_get_unsigned_by_name): New.
5110 * regcache.h (regcache_raw_get_unsigned_by_name): New.
5112 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
5113 Pedro Alves <palves@redhat.com>
5115 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
5117 2018-07-03 Tom Tromey <tom@tromey.com>
5119 * linux-low.c: Update.
5120 * lynx-low.c: Update.
5121 * mem-break.c: Update.
5122 * nto-low.c: Update.
5123 * remote-utils.c: Update.
5125 * spu-low.c: Update.
5127 * win32-low.c: Update.
5129 2018-07-03 Tom Tromey <tom@tromey.com>
5133 2018-07-03 Tom Tromey <tom@tromey.com>
5135 * linux-low.c: Update.
5137 2018-07-03 Tom Tromey <tom@tromey.com>
5141 2018-07-03 Tom Tromey <tom@tromey.com>
5143 * linux-low.c: Update.
5144 * linux-mips-low.c: Update.
5145 * lynx-low.c: Update.
5146 * nto-low.c: Update.
5147 * remote-utils.c: Update.
5149 * spu-low.c: Update.
5151 * thread-db.c: Update.
5153 2018-07-03 Tom Tromey <tom@tromey.com>
5155 * linux-low.c: Update.
5156 * linux-mips-low.c: Update.
5157 * lynx-low.c: Update.
5158 * mem-break.c: Update.
5159 * nto-low.c: Update.
5160 * remote-utils.c: Update.
5162 * spu-low.c: Update.
5164 * tracepoint.c: Update.
5166 2018-07-03 Tom Tromey <tom@tromey.com>
5168 * linux-low.c: Update.
5169 * linux-ppc-low.c: Update.
5170 * linux-x86-low.c: Update.
5171 * proc-service.c: Update.
5173 * spu-low.c: Update.
5174 * thread-db.c: Update.
5175 * win32-low.c: Update.
5177 2018-07-03 Tom Tromey <tom@tromey.com>
5179 * linux-low.c: Update.
5180 * lynx-low.c: Update.
5181 * nto-low.c: Update.
5182 * remote-utils.c: Update.
5183 * spu-low.c: Update.
5184 * thread-db.c: Update.
5185 * win32-low.c: Update.
5187 2018-06-29 Joel Brobecker <brobecker@adacore.com>
5189 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
5190 parameter in call to 'amd64_create_target_description'.
5192 2018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5194 * x86-tdesc.h: Remove executable permission flag.
5196 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5198 * configure.ac: Remove AC_PREREQ, add missing quoting.
5199 * configure: Re-generate.
5200 * config.in: Re-generate.
5201 * aclocal.m4: Re-generate.
5203 2018-06-18 Simon Marchi <simon.marchi@ericsson.com>
5205 * tracepoint.h (current_traceframe): Remove declaration.
5207 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5209 * linux-aarch64-low.c (is_sve_tdesc): New function.
5210 (aarch64_sve_regs_copy_to_regcache): Likewise.
5211 (aarch64_sve_regs_copy_from_regcache): Likewise.
5212 (aarch64_regs_info): Add SVE checks.
5213 (initialize_low_arch): Initialize SVE.
5215 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5217 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
5219 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5221 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
5222 (initialize_low_tracepoint): Likewise
5223 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
5224 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
5226 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
5228 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
5230 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5232 * server.h (PBUFSIZ): Increase size
5234 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5236 * regcache.c (regcache::raw_compare): New function.
5237 * regcache.h (regcache::raw_compare): New declaration.
5239 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5241 * regcache.c (new_register_cache): Use new.
5242 (free_register_cache): Use delete.
5243 (register_data): Use const.
5244 (supply_register): Move body inside regcache.
5245 (regcache::raw_supply): New override function.
5246 (collect_register): Move body inside regcache.
5247 (regcache::raw_collect): New override function.
5248 (regcache::get_register_status): New override function.
5249 * regcache.h (struct regcache): Inherit from reg_buffer_common.
5251 2018-06-09 Tom Tromey <tom@tromey.com>
5253 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
5255 (event_queue): Use std::queue.
5256 (gdb_event_xfree): Remove.
5257 (initialize_event_loop, process_event, wait_for_event): Update.
5259 2018-06-08 Stan Cox <scox@redhat.com>
5261 * win32-low.c (win32_create_inferior): last_ptid and last_status
5262 moved to client_state.
5264 2018-06-08 Pedro Alves <palves@redhat.com>
5266 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
5267 common/common-exceptions.o, common/common-utils.o,
5268 common/errors.o, common/print-utils.o and utils.o.
5269 * gdbreplay.c: Include "common-defs.h" instead of the two
5270 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
5271 string.h or alloca.h.
5272 (perror_with_name): Delete.
5273 (remote_open): Use xstrdup instead of strdup.
5274 (main): Rename to ...
5275 (captured_main): ... this.
5278 2018-06-08 Tom Tromey <tom@tromey.com>
5280 * linux-low.c (linux_low_read_btrace): Update.
5282 2018-06-04 Stan Cox <scox@redhat.com>
5284 * server.h (struct client_state): New.
5285 * server.c (cont_thread, general_thread, multi_process)
5286 (report_fork_events, report_vfork_events, report_exec_events)
5287 (report_thread_events, swbreak_feature, hwbreak_feature)
5288 (vCont_supported, disable_randomization, pass_signals)
5289 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
5290 Moved to client_state.
5291 * remote-utils.c (remote_debug, noack_mode)
5292 (transport_is_reliable): Moved to client_state.
5293 * tracepoint.c (current_traceframe): Moved to client_state.
5296 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
5297 linux-low.c, remote-utils.h, target.c: Use client_state.
5299 2018-05-31 Alan Hayward <alan.hayward@arm.com>
5301 * configure.srv: Add new c/h file.
5303 2018-05-31 Alan Hayward <alan.hayward@arm.com>
5305 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
5308 2018-05-25 Maciej W. Rozycki <macro@mips.com>
5310 * gdb.arch/mips-fpregset-core.exp: New test.
5311 * gdb.arch/mips-fpregset-core.c: New test source.
5313 2018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
5316 * hostio.c (require_int): Do not report overflow for integers
5317 between 0xfffffff and 0x7fffffff.
5319 2018-05-22 Maciej W. Rozycki <macro@mips.com>
5321 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
5322 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
5323 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
5325 (the_low_target): Wire them.
5327 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5329 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
5330 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
5331 mode. Call collect_register_by_name with vscr using
5332 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
5333 (ppc_store_vrregset): Add and set vscr_offset variable as in
5334 ppc_fill_vrregset. Call supply_register_by_name with vscr using
5337 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5339 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
5340 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
5341 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
5343 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5345 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
5346 (ppc_store_vsxregset): Likewise.
5347 (ppc_fill_vrregset): Likewise.
5348 (ppc_store_vrregset): Likewise.
5349 (ppc_fill_evrregset): Likewise.
5350 (ppc_store_evrregset): Likewise.
5351 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
5352 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
5355 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5357 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
5358 wordsize of the inferior. Call ppc_linux_target_wordsize.
5360 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5362 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
5363 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
5364 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
5365 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
5366 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
5367 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
5368 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
5369 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
5370 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
5371 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
5372 (tdesc_powerpc_e500l): Remove.
5373 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
5374 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
5375 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
5376 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
5378 (ppc_arch_setup): Remove target description matching code. Fill a
5379 ppc_linux_features struct and call ppc_linux_match_description
5382 2018-05-22 Maciej W. Rozycki <macro@mips.com>
5384 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
5385 width of the requested register exceeds the width of the
5387 (mips_cannot_store_register): Likewise.
5389 2018-05-21 Maciej W. Rozycki <macro@mips.com>
5391 * linux-mips-low.c (mips_fetch_register): New function. Update
5393 (mips_store_gregset): Supply 0 rather than $restart for $zero.
5394 (the_low_target): Wire `mips_fetch_register'.
5396 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5398 * lynx-i386-low.c (LYNXOS_178): New macro.
5399 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
5400 the layout on LynxOS-178.
5401 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
5402 handle floating point registers that are not supported by
5405 2018-05-10 Tom Tromey <tom@tromey.com>
5407 * configure: Rebuild.
5409 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5412 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
5413 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
5414 Use it to set the expedite_regs field in the given tdesc.
5415 * x86-tdesc.h: New file.
5416 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
5417 Adjust following the addition of the new expedite_regs parameter
5418 to init_target_desc.
5419 * linux-tic6x-low.c (tic6x_read_description): Likewise.
5420 * linux-x86-tdesc.c: #include "x86-tdesc.h".
5421 (i386_linux_read_description, amd64_linux_read_description):
5422 Adjust following the addition of the new expedite_regs parameter
5423 to init_target_desc.
5424 * lynx-i386-low.c: #include "x86-tdesc.h".
5425 (lynx_i386_arch_setup): Adjust following the addition of the new
5426 expedite_regs parameter to init_target_desc.
5427 * nto-x86-low.c: #include "x86-tdesc.h".
5428 (nto_x86_arch_setup): Adjust following the addition of the new
5429 expedite_regs parameter to init_target_desc.
5430 * win32-i386-low.c: #include "x86-tdesc.h".
5431 (i386_arch_setup): Adjust following the addition of the new
5432 expedite_regs parameter to init_target_desc.
5434 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5437 * win32-low.c (win32_create_inferior): Add call to my_wait
5438 setting last_status global.
5440 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5443 * win32-low.c (create_process): Only call gdb_tilde_expand if
5444 inferior_cwd is not NULL.
5446 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
5448 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
5449 registers to the cache if their values have changed.
5450 (i387_xsave_to_cache): Provide default values for x87 control
5451 registers when these features are available, but disabled.
5452 * regcache.c (supply_register_by_name_zeroed): New function.
5453 * regcache.h (supply_register_by_name_zeroed): Declare new
5456 2018-05-07 Tom Tromey <tom@tromey.com>
5458 * configure: Rebuild.
5460 2018-05-04 Tom Tromey <tom@tromey.com>
5462 * configure: Rebuild.
5464 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5465 Pedro Alves <palves@redhat.com>
5467 * linux-aarch64-low.c (aarch64_stopped_data_address):
5470 2018-04-27 Tom Tromey <tom@tromey.com>
5472 * configure: Rebuild.
5474 2018-04-23 Tom Tromey <tom@tromey.com>
5476 * configure: Rebuild.
5478 2018-04-19 Simon Marchi <simon.marchi@ericsson.com>
5480 * Makefile.in (depcomp): Add "..".
5481 (all_deps_files): New and use it.
5483 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5485 * configure.srv (aarch64*-*-linux*): Don't include xml.
5486 (i[34567]86-*-cygwin*): Likewise.
5487 (i[34567]86-*-linux*): Likewise.
5488 (i[34567]86-*-lynxos*): Likewise.
5489 (i[34567]86-*-mingw32ce*): Likewise.
5490 (i[34567]86-*-mingw*): Likewise.
5491 (i[34567]86-*-nto*): Likewise.
5492 (tic6x-*-uclinux): Likewise.
5493 (x86_64-*-linux*): Likewise.
5494 (x86_64-*-mingw*): Likewise.
5495 (x86_64-*-cygwin*): Likewise.
5497 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5499 * tdesc.c: Remove xml parameter.
5501 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5503 * server.c (get_features_xml): Remove cast.
5504 * tdesc.c (void target_desc::accept): Fill in function.
5505 (tdesc_get_features_xml): Remove old xml creation.
5506 (print_xml_feature::visit_pre): Add xml vistor.
5507 * tdesc.h (struct target_desc): Make xmltarget mutable.
5508 (tdesc_get_features_xml): Remove declaration.
5510 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5512 * tdesc.c (tdesc_architecture_name): Add new function.
5513 (tdesc_osabi_name): Likewise.
5514 (tdesc_get_features_xml): Use new functions.
5516 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5518 * tdesc.c (tdesc_create_flags): Remove.
5519 (tdesc_add_flag): Likewise.
5520 (tdesc_named_type): Likewise.
5521 (tdesc_create_union): Likewise.
5522 (tdesc_create_struct): Likewise.
5523 (tdesc_create_vector): Likewise.
5524 (tdesc_add_bitfield): Likewise.
5525 (tdesc_add_field): Likewise.
5526 (tdesc_set_struct_size): Likewise.
5528 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5530 * tdesc.c (~target_desc): Remove implictly deleted items.
5531 (init_target_desc): Iterate all features.
5532 (tdesc_get_features_xml): Use vector.
5533 (tdesc_create_feature): Create feature.
5534 * tdesc.h (tdesc_feature) Remove
5535 (target_desc): Add features.
5537 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5539 * Makefile.in: Add common/tdesc.c
5540 * tdesc.c (init_target_desc): init all reg_defs from register
5542 (tdesc_create_reg): Create tdesc_reg.
5543 * tdesc.h (tdesc_feature): Add register vector.
5545 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
5547 * tdesc.h (struct target_desc) <features>: Change type to
5548 std::vector<std::string>.
5549 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
5551 (tdesc_get_features_xml): Likewise.
5552 (tdesc_create_feature): Likewise.
5554 2018-03-26 Alan Hayward <alan.hayward@arm.com>
5556 * regcache.c (find_register_by_number): Return a ref.
5557 (find_regno): Use references.
5558 (register_size): Likewise.
5559 (register_data): Likewise.
5560 * tdesc.c (target_desc::~target_desc): Remove free calls.
5561 (target_desc::operator==): Use std::vector compare.
5562 (init_target_desc): Use reference.
5563 (tdesc_create_reg): Use reg constructors.
5564 * tdesc.h (struct target_desc): Replace pointer with object.
5566 2018-03-23 Alan Hayward <alan.hayward@arm.com>
5568 * regcache.c (find_register_by_number): Make static.
5569 (find_regno): Use find_register_by_number
5570 * regcache.h (struct reg): Remove declaration.
5572 2018-03-23 Alan Hayward <alan.hayward@arm.com>
5574 * tdesc.c (target_desc::~target_desc): Move to here.
5575 (target_desc::operator==): Likewise.
5576 * tdesc.h (target_desc::~target_desc): Move from here.
5577 (target_desc::operator==): Likewise.
5579 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
5581 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
5583 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5585 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
5587 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
5588 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
5589 and init_registers_s390_gs_linux64.
5591 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5593 * linux-s390-low.c (s390_fill_gs): Remove function.
5594 (s390_fill_gsbc): Remove function.
5595 (s390_regsets): Set fill functions for the guarded storage regsets
5598 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5600 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
5601 the word size. Add comment.
5602 (s390_get_wordsize): New function.
5603 (s390_arch_setup): No longer select a temporary tdesc to fetch the
5604 pswm with it. Instead, use s390_get_wordsize to determine the
5605 word size first and derive the correct tdesc from that directly.
5607 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
5609 * Makefile.in: Include silent-rules.mk.
5610 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
5611 (COMPILE): Add ECHO_CXX.
5612 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5613 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5614 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
5615 (version-generated.c): Add ECHO_GEN.
5616 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
5617 (IPAGENT_COMPILE): Add ECHO_CXX.
5618 (%-generated.c): Add ECHO_REGDAT.
5620 2018-03-14 Tom Tromey <tom@tromey.com>
5623 * ax.c (ax_printf): Special case for NULL.
5625 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5627 * linux-low.c (linux_qxfer_libraries_svr4): Use
5628 xml_escape_text_append.
5630 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5632 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
5634 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5636 * server.c (handle_general_set): Remove unnecessary xstrdup.
5638 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5640 * server.c (parse_debug_format_options): Adjust to
5641 delim_string_to_char_ptr_vec changes.
5642 * thread-db.c (thread_db_load_search): Adjust to
5643 dirnames_to_char_ptr_vec changes.
5645 2018-03-01 Markus Metzger <markus.t.metzger@intel.com>
5647 * target.h (target_enable_btrace, target_disable_btrace)
5648 (target_read_btrace, target_read_btrace_conf): Turn macro into
5649 inline function. Throw error if target method is not defined.
5650 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
5651 check for btrace target method. Be prepared to handle exceptions
5652 from btrace target methods.
5654 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5656 * server.c (captured_main): Change order of error message printed
5657 when the current working directory cannot be found.
5659 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5661 * server.c: Include "filenames.h" and "pathstuff.h".
5662 (program_name): Delete variable.
5663 (program_path): New anonymous class.
5664 (get_exec_wrapper): Use "program_path" instead of
5666 (handle_v_run): Likewise.
5667 (captured_main): Likewise.
5668 (process_serial_event): Likewise.
5670 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5672 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
5673 (OBJS): Add "pathstuff.o".
5674 * server.c (current_directory): New global variable.
5675 (captured_main): Initialize "current_directory".
5677 2018-02-26 Alan Hayward <alan.hayward@arm.com>
5679 * tdesc.c: Use common/tdesc.h.
5680 * tdesc.h: Likewise.
5682 2018-02-20 Alan Hayward <alan.hayward@arm.com>
5683 Simon Marchi <simon.marchi@ericsson.com>
5685 * Makefile.in: Switch order of make rules.
5687 2018-02-19 Alan Hayward <alan.hayward@arm.com>
5689 * Makefile.in: Add common directory in build.
5690 * configure.ac: Add common reference.
5691 * configure: Regenerate.
5693 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
5695 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
5696 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
5697 * spu-low.c (spu_target_ops): Likewise.
5698 * win32-low.c (win32_target_ops): Likewise.
5699 * server.c (supported_btrace_packets): Report packets unconditionally.
5700 * target.h (target_ops) <supports_btrace>: Remove.
5701 (target_supports_btrace): Remove.
5703 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
5705 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
5706 (handle_btrace_disable): Change return type to void. Use exceptions
5708 (handle_btrace_general_set): Catch exception and copy message to
5711 2018-02-08 Tom Tromey <tom@tromey.com>
5713 * linux-low.c (install_software_single_step_breakpoints): Use
5714 make_scoped_restore.
5715 * inferiors.c (make_cleanup_restore_current_thread): Remove.
5716 (do_restore_current_thread_cleanup): Remove.
5717 * gdbthread.h (make_cleanup_restore_current_thread): Don't
5720 2018-02-08 Tom Tromey <tom@tromey.com>
5722 * mem-break.c (set_raw_breakpoint_at): Use
5723 gdb::unique_xmalloc_ptr.
5725 2018-01-30 Pedro Alves <palves@redhat.com>
5728 * target.c (target_terminal::terminal_state): Rename to ...
5729 (target_terminal::m_terminal_state): ... this.
5731 2018-01-19 James Clarke <jrtc27@jrtc27.com>
5733 * linux-low.c (handle_extended_wait): Surround call to
5734 thread_db_notice_clone with #ifdef USE_THREAD_DB.
5736 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
5738 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
5739 linux_ptrace_attach_fail_reason_string now returning an
5741 (linux_attach): Likewise.
5742 * thread-db.c (attach_thread): Likewise.
5744 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
5747 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
5748 checking for fs_base/gs_base fields in struct user_regs_struct.
5749 * configure: Regenerate.
5751 2018-01-16 Yao Qi <yao.qi@linaro.org>
5754 * linux-low.c (fetch_register): Call supply_register instead of
5757 2018-01-08 Yao Qi <yao.qi@linaro.org>
5758 Simon Marchi <simon.marchi@ericsson.com>
5760 * Makefile.in (OBS): Remove selftest.o.
5761 * configure.ac: Set srv_selftest_objs if $development is true.
5762 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
5763 * configure: Re-generated.
5764 * server.c (captured_main): Wrap variable selftest_filter with
5767 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
5769 * server.c (parse_debug_format_options): Return std::string.
5770 (handle_monitor_command, captured_main): Adjust.
5772 2018-01-05 Pedro Alves <palves@redhat.com>
5775 * server.c (captured_main): Pass quiet=false to
5776 save_original_signals_state.
5778 2018-01-01 Joel Brobecker <brobecker@adacore.com>
5780 * gdbreplay.c (gdbreplay_version): Update copyright year in
5782 * server.c (gdbserver_version): Likewise.
5784 2017-12-08 Tom Tromey <tom@tromey.com>
5786 * ax.c (ax_printf): Update.
5788 2017-12-07 Yao Qi <yao.qi@linaro.org>
5790 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
5791 aarch64_linux_read_description.
5792 * linux-amd64-ipa.c (idx2mask): New array.
5793 (get_ipa_tdesc): Move idx2mask out.
5794 (initialize_low_tracepoint): Initialize target descriptions.
5795 * linux-i386-ipa.c (idx2mask): New array.
5796 (get_ipa_tdesc): Move idx2mask out.
5797 (initialize_low_tracepoint): Initialize target descriptions.
5799 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
5801 * tdesc.c (struct tdesc_type): Change return type.
5802 (tdesc_add_flag): Change parameter type.
5803 (tdesc_add_bitfield): Likewise.
5804 (tdesc_add_field): Likewise.
5805 (tdesc_set_struct_size): Likewise.
5807 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
5809 * regcache.c (registers_to_string): Remove unused variable.
5811 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5813 * inferiors.c (for_each_inferior_with_data): Remove.
5814 * inferiors.h (for_each_inferior_with_data): Remove.
5815 * server.c (handle_qxfer_threads_worker): Change parameter type.
5816 (handle_qxfer_threads_proper): Use for_each_thread.
5818 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5820 * inferiors.c (for_each_inferior): Remove.
5821 (clear_inferiors): Use for_each_thread.
5822 * inferiors.h (for_each_inferior): Remove.
5823 * linux-low.c (linux_wait_for_event_filtered): Use
5825 (linux_stabilize_threads): Likewise.
5826 * regcache.c (regcache_release): Likewise.
5827 * server.c (gdb_wants_all_threads_stopped): Likewise.
5828 (clear_pending_status_callback): Remove.
5829 (handle_status): Use for_each_thread.
5830 (captured_main): Likewise.
5831 * win32-low.c (child_init_thread_list): Likewise.
5832 (win32_clear_inferiors): Likewise.
5833 (fake_breakpoint_event): Likewise.
5835 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5837 * inferiors.h (find_inferior): Remove.
5838 * inferiors.c (find_inferior): Remove.
5840 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5842 * linux-low.c (resume_status_pending_p): Update comment.
5843 (need_step_over_p): Update comment.
5845 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5847 * linux-low.c (proceed_one_lwp): Return void, change parameter
5849 (unsuspend_and_proceed_one_lwp): Likewise.
5850 (proceed_all_lwps): Use for_each_thread.
5851 (unstop_all_lwps): Likewise.
5853 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5855 * linux-low.c (linux_resume_one_thread): Return void, take
5857 (linux_resume): Use for_each_thread.
5859 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5861 * linux-low.c (send_sigstop_callback): Return void, change
5862 parameter type. Rename to...
5863 (send_sigstop): ... this.
5864 (suspend_and_send_sigstop_callback): Return void, change parameter
5866 (suspend_and_send_sigstop): ... this.
5867 (stop_all_lwps): Use for_each_thread.
5869 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5871 * linux-low.c (lwp_running): Return bool, remove unused
5873 (linux_stabilize_threads): Use find_thread.
5875 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5877 * linux-low.c (select_singlestep_lwp_callback): Remove.
5878 (count_events_callback): Remove.
5879 (select_event_lwp_callback): Remove.
5880 (select_event_lwp): Use find_thread/for_each_thread.
5882 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5884 * linux-low.c (not_stopped_callback): Return bool, take filter
5886 (linux_wait_for_event_filtered): Use find_thread.
5887 (linux_wait_1): Likewise.
5889 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5891 * linux-low.c (same_lwp): Remove.
5892 (find_lwp_pid): Use find_thread.
5894 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5896 * linux-low.c (delete_lwp_callback): Remove.
5897 (linux_mourn): Use for_each_thread.
5899 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5901 * linux-low.c (linux_detach_lwp_callback): Return void, remove
5902 args parameter, don't check for pid.
5903 (linux_detach): Use for_each_thread.
5905 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5907 * linux-low.c (struct counter): Remove.
5908 (second_thread_of_pid_p): Remove.
5909 (last_thread_of_process_p): Use find_thread.
5911 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5913 * inferiors.c (find_inferior_in_random): Remove.
5914 * inferiors.h (find_inferior_in_random): Remove.
5915 * linux-low.c (status_pending_p_callback): Return bool, accept
5916 parameter ptid directly.
5917 (linux_wait_for_event_filtered): Use find_thread_in_random.
5918 (linux_wait_1): Likewise.
5920 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5922 * inferiors.c (find_inferior_id): Remove.
5923 (find_thread_ptid): Move implemention from find_inferior_id to
5925 * inferiors.h (find_inferior_id): Remove.
5926 * server.c (handle_status): Use find_thread_ptid.
5927 (process_serial_event): Likewise.
5928 * thread-db.c (find_one_thread): Likewise.
5929 (thread_db_thread_handle): Likewise.
5930 * win32-low.c (thread_rec): Likewise.
5931 (child_delete_thread): Likewise.
5932 (win32_thread_alive): Likewise.
5933 (get_child_debug_event): Likewise.
5935 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5937 * linux-mips-low.c (update_watch_registers_callback): Return
5938 void, remove pid_p parameter, don't check for pid.
5939 (mips_insert_point, mips_remove_point): Use for_each_thread.
5941 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5943 * lynx.low (lynx_delete_thread_callback): Remove.
5944 (lynx_mourn): Use for_each_thread.
5946 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5948 * regcache.c (regcache_invalidate_one): Remove.
5949 (regcache_invalidate_pid): use for_each_thread.
5951 2017-11-26 Tom Tromey <tom@tromey.com>
5953 * linux-low.c (linux_create_inferior): Update.
5955 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
5957 * spu-low.c (spu_create_inferior): Fix typo in argument name.
5959 2017-11-24 Alan Hayward <alan.hayward@arm.com>
5961 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
5962 * linux-aarch64-low.c (initialize_low_arch): Call init func.
5963 * linux-aarch64-tdesc-selftest.c: New file.
5964 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
5966 2017-11-24 Alan Hayward <alan.hayward@arm.com>
5968 * configure.srv: Add new file.
5969 * linux-aarch64-low.c (initialize_low_arch): Call init func.
5970 * linux-aarch64-tdesc-selftest.c: New file.
5971 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
5973 2017-11-24 Alan Hayward <alan.hayward@arm.com>
5975 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
5976 * linux-aarch64-low.c (initialize_low_arch): Remove init.
5977 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
5979 2017-11-24 Alan Hayward <alan.hayward@arm.com>
5981 * configure.srv: Add new files.
5982 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
5983 aarch64_linux_read_description.
5984 * linux-aarch64-low.c (aarch64_linux_read_description):
5985 Merge with aarch64_arch_setup.
5986 (aarch64_arch_setup): Call aarch64_linux_read_description.
5987 * linux-aarch64-tdesc.c: New file.
5988 * linux-aarch64-tdesc.h: New file.
5990 2017-11-24 Yao Qi <yao.qi@linaro.org>
5992 * configure.srv: Set $srv_regobj for tic6x-linux.
5993 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
5994 (tic6x_read_description): Move some code to tic6x_arch_setup.
5995 (tic6x_tdesc_test): New function.
5996 (initialize_low_arch): Call selftests::register_test.
5998 2017-11-22 Yao Qi <yao.qi@linaro.org>
6000 * remote-utils.c (prepare_resume_reply): Use memcpy.
6002 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6004 * linux-low.c (kill_one_lwp_callback): Return void, take
6005 argument directly, don't filter on pid.
6006 (linux_kill): Use for_each_thread.
6008 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6010 * linux-low.c (need_step_over_p): Return bool, remove dummy
6012 (linux_resume, proceed_all_lwps): Use find_thread.
6014 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6016 * linux-low.c (resume_status_pending_p): Return bool, remove
6018 (linux_resume): Use find_thread.
6020 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6022 * linux-low.c (struct thread_resume_array): Remove.
6023 (linux_set_resume_request): Return void, take arguments
6025 (linux_resume): Use for_each_thread.
6027 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6029 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
6030 return bool, remove data argument.
6031 (linux_stabilize_threads): Use find_thread.
6033 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6035 * linux-low.c (unsuspend_one_lwp): Remove.
6036 (unsuspend_all_lwps): Use for_each_thread, inline code from
6039 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6041 * gdbthread.h (find_thread): Add overload with ptid_t filter.
6042 * linux-low.c (struct iterate_over_lwps_args): Remove.
6043 (iterate_over_lwps_filter): Remove.
6044 (iterate_over_lwps): Use find_thread.
6046 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6048 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
6049 (linux_handle_new_gdb_connection): Use for_each_thread, inline
6050 code from reset_lwp_ptrace_options_callback.
6052 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6054 * linux-arm-low.c (struct update_registers_data): Remove.
6055 (update_registers_callback): Return void, take arguments
6056 directly, don't check thread's pid.
6057 (arm_insert_point, arm_remove_point): Use for_each_thread.
6059 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6061 * win32-low.c (continue_one_thread): Return void, take argument
6063 (child_continue): Use for_each_thread.
6065 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6067 * win32-i386-low.c (update_debug_registers_callback): Rename
6069 (update_debug_registers): ... this, return void, remove pid_p arg.
6070 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
6072 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
6074 * inferiors.h (struct process_info): Add constructor, initialize
6076 <syscalls_to_catch>: Change type to std::vector<int>.
6077 * inferiors.c (add_process): Allocate process_info with new.
6078 (remove_process): Free process_info with delete.
6079 * linux-low.c (handle_extended_wait): Adjust.
6080 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
6081 * server.c (handle_general_set): Adjust.
6083 2017-11-16 Pedro Alves <palves@redhat.com>
6085 * remote-utils.c (remote_close): Block SIGIO signals instead of
6086 uninstalling the SIGIO handler.
6088 2017-11-16 Alan Hayward <alan.hayward@arm.com>
6090 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
6092 2017-11-16 Yao Qi <yao.qi@linaro.org>
6094 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
6095 (tic6x_store_gregset): Likewise.
6096 (tic6x_usrregs_info): Move it up.
6098 2017-11-15 Alan Hayward <alan.hayward@arm.com>
6100 * Makefile.in: Update arch rules.
6101 * configure.srv: Explicitly mark arch/ files.
6103 2017-11-13 Andreas Schwab <schwab@suse.de>
6105 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
6107 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6109 2017-11-06 Pedro Alves <palves@redhat.com>
6111 * config.in, configure: Regenerate.
6113 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6115 * target.c (struct thread_search): Remove.
6116 (thread_search_callback): Remove.
6117 (prepare_to_access_memory): Use for_each_thread instead of
6118 find_inferior. Inline code from thread_search_callback.
6120 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6122 * server.c (struct visit_actioned_threads_data): Remove.
6123 (visit_actioned_threads): Change prototype to take arguments
6125 (resume): Use find_thread instead of find_inferior.
6127 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6129 * server.c (queue_stop_reply_callback): Change prototype, return
6131 (find_status_pending_thread_callback): Remove.
6132 (handle_status): Replace find_inferior with find_thread and
6135 2017-10-25 Alan Hayward <alan.hayward@arm.com>
6137 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
6139 (aarch64_store_gregset): Likewise.
6140 (aarch64_fill_fpregset): Likewise.
6141 (aarch64_store_fpregset): Likewise.
6143 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
6145 * gdbthread.h (find_thread, for_each_thread): New functions.
6146 * inferiors.c (thread_of_pid): Remove.
6147 (find_any_thread_of_pid): Use find_thread.
6148 * linux-low.c (num_lwps): Use for_each_thread.
6150 2017-10-17 Yao Qi <yao.qi@linaro.org>
6152 * Makefile.in: Remove one rule.
6153 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
6155 2017-10-17 Yao Qi <yao.qi@linaro.org>
6157 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
6158 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
6160 2017-10-17 Yao Qi <yao.qi@linaro.org>
6162 * configure.srv: Rename arm.o with arch/arm.o.
6164 2017-10-17 Yao Qi <yao.qi@linaro.org>
6166 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
6167 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
6168 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
6169 (arch-i386.o, arch-amd64.o): Remove rules.
6170 (arch/%.o): New rule.
6171 Update POSTCOMPILE and COMPILE.pre.
6172 * configure.ac: Invoke AC_CONFIG_COMMANDS.
6173 * configure: Re-generated.
6174 * configure.srv: Replace arch-i386.o with arch/i386.o.
6175 Replace arch-amd64.o with arch/amd64.o.
6177 2017-10-16 Yao Qi <yao.qi@linaro.org>
6179 * configure: Regenerated.
6181 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6183 * inferiors.h: (struct inferior_list): Remove.
6184 (struct inferior_list_entry); Remove.
6185 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
6186 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
6187 get_first_inferior): Remove.
6188 (for_each_inferior, for_each_inferior_with_data, find_inferior,
6189 find_inferior_id, find_inferior_in_random): Change signature.
6190 * inferiors.c (all_threads): Change type to
6191 std::list<thread_info *>.
6192 (get_thread): Remove macro.
6193 (find_inferior, find_inferior_id): Change signature, implement
6195 (find_inferior_in_random): Change signature, implement using
6196 find_thread_in_random.
6197 (for_each_inferior, for_each_inferior_with_data): Change
6198 signature, implement using for_each_thread.
6199 (add_inferior_to_list, remove_inferior): Remove.
6200 (add_thread, get_first_thread, thread_of_pid,
6201 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
6202 (get_first_inferior, one_inferior_p, clear_inferior_list):
6204 (clear_inferiors, get_thread_process): Update.
6205 * gdbthread.h: Include <list>.
6206 (struct thread_info) <entry>: Remove field.
6208 (all_threads): Change type to std::list<thread_info *>.
6209 (get_first_inferior): Add doc.
6210 (find_thread, for_each_thread, find_thread_in_random): New
6212 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
6213 * linux-arm-low.c (update_registers_callback): Update.
6214 * linux-low.c (second_thread_of_pid_p): Update.
6215 (kill_one_lwp_callback, linux_detach_lwp_callback,
6216 delete_lwp_callback, status_pending_p_callback, same_lwp,
6217 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
6218 iterate_over_lwps, not_stopped_callback,
6219 resume_stopped_resumed_lwps, count_events_callback,
6220 select_singlestep_lwp_callback, select_event_lwp_callback,
6221 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
6222 suspend_and_send_sigstop_callback, wait_for_sigstop,
6223 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
6224 lwp_running, linux_set_resume_request, resume_status_pending_p,
6225 need_step_over_p, start_step_over, linux_resume_one_thread,
6226 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
6227 reset_lwp_ptrace_options_callback): Update.
6228 * linux-mips-low.c (update_watch_registers_callback): Update.
6229 * regcache.c (regcache_invalidate_one, regcache_invalidate):
6231 (free_register_cache_thread_one): Remove.
6232 (regcache_release): Update.
6233 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
6234 handle_qxfer_threads_worker): Update.
6235 (handle_query): Update, use list iterator.
6236 (visit_actioned_threads, handle_pending_status,
6237 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
6238 clear_pending_status_callback, set_pending_status_callback,
6239 find_status_pending_thread_callback, handle_status,
6240 process_serial_event): Update.
6241 * target.c (thread_search_callback): Update.
6242 * thread-db.c (thread_db_get_tls_address): Update.
6243 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
6245 * win32-i386-low.c (update_debug_registers_callback): Update.
6246 * win32-low.c (delete_thread_info, child_delete_thread,
6247 continue_one_thread, suspend_one_thread,
6248 get_child_debug_event): Adjust.
6250 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6252 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
6253 * inferiors.h: Include <list>.
6254 (struct process_info) <entry>: Remove field.
6256 (pid_of): Change macro to function.
6257 (ptid_of, lwpid_of): Remove macro.
6258 (all_processes): Change type to std::list<process_info *>.
6259 (ALL_PROCESSES): Remove macro.
6260 (for_each_process, find_process): New function.
6261 * inferiors.c (all_processes): Change type to
6262 std::list<process_info *>.
6263 (find_thread_process): Adjust.
6264 (add_process): Likewise.
6265 (remove_process): Likewise.
6266 (find_process_pid): Likewise.
6267 (get_first_process): Likewise.
6268 (started_inferior_callback): Remove.
6269 (have_started_inferiors_p): Adjust.
6270 (attached_inferior_callback): Remove.
6271 (have_attached_inferiors_p): Adjust.
6272 * linux-low.c (check_zombie_leaders): Likewise.
6273 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
6274 (x86_linux_update_xmltarget): Adjust.
6275 * server.c (handle_query): Likewise.
6276 (gdb_reattached_process): Remove.
6277 (handle_status): Adjust.
6278 (kill_inferior_callback): Likewise.
6279 (detach_or_kill_inferior): Remove.
6280 (print_started_pid): Likewise.
6281 (print_attached_pid): Likewise.
6282 (detach_or_kill_for_exit): Update.
6283 (process_serial_event): Likewise.
6284 * linux-arm-low.c (arm_new_fork): Likewise.
6286 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6288 * dll.h: Include <list>.
6289 (struct dll_info): Add constructor.
6290 <entry>: Remove field.
6291 (all_dlls): Change type to std::list<dll_info>.
6292 * dll.c: Include <algorithm>.
6293 (get_dll): Remove macro.
6294 (all_dlls): Change type to std::list<dll_info *>.
6295 (free_one_dll): Remove.
6296 (match_dll): Likewise.
6297 (loaded_dll): Adjust.
6298 (unloaded_dll): Adjust to all_dlls type change, use
6299 std::find_if. Inline code from match_dll.
6300 (clear_dlls): Adjust to all_dlls type change.
6301 * server.c (emit_dll_description): Remove.
6302 (handle_qxfer_libraries): Adjust to all_dlls type change,
6303 integrate emit_dll_description's functionality.
6305 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6307 * linux-low.h (struct linux_target_ops) <delete_process>: New
6309 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
6310 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
6311 (struct linux_target_ops): Add delete_process callback.
6312 * linux-arm-low.c (arm_delete_process): New.
6313 (struct linux_target_ops): Add delete_process callback.
6314 * linux-bfin-low.c (struct linux_target_ops): Likewise.
6315 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
6316 * linux-m32r-low.c (struct linux_target_ops): Likewise.
6317 * linux-mips-low.c (mips_linux_delete_process): New.
6318 (struct linux_target_ops): Add delete_process callback.
6319 * linux-ppc-low.c (struct linux_target_ops): Likewise.
6320 * linux-s390-low.c (struct linux_target_ops): Likewise.
6321 * linux-sh-low.c (struct linux_target_ops): Likewise.
6322 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
6323 * linux-tile-low.c (struct linux_target_ops): Likewise.
6324 * linux-x86-low.c (x86_linux_delete_process): New.
6325 (struct linux_target_ops): Add delete_process callback.
6326 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
6328 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6330 * linux-aarch64-low.c (the_low_target): Add thread delete
6332 * linux-arm-low.c (arm_delete_thread): New function.
6333 (the_low_target): Add thread delete callback.
6334 * linux-bfin-low.c (the_low_target): Likewise.
6335 * linux-crisv32-low.c (the_low_target): Likewise.
6336 * linux-low.c (delete_lwp): Invoke delete_thread callback if
6338 * linux-low.h (struct linux_target_ops) <delete_thread>: New
6340 * linux-m32r-low.c (the_low_target): Add thread delete callback.
6341 * linux-mips-low.c (mips_linux_delete_thread): New function.
6342 (the_low_target): Add thread delete callback.
6343 * linux-ppc-low.c (the_low_target): Likewise.
6344 * linux-s390-low.c (the_low_target): Likewise.
6345 * linux-sh-low.c (the_low_target): Likewise.
6346 * linux-tic6x-low.c (the_low_target): Likewise.
6347 * linux-tile-low.c (the_low_target): Likewise.
6348 * linux-x86-low.c (the_low_target): Likewise.
6349 * linux-xtensa-low.c (the_low_target): Likewise.
6351 2017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
6353 * win32-low.c: Include "common-inferior.h".
6355 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6357 * inferiors.c (set_inferior_cwd): New function.
6358 * server.c (handle_general_set): Handle QSetWorkingDir packet.
6359 (handle_query): Inform that QSetWorkingDir is supported.
6360 * win32-low.c (create_process): Pass the inferior's cwd to
6363 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6365 * inferiors.c (current_inferior_cwd): New global variable.
6366 (get_inferior_cwd): New function.
6367 * inferiors.h (struct process_info) <cwd>: New field.
6369 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6371 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
6372 (OBS): Add gdb_tilde_expand.o.
6374 2017-10-02 Simon Marchi <simon.marchi@ericsson.com>
6376 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
6377 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
6379 2017-09-29 Pedro Alves <palves@redhat.com>
6381 * ax.c (gdb_parse_agent_expr): Constify.
6382 * ax.h (gdb_parse_agent_expr): Constify.
6383 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
6385 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
6386 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
6387 * remote-utils.h (read_ptid): Constify.
6388 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
6389 (process_point_options, process_serial_event): Constify.
6390 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
6391 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
6392 (cmd_qtbuffer): Constify.
6394 2017-09-29 Pedro Alves <palves@redhat.com>
6396 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
6399 2017-09-29 Pedro Alves <palves@redhat.com>
6401 * linux-low.c (handle_extended_wait): Pass parent thread instead
6402 of process to thread_db_notice_clone.
6403 * linux-low.h (thread_db_notice_clone): Replace parent process
6404 parameter with parent thread parameter.
6405 * thread-db.c (find_one_thread): Add comment.
6406 (thread_db_notice_clone): Replace parent process parameter with
6407 parent thread parameter. Temporarily switch to the parent thread.
6409 2017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
6411 * gdbthread.h: Include "common-gdbthread.h".
6412 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
6413 "if" when validating the ptid.
6414 * remote-utils.c: Include "gdbthread.h".
6415 (prepare_resume_reply): Use "switch_to_thread".
6416 * target.c (done_accessing_memory): Likewise.
6418 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6420 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
6421 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
6422 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
6423 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
6424 s390x-gs-linux64-ipa.o to ipa_obj.
6425 * linux-s390-low.c (HWCAP_S390_GS): New define.
6426 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
6428 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
6429 (s390_arch_setup): Check for guarded-storage support and choose
6431 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
6432 init_registers_s390x_gs_linux64.
6433 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
6435 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
6436 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
6438 2017-09-22 Simon Marchi <simon.marchi@ericsson.com>
6440 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
6442 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6444 * linux-low.h (struct lwp_info): Add new field, thread_handle.
6445 (thread_db_thread_handle): Declare.
6446 * linux-low.c (linux_target_ops): Initialize thread_handle.
6447 * server.c (handle_qxfer_threads_worker): Add support for
6449 * target.h (struct target_ops): Add new function pointer,
6451 (target_thread_handle): Define.
6452 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
6454 (thread_db_thread_handle): New function.
6456 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6458 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
6459 * linux-low.h (thread_db_notice_clone): Declare.
6460 * thread-db.c (thread_db_notice_clone): New function.
6462 2017-09-21 Pedro Alves <palves@redhat.com>
6464 * server.c (gdb_read_memory, handle_status, process_serial_event)
6465 (handle_serial_event, handle_target_event): Adjust to
6466 set_desired_thread prototype change.
6467 * target.c (set_desired_thread): Remove 'use_general' parameter
6469 * target.h (set_desired_thread): Remove 'use_general' parameter.
6471 2017-09-20 Tom Tromey <tom@tromey.com>
6473 * target.c (target_terminal::terminal_state): Define.
6474 (target_terminal::init): Rename from target_terminal_init.
6475 (target_terminal::inferior): Rename from
6476 target_terminal_inferior.
6477 (target_terminal::ours): Rename from target_terminal_ours.
6478 (target_terminal::ours_for_output, target_terminal::info): New.
6480 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6482 * server.c (accumulate_file_name_length): Remove.
6483 (emit_dll_description): Adjust to std::string change.
6484 (handle_qxfer_libraries): Use std::string to hold document.
6486 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6488 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
6489 return type of xml_escape_text.
6490 * server.c (emit_dll_description): Likewise.
6492 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6494 * server.c (captured_main): Accept argument for --selftest.
6495 Update run_tests call.
6496 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
6497 when registering selftests.
6499 2017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
6501 * regcache.c (get_thread_regcache): Update code to use "std::vector"
6502 instead of "VEC" for "target_desc.reg_defs".
6503 (regcache_cpy): Likewise.
6504 (registers_to_string): Likewise.
6505 (registers_from_string): Likewise.
6506 (find_regno): Likewise.
6507 (supply_regblock): Likewise.
6508 (regcache_raw_read_unsigned): Likewise.
6509 * tdesc.c (init_target_desc): Likewise.
6510 (tdesc_create_reg): Likewise.
6511 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
6512 (struct target_desc) <reg_defs>: Convert to "std::vector".
6513 (target_desc): Do not initialize "reg_defs".
6514 (~target_desc): Update code to use "std::vector" instead of "VEC"
6515 for "target_desc.reg_defs".
6516 (operator==): Likewise.
6518 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6520 * inferiors.h (thread_to_gdb_id): Remove.
6521 * inferiors.c (thread_to_gdb_id): Remove.
6522 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
6523 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
6524 lynx_store_registers, lynx_read_memory, lynx_write_memory):
6526 * nto-low.c (nto_fetch_registers, nto_store_registers,
6527 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
6529 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6531 * inferiors.h (gdb_id_to_thread_id): Remove.
6532 * inferiors.c (gdb_id_to_thread_id): Remove.
6533 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
6534 removal. Move pid declaration closer to where it's used.
6536 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6538 * server.c (handle_detach): New function.
6539 (process_serial_event): Move code out, call handle_detach.
6541 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6543 * server.c (require_running): Rename to ...
6544 (require_running_or_return): ... this ...
6545 (require_running_or_break): ... and this.
6546 (handle_query, process_serial_event): Adjust.
6548 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6550 * linux-low.c (linux_set_resume_request): Remove unused
6553 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6555 * server.c (first_thread_of): Remove.
6556 (process_serial_event): Replace usage of first_thread_of with
6557 find_any_thread_of_pid.
6558 * tracepoint.c (same_process_p): Remove.
6559 (gdb_agent_about_to_close): Replace usage of same_process_p with
6560 find_any_thread_of_pid.
6561 * linux-x86-low.c (same_process_callback): Remove.
6562 (x86_arch_setup_process_callback): Replace usage of
6563 same_process_callback with find_any_thread_of_pid.
6564 * thread-db.c (any_thread_of): Remove.
6565 (switch_to_process): Replace usage of any_thread_of with
6566 find_any_thread_of_pid.
6567 * inferiors.c (thread_pid_matches_callback): Remove.
6568 (find_thread_process): Adjust to use find_any_thread_of_pid.
6570 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6572 * regcache.c (get_thread_regcache): Guard calls to "memset"
6575 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6577 * linux-low.c (handle_extended_wait): Use
6578 "allocate_target_description" instead of "XNEW".
6579 * linux-x86-low.c (initialize_low_arch): Likewise.
6581 2017-09-05 Yao Qi <yao.qi@linaro.org>
6583 * configure.srv (srv_i386_regobj): Remove.
6584 (srv_amd64_regobj): Remove.
6585 (srv_regobj): Set it to "" for x86 non-linux targets.
6586 * linux-x86-tdesc.c (i386_linux_read_description):
6587 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
6588 (init_registers_i386): Remove the declaration.
6589 (tdesc_i386): Remove the declaration.
6590 (lynx_i386_arch_setup): Call i386_create_target_description.
6591 * nto-x86-low.c: Likewise.
6592 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
6593 [!__x86_64__]: include arch/i386.h.
6594 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
6596 2017-09-05 Yao Qi <yao.qi@linaro.org>
6598 * configure.srv (srv_amd64_linux_xmlfiles): Remove
6599 i386/amd64-XXX-linux from it.
6601 2017-09-05 Yao Qi <yao.qi@linaro.org>
6603 * configure.srv: Empty srv_amd64_linux_regobj if $development is
6605 (ipa_amd64_linux_regobj): Remove.
6606 (ipa_x32_linux_regobj): Remove.
6608 2017-09-05 Yao Qi <yao.qi@linaro.org>
6610 * Makefile.in (arch-amd64.o): New rule.
6611 * configure.srv: Append arch-amd64.o.
6612 * linux-amd64-ipa.c: Include common/x86-xstate.h.
6613 (get_ipa_tdesc): Call amd64_linux_read_description.
6614 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
6615 and init_registers_amd64_XXX.
6616 * linux-x86-low.c (x86_linux_read_description): Call
6617 amd64_linux_read_description.
6618 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
6619 (initialize_low_arch): Don't call init_registers_x32_XXX and
6620 init_registers_amd64_XXX.
6621 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
6622 and tdesc_amd64_XXX.
6623 [__x86_64__] (amd64_tdesc_test): New function.
6624 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
6625 and init_registers_amd64_XXX.
6626 * linux-x86-tdesc.c: Include arch/amd64.h.
6627 (xcr0_to_tdesc_idx): New function.
6628 (i386_linux_read_description): New function.
6629 (amd64_get_ipa_tdesc_idx): New function.
6630 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
6631 (amd64_get_ipa_tdesc): Declare.
6633 2017-09-05 Yao Qi <yao.qi@linaro.org>
6635 * configure.srv (srv_i386_linux_xmlfiles): Remove
6636 i386/i386-XXX-linux.xml from it.
6638 2017-09-05 Yao Qi <yao.qi@linaro.org>
6640 * configure.srv: Set srv_i386_linux_regobj empty if $development
6642 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
6643 initialize_low_tdesc.
6644 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
6645 with #if initialize_low_tdesc.
6646 * linux-x86-tdesc-selftest.c: New file.
6647 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
6649 2017-09-05 Yao Qi <yao.qi@linaro.org>
6651 * Makefile.in (arch-i386.o): New rule.
6652 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
6653 (x86_64-*-linux*): Likewise.
6654 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
6655 include arch/i386.h.
6656 (i386_linux_read_description): Remove code and call
6657 i386_create_target_description.
6658 * tdesc.c (allocate_target_description): New function.
6659 * tdesc.h (set_tdesc_architecture): Remove declaration.
6660 (set_tdesc_osabi): Likewise.
6662 2017-09-05 Yao Qi <yao.qi@linaro.org>
6664 * linux-x86-tdesc.c: Don't include <inttypes.h>.
6665 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
6666 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
6668 * server.c (get_features_xml): Call tdesc_get_features_xml.
6669 * tdesc.c (set_tdesc_architecture): New function.
6670 (set_tdesc_osabi): New function.
6671 (tdesc_get_features_xml): New function.
6672 (tdesc_create_feature): Add an argument.
6673 * tdesc.h (struct target_desc) <features>: New field.
6674 <arch, osabi>: New field.
6675 (~target_desc): xfree features, arch, and osabi.
6676 (target_desc::oerator==): Don't compare .xmltarget.
6677 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
6678 (set_tdesc_osabi): Likewise.
6679 (tdesc_get_features_xml): Likewise.
6681 2017-09-05 Yao Qi <yao.qi@linaro.org>
6683 * linux-x86-tdesc.c: Include selftest.h.
6684 (i386_tdesc_test): New function.
6685 (initialize_low_tdesc): Call selftests::register_test.
6686 * tdesc.h: Include regdef.h.
6687 (target_desc): Override operator == and !=.
6689 2017-09-05 Yao Qi <yao.qi@linaro.org>
6691 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
6692 (ipa_obj): Likewise.
6693 * linux-i386-ipa.c: Include common/x86-xstate.h
6694 (get_ipa_tdesc): Call i386_linux_read_description.
6695 (initialize_low_tracepoint): Don't call init_registers_XXX
6696 functions, call initialize_low_tdesc instead.
6697 * linux-x86-low.c (x86_linux_read_description): Call
6698 i386_linux_read_description.
6699 (initialize_low_arch): Don't call init_registers_i386_XXX
6700 functions, call initialize_low_tdesc.
6701 * linux-x86-tdesc.c: New file.
6702 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
6703 (i386_get_ipa_tdesc_idx): Declare.
6704 (i386_get_ipa_tdesc): Declare.
6705 (initialize_low_tdesc): Declare.
6707 2017-09-05 Yao Qi <yao.qi@linaro.org>
6709 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
6712 2017-09-05 Yao Qi <yao.qi@linaro.org>
6714 * Makefile.in (IPA_OBJS): Add vec-ipa.o
6715 * regcache.c (get_thread_regcache): Use VEC_length.
6716 (init_register_cache): Likewise.
6717 (regcache_cpy): Likewise.
6718 (registers_to_string): Iterate reg_defs via VEC_iterate.
6719 (find_regno): Likewise.
6720 (find_register_by_number): Use VEC_index.
6721 (register_size): Call find_register_by_number.
6722 (register_data): Call find_register_by_number.
6723 (supply_regblock): Use VEC_length.
6724 (regcache_raw_read_unsigned): Likewise.
6725 * tdesc.c (init_target_desc): Iterate reg_defs via
6727 (default_description): Update initializer.
6728 (copy_target_description): Don't update field num_registers.
6729 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
6730 <num_registers>: Remove.
6732 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
6734 * Makefile.in (.SECONDARY): Define target.
6736 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
6738 * linux-low.c (linux_wait_1): Adjust.
6739 * server.c (queue_stop_reply_callback): Adjust.
6741 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
6743 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
6744 QEnvironmentUnset and QEnvironmentReset packets.
6745 (handle_query): Inform remote that QEnvironmentHexEncoded,
6746 QEnvironmentUnset and QEnvironmentReset are supported.
6748 2017-08-25 Simon Marchi <simon.marchi@ericsson.com>
6750 * inferiors.h (inferior_target_data): Rename to ...
6751 (thread_target_data): ... this.
6752 (inferior_regcache_data): Rename to ...
6753 (thread_regcache_data): ... this.
6754 (set_inferior_regcache_data): Rename to ...
6755 (set_thread_regcache_data): ... this.
6756 * inferiors.c (inferior_target_data): Rename to ...
6757 (thread_target_data): ... this.
6758 (inferior_regcache_data): Rename to ...
6759 (thread_regcache_data): ... this.
6760 (set_inferior_regcache_data): Rename to ...
6761 (set_thread_regcache_data): ... this.
6762 (free_one_thread): Update.
6763 * linux-low.h (get_thread_lwp): Update.
6764 * regcache.c (get_thread_regcache): Update.
6765 (regcache_invalidate_thread): Update.
6766 (free_register_cache_thread): Update.
6767 * win32-i386-low.c (update_debug_registers_callback): Update.
6768 (win32_get_current_dr): Update.
6769 * win32-low.c (thread_rec): Update.
6770 (delete_thread_info): Update.
6771 (continue_one_thread): Update.
6772 (suspend_one_thread): Update.
6774 2017-08-24 Simon Marchi <simon.marchi@ericsson.com>
6776 * inferiors.c (set_inferior_target_data): Remove.
6777 * inferiors.h (set_inferior_target_data): Remove.
6779 2017-08-18 Yao Qi <yao.qi@linaro.org>
6781 * Makefile.in (OBS): Add selftest.o.
6782 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
6783 * configure, config.in: Re-generated.
6784 * server.c: Include common/sefltest.h.
6785 (captured_main): Handle option --selftest.
6787 2017-08-09 Yao Qi <yao.qi@linaro.org>
6789 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
6790 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
6791 i386-avx-mpx.o and i386-mmx.o.
6792 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
6793 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
6794 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
6795 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
6796 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
6797 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
6798 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
6799 i386/amd64-avx-mpx.xml.
6801 2017-08-09 Yao Qi <yao.qi@linaro.org>
6803 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
6804 and x32-avx-avx512.o.
6805 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
6806 i386/x32-avx-avx512.xml.
6808 2017-07-26 Simon Marchi <simon.marchi@ericsson.com>
6810 * tracepoint.h (enum class fast_tpoint_collect_result): New
6812 (fast_tracepoint_collecting): Change return type to
6813 fast_tpoint_collect_result.
6814 * tracepoint.c (fast_tracepoint_collecting): Likewise.
6815 * linux-low.h: Include tracepoint.h.
6816 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
6817 fast_tpoint_collect_result.
6818 * linux-low.c (handle_tracepoints): Adjust.
6819 (linux_fast_tracepoint_collecting): Change return type to
6820 fast_tpoint_collect_result.
6821 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
6822 linux_wait_1, stuck_in_jump_pad_callback,
6823 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
6824 proceed_one_lwp): Adjust to type change.
6826 2017-07-10 Yao Qi <yao.qi@linaro.org>
6828 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
6830 2017-06-29 Yao Qi <yao.qi@linaro.org>
6832 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
6834 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
6836 2017-06-20 Simon Marchi <simon.marchi@ericsson.com>
6838 * Makefile.in (IPA_OBJS): Sort and format one item per line.
6840 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
6842 * linux-low.c (linux_create_inferior): Adjust code to access the
6843 environment information via 'gdb_environ' class.
6844 * lynx-low.c (lynx_create_inferior): Likewise.
6845 * server.c (our_environ): Make it an instance of 'gdb_environ'.
6846 (get_environ): Return a pointer to 'our_environ'.
6847 (captured_main): Initialize 'our_environ'.
6848 * server.h (get_environ): Adjust prototype.
6849 * spu-low.c (spu_create_inferior): Adjust code to access the
6850 environment information via 'gdb_environ' class.
6852 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6854 * linux-low.c (linux_read_memory, linux_write_memory): Remove
6855 usage of "register" keyword.
6857 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6859 * configure: Re-generate.
6861 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6863 * configure: Re-generate.
6865 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6867 * Makefile.in (COMPILE.pre): Add "-x c++".
6869 2017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
6871 * fork-child.c: Conditionally include <signal.h>.
6873 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6875 * server.c (handle_general_set): Handle new packet
6876 "QStartupWithShell".
6877 (handle_query): Add "QStartupWithShell" to the list of supported
6879 (gdbserver_usage): Add help text explaining the
6880 new "--startup-with-shell" and "--no-startup-with-shell" CLI
6882 (captured_main): Recognize and act upon the presence of the new
6885 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6886 Pedro Alves <palves@redhat.com>
6888 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
6889 * configure: Regenerate.
6890 * configure.srv (srv_linux_obj): Add "fork-child.o" and
6892 (i[34567]86-*-lynxos*): Likewise.
6893 (spu*-*-*): Likewise.
6894 * fork-child.c: New file.
6895 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
6897 (linux_ptrace_fun): New function.
6898 (linux_create_inferior): Adjust function prototype to reflect
6899 change on "target.h". Adjust function code to use
6901 (linux_request_interrupt): Delete "signal_pid".
6902 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
6903 (lynx_ptrace_fun): New function.
6904 (lynx_create_inferior): Adjust function prototype to reflect
6905 change on "target.h". Adjust function code to use
6907 * nto-low.c (nto_create_inferior): Adjust function prototype and
6908 code to reflect change on "target.h". Update comments.
6909 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
6910 "common-terminal.h" and "environ.h".
6911 (terminal_fd): Moved to fork-child.c.
6912 (old_foreground_pgrp): Likewise.
6913 (restore_old_foreground_pgrp): Likewise.
6914 (last_status): Make it global.
6915 (last_ptid): Likewise.
6916 (our_environ): New variable.
6917 (startup_with_shell): Likewise.
6918 (program_name): Likewise.
6919 (program_argv): Rename to...
6920 (program_args): ...this.
6921 (wrapper_argv): New variable.
6922 (start_inferior): Delete function.
6923 (get_exec_wrapper): New function.
6924 (get_exec_file): Likewise.
6925 (get_environ): Likewise.
6926 (prefork_hook): Likewise.
6927 (post_fork_inferior): Likewise.
6928 (postfork_hook): Likewise.
6929 (postfork_child_hook): Likewise.
6930 (handle_v_run): Update code to deal with arguments coming from the
6931 remote host. Update calls from "start_inferior" to
6933 (captured_main): Likewise. Initialize environment variable. Call
6935 * server.h (post_fork_inferior): New prototype.
6936 (get_environ): Likewise.
6937 (last_status): Declare.
6938 (last_ptid): Likewise.
6939 (signal_pid): Likewise.
6940 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
6941 (spu_ptrace_fun): New function.
6942 (spu_create_inferior): Adjust function prototype to reflect change
6943 on "target.h". Adjust function code to use "fork_inferior".
6944 * target.c (target_terminal_init): New function.
6945 (target_terminal_inferior): Likewise.
6946 (target_terminal_ours): Likewise.
6947 * target.h: Include <vector>.
6948 (struct target_ops) <create_inferior>: Update prototype.
6949 (create_inferior): Update macro.
6950 * utils.c (gdb_flush_out_err): New function.
6951 * win32-low.c (win32_create_inferior): Adjust function prototype
6952 and code to reflect change on "target.h".
6954 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6956 * inferiors.c (switch_to_thread): New function.
6958 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6960 * Makefile.in (SFILE): Add "common/job-control.c".
6961 (OBS): Add "job-control.o".
6963 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
6965 * Makefile: Remove "@host_makefile_frag@".
6967 2017-05-05 Pedro Alves <palves@redhat.com>
6969 * configure: Regenerate.
6971 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
6973 * configure: Regenerate.
6975 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
6977 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
6978 software_single_step change of return type to
6979 std::vector<CORE_ADDR>.
6980 * linux-low.c (install_software_single_step_breakpoints):
6982 * linux-low.h (install_software_single_step_breakpoints):
6985 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
6987 * remote-utils.c: Include "gdb_termios.h" instead of
6989 * terminal.h: Delete file.
6991 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
6993 * server.c: Include <vector>.
6994 <program_argv, wrapper_argv>: Convert to std::vector.
6995 (start_inferior): Rewrite function to use C++.
6996 (handle_v_run): Likewise. Update code that calculates the argv
6997 based on the vRun packet; use C++.
6998 (captured_main): Likewise.
7000 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7002 * server.c (handle_v_cont): Initialize thread_resume::thread
7005 2017-04-05 Pedro Alves <palves@redhat.com>
7007 * configure: Regenerate.
7009 2017-04-05 Pedro Alves <palves@redhat.com>
7011 * gdbreplay.c (sync_error): Constify.
7012 * linux-x86-low.c (push_opcode): Constify.
7014 2017-04-05 Pedro Alves <palves@redhat.com>
7016 * win32-low.c (get_child_debug_event)
7017 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
7018 Report TARGET_WAITKIND_SPURIOUS instead.
7020 2017-04-05 Pedro Alves <palves@redhat.com>
7022 * remote-utils.c (remote_prepare, remote_open): Constify.
7023 * remote-utils.h (remote_prepare, remote_open): Constify.
7024 * server.c (captured_main): Constify 'port' handling.
7026 2017-04-04 Simon Marchi <simon.marchi@ericsson.com>
7028 * Makefile.in (clean): Clear .deps.
7030 2017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
7032 * .gitignore: Remove generated files, replace with wildcard.
7033 * (clean): Replace removal of generated files with wildcard.
7034 (version.c): Replace with...
7035 (version-generated.c): ...this.
7036 (xml-builtin.c): Replace with...
7037 (xml-builtin-generated.c): ...this.
7038 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
7039 (%.c: *regformats*): Replace with...
7040 (%-generated.c: *regformats*): ...this.
7042 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7044 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
7045 (xtensa_fill_gregset): Call collect_register_by_name for
7047 (xtensa_store_gregset): Call supply_register_by_name for
7050 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7052 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
7053 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
7054 (xtensa_store_gregset): Call supply_register for all registers in
7055 a0_regnum..a0_regnum + C0_NREGS range.
7057 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7059 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
7060 (ax-ipa.o: ax.c): Remove.
7061 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
7062 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
7063 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
7064 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
7065 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
7067 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7069 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
7070 (print-utils-ipa.o: ../common/print-utils.c): Remove.
7071 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
7072 (errors-ipa.o: ../common/errors.c): Remove.
7073 (format-ipa.o: ../common/format.c): Remove.
7074 (common-utils-ipa.o: ../common/common-utils.c): Remove.
7076 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7078 * Makefile.in (%-ipa.o: %.c): New rule.
7079 (tracepoint-ipa.o: tracepoint.c): Remove.
7080 (utils-ipa.o: utils.c): Remove.
7081 (remote-utils-ipa.o: remote-utils.c): Remove.
7082 (regcache-ipa.o: regcache.c): Remove.
7083 (i386-linux-ipa.o: i386-linux.c): Remove.
7084 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
7085 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
7086 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
7087 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
7088 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
7089 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
7090 (amd64-linux-ipa.o: amd64-linux.c): Remove.
7091 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
7092 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
7093 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
7094 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
7095 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
7096 (aarch64-ipa.o: aarch64.c): Remove.
7097 (s390-linux32-ipa.o: s390-linux32.c): Remove.
7098 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
7099 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
7100 (s390-linux64-ipa.o: s390-linux64.c): Remove.
7101 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
7102 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
7103 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
7104 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
7105 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
7106 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
7107 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
7108 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
7109 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
7110 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
7111 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
7112 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
7113 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
7114 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
7115 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
7116 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
7117 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
7118 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
7119 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
7120 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
7121 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
7122 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
7123 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
7124 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
7125 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
7126 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
7127 (tdesc-ipa.o: tdesc.c): Remove.
7128 (x32-linux-ipa.o: x32-linux.c): Remove.
7129 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
7130 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
7132 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7134 * Makefile.in (%.o: ../arch/%.c): New rule.
7135 (arm.o: ../arch/arm.c): Remove.
7136 (arm-linux.o: ../arch/arm-linux.c): Remove.
7137 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
7138 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
7140 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7142 * Makefile.in (%.o: ../nat/%.c): New rule.
7143 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
7144 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
7145 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
7146 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
7147 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
7148 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
7149 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
7150 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
7151 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
7152 (linux-personality.o: ../nat/linux-personality.c): Remove.
7153 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
7154 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
7155 (x86-linux.o: ../nat/x86-linux.c): Remove.
7156 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
7157 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
7159 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7161 * Makefile.in (%.o: ../common/%.c): New rule.
7162 (signals.o: ../common/signals.c): Remove.
7163 (print-utils.o: ../common/print-utils.c): Remove.
7164 (rsp-low.o: ../common/rsp-low.c): Remove.
7165 (common-utils.o: ../common/common-utils.c): Remove.
7166 (posix-strerror.o: ../common/posix-strerror.c): Remove.
7167 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
7168 (vec.o: ../common/vec.c): Remove.
7169 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
7170 (xml-utils.o: ../common/xml-utils.c): Remove.
7171 (ptid.o: ../common/ptid.c): Remove.
7172 (buffer.o: ../common/buffer.c): Remove.
7173 (format.o: ../common/format.c): Remove.
7174 (filestuff.o: ../common/filestuff.c): Remove.
7175 (agent.o: ../common/agent.c): Remove.
7176 (errors.o: ../common/errors.c): Remove.
7177 (environ.o: ../common/environ.c): Remove.
7178 (common-debug.o: ../common/common-debug.c): Remove.
7179 (cleanups.o: ../common/cleanups.c): Remove.
7180 (common-exceptions.o: ../common/common-exceptions.c): Remove.
7181 (fileio.o: ../common/fileio.c): Remove.
7182 (common-regcache.o: ../common/common-regcache.c): Remove.
7183 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
7184 (new-op.o: ../common/new-op.c): Remove.
7185 (btrace-common.o: ../common/btrace-common.c): Remove.
7187 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7189 * Makefile.in (%.o: ../target/%.c): New rule.
7190 (waitstatus.o: ../target/waitstatus.c): Remove.
7192 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7195 (%.c: ../regformats/%.dat,
7196 (%.c: ../regformats/arm/%.dat,
7197 (%.c: ../regformats/i386/%.dat,
7198 (%.c: ../regformats/rs6000/%.dat): New rules.
7199 (aarch64.c): Remove.
7200 (reg-arm.c): Remove.
7201 (arm-with-iwmmxt.c): Remove.
7202 (arm-with-vfpv2.c): Remove.
7203 (arm-with-vfpv3.c): Remove.
7204 (arm-with-neon.c): Remove.
7205 (reg-bfin.c): Remove.
7206 (reg-cris.c): Remove.
7207 (reg-crisv32.c): Remove.
7209 (i386-linux.c): Remove.
7210 (i386-avx.c): Remove.
7211 (i386-avx-linux.c): Remove.
7212 (i386-avx-avx512.c): Remove.
7213 (i386-avx-avx512-linux.c): Remove.
7214 (i386-mpx.c): Remove.
7215 (i386-mpx-linux.c): Remove.
7216 (i386-avx-mpx-avx512-pku.c): Remove.
7217 (i386-avx-mpx-avx512-pku-linux.c): Remove.
7218 (i386-avx-mpx.c): Remove.
7219 (i386-avx-mpx-linux.c): Remove.
7220 (i386-mmx.c): Remove.
7221 (i386-mmx-linux.c): Remove.
7222 (reg-ia64.c): Remove.
7223 (reg-m32r.c): Remove.
7224 (reg-m68k.c): Remove.
7226 (mips-linux.c): Remove.
7227 (mips-dsp-linux.c): Remove.
7228 (mips64-linux.c): Remove.
7229 (mips64-dsp-linux.c): Remove.
7230 (nios2-linux.c): Remove.
7231 (powerpc-32.c): Remove.
7232 (powerpc-32l.c): Remove.
7233 (powerpc-altivec32l.c): Remove.
7234 (powerpc-cell32l.c): Remove.
7235 (powerpc-vsx32l.c): Remove.
7236 (powerpc-isa205-32l.c): Remove.
7237 (powerpc-isa205-altivec32l.c): Remove.
7238 (powerpc-isa205-vsx32l.c): Remove.
7239 (powerpc-e500l.c): Remove.
7240 (powerpc-64l.c): Remove.
7241 (powerpc-altivec64l.c): Remove.
7242 (powerpc-cell64l.c): Remove.
7243 (powerpc-vsx64l.c): Remove.
7244 (powerpc-isa205-64l.c): Remove.
7245 (powerpc-isa205-altivec64l.c): Remove.
7246 (powerpc-isa205-vsx64l.c): Remove.
7247 (s390-linux32.c): Remove.
7248 (s390-linux32v1.c): Remove.
7249 (s390-linux32v2.c): Remove.
7250 (s390-linux64.c): Remove.
7251 (s390-linux64v1.c): Remove.
7252 (s390-linux64v2.c): Remove.
7253 (s390-te-linux64.c): Remove.
7254 (s390-vx-linux64.c): Remove.
7255 (s390-tevx-linux64.c): Remove.
7256 (s390x-linux64.c): Remove.
7257 (s390x-linux64v1.c): Remove.
7258 (s390x-linux64v2.c): Remove.
7259 (s390x-te-linux64.c): Remove.
7260 (s390x-vx-linux64.c): Remove.
7261 (s390x-tevx-linux64.c): Remove.
7262 (tic6x-c64xp-linux.c): Remove.
7263 (tic6x-c64x-linux.c): Remove.
7264 (tic6x-c62x-linux.c): Remove.
7266 (reg-sparc64.c): Remove.
7267 (reg-spu.c): Remove.
7269 (amd64-linux.c): Remove.
7270 (amd64-avx.c): Remove.
7271 (amd64-avx-linux.c): Remove.
7272 (amd64-avx-avx512.c): Remove.
7273 (amd64-avx-avx512-linux.c): Remove.
7274 (amd64-mpx.c): Remove.
7275 (amd64-mpx-linux.c): Remove.
7276 (amd64-avx-mpx-avx512-pku.c): Remove.
7277 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
7278 (amd64-avx-mpx.c): Remove.
7279 (amd64-avx-mpx-linux.c): Remove.
7281 (x32-linux.c): Remove.
7282 (x32-avx.c): Remove.
7283 (x32-avx-linux.c): Remove.
7284 (x32-avx-avx512.c): Remove.
7285 (x32-avx-avx512-linux.c): Remove.
7286 (reg-xtensa.c): Remove.
7287 (reg-tilegx.c): Remove.
7288 (reg-tilegx32.c): Remove.
7290 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
7292 * Makefile.in (SFILES): Add "common/environ.c".
7293 (OBJS): Add "common/environ.h".
7295 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7297 * configure.ac: Check if the fs_base and gs_base members of
7298 `struct user_regs_struct' exist.
7299 * config.in: Regenerated.
7300 * configure: Likewise.
7302 2017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
7304 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
7306 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
7307 (get_next_pcs_syscall_next_pc): Likewise.
7309 2016-12-23 Luis Machado <lgustavo@codesourcery.com>
7311 * win32-i386-low.c: Fix incorrect reference to a couple source files.
7312 * nto-x86-low.c: Likewise.
7314 2016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
7316 * Makefile.in: Include disable-implicit-rules.mk.
7318 2016-11-23 Pedro Alves <palves@redhat.com>
7320 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
7321 (debug_vprintf): Use std::chrono::steady_clock instead of
7322 gettimeofday. Use '.' instead of ':'.
7323 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
7324 (get_timestamp): Use std::chrono::steady_clock instead of
7327 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7329 * Makefile.in: Fix whitespace formatting.
7331 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7333 * Makefile.in (SFILES, OBS): Flatten list and order
7336 2016-11-23 Pedro Alves <palves@redhat.com>
7338 * event-loop.c (handle_file_event): Use warning.
7339 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
7340 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
7343 2016-11-23 Pedro Alves <palves@redhat.com>
7345 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
7347 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
7348 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
7349 debug_printf and debug_flush for debug output.
7350 * server.c (handle_general_set): Likewise.
7351 * thread-db.c (try_thread_db_load): Use debug_printf for debug
7354 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7356 * Makefile.in (.c.o): Replace rule with ...
7357 (%.o: %.c): ... this one.
7359 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7361 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
7362 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
7364 * configure.ac: Remove checks for the make program.
7365 * configure: Re-generate.
7367 2016-10-28 Pedro Alves <palves@redhat.com>
7369 * Makefile.in (CXX_DIALECT): Get from configure.
7370 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
7371 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
7372 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
7373 * config.in: Regenerate.
7374 * configure: Regenerate.
7376 2016-10-27 Yao Qi <yao.qi@linaro.org>
7378 * linux-low.c (linux_supports_range_stepping): Return true if
7379 can_software_single_step return true.
7381 2016-10-27 Yao Qi <yao.qi@linaro.org>
7383 * inferiors.c (find_inferior_in_random): New function.
7384 * inferiors.h (find_inferior_in_random): Declare.
7385 * linux-low.c (linux_wait_for_event_filtered): Call
7386 find_inferior_in_random instead of find_inferior.
7388 2016-10-27 Yao Qi <yao.qi@linaro.org>
7390 * linux-low.c (linux_wait_1): If single-step breakpoints are
7391 inserted, remove them.
7393 2016-10-26 Pedro Alves <palves@redhat.com>
7395 * linux-low.c (handle_extended_wait): Link parent/child fork
7397 (linux_wait_1): Unlink them.
7398 (linux_set_resume_request): Ignore resume requests for
7399 already-resumed and unhandled fork child threads.
7400 * linux-low.h (struct lwp_info) <fork_relative>: New field.
7401 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
7403 (handle_v_requests) <vCont>: Don't call require_running.
7404 * server.h (in_queued_stop_replies): New declaration.
7406 2016-10-24 Yao Qi <yao.qi@linaro.org>
7409 * linux-aarch64-low.c (append_insns): Cast the return value to
7412 2016-10-10 Yao Qi <yao.qi@linaro.org>
7414 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
7416 2016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
7418 * target.c (target_supports_multi_process): New function, moved
7420 * target.h (target_supports_multi_process): ... here. Remove
7423 2016-10-05 Tom Tromey <tom@tromey.com>
7426 * tracepoint.c (handle_tracepoint_bkpts): Check
7427 ipa_error_tracepoint, not ipa_stopping_tracepoint.
7429 2016-10-05 Yao Qi <yao.qi@linaro.org>
7431 * configure.srv: Update the path of arm-*.xml files.
7433 2016-10-05 Terry Guo <terry.guo@arm.com>
7434 Yao Qi <yao.qi@linaro.org>
7436 * Makefile.in: Adjust the path of rules.
7437 * configure.srv: Update the path of xml files.
7438 * regformats/arm-with-iwmmxt.dat: Regenerated.
7439 * regformats/arm-with-neon.dat: Likewise.
7440 * regformats/arm-with-vfpv2.dat: Likewise.
7441 * regformats/arm-with-vfpv3.dat Likewise.
7443 2016-09-30 Yao Qi <yao.qi@linaro.org>
7446 * target.c (target_stop_and_wait): Don't call
7447 target_continue_no_signal, use resume_stop instead.
7449 2016-09-26 Yao Qi <yao.qi@linaro.org>
7451 * linux-low.c (linux_wait_1): Call debug_exit.
7453 2016-09-23 Pedro Alves <palves@redhat.com>
7455 * Makefile.in (SFILES): Add common/new-op.c.
7456 (OBS): Add common/new-op.o.
7457 (new-op.o): New rule.
7459 2016-09-21 Simon Marchi <simon.marchi@ericsson.com>
7461 * .gitinore: Ignore more files.
7463 2016-09-21 Yao Qi <yao.qi@linaro.org>
7465 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
7468 2016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
7470 * server.c (start_inferior): Call target_mourn_inferior instead of
7471 mourn_inferior; pass ptid_t argument to it.
7473 (handle_target_event): Likewise.
7474 * target.c (target_mourn_inferior): New function.
7475 * target.h (mourn_inferior): Delete macro.
7477 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
7479 * linux-low.c (lwp_is_stepping): New function.
7481 2016-09-06 Carl Love <cel@us.ibm.com>
7483 * server.c (start_inferior): Fixed comment, requested comment change
7484 didn't get updated correctly. Removed reference to ptrace () call as
7485 it is only true on Linux systems.
7487 2016-09-06 Carl Love <cel@us.ibm.com>
7489 * server.c (start_inferior): Do not call
7490 function target_post_create_inferior () if the
7491 inferior process has already exited.
7493 2016-09-05 Pedro Alves <palves@redhat.com>
7495 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
7496 (COMPILE.pre, CC_LD): Use CXX directly.
7497 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
7498 * acinclude.m4: Don't include build-with-cxx.m4.
7499 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
7500 * configure: Regenerate.
7502 2016-09-02 Akash Trehan <akash.trehan123@gmail.com>
7505 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
7506 call writing data to own_buf.
7508 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7510 * target.c (mywait): Call target_wait instead of
7512 (target_wait): New function.
7514 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7516 * server.c (start_inferior): New variable 'ptid'. Replace calls
7517 to the_target->resume by target_continue{,_no_signal}, depending
7519 * target.c (target_stop_and_wait): Call target_continue_no_signal
7520 instead of the_target->resume.
7521 (target_continue): New function.
7523 2016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
7525 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
7527 2016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7530 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
7532 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
7533 * linux-arm-low.c (ps_get_thread_area): Likewise.
7534 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
7535 * linux-m68k-low.c (ps_get_thread_area): Likewise.
7536 * linux-mips-low.c (ps_get_thread_area): Likewise.
7537 * linux-nios2-low.c (ps_get_thread_area): Likewise.
7538 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
7539 * linux-x86-low.c (ps_get_thread_area): Likewise.
7540 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
7542 2016-08-19 Pedro Alves <palves@redhat.com>
7544 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
7546 2016-08-19 Pedro Alves <palves@redhat.com>
7548 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
7549 comment. Use memcpy instead of casting through unsigned long.
7551 2016-08-19 Pedro Alves <palves@redhat.com>
7553 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
7554 allocating around 0x80000000.
7556 2016-08-19 Pedro Alves <palves@redhat.com>
7559 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
7560 (x32-avx512-linux-ipa.o): New rules.
7561 * configure.ac (x86_64-*-linux*): New x32 check.
7562 * configure.srv (ipa_x32_linux_regobj): New.
7563 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
7564 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
7566 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
7568 * configure: Regenerate.
7570 2016-08-09 Pedro Alves <palves@redhat.com>
7573 * Makefile.in (OBS): Add signals-state-save-restore.o.
7574 (signals-state-save-restore.o): New rule.
7575 * config.in: Regenerate.
7576 * configure: Regenerate.
7577 * linux-low.c: Include "signals-state-save-restore.h".
7578 (linux_create_inferior): Call
7579 restore_original_signals_state.
7580 * server.c: Include "dispositions-save-restore.h".
7581 (captured_main): Call save_original_signals_state.
7583 2016-08-05 Pedro Alves <palves@redhat.com>
7585 * configure: Regenerate.
7587 2016-08-04 Yao Qi <yao.qi@linaro.org>
7589 * linux-low.c (regsets_fetch_inferior_registers): Check
7590 errno is ESRCH or not.
7592 2016-08-02 Yao Qi <yao.qi@linaro.org>
7594 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
7595 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
7596 (thread_db_load_search): Update.
7597 (try_thread_db_load_1): Don't look for td_ta_event_addr,
7598 td_ta_set_event and td_ta_event_getmsg.
7600 2016-07-26 Pedro Alves <palves@redhat.com>
7603 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
7604 of unsigned long for 64-bit registers and use uint32_t instead of
7605 unsigned int for 32-bit registers.
7607 2016-07-26 Pedro Alves <palves@redhat.com>
7609 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
7612 2016-07-21 Tom Tromey <tom@tromey.com>
7614 * configure: Rebuild.
7616 2016-07-21 Yao Qi <yao.qi@linaro.org>
7618 * mem-break.c (find_gdb_breakpoint): Cast bp to
7619 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
7621 2016-07-21 Yao Qi <yao.qi@linaro.org>
7623 * server.c (handle_v_requests): Support s and S actions
7624 if target_supports_software_single_step return true.
7626 2016-07-21 Yao Qi <yao.qi@linaro.org>
7628 * linux-low.c (resume_stopped_resumed_lwps): If resume request
7629 is resume_step, call maybe_hw_step.
7630 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
7632 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
7634 (proceed_one_lwp): If resume request is resume_step, install
7635 reinsert breakpoints and call maybe_hw_step.
7637 2016-07-21 Yao Qi <yao.qi@linaro.org>
7639 * linux-low.c (proceed_one_lwp): Declare.
7640 (linux_resume_one_thread): Remove local variable 'step'.
7641 Lift code enqueue signal. Call proceed_one_lwp instead of
7642 linux_resume_one_lwp.
7644 2016-07-21 Yao Qi <yao.qi@linaro.org>
7646 * linux-low.c (linux_resume_one_thread): Call
7647 enqueue_pending_signal.
7649 2016-07-21 Yao Qi <yao.qi@linaro.org>
7651 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
7652 * inferiors.c (do_restore_current_thread_cleanup): New function.
7653 (make_cleanup_restore_current_thread): Likewise.
7654 * linux-low.c (install_software_single_step_breakpoints): Call
7655 make_cleanup_restore_current_thread. Switch current_thread to
7658 2016-07-21 Yao Qi <yao.qi@linaro.org>
7660 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
7661 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
7662 (clone_one_breakpoint): Likewise.
7663 (delete_reinsert_breakpoints): Change parameter to thread.
7665 (has_reinsert_breakpoints): Likewise.
7666 (uninsert_reinsert_breakpoints): Likewise.
7667 (reinsert_reinsert_breakpoints): Likewise.
7668 * mem-break.h (set_reinsert_breakpoint): Update declaration.
7669 (delete_reinsert_breakpoints): Likewise.
7670 (reinsert_reinsert_breakpoints): Likewise.
7671 (uninsert_reinsert_breakpoints): Likewise.
7672 (has_reinsert_breakpoints): Likewise.
7674 2016-07-21 Yao Qi <yao.qi@linaro.org>
7676 * inferiors.c (get_thread_process): Make parameter const.
7677 * inferiors.h (get_thread_process): Update declaration.
7678 * mem-break.c (clone_all_breakpoints): Remove all parameters.
7679 Add new parameters child_thread and parent_thread. Callers
7681 * mem-break.h (clone_all_breakpoints): Update declaration.
7683 2016-07-21 Yao Qi <yao.qi@linaro.org>
7685 * mem-break.c (struct breakpoint) <cond_list>: Remove.
7686 <command_list, handler>: Remove.
7687 (struct gdb_breakpoint): New.
7688 (struct other_breakpoint): New.
7689 (struct reinsert_breakpoint): New.
7690 (is_gdb_breakpoint): New function.
7691 (any_persistent_commands): Update command_list if
7692 is_gdb_breakpoint returns true.
7693 (set_breakpoint): Create breakpoints according to their types.
7694 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
7695 (set_gdb_breakpoint_1): Likewise.
7696 (set_gdb_breakpoint): Likewise.
7697 (clear_breakpoint_conditions): Change parameter type to
7698 'struct gdb_breakpoint *'.
7699 (clear_breakpoint_commands): Likewise.
7700 (clear_breakpoint_conditions_and_commands): Likewise.
7701 (add_condition_to_breakpoint): Likewise.
7702 (add_breakpoint_condition): Likewise.
7703 (add_commands_to_breakpoint): Likewise.
7704 (check_breakpoints): Check other_breakpoint.
7705 (clone_one_breakpoint): Clone breakpopint according to its type.
7706 * mem-break.h (struct gdb_breakpoint): Declare.
7707 (set_gdb_breakpoint): Update declaration.
7708 (clear_breakpoint_conditions_and_commands): Likewise.
7709 (add_breakpoint_condition): Likewise.
7710 (add_breakpoint_commands): Likewise.
7711 * server.c (process_point_options): Change parameter type to
7712 'struct gdb_breakpoint *'.
7714 2016-07-21 Yao Qi <yao.qi@linaro.org>
7716 * mem-break.c (set_breakpoint_at): Rename it to ...
7717 (set_breakpoint_type_at): ... it.
7718 (set_breakpoint_at): Call set_breakpoint_type_at.
7719 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
7720 * mem-break.h (set_breakpoint_at): Update comments.
7722 2016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
7724 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
7726 (nios2_store_gregset): Likewise.
7728 2016-07-01 Pedro Alves <palves@redhat.com>
7729 Antoine Tremblay <antoine.tremblay@ericsson.com>
7731 * linux-low.c: Change interface to take the target lwp_info
7732 pointer directly and return void. Handle detaching from a zombie
7734 (linux_detach_lwp_callback): New function.
7735 (linux_detach): Detach from the leader thread after detaching from
7738 2016-06-28 Yao Qi <yao.qi@linaro.org>
7740 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
7741 for variable new_offset.
7742 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
7743 (aarch64_ftrace_insn_reloc_cb): Likewise.
7744 (aarch64_ftrace_insn_reloc_tb): Likewise.
7745 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
7746 PRIx64 instead of PRIx32.
7748 2016-06-28 Yao Qi <yao.qi@linaro.org>
7750 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
7751 (the_low_target): Install arm_get_syscall_trapinfo.
7753 2016-06-28 Yao Qi <yao.qi@linaro.org>
7755 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
7757 (the_low_target): Install aarch64_get_syscall_trapinfo.
7759 2016-06-28 Yao Qi <yao.qi@linaro.org>
7761 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
7763 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
7764 Remove parameter sysno.
7765 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
7768 2016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7770 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
7771 (s390_emit_ne_goto): Likewise.
7772 (s390_emit_lt_goto): Likewise.
7773 (s390_emit_le_goto): Likewise.
7774 (s390_emit_gt_goto): Likewise.
7775 (s390_emit_ge_goto): Likewise.
7776 (s390x_emit_eq_goto): Likewise.
7777 (s390x_emit_ne_goto): Likewise.
7778 (s390x_emit_lt_goto): Likewise.
7779 (s390x_emit_le_goto): Likewise.
7780 (s390x_emit_gt_goto): Likewise.
7781 (s390x_emit_ge_goto): Likewise.
7782 (s390_emit_ops_impl): Mark variable static.
7783 (s390x_emit_ops): Likewise.
7785 2016-06-17 Yao Qi <yao.qi@linaro.org>
7787 * linux-low.c (handle_extended_wait): Call
7788 uninsert_reinsert_breakpoints for the parent process. Remove
7789 reinsert breakpoints from the child process. Reinsert them to
7790 the parent process when vfork is done.
7791 * mem-break.c (uninsert_reinsert_breakpoints): New function.
7792 (reinsert_reinsert_breakpoints): New function.
7793 * mem-break.h (uninsert_reinsert_breakpoints): Declare
7794 (reinsert_reinsert_breakpoints): Declare.
7796 2016-06-17 Yao Qi <yao.qi@linaro.org>
7798 * linux-low.c (handle_extended_wait): If the parent is doing
7799 step-over, remove the reinsert breakpoints from the forked child.
7801 2016-06-17 Yao Qi <yao.qi@linaro.org>
7803 * linux-low.c (unsuspend_all_lwps): Declare.
7804 (linux_low_filter_event): If thread exited, call finish_step_over.
7805 If step-over is finished, unsuspend other threads.
7807 2016-06-17 Yao Qi <yao.qi@linaro.org>
7809 * linux-low.c (linux_resume_one_lwp_throw): Assert
7810 has_reinsert_breakpoints returns false.
7811 * mem-break.c (delete_disabled_breakpoints): Assert
7812 bp type isn't reinsert_breakpoint.
7814 2016-06-17 Yao Qi <yao.qi@linaro.org>
7816 * linux-low.c (maybe_hw_step): New function.
7817 (linux_resume_one_lwp_throw): Call maybe_hw_step.
7818 (finish_step_over): Switch current_thread to lwp temporarily,
7819 and assert has_reinsert_breakpoints returns true.
7820 (proceed_one_lwp): Call maybe_hw_step.
7821 * mem-break.c (has_reinsert_breakpoints): New function.
7822 * mem-break.h (has_reinsert_breakpoints): Declare.
7824 2016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
7826 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
7828 2016-05-17 Yao Qi <yao.qi@linaro.org>
7830 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
7831 instead of find_inferior.
7833 2016-05-05 Yao Qi <yao.qi@linaro.org>
7835 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
7836 Initialize res to zero.
7838 2016-05-05 Yao Qi <yao.qi@linaro.org>
7840 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
7843 2016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7845 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
7846 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
7847 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
7849 2016-04-28 Par Olsson <par.olsson@windriver.com>
7850 Simon Marchi <simon.marchi@ericsson.com>
7852 * tracepoint.c (write_inferior_int8): New function.
7853 (cmd_qtenable_disable): Write enable flag using
7854 write_inferior_int8.
7856 2016-04-25 Yao Qi <yao.qi@linaro.org>
7858 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
7859 (need_step_over_p): Return zero if the LWP has pending signals
7860 can be delivered on software single step target.
7862 2016-04-25 Yao Qi <yao.qi@linaro.org>
7864 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
7865 return instead of error.
7867 2016-04-22 Yao Qi <yao.qi@linaro.org>
7869 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
7872 2016-04-22 Yao Qi <yao.qi@linaro.org>
7874 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
7875 signal when stepping over breakpoint with software single
7878 2016-04-21 Pedro Alves <palves@redhat.com>
7880 * linux-s390-low.c (s390_collect_ptrace_register)
7881 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
7883 (s390_check_regset): Use void * instead of gdb_byte *.
7885 2016-04-20 Pedro Alves <palves@redhat.com>
7887 * configure: Renegerate.
7889 2016-04-20 Yao Qi <yao.qi@linaro.org>
7891 * linux-aarch32-low.c: Include "arch/arm-linux.h".
7892 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
7894 (arm_store_gregset): Likewise.
7896 2016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
7898 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
7899 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
7900 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
7901 (amd64-avx-mpx-linux.c): New rules.
7902 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
7903 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
7904 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
7905 (srv_amd64_regobj): Add amd64-avx-mpx.o.
7906 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
7907 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
7908 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
7909 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
7910 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
7911 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
7912 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
7913 * linux-x86-low.c (x86_linux_read_description): Add case for
7914 X86_XSTATE_AVX_MPX_MASK.
7915 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
7916 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
7917 init_registers_i386_avx_mpx_linux.
7918 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
7919 (initialize_low_tracepoint): Call
7920 init_registers_i386_avx_mpx_linux.
7921 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
7922 (initialize_low_tracepoint): Call
7923 init_registers_amd64_avx_mpx_linux.
7924 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
7925 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
7926 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
7929 2016-04-18 Pedro Alves <palves@redhat.com>
7931 * configure: Regenerate.
7933 2016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
7935 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
7936 (aarch64_emit_sub): Likewise.
7938 2016-04-12 Pedro Alves <palves@redhat.com>
7940 * utils.c (prepare_to_throw_exception): Delete.
7942 2016-04-05 Simon Marchi <simon.marchi@ericsson.com>
7944 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
7946 2016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
7948 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
7950 2016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
7952 * linux-aarch64-ipa.c: Add <elf.h> include.
7953 * linux-ppc-ipa.c: Add <elf.h> include.
7954 * linux-s390-ipa.c: Add <elf.h> include.
7956 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
7958 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
7959 (get_raw_reg_ptr): Likewise.
7960 (get_trace_state_variable_value_ptr): Likewise.
7961 (set_trace_state_variable_value_ptr): Likewise.
7962 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
7965 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
7966 Marcin Kościelnicki <koriakin@0x04.net>
7969 * linux-ppc-low.c (emit_insns): New function.
7970 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
7971 (ppc_emit_prologue): New function.
7972 (ppc_emit_epilogue): New function.
7973 (ppc_emit_add): New function.
7974 (ppc_emit_sub): New function.
7975 (ppc_emit_mul): New function.
7976 (ppc_emit_lsh): New function.
7977 (ppc_emit_rsh_signed): New function.
7978 (ppc_emit_rsh_unsigned): New function.
7979 (ppc_emit_ext): New function.
7980 (ppc_emit_zero_ext): New function.
7981 (ppc_emit_log_not): New function.
7982 (ppc_emit_bit_and): New function.
7983 (ppc_emit_bit_or): New function.
7984 (ppc_emit_bit_xor): New function.
7985 (ppc_emit_bit_not): New function.
7986 (ppc_emit_equal): New function.
7987 (ppc_emit_less_signed): New function.
7988 (ppc_emit_less_unsigned): New function.
7989 (ppc_emit_ref): New function.
7990 (ppc_emit_const): New function.
7991 (ppc_emit_reg): New function.
7992 (ppc_emit_pop): New function.
7993 (ppc_emit_stack_flush): New function.
7994 (ppc_emit_swap): New function.
7995 (ppc_emit_stack_adjust): New function.
7996 (ppc_emit_call): New function.
7997 (ppc_emit_int_call_1): New function.
7998 (ppc_emit_void_call_2): New function.
7999 (ppc_emit_if_goto): New function.
8000 (ppc_emit_goto): New function.
8001 (ppc_emit_eq_goto): New function.
8002 (ppc_emit_ne_goto): New function.
8003 (ppc_emit_lt_goto): New function.
8004 (ppc_emit_le_goto): New function.
8005 (ppc_emit_gt_goto): New function.
8006 (ppc_emit_ge_goto): New function.
8007 (ppc_write_goto_address): New function.
8008 (ppc_emit_ops_impl): New static variable.
8009 (ppc64v1_emit_prologue): New function.
8010 (ppc64v2_emit_prologue): New function.
8011 (ppc64_emit_epilogue): New function.
8012 (ppc64_emit_add): New function.
8013 (ppc64_emit_sub): New function.
8014 (ppc64_emit_mul): New function.
8015 (ppc64_emit_lsh): New function.
8016 (ppc64_emit_rsh_signed): New function.
8017 (ppc64_emit_rsh_unsigned): New function.
8018 (ppc64_emit_ext): New function.
8019 (ppc64_emit_zero_ext): New function.
8020 (ppc64_emit_log_not): New function.
8021 (ppc64_emit_bit_and): New function.
8022 (ppc64_emit_bit_or): New function.
8023 (ppc64_emit_bit_xor): New function.
8024 (ppc64_emit_bit_not): New function.
8025 (ppc64_emit_equal): New function.
8026 (ppc64_emit_less_signed): New function.
8027 (ppc64_emit_less_unsigned): New function.
8028 (ppc64_emit_ref): New function.
8029 (ppc64_emit_const): New function.
8030 (ppc64v1_emit_reg): New function.
8031 (ppc64v2_emit_reg): New function.
8032 (ppc64_emit_pop): New function.
8033 (ppc64_emit_stack_flush): New function.
8034 (ppc64_emit_swap): New function.
8035 (ppc64v1_emit_call): New function.
8036 (ppc64v2_emit_call): New function.
8037 (ppc64v1_emit_int_call_1): New function.
8038 (ppc64v2_emit_int_call_1): New function.
8039 (ppc64v1_emit_void_call_2): New function.
8040 (ppc64v2_emit_void_call_2): New function.
8041 (ppc64_emit_if_goto): New function.
8042 (ppc64_emit_eq_goto): New function.
8043 (ppc64_emit_ne_goto): New function.
8044 (ppc64_emit_lt_goto): New function.
8045 (ppc64_emit_le_goto): New function.
8046 (ppc64_emit_gt_goto): New function.
8047 (ppc64_emit_ge_goto): New function.
8048 (ppc64v1_emit_ops_impl): New static variable.
8049 (ppc64v2_emit_ops_impl): New static variable.
8050 (ppc_emit_ops): New function.
8051 (linux_low_target): Wire in ppc_emit_ops.
8053 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
8054 Marcin Kościelnicki <koriakin@0x04.net>
8057 * Makefile.in: Add powerpc-*-ipa.o
8058 * configure.srv: Add ipa_obj for powerpc*-linux.
8059 * linux-ppc-ipa.c: New file.
8060 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
8062 (PPC_FIELD): New macro.
8063 (PPC_SEXT): New macro.
8064 (PPC_OP6): New macro.
8065 (PPC_BO): New macro.
8066 (PPC_LI): New macro.
8067 (PPC_BD): New macro.
8068 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
8069 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
8070 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
8071 (ppc_get_thread_area): New function.
8072 (is_elfv2_inferior): New function.
8073 (gen_ds_form): New function.
8074 (GEN_STD): New macro.
8075 (GEN_STDU): New macro.
8076 (GEN_LD): New macro.
8077 (GEN_LDU): New macro.
8078 (gen_d_form): New function.
8079 (GEN_ADDI): New macro.
8080 (GEN_ADDIS): New macro.
8081 (GEN_LI): New macro.
8082 (GEN_LIS): New macro.
8083 (GEN_ORI): New macro.
8084 (GEN_ORIS): New macro.
8085 (GEN_LWZ): New macro.
8086 (GEN_STW): New macro.
8087 (GEN_STWU): New macro.
8088 (gen_xfx_form): New function.
8089 (GEN_MFSPR): New macro.
8090 (GEN_MTSPR): New macro.
8091 (GEN_MFCR): New macro.
8092 (GEN_MTCR): New macro.
8093 (GEN_SYNC): New macro.
8094 (GEN_LWSYNC): New macro.
8095 (gen_x_form): New function.
8096 (GEN_OR): New macro.
8097 (GEN_MR): New macro.
8098 (GEN_LWARX): New macro.
8099 (GEN_STWCX): New macro.
8100 (GEN_CMPW): New macro.
8101 (gen_md_form): New function.
8102 (GEN_RLDICL): New macro.
8103 (GEN_RLDICR): New macro.
8104 (gen_i_form): New function.
8106 (GEN_BL): New macro.
8107 (gen_b_form): New function.
8108 (GEN_BNE): New macro.
8109 (GEN_LOAD): New macro.
8110 (GEN_STORE): New macro.
8111 (gen_limm): New function.
8112 (gen_atomic_xchg): New function.
8113 (gen_call): New function.
8114 (ppc_relocate_instruction): New function.
8115 (ppc_install_fast_tracepoint_jump_pad): New function.
8116 (ppc_get_min_fast_tracepoint_insn_len): New function.
8117 (ppc_get_ipa_tdesc_idx): New function.
8118 (the_low_target): Wire in the new functions.
8119 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
8121 * linux-ppc-tdesc.h: New file.
8123 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8125 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8126 (alloc_jump_pad_buffer): New function.
8127 * linux-amd64-ipa.c: Add <sys/mman.h> include.
8128 (alloc_jump_pad_buffer): New function.
8129 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
8130 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8131 (alloc_jump_pad_buffer): New function.
8132 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
8133 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
8134 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
8135 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
8137 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8139 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
8140 * linux-amd64-ipa.c: Likewise.
8141 * linux-i386-ipa.c: Likewise.
8142 * linux-s390-ipa.c: Likewise.
8143 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
8144 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
8145 set_trace_state_variable_value_ptr.
8146 (struct ipa_sym_addresses): Likewise.
8147 (symbol_list): Likewise.
8148 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
8149 accessing gdb_collect directly.
8150 (gdb_collect_ptr_type): New typedef.
8151 (get_raw_reg_ptr_type): New typedef.
8152 (get_trace_state_variable_value_ptr_type): New typedef.
8153 (set_trace_state_variable_value_ptr_type): New typedef.
8154 (gdb_collect_ptr): New global.
8155 (get_raw_reg_ptr): New global.
8156 (get_trace_state_variable_value_ptr): New global.
8157 (set_trace_state_variable_value_ptr): New global.
8158 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
8159 accessing get_raw_reg directly.
8160 (get_get_tsv_func_addr): Likewise for
8161 get_trace_state_variable_value_ptr.
8162 (get_set_tsv_func_addr): Likewise for
8163 set_trace_state_variable_value_ptr.
8164 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
8166 2016-03-30 Simon Marchi <simon.marchi@ericsson.com>
8168 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
8170 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8172 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
8174 (relocate_instruction): Remove own_buf.
8175 * server.c (own_buf): Make global.
8176 (handle_v_requests): Make global.
8177 * server.h (own_buf): New declaration.
8178 (handle_v_requests): New prototype.
8180 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8183 * linux-s390-low.c (add_insns): New function.
8184 (s390_emit_prologue): New function.
8185 (s390_emit_epilogue): New function.
8186 (s390_emit_add): New function.
8187 (s390_emit_sub): New function.
8188 (s390_emit_mul): New function.
8189 (s390_emit_lsh): New function.
8190 (s390_emit_rsh_signed): New function.
8191 (s390_emit_rsh_unsigned): New function.
8192 (s390_emit_ext): New function.
8193 (s390_emit_log_not): New function.
8194 (s390_emit_bit_and): New function.
8195 (s390_emit_bit_or): New function.
8196 (s390_emit_bit_xor): New function.
8197 (s390_emit_bit_not): New function.
8198 (s390_emit_equal): New function.
8199 (s390_emit_less_signed): New function.
8200 (s390_emit_less_unsigned): New function.
8201 (s390_emit_ref): New function.
8202 (s390_emit_if_goto): New function.
8203 (s390_emit_goto): New function.
8204 (s390_write_goto_address): New function.
8205 (s390_emit_litpool): New function.
8206 (s390_emit_const): New function.
8207 (s390_emit_call): New function.
8208 (s390_emit_reg): New function.
8209 (s390_emit_pop): New function.
8210 (s390_emit_stack_flush): New function.
8211 (s390_emit_zero_ext): New function.
8212 (s390_emit_swap): New function.
8213 (s390_emit_stack_adjust): New function.
8214 (s390_emit_set_r2): New function.
8215 (s390_emit_int_call_1): New function.
8216 (s390_emit_void_call_2): New function.
8217 (s390_emit_eq_goto): New function.
8218 (s390_emit_ne_goto): New function.
8219 (s390_emit_lt_goto): New function.
8220 (s390_emit_le_goto): New function.
8221 (s390_emit_gt_goto): New function.
8222 (s390_emit_ge_goto): New function.
8223 (s390x_emit_prologue): New function.
8224 (s390x_emit_epilogue): New function.
8225 (s390x_emit_add): New function.
8226 (s390x_emit_sub): New function.
8227 (s390x_emit_mul): New function.
8228 (s390x_emit_lsh): New function.
8229 (s390x_emit_rsh_signed): New function.
8230 (s390x_emit_rsh_unsigned): New function.
8231 (s390x_emit_ext): New function.
8232 (s390x_emit_log_not): New function.
8233 (s390x_emit_bit_and): New function.
8234 (s390x_emit_bit_or): New function.
8235 (s390x_emit_bit_xor): New function.
8236 (s390x_emit_bit_not): New function.
8237 (s390x_emit_equal): New function.
8238 (s390x_emit_less_signed): New function.
8239 (s390x_emit_less_unsigned): New function.
8240 (s390x_emit_ref): New function.
8241 (s390x_emit_if_goto): New function.
8242 (s390x_emit_const): New function.
8243 (s390x_emit_call): New function.
8244 (s390x_emit_reg): New function.
8245 (s390x_emit_pop): New function.
8246 (s390x_emit_stack_flush): New function.
8247 (s390x_emit_zero_ext): New function.
8248 (s390x_emit_swap): New function.
8249 (s390x_emit_stack_adjust): New function.
8250 (s390x_emit_int_call_1): New function.
8251 (s390x_emit_void_call_2): New function.
8252 (s390x_emit_eq_goto): New function.
8253 (s390x_emit_ne_goto): New function.
8254 (s390x_emit_lt_goto): New function.
8255 (s390x_emit_le_goto): New function.
8256 (s390x_emit_gt_goto): New function.
8257 (s390x_emit_ge_goto): New function.
8258 (s390_emit_ops): New function.
8259 (struct linux_target_ops): Fill in emit_ops hook.
8261 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8264 * Makefile.in: Add s390 IPA files.
8265 * configure.srv: Build IPA for s390.
8266 * linux-s390-ipa.c: New file.
8267 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
8268 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
8269 (tdesc_s390_linux32): Likewise.
8270 (init_registers_s390_linux32v1): Likewise.
8271 (tdesc_s390_linux32v1): Likewise.
8272 (init_registers_s390_linux32v2): Likewise.
8273 (tdesc_s390_linux32v2): Likewise.
8274 (init_registers_s390_linux64): Likewise.
8275 (tdesc_s390_linux64): Likewise.
8276 (init_registers_s390_linux64v1): Likewise.
8277 (tdesc_s390_linux64v1): Likewise.
8278 (init_registers_s390_linux64v2): Likewise.
8279 (tdesc_s390_linux64v2): Likewise.
8280 (init_registers_s390_te_linux64): Likewise.
8281 (tdesc_s390_te_linux64): Likewise.
8282 (init_registers_s390_vx_linux64): Likewise.
8283 (tdesc_s390_vx_linux64): Likewise.
8284 (init_registers_s390_tevx_linux64): Likewise.
8285 (tdesc_s390_tevx_linux64): Likewise.
8286 (init_registers_s390x_linux64): Likewise.
8287 (tdesc_s390x_linux64): Likewise.
8288 (init_registers_s390x_linux64v1): Likewise.
8289 (tdesc_s390x_linux64v1): Likewise.
8290 (init_registers_s390x_linux64v2): Likewise.
8291 (tdesc_s390x_linux64v2): Likewise.
8292 (init_registers_s390x_te_linux64): Likewise.
8293 (tdesc_s390x_te_linux64): Likewise.
8294 (init_registers_s390x_vx_linux64): Likewise.
8295 (tdesc_s390x_vx_linux64): Likewise.
8296 (init_registers_s390x_tevx_linux64): Likewise.
8297 (tdesc_s390x_tevx_linux64): Likewise.
8298 (have_hwcap_s390_vx): New static variable.
8299 (s390_arch_setup): Fill have_hwcap_s390_vx.
8300 (s390_get_thread_area): New function.
8301 (s390_ft_entry_gpr_esa): New const.
8302 (s390_ft_entry_gpr_zarch): New const.
8303 (s390_ft_entry_misc): New const.
8304 (s390_ft_entry_fr): New const.
8305 (s390_ft_entry_vr): New const.
8306 (s390_ft_main_31): New const.
8307 (s390_ft_main_64): New const.
8308 (s390_ft_exit_fr): New const.
8309 (s390_ft_exit_vr): New const.
8310 (s390_ft_exit_misc): New const.
8311 (s390_ft_exit_gpr_esa): New const.
8312 (s390_ft_exit_gpr_zarch): New const.
8313 (append_insns): New function.
8314 (s390_relocate_instruction): New function.
8315 (s390_install_fast_tracepoint_jump_pad): New function.
8316 (s390_get_min_fast_tracepoint_insn_len): New function.
8317 (s390_get_ipa_tdesc_idx): New function.
8318 (struct linux_target_ops): Wire in the above functions.
8319 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
8320 * linux-s390-tdesc.h: New file.
8322 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8324 * linux-s390-low.c (s390_supports_tracepoints): New function.
8325 (struct linux_target_ops): Fill supports_tracepoints hook.
8327 2016-03-18 Yao Qi <yao.qi@linaro.org>
8329 * linux-low.c (lwp_signal_can_be_delivered): New function.
8330 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
8332 2016-03-18 Yao Qi <yao.qi@linaro.org>
8334 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
8335 0 if signal is enqueued. Remove 'signal' from one debugging
8336 message. Move one debugging message to some lines below.
8337 Remove code setting 'signal' to 0.
8339 2016-03-18 Yao Qi <yao.qi@linaro.org>
8341 * linux-low.c (linux_low_filter_event): Remove redundant
8342 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
8344 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
8346 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
8347 (struct linux_target_ops): Wire in the above.
8349 2016-03-03 Yao Qi <yao.qi@linaro.org>
8351 * linux-low.c: Update comments to start_step_over.
8353 2016-03-03 Yao Qi <yao.qi@linaro.org>
8356 * linux-low.c (handle_extended_wait): Set child suspended
8357 if event_lwp->bp_reinsert isn't zero.
8359 2016-03-02 Yao Qi <yao.qi@linaro.org>
8361 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
8362 enqueue_pending_signal.
8364 2016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
8366 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
8369 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8371 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
8372 (s390_regmap_3264) [!__s390x__]: New global.
8373 (s390_collect_ptrace_register): Skip map entries containing -1.
8374 (s390_supply_ptrace_register): Ditto.
8375 (s390_fill_gprs_high): New function.
8376 (s390_store_gprs_high): New function.
8377 (s390_regsets): Add NT_S390_HIGH_GPRS.
8378 (s390_get_hwcap): Enable on 31-bit.
8379 (have_hwcap_s390_high_gprs): Enable on 31-bit.
8380 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
8381 Detect NT_S390_HIGH_GPRS.
8382 (s390_usrregs_info_3264): Enable on 31-bit.
8383 (s390_regs_info): Enable regs_info_3264 on 31-bit.
8384 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
8386 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8389 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
8390 * configure.srv: Ditto.
8391 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
8392 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
8393 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
8394 (init_registers_amd64_linux): Remove prototype.
8395 (tdesc_amd64_linux): Remove declaration.
8396 (get_ipa_tdesc): New function.
8397 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8398 initialize remaining tdescs.
8399 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
8400 (init_registers_i386_linux): Remove prototype.
8401 (tdesc_i386_linux): Remove declaration.
8402 (get_ipa_tdesc): New function.
8403 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8404 initialize remaining tdescs.
8405 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
8406 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
8407 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
8408 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
8409 (x86_get_ipa_tdesc_idx): New function.
8410 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
8411 * linux-x86-tdesc.h: New file.
8412 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
8413 (target_get_ipa_tdesc_idx): New macro.
8414 * tracepoint.c (ipa_tdesc_idx): New macro.
8415 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
8416 (symbol_list): Add ipa_tdesc_idx.
8417 (cmd_qtstart): Write ipa_tdesc_idx in the target.
8418 (ipa_tdesc): Remove.
8419 (ipa_tdesc_idx): New variable.
8420 (get_context_regcache): Use get_ipa_tdesc.
8421 (gdb_collect): Ditto.
8423 * tracepoint.h (get_ipa_tdesc): New prototype.
8424 (ipa_tdesc): Remove.
8426 2016-02-24 Pedro Alves <palves@redhat.com>
8428 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
8429 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
8430 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
8431 Factor out common code between the USE_SIGTRAP_SIGINFO and
8432 !USE_SIGTRAP_SIGINFO blocks.
8433 (linux_low_filter_event): Call save_stop_reason instead of
8434 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
8436 (linux_wait_1): Update comments.
8438 2016-02-24 Wei-cheng Wang <cole945@gmail.com>
8440 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
8441 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
8442 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
8443 ppc_insert_point, ppc_remove_point.
8445 2016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
8447 * linux-s390-low.c (s390_supports_z_point_type): New function.
8448 (struct linux_target_ops): Wire s390_supports_z_point_type in.
8450 2016-02-16 Yao Qi <yao.qi@linaro.org>
8452 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
8453 PC. Get pc from regcache_read_pc.
8455 2016-02-12 Yao Qi <yao.qi@linaro.org>
8457 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
8458 or linux_get_pc_32bit.
8459 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
8461 2016-02-12 Yao Qi <yao.qi@linaro.org>
8463 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
8464 arm_linux_get_next_pcs_fixup.
8466 2016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
8468 * tracepoint.c (x_tracepoint_action_download): Change
8469 write_inferior_data_ptr to write_inferior_data_pointer.
8470 (cmd_qtstart): Likewise.
8471 (write_inferior_data_ptr): Remove.
8472 (download_agent_expr): Change write_inferior_data_ptr to
8473 write_inferior_data_pointer.
8474 (download_tracepoint_1): Likewise.
8475 (download_tracepoint): Likewise.
8476 (download_trace_state_variables): Likewise.
8478 2016-02-11 Wei-cheng Wang <cole945@gmail.com>
8479 Marcin Kościelnicki <koriakin@0x04.net>
8481 * tracepoint.c (struct tracepoint_action_ops): Remove.
8482 (struct tracepoint_action): Remove ops.
8483 (m_tracepoint_action_download, r_tracepoint_action_download)
8484 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
8485 size and offset accordingly.
8486 (m_tracepoint_action_ops, r_tracepoint_action_ops)
8487 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
8488 (tracepoint_action_send, tracepoint_action_download): New functions.
8489 Helpers for trace action handlers.
8490 (add_tracepoint_action): Remove setup actions ops.
8491 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
8493 2016-02-10 Yao Qi <yao.qi@linaro.org>
8495 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
8497 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8499 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
8501 * configure: Regenerate.
8503 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8505 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
8506 void * to gdb_byte *.
8507 * linux-low.c (siginfo_fixup): Likewise.
8508 (linux_xfer_siginfo): Likewise.
8509 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
8511 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
8513 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
8515 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
8517 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
8519 * linux-x86-low.c [__x86_64__]: Include
8520 "nat/amd64-linux-siginfo.h".
8521 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
8522 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
8523 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
8524 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
8525 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
8526 (cpt_si_fd, si_timerid, si_overrun): Move from
8527 nat/amd64-linux-siginfo.c.
8528 * Makefile.in (amd64-linux-siginfo.o:): New rule.
8530 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
8532 * server.c (skip_to_semicolon): Remove.
8533 (process_point_options): Use strchrnul instead of
8536 2016-01-26 Yao Qi <yao.qi@linaro.org>
8538 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
8539 * linux-low.c (install_software_single_step_breakpoints): Don't
8540 call regcache_read_pc.
8541 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
8544 2016-01-26 Yao Qi <yao.qi@linaro.org>
8546 * linux-low.c (install_software_single_step_breakpoints): Call
8547 regcache_read_pc instead of get_pc.
8549 2016-01-26 Yao Qi <yao.qi@linaro.org>
8551 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
8552 (unblock_async_io): Rename to ...
8553 (block_unblock_async_io): ... it. New function.
8554 (enable_async_io): Don't install SIGIO handler. Unblock it
8556 (disable_async_io): Don't ignore SIGIO. Block it instead.
8557 (initialize_async_io): Install SIGIO handler. Don't call
8560 2016-01-26 Yao Qi <yao.qi@linaro.org>
8562 * remote-utils.c (getpkt): If the buffer isn't empty, and the
8563 first character is '\003', call *the_target->request_interrupt.
8565 2016-01-25 Yao Qi <yao.qi@linaro.org>
8567 * remote-utils.c (new_thread_notify): Remove.
8568 (dead_thread_notify): Likewise.
8569 * remote-utils.h (new_thread_notify): Remove declaration.
8570 (dead_thread_notify): Likewise.
8572 2016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
8574 * gdb.trace/pending.exp: Fix expected message on continue.
8576 2016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
8578 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
8579 it works properly on big-endian machines where sizeof (CORE_ADDR)
8582 2016-01-21 Pedro Alves <palves@redhat.com>
8584 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
8585 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
8586 * configure: Regenerate.
8588 2016-01-21 Yao Qi <yao.qi@linaro.org>
8590 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
8591 is_thumb and set it according to CPSR saved on the stack.
8592 (get_next_pcs_syscall_next_pc): Pass is_thumb to
8593 arm_sigreturn_next_pc.
8595 2016-01-18 Yao Qi <yao.qi@linaro.org>
8597 * linux-low.c (linux_set_pc_64bit): New function.
8598 (linux_get_pc_64bit): New function.
8599 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
8601 * linux-sparc-low.c (debug_threads): Remove declaration.
8602 (sparc_get_pc): Remove.
8603 (the_low_target): Use linux_get_pc_64bit instead of
8605 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
8606 (the_low_target): Use linux_get_pc_64bit and
8609 2016-01-18 Yao Qi <yao.qi@linaro.org>
8611 * linux-arm-low.c (debug_threads): Remove declaration.
8612 (arm_get_pc, arm_set_pc): Remove.
8613 (the_low_target): Use linux_get_pc_32bit and
8615 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
8616 (the_low_target): Use linux_get_pc_32bit and
8618 * linux-cris-low.c (debug_threads): Remove declaration.
8619 (cris_get_pc, cris_set_pc,): Remove.
8620 (the_low_target): Use linux_get_pc_32bit and
8622 * linux-crisv32-low.c (debug_threads): Remove declaration.
8623 (cris_get_pc, cris_set_pc): Remove.
8624 (the_low_target): Use linux_get_pc_32bit and
8626 * linux-low.c: Include inttypes.h.
8627 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
8628 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
8629 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
8630 (the_low_target): Use linux_get_pc_32bit and
8632 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
8633 (the_low_target): Use linux_get_pc_32bit and
8635 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
8636 (the_low_target): Use linux_get_pc_32bit and
8638 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
8639 (the_low_target): Use linux_get_pc_32bit and
8641 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
8642 (the_low_target): Use linux_get_pc_32bit and
8645 2016-01-18 Gary Benson <gbenson@redhat.com>
8647 * configure.ac (AC_FUNC_FORK): New check.
8648 * config.in: Regenerate.
8649 * configure: Likewise.
8651 2016-01-14 Yao Qi <yao.qi@linaro.org>
8653 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
8654 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
8655 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
8656 arm_get_next_pcs_ctor.
8658 2016-01-12 Josh Stone <jistone@redhat.com>
8659 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8661 * inferiors.h: Include "gdb_vecs.h".
8662 (struct process_info): Add syscalls_to_catch.
8663 * inferiors.c (remove_process): Free syscalls_to_catch.
8664 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
8665 syscall_return stops.
8666 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
8667 * server.c (handle_general_set): Handle QCatchSyscalls.
8668 (handle_query): Report support for QCatchSyscalls.
8669 * target.h (struct target_ops): Add supports_catch_syscall.
8670 (target_supports_catch_syscall): New macro.
8671 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
8672 (struct lwp_info): Add syscall_state.
8673 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
8674 Maintain syscall_state and syscalls_to_catch across exec.
8675 (get_syscall_trapinfo): New function, proxy to the_low_target.
8676 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
8677 (linux_low_filter_event): Toggle syscall_state entry/return for
8678 syscall traps, and set it ignored for all others.
8679 (gdb_catching_syscalls_p): New function.
8680 (gdb_catch_this_syscall_p): New function.
8681 (linux_wait_1): Handle SYSCALL_SIGTRAP.
8682 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
8683 (linux_supports_catch_syscall): New function.
8684 (linux_target_ops): Install it.
8685 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
8686 (the_low_target): Install it.
8688 2016-01-12 Mike Frysinger <vapier@gentoo.org>
8690 * acinclude.m4: Include new ../warning.m4 file.
8691 * configure: Regenerated.
8692 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
8694 2016-01-12 Mike Frysinger <vapier@gentoo.org>
8696 * ax.c (is_goto_target): Mark static.
8697 * linux-low.c (register_addr): Likewise.
8698 (linux_fetch_registers, linux_store_registers): Likewise.
8699 * mem-break.c (any_persistent_commands): Fix old prototype.
8700 (add_commands_to_breakpoint): Mark static.
8701 * regcache.c (find_register_by_name): Delete unused func.
8702 * remote-utils.c (hex_or_minus_one): Mark static.
8703 * server.c (monitor_show_help): Mark static.
8704 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
8705 handle_v_requests): Likewise.
8707 2016-01-12 Pedro Alves <palves@redhat.com>
8709 Remove use of the registered trademark symbol throughout.
8711 2016-01-08 Yao Qi <yao.qi@linaro.org>
8713 * remote-utils.c (getpkt): If c is '\003', call target hook
8716 2016-01-06 Yao Qi <yao.qi@linaro.org>
8718 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
8719 linux-aarch32-low.c.
8720 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8721 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
8722 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8723 (thumb2_breakpoint): Declare.
8724 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
8725 linux-aarch32-low.h.
8726 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8727 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
8728 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8730 2016-01-01 Joel Brobecker <brobecker@adacore.com>
8732 * gdbreplay.c (gdbreplay_version): Change copyright year in
8734 * server.c (gdbserver_version): Likewise.
8736 2015-12-28 Patrick Palka <patrick@parcs.ath.cx>
8738 * server.c (crc32_table): Delete.
8739 (crc32): Use libiberty's xcrc32 function.
8741 2015-12-22 Joel Brobecker <brobecker@adacore.com>
8743 * lynx-low.c (lynx_delete_thread_callback): New function.
8744 (lynx_mourn): Properly delete our process and all of its
8745 threads. Remove call to clear_inferiors.
8747 2015-12-22 Joel Brobecker <brobecker@adacore.com>
8749 * target.c (thread_search_callback): Add check that
8750 the thread_stopped target callback is not NULL before
8753 2015-12-21 Yao Qi <yao.qi@linaro.org>
8755 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
8758 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8760 * server.c (handle_query): Call target_supports_software_single_step.
8762 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8764 * linux-low.c (single_step): New function.
8765 (linux_resume_one_lwp_throw): Call single_step.
8766 (start_step_over): Likewise.
8768 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8770 * Makefile.in (SFILES): Append arch/arm-linux.c,
8771 arch/arm-get-next-pcs.c.
8772 (arm-linux.o): New rule.
8773 (arm-get-next-pcs.o): New rule.
8774 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
8776 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
8777 to linux-aarch32-low.c.
8778 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8779 (arm_breakpoint_len, thumb_breakpoint): Likewise.
8780 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
8781 (thumb2_breakpoint_len): Likewise.
8782 (arm_is_thumb_mode): Make non-static.
8783 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
8784 from linux-aarch32-low.c.
8785 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8786 (arm_breakpoint_len, thumb_breakpoint): Likewise.
8787 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
8788 (thumb2_breakpoint_len): Likewise.
8789 (arm_is_thumb_mode): New declaration.
8790 * linux-arm-low.c: Include arch/arm-linux.h
8791 aarch/arm-get-next-pcs.h, sys/syscall.h.
8792 (get_next_pcs_ops): New struct.
8793 (get_next_pcs_addr_bits_remove): New function.
8794 (get_next_pcs_is_thumb): New function.
8795 (get_next_pcs_read_memory_unsigned_integer): Likewise.
8796 (arm_sigreturn_next_pc): Likewise.
8797 (get_next_pcs_syscall_next_pc): Likewise.
8798 (arm_gdbserver_get_next_pcs): Likewise.
8799 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
8801 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
8802 * server.h: Include gdb_vecs.h.
8804 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8806 * Makefile.in (SFILES): Append common/common-regcache.c.
8807 (OBS): Append common-regcache.o.
8808 (common-regcache.o): New rule.
8809 * regcache.c (init_register_cache): Initialize cache to
8811 (regcache_raw_read_unsigned): New function.
8812 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
8813 register_status enum.
8815 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8817 * linux-aarch64-low.c (the_low_targets): Rename
8818 breakpoint_reinsert_addr to get_next_pcs.
8819 * linux-arm-low.c (the_low_targets): Likewise.
8820 * linux-bfin-low.c (the_low_targets): Likewise.
8821 * linux-cris-low.c (the_low_targets): Likewise.
8822 * linux-crisv32-low.c (the_low_targets): Likewise.
8823 * linux-low.c (can_software_single_step): Likewise.
8824 (install_software_single_step_breakpoints): New function.
8825 (start_step_over): Use install_software_single_step_breakpoints.
8826 * linux-low.h: New CORE_ADDR vector.
8827 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
8829 * linux-mips-low.c (the_low_targets): Likewise.
8830 * linux-nios2-low.c (the_low_targets): Likewise.
8831 * linux-sparc-low.c (the_low_targets): Likewise.
8833 2015-12-17 Pedro Alves <palves@redhat.com>
8835 * linux-low.c (linux_kill_one_lwp): Remove references to
8837 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
8839 (linux_init_signals): Delete.
8840 (initialize_low): Adjust.
8841 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
8843 2015-12-16 Pedro Alves <palves@redhat.com>
8845 * configure.ac (compiler warning flags): When testing a
8846 -Wno-foo option, check whether -Wfoo works instead.
8847 * configure: Regenerate.
8849 2015-12-11 Don Breazeal <donb@codesourcery.com>
8851 * server.c (process_serial_event): Don't exit from gdbserver
8852 in remote mode if there are still active inferiors.
8854 2015-12-11 Yao Qi <yao.qi@linaro.org>
8856 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
8857 arm_breakpoint_at if the process is 32-bit.
8859 2015-12-11 Yao Qi <yao.qi@linaro.org>
8861 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
8864 2015-12-07 Yao Qi <yao.qi@linaro.org>
8866 * configure.srv: Append arm.o to srv_tgtobj for
8867 aarch64*-*-linux* target.
8868 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
8869 from linux-arm-low.c.
8870 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8871 (arm_breakpoint_len, thumb_breakpoint): Likewise.
8872 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
8873 (thumb2_breakpoint_len): Likewise.
8874 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
8875 (arm_breakpoint_kinds): Likewise.
8876 (arm_breakpoint_kind_from_pc): Likewise.
8877 (arm_sw_breakpoint_from_kind): Likewise.
8878 (arm_breakpoint_kind_from_current_state): Likewise.
8879 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
8880 (arm_sw_breakpoint_from_kind): Declare.
8881 (arm_breakpoint_kind_from_current_state): Declare.
8882 (arm_breakpoint_at): Declare.
8883 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
8884 arm_sw_breakpoint_from_kind if process is 32-bit.
8885 (aarch64_breakpoint_kind_from_pc): New function.
8886 (aarch64_breakpoint_kind_from_current_state): New function.
8887 (the_low_target): Initialize fields breakpoint_kind_from_pc
8888 and breakpoint_kind_from_current_state.
8889 * linux-arm-low.c (arm_breakpoint_kinds): Move to
8890 linux-aarch32-low.c.
8891 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
8892 (arm_breakpoint, arm_breakpoint_len): Likewise.
8893 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
8894 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8895 (arm_is_thumb_mode): Likewise.
8896 (arm_breakpoint_at): Likewise.
8897 (arm_breakpoint_kind_from_pc): Likewise.
8898 (arm_sw_breakpoint_from_kind): Likewise.
8899 (arm_breakpoint_kind_from_current_state): Likewise.
8902 2015-08-04 Yao Qi <yao.qi@linaro.org>
8904 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
8905 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
8906 * server.c (extended_protocol): Remove "static".
8907 * server.h (extended_protocol): Declare it.
8909 2015-12-04 Josh Stone <jistone@redhat.com>
8911 * target.h (struct target_ops) <arch_setup>: Rename to ...
8912 (struct target_ops) <post_create_inferior>: ... this.
8913 (target_arch_setup): Rename to ...
8914 (target_post_create_inferior): ... this, calling post_create_inferior.
8915 * server.c (start_inferior): Update target_arch_setup calls to
8916 target_post_create_inferior.
8917 * linux-low.c (linux_low_ptrace_options): Forward declare.
8918 (linux_arch_setup): Update its comment for general use.
8919 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
8920 (struct linux_target_ops): Use linux_post_create_inferior.
8921 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
8922 to post_create_inferior.
8923 * nto-low.c (struct nto_target_ops): Likewise.
8924 * spu-low.c (struct spu_target_ops): Likewise.
8925 * win32-low.c (struct win32_target_ops): Likewise.
8927 2015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
8929 * linux-arm-low.c: Remove duplicate arch/arm.h include.
8931 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
8933 * linux-arm-low.c (arm_reinsert_addr): Remove function.
8934 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
8935 * linux-cris-low.c (cris_reinsert_addr> Remove function.
8936 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
8937 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
8938 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
8939 * linux-mips-low.c (mips_reinsert_addr): Remove function.
8940 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
8941 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
8942 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
8943 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
8944 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
8946 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
8948 * linux-low.c (linux_look_up_symbols): Don't call
8949 linux_supports_traceclone.
8950 * linux-low.h (thread_db_init): Remove use_events argument.
8951 * thread-db.c (thread_db_use_event): Remove global variable.
8952 (struct thread_db) <td_thr_event_enable_p>: Remove field.
8953 (struct thread_db) <td_create_bp>: Remove field.
8954 (thread_db_create_event): Remove function.
8955 (thread_db_enable_reporting): Likewise.
8956 (find_one_thread): Don't check for thread_db_use_events.
8957 (attach_thread): Likewise.
8958 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
8959 (try_thread_db_load_1): Don't check for thread_db_use_events.
8960 (thread_db_init): Remove use_events argument and thread events
8962 (remove_thread_event_breakpoints): Remove function.
8963 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
8965 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
8967 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
8969 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8970 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
8971 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8972 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
8973 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
8975 * linux-crisv32-low.c (cris_supports_hardware_single_step):
8977 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8978 * linux-low.c (can_hardware_single_step): Use
8979 supports_hardware_single_step.
8980 (can_software_single_step): New function.
8981 (start_step_over): Call can_software_single_step.
8982 (linux_supports_hardware_single_step): New function.
8983 (struct target_ops) <supports_software_single_step>: Initialize.
8984 * linux-low.h (struct linux_target_ops)
8985 <supports_hardware_single_step>: Initialize.
8986 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
8987 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8988 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
8989 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
8990 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
8991 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8992 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
8993 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8994 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
8995 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
8997 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
8998 (struct linux_target_ops) <tile_supports_hardware_single_step>:
9000 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
9001 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9002 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
9004 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9005 * target.h (struct target_ops): <supports_software_single_step>:
9007 (target_supports_software_single_step): New macro.
9009 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9011 * linux-low.c (linux_wait_1): Fix pc advance condition.
9012 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
9013 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
9015 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9017 * linux-arm-low.c (arm_is_thumb_mode): New function.
9018 (arm_breakpoint_at): Use arm_is_thumb_mode.
9019 (arm_breakpoint_kind_from_current_state): New function.
9020 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
9022 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
9023 (linux_breakpoint_kind_from_current_state): New function.
9024 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
9025 * linux-low.h (struct linux_target_ops)
9026 <breakpoint_kind_from_current_state>: New field.
9027 * target.h (struct target_ops): Likewise.
9028 (target_breakpoint_kind_from_current_state): New macro.
9030 2015-11-30 Pedro Alves <palves@redhat.com>
9032 * linux-low.c (linux_resume): Wake up the event loop before
9035 2015-11-30 Pedro Alves <palves@redhat.com>
9037 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
9039 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
9041 * target.c (struct thread_search): New structure.
9042 (thread_search_callback): New function.
9043 (prev_general_thread): New global.
9044 (prepare_to_access_memory, done_accessing_memory): New functions.
9045 * target.h (prepare_to_access_memory, done_accessing_memory):
9046 Replace macros with function declarations.
9048 2015-11-30 Pedro Alves <palves@redhat.com>
9051 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
9052 report TARGET_WAITKIND_NO_RESUMED.
9053 * remote-utils.c (prepare_resume_reply): Handle
9054 TARGET_WAITKIND_NO_RESUMED.
9055 * server.c (report_no_resumed): New global.
9056 (handle_query) <qSupported>: Handle "no-resumed+". Report
9057 "no-resumed+" support.
9058 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
9059 return error if the client doesn't support no-resumed events.
9060 (push_stop_notification): New function.
9061 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
9062 events if the client supports them.
9064 2015-11-30 Pedro Alves <palves@redhat.com>
9066 * linux-low.c (thread_still_has_status_pending_p): Don't check
9068 (lwp_resumed): New function.
9069 (status_pending_p_callback): Return early if the LWP is not
9070 supposed to be resumed.
9072 2015-11-30 Pedro Alves <palves@redhat.com>
9074 * linux-low.c (handle_extended_wait): Assert that the LWP's
9075 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
9076 thread create events, leave the new child's status pending.
9077 (linux_low_filter_event): If GDB wants to hear about thread exit
9078 events, leave the LWP marked dead and don't delete it.
9079 (linux_wait_for_event_filtered): Don't check for thread exit.
9080 (filter_exit_event): New function.
9081 (linux_wait_1): Use it, when returning an exit event.
9082 (linux_resume_one_lwp_throw): Assert that the LWP's
9083 waitstatus is TARGET_WAITKIND_IGNORE.
9084 * remote-utils.c (prepare_resume_reply): Handle
9085 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
9086 * server.c (report_thread_events): New global.
9087 (handle_general_set): Handle QThreadEvents.
9088 (handle_query) <qSupported>: Handle and report QThreadEvents+;
9089 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
9090 TARGET_WAITKIND_THREAD_EXITED.
9091 * server.h (report_thread_events): Declare.
9093 2015-11-30 Pedro Alves <palves@redhat.com>
9095 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
9096 the thread's last_resume_kind was resume_stop.
9098 2015-11-30 Pedro Alves <palves@redhat.com>
9100 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
9103 2015-11-30 Pedro Alves <palves@redhat.com>
9105 * server.c (handle_v_requests): Handle vCtrlC.
9107 2015-11-30 Pedro Alves <palves@redhat.com>
9109 * gdbthread.h (find_any_thread_of_pid): Declare.
9110 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
9112 * server.c (handle_query): If current_thread is NULL, look for
9113 another thread of the selected process.
9115 2015-11-26 Daniel Colascione <dancol@dancol.org>
9116 Simon Marchi <simon.marchi@ericsson.com>
9118 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
9119 * server.c (handle_qxfer_threads_worker): Refactor to include thread
9121 * target.h (struct target_ops) <thread_name>: New field.
9122 (target_thread_name): New macro.
9124 2015-11-23 Joel Brobecker <brobecker@adacore.com>
9126 * regcache.h (regcache_invalidate_pid): Add declaration.
9127 * regcache.c (regcache_invalidate_pid): New function, extracted
9128 from regcache_invalidate.
9129 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
9130 Add trivial documentation comment.
9131 * lynx-low.c: Use regcache_invalidate_pid instead of
9132 regcache_invalidate.
9134 2015-11-23 Joel Brobecker <brobecker@adacore.com>
9136 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
9137 and Elf64_auxv_t if the target is Android.
9139 2015-11-22 Doug Evans <xdje42@gmail.com>
9141 * target.h: #include <sys/types.h>.
9143 2015-11-19 Pedro Alves <palves@redhat.com>
9145 * linux-low.c (linux_process_qsupported): Change prototype.
9147 * linux-low.h (struct linux_target_ops) <process_qsupported>:
9149 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
9150 and adjust to loop over all features.
9151 * server.c (handle_query) <qSupported>: Adjust to call
9152 target_process_qsupported once, passing it a vector of unprocessed
9154 * target.h (struct target_ops) <process_qsupported>: Change
9156 (target_process_qsupported): Adjust.
9158 2015-11-19 Pedro Alves <palves@redhat.com>
9160 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
9162 * configure: Regenerate.
9164 2015-11-19 Pedro Alves <palves@redhat.com>
9166 * configure: Regenerate.
9168 2015-11-19 Yao Qi <yao.qi@linaro.org>
9170 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
9173 2015-11-19 Yao Qi <yao.qi@linaro.org>
9175 * linux-aarch64-low.c (enum aarch64_operand_type): New.
9176 (struct aarch64_operand): Move enum out.
9178 2015-11-19 Yao Qi <yao.qi@linaro.org>
9180 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
9181 struct user_fpsimd_state *.
9182 (aarch64_store_fpregset): Likewise.
9184 2015-11-19 Yao Qi <yao.qi@linaro.org>
9186 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
9187 struct user_pt_regs *.
9188 (aarch64_store_gregset): Likewise.
9190 2015-11-18 Pedro Alves <palves@redhat.com>
9192 * Makefile.in (all_object_files): Add $IPA_OBJS.
9194 2015-11-17 Pedro Alves <palves@redhat.com>
9196 * win32-low.c (win32_resume): Use gdb_signal_from_host,
9197 GDB_SIGNAL_0 and gdb_signal_to_string.
9199 2015-11-17 Pedro Alves <palves@redhat.com>
9201 * win32-low.c (handle_output_debug_string): Remove parameter.
9202 (win32_kill): Remove our_status local and adjust call to
9203 handle_output_debug_string.
9204 (get_child_debug_event): Adjust call to
9205 handle_output_debug_string.
9207 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9209 * linux-mips-low.c (mips_fill_gregset): Add cast.
9210 (mips_store_gregset): Likewise.
9211 (mips_fill_fpregset): Likewise.
9212 (mips_store_fpregset): Likewise.
9214 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9216 * linux-mips-low.c (mips_add_watchpoint): Rename private to
9219 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9221 * linux-mips-low.c (mips_linux_new_thread): Change type of
9222 watch_type to enum target_hw_bp_type.
9224 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9226 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
9227 Change return type to arm_hwbp_type.
9229 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9231 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
9232 (arm_store_gregset): Likewise.
9233 * linux-arm-low.c (arm_get_hwcap): Likewise.
9234 (arm_read_description): Likewise.
9236 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9238 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
9240 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9242 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
9243 (ppc_fill_vsxregset): Likewise.
9244 (ppc_store_vsxregset): Likewise.
9245 (ppc_fill_vrregset): Likewise.
9246 (ppc_store_vrregset): Likewise.
9247 (ppc_fill_evrregset): Likewise.
9248 (ppc_store_evrregset): Likewise.
9250 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9252 * linux-ppc-low.c (ppc_usrregs_info): Remove
9253 forward-declaration.
9254 (ppc_arch_setup): Move lower in file.
9256 2015-10-30 Simon Marchi <simon.marchi@ericsson.com>
9258 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
9259 (ps_pdwrite): Likewise.
9261 2015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
9263 * linux-arm-low.c (arm_new_thread): Move pointer dereference
9264 to after assert checks.
9266 2015-10-29 Simon Marchi <simon.marchi@ericsson.com>
9268 * proc-service.c (ps_pdread): Add/adjust casts.
9269 (ps_pdwrite): Add/adjust casts.
9271 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9273 * server.c (handle_search_memory_1): Cast return value of
9276 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9278 * server.c (write_qxfer_response): Change type of data to
9281 2015-10-29 Pedro Alves <palves@redhat.com>
9283 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
9285 2015-10-29 Pedro Alves <palves@redhat.com>
9287 * tracepoint.c (clear_installed_tracepoints): Add casts.
9289 2015-10-29 Pedro Alves <palves@redhat.com>
9291 * server.c (handle_v_cont, process_serial_event): Add enum
9292 gdb_signal casts to signal parsing code.
9294 2015-10-29 Pedro Alves <palves@redhat.com>
9296 * linux-low.h (NULL_REGSET): Define.
9297 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9298 * linux-arm-low.c (arm_regsets): Likewise.
9299 * linux-crisv32-low.c (cris_regsets): Likewise.
9300 * linux-m68k-low.c (m68k_regsets): Likewise.
9301 * linux-mips-low.c (mips_regsets): Likewise.
9302 * linux-nios2-low.c (nios2_regsets): Likewise.
9303 * linux-ppc-low.c (ppc_regsets): Likewise.
9304 * linux-s390-low.c (s390_regsets): Likewise.
9305 * linux-sh-low.c (sh_regsets): Likewise.
9306 * linux-sparc-low.c (sparc_regsets): Likewise.
9307 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9308 * linux-tile-low.c (tile_regsets): Likewise.
9309 * linux-x86-low.c (x86_regsets): Likewise.
9310 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9312 2015-10-29 Pedro Alves <palves@redhat.com>
9314 * linux-low.h (NULL_REGSET): Define.
9315 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9316 * linux-arm-low.c (arm_regsets): Likewise.
9317 * linux-crisv32-low.c (cris_regsets): Likewise.
9318 * linux-m68k-low.c (m68k_regsets): Likewise.
9319 * linux-mips-low.c (mips_regsets): Likewise.
9320 * linux-nios2-low.c (nios2_regsets): Likewise.
9321 * linux-ppc-low.c (ppc_regsets): Likewise.
9322 * linux-s390-low.c (s390_regsets): Likewise.
9323 * linux-sh-low.c (sh_regsets): Likewise.
9324 * linux-sparc-low.c (sparc_regsets): Likewise.
9325 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9326 * linux-tile-low.c (tile_regsets): Likewise.
9327 * linux-x86-low.c (x86_regsets): Likewise.
9328 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9330 2015-10-26 Doug Evans <dje@google.com>
9332 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
9334 2015-10-26 Doug Evans <dje@google.com>
9336 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
9338 2015-10-26 Doug Evans <dje@google.com>
9340 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
9342 (attach_thread, find_new_threads_callback): Ditto.
9344 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9346 * mem-break.h (set_breakpoint_data): Remove.
9348 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9350 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
9351 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9352 (initialize_low): Remove set_breakpoint_data call.
9353 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
9354 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
9355 (initialize_low): Remove set_breakpoint_data call.
9356 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
9357 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9358 (initialize_low): Remove set_breakpoint_data call.
9360 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9362 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
9363 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
9364 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
9365 * target.h (target_breakpoint_kind_from_pc): New macro.
9367 2015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
9369 * linux-low.c (default_breakpoint_kind_from_pc): New function.
9370 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
9371 the default breakpoint kind.
9373 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9375 * linux-arm-low.c (arm_supports_z_point_type): Add software
9378 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9380 * linux-arm-low.c: Refactor breakpoint definitions.
9381 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
9382 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
9384 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9386 * Makefile.in: Add arm.c/o.
9387 * configure.srv: Likewise.
9388 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
9389 (arm_breakpoint_kind_from_pc): New function.
9390 (arm_sw_breakpoint_from_kind): Return proper kind.
9391 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
9393 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9395 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
9397 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
9398 (struct raw_breakpoint) <size>: Remove.
9399 (struct raw_breakpoint) <kind>: Add.
9400 (bp_size): New function.
9401 (bp_opcode): Likewise.
9402 (find_raw_breakpoint_at): Adjust for kind.
9403 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
9404 (remove_memory_breakpoint): Adjust for kind call bp_size.
9405 (set_raw_breakpoint_at): Adjust for kind.
9406 (set_breakpoint): Likewise.
9407 (set_breakpoint_at): Call breakpoint_kind_from_pc.
9408 (delete_raw_breakpoint): Adjust for kind.
9409 (delete_breakpoint): Likewise.
9410 (find_gdb_breakpoint): Likewise.
9411 (set_gdb_breakpoint_1): Likewise.
9412 (set_gdb_breakpoint): Likewise.
9413 (delete_gdb_breakpoint_1): Likewise.
9414 (delete_gdb_breakpoint): Likewise.
9415 (uninsert_raw_breakpoint): Likewise.
9416 (reinsert_raw_breakpoint): Likewise.
9417 (set_breakpoint_data): Remove.
9418 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
9419 (check_mem_read): Adjust for kind call bp_size.
9420 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
9421 (clone_one_breakpoint): Adjust for kind.
9422 * mem-break.h (set_gdb_breakpoint): Likewise.
9423 (delete_gdb_breakpoint): Likewise.
9424 * server.c (process_serial_event): Likewise.
9426 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9428 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
9429 (struct linux_target_ops) <breakpoint>: Remove.
9430 (struct linux_target_ops) <breakpoint_len>: Remove.
9431 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9432 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9433 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
9434 (arm_sw_breakpoint_from_kind): New function.
9435 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
9436 (struct linux_target_ops) <breakpoint>: Remove.
9437 (struct linux_target_ops) <breakpoint_len>: Remove.
9438 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9439 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9440 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
9441 (struct linux_target_ops) <breakpoint>: Remove.
9442 (struct linux_target_ops) <breakpoint_len>: Remove.
9443 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9444 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9445 * linux-crisv32-low.c (cris_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-low.c (linux_wait_1): Call breakpoint_kind_from_pc
9451 and sw_breakpoint_from_kind to increment the pc.
9452 (linux_breakpoint_kind_from_pc): New function.
9453 (linux_sw_breakpoint_from_kind): New function.
9454 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
9455 (initialize_low): Call breakpoint_kind_from_pc and
9456 sw_breakpoint_from_kind to replace breakpoint_data/len.
9457 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
9459 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
9460 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
9461 (struct linux_target_ops) <breakpoint>: Remove.
9462 (struct linux_target_ops) <breakpoint_len>: Remove.
9463 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9464 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9465 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
9466 (struct linux_target_ops) <breakpoint>: Remove.
9467 (struct linux_target_ops) <breakpoint_len>: Remove.
9468 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9469 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9470 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
9471 (struct linux_target_ops) <breakpoint>: Remove.
9472 (struct linux_target_ops) <breakpoint_len>: Remove.
9473 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9474 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9475 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
9476 (struct linux_target_ops) <breakpoint>: Remove.
9477 (struct linux_target_ops) <breakpoint_len>: Remove.
9478 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9479 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9480 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
9481 (struct linux_target_ops) <breakpoint>: Remove.
9482 (struct linux_target_ops) <breakpoint_len>: Remove.
9483 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9484 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9485 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
9486 (struct linux_target_ops) <breakpoint>: Remove.
9487 (struct linux_target_ops) <breakpoint_len>: Remove.
9488 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9489 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9490 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
9491 (struct linux_target_ops) <breakpoint>: Remove.
9492 (struct linux_target_ops) <breakpoint_len>: Remove.
9493 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9494 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9495 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
9496 (struct linux_target_ops) <breakpoint>: Remove.
9497 (struct linux_target_ops) <breakpoint_len>: Remove.
9498 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9499 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9500 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
9501 (struct linux_target_ops) <breakpoint>: Remove.
9502 (struct linux_target_ops) <breakpoint_len>: Remove.
9503 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9504 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9505 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
9506 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
9507 (struct linux_target_ops) <breakpoint>: Remove.
9508 (struct linux_target_ops) <breakpoint_len>: Remove.
9509 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9510 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9511 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
9512 (struct linux_target_ops) <breakpoint>: Remove.
9513 (struct linux_target_ops) <breakpoint_len>: Remove.
9514 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9515 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9517 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9519 * linux-cris-low.c (cris_get_pc): Remove void arg.
9521 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9523 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
9526 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9528 * inferiors.c (thread_pid_matches_callback): New function.
9529 (find_thread_process): New function.
9530 (remove_thread): Reset current_thread.
9531 (remove_process): Assert threads have been removed first.
9533 2015-10-15 Yao Qi <yao.qi@linaro.org>
9535 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
9537 (aarch64_remove_point): Likewise.
9538 * regcache.c (regcache_register_size): New function.
9540 2015-10-12 Yao Qi <yao.qi@linaro.org>
9542 * linux-aarch64-low.c: Update all callers as emit_load_store
9543 is renamed to aarch64_emit_load_store.
9545 2015-10-12 Yao Qi <yao.qi@linaro.org>
9547 * linux-aarch64-low.c: Update all callers of function renaming
9548 from emit_insn to aarch64_emit_insn.
9550 2015-10-12 Yao Qi <yao.qi@linaro.org>
9552 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
9553 arch/aarch64-insn.h.
9554 (struct aarch64_memory_operand): Likewise.
9556 (emit_insn): Move to arch/aarch64-insn.c.
9557 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
9558 (emit_load_store): Move to arch/aarch64-insn.c.
9559 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
9560 (can_encode_int32): Remove.
9562 2015-10-12 Yao Qi <yao.qi@linaro.org>
9564 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
9565 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
9566 (aarch64_relocate_instruction): Likewise.
9567 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
9568 (struct aarch64_insn_visitor): Likewise.
9570 2015-10-12 Yao Qi <yao.qi@linaro.org>
9572 * linux-aarch64-low.c (struct aarch64_insn_data): New.
9573 (struct aarch64_insn_visitor): New.
9574 (struct aarch64_insn_relocation_data): New.
9575 (aarch64_ftrace_insn_reloc_b): New function.
9576 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
9577 (aarch64_ftrace_insn_reloc_cb): Likewise.
9578 (aarch64_ftrace_insn_reloc_tb): Likewise.
9579 (aarch64_ftrace_insn_reloc_adr): Likewise.
9580 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
9581 (aarch64_ftrace_insn_reloc_others): Likewise.
9583 (aarch64_relocate_instruction): Use visitor.
9585 2015-10-12 Yao Qi <yao.qi@linaro.org>
9587 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
9588 int. Add argument buf.
9589 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
9590 aarch64_relocate_instruction.
9592 2015-10-12 Yao Qi <yao.qi@linaro.org>
9594 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
9595 argument insn. Remove local variable insn. Don't call
9597 (aarch64_install_fast_tracepoint_jump_pad): Call
9600 2015-09-30 Yao Qi <yao.qi@linaro.org>
9602 * linux-aarch64-low.c (emit_movk): Shorten a long line.
9603 (emit_load_store_pair): Likewise.
9605 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9607 * dll.c (match_dll): Add cast(s).
9608 (unloaded_dll): Likewise.
9609 * linux-low.c (second_thread_of_pid_p): Likewise.
9610 (delete_lwp_callback): Likewise.
9611 (count_events_callback): Likewise.
9612 (select_event_lwp_callback): Likewise.
9613 (linux_set_resume_request): Likewise.
9614 * server.c (accumulate_file_name_length): Likewise.
9615 (emit_dll_description): Likewise.
9616 (handle_qxfer_threads_worker): Likewise.
9617 (visit_actioned_threads): Likewise.
9618 * thread-db.c (any_thread_of): Likewise.
9619 * tracepoint.c (same_process_p): Likewise.
9620 (match_blocktype): Likewise.
9621 (build_traceframe_info_xml): Likewise.
9623 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9625 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
9627 (gdb_unparse_agent_expr): Likewise.
9628 * hostio.c (require_data): Likewise.
9629 (handle_pread): Likewise.
9630 * linux-low.c (disable_regset): Likewise.
9631 (fetch_register): Likewise.
9632 (store_register): Likewise.
9633 (get_dynamic): Likewise.
9634 (linux_qxfer_libraries_svr4): Likewise.
9635 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
9636 (set_fast_tracepoint_jump): Likewise.
9637 (uninsert_fast_tracepoint_jumps_at): Likewise.
9638 (reinsert_fast_tracepoint_jumps_at): Likewise.
9639 (validate_inserted_breakpoint): Likewise.
9640 (clone_agent_expr): Likewise.
9641 * regcache.c (init_register_cache): Likewise.
9642 * remote-utils.c (putpkt_binary_1): Likewise.
9643 (decode_M_packet): Likewise.
9644 (decode_X_packet): Likewise.
9645 (look_up_one_symbol): Likewise.
9646 (relocate_instruction): Likewise.
9647 (monitor_output): Likewise.
9648 * server.c (handle_search_memory): Likewise.
9649 (handle_qxfer_exec_file): Likewise.
9650 (handle_qxfer_libraries): Likewise.
9651 (handle_qxfer): Likewise.
9652 (handle_query): Likewise.
9653 (handle_v_cont): Likewise.
9654 (handle_v_run): Likewise.
9655 (captured_main): Likewise.
9656 * target.c (write_inferior_memory): Likewise.
9657 * thread-db.c (try_thread_db_load_from_dir): Likewise.
9658 * tracepoint.c (init_trace_buffer): Likewise.
9659 (add_tracepoint_action): Likewise.
9660 (add_traceframe): Likewise.
9661 (add_traceframe_block): Likewise.
9662 (cmd_qtdpsrc): Likewise.
9663 (cmd_qtdv): Likewise.
9664 (cmd_qtstatus): Likewise.
9665 (response_source): Likewise.
9666 (response_tsv): Likewise.
9667 (cmd_qtnotes): Likewise.
9668 (gdb_collect): Likewise.
9669 (initialize_tracepoint): Likewise.
9671 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9673 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
9674 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
9675 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
9677 (enum aarch64_condition_codes): New enum.
9678 (w0): New static global.
9681 (struct aarch64_memory_operand) <type>: New
9682 MEMORY_OPERAND_POSTINDEX type.
9683 (postindex_memory_operand): New helper function.
9684 (emit_ret): New function.
9685 (emit_load_store_pair): New function, factored out of emit_stp
9686 with support for MEMORY_OPERAND_POSTINDEX.
9687 (emit_stp): Rewrite using emit_load_store_pair.
9688 (emit_ldp): New function.
9689 (emit_load_store): Likewise.
9690 (emit_ldr): Mention post-index instruction in comment.
9691 (emit_ldrh): New function.
9692 (emit_ldrb): New function.
9693 (emit_ldrsw): Mention post-index instruction in comment.
9694 (emit_str): Likewise.
9695 (emit_subs): New function.
9696 (emit_cmp): Likewise.
9697 (emit_and): Likewise.
9698 (emit_orr): Likewise.
9699 (emit_orn): Likewise.
9700 (emit_eor): Likewise.
9701 (emit_mvn): Likewise.
9702 (emit_lslv): Likewise.
9703 (emit_lsrv): Likewise.
9704 (emit_asrv): Likewise.
9705 (emit_mul): Likewise.
9706 (emit_sbfm): Likewise.
9707 (emit_sbfx): Likewise.
9708 (emit_ubfm): Likewise.
9709 (emit_ubfx): Likewise.
9710 (emit_csinc): Likewise.
9711 (emit_cset): Likewise.
9712 (emit_nop): Likewise.
9713 (emit_ops_insns): New helper function.
9714 (emit_pop): Likewise.
9715 (emit_push): Likewise.
9716 (aarch64_emit_prologue): New function.
9717 (aarch64_emit_epilogue): Likewise.
9718 (aarch64_emit_add): Likewise.
9719 (aarch64_emit_sub): Likewise.
9720 (aarch64_emit_mul): Likewise.
9721 (aarch64_emit_lsh): Likewise.
9722 (aarch64_emit_rsh_signed): Likewise.
9723 (aarch64_emit_rsh_unsigned): Likewise.
9724 (aarch64_emit_ext): Likewise.
9725 (aarch64_emit_log_not): Likewise.
9726 (aarch64_emit_bit_and): Likewise.
9727 (aarch64_emit_bit_or): Likewise.
9728 (aarch64_emit_bit_xor): Likewise.
9729 (aarch64_emit_bit_not): Likewise.
9730 (aarch64_emit_equal): Likewise.
9731 (aarch64_emit_less_signed): Likewise.
9732 (aarch64_emit_less_unsigned): Likewise.
9733 (aarch64_emit_ref): Likewise.
9734 (aarch64_emit_if_goto): Likewise.
9735 (aarch64_emit_goto): Likewise.
9736 (aarch64_write_goto_address): Likewise.
9737 (aarch64_emit_const): Likewise.
9738 (aarch64_emit_call): Likewise.
9739 (aarch64_emit_reg): Likewise.
9740 (aarch64_emit_pop): Likewise.
9741 (aarch64_emit_stack_flush): Likewise.
9742 (aarch64_emit_zero_ext): Likewise.
9743 (aarch64_emit_swap): Likewise.
9744 (aarch64_emit_stack_adjust): Likewise.
9745 (aarch64_emit_int_call_1): Likewise.
9746 (aarch64_emit_void_call_2): Likewise.
9747 (aarch64_emit_eq_goto): Likewise.
9748 (aarch64_emit_ne_goto): Likewise.
9749 (aarch64_emit_lt_goto): Likewise.
9750 (aarch64_emit_le_goto): Likewise.
9751 (aarch64_emit_gt_goto): Likewise.
9752 (aarch64_emit_ge_got): Likewise.
9753 (aarch64_emit_ops_impl): New static global variable.
9754 (aarch64_emit_ops): New target function, return
9755 &aarch64_emit_ops_impl.
9756 (struct linux_target_ops): Install it.
9758 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9760 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
9761 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
9763 * linux-aarch64-ipa.c: New file.
9764 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
9766 (aarch64_get_thread_area): New target method.
9767 (extract_signed_bitfield): New helper function.
9768 (aarch64_decode_ldr_literal): New function.
9769 (enum aarch64_opcodes): New enum.
9770 (struct aarch64_register): New struct.
9771 (struct aarch64_operand): New struct.
9772 (x0): New static global.
9781 (aarch64_register): New helper function.
9782 (register_operand): Likewise.
9783 (immediate_operand): Likewise.
9784 (struct aarch64_memory_operand): New struct.
9785 (offset_memory_operand): New helper function.
9786 (preindex_memory_operand): Likewise.
9787 (enum aarch64_system_control_registers): New enum.
9788 (ENCODE): New macro.
9789 (emit_insn): New helper function.
9790 (emit_b): New function.
9791 (emit_bcond): Likewise.
9792 (emit_cb): Likewise.
9793 (emit_tb): Likewise.
9794 (emit_blr): Likewise.
9795 (emit_stp): Likewise.
9796 (emit_ldp_q_offset): Likewise.
9797 (emit_stp_q_offset): Likewise.
9798 (emit_load_store): Likewise.
9799 (emit_ldr): Likewise.
9800 (emit_ldrsw): Likewise.
9801 (emit_str): Likewise.
9802 (emit_ldaxr): Likewise.
9803 (emit_stxr): Likewise.
9804 (emit_stlr): Likewise.
9805 (emit_data_processing_reg): Likewise.
9806 (emit_data_processing): Likewise.
9807 (emit_add): Likewise.
9808 (emit_sub): Likewise.
9809 (emit_mov): Likewise.
9810 (emit_movk): Likewise.
9811 (emit_mov_addr): Likewise.
9812 (emit_mrs): Likewise.
9813 (emit_msr): Likewise.
9814 (emit_sevl): Likewise.
9815 (emit_wfe): Likewise.
9816 (append_insns): Likewise.
9817 (can_encode_int32_in): New helper function.
9818 (aarch64_relocate_instruction): New function.
9819 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
9820 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
9821 (struct linux_target_ops): Install aarch64_get_thread_area,
9822 aarch64_install_fast_tracepoint_jump_pad and
9823 aarch64_get_min_fast_tracepoint_insn_len.
9825 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9827 * Makefile.in (aarch64-insn.o): New rule.
9828 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
9830 2015-09-21 Yao Qi <yao.qi@linaro.org>
9832 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
9834 2015-09-21 Yao Qi <yao.qi@linaro.org>
9836 * tracepoint.c (max_jump_pad_size): Remove.
9838 2015-09-18 Yao Qi <yao.qi@linaro.org>
9840 * linux-aarch64-low.c: Don't include sys/uio.h.
9841 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
9843 2015-09-16 Wei-cheng Wang <cole945@gmail.com>
9845 * tracepoint.c (eval_result_type): Change prototype.
9846 (condition_true_at_tracepoint): Fix argument to compiled_cond.
9848 2015-09-15 Pedro Alves <palves@redhat.com>
9850 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
9851 Check whether to report exec events instead of checking whether
9852 multiprocess is enabled.
9854 2015-09-15 Pedro Alves <palves@redhat.com>
9857 * remote-utils.c (prepare_resume_reply): Merge
9858 TARGET_WAITKIND_VFORK_DONE switch case with the
9859 TARGET_WAITKIND_FORKED case.
9861 2015-09-15 Yao Qi <yao.qi@linaro.org>
9863 * server.c (handle_query): Check string comparison using
9864 "else if" instead of "if".
9866 2015-09-15 Yao Qi <yao.qi@linaro.org>
9868 * server.c (vCont_supported): New global variable.
9869 (handle_query): Set vCont_supported to 1 if "vContSupported+"
9870 matches. Append ";vContSupported+" to own_buf.
9871 (handle_v_requests): Append ";s;S" to own_buf if target supports
9872 hardware single step or vCont_supported is false.
9873 (capture_main): Set vCont_supported to zero.
9875 2015-09-15 Yao Qi <yao.qi@linaro.org>
9877 * linux-low.c (linux_supports_conditional_breakpoints): Rename
9879 (linux_supports_hardware_single_step): ... New function.
9880 (linux_target_ops): Update.
9881 * lynx-low.c (lynx_target_ops): Set field
9882 supports_hardware_single_step to target_can_do_hardware_single_step.
9883 * nto-low.c (nto_target_ops): Likewise.
9884 * spu-low.c (spu_target_ops): Likewise.
9885 * win32-low.c (win32_target_ops): Likewise.
9886 * target.c (target_can_do_hardware_single_step): New function.
9887 * target.h (struct target_ops) <supports_conditional_breakpoints>:
9888 Remove. <supports_hardware_single_step>: New field.
9889 (target_supports_conditional_breakpoints): Remove.
9890 (target_supports_hardware_single_step): New macro.
9891 (target_can_do_hardware_single_step): Declare.
9892 * server.c (handle_query): Use target_supports_hardware_single_step
9893 instead of target_supports_conditional_breakpoints.
9895 2015-09-15 Yao Qi <yao.qi@linaro.org>
9897 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
9899 (struct linux_target_ops the_low_target): Install
9900 aarch64_linux_siginfo_fixup.
9902 2015-09-11 Don Breazeal <donb@codesourcery.com>
9903 Luis Machado <lgustavo@codesourcery.com>
9905 * linux-low.c (linux_mourn): Static declaration.
9906 (linux_arch_setup): Move in front of
9907 handle_extended_wait.
9908 (linux_arch_setup_thread): New function.
9909 (handle_extended_wait): Handle exec events. Call
9910 linux_arch_setup_thread. Make event_lwp argument a
9911 pointer-to-a-pointer.
9912 (check_zombie_leaders): Do not check stopped threads.
9913 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
9914 (linux_low_filter_event): Add lwp and thread for exec'ing
9915 non-leader thread if leader thread has been deleted.
9916 Refactor code into linux_arch_setup_thread and call it.
9917 Pass child lwp pointer by reference to handle_extended_wait.
9918 (linux_wait_for_event_filtered): Update comment.
9919 (linux_wait_1): Prevent clobbering exec event status.
9920 (linux_supports_exec_events): New function.
9921 (linux_target_ops) <supports_exec_events>: Initialize new member.
9922 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
9924 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
9925 * server.c (report_exec_events): New global variable.
9926 (handle_query): Handle qSupported query for exec-events feature.
9927 (captured_main): Initialize report_exec_events.
9928 * server.h (report_exec_events): Declare new global variable.
9929 * target.h (struct target_ops) <supports_exec_events>: New
9931 (target_supports_exec_events): New macro.
9932 * win32-low.c (win32_target_ops) <supports_exec_events>:
9933 Initialize new member.
9935 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
9937 * linux-low.c (linux_low_enable_btrace): Remove.
9938 (linux_target_ops): Replace linux_low_enable_btrace with
9939 linux_enable_btrace.
9941 2015-09-03 Yao Qi <yao.qi@linaro.org>
9943 * linux-aarch64-low.c (aarch64_insert_point): Call
9944 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
9947 2015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9949 * linux-low.c (check_stopped_by_breakpoint): Use
9950 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
9952 2015-08-27 Pedro Alves <palves@redhat.com>
9954 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
9956 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
9958 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
9959 the XNEW-family equivalent.
9960 (compile_bytecodes): Likewise.
9961 * dll.c (loaded_dll): Likewise.
9962 * event-loop.c (append_callback_event): Likewise.
9963 (create_file_handler): Likewise.
9964 (create_file_event): Likewise.
9965 * hostio.c (handle_open): Likewise.
9966 * inferiors.c (add_thread): Likewise.
9967 (add_process): Likewise.
9968 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
9969 * linux-arm-low.c (arm_new_process): Likewise.
9970 (arm_new_thread): Likewise.
9971 * linux-low.c (add_to_pid_list): Likewise.
9972 (linux_add_process): Likewise.
9973 (handle_extended_wait): Likewise.
9974 (add_lwp): Likewise.
9975 (enqueue_one_deferred_signal): Likewise.
9976 (enqueue_pending_signal): Likewise.
9977 (linux_resume_one_lwp_throw): Likewise.
9978 (linux_resume_one_thread): Likewise.
9979 (linux_read_memory): Likewise.
9980 (linux_write_memory): Likewise.
9981 * linux-mips-low.c (mips_linux_new_process): Likewise.
9982 (mips_linux_new_thread): Likewise.
9983 (mips_add_watchpoint): Likewise.
9984 * linux-x86-low.c (initialize_low_arch): Likewise.
9985 * lynx-low.c (lynx_add_process): Likewise.
9986 * mem-break.c (set_raw_breakpoint_at): Likewise.
9987 (set_breakpoint): Likewise.
9988 (add_condition_to_breakpoint): Likewise.
9989 (add_commands_to_breakpoint): Likewise.
9990 (clone_agent_expr): Likewise.
9991 (clone_one_breakpoint): Likewise.
9992 * regcache.c (new_register_cache): Likewise.
9993 * remote-utils.c (look_up_one_symbol): Likewise.
9994 * server.c (queue_stop_reply): Likewise.
9995 (start_inferior): Likewise.
9996 (queue_stop_reply_callback): Likewise.
9997 (handle_target_event): Likewise.
9998 * spu-low.c (fetch_ppc_memory): Likewise.
9999 (store_ppc_memory): Likewise.
10000 * target.c (set_target_ops): Likewise.
10001 * thread-db.c (thread_db_load_search): Likewise.
10002 (try_thread_db_load_1): Likewise.
10003 * tracepoint.c (add_tracepoint): Likewise.
10004 (add_tracepoint_action): Likewise.
10005 (create_trace_state_variable): Likewise.
10006 (cmd_qtdpsrc): Likewise.
10007 (cmd_qtro): Likewise.
10008 (add_while_stepping_state): Likewise.
10009 * win32-low.c (child_add_thread): Likewise.
10010 (get_image_name): Likewise.
10012 2015-08-25 Yao Qi <yao.qi@linaro.org>
10014 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
10016 2015-08-25 Yao Qi <yao.qi@linaro.org>
10018 * Makefile.in (aarch64-linux.o): New rule.
10019 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
10021 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
10022 (aarch64_init_debug_reg_state): Make it extern.
10023 (aarch64_linux_prepare_to_resume): Remove.
10025 2015-08-25 Yao Qi <yao.qi@linaro.org>
10027 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
10028 lwp_arch_private_info and ptid_of_lwp.
10030 2015-08-25 Yao Qi <yao.qi@linaro.org>
10032 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
10033 Find proc_info by find_process_pid. All callers updated.
10035 2015-08-25 Yao Qi <yao.qi@linaro.org>
10037 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
10039 (debug_reg_change_callback): Remove.
10040 (aarch64_notify_debug_reg_change): Remove.
10042 2015-08-25 Yao Qi <yao.qi@linaro.org>
10044 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
10045 Call current_lwp_ptid.
10047 2015-08-25 Yao Qi <yao.qi@linaro.org>
10049 * linux-aarch64-low.c (debug_reg_change_callback): Use
10052 2015-08-25 Yao Qi <yao.qi@linaro.org>
10054 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
10056 2015-08-25 Yao Qi <yao.qi@linaro.org>
10058 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
10060 2015-08-25 Yao Qi <yao.qi@linaro.org>
10062 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
10065 2015-08-25 Yao Qi <yao.qi@linaro.org>
10067 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
10069 (debug_reg_change_callback): Remove argument entry and add argument
10070 lwp. Remove local variable thread. Don't print thread id in the
10071 debugging output. Don't check whether pid of thread equals to pid.
10072 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
10073 iterate_over_lwps instead find_inferior.
10075 2015-08-24 Pedro Alves <palves@redhat.com>
10077 * inferiors.c (get_first_process): New function.
10078 * inferiors.h (get_first_process): New declaration.
10079 * remote-utils.c (read_ptid): Default to the first process in the
10080 list, instead of to the current thread's process.
10082 2015-08-24 Pedro Alves <palves@redhat.com>
10084 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
10085 * event-loop.c: Likewise.
10086 * remote-utils.c: Likewise.
10087 * tracepoint.c: Likewise.
10089 2015-08-24 Pedro Alves <palves@redhat.com>
10091 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
10094 2015-08-21 Pedro Alves <palves@redhat.com>
10096 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
10097 instead of literal 1.
10099 2015-08-21 Pedro Alves <palves@redhat.com>
10101 * tdesc.c (default_description): Explicitly zero-initialize.
10103 2015-08-21 Pedro Alves <palves@redhat.com>
10106 * inferiors.c (remove_thread): Discard any pending stop reply for
10108 * server.c (remove_all_on_match_pid): Rename to ...
10109 (remove_all_on_match_ptid): ... this. Work with a filter ptid
10111 (discard_queued_stop_replies): Change parameter to a ptid. Now
10113 (handle_v_kill, kill_inferior_callback, captured_main)
10114 (process_serial_event): Adjust.
10115 * server.h (discard_queued_stop_replies): Declare.
10117 2015-08-21 Pedro Alves <palves@redhat.com>
10119 * linux-low.c (wait_for_sigstop): Always switch to no thread
10120 selected if the previously current thread dies.
10121 * lynx-low.c (lynx_request_interrupt): Use the first thread's
10122 process instead of the current thread's.
10123 * remote-utils.c (input_interrupt): Don't check if there's no
10125 * server.c (gdb_read_memory, gdb_write_memory): If setting the
10126 current thread to the general thread fails, error out.
10127 (handle_qxfer_auxv, handle_qxfer_libraries)
10128 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
10129 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
10130 (handle_query): Check if there's a thread selected instead of
10131 checking whether there's any thread in the thread list.
10132 (handle_qxfer_threads, handle_qxfer_btrace)
10133 (handle_qxfer_btrace_conf): Don't error out early if there's no
10134 thread in the thread list.
10135 (handle_v_cont, myresume): Don't set the current thread to the
10137 (process_serial_event) <Hg handling>: Also set thread_id if the
10138 previous general thread is still alive.
10139 (process_serial_event) <g/G handling>: If setting the current
10140 thread to the general thread fails, error out.
10141 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
10142 thread's lwp instead of the current thread's.
10143 * target.c (set_desired_thread): If the desired thread was not
10144 found, leave the current thread pointing to NULL. Return an int
10145 (boolean) indicating success.
10146 * target.h (set_desired_thread): Change return type to int.
10148 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
10150 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
10151 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
10153 (ps_get_thread_area): New function.
10155 2015-08-19 Gary Benson <gbenson@redhat.com>
10157 * hostio.c (handle_pread): Do not attempt to read more data
10158 than hostio_reply_with_data can fit in a packet.
10160 2015-08-18 Joel Brobecker <brobecker@adacore.com>
10162 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
10164 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
10166 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
10168 2015-08-06 Pedro Alves <palves@redhat.com>
10170 * tracepoint.c (expr_eval_result): Now an int.
10172 2015-08-06 Pedro Alves <palves@redhat.com>
10174 * gdbthread.h (struct regcache): Forward declare.
10175 (struct thread_info) <regcache_data>: Now a struct regcache
10177 * inferiors.c (inferior_regcache_data)
10178 (set_inferior_regcache_data): Now work with struct regcache
10180 * inferiors.h (struct regcache): Forward declare.
10181 (inferior_regcache_data, set_inferior_regcache_data): Now work
10182 with struct regcache pointers.
10183 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
10184 (free_register_cache_thread): Remove struct regcache pointer
10187 2015-08-06 Pedro Alves <palves@redhat.com>
10189 * server.c (captured_main): On error, print the exception message
10190 to stderr, and if run_once is set, throw a quit.
10192 2015-08-06 Pedro Alves <palves@redhat.com>
10194 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
10195 the current thread.
10197 2015-08-06 Pedro Alves <palves@redhat.com>
10199 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
10200 reading beyond the passed in buffer length.
10202 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
10204 * tracepoint.c (symbol_list) <required>: Remove.
10206 2015-08-06 Pedro Alves <palves@redhat.com>
10208 * linux-low.c (handle_extended_wait): Set the fork child's suspend
10209 count if stopping and suspending threads.
10210 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
10211 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
10212 (linux_detach): Complete an ongoing step-over.
10213 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
10215 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
10216 (linux_wait_1): If passing a signal to the inferior after
10217 finishing a step-over, unsuspend and re-resume all lwps. If we
10218 see a single-step event but the thread should be continuing, don't
10219 pass the trap to gdb.
10220 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
10221 internal_error instead of gdb_assert.
10222 (enqueue_pending_signal): New function.
10223 (check_ptrace_stopped_lwp_gone): Add debug output.
10224 (start_step_over): Use internal_error instead of gdb_assert.
10225 (complete_ongoing_step_over): New function.
10226 (linux_resume_one_thread): Don't resume a suspended thread.
10227 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
10230 2015-08-06 Pedro Alves <palves@redhat.com>
10232 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
10233 (linux_thread_alive): Use lwp_is_marked_dead.
10234 (extended_event_reported): Delete.
10235 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
10236 instead of extended_event_reported.
10237 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
10239 (lwp_is_marked_dead): New function.
10240 (lwp_running): Use lwp_is_marked_dead.
10241 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
10244 2015-08-06 Pedro Alves <palves@redhat.com>
10246 * linux-low.c (linux_wait_1): Move fork event output out of the
10247 !report_to_gdb check. Pass event_child->waitstatus to
10248 target_waitstatus_to_string instead of ourstatus.
10250 2015-08-04 Yao Qi <yao.qi@linaro.org>
10252 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
10253 if current_thread is 32 bit.
10255 2015-08-04 Yao Qi <yao.qi@linaro.org>
10257 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
10258 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
10259 * server.c (extended_protocol): Remove "static".
10260 * server.h (extended_protocol): Declare it.
10262 2015-08-04 Yao Qi <yao.qi@linaro.org>
10264 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
10265 both aarch64 and aarch32.
10266 (aarch64_set_pc): Likewise.
10268 2015-08-04 Yao Qi <yao.qi@linaro.org>
10270 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
10271 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
10272 arm-with-neon.xml to srv_xmlfiles.
10273 * linux-aarch64-low.c: Include linux-aarch32-low.h.
10274 (is_64bit_tdesc): New function.
10275 (aarch64_linux_read_description): New function.
10276 (aarch64_arch_setup): Call aarch64_linux_read_description.
10277 (regs_info): Rename to regs_info_aarch64.
10278 (aarch64_regs_info): Return right regs_info.
10279 (initialize_low_arch): Call initialize_low_arch_aarch32.
10281 2015-08-04 Yao Qi <yao.qi@linaro.org>
10283 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
10284 * linux-aarch32-low.c: New file.
10285 * linux-aarch32-low.h: New file.
10286 * linux-arm-low.c (arm_fill_gregset): Move it to
10287 linux-aarch32-low.c.
10288 (arm_store_gregset): Likewise.
10289 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
10290 (arm_store_vfpregset): Call arm_store_vfpregset_num.
10291 (arm_arch_setup): Check if PTRACE_GETREGSET works.
10292 (regs_info): Rename to regs_info_arm.
10293 (arm_regs_info): Return regs_info_aarch32 if
10294 have_ptrace_getregset is 1 and target description is
10295 arm_with_neon or arm_with_vfpv3.
10296 (initialize_low_arch): Don't call init_registers_arm_with_neon.
10297 Call initialize_low_arch_aarch32 instead.
10299 2015-08-04 Yao Qi <yao.qi@linaro.org>
10301 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
10302 * linux-low.c: ... here.
10303 * linux-low.h (have_ptrace_getregset): Declare it.
10305 2015-08-04 Pedro Alves <palves@redhat.com>
10307 * thread-db.c (struct thread_db): Use new typedefs.
10308 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
10310 (disable_thread_event_reporting): Cast result of dlsym to
10311 destination function pointer type.
10312 (thread_db_mourn): Use td_ta_delete_ftype.
10314 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
10316 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
10318 (CDX_BREAKPOINT): Define for R2.
10319 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
10320 (the_low_target): Add comments.
10322 2015-07-30 Yao Qi <yao.qi@linaro.org>
10324 * linux-arm-low.c (arm_hwcap): Remove it.
10325 (arm_read_description): New local variable arm_hwcap. Don't
10326 set arm_hwcap to zero.
10328 2015-07-30 Yao Qi <yao.qi@linaro.org>
10330 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
10331 Use regcache->tdesc instead.
10332 (arm_store_wmmxregset): Likewise.
10333 (arm_fill_vfpregset): Likewise.
10334 (arm_store_vfpregset): Likewise.
10336 2015-07-30 Yao Qi <yao.qi@linaro.org>
10338 * linux-arm-low.c: Include arch/arm.h.
10339 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
10340 (arm_store_gregset): Likewise.
10342 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
10344 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
10345 ptrace's 4th parameter.
10347 2015-07-27 Yao Qi <yao.qi@linaro.org>
10349 * configure.srv (case aarch64*-*-linux*): Don't set
10352 2015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
10354 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
10356 * linux-arm-low.c: Likewise.
10357 * linux-cris-low.c: Likewise.
10358 * linux-crisv32-low.c: Likewise.
10359 * linux-low.c: Likewise.
10360 * linux-m68k-low.c: Likewise.
10361 * linux-mips-low.c: Likewise.
10362 * linux-nios2-low.c: Likewise.
10363 * linux-s390-low.c: Likewise.
10364 * linux-sparc-low.c: Likewise.
10365 * linux-tic6x-low.c: Likewise.
10366 * linux-tile-low.c: Likewise.
10367 * linux-x86-low.c: Likewise.
10369 2015-07-24 Pedro Alves <palves@redhat.com>
10371 * config.in: Regenerate.
10372 * configure: Regenerate.
10374 2015-07-24 Pedro Alves <palves@redhat.com>
10376 * acinclude.m4: Include ../ptrace.m4.
10377 * configure.ac: Call GDB_AC_PTRACE.
10378 * config.in, configure: Regenerate.
10380 2015-07-24 Yao Qi <yao.qi@linaro.org>
10382 * linux-low.c (linux_create_inferior): Remove setting to
10383 proc->priv->new_inferior.
10384 (linux_attach): Likewise.
10385 (linux_low_filter_event): Likewise.
10386 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
10388 2015-07-24 Yao Qi <yao.qi@linaro.org>
10390 * linux-low.c (linux_arch_setup): New function.
10391 (linux_low_filter_event): If proc->tdesc is NULL and
10392 proc->attached is true, call the_low_target.arch_setup.
10393 Otherwise, keep status pending, and return.
10394 (linux_resume_one_lwp_throw): Don't call get_pc if
10395 thread->while_stepping isn't NULL. Don't call
10396 get_thread_regcache if proc->tdesc is NULL.
10397 (need_step_over_p): Return 0 if proc->tdesc is NULL.
10398 (linux_target_ops): Install arch_setup.
10399 * server.c (start_inferior): Call the_target->arch_setup.
10400 * target.h (struct target_ops) <arch_setup>: New field.
10401 (target_arch_setup): New marco.
10402 * lynx-low.c (lynx_target_ops): Update.
10403 * nto-low.c (nto_target_ops): Update.
10404 * spu-low.c (spu_target_ops): Update.
10405 * win32-low.c (win32_target_ops): Update.
10407 2015-07-24 Yao Qi <yao.qi@linaro.org>
10409 * linux-low.c (linux_add_process): Don't set
10410 proc->priv->new_inferior.
10411 (linux_create_inferior): Set proc->priv->new_inferior to 1.
10412 (linux_attach): Likewise.
10414 2015-07-24 Yao Qi <yao.qi@linaro.org>
10416 * server.c (start_inferior): Code refactor.
10418 2015-07-24 Yao Qi <yao.qi@linaro.org>
10420 * server.c (process_serial_event): Set general_thread.
10422 2015-07-21 Yao Qi <yao.qi@linaro.org>
10424 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
10425 aarch64_linux_get_debug_reg_capacity.
10427 2015-07-17 Yao Qi <yao.qi@linaro.org>
10429 * Makefile.in (aarch64-linux-hw-point.o): New rule.
10430 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
10431 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
10432 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
10433 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
10434 (AARCH64_HWP_ALIGNMENT): Likewise.
10435 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
10436 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
10437 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
10438 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
10439 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
10440 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
10441 (struct aarch64_debug_reg_state): Likewise.
10442 (struct arch_lwp_info): Likewise.
10443 (aarch64_align_watchpoint): Likewise.
10444 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
10445 (aarch64_watchpoint_length): Likewise.
10446 (aarch64_point_encode_ctrl_reg): Likewise
10447 (aarch64_point_is_aligned): Likewise.
10448 (aarch64_align_watchpoint): Likewise.
10449 (aarch64_linux_set_debug_regs):
10450 (aarch64_dr_state_insert_one_point): Likewise.
10451 (aarch64_dr_state_remove_one_point): Likewise.
10452 (aarch64_handle_breakpoint): Likewise.
10453 (aarch64_handle_aligned_watchpoint): Likewise.
10454 (aarch64_handle_unaligned_watchpoint): Likewise.
10455 (aarch64_handle_watchpoint): Likewise.
10457 2015-07-17 Yao Qi <yao.qi@linaro.org>
10459 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
10460 and don't aarch64_get_debug_reg_state. All callers update.
10461 (aarch64_handle_aligned_watchpoint): Likewise.
10462 (aarch64_handle_unaligned_watchpoint): Likewise.
10463 (aarch64_handle_watchpoint): Likewise.
10464 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
10465 (aarch64_remove_point): Likewise.
10467 2015-07-17 Yao Qi <yao.qi@linaro.org>
10469 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
10471 (aarch64_handle_unaligned_watchpoint): Likewise.
10473 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10475 Revert the previous 3 commits:
10476 Move gdb_regex* to common/
10477 Move linux_find_memory_regions_full & co.
10478 gdbserver build-id attribute generator
10480 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10481 Jan Kratochvil <jan.kratochvil@redhat.com>
10483 gdbserver build-id attribute generator.
10484 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
10485 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
10486 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
10488 (get_dynamic): Use find_pdhr to traverse program headers.
10489 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
10490 (compare_mapping_entry_range, struct find_memory_region_callback_data)
10491 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
10492 (get_hex_build_id): New.
10493 (linux_qxfer_libraries_svr4): Add optional build-id attribute
10494 to reply XML document.
10496 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10497 Jan Kratochvil <jan.kratochvil@redhat.com>
10499 * target.c: Include target/target-utils.h and fcntl.h.
10500 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
10501 (target_fileio_read_stralloc): New functions.
10503 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10505 * Makefile.in (OBS): Add gdb_regex.o.
10506 (gdb_regex.o): New.
10507 * config.in: Rebuilt.
10508 * configure: Rebuilt.
10510 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10511 Jan Kratochvil <jan.kratochvil@redhat.com>
10513 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
10514 * Makefile.in (OBS): Add target-utils.o.
10515 (linux-maps.o, target-utils.o): New.
10516 * configure.srv (srv_linux_obj): Add linux-maps.o.
10518 2015-07-15 Pierre Langlois <pierre.langlois@arm.com>
10520 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
10521 function, return 1.
10522 (the_low_target): Install it.
10524 2015-07-14 Pedro Alves <palves@redhat.com>
10526 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
10527 Instead, ignore ECHILD, and throw an error for other errnos.
10529 2015-07-10 Pedro Alves <palves@redhat.com>
10531 * event-loop.c (struct callback_event) <data>: Change type to
10532 gdb_client_data instance instead of gdb_client_data pointer.
10533 (append_callback_event): Adjust.
10535 2015-07-10 Pierre Langlois <pierre.langlois@arm.com>
10537 * linux-aarch64-low.c: Add comments for each linux_target_ops
10538 method. Remove comments already covered in target_ops and
10539 linux_target_ops definitions.
10540 (the_low_target): Add comments for each unimplemented method.
10542 2015-07-09 Yao Qi <yao.qi@linaro.org>
10544 * linux-aarch64-low.c (aarch64_regmap): Remove.
10545 (aarch64_usrregs_info): Remove.
10546 (regs_info): Set field usrregs to NULL.
10548 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
10550 * linux-low.c: Include "rsp-low.h"
10551 (linux_low_encode_pt_config, linux_low_encode_raw): New.
10552 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
10553 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
10554 (handle_btrace_enable_pt): New.
10555 (handle_btrace_general_set): Support "pt".
10556 (handle_btrace_conf_general_set): Support "pt:size".
10558 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10560 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
10563 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10565 * linux-aarch64-low.c: Remove comment about endianness.
10566 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
10567 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
10570 2015-06-24 Gary Benson <gbenson@redhat.com>
10572 * linux-i386-ipa.c (stdint.h): Do not include.
10573 * lynx-i386-low.c (stdint.h): Likewise.
10574 * lynx-ppc-low.c (stdint.h): Likewise.
10575 * mem-break.c (stdint.h): Likewise.
10576 * thread-db.c (stdint.h): Likewise.
10577 * tracepoint.c (stdint.h): Likewise.
10578 * win32-low.c (stdint.h): Likewise.
10580 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
10582 * server.c (write_qxfer_response): Update call to
10583 remote_escape_output.
10585 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
10586 Jan Kratochvil <jan.kratochvil@redhat.com>
10588 Merge multiple hex conversions.
10589 * gdbreplay.c (tohex): Rename to 'fromhex'.
10590 (logchar): Use fromhex.
10592 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10594 * server.c (handle_qxfer_libraries): Set `version' attribute for
10597 2015-06-10 Gary Benson <gbenson@redhat.com>
10599 * target.h (struct target_ops) <multifs_open>: New field.
10600 <multifs_unlink>: Likewise.
10601 <multifs_readlink>: Likewise.
10602 * linux-low.c (nat/linux-namespaces.h): New include.
10603 (linux_target_ops): Initialize the_target->multifs_open,
10604 the_target->multifs_unlink and the_target->multifs_readlink.
10605 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
10606 * hostio.c (hostio_fs_pid): New static variable.
10607 (hostio_handle_new_gdb_connection): New function.
10608 (handle_setfs): Likewise.
10609 (handle_open): Use the_target->multifs_open as appropriate.
10610 (handle_unlink): Use the_target->multifs_unlink as appropriate.
10611 (handle_readlink): Use the_target->multifs_readlink as
10613 (handle_vFile): Handle vFile:setfs packets.
10614 * server.c (handle_query): Call hostio_handle_new_gdb_connection
10615 after target_handle_new_gdb_connection.
10617 2015-06-10 Gary Benson <gbenson@redhat.com>
10619 * configure.ac (AC_CHECK_FUNCS): Add setns.
10620 * config.in: Regenerate.
10621 * configure: Likewise.
10622 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
10623 (linux-namespaces.o): New rule.
10624 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
10626 2015-06-09 Gary Benson <gbenson@redhat.com>
10628 * hostio.c (handle_open): Process mode argument with
10629 fileio_to_host_mode.
10631 2015-06-01 Yao Qi <yao.qi@linaro.org>
10633 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
10634 * linux-x86-low.c: Likewise.
10636 2015-05-28 Don Breazeal <donb@codesourcery.com>
10638 * linux-low.c (handle_extended_wait): Initialize
10639 thread_info.last_resume_kind for new fork children.
10641 2015-05-15 Pedro Alves <palves@redhat.com>
10643 * target.h (target_handle_new_gdb_connection): Rewrite using if
10644 wrapped in do/while.
10646 2015-05-14 Joel Brobecker <brobecker@adacore.com>
10648 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
10649 * configure, config.in: Regenerate.
10650 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
10653 2015-05-12 Don Breazeal <donb@codesourcery.com>
10655 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
10656 PTRACE_EVENT_VFORK_DONE.
10657 (linux_low_ptrace_options, extended_event_reported): Add vfork
10659 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
10660 and "vforkdone" for RSP 'T' Stop Reply Packet.
10661 * server.h (report_vfork_events): Declare
10664 2015-05-12 Don Breazeal <donb@codesourcery.com>
10666 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
10667 (the_low_target) <new_fork>: Initialize new member.
10668 * linux-arm-low.c (arm_new_fork): New function.
10669 (the_low_target) <new_fork>: Initialize new member.
10670 * linux-low.c (handle_extended_wait): Call new target function
10672 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
10673 * linux-mips-low.c (mips_add_watchpoint): New function
10674 extracted from mips_insert_point.
10675 (the_low_target) <new_fork>: Initialize new member.
10676 (mips_linux_new_fork): New function.
10677 (mips_insert_point): Call mips_add_watchpoint.
10678 * linux-x86-low.c (x86_linux_new_fork): New function.
10679 (the_low_target) <new_fork>: Initialize new member.
10681 2015-05-12 Don Breazeal <donb@codesourcery.com>
10683 * linux-low.c (handle_extended_wait): Implement return value,
10684 rename argument 'event_child' to 'event_lwp', handle
10685 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
10686 (linux_low_ptrace_options): New function.
10687 (linux_low_filter_event): Call linux_low_ptrace_options,
10688 use different argument fo linux_enable_event_reporting,
10689 use return value from handle_extended_wait.
10690 (extended_event_reported): New function.
10691 (linux_wait_1): Call extended_event_reported and set
10692 status to report fork events.
10693 (linux_write_memory): Add pid to debug message.
10694 (reset_lwp_ptrace_options_callback): New function.
10695 (linux_handle_new_gdb_connection): New function.
10696 (linux_target_ops): Initialize new structure member.
10697 * linux-low.h (struct lwp_info) <waitstatus>: New member.
10698 * lynx-low.c: Initialize new structure member.
10699 * remote-utils.c (prepare_resume_reply): Implement stop reason
10700 "fork" for "T" stop message.
10701 * server.c (handle_query): Call handle_new_gdb_connection.
10702 * server.h (report_fork_events): Declare global flag.
10703 * target.h (struct target_ops) <handle_new_gdb_connection>:
10705 (target_handle_new_gdb_connection): New macro.
10706 * win32-low.c: Initialize new structure member.
10708 2015-05-12 Don Breazeal <donb@codesourcery.com>
10710 * mem-break.c (APPEND_TO_LIST): Define macro.
10711 (clone_agent_expr): New function.
10712 (clone_one_breakpoint): New function.
10713 (clone_all_breakpoints): New function.
10714 * mem-break.h: Declare new functions.
10716 2015-05-12 Don Breazeal <donb@codesourcery.com>
10718 * linux-low.c (linux_supports_fork_events): New function.
10719 (linux_supports_vfork_events): New function.
10720 (linux_target_ops): Initialize new structure members.
10721 (initialize_low): Call linux_check_ptrace_features.
10722 * lynx-low.c (lynx_target_ops): Initialize new structure
10724 * server.c (report_fork_events, report_vfork_events):
10726 (handle_query): Add new features to qSupported packet and
10728 (captured_main): Initialize new global variables.
10729 * target.h (struct target_ops) <supports_fork_events>:
10731 <supports_vfork_events>: New member.
10732 (target_supports_fork_events): New macro.
10733 (target_supports_vfork_events): New macro.
10734 * win32-low.c (win32_target_ops): Initialize new structure
10737 2015-05-12 Gary Benson <gbenson@redhat.com>
10739 * server.c (handle_qxfer_exec_file): Use current process
10742 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
10744 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
10745 Remove HAVE_PTRACE_GETREGS conditionals.
10746 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
10747 instead of PTRACE_GETREGS and PTRACE_SETREGS.
10749 2015-05-08 Yao Qi <yao.qi@linaro.org>
10751 * linux-low.c (linux_supports_conditional_breakpoints): New
10753 (linux_target_ops): Install new target method.
10754 * lynx-low.c (lynx_target_ops): Install NULL hook for
10755 supports_conditional_breakpoints.
10756 * nto-low.c (nto_target_ops): Likewise.
10757 * spu-low.c (spu_target_ops): Likewise.
10758 * win32-low.c (win32_target_ops): Likewise.
10759 * server.c (handle_query): Check
10760 target_supports_conditional_breakpoints.
10761 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10763 (target_supports_conditional_breakpoints): New macro.
10765 2015-05-06 Pedro Alves <palves@redhat.com>
10768 * server.c (start_inferior): If the process exits, mourn it.
10770 2015-04-21 Gary Benson <gbenson@redhat.com>
10772 * hostio.c (fileio_open_flags_to_host): Factored out to
10773 fileio_to_host_openflags in common/fileio.c. Single use
10776 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
10778 * linux-xtensa-low.c (xtensa_fill_gregset)
10779 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
10782 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
10784 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
10785 (regs_info): Replace usrregs pointer with NULL.
10787 2015-04-17 Gary Benson <gbenson@redhat.com>
10789 * target.h (struct target_ops) <pid_to_exec_file>: New field.
10790 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
10791 * server.c (handle_qxfer_exec_file): New function.
10792 (qxfer_packets): Add exec-file entry.
10793 (handle_query): Report qXfer:exec-file:read as supported packet.
10795 2015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
10797 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
10799 2015-04-09 Gary Benson <gbenson@redhat.com>
10801 * hostio-errno.c (errno_to_fileio_error): Remove function.
10802 Update caller to use remote_fileio_to_fio_error.
10804 2015-04-09 Yao Qi <yao.qi@linaro.org>
10806 * linux-low.c (linux_insert_point): Call
10807 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
10808 (linux_remove_point): Call remove_memory_breakpoint if type is
10810 * linux-x86-low.c (x86_insert_point): Don't call
10811 insert_memory_breakpoint.
10812 (x86_remove_point): Don't call remove_memory_breakpoint.
10814 2015-04-01 Pedro Alves <palves@redhat.com>
10815 Cleber Rosa <crosa@redhat.com>
10817 * server.c (gdbserver_usage): Reorganize and extend the usage
10820 2015-03-24 Pedro Alves <palves@redhat.com>
10822 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
10823 output. Also dump TRAP_TRACE.
10824 (linux_low_filter_event): In debug output, distinguish a
10825 resume_stop SIGSTOP from a delayed SIGSTOP.
10827 2015-03-24 Gary Benson <gbenson@redhat.com>
10829 * linux-x86-low.c (x86_linux_new_thread): Moved to
10831 (x86_linux_prepare_to_resume): Likewise.
10833 2015-03-24 Gary Benson <gbenson@redhat.com>
10835 * Makefile.in (x86-linux-dregs.o): New rule.
10836 * configure.srv: Add x86-linux-dregs.o to relevant targets.
10837 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
10838 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
10839 (x86_linux_dr_get): Likewise.
10840 (x86_linux_dr_set): Likewise.
10841 (update_debug_registers_callback): Likewise.
10842 (x86_linux_dr_set_addr): Likewise.
10843 (x86_linux_dr_get_addr): Likewise.
10844 (x86_linux_dr_set_control): Likewise.
10845 (x86_linux_dr_get_control): Likewise.
10846 (x86_linux_dr_get_status): Likewise.
10847 (x86_linux_update_debug_registers): Likewise.
10849 2015-03-24 Gary Benson <gbenson@redhat.com>
10851 * linux-x86-low.c (x86_linux_update_debug_registers):
10852 New function, factored out from...
10853 (x86_linux_prepare_to_resume): ...this.
10855 2015-03-24 Gary Benson <gbenson@redhat.com>
10857 * linux-x86-low.c (x86_linux_dr_get): Update comments.
10858 (x86_linux_dr_set): Likewise.
10859 (update_debug_registers_callback): Likewise.
10860 (x86_linux_dr_set_addr): Likewise.
10861 (x86_linux_dr_get_addr): Likewise.
10862 (x86_linux_dr_set_control): Likewise.
10863 (x86_linux_dr_get_control): Likewise.
10864 (x86_linux_dr_get_status): Likewise.
10865 (x86_linux_prepare_to_resume): Likewise.
10867 2015-03-24 Gary Benson <gbenson@redhat.com>
10869 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
10870 Use perror_with_name. Pass string through gettext.
10871 (x86_linux_dr_set): Likewise.
10873 2015-03-24 Gary Benson <gbenson@redhat.com>
10875 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
10876 (x86_linux_dr_set_addr): ...this.
10877 (x86_dr_low_get_addr): Rename to...
10878 (x86_linux_dr_get_addr): ...this.
10879 (x86_dr_low_set_control): Rename to...
10880 (x86_linux_dr_set_control): ...this.
10881 (x86_dr_low_get_control): Rename to...
10882 (x86_linux_dr_get_control): ...this.
10883 (x86_dr_low_get_status): Rename to...
10884 (x86_linux_dr_get_status): ...this.
10885 (x86_dr_low): Update with new function names.
10887 2015-03-24 Gary Benson <gbenson@redhat.com>
10889 * Makefile.in (x86-linux.o): New rule.
10890 * configure.srv: Add x86-linux.o to relevant targets.
10891 * linux-low.c (lwp_set_arch_private_info): New function.
10892 (lwp_arch_private_info): Likewise.
10893 * linux-x86-low.c: Include nat/x86-linux.h.
10894 (arch_lwp_info): Removed structure.
10895 (update_debug_registers_callback):
10896 Use lwp_set_debug_registers_changed.
10897 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
10898 and lwp_set_debug_registers_changed.
10899 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
10901 2015-03-24 Gary Benson <gbenson@redhat.com>
10903 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
10904 * linux-arm-low.c (arm_new_thread): Likewise.
10905 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
10906 * linux-mips-low.c (mips_linux_new_thread): Likewise.
10907 * linux-x86-low.c (x86_linux_new_thread): Likewise.
10908 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
10910 2015-03-24 Gary Benson <gbenson@redhat.com>
10912 * linux-low.c (ptid_of_lwp): New function.
10913 (lwp_is_stopped): Likewise.
10914 (lwp_stop_reason): Likewise.
10915 * linux-x86-low.c (update_debug_registers_callback):
10916 Use lwp_is_stopped.
10917 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
10920 2015-03-24 Gary Benson <gbenson@redhat.com>
10922 * linux-low.h (linux_stop_lwp): Remove declaration.
10924 2015-03-24 Gary Benson <gbenson@redhat.com>
10926 * linux-low.h: Include nat/linux-nat.h.
10927 * linux-low.c (iterate_over_lwps_args): New structure.
10928 (iterate_over_lwps_filter): New function.
10929 (iterate_over_lwps): Likewise.
10930 * linux-x86-low.c (update_debug_registers_callback):
10931 Update signature to what iterate_over_lwps expects.
10932 Remove PID check that iterate_over_lwps now performs.
10933 (x86_dr_low_set_addr): Use iterate_over_lwps.
10934 (x86_dr_low_set_control): Likewise.
10936 2015-03-24 Gary Benson <gbenson@redhat.com>
10938 * linux-x86-low.c (x86_debug_reg_state): New function.
10939 (x86_linux_prepare_to_resume): Use the above.
10941 2015-03-24 Gary Benson <gbenson@redhat.com>
10943 * linux-low.c (current_lwp_ptid): New function.
10944 * linux-x86-low.c: Include nat/linux-nat.h.
10945 (x86_dr_low_get_addr): Use current_lwp_ptid.
10946 (x86_dr_low_get_control): Likewise.
10947 (x86_dr_low_get_status): Likewise.
10949 2015-03-20 Pedro Alves <palves@redhat.com>
10951 * tracepoint.c (cmd_qtstatus): Make "str" const.
10953 2015-03-20 Pedro Alves <palves@redhat.com>
10955 * server.c (handle_general_set): Make "req_str" const.
10957 2015-03-19 Pedro Alves <palves@redhat.com>
10959 * linux-low.c (linux_resume_one_lwp): Rename to ...
10960 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
10961 instead call perror_with_name.
10962 (check_ptrace_stopped_lwp_gone): New function.
10963 (linux_resume_one_lwp): Reimplement as wrapper around
10964 linux_resume_one_lwp_throw that swallows errors if the LWP is
10967 2015-03-19 Pedro Alves <palves@redhat.com>
10969 * linux-low.c (count_events_callback, select_event_lwp_callback):
10970 No longer check whether the thread has resume_stop as last resume
10973 2015-03-19 Pedro Alves <palves@redhat.com>
10975 * linux-low.c (count_events_callback, select_event_lwp_callback):
10976 Use the lwp's status_pending_p field, not the thread's.
10978 2015-03-19 Pedro Alves <palves@redhat.com>
10980 * linux-low.c (select_event_lwp_callback): Update comments to
10981 no longer mention SIGTRAP.
10983 2015-03-18 Gary Benson <gbenson@redhat.com>
10985 * server.c (handle_query): Do not report vFile:fstat as supported.
10987 2015-03-11 Gary Benson <gbenson@redhat.com>
10989 * hostio.c (sys/types.h): New include.
10990 (sys/stat.h): Likewise.
10991 (common-remote-fileio.h): Likewise.
10992 (handle_fstat): New function.
10993 (handle_vFile): Handle vFile:fstat packets.
10995 2015-03-11 Gary Benson <gbenson@redhat.com>
10997 * configure.ac (AC_CHECK_MEMBERS): Add checks for
10998 struct stat.st_blocks and struct stat.st_blksize.
10999 * configure: Regenerate.
11000 * config.in: Likewise.
11001 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
11002 (OBS): Add common-remote-fileio.o.
11003 (common-remote-fileio.o): New rule.
11005 2015-03-09 Pedro Alves <palves@redhat.com>
11007 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
11008 'struct sockaddr' pointer in 'accept' call.
11010 2015-03-09 Pedro Alves <palves@redhat.com>
11013 2015-03-07 Pedro Alves <palves@redhat.com>
11014 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11015 or <winsock2.h> here. Instead include "gdb_socket.h".
11016 (remote_open): Use union gdb_sockaddr_u.
11017 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11018 or <winsock2.h> here. Instead include "gdb_socket.h".
11019 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11020 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11022 (init_named_socket, gdb_agent_helper_thread): Use union
11025 2015-03-07 Pedro Alves <palves@redhat.com>
11027 * configure.ac (build_warnings): Move
11028 -Wdeclaration-after-statement to the C-specific set.
11029 * configure: Regenerate.
11031 2015-03-07 Pedro Alves <palves@redhat.com>
11033 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11034 or <winsock2.h> here. Instead include "gdb_socket.h".
11035 (remote_open): Use union gdb_sockaddr_u.
11036 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11037 or <winsock2.h> here. Instead include "gdb_socket.h".
11038 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11039 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11041 (init_named_socket, gdb_agent_helper_thread): Use union
11044 2015-03-07 Pedro Alves <palves@redhat.com>
11046 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
11049 2015-03-06 Yao Qi <yao.qi@linaro.org>
11051 * linux-aarch64-low.c (aarch64_insert_point): Use
11052 show_debug_regs as a boolean.
11053 (aarch64_remove_point): Likewise.
11055 2015-03-05 Pedro Alves <palves@redhat.com>
11057 * lynx-low.c (lynx_target_ops): Install NULL hooks for
11058 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
11059 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
11060 * nto-low.c (nto_target_ops): Likewise.
11061 * spu-low.c (spu_target_ops): Likewise.
11062 * win32-low.c (win32_target_ops): Likewise.
11064 2015-03-04 Pedro Alves <palves@redhat.com>
11066 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
11067 Decide whether a breakpoint triggered based on the SIGTRAP's
11069 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
11070 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
11071 (linux_low_filter_event): Check for breakpoints before checking
11073 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
11075 (linux_stopped_by_sw_breakpoint)
11076 (linux_supports_stopped_by_sw_breakpoint)
11077 (linux_stopped_by_hw_breakpoint)
11078 (linux_supports_stopped_by_hw_breakpoint): New functions.
11079 (linux_target_ops): Install new target methods.
11081 2015-03-04 Pedro Alves <palves@redhat.com>
11083 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
11084 * server.c (swbreak_feature, hwbreak_feature): New globals.
11085 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
11086 (captured_main): Clear swbreak_feature and hwbreak_feature.
11087 * server.h (swbreak_feature, hwbreak_feature): Declare.
11088 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
11089 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
11090 supports_stopped_by_hw_breakpoint>: New fields.
11091 (target_supports_stopped_by_sw_breakpoint)
11092 (target_stopped_by_sw_breakpoint)
11093 (target_supports_stopped_by_hw_breakpoint)
11094 (target_stopped_by_hw_breakpoint): Declare.
11096 2015-03-04 Pedro Alves <palves@redhat.com>
11098 enum lwp_stop_reason -> enum target_stop_reason
11099 * linux-low.c (check_stopped_by_breakpoint): Adjust.
11100 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
11101 (linux_wait_1, stuck_in_jump_pad_callback)
11102 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
11103 (linux_stopped_by_watchpoint):
11104 * linux-low.h (enum lwp_stop_reason): Delete.
11105 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
11106 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11108 2015-03-04 Yao Qi <yao.qi@linaro.org>
11110 * Makefile.in (SFILES): Add linux-aarch64-low.c.
11112 2015-03-03 Gary Benson <gbenson@redhat.com>
11114 * hostio.c (handle_vFile): Fix prefix lengths.
11116 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
11118 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
11121 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
11123 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
11124 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
11125 (clean): Add "rm -f" for above C files.
11126 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
11127 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
11128 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
11129 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
11130 * linux-s390-low.c (HWCAP_S390_VX): New macro.
11131 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
11132 (init_registers_s390x_vx_linux64)
11133 (init_registers_s390x_tevx_linux64)
11134 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
11135 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
11137 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
11138 (s390_store_vxrs_high): New functions.
11139 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
11141 (s390_arch_setup): Add logic for selecting one of the new target
11142 descriptions. Activate the new vector regsets if applicable.
11143 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
11144 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
11145 and init_registers_s390x_tevx_linux64.
11147 2015-03-01 Pedro Alves <palves@redhat.com>
11149 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
11152 2015-02-27 Pedro Alves <palves@redhat.com>
11154 * linux-x86-low.c (u_debugreg_offset): New function.
11155 (x86_linux_dr_get, x86_linux_dr_set): Use it.
11157 2015-02-27 Pedro Alves <palves@redhat.com>
11159 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
11160 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
11161 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
11162 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
11163 (ps_lsetfpregs, ps_getpid)
11164 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
11165 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
11166 (ps_lsetxregs, ps_plog): Declare.
11168 2015-02-27 Pedro Alves <palves@redhat.com>
11170 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
11171 IP_AGENT_EXPORT_FUNC.
11172 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
11173 IP_AGENT_EXPORT_FUNC.
11174 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
11175 (IP_AGENT_EXPORT): Delete.
11176 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11177 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11178 (gdb_trampoline_buffer_error, collecting, gdb_collect)
11179 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
11180 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
11181 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
11182 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
11183 (traceframe_read_count, traceframe_write_count)
11184 (traceframes_created, trace_state_variables, get_raw_reg)
11185 (get_trace_state_variable_value, set_trace_state_variable_value)
11186 (ust_loaded, helper_thread_id, cmd_buf): Use
11187 IPA_SYM_EXPORTED_NAME.
11188 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
11189 (tracepoints) Use IP_AGENT_EXPORT_VAR.
11190 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
11191 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11192 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
11193 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
11194 EXTERN_C_PUSH/EXTERN_C_POP.
11195 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
11196 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
11197 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11198 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
11199 (traceframe_write_count, traceframe_read_count)
11200 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
11201 (about_to_request_buffer_space, get_trace_state_variable_value)
11202 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
11203 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
11204 EXTERN_C_PUSH/EXTERN_C_POP.
11205 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
11206 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
11207 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
11208 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11209 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11210 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11211 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
11212 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
11214 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
11215 (IP_AGENT_EXPORT_VAR_DECL): Define.
11216 (tracing): Declare.
11217 (gdb_agent_get_raw_reg): Declare.
11219 2015-02-27 Tom Tromey <tromey@redhat.com>
11220 Pedro Alves <palves@redhat.com>
11222 Rename symbols whose names are reserved C++ keywords throughout.
11224 2015-02-27 Pedro Alves <palves@redhat.com>
11226 * Makefile.in (COMPILER): New, get it from autoconf.
11227 (CXX): Get from autoconf instead.
11228 (COMPILE.pre): Use COMPILER.
11229 (CC-LD): Rename to ...
11230 (CC_LD): ... this. Use COMPILER.
11231 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
11232 (CXX_FOR_TARGET): Default to g++ instead of gcc.
11233 * acinclude.m4: Include build-with-cxx.m4.
11234 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
11235 Disable -Werror by default if building in C++ mode.
11236 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
11237 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
11238 the C++ compiler. Save/restore CXXFLAGS too.
11239 * configure: Regenerate.
11241 2015-02-27 Pedro Alves <palves@redhat.com>
11243 * acinclude.m4: Include libiberty.m4.
11244 * configure.ac: Call libiberty_INIT.
11245 * config.in, configure: Regenerate.
11247 2015-02-26 Pedro Alves <palves@redhat.com>
11249 * linux-low.c (linux_wait_1): When incrementing the PC past a
11250 program breakpoint always use the_low_target.breakpoint_len as
11251 increment, rather than the maximum between that and
11252 the_low_target.decr_pc_after_break.
11254 2015-02-23 Pedro Alves <palves@redhat.com>
11256 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
11257 thread was doing a step-over; always adjust the PC if
11258 we stepped over a permanent breakpoint.
11259 (linux_wait_1): If we stepped over breakpoint that was on top of a
11260 permanent breakpoint, manually advance the PC past it.
11262 2015-02-23 Pedro Alves <palves@redhat.com>
11264 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
11266 (x86_fill_gregset, x86_store_gregset): Use it when handling
11269 2015-02-20 Pedro Alves <palves@redhat.com>
11271 * thread-db.c: Include "nat/linux-procfs.h".
11272 (thread_db_init): Skip listing new threads if the kernel supports
11273 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
11275 2015-02-20 Pedro Alves <palves@redhat.com>
11277 * linux-low.c (status_pending_p_callback): Use ptid_match.
11279 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
11281 PR breakpoints/16812
11282 * linux-low.c (wstatus_maybe_breakpoint): Remove.
11283 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
11284 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
11286 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
11288 PR breakpoints/15956
11289 * tracepoint.c (cmd_qtinit): Add check for current_thread.
11291 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11293 * linux-low.c (linux_low_btrace_conf): Print size.
11294 * server.c (handle_btrace_conf_general_set): New.
11295 (hanle_general_set): Call handle_btrace_conf_general_set.
11296 (handle_query): Report Qbtrace-conf:bts:size as supported.
11298 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11300 * linux-low.c (linux_low_enable_btrace): Update parameters.
11301 (linux_low_btrace_conf): New.
11302 (linux_target_ops)<to_btrace_conf>: Initialize.
11303 * server.c (current_btrace_conf): New.
11304 (handle_btrace_enable): Rename to ...
11305 (handle_btrace_enable_bts): ... this. Pass ¤t_btrace_conf
11306 to target_enable_btrace. Update comment. Update users.
11307 (handle_qxfer_btrace_conf): New.
11308 (qxfer_packets): Add btrace-conf entry.
11309 (handle_query): Report qXfer:btrace-conf:read as supported packet.
11310 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
11311 (target_ops)<read_btrace_conf>: New.
11312 (target_enable_btrace): Update parameters.
11313 (target_read_btrace_conf): New.
11315 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11317 * server.c (handle_btrace_general_set): Remove call to
11318 target_supports_btrace.
11319 (supported_btrace_packets): New.
11320 (handle_query): Call supported_btrace_packets.
11321 * target.h: include btrace-common.h.
11322 (btrace_target_info): Removed.
11323 (supports_btrace, target_supports_btrace): Update parameters.
11325 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11327 * Makefile.in (SFILES): Add common/btrace-common.c.
11328 (OBS): Add common/btrace-common.o.
11329 (btrace-common.o): Add build rules.
11330 * linux-low: Include btrace-common.h.
11331 (linux_low_read_btrace): Use struct btrace_data. Call
11332 btrace_data_init and btrace_data_fini.
11334 2015-02-06 Pedro Alves <palves@redhat.com>
11336 * thread-db.c (find_new_threads_callback): Add debug output.
11338 2015-02-04 Pedro Alves <palves@redhat.com>
11340 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
11341 (resume_stopped_resumed_lwps): New function.
11342 (linux_wait_for_event_filtered): Use it.
11344 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11346 * Makefile.in (SFILES): Add linux-personality.c.
11347 (linux-personality.o): New rule.
11348 * configure.srv (srv_linux_obj): Add linux-personality.o to the
11349 list of objects to be built.
11350 * linux-low.c: Include nat/linux-personality.h.
11351 (linux_create_inferior): Remove code to disable address space
11352 randomization (moved to ../nat/linux-personality.c). Create
11353 cleanup to disable address space randomization.
11355 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11357 * Makefile.in (posix-strerror.o): New rule.
11358 (mingw-strerror.o): Likewise.
11359 * configure: Regenerated.
11360 * configure.ac: Source file ../common/common.host. Initialize new
11361 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
11363 2015-01-14 Yao Qi <yao@codesourcery.com>
11365 * Makefile.in (SFILES): Add nat/ppc-linux.c.
11366 (ppc-linux.o): New rule.
11367 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
11368 * configure.ac: AC_CHECK_FUNCS(getauxval).
11369 * config.in: Re-generated.
11370 * configure: Re-generated.
11371 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
11372 ppc64_64bit_inferior_p
11374 2015-01-14 Yao Qi <yao@codesourcery.com>
11376 * linux-ppc-low.c: Include "nat/ppc-linux.h".
11377 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
11378 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
11379 (PT_ORIG_R3, PT_TRAP): Likewise.
11380 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
11381 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
11382 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
11384 2015-01-10 Joel Brobecker <brobecker@adacore.com>
11386 * i387-fp.c (i387_cache_to_xsave): In look over
11387 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
11388 zmmh_low_space field by use of zmmh_high_space.
11390 2015-01-09 Pedro Alves <palves@redhat.com>
11392 * linux-low.c (step_over_bkpt): Move higher up in the file.
11393 (handle_extended_wait): Don't store the stop_pc here.
11394 (get_stop_pc): Adjust comments and rename to ...
11395 (check_stopped_by_breakpoint): ... this. Record whether the LWP
11396 stopped for a software breakpoint or hardware breakpoint.
11397 (thread_still_has_status_pending_p): New function.
11398 (status_pending_p_callback): Use
11399 thread_still_has_status_pending_p. If the event is no longer
11400 interesting, resume the LWP.
11401 (handle_tracepoints): Add assert.
11402 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
11403 (wstatus_maybe_breakpoint): New function.
11404 (cancel_breakpoint): Delete function.
11405 (check_stopped_by_watchpoint): New function, factored out from
11406 linux_low_filter_event.
11407 (lp_status_maybe_breakpoint): Delete function.
11408 (linux_low_filter_event): Remove filter_ptid argument.
11409 Leave thread group exits pending here. Store the LWP's stop PC.
11410 Always leave events pending.
11411 (linux_wait_for_event_filtered): Pull all events out of the
11412 kernel, and leave them all pending.
11413 (count_events_callback, select_event_lwp_callback): Consider all
11415 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
11416 (select_event_lwp): Only give preference to the stepping LWP in
11417 all-stop mode. Adjust comments.
11418 (ignore_event): New function.
11419 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
11420 references to cancel_breakpoints. Adjust to renames. Also give
11421 equal priority to all LWPs that have had events in non-stop mode.
11422 If reporting a software breakpoint event, unadjust the LWP's PC.
11423 (linux_wait): If linux_wait_1 returned an ignored event, retry.
11424 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
11426 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
11427 (resume_status_pending_p): Use thread_still_has_status_pending_p.
11428 (linux_stopped_by_watchpoint): Adjust.
11429 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
11430 * linux-low.h (enum lwp_stop_reason): New.
11431 (struct lwp_info) <stop_pc>: Adjust comment.
11432 <stopped_by_watchpoint>: Delete field.
11433 <stop_reason>: New field.
11434 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11435 * mem-break.c (software_breakpoint_inserted_here)
11436 (hardware_breakpoint_inserted_here): New function.
11437 * mem-break.h (software_breakpoint_inserted_here)
11438 (hardware_breakpoint_inserted_here): Declare.
11439 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
11440 (cancel_breakpoints): Delete.
11441 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
11442 (upload_fast_traceframes): Remove references to
11443 cancel_breakpoints.
11445 2015-01-09 Pedro Alves <palves@redhat.com>
11447 * thread-db.c (find_new_threads_callback): Ignore thread if the
11448 kernel thread ID is -1.
11450 2015-01-09 Pedro Alves <palves@redhat.com>
11452 * linux-low.c (linux_attach_fail_reason_string): Move to
11453 nat/linux-ptrace.c, and rename.
11454 (linux_attach_lwp): Update comment.
11455 (attach_proc_task_lwp_callback): New function.
11456 (linux_attach): Adjust to rename and use
11457 linux_proc_attach_tgid_threads.
11458 (linux_attach_fail_reason_string): Delete declaration.
11460 2015-01-01 Joel Brobecker <brobecker@adacore.com>
11462 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
11463 * server.c (gdbserver_version): Likewise.
11465 2014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
11467 * remote-utils.c: Include ctype.h.
11468 (input_interrupt): Explicitly handle the case when the char
11469 received is the NUL byte. Improve the printing of non-ASCII
11472 2014-12-16 Joel Brobecker <brobecker@adacore.com>
11474 * linux-low.c (linux_low_filter_event): Update call to
11475 linux_enable_event_reporting following the addition of
11476 a new parameter to that function.
11478 2014-12-16 Catalin Udma <catalin.udma@freescale.com>
11481 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
11482 (AARCH64_FPCR_REGNO): Likewise.
11483 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
11484 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
11485 (aarch64_store_fpregset): Likewise.
11487 2014-12-15 Joel Brobecker <brobecker@adacore.com>
11489 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
11490 Remove FIXME comment about assumption about N.
11492 2014-12-13 Joel Brobecker <brobecker@adacore.com>
11494 * configure.ac: If large-file support is disabled in GDBserver,
11495 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
11496 * configure: Regenerate.
11498 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11500 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
11501 warning upon ENODATA from ptrace.
11502 * linux-s390-low.c (s390_store_tdb): New.
11503 (s390_regsets): Add regset for NT_S390_TDB.
11505 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11507 * linux-low.c (regsets_store_inferior_registers): Skip regsets
11508 without a fill_function.
11509 * linux-s390-low.c (s390_fill_last_break): Remove.
11510 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
11511 (s390_arch_setup): Use regset's size instead of fill_function for
11512 loop end condition.
11514 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11516 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
11517 the regset's store function when ptrace returned an error.
11518 * regcache.c (get_thread_regcache): Invalidate register cache
11519 before fetching inferior's registers.
11521 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11523 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
11524 while-loop as for-loop.
11525 (regsets_store_inferior_registers): Likewise.
11527 2014-11-28 Yao Qi <yao@codesourcery.com>
11529 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
11530 * config.in, configure: Re-generate.
11531 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
11534 2014-11-21 Yao Qi <yao@codesourcery.com>
11536 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
11537 (AC_CHECK_HEADERS): Remove malloc.h.
11538 * configure: Re-generated.
11539 * config.in: Re-generated.
11540 * server.h: Don't include alloca.h and malloc.h.
11541 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
11542 Don't include malloc.h.
11544 2014-11-17 Joel Brobecker <brobecker@adacore.com>
11546 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
11547 corresponding ERRNO check in same block.
11549 2014-11-12 Pedro Alves <palves@redhat.com>
11551 * server.c (cont_thread): Update comment.
11552 (start_inferior, attach_inferior): No longer clear cont_thread.
11553 (handle_v_cont): No longer set cont_thread.
11554 (captured_main): Clear cont_thread each time a GDB connects.
11556 2014-11-12 Pedro Alves <palves@redhat.com>
11558 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
11559 thread, and don't resume all threads if the Hc thread has exited.
11561 2014-11-12 Pedro Alves <palves@redhat.com>
11563 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
11564 the process group instead of to a specific LWP.
11566 2014-10-15 Pedro Alves <palves@redhat.com>
11569 * win32-arm-low.c (arm_set_thread_context): Remove current_event
11571 (arm_set_thread_context): Delete.
11572 (the_low_target): Adjust.
11573 * win32-i386-low.c (debug_registers_changed)
11574 (debug_registers_used): Delete.
11575 (update_debug_registers_callback): New function.
11576 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
11577 needing to update their debug registers.
11578 (win32_get_current_dr): New function.
11579 (x86_dr_low_get_addr, x86_dr_low_get_control)
11580 (x86_dr_low_get_status): Fetch the debug register from the thread
11582 (i386_initial_stuff): Adjust.
11583 (i386_get_thread_context): Remove current_event parameter. Don't
11584 clear debug_registers_changed nor copy DR values to
11586 (i386_set_thread_context): Delete.
11587 (i386_prepare_to_resume): New function.
11588 (i386_thread_added): Mark the thread as needing to update irs
11590 (the_low_target): Remove i386_set_thread_context and install
11591 i386_prepare_to_resume.
11592 * win32-low.c (win32_get_thread_context): Adjust.
11593 (win32_set_thread_context): Use SetThreadContext
11595 (win32_prepare_to_resume): New function.
11596 (win32_require_context): New function, factored out from ...
11597 (thread_rec): ... this.
11598 (continue_one_thread): Call win32_prepare_to_resume on each thread
11599 we're about to continue.
11600 (win32_resume): Call win32_prepare_to_resume on the event thread.
11601 * win32-low.h (struct win32_thread_info)
11602 <debug_registers_changed>: New field.
11603 (struct win32_target_ops): Change prototype of set_thread_context,
11604 delete set_thread_context and add prepare_to_resume.
11605 (win32_require_context): New declaration.
11607 2014-10-08 Gary Benson <gbenson@redhat.com>
11609 * server.h: Do not include common-exceptions.h.
11611 2014-10-08 Gary Benson <gbenson@redhat.com>
11613 * server.h: Do not include cleanups.h.
11615 2014-09-30 James Hogan <james.hogan@imgtec.com>
11617 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
11618 mips64-dsp-linux.c.
11620 2014-09-23 Yao Qi <yao@codesourcery.com>
11622 * linux-low.c (lp_status_maybe_breakpoint): New function.
11623 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
11624 (count_events_callback): Likewise.
11625 (select_event_lwp_callback): Likewise.
11626 (cancel_breakpoints_callback): Likewise.
11628 2014-09-19 Don Breazeal <donb@codesourcery.com>
11630 * linux-low.c (handle_extended_wait): Call
11631 linux_ptrace_get_extended_event.
11632 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
11633 linux_is_extended_waitstatus.
11635 2014-09-16 Joel Brobecker <brobecker@adacore.com>
11637 * Makefile.in (CPPFLAGS): Define.
11638 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
11639 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
11641 2014-09-16 Gary Benson <gbenson@redhat.com>
11643 * inferiors.h (current_inferior): Renamed as...
11644 (current_thread): New variable. All uses updated.
11645 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
11646 (maybe_move_out_of_jump_pad): Likewise.
11647 (cancel_breakpoint): Likewise.
11648 (linux_low_filter_event): Likewise.
11649 (wait_for_sigstop): Likewise.
11650 (linux_resume_one_lwp): Likewise.
11651 (need_step_over_p): Likewise.
11652 (start_step_over): Likewise.
11653 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
11654 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
11655 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
11656 and save_inferior as saved_thread.
11657 * regcache.c (get_thread_regcache): Renamed saved_inferior as
11659 (regcache_invalidate_thread): Likewise.
11660 * remote-utils.c (prepare_resume_reply): Likewise.
11661 * thread-db.c (thread_db_get_tls_address): Likewise.
11662 (disable_thread_event_reporting): Likewise.
11663 (remove_thread_event_breakpoints): Likewise.
11664 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
11666 * target.h (set_desired_inferior): Renamed as...
11667 (set_desired_thread): New declaration. All uses updated.
11668 * server.c (myresume): Updated comment to reference thread instead
11670 (handle_serial_event): Likewise.
11671 (handle_target_event): Likewise.
11673 2014-09-12 Tom Tromey <tromey@redhat.com>
11674 Gary Benson <gbenson@redhat.com>
11676 * regcache.h: Include common-regcache.h.
11677 (regcache_read_pc): Don't declare.
11678 * regcache.c (get_thread_regcache_for_ptid): New function.
11680 2014-09-11 Tom Tromey <tromey@redhat.com>
11681 Gary Benson <gbenson@redhat.com>
11683 * symbol.c: New file.
11684 * Makefile.in (SFILES): Add symbol.c.
11685 (OBS): Add symbol.o.
11687 2014-09-11 Gary Benson <gbenson@redhat.com>
11689 * target.c (target_stop_ptid, target_continue_ptid): New
11692 2014-09-11 Tom Tromey <tromey@redhat.com>
11693 Gary Benson <gbenson@redhat.com>
11695 * target.h: Include target/target.h.
11696 * target.c (target_read_memory, target_read_uint32)
11697 (target_write_memory): New functions.
11699 2014-09-11 Gary Benson <gbenson@redhat.com>
11701 * server.h (debug_hw_points): Don't declare.
11702 * server.c (debug_hw_points): Don't define. Replace all uses
11703 with show_debug_regs.
11704 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
11705 all uses with show_debug_regs.
11707 2014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
11709 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
11710 endianness into account.
11711 (ppc_supply_ptrace_register): Likewise.
11713 2014-09-03 James Hogan <james.hogan@imgtec.com>
11715 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
11716 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
11718 2014-09-03 Gary Benson <gbenson@redhat.com>
11720 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
11721 ALL_DEBUG_ADDRESS_REGISTERS.
11723 2014-09-02 Gary Benson <gbenson@redhat.com>
11725 * i386-low.h: Renamed as...
11726 * x86-low.h: New file. All type, function and variable name
11727 prefixes changed from "i386_" to "x86_". All references updated.
11728 * i386-low.c: Renamed as...
11729 * x86-low.c: New file. All type, function and variable name
11730 prefixes changed from "i386_" to "x86_". All references updated.
11732 2014-09-02 Gary Benson <gbenson@redhat.com>
11734 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
11735 (x86_linux_new_thread): Likewise.
11737 2014-08-29 Gary Benson <gbenson@redhat.com>
11739 * server.h (setjmp.h): Do not include.
11740 (toplevel): Do not declare.
11741 (common-exceptions.h): Include.
11742 (cleanups.h): Likewise.
11743 * server.c (toplevel): Do not define.
11744 (exit_code): New static global.
11745 (detach_or_kill_for_exit_cleanup): New function.
11746 (main): New function. Original main renamed to...
11747 (captured_main): New function.
11748 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
11750 2014-08-29 Gary Benson <gbenson@redhat.com>
11752 * Makefile.in (SFILES): Add common/common-exceptions.c.
11753 (OBS): Add common-exceptions.o.
11754 (common-exceptions.o): New rule.
11755 * utils.c (prepare_to_throw_exception): New function.
11757 2014-08-29 Gary Benson <gbenson@redhat.com>
11759 * config.in: Regenerate.
11760 * configure: Likewise.
11762 2014-08-29 Gary Benson <gbenson@redhat.com>
11764 * Makefile.in (SFILES): Add common/cleanups.c.
11766 (cleanups.o): New rule.
11768 2014-08-29 Gary Benson <gbenson@redhat.com>
11770 * utils.c (internal_vwarning): New function.
11772 2014-08-28 Gary Benson <gbenson@redhat.com>
11774 * utils.h (fatal): Remove declaration.
11775 * utils.c (fatal): Remove function.
11777 2014-08-28 Gary Benson <gbenson@redhat.com>
11779 * tracepoint.c (gdb_agent_init): Replace fatal with
11781 (initialize_tracepoint): Likewise.
11783 2014-08-28 Gary Benson <gbenson@redhat.com>
11785 * remote-utils.c (remote_prepare): Replace fatal with error.
11787 2014-08-28 Gary Benson <gbenson@redhat.com>
11789 * linux-low.c (linux_async): Replace fatal with warning.
11790 Tidy up and return.
11791 (linux_start_non_stop): Return -1 if linux_async failed.
11793 2014-08-28 Gary Benson <gbenson@redhat.com>
11795 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
11797 (i386_dr_low_get_addr): Remove vague comment.
11798 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
11801 2014-08-28 Gary Benson <gbenson@redhat.com>
11803 * inferiors.c (get_thread_process): Replace check with gdb_assert.
11804 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
11806 (linux_resume_one_lwp): Likewise.
11807 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
11809 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
11810 with internal_error.
11811 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
11812 (init_register_cache): Replace fatal with gdb_assert_not_reached.
11813 (find_register_by_name): Replace fatal with internal_error.
11814 (find_regno): Likewise.
11815 * tdesc.c (init_target_desc): Replace check with gdb_assert.
11816 * thread-db.c (thread_db_create_event): Likewise.
11817 (thread_db_load_search): Likewise.
11818 (try_thread_db_load_1): Likewise.
11819 * tracepoint.c (get_jump_space_head): Replace fatal with
11821 (claim_trampoline_space): Likewise.
11822 (have_fast_tracepoint_trampoline_buffer): Likewise.
11823 (cmd_qtstart): Likewise.
11824 (stop_tracing): Likewise.
11825 (fast_tracepoint_collecting): Likewise.
11826 (target_malloc): Likewise.
11827 (download_tracepoint): Likewise.
11828 (download_trace_state_variables): Replace check with gdb_assert.
11829 (upload_fast_traceframes): Replace fatal with internal_error.
11831 2014-08-19 Tom Tromey <tromey@redhat.com>
11832 Gary Benson <gbenson@redhat.com>
11834 * Makefile.in (SFILES): Add common/common-debug.c.
11835 (OBS): Add common-debug.o.
11836 (common-debug.o): New rule.
11837 * debug.h (debug_printf): Don't declare.
11838 * debug.c (debug_printf): Renamed and rewritten as...
11839 (debug_vprintf): New function.
11841 2014-08-19 Gary Benson <gbenson@redhat.com>
11843 * utils.h: Do not include print-utils.h.
11845 2014-08-19 Tom Tromey <tromey@redhat.com>
11846 Gary Benson <gbenson@redhat.com>
11848 * server.h: Add static assertion.
11849 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
11851 2014-08-19 Tom Tromey <tromey@redhat.com>
11852 Gary Benson <gbenson@redhat.com>
11854 * Makefile.in (SFILES): Add common/errors.c.
11855 (OBS): Add errors.o.
11856 (IPA_OBS): Add errors-ipa.o.
11857 (errors.o): New rule.
11858 (errors-ipa.o): Likewise.
11859 * utils.h (perror_with_name, error, warning): Don't declare.
11860 * utils.c (warning): Renamed and rewritten as...
11861 (vwarning): New function.
11862 (error): Renamed and rewritten as...
11863 (verror): New function.
11864 (internal_error): Renamed and rewritten as...
11865 (internal_verror): New function.
11867 2014-08-07 Gary Benson <gbenson@redhat.com>
11869 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
11870 * configure: Regenerate.
11871 * config.in: Likewise.
11872 * server.h: Do not include errno.h.
11873 * event-loop.c: Likewise.
11874 * hostio-errno.c: Likewise.
11875 * linux-low.c: Likewise.
11876 * remote-utils.c: Likewise.
11877 * spu-low.c: Likewise.
11878 * utils.c: Likewise.
11879 * gdbreplay.c: Unconditionally include errno.h.
11881 2014-08-07 Gary Benson <gbenson@redhat.com>
11883 * server.h: Do not include string.h.
11884 * event-loop.c: Likewise.
11885 * linux-low.c: Likewise.
11886 * regcache.c: Likewise.
11887 * remote-utils.c: Likewise.
11888 * spu-low.c: Likewise.
11889 * utils.c: Likewise.
11891 2014-08-07 Gary Benson <gbenson@redhat.com>
11893 * server.h: Do not include gdb_assert.h.
11895 2014-08-07 Gary Benson <gbenson@redhat.com>
11897 * server.h: Do not include common-utils.h.
11899 2014-08-07 Gary Benson <gbenson@redhat.com>
11901 * server.h: Do not include ptid.h.
11902 * notif.h: Likewise.
11904 2014-08-07 Gary Benson <gbenson@redhat.com>
11906 * server.h: Do not include gdb_locale.h.
11908 2014-08-07 Gary Benson <gbenson@redhat.com>
11910 * server.h: Do not include gdb/signals.h.
11911 * win32-low.c: Likewise.
11913 2014-08-07 Gary Benson <gbenson@redhat.com>
11915 * server.h: Do not include pathmax.h.
11917 2014-08-07 Gary Benson <gbenson@redhat.com>
11919 * server.h: Do not include libiberty.h.
11920 * linux-bfin-low.c: Likewise.
11922 2014-08-07 Gary Benson <gbenson@redhat.com>
11924 * server.h: Do not include ansidecl.h.
11926 2014-08-07 Gary Benson <gbenson@redhat.com>
11928 * linux-x86-low.c: Do not include stddef.h.
11929 * lynx-ppc-low.c: Likewise.
11930 * tracepoint.c: Likewise.
11932 2014-08-07 Gary Benson <gbenson@redhat.com>
11934 * server.h: Do not include stdarg.h.
11935 * nto-low.c: Likewise.
11937 2014-08-07 Gary Benson <gbenson@redhat.com>
11939 * server.h: Do not include stdlib.h.
11940 * inferiors.c: Likewise.
11941 * linux-low.c: Likewise.
11942 * regcache.c: Likewise.
11943 * spu-low.c: Likewise.
11944 * tracepoint.c: Likewise.
11945 * utils.c: Likewise.
11947 2014-08-07 Gary Benson <gbenson@redhat.com>
11949 * server.h: Do not include stdio.h.
11950 * linux-low.c: Likewise.
11951 * remote-utils.c: Likewise.
11952 * spu-low.c: Likewise.
11953 * utils.c: Likewise.
11954 * wincecompat.c: Likewise.
11956 2014-08-06 Gary Benson <gbenson@redhat.com>
11958 * regcache.c (init_register_cache): Move conditionals inside if.
11960 2014-08-06 Gary Benson <gbenson@redhat.com>
11962 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
11964 2014-07-31 Gary Benson <gbenson@redhat.com>
11966 * ax.h: Do not include server.h.
11967 * gdbthread.h: Likewise.
11968 * lynx-low.h: Likewise.
11969 * notif.h: Likewise.
11971 2014-07-30 Gary Benson <gbenson@redhat.com>
11973 * server.h: Include common-defs.h.
11974 Do not include config.h or build-gnulib-gdbserver/config.h.
11976 2014-07-30 Gary Benson <gbenson@redhat.com>
11978 * hostio-errno.c: Move server.h to top of includes list.
11979 * inferiors.c: Likewise.
11980 * linux-x86-low.c: Likewise.
11981 * notif.c: Include server.h.
11983 2014-07-24 Tom Tromey <tromey@redhat.com>
11984 Gary Benson <gbenson@redhat.com>
11986 * server.h (CORE_ADDR): Now unsigned.
11988 2014-07-16 Pedro Alves <palves@redhat.com>
11990 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
11992 2014-07-15 Pedro Alves <palves@redhat.com>
11994 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
11997 2014-07-11 Pedro Alves <palves@redhat.com>
11999 * linux-low.c (kill_wait_lwp): New function, based on
12000 kill_one_lwp_callback, but use my_waitpid directly.
12001 (kill_one_lwp_callback, linux_kill): Use it.
12003 2014-06-23 Pedro Alves <palves@redhat.com>
12005 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
12006 before setting DR0..DR3.
12008 2014-06-20 Gary Benson <gbenson@redhat.com>
12010 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
12011 * configure: Regenerated.
12012 * config.in: Likewise.
12014 2014-06-20 Gary Benson <gbenson@redhat.com>
12016 * Makefile.in (SFILES): Update locations for files moved
12017 from common to nat.
12018 (object file files): Reordered.
12020 2014-06-20 Gary Benson <gbenson@redhat.com>
12022 * i386-low.h (i386_dr_low_can_set_addr): Removed.
12023 (i386_dr_low_set_addr): Likewise.
12024 (i386_dr_low_get_addr): Likewise.
12025 (i386_dr_low_can_set_control): Likewise.
12026 (i386_dr_low_set_control): Likewise.
12027 (i386_dr_low_get_control): Likewise.
12028 (i386_dr_low_get_status): Likewise.
12029 (i386_get_debug_register_length): Likewise.
12030 * linux-x86-low.c (i386_dr_low_set_addr):
12031 Changed signature. Made static.
12032 (i386_dr_low_get_addr): Likewise.
12033 (i386_dr_low_set_control): Likewise.
12034 (i386_dr_low_get_control): Likewise.
12035 (i386_dr_low_get_status): Likewise.
12036 (i386_dr_low): New global variable.
12037 * win32-i386-low.c (i386_dr_low_set_addr):
12038 Changed signature. Made static.
12039 (i386_dr_low_get_addr): Likewise.
12040 (i386_dr_low_set_control): Likewise.
12041 (i386_dr_low_get_control): Likewise.
12042 (i386_dr_low_get_status): Likewise.
12043 (i386_dr_low): New global variable.
12045 2014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
12047 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
12048 * Makefile.in (AR, AR_FLAGS): Define.
12049 * configure: Regenerate.
12051 2014-06-19 Gary Benson <gbenson@redhat.com>
12053 * Makefile.in (i386-dregs.o): New rule.
12054 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
12055 * i386-low.c (target.h): Remove include.
12056 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
12057 (DR_CONTROL_SHIFT): Likewise.
12058 (DR_CONTROL_SIZE): Likewise.
12059 (DR_RW_EXECUTE): Likewise.
12060 (DR_RW_WRITE): Likewise.
12061 (DR_RW_READ): Likewise.
12062 (DR_RW_IORW): Likewise.
12063 (DR_LEN_1): Likewise.
12064 (DR_LEN_2): Likewise.
12065 (DR_LEN_4): Likewise.
12066 (DR_LEN_8): Likewise.
12067 (DR_LOCAL_ENABLE_SHIFT): Likewise.
12068 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
12069 (DR_ENABLE_SIZE): Likewise.
12070 (DR_LOCAL_SLOWDOWN): Likewise.
12071 (DR_GLOBAL_SLOWDOWN): Likewise.
12072 (DR_CONTROL_RESERVED): Likewise.
12073 (I386_DR_CONTROL_MASK): Likewise.
12074 (I386_DR_VACANT): Likewise.
12075 (I386_DR_LOCAL_ENABLE): Likewise.
12076 (I386_DR_GLOBAL_ENABLE): Likewise.
12077 (I386_DR_DISABLE): Likewise.
12078 (I386_DR_SET_RW_LEN): Likewise.
12079 (I386_DR_GET_RW_LEN): Likewise.
12080 (I386_DR_WATCH_HIT): Likewise.
12081 (i386_wp_op_t): Likewise.
12082 (i386_show_dr): Likewise.
12083 (i386_length_and_rw_bits): Likewise.
12084 (i386_insert_aligned_watchpoint): Likewise.
12085 (i386_remove_aligned_watchpoint): Likewise.
12086 (i386_handle_nonaligned_watchpoint): Likewise.
12087 i386_update_inferior_debug_regs(): Likewise.
12088 (i386_dr_insert_watchpoint): Likewise.
12089 (i386_dr_remove_watchpoint): Likewise.
12090 (i386_dr_region_ok_for_watchpoint): Likewise.
12091 (i386_dr_stopped_data_address): Likewise.
12092 (i386_dr_stopped_by_watchpoint): Likewise.
12094 2014-06-19 Gary Benson <gbenson@redhat.com>
12096 * i386-low.c (i386_dr_show): Renamed to
12097 i386_show_dr and made static. All uses updated.
12098 (i386_dr_length_and_rw_bits): Renamed to
12099 i386_length_and_rw_bits and made static.
12101 (i386_dr_insert_aligned_watchpoint): Renamed to
12102 i386_insert_aligned_watchpoint and made static.
12104 (i386_dr_remove_aligned_watchpoint): Renamed to
12105 i386_remove_aligned_watchpoint and made static.
12107 (i386_dr_update_inferior_debug_regs): Renamed to
12108 i386_update_inferior_debug_regs and made static.
12111 2014-06-18 Gary Benson <gbenson@redhat.com>
12113 * i386-low.h (i386_dr_low_can_set_addr): New macro.
12114 (i386_dr_low_can_set_control): Likewise.
12115 (i386_get_debug_register_length): Likewise.
12116 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
12117 (i386_dr_low_can_set_control): Likewise.
12118 (i386_get_debug_register_length): Likewise.
12120 2014-06-17 Gary Benson <gbenson@redhat.com>
12122 * i386-low.h (i386-dregs.h): New include.
12123 (DR_FIRSTADDR): Now in i386-dregs.h.
12124 (DR_LASTADDR): Likewise.
12125 (DR_NADDR): Likewise.
12126 (DR_STATUS): Likewise.
12127 (DR_CONTROL): Likewise.
12128 (i386_debug_reg_state): Likewise.
12129 (i386_dr_insert_watchpoint): Likewise.
12130 (i386_dr_remove_watchpoint): Likewise.
12131 (i386_dr_region_ok_for_watchpoint): Likewise.
12132 (i386_dr_stopped_data_address): Likewise.
12133 (i386_dr_stopped_by_watchpoint): Likewise.
12134 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
12136 2014-06-18 Gary Benson <gbenson@redhat.com>
12138 * i386-low.h (i386_low_insert_watchpoint): Renamed to
12139 i386_dr_insert_watchpoint.
12140 (i386_low_remove_watchpoint): Renamed to
12141 i386_dr_remove_watchpoint.
12142 (i386_low_region_ok_for_watchpoint): Renamed to
12143 i386_dr_region_ok_for_watchpoint.
12144 (i386_low_stopped_data_address): Renamed to
12145 i386_dr_stopped_data_address.
12146 (i386_low_stopped_by_watchpoint): Renamed to
12147 i386_dr_stopped_by_watchpoint.
12148 * i386-low.c (i386_show_dr): Renamed to
12149 i386_dr_show and made nonstatic. All uses updated.
12150 (i386_length_and_rw_bits): Renamed to
12151 i386_dr_length_and_rw_bits and made nonstatic.
12153 (i386_insert_aligned_watchpoint): Renamed to
12154 i386_dr_insert_aligned_watchpoint and made nonstatic.
12156 (i386_remove_aligned_watchpoint): Renamed to
12157 i386_dr_remove_aligned_watchpoint and made nonstatic.
12159 (i386_update_inferior_debug_regs): Renamed to
12160 i386_dr_update_inferior_debug_regs and made nonstatic.
12162 (i386_low_insert_watchpoint): Renamed to
12163 i386_dr_insert_watchpoint. All uses updated.
12164 (i386_low_remove_watchpoint): Renamed to
12165 i386_dr_remove_watchpoint. All uses updated.
12166 (i386_low_region_ok_for_watchpoint): Renamed to
12167 i386_dr_region_ok_for_watchpoint. All uses updated.
12168 (i386_low_stopped_data_address): Renamed to
12169 i386_dr_stopped_data_address. All uses updated.
12170 (i386_low_stopped_by_watchpoint): Renamed to
12171 i386_dr_stopped_by_watchpoint. All uses updated.
12173 2014-06-18 Gary Benson <gbenson@redhat.com>
12175 * i386-low.c (i386_dr_low_can_set_addr): New macro.
12176 (i386_dr_low_can_set_control): Likewise.
12177 (i386_insert_aligned_watchpoint): New check.
12179 2014-06-18 Gary Benson <gbenson@redhat.com>
12181 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
12184 2014-06-18 Gary Benson <gbenson@redhat.com>
12186 * i386-low.c (i386_length_and_rw_bits): Use internal_error
12187 instead of fatal and error.
12188 (i386_handle_nonaligned_watchpoint): Likewise.
12190 2014-06-18 Gary Benson <gbenson@redhat.com>
12192 * i386-low.c (i386_get_debug_register_length): New macro.
12193 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
12194 (i386_show_dr): Use debug_printf instead of fprintf. Use
12195 phex to format values.
12197 2014-06-18 Gary Benson <gbenson@redhat.com>
12199 * i386-low.h: Comment changes.
12200 * i386-low.c: Likewise.
12202 2014-06-18 Gary Benson <gbenson@redhat.com>
12204 * i386-low.c: Whitespace changes.
12206 2014-06-12 Tom Tromey <tromey@redhat.com>
12208 * utils.c (freeargv): Remove.
12210 2014-06-12 Tom Tromey <tromey@redhat.com>
12212 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
12213 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
12214 (parse_debug_format_options): Likewise.
12215 (gdbserver_usage): Likewise.
12216 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
12217 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
12218 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
12220 ($(LIBGNU)): Depend on libiberty.
12221 (all-lib): Recurse into all subdirs.
12222 (install-only): Invoke "install" target in subdirs.
12223 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
12225 * configure: Rebuild.
12226 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
12227 for vasprintf, vsnprintf, or gettimeofday.
12228 * configure.srv: Don't add safe-ctype.o or lbasename.o to
12231 2014-06-05 Joel Brobecker <brobecker@adacore.com>
12233 * development.sh: Delete.
12234 * Makefile.in (config.status): Adjust dependency on development.sh.
12235 * configure.ac: Adjust development.sh source call.
12236 * configure: Regenerate.
12238 2014-06-02 Pedro Alves <palves@redhat.com>
12240 * ax.c (gdb_free_agent_expr): New function.
12241 * ax.h (gdb_free_agent_expr): New declaration.
12242 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
12244 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
12246 (clear_breakpoint_conditions_and_commands): New function.
12247 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
12248 (clear_breakpoint_conditions_and_commands): New declaration.
12250 2014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12252 * linux-aarch64-low.c (asm/ptrace.h): Include.
12254 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12256 Fix TLS access for -static -pthread.
12257 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
12258 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
12259 (thread_db_load_search, try_thread_db_load_1): Initialize it.
12261 2014-05-20 Pedro Alves <palves@redhat.com>
12263 * linux-aarch64-low.c (aarch64_insert_point)
12264 (aarch64_remove_point): No longer check whether the type is
12265 supported here. Adjust to new interface.
12266 (the_low_target): Install aarch64_supports_z_point_type as
12267 supports_z_point_type method.
12268 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
12269 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
12270 instead of a Z packet char. Adjust.
12271 (arm_supports_z_point_type): New function.
12272 (arm_insert_point, arm_remove_point): Adjust to new interface.
12273 (the_low_target): Install arm_supports_z_point_type.
12274 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
12275 (cris_insert_point, cris_remove_point): Adjust to new interface.
12276 Don't check whether the type is supported here.
12277 (the_low_target): Install cris_supports_z_point_type.
12278 * linux-low.c (linux_supports_z_point_type): New function.
12279 (linux_insert_point, linux_remove_point): Adjust to new interface.
12280 * linux-low.h (struct linux_target_ops) <insert_point,
12281 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
12282 raw_breakpoint pointer parameter.
12283 <supports_z_point_type>: New method.
12284 * linux-mips-low.c (mips_supports_z_point_type): New function.
12285 (mips_insert_point, mips_remove_point): Adjust to new interface.
12286 Use mips_supports_z_point_type.
12287 (the_low_target): Install mips_supports_z_point_type.
12288 * linux-ppc-low.c (the_low_target): Install NULL as
12289 supports_z_point_type method.
12290 * linux-s390-low.c (the_low_target): Install NULL as
12291 supports_z_point_type method.
12292 * linux-sparc-low.c (the_low_target): Install NULL as
12293 supports_z_point_type method.
12294 * linux-x86-low.c (x86_supports_z_point_type): New function.
12295 (x86_insert_point): Adjust to new insert_point interface. Use
12296 insert_memory_breakpoint. Adjust to new
12297 i386_low_insert_watchpoint interface.
12298 (x86_remove_point): Adjust to remove_point interface. Use
12299 remove_memory_breakpoint. Adjust to new
12300 i386_low_remove_watchpoint interface.
12301 (the_low_target): Install x86_supports_z_point_type.
12302 * lynx-low.c (lynx_target_ops): Install NULL as
12303 supports_z_point_type callback.
12304 * nto-low.c (nto_supports_z_point_type): New.
12305 (nto_insert_point, nto_remove_point): Adjust to new interface.
12306 (nto_target_ops): Install nto_supports_z_point_type.
12307 * mem-break.c: Adjust intro comment.
12308 (struct raw_breakpoint) <raw_type, size>: New fields.
12309 <inserted>: Update comment.
12310 <shlib_disabled>: Delete field.
12311 (enum bkpt_type) <gdb_breakpoint>: Delete value.
12312 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
12313 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
12314 (raw_bkpt_type_to_target_hw_bp_type): New function.
12315 (find_enabled_raw_code_breakpoint_at): New function.
12316 (find_raw_breakpoint_at): New type and size parameters. Use them.
12317 (insert_memory_breakpoint): New function, based off
12318 set_raw_breakpoint_at.
12319 (remove_memory_breakpoint): New function.
12320 (set_raw_breakpoint_at): Reimplement.
12321 (set_breakpoint): New, based on set_breakpoint_at.
12322 (set_breakpoint_at): Reimplement.
12323 (delete_raw_breakpoint): Go through the_target->remove_point
12324 instead of assuming memory breakpoints.
12325 (find_gdb_breakpoint_at): Delete.
12326 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
12327 (find_gdb_breakpoint): New function.
12328 (set_gdb_breakpoint_at): Delete.
12329 (z_type_supported): New function.
12330 (set_gdb_breakpoint_1): New function, loosely based off
12331 set_gdb_breakpoint_at.
12332 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
12333 (delete_gdb_breakpoint_at): Delete.
12334 (delete_gdb_breakpoint_1): New function, loosely based off
12335 delete_gdb_breakpoint_at.
12336 (delete_gdb_breakpoint): New function.
12337 (clear_gdb_breakpoint_conditions): Rename to ...
12338 (clear_breakpoint_conditions): ... this. Don't handle a NULL
12340 (add_condition_to_breakpoint): Make static.
12341 (add_breakpoint_condition): Take a struct breakpoint pointer
12342 instead of an address. Adjust.
12343 (gdb_condition_true_at_breakpoint): Rename to ...
12344 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
12346 (gdb_condition_true_at_breakpoint): Reimplement.
12347 (add_breakpoint_commands): Take a struct breakpoint pointer
12348 instead of an address. Adjust.
12349 (gdb_no_commands_at_breakpoint): Rename to ...
12350 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
12351 parameter. Return true if no breakpoint was found. Change debug
12353 (gdb_no_commands_at_breakpoint): Reimplement.
12354 (run_breakpoint_commands): Rename to ...
12355 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
12356 and change return type to boolean.
12357 (run_breakpoint_commands): New function.
12358 (gdb_breakpoint_here): Also check for Z1 breakpoints.
12359 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
12360 breakpoint. Go through the_target->remove_point instead of
12361 assuming memory breakpoint.
12362 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
12363 software and hardware breakpoints.
12364 (reinsert_raw_breakpoint): Go through the_target->insert_point
12365 instead of assuming memory breakpoint.
12366 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
12367 software and hardware breakpoints.
12368 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
12369 Check both software and hardware breakpoints.
12370 (validate_inserted_breakpoint): Assert the breakpoint is a
12371 software breakpoint. Set the inserted flag to -1 instead of
12372 setting shlib_disabled.
12373 (delete_disabled_breakpoints): Adjust.
12374 (validate_breakpoints): Only validate software breakpoints.
12375 Adjust to inserted flag change.
12376 (check_mem_read, check_mem_write): Skip breakpoint types other
12377 than software breakpoints. Adjust to inserted flag change.
12378 * mem-break.h (enum raw_bkpt_type): New enum.
12379 (raw_breakpoint, struct process_info): Forward declare.
12380 (Z_packet_to_target_hw_bp_type): Delete declaration.
12381 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
12382 (set_gdb_breakpoint, delete_gdb_breakpoint)
12383 (clear_breakpoint_conditions): New declarations.
12384 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
12385 (breakpoint_inserted_here): Update comment.
12386 (add_breakpoint_condition, add_breakpoint_commands): Replace
12387 address parameter with a breakpoint pointer parameter.
12388 (gdb_breakpoint_here): Update comment.
12389 (delete_gdb_breakpoint_at): Delete.
12390 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
12391 * server.c (process_point_options): Take a struct breakpoint
12392 pointer instead of an address. Adjust.
12393 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
12394 delete_gdb_breakpoint.
12395 * spu-low.c (spu_target_ops): Install NULL as
12396 supports_z_point_type method.
12397 * target.h: Include mem-break.h.
12398 (struct target_ops) <prepare_to_access_memory>: Update comment.
12399 <supports_z_point_type>: New field.
12400 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12401 instead of a char. Also take a raw breakpoint pointer.
12402 * win32-arm-low.c (the_low_target): Install NULL as
12403 supports_z_point_type.
12404 * win32-i386-low.c (i386_supports_z_point_type): New function.
12405 (i386_insert_point, i386_remove_point): Adjust to new interface.
12406 (the_low_target): Install i386_supports_z_point_type.
12407 * win32-low.c (win32_supports_z_point_type): New function.
12408 (win32_insert_point, win32_remove_point): Adjust to new interface.
12409 (win32_target_ops): Install win32_supports_z_point_type.
12410 * win32-low.h (struct win32_target_ops):
12411 <supports_z_point_type>: New method.
12412 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12413 instead of a char. Also take a raw breakpoint pointer.
12415 2014-05-20 Pedro Alves <palves@redhat.com>
12417 * mem-break.h: Include break-common.h.
12418 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12419 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
12420 (Z_packet_to_target_hw_bp_type): New declaration.
12421 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
12422 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
12423 (Z_PACKET_ACCESS_WP): Delete macros.
12424 (Z_packet_to_hw_type): Delete function.
12425 * i386-low.h: Don't include break-common.h here.
12426 (Z_packet_to_hw_type): Delete declaration.
12427 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
12428 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12429 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
12430 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12431 * linux-aarch64-low.c: Don't include break-common.h here.
12432 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12433 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
12434 (Z_packet_to_target_hw_bp_type): Delete function.
12435 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
12437 (mips_insert_point, mips_remove_point): Use
12438 Z_packet_to_target_hw_bp_type.
12440 2014-05-20 Pedro Alves <palves@redhat.com>
12442 * linux-aarch64-low.c: Include break-common.h.
12443 (enum target_point_type): Delete.
12444 (Z_packet_to_point_type): Rename to ...
12445 (Z_packet_to_target_hw_bp_type): ... this, and return a
12446 target_hw_bp_type instead.
12447 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
12448 instead of an enum target_point_type.
12449 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
12451 (aarch64_dr_state_insert_one_point)
12452 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
12453 (aarch64_handle_aligned_watchpoint)
12454 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
12455 Take an enum target_hw_bp_type instead of an enum
12457 (aarch64_supports_z_point_type): New function.
12458 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
12459 use Z_packet_to_target_hw_bp_type.
12461 2014-05-20 Joel Brobecker <brobecker@adacore.com>
12463 * configure.ac: Only use -Werror by default when DEVELOPMENT
12465 * configure: Regenerate.
12467 2014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
12469 Fix gdbserver qGetTLSAddr for x86_64 -m32.
12470 * linux-x86-low.c (X86_64_USER_REGS): New.
12471 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
12473 2014-04-28 Yao Qi <yao@codesourcery.com>
12475 * Makefile.in (i386-avx512.c): Fix the typo of generated file
12478 2014-04-25 Pedro Alves <palves@redhat.com>
12481 * linux-low.c (linux_attach_fail_reason_string): New function.
12482 (linux_attach_lwp): Delete.
12483 (linux_attach_lwp_1): Rename to ...
12484 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
12485 argument. Remove "initial" parameter. Return int instead of
12486 void. Don't error or warn here.
12487 (linux_attach): Adjust to call linux_attach_lwp. Call error on
12488 failure to attach to the tgid. Call warning when failing to
12490 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
12491 argument. Remove "initial" parameter. Return int instead of
12492 void. Don't error or warn here.
12493 (linux_attach_fail_reason_string): New declaration.
12494 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
12495 interface change. Use linux_attach_fail_reason_string.
12497 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
12498 Walfred Tedeschi <walfred.tedeschi@intel.com>
12500 * Makefile.in: Added rules to handle new files
12501 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
12502 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
12503 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
12504 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
12505 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
12506 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
12507 x32-avx512-linux.o.
12508 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
12509 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
12510 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
12511 i386/x32-avx512.xml.
12512 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
12513 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
12514 i386/x32-avx512-linux.xml.
12515 * i387-fp.c (num_avx512_k_registers): New constant for number
12517 (num_avx512_zmmh_low_registers): New constant for number of
12518 lower ZMM registers (0-15).
12519 (num_avx512_zmmh_high_registers): New constant for number of
12520 higher ZMM registers (16-31).
12521 (num_avx512_ymmh_registers): New contant for number of higher
12522 YMM registers (ymm16-31 added by avx521 on x86_64).
12523 (num_avx512_xmm_registers): New constant for number of higher
12524 XMM registers (xmm16-31 added by AVX512 on x86_64).
12525 (struct i387_xsave): Add space for AVX512 registers.
12526 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
12527 Add code to handle AVX512 registers.
12528 (i387_xsave_to_cache): Add code to handle AVX512 registers.
12529 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
12530 prototypei from generated file.
12531 (tdesc_amd64_avx512_linux): Likewise.
12532 (init_registers_x32_avx512_linux): Likewise.
12533 (tdesc_x32_avx512_linux): Likewise.
12534 (init_registers_i386_avx512_linux): Likewise.
12535 (tdesc_i386_avx512_linux): Likewise.
12536 (x86_64_regmap): Add AVX512 registers.
12537 (x86_linux_read_description): Add code to handle AVX512 XSTATE
12539 (initialize_low_arch): Add code to initialize AVX512 registers.
12541 2014-04-23 Pedro Alves <palves@redhat.com>
12543 * mem-break.c (find_gdb_breakpoint_at): Make static.
12544 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
12546 2014-04-23 Pedro Alves <palves@redhat.com>
12548 * i386-low.c: Don't include break-common.h here.
12549 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12550 prototype to take target_hw_bp_type as argument instead of a Z
12552 * i386-low.h: Include break-common.h here.
12553 (Z_packet_to_hw_type): Declare.
12554 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12556 * linux-x86-low.c (x86_insert_point): Convert the packet number to
12557 a target_hw_bp_type before calling i386_low_insert_watchpoint.
12558 (x86_remove_point): Convert the packet number to a
12559 target_hw_bp_type before calling i386_low_remove_watchpoint.
12560 * win32-i386-low.c (i386_insert_point): Convert the packet number
12561 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
12562 (i386_remove_point): Convert the packet number to a
12563 target_hw_bp_type before calling i386_low_remove_watchpoint.
12565 2014-04-23 Pedro Alves <palves@redhat.com>
12567 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
12569 2014-04-10 Pedro Alves <palves@redhat.com>
12571 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
12572 Check if the condition or command is NULL before checking if the
12573 breakpoint is known. On success, return true.
12574 * mem-break.h (add_breakpoint_condition): Document return.
12575 (add_breakpoint_commands): Add describing comment.
12576 * server.c (skip_to_semicolon): New function.
12577 (process_point_options): Use it.
12579 2014-04-09 Pedro Alves <palves@redhat.com>
12581 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
12584 2014-02-27 Pedro Alves <palves@redhat.com>
12587 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
12589 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
12591 (last_thread_of_process_p): Take a PID argument instead of a
12593 (linux_wait_for_lwp): Delete.
12594 (num_lwps, check_zombie_leaders, not_stopped_callback): New
12596 (linux_low_filter_event): New function, party factored out from
12597 linux_wait_for_event.
12598 (linux_wait_for_event): Rename to ...
12599 (linux_wait_for_event_filtered): ... this. Add new filter ptid
12600 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
12601 sigsuspend. Check for zombie leaders.
12602 (linux_wait_for_event): Reimplement as wrapper around
12603 linux_wait_for_event_filtered.
12604 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
12605 a normal or signal exit is seen, it's the whole process exiting.
12606 (wait_for_sigstop): No longer a for_each_inferior callback.
12607 Rewrite on top of linux_wait_for_event_filtered.
12608 (stop_all_lwps): Call wait_for_sigstop directly.
12609 * server.c (resume, handle_target_event): Handle
12610 TARGET_WAITKIND_NO_RESUMED.
12612 2014-02-26 Joel Brobecker <brobecker@adacore.com>
12614 * win32-low.c (psapi_get_dll_name,
12615 * win32_CreateToolhelp32Snapshot): Delete.
12616 (win32_CreateToolhelp32Snapshot, win32_Module32First)
12617 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
12619 (handle_load_dll): Add function description.
12620 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
12622 2014-02-26 Joel Brobecker <brobecker@adacore.com>
12624 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
12626 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
12627 base address when calling win32_add_one_solib.
12628 (handle_load_dll): Delete local variable load_addr.
12629 Remove 0x1000 offset applied to DLL base address when calling
12630 win32_add_one_solib.
12631 (handle_unload_dll): Add comment.
12633 2014-02-26 Joel Brobecker <brobecker@adacore.com>
12635 * win32-low.c (win32_add_all_dlls): Renames
12636 win32_ensure_ntdll_loaded. Rewrite function documentation.
12637 Adjust implementation to always load all DLLs.
12638 Add 0x1000 offset to DLL base address when calling
12639 win32_add_one_solib.
12640 (child_initialization_done): New static global.
12641 (do_initial_child_stuff): Set child_initialization_done to
12642 zero during child initialization, and 1 after. Replace call
12643 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
12645 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
12646 (handle_unload_dll): Add function documentation.
12647 (get_child_debug_event): Ignore load and unload DLL events
12648 during child initialization.
12650 2014-02-20 Doug Evans <dje@google.com>
12652 Remove global all_lwps.
12653 * inferiors.h (ptid_of): Move here from linux-low.h.
12654 (pid_of, lwpid_of): Ditto.
12655 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
12656 parameter is a struct thread_info * now.
12657 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
12658 directly. Pass &all_threads to find_inferior instead of &all_lwps.
12659 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
12661 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
12662 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
12663 * linux-arm-low.c (update_registers_callback): Update, "entry"
12664 parameter is a struct thread_info * now.
12665 Fetch lwpid from current_inferior directly.
12666 (arm_insert_point): Pass &all_threads to find_inferior instead of
12668 (arm_remove_point): Ditto.
12669 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
12670 (arm_prepare_to_resume): Fetch pid from thread.
12671 (arm_read_description): Fetch lwpid from current_inferior directly.
12672 * linux-low.c (all_lwps): Delete.
12673 (delete_lwp): Delete call to remove_inferior.
12674 (handle_extended_wait): Fetch lwpid from thread.
12675 (add_lwp): Don't set lwp->entry.id. Remove call to
12676 add_inferior_to_list.
12677 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
12678 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
12679 (kill_one_lwp_callback): Ditto.
12680 (linux_kill): Don't dereference NULL pointer.
12681 Fetch ptid,lwpid from thread.
12682 (get_detach_signal): Fetch ptid from thread.
12683 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
12684 Simplify call to regcache_invalidate_thread.
12685 (delete_lwp_callback): Update, "entry" parameter is a
12686 struct thread_info * now. Fetch pid from thread.
12687 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
12688 (status_pending_p_callback): Update, "entry" parameter is a
12689 struct thread_info * now. Fetch ptid from thread.
12690 (find_lwp_pid): Update, "entry" parameter is a
12691 struct thread_info * now.
12692 (linux_wait_for_lwp): Fetch pid from thread.
12693 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
12694 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
12695 (enqueue_one_deferred_signal): Fetch lwpid from thread.
12696 (dequeue_one_deferred_signal): Ditto.
12697 (cancel_breakpoint): Fetch ptid from current_inferior.
12698 (linux_wait_for_event): Pass &all_threads to find_inferior,
12699 not &all_lwps. Fetch ptid, lwpid from thread.
12700 (count_events_callback): Update, "entry" parameter is a
12701 struct thread_info * now.
12702 (select_singlestep_lwp_callback): Ditto.
12703 (select_event_lwp_callback): Ditto.
12704 (cancel_breakpoints_callback): Ditto.
12705 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
12707 (select_event_lwp): Ditto. Fetch ptid from event_thread.
12708 (unsuspend_one_lwp): Update, "entry" parameter is a
12709 struct thread_info * now.
12710 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
12712 (linux_stabilize_threads): Ditto. And for for_each_inferior.
12713 Fetch lwpid from thread, not lwp.
12714 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
12715 Pass &all_threads to find_inferior, not &all_lwps.
12716 (send_sigstop): Fetch lwpid from thread, not lwp.
12717 (send_sigstop_callback): Update, "entry" parameter is a
12718 struct thread_info * now.
12719 (suspend_and_send_sigstop_callback): Ditto.
12720 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
12721 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
12722 struct thread_info * now.
12723 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
12725 (lwp_running): Update, "entry" parameter is a
12726 struct thread_info * now.
12727 (stop_all_lwps): Fetch ptid from thread.
12728 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
12729 (linux_resume_one_lwp): Fetch lwpid from thread.
12730 (linux_set_resume_request): Update, "entry" parameter is a
12731 struct thread_info * now. Fetch pid, lwpid from thread.
12732 (resume_status_pending_p): Update, "entry" parameter is a
12733 struct thread_info * now.
12734 (need_step_over_p): Ditto. Fetch lwpid from thread.
12735 (start_step_over): Fetch lwpid from thread.
12736 (linux_resume_one_thread): Update, "entry" parameter is a
12737 struct thread_info * now. Fetch lwpid from thread.
12738 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
12739 (proceed_one_lwp): Update, "entry" parameter is a
12740 struct thread_info * now. Fetch lwpid from thread.
12741 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
12742 struct thread_info * now.
12743 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
12744 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
12745 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
12747 (regsets_store_inferior_registers): Ditto.
12748 (fetch_register, store_register): Ditto.
12749 (linux_read_memory, linux_write_memory): Ditto.
12750 (linux_request_interrupt): Ditto.
12751 (linux_read_auxv): Ditto.
12752 (linux_xfer_siginfo): Ditto.
12753 (linux_qxfer_spu): Ditto.
12754 (linux_qxfer_libraries_svr4): Ditto.
12755 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
12756 moved to inferiors.h.
12758 (get_thread_lwp): Update.
12759 (struct lwp_info): Delete member "entry". Simplify comment for
12761 (all_lwps): Delete.
12762 * linux-mips-low.c (mips_read_description): Fetch lwpid from
12763 current_inferior directly.
12764 (update_watch_registers_callback): Update, "entry" parameter is a
12765 struct thread_info * now. Fetch pid from thread.
12766 (mips_linux_prepare_to_resume): Fetch ptid from thread.
12767 (mips_insert_point): Fetch lwpid from current_inferior.
12768 Pass &all_threads to find_inferior, not &all_lwps.
12769 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
12770 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
12772 (mips_stopped_data_address): Ditto.
12773 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
12775 * linux-tile-low.c (tile_arch_setup): Ditto.
12776 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
12777 (update_debug_registers_callback): Update, "entry" parameter is a
12778 struct thread_info * now. Fetch pid from thread.
12779 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
12780 Pass &all_threads to find_inferior, not &all_lwps.
12781 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
12782 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
12783 Pass &all_threads to find_inferior, not &all_lwps.
12784 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
12785 (i386_dr_low_get_status): Ditto.
12786 (x86_linux_prepare_to_resume): Fetch ptid from thread.
12787 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
12788 (x86_linux_read_description): Ditto.
12789 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
12791 2014-02-20 Doug Evans <dje@google.com>
12793 * inferiors.c (get_first_inferior): Fix buglet.
12795 2014-02-19 Doug Evans <dje@google.com>
12797 * gdbthread.h (add_thread): Change result type to struct thread_info *.
12798 * inferiors.c (add_thread): Change result type to struct thread_info *.
12799 All callers updated.
12800 (add_lwp): Call add_thread here instead of in callers.
12801 All callers updated.
12802 * linux-low.h (get_lwp_thread): Rewrite.
12803 (struct lwp_info): New member "thread".
12805 2014-02-19 Doug Evans <dje@google.com>
12807 * linux-low.c (add_lwp): Change result to struct lwp_info *.
12808 All callers updated.
12810 2014-02-19 Doug Evans <dje@google.com>
12812 * inferiors.c (add_thread): Fix whitespace.
12814 2014-02-19 Doug Evans <dje@google.com>
12816 * dll.c (clear_dlls): Replace accessing list implemention details
12818 * gdbthread.h (get_first_thread): Declare.
12819 * inferiors.c (for_each_inferior_with_data): New function.
12820 (get_first_thread): New function.
12821 (find_thread_ptid): Simplify.
12822 (get_first_inferior): New function.
12823 (clear_list): Delete.
12824 (one_inferior_p): New function.
12825 (clear_inferior_list): New function.
12826 (clear_inferiors): Update.
12827 * inferiors.h (for_each_inferior_with_data): Declare.
12828 (clear_inferior_list): Declare.
12829 (one_inferior_p): Declare.
12830 (get_first_inferior): Declare.
12831 * linux-low.c (linux_wait_for_event): Replace accessing list
12832 implemention details with API function.
12833 * server.c (target_running): Ditto.
12834 (accumulate_file_name_length): New function.
12835 (emit_dll_description): New function.
12836 (handle_qxfer_libraries): Replace accessing list implemention
12837 details with API function.
12838 (handle_qxfer_threads_worker): New function.
12839 (handle_qxfer_threads_proper): Replace accessing list implemention
12840 details with API function.
12841 (handle_query): Ditto.
12842 (visit_actioned_threads_callback_ftype): New typedef.
12843 (visit_actioned_threads_data): New struct.
12844 (visit_actioned_threads): Rewrite to be find_inferior callback.
12845 (resume): Call find_inferior.
12846 (handle_status): Replace accessing list implemention
12847 details with API function.
12848 (process_serial_event): Replace accessing list implemention details
12850 * target.c (set_desired_inferior): Replace accessing list implemention
12851 details with API function.
12852 * tracepoint.c (same_process_p): New function.
12853 (gdb_agent_about_to_close): Replace accessing list implemention
12854 details with API function.
12855 * win32-low.c (child_delete_thread): Replace accessing list
12856 implemention details with API function.
12857 (match_dll_by_basename): New function.
12858 (dll_is_loaded_by_basename): New function.
12859 (win32_ensure_ntdll_loaded): Replace accessing list implemention
12860 details call to dll_is_loaded_by_basename.
12862 2014-02-19 Doug Evans <dje@google.com>
12864 * dll.h (struct dll_info): Add comment.
12865 * gdbthread.h (struct thread_info): Add comment.
12866 (current_ptid): Simplify.
12867 * inferiors.c (add_process): Update.
12868 (remove_process): Update.
12869 * inferiors.h (struct process_info): Rename member "head" to "entry".
12870 * linux-low.c (delete_lwp): Update.
12872 (last_thread_of_process_p): Update.
12873 (kill_one_lwp_callback, linux_kill): Update.
12874 (status_pending_p_callback): Update.
12875 (wait_for_sigstop): Update. Simplify read of ptid.
12876 (start_step_over): Update.
12877 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
12878 (get_lwp_thread): Update.
12879 (struct lwp_info): Rename member "head" to "entry".
12880 * regcache.h (inferior_list_entry): Delete.
12881 * server.c (kill_inferior_callback): Update.
12882 (detach_or_kill_inferior_callback): Update.
12883 (print_started_pid): Update.
12884 (print_attached_pid): Update.
12885 (process_serial_event): Simplify read of ptid.
12886 * thread-db.c (thread_db_create_event): Update.
12887 (thread_db_get_tls_address): Update.
12888 * win32-low.c (current_inferior_ptid): Simplify.
12890 2014-02-19 Tom Tromey <tromey@redhat.com>
12892 * target.h (struct target_ops) <supports_btrace>: Add target_ops
12894 (target_supports_btrace): Update.
12896 2014-02-14 Yao Qi <yao@codesourcery.com>
12898 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
12899 (rsp-low-ipa.o): New target.
12901 2014-02-12 Tom Tromey <tromey@redhat.com>
12903 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
12904 convert_ascii_to_int.
12905 * regcache.c (registers_to_string): Likewise.
12906 * remote-utils.c (decode_M_packet): Likewise.
12907 * server.c (process_serial_event): Likewise.
12909 2014-02-12 Tom Tromey <tromey@redhat.com>
12911 * server.c (handle_query, handle_v_run): Use hex2bin, not
12913 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
12915 2014-02-12 Tom Tromey <tromey@redhat.com>
12917 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
12918 convert_int_to_ascii.
12919 * regcache.c (registers_to_string, collect_register_as_string):
12921 * remote-utils.c (look_up_one_symbol, relocate_instruction):
12923 * server.c (process_serial_event): Likewise.
12924 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
12925 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
12927 2014-02-12 Tom Tromey <tromey@redhat.com>
12929 * remote-utils.c (look_up_one_symbol, monitor_output): Use
12930 bin2hex, not hexify.
12931 * tracepoint.c (cmd_qtstatus): Likewise.
12933 2014-02-12 Tom Tromey <tromey@redhat.com>
12935 * remote-utils.c (monitor_output): Pass explicit length to
12938 2014-02-12 Tom Tromey <tromey@redhat.com>
12940 * tracepoint.c: Include rsp-low.h.
12941 * server.c: Include rsp-low.h.
12942 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
12943 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
12945 * remote-utils.c: Include rsp-low.h.
12946 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
12947 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
12948 (convert_int_to_ascii, convert_ascii_to_int): Move to
12950 * regcache.c: Include rsp-low.h.
12951 * ax.c: Include rsp-low.h.
12952 * Makefile.in (SFILES): Add common/rsp-low.c.
12953 (OBS): Add rsp-low.o.
12954 (rsp-low.o): New target.
12956 2014-02-12 Tom Tromey <tromey@redhat.com>
12958 * utils.h (pulongest, plongest, phex_nz): Don't declare.
12959 Include print-utils.h.
12960 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
12961 (plongest, thirty_two, phex_nz): Remove.
12962 * Makefile.in (SFILES): Add common/print-utils.c.
12963 (OBS): Add print-utils.o.
12964 (print-utils-ipa.o): New target.
12965 (print-utils.o): New target.
12966 (IPA_OBJS): Add print-utils-ipa.o.
12968 2014-02-06 Tom Tromey <tromey@redhat.com>
12970 * Makefile.in (SFILES): Fix indentation.
12972 2014-02-05 Doug Evans <dje@google.com>
12974 * linux-low.c (linux_wait_for_event): Improve comment.
12975 (linux_wait_1): Keep current_inferior in sync with event_child.
12977 2014-01-22 Doug Evans <dje@google.com>
12979 * gdbthread.h (gdb_id_to_thread): Delete, unused.
12981 2014-01-22 Doug Evans <dje@google.com>
12983 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
12984 * configure: Regenerate.
12985 * config.in: Regenerate.
12986 * Makefile.in (SFILES): Add debug.c.
12987 (OBS): Add debug.o.
12988 * debug.c: New file.
12989 * debug.h: New file.
12990 * linux-aarch64-low.c (*): Update all debugging printfs to use
12991 debug_printf instead of fprintf.
12992 * linux-arm-low.c (*): Ditto.
12993 * linux-cris-low.c (*): Ditto.
12994 * linux-crisv32-low.c (*): Ditto.
12995 * linux-m32r-low.c (*): Ditto.
12996 * linux-sparc-low.c (*): Ditto.
12997 * linux-x86.c (*): Ditto.
12998 * linux-low.c (*): Ditto.
12999 (linux_wait_1): Add calls to debug_enter, debug_exit.
13000 (linux_wait): Remove redundant debugging printf.
13001 (stop_all_lwps): Add calls to debug_enter, debug_exit.
13002 (linux_resume, unstop_all_lwps): Ditto.
13003 * mem-break.c (*): Update all debugging printfs to use
13004 debug_printf instead of fprintf.
13005 * remote-utils.c (*): Ditto.
13006 * thread-db.c (*): Ditto.
13007 * server.c #include <ctype.h>, "gdb_vecs.h".
13008 (debug_threads): Moved to debug.c.
13009 (*): Update all debugging printfs to use debug_printf instead of
13011 (start_inferior): Replace call to fflush with call to debug_flush.
13012 (monitor_show_help): Mention set debug-format.
13013 (parse_debug_format_options): New function.
13014 (handle_monitor_command): Handle "monitor set debug-format".
13015 (gdbserver_usage): Mention --debug-format.
13016 (main): Parse --debug-format.
13017 * server.h (debug_threads): Declaration moved to debug.h.
13018 #include "debug.h".
13019 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
13020 trace_debug_1 that uses debug_printf.
13021 (tracepoint_look_up_symbols): Update all debugging printfs to use
13022 debug_printf instead of fprintf.
13024 2014-01-20 Baruch Siach <baruch@tkos.co.il>
13026 * linux-xtensa-low.c: Include asm/ptrace.h instead of
13029 2014-01-17 Pedro Alves <palves@redhat.com>
13032 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
13033 defined after including gdb_proc_service.h.
13035 2014-01-16 Doug Evans <dje@google.com>
13037 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
13038 (match_dll): Use it.
13040 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13042 * target.h (target_ops) <read_btrace>: Change parameters and
13043 return type to allow error reporting.
13044 * server.c (handle_qxfer_btrace): Support delta reads. Pass
13045 trace reading errors on.
13046 * linux-low.c (linux_low_read_btrace): Pass trace reading
13048 (linux_low_disable_btrace): New.
13050 2014-01-15 Doug Evans <dje@google.com>
13052 * inferiors.c (thread_id_to_gdb_id): Delete.
13053 * inferiors.h (thread_id_to_gdb_id): Delete.
13055 2014-01-13 Eli Zaretskii <eliz@gnu.org>
13057 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
13058 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
13061 2014-01-08 Pedro Alves <palves@redhat.com>
13063 * server.c (handle_status): Don't discard previous queued stop
13064 replies or thread's pending status here.
13065 (main) <disconnection>: Do it here instead.
13067 2014-01-08 Pedro Alves <palves@redhat.com>
13069 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
13070 * server.c (visit_actioned_threads, handle_pending_status): New
13072 (handle_v_cont): Factor out parts to ...
13073 (resume): ... this new function. If in all-stop, and a thread
13074 being resumed has a pending status, report it without actually
13076 (myresume): Adjust to use the new 'resume' function.
13077 (clear_pending_status_callback, set_pending_status_callback)
13078 (find_status_pending_thread_callback): New functions.
13079 (handle_status): Handle the case of multiple threads having
13080 interesting statuses to report. Report threads' real last signal
13081 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
13082 with an interesting thread to report the status for, instead of
13083 always reporting the status of the first thread.
13085 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13087 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
13088 * gdbreplay.c (gdbreplay_version): Likewise.
13090 2013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
13092 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
13093 iov.iov_len with the real length in use.
13095 2013-12-13 Joel Brobecker <brobecker@adacore.com>
13097 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
13098 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
13099 for all targets that use win32-low.c.
13100 * win32-low.c (win32_ensure_ntdll_loaded): New function.
13101 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
13103 2013-12-13 Pedro Alves <palves@redhat.com>
13105 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
13106 if equal to TARGET_WAITKIND_LOADED.
13107 * win32-low.c (cached_status): New static global.
13108 (win32_wait): Add declaration.
13109 (do_initial_child_stuff): Flush all initial pending debug events
13110 up to the initial breakpoint.
13111 (win32_wait): If CACHED_STATUS was set, return that instead
13112 of doing a real wait. Remove the code resuming the execution
13113 of the inferior after receiving a TARGET_WAITKIND_LOADED event
13114 during the initial phase. Also remove the code changing
13115 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
13116 TARGET_WAITKIND_STOPPED.
13118 2013-12-11 Yao Qi <yao@codesourcery.com>
13120 * notif.c (handle_notif_ack): Return 0 if no notification
13123 2013-11-20 Doug Evans <dje@google.com>
13125 * linux-low.c (linux_set_resume_request): Fix comment.
13127 2013-11-20 Doug Evans <dje@google.com>
13129 * linux-low.c (resume_status_pending_p): Tweak comment.
13131 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
13133 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
13134 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
13135 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
13136 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
13137 (srv_amd64_regobj): Add amd64-mpx.o.
13138 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
13139 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
13140 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
13141 * i387-fp.c (num_pl_bnd_register) Added constant.
13142 (num_pl_bnd_cfg_registers) Added constant.
13143 (struct i387_xsave) Added reserved area and MPX fields.
13144 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
13145 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
13147 (tdesc_i386_mpx_linux): Add MPX amd64 target.
13148 (init_registers_amd64_mpx_linux): Declare new function.
13149 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
13150 (x86_64_regmap): Add MPX registers.
13151 (x86_linux_read_description): Add MPX case.
13152 (initialize_low_arch): Initialize MPX targets.
13154 2013-11-18 Tom Tromey <tromey@redhat.com>
13156 * configure: Rebuild.
13157 * configure.ac: Don't check for stdlib.h.
13158 * gdbreplay.c: Unconditionally include stdlib.h.
13160 2013-11-18 Tom Tromey <tromey@redhat.com>
13162 * config.in: Rebuild.
13163 * configure: Rebuild.
13164 * configure.ac: Don't use AC_HEADER_DIRENT.
13166 2013-11-18 Tom Tromey <tromey@redhat.com>
13168 * server.h: Don't check HAVE_STRING_H.
13169 * gdbreplay.c: Don't check HAVE_STRING_H.
13170 * configure: Rebuild.
13172 2013-11-18 Tom Tromey <tromey@redhat.com>
13174 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
13177 2013-11-08 Tom Tromey <tromey@redhat.com>
13179 * configure, config.in: Rebuild.
13180 * configure.ac: Remove unused configury.
13182 2013-11-08 Tom Tromey <tromey@redhat.com>
13184 * acinclude.m4: Include common.m4, codeset.m4.
13185 * configure, config.in: Rebuild.
13186 * configure.ac: Use GDB_AC_COMMON.
13188 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
13190 * linux-s390-low.c (HWCAP_S390_TE): New define.
13191 (s390_arch_setup): Consider the TE field in the HWCAP for
13192 determining 'have_regset_tdb'.
13194 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
13197 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
13200 2013-10-02 Pedro Alves <palves@redhat.com>
13202 * server.c (process_serial_event): Don't output "GDBserver
13203 exiting" if GDB is connected through stdio.
13204 * target.c (mywait): Likewise, be silent if GDB is connected
13207 2013-10-01 Joel Brobecker <brobecker@adacore.com>
13209 * lynx-low.c (lynx_add_threads_after_attach): New function.
13210 (lynx_attach): Remove call to add_thread. Add call to
13211 lynx_add_threads_after_attach instead.
13213 2013-09-28 Mike Frysinger <vapier@gentoo.org>
13215 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
13216 * config.in, configure: Regenerated.
13218 2013-09-18 Yao Qi <yao@codesourcery.com>
13221 * server.c (start_inferior): Clear 'resume_info'.
13223 2013-09-16 Jiong Wang <jiwang@tilera.com>
13225 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
13228 2013-09-16 Jiong Wang <jiwang@tilera.com>
13230 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
13231 linux-tile-low.o to srv_tgtobj.
13233 2013-09-16 Will Newton <will.newton@linaro.org>
13235 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
13238 2013-09-06 Pedro Alves <palves@redhat.com>
13240 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
13241 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
13242 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
13243 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
13244 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
13245 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
13247 2013-09-06 Pedro Alves <palves@redhat.com>
13249 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
13250 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
13252 2013-09-06 Pedro Alves <palves@redhat.com>
13254 * linux-amd64-ipa.c: Include tracepoint.h.
13255 * linux-i386-ipa.c: Include tracepoint.h.
13257 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
13259 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
13260 (ps_get_thread_area): New function.
13262 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
13264 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
13265 (initialize_low_arch): Call init_registers_crisv32 rather than
13266 init_register_crisv32.
13268 2013-09-05 Pedro Alves <palves@redhat.com>
13270 * server.h (handle_vFile, hostio_last_error_from_errno): Move
13272 * hostio.h: ... this new file.
13273 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
13274 win32-low.c: Include hostio.h.
13276 2013-09-05 Pedro Alves <palves@redhat.com>
13278 * server.h (gdb_client_data, handler_func, callback_handler_func)
13279 (delete_file_handler, add_file_handler, append_callback_event)
13280 (delete_callback_event, start_event_loop, initialize_event_loop):
13281 Move to event-loop.h and include it.
13282 * event-loop.h: New file.
13284 2013-09-05 Pedro Alves <palves@redhat.com>
13286 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
13287 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
13288 (loaded_dll, unloaded_dll): Move to ...
13289 * dll.h: ... this new file.
13290 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
13292 2013-09-05 Pedro Alves <palves@redhat.com>
13294 * server.h (current_process, get_thread_process, all_processes)
13295 (add_inferior_to_list, for_each_inferior, current_inferior)
13296 (remove_inferior, add_process, remove_process, find_process_pid)
13297 (have_started_inferiors_p, have_attached_inferiors_p)
13298 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
13299 (clear_inferiors, find_inferior, find_inferior_id)
13300 (inferior_target_data, set_inferior_target_data)
13301 (inferior_regcache_data, set_inferior_regcache_data): Move to
13302 inferiors.h, and include it.
13303 * inferiors.h: New file.
13305 2013-09-05 Pedro Alves <palves@redhat.com>
13307 * server.h (struct emit_ops, current_insn_ptr, emit_error):
13311 2013-09-05 Pedro Alves <palves@redhat.com>
13313 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
13315 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
13316 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
13317 (handle_tracepoint_general_set, handle_tracepoint_query)
13318 (tracepoint_finished_step, tracepoint_was_hit)
13319 (release_while_stepping_state_list, current_traceframe)
13320 (in_readonly_region, traceframe_read_mem)
13321 (fetch_traceframe_registers, traceframe_read_sdata)
13322 (traceframe_read_info, struct fast_tpoint_collect_status)
13323 (fast_tracepoint_collecting, force_unlock_trace_buffer)
13324 (handle_tracepoit_bkpts, initialize_low_tracepoint)
13325 (supply_fast_tracepoint_registers)
13326 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
13327 (ipa_tdesc, claim_trampoline_space)
13328 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
13329 (agent_mem_read, agent_get_trace_state_variable_value)
13330 (agent_set_trace_state_variable_value, agent_tsv_read)
13331 (agent_mem_read_string, get_raw_reg_func_addr)
13332 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
13333 * tracepoint.h: ... this new file.
13335 2013-09-05 Pedro Alves <palves@redhat.com>
13337 * server.h (perror_with_name, error, fatal, warning, paddress)
13338 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
13340 * utils.h: New file.
13342 2013-09-05 Pedro Alves <palves@redhat.com>
13344 * server.h (remote_debug, noack_mode, transport_is_reliable)
13345 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
13346 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
13347 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
13348 (write_enn, initialize_async_io, enable_async_io)
13349 (disable_async_io, check_remote_input_interrupt_request)
13350 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
13351 (dead_thread_notify, prepare_resume_reply)
13352 (decode_address_to_semicolon, decode_address, decode_m_packet)
13353 (decode_M_packet, decode_X_packet, decode_xfer_write)
13354 (decode_search_memory_packet, unhexify, hexify)
13355 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
13356 (look_up_one_symbol, relocate_instruction)
13357 (monitor_output): Move to remote-utils.h, and include it.
13358 * remote-utils.h: New file.
13360 2013-09-05 Pedro Alves <palves@redhat.com>
13362 * server.h (_): Delete.
13364 2013-09-02 Pedro Alves <palves@redhat.com>
13366 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
13367 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
13369 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
13371 2013-09-02 Pierre Muller <muller@sourceware.org>
13373 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
13374 or WriteProcessMemory complete successfully and handle
13375 ERROR_PARTIAL_COPY error.
13377 2013-09-02 Pedro Alves <palves@redhat.com>
13379 * server.c (gdb_read_memory): Return -1 on traceframe memory read
13380 error instead of EIO.
13382 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
13385 * linux-low.c: Include filestuff.h.
13386 (linux_create_inferior) <pid == 0>: Call close_most_fds.
13387 * lynx-low.c: Include filestuff.h.
13388 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
13389 * server.c: Include filestuff.h.
13390 (main): Call notice_open_fds.
13391 * spu-low.c: Include filestuff.h.
13392 (spu_create_inferior) <pid == 0>: Call close_most_fds.
13394 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
13396 * Makefile.in: Explain why ../target and ../nat are not
13397 listed as include file search paths.
13398 (linux-waitpid.o): New object file rule.
13399 * configure.srv (srv_native_linux_obj): New variable.
13400 Replace all occurrences of linux native object files with
13401 $srv_native_linux_obj.
13402 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
13403 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
13404 (linux_enable_event_reporting): Remove declaration.
13405 (my_waitpid): Moved to common/linux-waitpid.c.
13406 (linux_wait_for_event): Pass ptid when calling
13407 linux_enable_event_reporting.
13408 (linux_supports_tracefork_flag): Remove.
13409 (linux_enable_event_reporting): Likewise.
13410 (linux_tracefork_grandchild): Remove.
13411 (STACK_SIZE): Moved to common/linux-ptrace.c.
13412 (linux_tracefork_child): Remove.
13413 (linux_test_for_tracefork): Remove.
13414 (linux_look_up_symbols): Call linux_supports_traceclone.
13415 (initialize_low): Remove call to linux_test_for_tracefork.
13416 * linux-low.h (PTRACE_TYPE_ARG3): Move to
13417 common/linux-ptrace.h.
13418 (PTRACE_TYPE_ARG4): Likewise.
13419 Include linux-ptrace.h.
13421 2013-08-21 Pedro Alves <palves@redhat.com>
13423 * config.in: Renegerate.
13425 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
13427 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
13428 (SFILES): Remove $(srcdir)/common/target-common.c and
13429 add $(srcdir)/target/waitstatus.c.
13430 (OBS): Remove target-common.o and add waitstatus.o.
13431 (server_h): Remove $(srcdir)/../common/target-common.h and
13432 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
13433 and $(srcdir)/../target/waitstatus.h.
13434 (target-common.o): Remove.
13435 (waitstatus.o): New target object file.
13436 * target.h: Do not include target-common.h and
13437 include target/resume.h, target/wait.h and
13438 target/waitstatus.h.
13440 2013-08-13 Luis Machado <lgustavo@codesourcery.com>
13442 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13443 to PTRACE_TYPE_ARG3.
13444 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13445 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
13447 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
13448 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
13450 2013-07-27 Jie Zhang <jie@codesourcery.com>
13451 Daniel Jacobowitz <dan@codesourcery.com>
13452 Yao Qi <yao@codesourcery.com>
13454 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
13455 (mips-linux-watch.o): New rule.
13456 (mips_linux_watch_h): New variable.
13457 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
13459 * linux-mips-low.c: Include mips-linux-watch.h.
13460 (struct arch_process_info, struct arch_lwp_info): New.
13461 (update_watch_registers_callback): New function.
13462 (mips_linux_new_process, mips_linux_new_thread) New functions.
13463 (mips_linux_prepare_to_resume, mips_insert_point): New
13465 (mips_remove_point, mips_stopped_by_watchpoint): New
13467 (rsp_bp_type_to_target_hw_bp_type): New function.
13468 (mips_stopped_data_address): New function.
13469 (the_low_target): Add watchpoint support functions.
13471 2013-07-27 Yao Qi <yao@codesourcery.com>
13473 * i386-low.c: Include break-common.h.
13474 (enum target_hw_bp_type): Remove.
13476 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
13478 * Makefile.in (SFILES): /common/target-common.c.
13479 (OBS): Add target-common.o.
13480 (server_h): Add $(srcdir)/../common/target-common.h.
13481 (target-common.o): New target.
13482 * server.c (queue_stop_reply_callback): Free
13483 status string after use.
13484 * target.c (target_waitstatus_to_string): Remove.
13485 * target.h: Include target-common.h.
13486 (resume_kind): Likewise.
13487 (target_waitkind): Likewise.
13488 (target_waitstatus): Likewise.
13489 (TARGET_WNOHANG): Likewise.
13491 2013-07-04 Yao Qi <yao@codesourcery.com>
13493 * Makefile.in (host_alias): Use @host_noncanonical@.
13494 (target_alias): Use @target_noncanonical@.
13495 * configure.ac: Use ACX_NONCANONICAL_TARGET and
13496 ACX_NONCANONICAL_HOST.
13497 * configure: Regenerated.
13500 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13502 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13503 * configure: Rebuild.
13504 * Makefile.in (version_host, version_target): Get from configure.
13505 (version.c): Use $(version_host) and $(version_target).
13507 2013-07-03 Pedro Alves <palves@redhat.com>
13509 * Makefile.in (config.status): Depend on development.sh.
13510 * acinclude.m4: Include libmcheck.m4.
13511 * configure: Regenerate.
13513 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13515 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
13516 attribute inside the parentheses.
13517 (winapi_DebugSetProcessKillOnExit): Ditto.
13518 (winapi_DebugBreakProcess): Ditto.
13519 (winapi_GenerateConsoleCtrlEvent): Ditto.
13521 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13523 * notif.h (notif_event): Add a dummy member to avoid compiler
13526 2013-07-01 Pedro Alves <palves@redhat.com>
13528 * hostio.c (HOSTIO_PATH_MAX): Define.
13529 (require_filename, handle_open, handle_unlink, handle_readlink):
13532 2013-07-01 Pedro Alves <palves@redhat.com>
13534 * server.h: Include "pathmax.h".
13535 * linux-low.c: Don't include sys/param.h.
13536 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
13538 * win32-low.c: Don't include sys/param.h.
13539 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
13541 2013-07-01 Pedro Alves <palves@redhat.com>
13543 * event-loop.c: Don't check HAVE_UNISTD_H before including
13545 * gdbreplay.c: Likewise.
13546 * remote-utils.c: Likewise.
13547 * server.c: Likewise.
13548 * configure.ac: Don't check for unistd.h.
13549 * configure: Regenerate.
13551 2013-06-28 Tom Tromey <tromey@redhat.com>
13553 * Makefile.in (version.c): Use version.in, not
13556 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13558 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13559 * configure: Rebuild.
13560 * Makefile.in (version_host, version_target): Get from configure.
13561 (version.c): Use $(version_host) and $(version_target).
13563 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13565 Fix trace-status to output user name without trailing colon.
13566 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
13568 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13570 Fix trace-status to output proper start-time and stop-time.
13571 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
13572 output start time and stop time in hex as gdb expects.
13574 2013-06-26 Pedro Alves <pedro@codesourcery.com>
13576 * tracepoint.c (build_traceframe_info_xml): Output trace state
13577 variables present in the trace buffer.
13579 2013-06-24 Tom Tromey <tromey@redhat.com>
13581 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
13583 (version.o): Remove.
13584 * gdbreplay.c: Include version.h.
13585 (version, host_name): Don't declare.
13586 * server.h: Include version.h.
13587 (version, host_name): Don't declare.
13589 2013-06-12 Pedro Alves <palves@redhat.com>
13591 * linux-x86-low.c (linux_is_elf64): Delete global.
13592 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
13593 with local linux_pid_exe_is_elf_64_file use.
13595 2013-06-11 Pedro Alves <palves@redhat.com>
13597 * linux-low.c (regset_disabled, disable_regset): New functions.
13598 (regsets_fetch_inferior_registers)
13599 (regsets_store_inferior_registers): Use them.
13600 (initialize_regsets_info); Don't allocate the disabled_regsets
13602 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
13605 2013-06-11 Pedro Alves <palves@redhat.com>
13607 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
13610 2013-06-11 Pedro Alves <palves@redhat.com>
13612 * linux-x86-low.c (initialize_low_arch): Call
13613 init_registers_x32_avx_linux.
13615 2013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13617 Fix compatibility with Android Bionic.
13618 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
13621 2013-06-07 Pedro Alves <palves@redhat.com>
13624 * Makefile.in (OBS): Add tdesc.o.
13625 (IPA_OBJS): Add tdesc-ipa.o.
13626 (tdesc-ipa.o): New rule.
13627 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
13629 * linux-low.c (new_inferior): Delete.
13630 (disabled_regsets, num_regsets): Delete.
13631 (linux_add_process): Adjust to set the new per-process
13633 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
13634 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
13635 was a stop. When calling arch_setup, switch the current inferior
13636 to the thread that got an event.
13637 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
13638 (regsets_fetch_inferior_registers)
13639 (regsets_store_inferior_registers): New regsets_info parameter.
13641 (linux_register_in_regsets): New regs_info parameter. Adjust to
13643 (register_addr, fetch_register, store_register): New usrregs_info
13644 parameter. Adjust to use it.
13645 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
13646 parameter regs_info. Adjust to use it.
13647 (linux_fetch_registers): Get the current inferior's regs_info, and
13649 (linux_store_registers): Ditto.
13650 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
13651 (initialize_low): Don't initialize the target_regsets here. Call
13652 initialize_low_arch.
13653 * linux-low.h (target_regsets): Delete declaration.
13654 (struct regsets_info): New.
13655 (struct usrregs_info): New.
13656 (struct regs_info): New.
13657 (struct process_info_private) <new_inferior>: New field.
13658 (struct linux_target_ops): Delete the num_regs, regmap, and
13659 regset_bitmap fields. New field regs_info.
13660 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
13661 * i387-fp.c (num_xmm_registers): Delete.
13662 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
13663 calls to new interface.
13664 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
13665 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
13666 Infer the number of xmm registers from the regcache's target
13668 * i387-fp.h (num_xmm_registers): Delete.
13669 * inferiors.c (add_thread): Don't install the thread's regcache
13671 * proc-service.c (gregset_info): Fetch the current inferior's
13672 regs_info. Adjust to use it.
13673 * regcache.c: Include tdesc.h.
13674 (register_bytes, reg_defs, num_registers)
13675 (gdbserver_expedite_regs): Delete.
13676 (get_thread_regcache): If the thread doesn't have a regcache yet,
13677 create one, instead of aborting gdbserver.
13678 (regcache_invalidate_one): Rename to ...
13679 (regcache_invalidate_thread): ... this.
13680 (regcache_invalidate_one): New.
13681 (regcache_invalidate): Only invalidate registers of the current
13683 (init_register_cache): Add target_desc parameter, and use it.
13684 (new_register_cache): Ditto. Assert the target description has a
13685 non zero registers_size.
13686 (regcache_cpy): Add assertions. Adjust.
13687 (realloc_register_cache, set_register_cache): Delete.
13688 (registers_to_string, registers_from_string): Adjust.
13689 (find_register_by_name, find_regno, find_register_by_number)
13690 (register_cache_size): Add target_desc parameter, and use it.
13691 (free_register_cache_thread, free_register_cache_thread_one)
13692 (regcache_release, register_cache_size): New.
13693 (register_size): Add target_desc parameter, and use it.
13694 (register_data, supply_register, supply_register_zeroed)
13695 (supply_regblock, supply_register_by_name, collect_register)
13696 (collect_register_as_string, collect_register_by_name): Adjust.
13697 * regcache.h (struct target_desc): Forward declare.
13698 (struct regcache) <tdesc>: New field.
13699 (init_register_cache, new_register_cache): Add target_desc
13701 (regcache_invalidate_thread): Declare.
13702 (regcache_invalidate_one): Delete declaration.
13703 (regcache_release): Declare.
13704 (find_register_by_number, register_cache_size, register_size)
13705 (find_regno): Add target_desc parameter.
13706 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
13708 * remote-utils.c: Include tdesc.h.
13709 (outreg, prepare_resume_reply): Adjust.
13710 * server.c: Include tdesc.h.
13711 (gdbserver_xmltarget): Delete declaration.
13712 (get_features_xml, process_serial_event): Adjust.
13713 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
13715 (struct process_info) <tdesc>: New field.
13716 (ipa_tdesc): Declare.
13717 * tdesc.c: New file.
13718 * tdesc.h: New file.
13719 * tracepoint.c: Include tdesc.h.
13720 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
13721 (get_context_regcache): Adjust to pass ipa_tdesc down.
13722 (do_action_at_tracepoint): Adjust to get the register cache size
13723 from the context regcache's description.
13724 (traceframe_walk_blocks): Adjust to get the register cache size
13725 from the current trace frame's description.
13726 (traceframe_get_pc): Adjust to get current trace frame's
13727 description and pass it down.
13728 (gdb_collect): Adjust to get the register cache size from the
13730 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
13731 (gdbserver_xmltarget): Delete.
13732 (initialize_low_tracepoint): Set the ipa's target description.
13733 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
13734 (initialize_low_tracepoint): Set the ipa's target description.
13735 * linux-x86-low.c: Include tdesc.h.
13736 [__x86_64__] (is_64bit_tdesc): New.
13737 (ps_get_thread_area, x86_get_thread_area): Use it.
13738 (i386_cannot_store_register): Rename to ...
13739 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
13740 (i386_cannot_fetch_register): Rename to ...
13741 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
13742 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
13744 (target_regsets): Rename to ...
13745 (x86_regsets): ... this.
13746 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
13748 (x86_siginfo_fixup): Use is_64bit_tdesc.
13749 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
13750 (tdesc_x32_avx_linux, tdesc_x32_linux)
13751 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
13753 (x86_linux_update_xmltarget): Delete.
13754 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
13755 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
13756 (AMD64_LINUX_USER64_CS): New.
13757 (x86_linux_read_description): New, based on
13758 x86_linux_update_xmltarget.
13759 (same_process_callback): New.
13760 (x86_arch_setup_process_callback): New.
13761 (x86_linux_update_xmltarget): New.
13762 (x86_regsets_info): New.
13763 (amd64_linux_regs_info): New.
13764 (i386_linux_usrregs_info): New.
13765 (i386_linux_regs_info): New.
13766 (x86_linux_regs_info): New.
13767 (x86_arch_setup): Reimplement.
13768 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
13769 (x86_emit_ops): Ditto.
13770 (the_low_target): Adjust. Install x86_linux_regs_info,
13771 x86_cannot_fetch_register, and x86_cannot_store_register.
13772 (initialize_low_arch): New.
13773 * linux-ia64-low.c (tdesc_ia64): Declare.
13774 (ia64_fetch_register): Adjust.
13775 (ia64_usrregs_info, regs_info): New globals.
13776 (ia64_regs_info): New function.
13777 (the_low_target): Adjust.
13778 (initialize_low_arch): New function.
13779 * linux-sparc-low.c (tdesc_sparc64): Declare.
13780 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
13782 (sparc_arch_setup): New function.
13783 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
13784 (the_low_target): Adjust.
13785 (initialize_low_arch): New function.
13786 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
13787 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
13788 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
13789 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
13790 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
13791 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
13792 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
13793 (tdesc_powerpc_isa205_vsx64l): Declare.
13794 (ppc_cannot_store_register, ppc_collect_ptrace_register)
13795 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
13796 (ppc_set_pc, ppc_get_hwcap): Adjust.
13797 (ppc_usrregs_info): Forward declare.
13798 (!__powerpc64__) ppc_regmap_adjusted: New global.
13799 (ppc_arch_setup): Adjust to the current process'es target
13801 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
13802 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
13803 (ppc_store_evrregset): Adjust.
13804 (target_regsets): Rename to ...
13805 (ppc_regsets): ... this, and make static.
13806 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
13807 (ppc_regs_info): New function.
13808 (the_low_target): Adjust.
13809 (initialize_low_arch): New function.
13810 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
13811 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
13812 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
13813 (tdesc_s390x_linux64v2): Declare.
13814 (s390_collect_ptrace_register, s390_supply_ptrace_register)
13815 (s390_fill_gregset, s390_store_last_break): Adjust.
13816 (target_regsets): Rename to ...
13817 (s390_regsets): ... this, and make static.
13818 (s390_get_pc, s390_set_pc): Adjust.
13819 (s390_get_hwcap): New target_desc parameter, and use it.
13820 [__s390x__] (have_hwcap_s390_high_gprs): New global.
13821 (s390_arch_setup): Adjust to set the current process'es target
13822 description. Don't adjust the regmap.
13823 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
13824 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
13825 (regs_info_3264): New globals.
13826 (s390_regs_info): New function.
13827 (the_low_target): Adjust.
13828 (initialize_low_arch): New function.
13829 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
13830 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
13831 [__mips64] (init_registers_mips_linux)
13832 (init_registers_mips_dsp_linux): Delete defines.
13833 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
13834 (have_dsp): New global.
13835 (mips_read_description): New, based on mips_arch_setup.
13836 (mips_arch_setup): Reimplement.
13837 (get_usrregs_info): New function.
13838 (mips_cannot_fetch_register, mips_cannot_store_register)
13839 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
13840 (mips_fill_fpregset, mips_store_fpregset): Adjust.
13841 (target_regsets): Rename to ...
13842 (mips_regsets): ... this, and make static.
13843 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
13844 (dsp_regs_info, regs_info): New globals.
13845 (mips_regs_info): New function.
13846 (the_low_target): Adjust.
13847 (initialize_low_arch): New function.
13848 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
13849 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
13851 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
13852 (arm_read_description): New, with bits factored from
13854 (arm_arch_setup): Reimplement.
13855 (target_regsets): Rename to ...
13856 (arm_regsets): ... this, and make static.
13857 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
13858 (arm_regs_info): New function.
13859 (the_low_target): Adjust.
13860 (initialize_low_arch): New function.
13861 * linux-m68k-low.c (tdesc_m68k): Declare.
13862 (target_regsets): Rename to ...
13863 (m68k_regsets): ... this, and make static.
13864 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
13865 (m68k_regs_info): New function.
13866 (m68k_arch_setup): New function.
13867 (the_low_target): Adjust.
13868 (initialize_low_arch): New function.
13869 * linux-sh-low.c (tdesc_sharch): Declare.
13870 (target_regsets): Rename to ...
13871 (sh_regsets): ... this, and make static.
13872 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
13873 (sh_regs_info, sh_arch_setup): New functions.
13874 (the_low_target): Adjust.
13875 (initialize_low_arch): New function.
13876 * linux-bfin-low.c (tdesc_bfin): Declare.
13877 (bfin_arch_setup): New function.
13878 (bfin_usrregs_info, regs_info): New globals.
13879 (bfin_regs_info): New function.
13880 (the_low_target): Adjust.
13881 (initialize_low_arch): New function.
13882 * linux-cris-low.c (tdesc_cris): Declare.
13883 (cris_arch_setup): New function.
13884 (cris_usrregs_info, regs_info): New globals.
13885 (cris_regs_info): New function.
13886 (the_low_target): Adjust.
13887 (initialize_low_arch): New function.
13888 * linux-cris-low.c (tdesc_crisv32): Declare.
13889 (cris_arch_setup): New function.
13890 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
13891 (cris_regs_info): New function.
13892 (the_low_target): Adjust.
13893 (initialize_low_arch): New function.
13894 * linux-m32r-low.c (tdesc_m32r): Declare.
13895 (m32r_arch_setup): New function.
13896 (m32r_usrregs_info, regs_info): New globals.
13897 (m32r_regs_info): Adjust.
13898 (initialize_low_arch): New function.
13899 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
13900 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
13901 (tic6x_usrregs_info): Forward declare.
13902 (tic6x_read_description): New function, based on ...
13903 (tic6x_arch_setup): ... this. Reimplement.
13904 (target_regsets): Rename to ...
13905 (tic6x_regsets): ... this, and make static.
13906 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
13907 (tic6x_regs_info): New function.
13908 (the_low_target): Adjust.
13909 (initialize_low_arch): New function.
13910 * linux-xtensa-low.c (tdesc_xtensa): Declare.
13911 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
13912 (target_regsets): Rename to ...
13913 (xtensa_regsets): ... this, and make static.
13914 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
13916 (xtensa_arch_setup, xtensa_regs_info): New functions.
13917 (the_low_target): Adjust.
13918 (initialize_low_arch): New function.
13919 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
13920 (nios2_arch_setup): Set the current process'es tdesc.
13921 (target_regsets): Rename to ...
13922 (nios2_regsets): ... this.
13923 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
13924 (nios2_regs_info): New function.
13925 (the_low_target): Adjust.
13926 (initialize_low_arch): New function.
13927 * linux-aarch64-low.c (tdesc_aarch64): Declare.
13928 (aarch64_arch_setup): Set the current process'es tdesc.
13929 (target_regsets): Rename to ...
13930 (aarch64_regsets): ... this.
13931 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
13932 (aarch64_regs_info): New function.
13933 (the_low_target): Adjust.
13934 (initialize_low_arch): New function.
13935 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
13937 (target_regsets): Rename to ...
13938 (tile_regsets): ... this.
13939 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
13940 (tile_regs_info): New function.
13941 (tile_arch_setup): Set the current process'es tdesc.
13942 (the_low_target): Adjust.
13943 (initialize_low_arch): New function.
13944 * spu-low.c (tdesc_spu): Declare.
13945 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
13946 * win32-arm-low.c (tdesc_arm): Declare.
13947 (arm_arch_setup): New function.
13948 (the_low_target): Install arm_arch_setup instead of
13949 init_registers_arm.
13950 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
13951 (init_windows_x86): Rename to ...
13952 (i386_arch_setup): ... this. Set `win32_tdesc'.
13953 (the_low_target): Adjust.
13954 * win32-low.c (win32_tdesc): New global.
13955 (child_add_thread): Don't create the thread cache here.
13956 (do_initial_child_stuff): Set the new process'es tdesc.
13957 * win32-low.h (struct target_desc): Forward declare.
13958 (win32_tdesc): Declare.
13959 * lynx-i386-low.c (tdesc_i386): Declare global.
13960 (lynx_i386_arch_setup): Set `lynx_tdesc'.
13961 * lynx-low.c (lynx_tdesc): New global.
13962 (lynx_add_process): Set the new process'es tdesc.
13963 * lynx-low.h (struct target_desc): Forward declare.
13964 (lynx_tdesc): Declare global.
13965 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
13966 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
13967 * nto-low.c (nto_tdesc): New global.
13968 (do_attach): Set the new process'es tdesc.
13969 * nto-low.h (struct target_desc): Forward declare.
13970 (nto_tdesc): Declare.
13971 * nto-x86-low.c (tdesc_i386): Declare.
13972 (nto_x86_arch_setup): Set `nto_tdesc'.
13974 2013-06-04 Gary Benson <gbenson@redhat.com>
13976 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
13977 to qSupported response when appropriate.
13978 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
13979 with nonzero-length annex.
13980 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
13981 arguments supplied in annex.
13983 2013-05-31 Doug Evans <dje@google.com>
13986 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
13987 64 bits in 64-cross-32 environment.
13989 2013-05-28 Pedro Alves <palves@redhat.com>
13991 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
13992 (aarch64-without-fpu.c): Delete rule.
13993 * configure.srv (aarch64*-*-linux*): Remove references to
13994 aarch64-without-fpu.o and aarch64-without-fpu.xml.
13995 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
13998 2013-05-24 Pedro Alves <palves@redhat.com>
14000 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
14001 instead of strchr/decode_address. Error if the range isn't split
14002 with a ','. Don't assume there's be a ':' in the action.
14004 2013-05-23 Yao Qi <yao@codesourcery.com>
14005 Pedro Alves <palves@redhat.com>
14007 * linux-low.c (lwp_in_step_range): New function.
14008 (linux_wait_1): If the thread was range stepping and stopped
14009 outside the stepping range, report the stop to GDB. Otherwise,
14010 continue stepping. Add range stepping debug output.
14011 (linux_set_resume_request): Copy the step range from the resume
14012 request to the lwp.
14013 (linux_supports_range_stepping): New.
14014 (linux_target_ops) <supports_range_stepping>: Set to
14015 linux_supports_range_stepping.
14016 * linux-low.h (struct linux_target_ops)
14017 <supports_range_stepping>: New field.
14018 (struct lwp_info) <step_range_start, step_range_end>: New fields.
14019 * linux-x86-low.c (x86_supports_range_stepping): New.
14020 (the_low_target) <supports_range_stepping>: Set to
14021 x86_supports_range_stepping.
14022 * server.c (handle_v_cont): Handle 'r' action.
14023 (handle_v_requests): Append ";r" if the target supports range
14025 * target.h (struct thread_resume) <step_range_start,
14026 step_range_end>: New fields.
14027 (struct target_ops) <supports_range_stepping>:
14029 (target_supports_range_stepping): New macro.
14031 2013-05-17 Joel Brobecker <brobecker@adacore.com>
14033 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
14034 confusion in comment.
14036 2013-05-17 Joel Brobecker <brobecker@adacore.com>
14038 * lynx-low.c (struct process_info_private): New type.
14039 (lynx_add_process): New function.
14040 (lynx_create_inferior, lynx_attach): Replace calls to
14041 add_process by calls to lynx_add_process.
14042 (lynx_resume): If PTID is null, then try using
14043 current_process()->private->last_wait_event_ptid.
14045 (lynx_clear_inferiors): Delete. The contents of that function
14046 has been inlined in lynx_mourn;
14047 (lynx_wait_1): Save the ptid in the process's private data.
14048 (lynx_mourn): Free the process' private data. Replace call
14049 to lynx_clear_inferiors by call to clear_inferiors.
14051 2013-05-17 Yao Qi <yao@codesourcery.com>
14053 * i386-low.c (i386_length_and_rw_bits): Move the comment to
14056 2013-05-16 Luis Machado <lgustavo@codesourcery.com>
14058 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
14059 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
14060 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
14061 PT_TEXT_END_ADDR guards. Update comments.
14062 (linux_target_op) <read_offsets>: Conditionally define to
14063 linux_read_offsets if the target is UCLIBC and if it defines
14064 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
14066 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
14067 Andrew Jenner <andrew@codesourcery.com>
14069 * Makefile.in (SFILES): Add linux-nios2-low.c.
14070 (clean): Add action to delete nios2-linux.c.
14071 (nios2-linux.c): New rule.
14072 * configure.srv: Add nios2*-*-linux*.
14073 * linux-nios2-low.c: New.
14075 2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
14077 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
14079 2013-04-25 Hui Zhu <hui@codesourcery.com>
14082 * ax.c (ax_printf): Add fflush.
14084 2013-04-22 Tom Tromey <tromey@redhat.com>
14086 * Makefile.in (SFILES): Add filestuff.c.
14087 (OBS): Add filestuff.o.
14088 (filestuff.o): New target.
14089 * config.in, configure: Rebuild.
14090 * configure.ac: Check for fdwalk, pipe2.
14092 2013-04-17 Pedro Alves <palves@redhat.com>
14094 * configure.ac (USE_THREAD_DB): Delete variable.
14095 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
14096 Don't AC_SUBST USE_THREAD_DB.
14097 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
14098 * config.in, configure: Regenerate.
14100 2013-04-16 Pedro Alves <palves@redhat.com>
14102 * linux-low.h (struct lwp_info) <thread_known>: Move under
14103 the USE_THREAD_DB #ifdef.
14105 2013-04-16 Pedro Alves <palves@redhat.com>
14107 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
14108 (linux-low.o): Delete rule.
14109 * linux-low.h: Always include "gdb_thread_db.h" instead of
14110 conditionally including thread_db.h.
14111 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
14114 2013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14116 * Makefile.in (install-only): Fix make install regression.
14118 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
14120 Convert man pages to texinfo, new gdbinit.5 texinfo page.
14121 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
14123 * gdbserver.1: Remove.
14125 2013-03-22 Pedro Alves <palves@redhat.com>
14127 * linux-low.c (handle_extended_wait): Don't call
14128 linux_enable_event_reporting.
14130 2013-03-15 Tony Theodore <tonyt@logyst.com>
14133 * Makefile.in (SHELL): Use @SHELL@.
14135 2013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
14137 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
14140 2013-03-13 Joel Brobecker <brobecker@adacore.com>
14142 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
14143 Remove extraneous NULL element.
14145 2013-03-13 Yao Qi <yao@codesourcery.com>
14147 * tracepoint.c (traceframe_read_tsv): Look for the last matched
14148 'V' block in trace frame.
14150 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14152 * target.h (struct target_ops): Add btrace ops.
14153 (target_supports_btrace): New macro.
14154 (target_enable_btrace): New macro.
14155 (target_disable_btrace): New macro.
14156 (target_read_btrace): New macro.
14157 * gdbthread.h (struct thread_info): Add btrace field.
14158 * server.c: Include btrace-common.h.
14159 (handle_btrace_general_set): New function.
14160 (handle_btrace_enable): New function.
14161 (handle_btrace_disable): New function.
14162 (handle_general_set): Call handle_btrace_general_set.
14163 (handle_qxfer_btrace): New function.
14164 (struct qxfer qxfer_packets[]): Add btrace entry.
14165 * inferiors.c (remove_thread): Disable btrace.
14166 * linux-low: Include linux-btrace.h.
14167 (linux_low_enable_btrace): New function.
14168 (linux_low_read_btrace): New function.
14169 (linux_target_ops): Add btrace ops.
14170 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
14171 Add srv_linux_btrace=yes.
14172 (x86_64-*-linux*): Add linux-btrace.o.
14173 Add srv_linux_btrace=yes.
14174 * configure.ac: Define HAVE_LINUX_BTRACE.
14175 * config.in: Regenerated.
14176 * configure: Regenerated.
14178 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14180 * server.c (handle_qxfer): Preserve error message if -3 is
14182 (qxfer): Document the -3 return value.
14184 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14186 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
14187 (linux_btrace_h): New variable.
14188 (linux-btrace.o): New rule.
14190 2013-03-08 Stan Shebs <stan@codesourcery.com>
14191 Hafiz Abid Qadeer <abidh@codesourcery.com>
14193 * tracepoint.c (trace_buffer_size): New global.
14194 (DEFAULT_TRACE_BUFFER_SIZE): New define.
14195 (init_trace_buffer): Change to one-argument function. Allocate
14196 trace buffer memory.
14197 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
14198 handle QTBuffer:size packet.
14199 (cmd_bigqtbuffer_size): New function.
14200 (initialize_tracepoint): Call init_trace_buffer with
14201 DEFAULT_TRACE_BUFFER_SIZE.
14202 * server.c (handle_query): Add QTBuffer:size in the
14205 2013-03-07 Yao Qi <yao@codesourcery.com>
14207 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
14208 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
14210 (cmd_qtsp): Adjust condition. Do post increment.
14211 Set cur_action and cur_step_action back to 0.
14213 2013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
14216 * linux-low.c (linux_write_memory): Return early success if LEN is
14219 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
14221 * configure.srv: Add x86_64-*-cygwin* as target.
14223 2013-02-28 Tom Tromey <tromey@redhat.com>
14225 * configure.ac: Invoke AC_SYS_LARGEFILE.
14226 * configure, config.in: Rebuild.
14228 2013-02-28 Corinna Vinschen <vinschen@redhat.com>
14230 * win32-low.c: Throughout, fix format strings and casts of
14231 printf-like functions to avoid type related warnings on all
14233 (get_child_debug_event): Print dwDebugEventCode as hex since
14234 that's how it's usually documented.
14236 2013-02-28 Yao Qi <yao@codesourcery.com>
14238 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
14241 2013-02-27 Jiong Wang <jiwang@tilera.com>
14243 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
14244 (reg-tilegx32.c): New rule.
14245 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
14246 * linux-tile-low.c (tile_arch_setup): New function. Invoke
14247 different register info initializer according to elf class.
14248 (init_registers_tilgx32): New function. The tilegx32 register info
14250 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
14251 (tile_store_gregset): Likewise.
14253 2013-02-27 Yao Qi <yao@codesourcery.com>
14255 * server.c (process_point_options): Print debug message when
14256 debug_threads is true.
14258 2013-02-26 Yao Qi <yao@codesourcery.com>
14260 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
14262 2013-02-19 Pedro Alves <palves@redhat.com>
14263 Kai Tietz <ktietz@redhat.com>
14267 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
14268 instead of strtoul to extract address from packet.
14269 (process_serial_event) <'z'>: Likewise.
14271 2013-02-18 Yao Qi <yao@codesourcery.com>
14273 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
14275 2013-02-14 Pedro Alves <palves@redhat.com>
14279 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
14280 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
14282 2013-02-14 Pedro Alves <palves@redhat.com>
14284 * tracepoint.c (cmd_qtdpsrc): Use savestring.
14286 2013-02-14 Pedro Alves <palves@redhat.com>
14288 * tracepoint.c (save_string): Delete.
14289 (add_tracepoint_action): Use savestring instead of save_string.
14291 2013-02-12 Pedro Alves <palves@redhat.com>
14293 * linux-xtensa-low.c: Ditto.
14294 * xtensa-xtregs.c: Ditto.
14296 2013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14298 * thread-db.c (thread_db_get_tls_address): NULL pointer check
14301 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14303 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
14304 aarch64_num_wp_regs and aarch64_num_bp_regs to
14305 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
14307 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14309 * linux-aarch64-low.c (ps_get_thread_area): Replace
14310 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
14312 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
14313 Marcus Shawcroft <marcus.shawcroft@arm.com>
14314 Nigel Stephens <nigel.stephens@arm.com>
14315 Yufeng Zhang <yufeng.zhang@arm.com>
14317 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
14318 (aarch64.c, aarch64-without-fpu.c): New targets.
14319 * configure.srv (aarch64*-*-linux*): New.
14320 * linux-aarch64-low.c: New file.
14322 2013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
14324 * linux-low.c (handle_extended_wait, linux_create_inferior)
14325 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
14326 (dequeue_one_deferred_signal, linux_resume_one_thread)
14327 (fetch_register, linux_write_memory, linux_enable_event_reporting)
14328 (linux_tracefork_grandchild, linux_test_for_tracefork)
14329 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
14330 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
14331 where the argument is 0.
14333 2013-01-25 Yao Qi <yao@codesourcery.com>
14335 * event-loop.c: Include "queue.h".
14336 (gdb_event_p): New typedef.
14337 (struct gdb_event) <next_event>: Remove.
14338 (event_queue): Change to QUEUE(gdb_event_p).
14339 (async_queue_event): Remove.
14340 (gdb_event_xfree): New.
14341 (initialize_event_loop): New.
14342 (process_event): Use API from QUEUE.
14343 (wait_for_event): Likewise.
14344 * server.c (main): Call initialize_event_loop.
14345 * server.h (initialize_event_loop): Declare.
14347 2013-01-18 Yao Qi <yao@codesourcery.com>
14349 * ax.h (struct eval_agent_expr_context): New.
14350 (gdb_eval_agent_expr): Update declaration.
14351 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
14352 TFRAME. Add new argument CTX.
14353 * server.h (struct eval_agent_expr_context): Declare.
14354 (agent_mem_read, agent_tsv_read): Update declaration.
14355 (agent_mem_read_string): Likewise.
14356 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
14357 (add_traceframe_block): Add new argument TPOINT.
14358 Increase TPOINT->traceframe_usage.
14359 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
14360 eval_tracepoint_agent_expr.
14361 (condition_true_at_tracepoint): Likewise.
14362 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
14363 (agent_mem_read_string, agent_tsv_read): Likewise.
14365 2013-01-16 Yao Qi <yao@codesourcery.com>
14367 * linux-low.c (linux_resume_one_lwp): Don't check
14368 'lwp->bp_reinsert != 0'.
14370 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14371 Pedro Alves <palves@redhat.com>
14373 * lynx-low.c (ptrace_request_to_str): Define a temporary
14374 macro and use it to simplify this function's implementation.
14376 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14378 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
14381 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14383 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
14385 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14387 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
14389 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14391 * lynx-low.c (lynx_resume): Use the resume_info parameter
14392 to determine the ptid for the lynx_ptrace call, unless
14393 it is equal to minus_one_ptid, in which case we use the
14394 ptid of the current_inferior.
14395 (lynx_wait_1): After having received a thread create/exit
14396 event, resume the inferior's execution using the signaling
14397 thread's ptid, rather than the old ptid.
14399 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14401 * lynx-low.c (lynx_resume): Delete variable ret.
14403 2013-01-01 Joel Brobecker <brobecker@adacore.com>
14405 * gdbreplay.c (gdbreplay_version): Update copyright year.
14406 * server.c (gdbserver_version): Likewise.
14408 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14410 * lynx-low.c (lynx_wait_1): Add debug trace before adding
14413 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14415 * lynx-low.c (ptrace_request_to_str): Add handling for
14416 PTRACE_GETTRACESIG.
14418 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14420 * lynx-low.c (lynx_attach): Delete variable new_process.
14422 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14424 * lynx-low.c (lynx_create_inferior): Delete variable
14427 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14429 * lynx-low.c (ptrace_request_to_str): Do not handle
14430 PTRACE_GETTHREADLIST if this macro does not exist.
14432 2012-12-15 Yao Qi <yao@codesourcery.com>
14434 * Makefile.in (OBS): Add notif.o.
14435 * notif.c, notif.h: New.
14436 * server.c: Include "notif.h".
14437 (struct vstop_notif) <next>: Remove.
14439 (queue_stop_reply): Update.
14440 (push_event, send_next_stop_reply): Remove.
14441 (discard_queued_stop_replies): Update.
14442 (notif_stop): New variable.
14443 (handle_v_stopped): Remove.
14444 (handle_v_requests): Don't call handle_v_stopped. Call
14445 handle_ack_notif instead.
14446 (queue_stop_reply_callback): Call notif_event_enque instead
14447 of queue_stop_reply.
14448 (handle_status): Don't call send_next_stop_reply, call
14449 notif_write_event instead.
14450 (kill_inferior_callback): Likewise.
14451 (detach_or_kill_inferior_callback): Likewise.
14452 (main): Call initialize_notif.
14453 (process_serial_event): Call QUEUE_is_empty.
14454 (handle_target_event): Call notif_push instead of push event.
14455 * server.h (push_event): Remove declaration.
14457 2012-12-10 Tom Tromey <tromey@redhat.com>
14459 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
14460 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
14463 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
14464 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
14465 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
14466 (amd64-linux-ipa.o, ax.o): Rewrite.
14467 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
14468 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
14469 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
14470 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
14471 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
14472 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
14473 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
14474 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
14475 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
14476 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
14477 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
14478 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
14479 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
14480 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
14481 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
14482 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
14483 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
14484 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
14485 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
14486 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
14487 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
14488 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
14489 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
14490 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
14491 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
14492 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
14493 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
14494 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
14495 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
14496 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
14497 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
14498 (reg-tilegx.o): Remove.
14499 (all_object_files): New macro.
14500 Include .deps files.
14501 * aclocal.m4, configure: Rebuild.
14502 * acinclude.m4: Include depstand.m4, lead-dot.m4.
14503 * configure.ac: Invoke ZW_CREATE_DEPDIR,
14504 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
14506 2012-12-05 Tom Tromey <tromey@redhat.com>
14509 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
14511 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
14513 * configure.ac: Check for linux/perf_event.h.
14514 * config.in: Regenerated.
14515 * configure: Regenerated.
14517 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
14519 * hostio.c (handle_readlink): Decrease buffer size
14520 parameter passed to readlink by one byte.
14522 2012-11-26 Yao Qi <yao@codesourcery.com>
14524 * configure.ac (build_warnings): Append '-Wempty-body'.
14525 * configure: Regenerated.
14526 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
14529 2012-11-15 Pierre Muller <muller@sourceware.org>
14531 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
14532 * config.in: Regenerate.
14533 * configure: Regenerate.
14534 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
14535 Use "gdb_wait.h" header instead of <sys/wait.h> header.
14536 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14537 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
14539 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
14540 instead of <sys/wait.h> header.
14541 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14543 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
14545 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
14546 (various make rules): Remove -DGDBSERVER
14548 2012-11-09 Yao Qi <yao@codesourcery.com>
14550 * spu-low.c (current_ptid): Move it to ..
14551 * gdbthread.h: ... here. New.
14552 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
14553 * server.c (myresume, process_serial_event): Likewise.
14554 * thread-db.c (thread_db_find_new_threads): Likewise.
14555 * tracepoint.c (run_inferior_command): Likewise.
14557 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
14559 * server.c (handle_search_memory_1): Include access length in
14562 2012-09-05 Michael Brandt <michael.brandt@axis.com>
14564 * linux-crisv32-low.c: Fix compile errors.
14566 2012-09-04 Yao Qi <yao@codesourcery.com>
14568 * tracepoint.c (cmd_qtsv): Adjust debug message.
14569 Don't check CUR_TPOINT.
14571 2012-08-28 Yao Qi <yao@codesourcery.com>
14573 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
14574 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
14575 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
14576 Remove declarations of xmalloc, xreallloc, xstrdup and
14578 * Makefile.in (libiberty_h): New.
14579 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
14580 (linux-bfin-low.o): Append dependency 'libiberty.h'.
14582 2012-08-23 Yao Qi <yao@codesourcery.com>
14584 * server.h: Remove declaration of 'xsnprintf'.
14586 2012-08-22 Keith Seitz <keiths@redhat.com>
14588 * server.h: Include build-gnulib-gbserver/config.h.
14589 * gdbreplay.c: Likewise.
14591 2012-08-08 Doug Evans <dje@google.com>
14593 * Makefile.in (SFILES): Add gdb_vecs.c.
14594 (OBS): Add gdb_vecs.o.
14595 (gdb_vecs_h, host_defs_h): New variables.
14596 (thread-db.o): Add $(gdb_vecs_h) dependency.
14597 (gdb_vecs.o): New rule.
14598 * thread-db.c: #include "gdb_vecs.h".
14599 (thread_db_load_search): Use a vector to iterate over path elements.
14600 Handle text appearing after "$pdir".
14602 * configure.ac: Add check for strstr.
14603 * config.in: Regenerate.
14604 * configure: Regenerate.
14606 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
14608 * hostio.c (handle_pread): If pread fails, fall back to attempting
14610 (handle_pwrite): Likewise for pwrite.
14612 2012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
14614 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
14615 between unsupported TYPE and unimplementable ADDR/LEN combination.
14616 (arm_insert_point): Act on new return value.
14618 2012-07-31 Pedro Alves <palves@redhat.com>
14620 * server.c (process_point_options): Only skip tokens if we find
14621 one that is unrecognized. Don't treat 'X' specially while
14622 skipping unrecognized tokens.
14624 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
14626 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
14627 to 4-byte-align HW breakpoint addresses for Thumb.
14629 2012-07-27 Yao Qi <yao@codesourcery.com>
14633 * server.h: Declare gdb_agent_about_to_close.
14634 * target.c (kill_inferior): Include "agent.h".
14635 New. Send command 'kill'.
14636 * target.h (kill_inferior): Removed macro.
14637 * tracepoint.c (gdb_agent_about_to_close): New.
14638 (gdb_agent_helper_thread): Handle command 'close'.
14639 Wait endlessly until the inferior stops.
14640 Install gdb_agent_remove_socket to atexit hook.
14641 (agent_socket_name): New static variable.
14642 (gdb_agent_socket_init): Replace local variable 'name' with
14643 'agent_socket_name'.
14644 (gdb_agent_remove_socket): New.
14646 2012-07-27 Yao Qi <yao@codesourcery.com>
14648 * server.c (process_point_options): Stop at 'X' when parsing.
14650 2012-07-19 Michael Eager <eager@eagercon.com>
14652 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
14654 * linux-x86-low.c (x86_insert_point, x86_remove_point):
14655 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
14656 hardware breakpoint.
14658 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14660 * gdbserver/linux-low.c (initialize_low): Call
14661 linux_ptrace_init_warnings.
14663 2012-07-02 Doug Evans <dje@google.com>
14665 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
14668 2012-07-02 Stan Shebs <stan@codesourcery.com>
14670 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
14671 (ax.o): Add it to build rule.
14673 (OBS): Add format.o.
14674 (IPA_OBS): Add format.o.
14675 * server.c (handle_query): Claim support for breakpoint commands.
14676 (process_point_options): Add command case.
14677 (process_serial_event): Leave running if there are printfs in
14679 * mem-break.h (any_persistent_commands): Declare.
14680 (add_breakpoint_commands): Declare.
14681 (gdb_no_commands_at_breakpoint): Declare.
14682 (run_breakpoint_commands): Declare.
14683 * mem-break.c (struct point_command_list): New struct.
14684 (struct breakpoint): New field command_list.
14685 (any_persistent_commands): New function.
14686 (add_commands_to_breakpoint): New function.
14687 (add_breakpoint_commands): New function.
14688 (gdb_no_commands_at_breakpoint): New function.
14689 (run_breakpoint_commands): New function.
14690 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
14692 * ax.c: Include format.h.
14693 (ax_printf): New function.
14694 (gdb_eval_agent_expr): Add printf opcode.
14696 2012-06-13 Yao Qi <yao@codesourcery.com>
14698 * server.c (start_inferior): Remove duplicated writes to fields
14699 'last_resume_kind' and 'last_status' of 'current_inferior'.
14701 2012-06-12 Yao Qi <yao@codesourcery.com>
14702 Pedro Alves <palves@redhat.com>
14704 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
14706 * server.c (handle_v_cont): Extend comment.
14708 2012-06-11 Yao Qi <yao@codesourcery.com>
14710 * linux-low.c (linux_attach): Add 'static'.
14712 2012-06-06 Yao Qi <yao@codesourcery.com>
14714 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
14716 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
14718 Fix gcc -flto compilation warning.
14719 * server.c (main): Make variable multi_mode and attach volatile.
14721 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14723 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
14724 if the platform doesn't know about it.
14726 2012-05-30 Jeff Kenton <jkenton@tilera.com>
14728 * Makefile.in (SFILES): Add linux-tile-low.c.
14729 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
14730 * configure.srv: Handle tilegx-*-linux*.
14731 * linux-tile-low.c: New file.
14733 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
14735 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
14737 2012-05-24 Pedro Alves <palves@redhat.com>
14741 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
14743 2012-05-24 Pedro Alves <palves@redhat.com>
14747 Replace target_signal with gdb_signal throughout.
14749 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
14751 * linux-low.c (linux_store_registers): Avoid the copying sequence
14752 when no data has been retrieved by ptrace.
14754 2012-05-22 Will Deacon <will.deacon@arm.com>
14756 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
14757 Include asm/ptrace.h.
14758 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
14761 2012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
14763 * linux-low.c (linux_store_registers): Don't re-retrieve data
14764 with ptrace that has already been obtained from /proc. Always
14765 copy any data retrieved with ptrace to the buffer supplied.
14767 2012-05-11 Yao Qi <yao@codesourcery.com>
14768 Pedro Alves <palves@redhat.com>
14770 * linux-low.c (enum stopping_threads_kind): New.
14771 (stopping_threads): Change type to `enum stopping_threads_kind'.
14772 (handle_extended_wait): If stopping and suspending threads, leave
14773 the new_lwp suspended too.
14774 (linux_wait_for_event): Adjust.
14775 (stop_all_lwps): Set `stopping_threads' to
14776 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
14777 whether we're suspending threads or just stopping them. Assert no
14780 2012-04-29 Yao Qi <yao@codesourcery.com>
14782 * server.h: Move some code to ...
14783 * gdbthread.h: ... here. New.
14784 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
14785 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
14786 (nto-low.o, win32-low.o): Likewise.
14787 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
14788 * regcache.c, remote-utils.c, server.c: Likewise.
14789 * target.c, tracepoint.c, win32-low.c: Likewise.
14791 2012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14793 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
14794 (PTRACE_ARG4_TYPE): Likewise.
14795 (PTRACE_XFER_TYPE): Likewise.
14796 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
14797 ptrace to PTRACE_ARG3_TYPE.
14798 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
14799 (PTRACE_ARG4_TYPE): Likewise.
14800 (PTRACE_XFER_TYPE): Likewise.
14801 (linux_detach_one_lwp): Cast fourth argument of
14802 ptrace to long then PTRACE_ARG4_TYPE.
14803 (regsets_fetch_inferior_registers): Cast third argument of
14804 ptrace to long then PTRACE_ARG3_TYPE.
14805 (regsets_store_inferior_registers): Likewise.
14807 2012-04-20 Pedro Alves <palves@redhat.com>
14809 * configure: Regenerate.
14811 2012-04-19 Pedro Alves <palves@redhat.com>
14813 * Makefile.in (GNULIB_BUILDDIR): New.
14814 (LIBGNU, INCGNU, GNULIB_H): Adjust.
14815 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
14816 (all, install-only, uninstall, clean-info, all-lib, clean): No
14817 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
14818 (maintainer-clean realclean distclean): Use subdir_do.
14820 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
14821 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
14822 * acinclude.m4: Include acx_configure_dir.m4.
14823 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
14824 calls. Call AC_PROG_RANLIB. Configure gnulib using
14827 (GNULIB_STDINT_H): Adjust.
14828 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
14829 * gdbreplay.c: Include build-gnulib/config.h.
14830 * server.h: Likewise.
14831 * aclocal.m4: Regenerate.
14832 * config.in: Regenerate.
14833 * configure: Regenerate.
14835 2012-04-19 Pedro Alves <palves@redhat.com>
14837 * Makefile.in (LIBGNU, INCGNU): Adjust.
14838 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
14839 (all, install-only, uninstall, clean-info, all-lib, clean)
14840 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
14841 * configure.ac: Adjust AC_OUTPUT output.
14842 * aclocal.m4: Regenerate.
14843 * configure: Regenerate.
14845 2012-04-19 Pedro Alves <palves@redhat.com>
14847 * Makefile.in (generated_files): New.
14848 (server_h): Remove the explicit dependency on config.h, and depend
14849 on $generated_files.
14851 2012-04-19 Pedro Alves <palves@redhat.com>
14853 * Makefile.in (INCGNU): Add -Ignulib.
14855 2012-04-19 Pedro Alves <palves@redhat.com>
14857 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
14858 (INCGNU): ... this, and spell out -I here.
14859 (GNULIB_LIB): Rename to ...
14860 (LIBGNU): ... this.
14861 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
14863 2012-04-19 Pedro Alves <palves@redhat.com>
14865 * config.in: Regenerate.
14867 2012-04-19 Pedro Alves <palves@redhat.com>
14869 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
14870 * server.h (memmem): Remove declaration.
14871 * config.in: Regenerate.
14872 * configure: Regenerate.
14874 2012-04-19 Yao Qi <yao@codesourcery.com>
14876 * Makefile.in (SFILES): Add common/vec.c.
14880 2012-04-19 Yao Qi <yao@codesourcery.com>
14882 * remote-utils.c (prepare_resume_reply): Replace with macro
14883 target_core_of_thread.
14884 * server.c (handle_qxfer_threads_proper): Likewise.
14885 * target.h (traget_core_of_thread): New macro.
14887 2012-04-18 Pedro Alves <palves@redhat.com>
14889 * aclocal.m4: Regenerate.
14890 * configure: Regenerate.
14892 2012-04-16 Yao Qi <yao@codesourcery.com>
14894 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
14895 duplicated on address.
14897 2012-04-16 Yao Qi <yao@codesourcery.com>
14899 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
14900 (struct tracepoint_action_ops) <send>: New field.
14901 (m_tracepoint_action_send, r_tracepoint_action_send): New.
14902 (agent_expr_send, x_tracepoint_action_send): New.
14903 (l_tracepoint_action_send): New.
14904 (cmd_qtdp): Download and install tracepoint
14905 according to `use_agent'.
14906 (run_inferior_command): Add one more parameter `len'.
14908 (tracepoint_send_agent): New.
14909 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
14911 2012-04-16 Yao Qi <yao@codesourcery.com>
14913 * tracepoint.c (download_tracepoints): Moved to ...
14914 (cmd_qtstart): ... here.
14916 2012-04-14 Yao Qi <yao@codesourcery.com>
14918 * tracepoint.c: Include inttypes.h.
14919 (struct collect_memory_action): Use sized types.
14920 (struct tracepoint): Likewise.
14921 (cmd_qtdp, stop_tracing): Update print specifiers.
14922 (cmd_qtp, response_tracepoint): Likewise.
14923 (collect_data_at_tracepoint): Likewise.
14924 (collect_data_at_step): Likewise.
14926 2012-04-14 Yao Qi <yao@codesourcery.com>
14928 Import gnulib module inttypes.
14929 * aclocal.m4, config.in, configure: Regenerated.
14931 2012-04-14 Yao Qi <yao@codesourcery.com>
14933 * Makefile.in (maintainer-clean, realclean, distclean): Remove
14934 Makefile and config.status at last.
14936 2012-04-13 Yao Qi <yao@codesourcery.com>
14938 * tracepoint.c: Include stdint.h unconditionally.
14940 2012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14942 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
14943 on BFD_HAVE_SYS_PROCFS_TYPE.
14944 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
14945 * configure: Regenerate.
14946 * config.in: Likewise.
14948 2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
14950 * Makefile.in (clean): Also remove x32.c x32-linux.c
14951 x32-avx.c x32-avx-linux.c.
14952 (x32.o): New target.
14954 (x32-linux.o): Likewise.
14955 (x32-linux.c): Likewise.
14956 (x32-avx.o): Likewise.
14957 (x32-avx.c): Likewise.
14958 (x32-avx-linux.o): Likewise.
14959 (x32-avx-linux.c): Likewise.
14961 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
14962 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
14963 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
14964 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
14965 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
14966 i386/x32-avx-linux.xml.
14968 * linux-x86-low.c (init_registers_x32_linux): New prototype.
14969 (init_registers_x32_avx_linux): Likwise.
14970 (x86_linux_update_xmltarget): Call init_registers_x32_linux
14971 or init_registers_x32_avx_linux if linux_is_elf64 is false.
14973 2012-04-13 Pedro Alves <palves@redhat.com>
14975 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
14976 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
14977 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
14978 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
14981 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
14983 * linux-x86-low.c (compat_x32_clock_t): New.
14984 (compat_x32_siginfo_t): Likewise.
14985 (compat_x32_siginfo_from_siginfo): Likewise.
14986 (siginfo_from_compat_x32_siginfo): Likewise.
14987 (linux_is_elf64): Likewise.
14988 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
14989 and siginfo_from_compat_x32_siginfo for x32.
14990 (x86_arch_setup): Set linux_is_elf64.
14992 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
14995 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
14997 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
14998 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
14999 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
15000 compatible with process.
15002 2012-04-12 Yao Qi <yao@codesourcery.com>
15004 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
15005 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
15006 (install-only, install-info, clean): Handle sub dir gnulib.
15007 (all-lib, am--refresh): New targets.
15008 (memmem.o): Remove target.
15009 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
15010 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
15011 (AC_REPLACE_FUNCS): Remove memmem.
15012 Invoke gl_INIT and AM_INIT_AUTOMAKE.
15013 (AC_OUTPUT): Generate Makefile in gnulib/.
15014 * aclocal.m4, config.in, configure: Regenerated.
15016 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
15018 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
15020 2012-04-05 Pedro Alves <palves@redhat.com>
15022 -Werror=strict-aliasing
15024 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
15027 2012-04-04 Pedro Alves <palves@redhat.com>
15029 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
15030 (sparc_store_gregset_from_stack, sparc_store_gregset)
15031 (sparc_breakpoint_at): Fix formatting.
15033 2012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15035 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
15037 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
15038 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
15039 * config.in: Regenerate.
15040 * configure: Likewise.
15042 2012-03-29 Pedro Alves <palves@redhat.com>
15044 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
15045 Correct ptrace arguments.
15047 2012-03-28 Pedro Alves <palves@redhat.com>
15049 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
15050 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
15051 (IA64_FR1_REGNUM): New defines.
15052 (ia64_fetch_register): New.
15053 (the_low_target): Install it.
15054 * linux-low.h (struct linux_target_ops) <fetch_register>: New
15056 * linux-low.c (linux_fetch_registers): Try the
15057 the_low_target.fetch_register hook first.
15059 * linux-arm-low.c (the_low_target): Adjust.
15060 * linux-bfin-low.c (the_low_target): Adjust.
15061 * linux-cris-low.c (the_low_target): Adjust.
15062 * linux-crisv32-low.c (the_low_target): Adjust.
15063 * linux-m32r-low.c (the_low_target): Adjust.
15064 * linux-m68k-low.c (the_low_target): Adjust.
15065 * linux-mips-low.c (the_low_target): Adjust.
15066 * linux-ppc-low.c (the_low_target): Adjust.
15067 * linux-s390-low.c (the_low_target): Adjust.
15068 * linux-sh-low.c (the_low_target): Adjust.
15069 * linux-sparc-low.c (the_low_target): Adjust.
15070 * linux-tic6x-low.c (the_low_target): Adjust.
15071 * linux-x86-low.c (the_low_target): Adjust.
15072 * linux-xtensa-low.c (the_low_target): Adjust.
15074 2012-03-26 Pedro Alves <palves@redhat.com>
15076 * server.c (handle_qxfer_libraries): Don't bail early if
15077 the_target->qxfer_libraries_svr4 is not NULL.
15079 2012-03-26 Pedro Alves <palves@redhat.com>
15081 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
15083 2012-03-23 Pedro Alves <palves@redhat.com>
15085 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
15086 "library-list-svr4" element's start tag when the the DSO list is
15089 2012-03-23 Pedro Alves <palves@redhat.com>
15091 * linux-low.c (read_one_ptr): Read the inferior's pointer through
15092 a variable whose type size is the same as the inferior's pointer
15095 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
15097 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
15099 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
15100 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
15101 * linux-low.h: Include <signal.h>.
15102 (struct siginfo): Remove forward declaration.
15103 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
15106 2012-03-21 Mike Frysinger <vapier@gentoo.org>
15108 * .gitignore: Ignore more files.
15110 2012-03-19 Pedro Alves <palves@redhat.com>
15111 Jan Kratochvil <jan.kratochvil@redhat.com>
15113 * server.c (cont_thread, general_thread): Add describing comments.
15114 (start_inferior): Clear `cont_thread'.
15115 (handle_v_cont): Don't set `cont_thread' if resuming all threads
15118 2012-03-15 Yao Qi <yao@codesourcery.com>
15120 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
15122 (cmd_qtdp): ... here.
15124 2012-03-15 Yao Qi <yao@codesourcery.com>
15126 * tracepoint.c (struct tracepoint_action_ops): New.
15127 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
15128 (m_tracepoint_action_download): New.
15129 (r_tracepoint_action_download): New.
15130 (x_tracepoint_action_download): New.
15131 (l_tracepoint_action_download): New.
15132 (add_tracepoint_action): Install `action->ops' according type.
15133 (download_tracepoint_1): Move code `download' function pointer
15134 of various tracepoint_action_ops.
15136 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15138 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
15139 linux_ptrace_attach_warnings.
15141 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15143 * Makefile.in (linux-ptrace.o): New.
15144 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
15145 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
15146 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
15147 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
15148 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
15150 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
15152 2012-03-08 Yao Qi <yao@codesourcery.com>
15153 Pedro Alves <palves@redhat.com>
15155 Fix PR server/13392.
15156 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
15157 offset of JMP insn.
15158 * tracepoint.c (remove_tracepoint): New.
15159 (cmd_qtdp): Call remove_tracepoint when failed to install.
15161 2012-03-07 Pedro Alves <palves@redhat.com>
15163 * linux-low.c (get_detach_signal): New.
15164 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
15165 Pass on pending signals to PTRACE_DETACH. Check the result of the
15167 * server.c (program_signals, program_signals_p): New.
15168 (handle_general_set): Handle QProgramSignals.
15169 * server.h (program_signals, program_signals_p): Declare.
15171 2012-03-05 Pedro Alves <palves@redhat.com>
15172 Jan Kratochvil <jan.kratochvil@redhat.com>
15174 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
15177 2012-03-03 Yao Qi <yao@codesourcery.com>
15179 * tracepoint.c (tracepoint_look_up_symbols): Update call to
15180 agent_look_up_symbols.
15182 2012-03-03 Yao Qi <yao@codesourcery.com>
15184 * Makefile.in (linux-low.o): Keep dependence on agent.h.
15185 (linux-x86-low.o): Likewise.
15186 * server.h: Remove in_process_agent_loaded.
15187 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
15191 2012-03-03 Yao Qi <yao@codesourcery.com>
15193 * tracepoint.c (gdb_agent_capability): New global.
15194 (in_process_agent_loaded_ust): Renamed to
15195 `in_process_agent_supports_ust'.
15197 (in_process_agent_supports_ust): Call agent_capability_check.
15198 (clear_installed_tracepoints): Assert that agent supports
15201 2012-03-03 Yao Qi <yao@codesourcery.com>
15203 * linux-low.c (linux_supports_agent): New.
15204 (linux_target_ops): Initialize field `supports_agent' with
15205 linux_supports_agent.
15206 * target.h (struct target_ops) <supports_agent>: New.
15207 (target_supports_agent): New macro.
15208 * server.c (handle_general_set): Handle packet 'QAgent'.
15209 (handle_query): Send `QAgent+'.
15210 * Makefile.in (server.o): Depends on agent.h.
15212 2012-03-03 Yao Qi <yao@codesourcery.com>
15214 * Makefile.in (OBS): Add agent.o.
15215 Add new rule for agent.o.
15216 Track dependence of tracepoint.c on agent.h.
15217 * tracepoint.c (run_inferior_command_1):
15218 (run_inferior_command): Call agent_run_command.
15219 (gdb_ust_connect_sync_socket): Deleted. Move it to
15221 (resume_thread, stop_thread): Likewise.
15222 (gdb_ust_socket_init): Renamed to ...
15223 (gdb_agent_socket_init): ... New.
15224 (gdb_ust_thread): Renamed to ...
15225 (gdb_agent_helper_thread): ... New.
15226 (gdb_ust_init): Move some code to ...
15227 (gdb_agent_init): ... here. New.
15228 [HAVE_UST]: Call gdb_ust_init.
15229 (initialize_tracepoint_ftlib): Call gdb_agent_init.
15230 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
15231 * config.in, configure: Regenerated.
15233 2012-03-02 Pedro Alves <palves@redhat.com>
15235 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
15236 * linux-low.c (struct simple_pid_list): New.
15237 (stopped_pids): New a struct simple_pid_list pointer.
15238 (add_to_pid_list, pull_pid_from_list): New.
15239 (handle_extended_wait): Don't assume the first signal new children
15240 report is SIGSTOP. Adjust call to pull_pid_from_list.
15241 (linux_wait_for_lwp): Adjust.
15243 2012-03-02 Yao Qi <yao@codesourcery.com>
15245 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
15248 2012-03-02 Yao Qi <yao@codesourcery.com>
15250 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
15251 `stop_pc' and `tpoint'. Update caller.
15253 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
15255 * linux-low.h (linux_target_ops): Add regset_bitmap member.
15256 * linux-low.c (use_linux_regsets): New macro.
15257 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
15258 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
15259 (linux_register_in_regsets): New function.
15260 (usr_fetch_inferior_registers): Skip registers covered by
15262 (usr_store_inferior_registers): Likewise.
15263 (usr_fetch_inferior_registers): New macro.
15264 (usr_store_inferior_registers): Likewise.
15265 (linux_fetch_registers): Handle mixed regset/non-regset targets.
15266 (linux_store_registers): Likewise.
15267 * linux-mips-low.c (init_registers_mips_dsp_linux): New
15269 (init_registers_mips64_dsp_linux): Likewise.
15270 (init_registers_mips_linux): New macro.
15271 (init_registers_mips_dsp_linux): Likewise.
15272 (mips_dsp_num_regs): Likewise.
15273 (DSP_BASE, DSP_CONTROL): New fallback macros.
15274 (mips_base_regs): New macro.
15275 (mips_regmap): Use it. Fix the size.
15276 (mips_dsp_regmap): New variable.
15277 (mips_dsp_regset_bitmap): Likewise.
15278 (mips_arch_setup): New function.
15279 (mips_cannot_fetch_register): Use the_low_target.regmap rather
15281 (mips_cannot_store_register): Likewise.
15282 (the_low_target): Update .arch_setup, .num_regs and .regmap
15283 initializers. Add .regset_bitmap initializer.
15284 * linux-arm-low.c (the_low_target): Add .regset_bitmap
15286 * linux-bfin-low.c (the_low_target): Likewise.
15287 * linux-cris-low.c (the_low_target): Likewise.
15288 * linux-crisv32-low.c (the_low_target): Likewise.
15289 * linux-ia64-low.c (the_low_target): Likewise.
15290 * linux-m32r-low.c (the_low_target): Likewise.
15291 * linux-m68k-low.c (the_low_target): Likewise.
15292 * linux-ppc-low.c (the_low_target): Likewise.
15293 * linux-s390-low.c (the_low_target): Likewise.
15294 * linux-sh-low.c (the_low_target): Likewise.
15295 * linux-sparc-low.c (the_low_target): Likewise.
15296 * linux-tic6x-low.c (the_low_target): Likewise.
15297 * linux-x86-low.c (the_low_target): Likewise.
15298 * linux-xtensa-low.c (the_low_target): Likewise.
15299 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
15300 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
15301 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
15303 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
15304 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
15306 2012-02-29 Yao Qi <yao@codesourcery.com>
15307 Pedro Alves <palves@redhat.com>
15309 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
15310 `step_over_finished' is true.
15312 2012-02-27 Pedro Alves <palves@redhat.com>
15314 * linux-low.c (pid_is_stopped): Delete, moved to common/.
15315 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
15317 2012-02-27 Pedro Alves <palves@redhat.com>
15320 * linux-low.c (pid_is_stopped): New.
15321 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
15323 2012-02-25 Luis Machado <lgustavo@codesourcery.com>
15325 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
15328 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
15330 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
15332 2012-02-24 Luis Machado <lgustavo@codesourcery>
15334 * server.c (handle_query): Advertise support for target-side
15335 breakpoint condition evaluation.
15336 (process_point_options): New function.
15337 (process_serial_event): When inserting a breakpoint, check for
15338 a target-side condition that should be evaluated.
15340 * mem-break.c: Include regcache.h and ax.h.
15341 (point_cond_list_t): New data structure.
15342 (breakpoint) <cond_list>: New field.
15343 (find_gdb_breakpoint_at): Make non-static.
15344 (delete_gdb_breakpoint_at): Clear any target-side
15346 (clear_gdb_breakpoint_conditions): New function.
15347 (add_condition_to_breakpoint): Likewise.
15348 (add_breakpoint_condition): Likewise.
15349 (gdb_condition_true_at_breakpoint): Likewise.
15350 (gdb_breakpoint_here): Return result directly instead
15351 of going through a local variable.
15353 * mem-break.h (find_gdb_breakpoint_at): New prototype.
15354 (clear_gdb_breakpoint_conditions): Likewise.
15355 (add_breakpoint_condition): Likewise.
15356 (gdb_condition_true_at_breakpoint): Likewise.
15358 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
15359 (need_step_over_p): Take target-side breakpoint condition into
15362 2012-02-24 Luis Machado <lgustavo@codesourcery>
15364 * server.h: Include tracepoint.h.
15365 (agent_mem_read, agent_get_trace_state_variable_value,
15366 agent_set_trace_state_variable_value,
15367 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
15368 get_set_tsv_func_addr): New prototypes.
15370 * ax.h: New include file.
15371 * ax.c: New source file.
15373 * tracepoint.c: Include ax.h.
15374 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
15375 agent_expr, eval_result_type): Move to ax.h.
15376 (parse_agent_expr): Rename to ...
15377 (gdb_parse_agent_expr): ... this, make it non-static and move
15379 (unparse_agent_expr) Rename to ...
15380 (gdb_unparse_agent_expr): ... this, make it non-static and move
15382 (eval_agent_expr): Rename to ...
15383 (eval_tracepoint_agent_expr): ... this.
15384 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
15385 forward declarations.
15386 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
15387 (agent_get_trace_state_variable_value): New function.
15388 (agent_set_trace_state_variable_value): New function.
15389 (cmd_qtdp): Call gdb_parse_agent_expr (...).
15390 (response_tracepoint): Call gdb_unparse_agent_expr (...).
15391 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
15392 (condition_true_at_tracepoint): Likewise.
15393 (parse_agent_expr): Rename to ...
15394 (gdb_parse_agent_expr): ... this and move to ax.c.
15395 (unparse_agent_expr): Rename to ...
15396 (gdb_unparse_agent_expr): ... this and move to ax.c.
15397 (gdb_agent_op_name): Move to ax.c.
15398 (eval_agent_expr): Rename to ...
15399 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
15401 (eval_tracepoint_agent_expr): New function.
15402 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
15404 (current_insn_ptr, emit_error, struct bytecode_address): Move to
15406 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
15407 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
15408 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
15409 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
15410 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
15411 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
15412 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
15413 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
15414 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
15415 (compile_bytecodes): Remove forward declaration.
15416 (is_goto_target): Move to ax.c.
15417 (compile_bytecodes): Move to ax.c and call
15418 agent_get_trace_state_variable_value (...) and
15419 agent_set_trace_state_variable_value (...).
15421 * Makefile.in: Update ax.c and IPA dependencies.
15423 2012-02-24 Pedro Alves <palves@redhat.com>
15425 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
15426 (cmd_bigqtbuffer_circular): ... this. Only handle
15427 'QTBuffer:circular:'.
15428 (handle_tracepoint_general_set): Adjust.
15430 2012-02-16 Yao Qi <yao@codesourcery.com>
15432 * inferiors.c: Move code to ...
15433 * dll.c: .... here. New.
15434 * server.h: Declare clear_dlls.
15435 * Makefile.in (SFILES): Add dll.c.
15439 2012-02-11 Yao Qi <yao@codesourcery.com>
15441 * server.c: (handle_monitor_command): Add a new parameter
15443 (handle_query): Update caller.
15445 2012-02-09 Joel Brobecker <brobecker@adacore.com>
15447 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
15448 * configure, config.in: Regenerate.
15449 * hostio.c: Provide an alternate implementation if HAVE_READLINK
15452 2012-02-02 Pedro Alves <palves@redhat.com>
15454 Try SIGKILL first, then PTRACE_KILL.
15455 * linux-low.c (linux_kill_one_lwp): New.
15456 (linux_kill_one_lwp): Rename to ...
15457 (kill_one_lwp_callback): ... this. Use the new
15458 linux_kill_one_lwp.
15460 2012-02-02 Pedro Alves <palves@redhat.com>
15462 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
15465 2012-01-27 Pedro Alves <palves@redhat.com>
15467 * linux-low.c (linux_child_pid_to_exec_file): Delete.
15468 (elf_64_file_p): Make static.
15469 (linux_pid_exe_is_elf_64_file): New.
15470 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
15471 Delete declarations.
15472 (linux_pid_exe_is_elf_64_file): Declare.
15473 * linux-x86-low.c (x86_arch_setup): Use
15474 linux_pid_exe_is_elf_64_file.
15476 2012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
15478 * linux-low.c (linux_wait_for_event_1): Rename to ...
15479 (linux_wait_for_event): ... here and merge it with former
15480 linux_wait_for_event - new variable wait_ptid, use it.
15481 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
15483 2012-01-23 Pedro Alves <palves@redhat.com>
15485 * server.c (main): Avoid yet another case of infinite loop while
15486 detaching/killing after a longjmp.
15488 2012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15491 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
15493 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
15495 * hostio.c (handle_readlink): New function.
15496 (handle_vFile): Call it to handle "vFile:readlink" packets.
15498 2012-01-20 Pedro Alves <palves@redhat.com>
15499 Ulrich Weigand <ulrich.weigand@linaro.org>
15501 * server.c (handle_v_requests): Only support vAttach and vRun to
15502 start multiple processes when in extended protocol mode.
15504 2012-01-17 Pedro Alves <palves@redhat.com>
15506 * tracepoint.c (initialize_tracepoint): Use mmap instead of
15507 memalign plus mprotect to allocate the scratch buffer.
15509 2012-01-13 Pedro Alves <palves@redhat.com>
15511 * server.c (attach_inferior): Clear `cont_thread'.
15513 2012-01-13 Pedro Alves <palves@redhat.com>
15515 * server.c (main): Avoid infinite loop while detaching/killing
15518 2012-01-09 Doug Evans <dje@google.com>
15520 * server.c (start_inferior): Set last_ptid in --wrapper case.
15522 2012-01-06 Yao Qi <yao@codesourcery.com>
15524 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
15526 [IN_PROCESS_AGENT] (debug_agent): New global variable.
15528 2012-01-04 Yao Qi <yao@codesourcery.com>
15530 * tracepoint.c (cmd_qtdp): Print debug message
15531 for static tracepoint.
15533 2012-01-04 Yao Qi <yao@codesourcery.com>
15535 * tracepoint.c (trace_vdebug): Differentiate debug message
15536 between gdbserver and IPA.
15538 2012-01-03 Yao Qi <yao@codesourcery.com>
15540 * tracepoint.c (tracepoint_was_hit): Don't collect for
15543 2012-01-02 Joel Brobecker <brobecker@adacore.com>
15545 * terminal.h: Reformat copyright header.
15547 2012-01-02 Joel Brobecker <brobecker@adacore.com>
15549 * server.c (gdbserver_version): Update copyright year.
15550 * gdbreplay.c (gdbreplay_version): Likewise.
15552 2011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
15554 * linux-low.c (linux_create_inferior): Put empty if clause for write.
15557 2011-12-18 Hui Zhu <teawater@gmail.com>
15558 * linux-low.c (linux_create_inferior): Save return value to ret.
15560 2011-12-18 Hui Zhu <teawater@gmail.com>
15562 * linux-low.c (linux_create_inferior): Save return value to ret.
15564 2011-12-16 Doug Evans <dje@google.com>
15566 * linux-low.c (linux_create_inferior): If stdio connection,
15567 redirect stdin from /dev/null, stdout to stderr.
15568 * remote-utils.c (remote_is_stdio): New static global.
15569 (remote_connection_is_stdio): New function.
15570 (remote_prepare): Handle stdio connection.
15571 (remote_open): Ditto.
15572 (remote_close): Don't close stdin for stdio connections.
15573 (read_prim,write_prim): New functions. Replace all calls to
15574 read/write to these.
15575 * server.c (main): Watch for "-" argument. Move call to
15576 remote_prepare before start_inferior.
15577 * server.h (STDIO_CONNECTION_NAME): New macro.
15578 (remote_connection_is_stdio): Declare.
15580 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
15581 in debugging output.
15583 2011-12-15 Yao Qi <yao@codesourcery.com>
15585 * tracepoint.c: Include sys/syscall.h.
15586 (gdb_ust_thread): Remove preprocessor conditional.
15588 2011-12-14 Pedro Alves <pedro@codesourcery.com>
15590 * linux-low.c (linux_detach_one_lwp): Call
15591 the_low_target.prepare_to_resume before detaching.
15593 2011-12-14 Yao Qi <yao@codesourcery.com>
15595 * tracepoint.c (gdb_ust_thread): Don't ignore return value
15598 2011-12-14 Yao Qi <yao@codesourcery.com>
15600 * i386-low.c (i386_low_stopped_data_address): Initialize local
15601 variable `control'.
15603 2011-12-13 Pedro Alves <pedro@codesourcery.com>
15607 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
15608 DR_CONTROL unless necessary. Extend comments.
15609 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
15610 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
15612 2011-12-13 Yao Qi <yao@codesourcery.com>
15614 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
15616 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
15618 2011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
15620 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
15621 Print new debug message for such case.
15623 2011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
15625 Fix overlapping memcpy.
15626 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
15627 the read_inferior_memory transfer.
15628 (delete_fast_tracepoint_jump): New variable buf. Use it for the
15629 write_inferior_memory transfer.
15630 (set_fast_tracepoint_jump): New variable buf. Use it for the
15631 read_inferior_memory and write_inferior_memory transfers.
15632 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
15633 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
15634 Use it for the write_inferior_memory transfer.
15635 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
15638 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15640 * linux-low.c (fetch_register, store_register): Make code
15641 consistent, fix formatting.
15643 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15645 * linux-low.c (usr_store_inferior_registers): Factor out code
15646 to handle individual registers into...
15647 (store_register): ... this new function.
15649 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
15651 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
15652 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
15653 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
15654 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
15655 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
15656 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
15657 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
15658 (srv_xmlfiles): Add new XML files.
15660 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
15662 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
15663 (init_registers_s390_linux32v1): Add prototype.
15664 (init_registers_s390_linux32v2): Likewise.
15665 (init_registers_s390_linux64v1): Likewise.
15666 (init_registers_s390_linux64v2): Likewise.
15667 (init_registers_s390x_linux64v1): Likewise.
15668 (init_registers_s390x_linux64v2): Likewise.
15669 (s390_num_regs): Increment to 52.
15670 (s390_regmap): Add orig_r2 register.
15671 (s390_num_regs_3264): Increment to 68.
15672 (s390_regmap_3264): Add orig_r2 register.
15673 (s390_collect_ptrace_register): Handle orig_r2 register.
15674 (s390_supply_ptrace_register): Likewise.
15675 (s390_fill_last_break): New function.
15676 (s390_store_last_break): Likewise.
15677 (s390_fill_system_call): New function.
15678 (s390_store_system_call): Likewise.
15679 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
15681 (s390_check_regset): New function.
15682 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
15683 NT_S390_SYSTEM_CALL regsets and use appropriate description.
15684 Update target_regsets for available register sets.
15686 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
15687 Jan Kratochvil <jan.kratochvil@redhat.com>
15689 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
15690 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
15692 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
15693 * linux-low.h (struct process_info_private): New member r_debug.
15694 * server.c (handle_qxfer_libraries): Call
15695 the_target->qxfer_libraries_svr4.
15696 (handle_qxfer_libraries_svr4): New function.
15697 (qxfer_packets): New entry "libraries-svr4".
15698 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
15699 * target.h (struct target_ops): New member qxfer_libraries_svr4.
15700 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
15701 PACKET_qXfer_libraries_svr4.
15703 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
15705 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
15706 PSW address/mask between 8-byte and 16-byte formats.
15707 (s390_supply_ptrace_register): Likewise.
15708 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
15709 basic addressing mode bit.
15711 2011-11-24 Stan Shebs <stan@codesourcery.com>
15713 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
15715 2011-11-17 Stan Shebs <stan@codesourcery.com>
15717 * tracepoint.c (struct tracepoint): New field traceframe_usage.
15718 (tracing_start_time): New global.
15719 (tracing_stop_time): New global.
15720 (tracing_user_name): New global.
15721 (tracing_notes): New global.
15722 (tracing_stop_note): New global.
15723 (cmd_qtstart): Set traceframe_usage, start_time.
15724 (stop_tracing): Set stop_time.
15725 (cmd_qtstatus): Report additional status.
15726 (cmd_qtp): New function.
15727 (handle_tracepoint_query): Call it.
15728 (cmd_qtnotes): New function.
15729 (handle_tracepoint_general_set): Call it.
15730 (get_timestamp): Rename from tsv_get_timestamp.
15732 2011-11-14 Stan Shebs <stan@codesourcery.com>
15733 Kwok Cheung Yeung <kcy@codesourcery.com>
15735 * linux-x86-low.c (small_jump_insn): New.
15736 (i386_install_fast_tracepoint_jump_pad): Add arguments for
15737 trampoline and error message, build a trampoline and issue a small
15738 jump instruction to it.
15739 (x86_install_fast_tracepoint_jump_pad): Add arguments for
15740 trampoline and error message.
15741 (x86_get_min_fast_tracepoint_insn_len): New.
15742 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
15743 * linux-low.h (struct linux_target_ops): Add arguments to
15744 install_fast_tracepoint_jump_pad operation, add new operation.
15745 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
15747 (linux_get_min_fast_tracepoint_insn_len): New function.
15748 (linux_target_op): Add new operation.
15749 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
15750 (gdb_trampoline_buffer_end): Ditto.
15751 (gdb_trampoline_buffer_error): Ditto.
15752 (struct ipa_sym_addresses): Add fields for new IPA variables.
15753 (symbol_list): Add entries for new IPA variables.
15754 (struct tracepoint): Add fields to hold the address range of the
15755 trampoline used by the tracepoint.
15756 (trampoline_buffer_head): New static variable.
15757 (trampoline_buffer_tail): Ditto.
15758 (claim_trampoline_space): New function.
15759 (have_fast_tracepoint_trampoline_buffer): New function.
15760 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
15762 (install_fast_tracepoint): Ditto, also add error buffer argument.
15763 (cmd_qtminftpilen): New function.
15764 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
15765 (fast_tracepoint_from_trampoline_address): New function.
15766 (fast_tracepoint_collecting): Handle trampoline as part of jump
15768 (set_trampoline_buffer_space): New function.
15769 (initialize_tracepoint): Initialize new IPA variables.
15770 * target.h (struct target_ops): Add arguments to
15771 install_fast_tracepoint_jump_pad operation, add new
15772 get_min_fast_tracepoint_insn_len operation.
15773 (target_get_min_fast_tracepoint_insn_len): New.
15774 (install_fast_tracepoint_jump_pad): Add arguments.
15775 * server.h (IPA_BUFSIZ): Define.
15776 * linux-i386-ipa.c: Include extra header files.
15777 (initialize_fast_tracepoint_trampoline_buffer): New function.
15778 (initialize_low_tracepoint): Call it.
15779 * server.h (set_trampoline_buffer_space): Declare.
15780 (claim_trampoline_space): Ditto.
15781 (have_fast_tracepoint_trampoline_buffer): Ditto.
15783 2011-11-14 Yao Qi <yao@codesourcery.com>
15785 * server.c (handle_query): Handle InstallInTrace for qSupported.
15786 * tracepoint.c (add_tracepoint): Sort list.
15787 (install_tracepoint, download_tracepoint): New.
15788 (cmd_qtdp): Call them to install and download tracepoints.
15789 (sort_tracepoints): Removed.
15790 (cmd_qtstart): Update.
15792 2011-11-14 Yao Qi <yao@codesourcery.com>
15794 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
15795 * mem-break.h: Declare.
15796 * tracepoint.c (cmd_qtstart): Move some code to ...
15797 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
15799 (download_tracepoints): Move some code to ...
15800 (download_tracepoint_1): ... here. New.
15802 2011-11-08 Yao Qi <yao@codesourcery.com>
15804 * remote-utils.c (relocate_instruction): A comment fix.
15806 2011-11-07 Joel Brobecker <brobecker@adacore.com>
15808 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
15809 (i386_dr_low_get_control, i386_dr_low_get_status): Use
15810 dr_status_mirror and dr_control_mirror from debug_reg_state.
15811 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
15812 (i386_initial_stuff): Remove use of deleted globals.
15813 (i386_get_thread_context, i386_set_thread_context,
15814 i386_thread_added): Use dr_status_mirror and dr_control_mirror
15815 from debug_reg_state.
15817 2011-11-05 Yao Qi <yao@codesourcery.com>
15819 * tracepoint.c (gdb_collect): Loop over tracepoints of same
15820 address as TPOINT's.
15822 2011-11-02 Stan Shebs <stan@codesourcery.com>
15824 * tracepoint.c (agent_mem_read_string): New function.
15825 (eval_agent_expr): Call it for tracenz.
15826 * server.c (handle_query): Report support for tracenz.
15828 2011-11-02 Yao Qi <yao@codesourcery.com>
15830 * tracepoint.c (cmd_qtstart): Remove unused local variables.
15832 2011-11-02 Yao Qi <yao@codesourcery.com>
15834 * target.h: Fix a typo in comment.
15836 2011-10-31 Pedro Alves <pedro@codesourcery.com>
15838 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
15839 clobber the breakpoints' shadows with fast tracepoint jumps.
15840 * mem-break.h (check_mem_write): Add `myaddr' parameter.
15841 * target.c (write_inferior_memory): Also pass MYADDR down to
15844 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
15846 * configure.ac: Check support for personality routine.
15847 * configure: Regenerate.
15848 * config.in: Likewise.
15849 * linux-low.c: Include <sys/personality.h>.
15850 Define ADDR_NO_RANDOMIZE if necessary.
15851 (linux_create_inferior): Disable address space randomization when
15852 forking inferior, if requested.
15853 (linux_supports_disable_randomization): New function.
15854 (linux_target_ops): Install it.
15855 * server.h (disable_randomization): Declare.
15856 * server.c (disable_randomization): New global variable.
15857 (handle_general_set): Handle QDisableRandomization.
15858 (handle_query): Likewise for qSupported.
15859 (main): Support --disable-randomization and --no-disable-randomization
15860 command line arguments.
15861 * target.h (struct target_ops): Add supports_disable_randomization.
15862 (target_supports_disable_randomization): New macro.
15864 2011-09-29 Mike Frysinger <vapier@gentoo.org>
15866 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
15868 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
15869 [!PT_GETDSBT] (target_loadmap): New definition.
15870 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
15871 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
15872 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
15873 and PT_GETDSBT to LINUX_LOADMAP.
15874 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
15875 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
15877 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
15879 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
15880 (arm_linux_hwbp_cap): New static variable.
15881 (arm_linux_get_hwbp_cap): Replace by ...
15882 (arm_linux_init_hwbp_cap): ... this new function.
15883 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
15884 (arm_linux_get_hw_watchpoint_count): Likewise.
15885 (arm_linux_get_hw_watchpoint_max_length): Likewise.
15886 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
15887 (arm_prepare_to_resume): Use perror_with_name instead of error.
15889 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
15891 * linux-arm-low.c: Include <signal.h>.
15892 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
15893 (struct arm_linux_hwbp_cap): New data type.
15894 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
15895 (struct arm_linux_hw_breakpoint): New data type.
15896 (MAX_BPTS, MAX_WPTS): Define.
15897 (struct arch_process_info, struct arch_lwp_info): New data types.
15898 (arm_linux_get_hwbp_cap): New function.
15899 (arm_linux_get_hw_breakpoint_count): Likewise.
15900 (arm_linux_get_hw_watchpoint_count): Likewise.
15901 (arm_linux_get_hw_watchpoint_max_length): Likewise.
15902 (arm_hwbp_control_initialize): Likewise.
15903 (arm_hwbp_control_is_enabled): Likewise.
15904 (arm_hwbp_control_is_initialized): Likewise.
15905 (arm_hwbp_control_disable): Likewise.
15906 (arm_linux_hw_breakpoint_equal): Likewise.
15907 (arm_linux_hw_point_initialize): Likewise.
15908 (struct update_registers_data): New data structure.
15909 (update_registers_callback: New function.
15910 (arm_insert_point): Likewise.
15911 (arm_remove_point): Likewise.
15912 (arm_stopped_by_watchpoint): Likewise.
15913 (arm_stopped_data_address): Likewise.
15914 (arm_new_process): Likewise.
15915 (arm_new_thread): Likewise.
15916 (arm_prepare_to_resume): Likewise.
15917 (the_low_target): Register arm_insert_point, arm_remove_point,
15918 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
15919 arm_new_thread, and arm_prepare_to_resume.
15921 2011-09-15 Stan Shebs <stan@codesourcery.com>
15923 * server.h (struct emit_ops): Add compare-goto fields.
15924 * tracepoint.c (gdb_agent_op_sizes): New table.
15925 (emit_eq_goto): New function.
15926 (emit_ne_goto): New function.
15927 (emit_lt_goto): New function.
15928 (emit_le_goto): New function.
15929 (emit_gt_goto): New function.
15930 (emit_ge_goto): New function.
15931 (is_goto_target): New function.
15932 (compile_bytecodes): Recognize special cases of compare-goto
15933 combinations and call specialized emitters for them.
15934 * linux-x86-low.c (amd64_emit_eq_goto): New function.
15935 (amd64_emit_ne_goto): New function.
15936 (amd64_emit_lt_goto): New function.
15937 (amd64_emit_le_goto): New function.
15938 (amd64_emit_gt_goto): New function.
15939 (amd64_emit_ge_goto): New function.
15940 (amd64_emit_ops): Add the new functions.
15941 (i386_emit_eq_goto): New function.
15942 (i386_emit_ne_goto): New function.
15943 (i386_emit_lt_goto): New function.
15944 (i386_emit_le_goto): New function.
15945 (i386_emit_gt_goto): New function.
15946 (i386_emit_ge_goto): New function.
15947 (i386_emit_ops): Add the new functions.
15949 2011-09-08 Stan Shebs <stan@codesourcery.com>
15951 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
15952 (i386_emit_epilogue): Restore %ebx.
15954 2011-08-31 Jie Zhang <jzhang918@gmail.com>
15956 * server.c (step_thread): Remove definition.
15957 (process_serial_event): Don't handle Hs.
15958 * server.h (step_thread): Remove declaration.
15959 * target.c (set_desired_inferior): Remove use of step_thread.
15961 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
15963 * linux-low.c: Include linux-procfs.h.
15964 (linux_attach_lwp_1): Update comments.
15965 (linux_attach): Scan for existing threads when attaching to a
15966 process that is the tgid.
15967 * Makefile.in: Update dependencies.
15969 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
15971 * configure.srv: Add linux-procfs.o dependencies.
15973 2011-08-14 Yao Qi <yao@codesourcery.com>
15975 * target.h (struct target_ops): Fix indent.
15976 * win32-low.c (win32_target_ops): Fix comment.
15978 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
15979 Yao Qi <yao@codesourcery.com>
15981 * Makefile.in (clean): Remove tic6x-*.c files.
15982 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
15983 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
15984 (tic6x-c64xp-linux.c): Likewise.
15985 * configure.srv: Add support for tic6x-*-uclinux.
15986 * linux-tic6x-low.c: New.
15987 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
15989 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
15990 Yao Qi <yao@codesourcery.com>
15992 * target.h (struct target_ops): Add read_loadmap.
15993 * linux-low.c (struct target_loadseg): New type.
15994 (struct target_loadmap): New type.
15995 (linux_read_loadmap): New function.
15996 (linux_target_ops): Add linux_read_loadmap.
15997 * server.c (handle_query): Support qXfer:fdpic:read packet.
15998 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
16001 2011-08-05 Eli Zaretskii <eliz@gnu.org>
16003 * win32-low.c: Include <stdint.h>.
16005 2011-07-22 Pedro Alves <pedro@codesourcery.com>
16007 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
16008 to the inferior here.
16009 (i386_remove_aligned_watchpoint): Ditto.
16010 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
16011 fit part of the watchpoint in the debug registers.
16012 (i386_update_inferior_debug_regs): New.
16013 (i386_low_insert_watchpoint): Work on a local mirror of the debug
16014 registers, and only update the inferior on success.
16015 (i386_low_remove_watchpoint): Ditto.
16017 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
16019 * linux-low.c (compare_ints, unique, list_threads, show_process,
16020 linux_core_of_thread): Delete.
16021 (linux_target_ops): Change linux_core_of_thread to
16022 linux_common_core_of_thread.
16023 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
16024 * utils.c (malloc_failure): Change type of argument.
16025 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
16026 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
16027 common/linux-osdata.c, common/ptid.c and common/buffer.c.
16028 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
16029 (IPA_OBJS): Add common-utils-ipa.o.
16030 (ptid_h, linux_osdata_h): New macros.
16031 (server_h): Add common/common-utils.h, common/xml-utils.h,
16032 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
16034 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
16035 ptid.o, buffer.o): New rules.
16036 (linux-low.o): Add common/linux-osdata.h as a dependency.
16037 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
16038 * configure.ac: Add AC_HEADER_DIRENT check.
16039 * config.in: Regenerate.
16040 * configure: Regenerate.
16041 * remote-utils.c (xml_escape_text): Delete.
16042 (buffer_grow, buffer_free, buffer_init, buffer_finish,
16043 buffer_xml_printf): Move to common/buffer.c.
16044 * server.c (main): Remove call to initialize_inferiors.
16045 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
16046 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
16047 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
16048 internal_error, gdb_assert, gdb_assert_fail): Delete.
16049 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
16050 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
16052 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
16053 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
16054 initialize_inferiors): Delete.
16056 2011-07-20 Pedro Alves <pedro@codesourcery.com>
16058 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
16061 2011-05-31 Pedro Alves <pedro@codesourcery.com>
16063 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
16065 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
16067 2011-05-26 Yao Qi <yao@codesourcery.com>
16069 * Makefile.in (thread-db.o): Track dependence to
16070 common/gdb_thread_db.h.
16071 * thread-db.c: include gdb_thread_db.h from right place.
16073 2011-05-16 Adrian Cornish <gnu@bluedreamer.com>
16075 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
16076 __FILE__ and __LINE__ to internal_error.
16078 2011-05-13 Doug Evans <dje@google.com>
16080 * thread-db.c (try_thread_db_load_from_sdir): New function.
16081 (try_thread_db_load_from_dir): New function.
16082 (thread_db_load_search): Handle $sdir, ignore $pdir.
16083 Remove trying of system directories if search of
16084 libthread-db-search-path fails, that is now done via $sdir.
16086 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
16088 * server.c (handle_query): Add EnableDisableTracepoints to the list
16089 of supported features.
16090 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
16092 (cmd_qtenable_disable): New.
16093 (cmd_qtstart): Install tracepoints even if disabled.
16094 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
16095 receiving a QTEnable or QTDisable packet.
16096 (gdb_collect): Skip data collection if fast tracepoint is disabled.
16097 (ust_marker_to_static_tracepoint): Do not ignore disabled static
16099 (gdb_probe): Skip data collection if static tracepoint is disabled.
16101 2011-05-10 Doug Evans <dje@google.com>
16103 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
16105 2011-05-04 Doug Evans <dje@google.com>
16107 * linux-low.c (linux_join): Skip process lookup.
16108 * spu-low.c (spu_join): Ditto.
16109 * server.c (join_inferiors_callback): Delete.
16110 (process_serial_event): For 'D' packet (detach) call join_inferior
16113 2011-05-04 Joseph Myers <joseph@codesourcery.com>
16115 * README: Don't mention xscale*-*-linux*.
16116 * configure.srv (xscale*-*-linux*): Don't handle target.
16118 2011-04-27 Nathan Froyd <froydnj@codesourcery.com>
16120 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
16122 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
16123 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
16124 (i386_emit_void_call_2): Likewise.
16126 2011-04-26 Yao Qi <yao@codesourcery.com>
16128 * linux-low.c: Move common macros to linux-ptrace.h.
16129 Include linux-ptrace.h.
16130 * Makefile.in (linux_ptrace_h): New.
16131 (linux-low.o): Depends on linux-ptrace.h.
16133 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
16135 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
16136 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
16137 (remote_prepare): New function with most of the TCP code from ...
16138 (remote_open): ... here. Detect PORT here unconditionally. Move also
16139 setting transport_is_reliable.
16140 * server.c (run_once): New variable.
16141 (gdbserver_usage): Document it.
16142 (main): Set run_once for `--once'. Call remote_prepare. Exit after
16143 the first run if RUN_ONCE.
16144 * server.h (run_once, remote_prepare): New declarations.
16146 2011-04-19 Tom Tromey <tromey@redhat.com>
16148 * win32-low.c (handle_load_dll): Remove duplicate "the".
16150 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
16152 Remove support for old Cygwin 1.5 versions.
16153 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
16154 function to avoid warning.
16155 (win32_add_one_solib): Use cygwin_conv_path function to avoid
16158 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
16160 * gdbserver/server.h (Macro _): Define it if not available.
16162 2011-03-14 Michael Snyder <msnyder@vmware.com>
16164 * hostio.c (handle_close): Remove unnecessary null test.
16166 2011-03-10 Joel Brobecker <brobecker@adacore.com>
16168 * Makefile.in (maintainer-clean realclean distclean): Remove
16169 "make ... subdir_do" command.
16171 2011-03-10 Michael Snyder <msnyder@vmware.com>
16173 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
16175 * server.c (handle_v_run): Free alloced buffer on early return.
16177 2011-03-09 Yao Qi <yao@codesourcery.com>
16180 2011-03-04 Yao Qi <yao@codesourcery.com>
16182 * Makefile.in: Remove GNU make feature --directory.
16184 2011-03-05 Yao Qi <yao@codesourcery.com>
16186 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16187 (subdir_do): New make target. Copied from gdb/Makefile.
16188 (maintainer-clean, realclean, distclean, clean): Call corresponding
16189 make targets in common/Makefile.
16191 2011-02-11 Yao Qi <yao@codesourcery.com>
16193 * configure.ac: Call AC_PROG_RANLIB.
16194 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16195 * configure: Regenerate.
16197 2011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
16199 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
16201 2011-03-06 Yao Qi <yao@codesourcery.com>
16203 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
16205 2011-03-05 Yao Qi <yao@codesourcery.com>
16207 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16208 (subdir_do): New make target. Copied from gdb/Makefile.
16209 (maintainer-clean, realclean, distclean, clean): Call corresponding
16210 make targets in common/Makefile.
16212 2011-03-04 Yao Qi <yao@codesourcery.com>
16214 * Makefile.in: Remove GNU make feature --directory.
16216 2011-03-04 Michael Snyder <msnyder@vmware.com>
16218 * server.c (queue_stop_reply): Call xmalloc not malloc.
16220 2011-03-02 Michael Snyder <msnyder@vmware.com>
16222 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
16224 2011-02-28 Michael Snyder <msnyder@vmware.com>
16226 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
16227 (cmd_qtframe): Ditto.
16228 (cmd_qtbuffer): Ditto.
16229 (cmd_bigqtbuffer): Ditto.
16231 * utils.c (decimal2str): Initialize 'width' to nine, then
16232 don't mess with it.
16234 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
16236 * hostio.c (require_data): Free *data, not data.
16238 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
16240 * hostio.c (require_data): Use free, not xfree.
16242 2011-02-27 Michael Snyder <msnyder@vmware.com>
16244 * server.c (handle_query): Discard unused value.
16246 * hostio.c (require_data): Free malloc memory before returning
16249 2011-02-26 Michael Snyder <msnyder@vmware.com>
16251 * linux-low.c (list_threads): Call closedir for dirent.
16253 2011-02-27 Michael Snyder <msnyder@vmware.com>
16255 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
16256 a case statement falls through.
16258 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
16260 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
16263 2011-02-26 Michael Snyder <msnyder@vmware.com>
16265 * utils.c (decimal2str): Eliminate dead code and dead param.
16266 (pulongest): Drop dead param from call to decimal2str.
16269 2011-02-24 Joel Brobecker <brobecker@adacore.com>
16271 Revert the following patch (not approved yet):
16272 2011-02-21 Hui Zhu <teawater@gmail.com>
16273 * tracepoint.c (tp_printf): New function.
16274 (eval_agent_expr): Handle gdb_agent_op_printf.
16276 2011-02-21 Hui Zhu <teawater@gmail.com>
16278 * tracepoint.c (tp_printf): New function.
16279 (eval_agent_expr): Handle gdb_agent_op_printf.
16281 2011-02-18 Tom Tromey <tromey@redhat.com>
16283 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
16284 (tracepoint.o): Likewise.
16285 * tracepoint.c (enum gdb_agent_op): Use ax.def.
16286 (gdb_agent_op_names): Likewise.
16288 2011-02-18 Tom Tromey <tromey@redhat.com>
16290 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
16291 gdb_agent_op_rot>: New constants.
16292 (gdb_agent_op_names): Add pick and roll.
16293 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
16296 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
16298 * aclocal.m4: Regenerated with aclocal-1.11.1.
16300 2011-02-14 Pedro Alves <pedro@codesourcery.com>
16302 * server.c (handle_qxfer_traceframe_info): New.
16303 (qxfer_packets): Register "traceframe-info".
16304 (handle_query): Report support for qXfer:traceframe-info:read+.
16305 * tracepoint.c (match_blocktype): New.
16306 (traceframe_find_block_type): Rename to ...
16307 (traceframe_walk_blocks): ... this. Add callback filter argument,
16309 (traceframe_find_block_type): New, reimplemented on top of
16310 traceframe_walk_blocks.
16311 (build_traceframe_info_xml): New.
16312 (traceframe_read_info): New.
16313 * server.h (traceframe_read_info): Declare.
16315 2011-02-11 Yao Qi <yao@codesourcery.com>
16317 * configure.ac: Call AC_PROG_RANLIB.
16318 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16319 * configure: Regenerate.
16321 2011-02-07 Pedro Alves <pedro@codesourcery.com>
16323 * server.c (gdb_read_memory): Change return semantics to allow
16325 (handle_search_memory_1): Adjust.
16326 (process_serial_event) <'m' packet>: Handle partial transfers.
16327 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
16329 2011-01-28 Pedro Alves <pedro@codesourcery.com>
16331 * regcache.c (init_register_cache): Initialize
16332 regcache->register_status.
16333 (free_register_cache): Release regcache->register_status.
16334 (regcache_cpy): Copy register_status.
16335 (registers_to_string): Print 'x's for unavailable registers.
16336 (supply_register): Mark the register's status valid or
16337 unavailable, depending on whether a buffer was passed in or not.
16338 (supply_register_zeroed): New.
16339 (supply_regblock): Mark the registers' status valid or
16340 unavailable, depending on whether a buffer was passed in or not.
16341 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
16342 (struct regcache): New `register_status' field.
16343 (supply_register_zeroed): Declare.
16344 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
16345 supply_register_zeroed, rather than passing a NULL buffer to
16347 * tracepoint.c (fetch_traceframe_registers): Update comment.
16349 2011-01-28 Pedro Alves <pedro@codesourcery.com>
16351 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
16354 2011-01-25 Pedro Alves <pedro@codesourcery.com>
16356 * server.h (decode_xfer_write): Change prototype.
16357 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
16358 and don't extract the annex here.
16359 * server.c (decode_xfer_read): Remove `annex' parameter,
16360 and don't extract the annex here.
16361 (decode_xfer): New.
16362 (struct qxfer): New.
16363 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
16364 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
16365 (handle_qxfer_statictrace): New functions, abstracted out from
16366 handle_query, and made to use the struct qxfer interface.
16367 (handle_threads_qxfer_proper): Rename to ...
16368 (handle_qxfer_threads_proper): ... this.
16369 (handle_threads_qxfer): Rename to ...
16370 (handle_qxfer_threads): ... this. Adjust.
16371 (qxfer_packets): New array.
16372 (handle_qxfer): New function.
16373 (handle_query): Use handle_qxfer.
16375 2011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
16377 * gdbreplay.c: Shorten lines of >= 80 columns.
16378 * linux-low.c: Ditto.
16379 * linux-ppc-low.c: Ditto.
16380 * linux-s390-low.c: Ditto.
16381 * linux-sparc-low.c: Ditto.
16382 * linux-x86-low.c: Ditto.
16383 * linux-xtensa-low.c: Ditto.
16384 * mem-break.c: Ditto.
16385 * nto-low.c: Ditto.
16386 * regcache.h: Ditto.
16387 * remote-utils.c: Ditto.
16390 * thread-db.c: Ditto.
16391 * tracepoint.c: Ditto.
16393 * win32-low.h: Ditto.
16395 2011-01-05 Joel Brobecker <brobecker@adacore.com>
16397 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
16400 2011-01-01 Joel Brobecker <brobecker@adacore.com>
16402 * server.c (gdbserver_version): Update copyright year in version
16404 * gdbreplay.c (gdbreplay_version): Ditto.
16406 2010-12-29 Jie Zhang <jie.zhang@analog.com>
16408 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
16409 * linux-bfin-low.c: New file.
16410 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
16411 PT_DATA_ADDR for BFIN targets.
16412 * Makefile.in (SFILES): Add linux-bfin-low.c.
16413 (clean): Remove reg-bfin.c.
16414 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
16415 * README: Mention supported Blackfin targets.
16417 2010-12-23 Mike Frysinger <vapier@gentoo.org>
16419 * .gitignore: New file.
16421 2010-11-16 Mike Frysinger <vapier@gentoo.org>
16423 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
16425 2010-10-22 Jie Zhang <jie@codesourcery.com>
16427 * Makefile.in: Add FLAGS_TO_PASS variable.
16428 (install): Remove dependency of install-only and recursively
16429 invoke make for install-only.
16431 2010-10-04 Doug Evans <dje@google.com>
16433 * Makefile.in (uninstall): Use $(DESTDIR).
16435 2010-09-24 Pedro Alves <pedro@codesourcery.com>
16439 * linux-x86-low.c (compat_siginfo_from_siginfo)
16440 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
16441 si_code is < 0. Check for si_code == SI_TIMER before checking for
16444 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16446 * lynx-i386-low.c: New file.
16447 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
16449 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16451 * lynx-low.c (ptrace_request_to_str): Remove handling for
16452 request values that have been removed in LynxOS 5.x.
16454 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16456 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
16459 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
16461 * configure.ac: Add --enable-inprocess-agent option.
16462 * configure: Rebuilt.
16464 2010-09-06 Yao Qi <yao@codesourcery.com>
16466 * linux-low.c (linux_kill): Remove unused variable.
16467 (linux_stabilize_threads): Likewise.
16468 * server.c (start_inferior): Likewise.
16469 (queue_stop_reply_callback): Likewise.
16470 * tracepoint.c (do_action_at_tracepoint): Likewise.
16472 2010-09-06 Yao Qi <yao@codesourcery.com>
16474 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
16477 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16479 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
16481 2010-09-06 Pedro Alves <pedro@codesourcery.com>
16483 * Makefile.in (install-only): Replace $IPA_DEPFILES with
16486 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16488 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
16489 gdbserver/lynx-ppc-low.c: New files.
16490 * Makefile.in (lynx_low_h): New variable.
16491 (lynx-low.o, lynx-ppc-low.o): New rules.
16492 * configure.ac: On LynxOS, link with -lnetinet.
16493 * configure.srv: Add handling of powerpc-*-lynxos* targets.
16494 * configure: regenerate.
16496 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16498 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
16499 * configure.ac: Add check for vasprintf and vsnprintf.
16500 * configure, config.in: Regenerate.
16501 * server.h (vasprintf, vsnprintf): Add conditional declarations.
16503 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16505 * gdbreplay.c: Move include of alloca.h up, next to include of
16507 * server.h: Add include of malloc.h.
16508 * mem-break.c: Remove include of malloc.h.
16509 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
16511 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16513 * Makefile.in (memmem.o): Build with -Wno-error.
16515 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16517 * utils.c (xsnprintf): Make non-static.
16518 * server.h: Add xsnprintf declaration.
16519 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
16520 replace calls to snprintf by calls to xsnprintf throughout.
16522 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16524 * configure.ac: Add configure check for alloca.
16525 * configure, config.in: Regenerate.
16526 * server.h: Include alloca.h if it exists.
16527 * gdbreplay.c: Include alloca.h if it exists.
16529 2010-08-28 Pedro Alves <pedro@codesourcery.com>
16531 * linux-low.c (__SIGRTMIN): Define if not already defined.
16532 (linux_create_inferior): Check for __ANDROID__ rather than
16534 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
16535 are already deferred.
16536 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
16537 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
16538 stopped and already has a pending signal to report.
16539 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
16540 a pending signal to report or is moving out of a jump pad.
16541 (linux_init_signals): Check for __ANDROID__ rather than
16544 2010-08-28 Pedro Alves <pedro@codesourcery.com>
16546 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
16547 debug_threads check. Avoid a linear search when not doing debug
16550 2010-08-27 Pedro Alves <pedro@codesourcery.com>
16552 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
16553 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
16554 (struct file_handler) <fd>: Change type to gdb_fildes_t.
16555 (process_event): Change local fd's type to gdb_fildes_t.
16556 (create_file_handler): Adjust prototype.
16557 (delete_file_handler): Adjust prototype.
16558 (handle_file_event): Adjust prototype. Use pfildes.
16559 (create_file_event): Adjsut prototype.
16560 * remote-utils.c (remote_desc, listen_desc): Change type to
16562 * server.h: New gdb_fildes_t typedef.
16563 [USE_WIN32API]: Include winsock2.h.
16564 (delete_file_handler, add_file_handler): Adjust prototypes.
16565 (pfildes): Declare.
16566 * utils.c (pfildes): New.
16568 2010-08-27 Pedro Alves <pedro@codesourcery.com>
16570 * configure.ac (build_warnings): Add -Wno-char-subscripts.
16571 * configure: Regenerate.
16573 2010-08-27 Pedro Alves <pedro@codesourcery.com>
16575 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
16576 (linux_done_accessing_memory): ... this.
16577 (linux_target_ops): Adjust.
16578 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
16579 * nto-low.c (nto_target_ops): Adjust comment.
16580 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
16581 * spu-low.c (spu_target_ops): Adjust comment.
16582 * target.h (target_ops): Rename unprepare_to_access_memory field
16583 to done_accessing_memory.
16584 (unprepare_to_access_memory): Rename to ...
16585 (done_accessing_memory): ... this.
16587 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16589 * linux-low.c (linux_prepare_to_access_memory): New.
16590 (linux_unprepare_to_access_memory): New.
16591 (linux_target_ops): Install them.
16592 * server.c (read_memory): Rename to ...
16593 (gdb_read_memory): ... this. Use
16594 prepare_to_access_memory/prepare_to_access_memory.
16595 (write_memory): Rename to ...
16596 (gdb_write_memory): ... this. Use
16597 prepare_to_access_memory/prepare_to_access_memory.
16598 (handle_search_memory_1): Adjust.
16599 (process_serial_event): Adjust.
16600 * target.h (struct target_ops): New fields
16601 prepare_to_access_memory and unprepare_to_access_memory.
16602 (prepare_to_access_memory, unprepare_to_access_memory): New.
16603 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
16604 prepare_to_access_memory/prepare_to_access_memory.
16605 * nto-low.c (nto_target_ops): Adjust.
16606 * spu-low.c (spu_target_ops): Adjust.
16607 * win32-low.c (win32_target_ops): Adjust.
16609 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16611 * Makefile.in (WARN_CFLAGS): Get it from configure.
16612 (WERROR_CFLAGS): New.
16613 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
16614 * configure.ac: Introduce --enable-werror, which adds -Werror to
16615 the compiler command line. Enabled by default. Disable with
16616 --disable-werror. Add -Wdeclaration-after-statement
16617 Wpointer-arith and -Wformat-nonliteral to warning flags.
16618 * configure: Regenerate.
16620 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16622 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
16624 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16626 * gdbreplay.c (remote_error): New.
16628 (expect): Use gdbchar. Check for error reading from GDB.
16629 Clarify sync error output.
16630 (play): Check for errors writing to GDB.
16631 * linux-low.c (sigchld_handler): Really ignore `write' errors.
16632 * remote-utils.c (getpkt): Check for errors writing to the remote
16635 2010-08-25 Pedro Alves <pedro@codesourcery.com>
16637 * linux-low.c (linux_wait_1): Move non-debugging code out of
16638 `debug_threads' control.
16640 2010-08-25 Pedro Alves <pedro@codesourcery.com>
16642 * linux-low.c (linux_wait_1): Don't set last_status here.
16643 * server.c (push_event, queue_stop_reply_callback): Assert we're
16644 not pushing a TARGET_WAITKIND_IGNORE event.
16645 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
16646 (myresume, handle_target_event): Set the thread's last_resume_kind
16647 and last_status from the target returned status.
16649 2010-08-25 Pedro Alves <pedro@codesourcery.com>
16653 * linux-x86-low.c (update_debug_registers_callback): New.
16654 (i386_dr_low_set_addr): Use it.
16655 (i386_dr_low_get_addr): New.
16656 (i386_dr_low_set_control): Use update_debug_registers_callback.
16657 (i386_dr_low_get_control): New.
16658 (i386_dr_low_get_status): Adjust.
16659 * linux-low.c (linux_stop_lwp): New.
16660 * linux-low.h (linux_stop_lwp): Declare.
16662 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
16663 argument instead of a i386_debug_reg_state.
16664 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
16665 a i386_debug_reg_state.
16666 (i386_insert_aligned_watchpoint): Adjust.
16667 (i386_remove_aligned_watchpoint): Adjust.
16668 (i386_low_stopped_data_address): Read the debug registers from the
16669 inferior instead of from the mirrors.
16670 * i386-low.h (struct i386_debug_reg_state): Extend comment.
16671 (i386_dr_low_get_addr): Declare.
16672 (i386_dr_low_get_control): Declare.
16673 (i386_dr_low_get_status): Change prototype.
16675 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
16676 (i386_dr_low_get_addr): New.
16677 (i386_dr_low_get_control): New.
16678 (i386_dr_low_get_status): Adjust prototype. Return
16680 (i386_initial_stuff): Clear dr_status_mirror and
16682 (i386_get_thread_context): Adjust.
16683 (i386_set_thread_context): Adjust.
16684 (i386_thread_added): Adjust.
16686 2010-08-24 Pedro Alves <pedro@codesourcery.com>
16688 * linux-low.h (linux_thread_area): Delete declaration.
16690 2010-08-11 Thomas Schwinge <thomas@codesourcery.com>
16692 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
16693 after its termination.
16695 2010-08-09 Pedro Alves <pedro@codesourcery.com>
16697 * linux-low.c (gdb_wants_lwp_stopped): Delete.
16698 (gdb_wants_all_stopped): Delete.
16699 (linux_wait_1): Don't call them.
16700 * server.c (handle_v_cont): Tag all threads as want-stopped.
16701 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
16702 stopped as "client-wants-stopped".
16704 2010-07-31 Pedro Alves <pedro@codesourcery.com>
16706 * Makefile.in (signals_h): New.
16707 (server_h): Depend on it.
16708 (server.o): Don't depend on $(signals_def).
16709 (signals.o): Depend on $(signals_def).
16711 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
16713 * Makefile.in (signals_def): New.
16714 (server_h): Append include/gdb/signals.h and signals_def.
16715 (server.o): Append signals_def.
16717 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
16719 * server.c (handle_target_event): Use target_signal_to_host for
16720 resume_info.sig initialization.
16721 * target.h (struct thread_resume) <sig>: New comment.
16723 2010-07-20 Ozkan Sezer <sezeroz@gmail.com>
16725 * server.c (handle_query): strcpy() the returned string from paddress()
16726 instead of sprintf().
16727 * utils.c (paddress): Return phex_nz().
16729 2010-07-07 Joel Brobecker <brobecker@adacore.com>
16731 * server.c (handle_v_cont): Call mourn_inferior if process
16733 (myresume): Likewise.
16735 2010-07-01 Pedro Alves <pedro@codesourcery.com>
16737 Static tracepoints, and integration with UST.
16739 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
16740 * mem-break.c (uninsert_all_breakpoints)
16741 (reinsert_all_breakpoints): New.
16742 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
16743 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
16744 (gdb_agent_ust_loaded, helper_thread_id)
16745 (gdb_agent_helper_thread_id): New macros.
16746 (struct ipa_sym_addresses): Add addr_ust_loaded,
16747 addr_helper_thread_id, addr_cmd_buf.
16748 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
16749 (in_process_agent_loaded_ust): New.
16750 (write_e_ust_not_loaded): New.
16751 (maybe_write_ipa_ust_not_loaded): New.
16752 (struct collect_static_trace_data_action): New.
16753 (enum tracepoint_type) <static_tracepoint>: New.
16754 (struct tracepoint) <handle>: Mention static tracepoints.
16755 (struct static_tracepoint_ctx): New.
16756 (CMD_BUF_SIZE): New.
16757 (add_tracepoint_action): Handle static tracepoint actions.
16758 (unprobe_marker_at): New.
16759 (clear_installed_tracepoints): Handle static tracepoints.
16760 (cmd_qtdp): Handle static tracepoints.
16761 (probe_marker_at): New.
16762 (cmd_qtstart): Handle static tracepoints.
16763 (response_tracepoint): Handle static tracepoints.
16764 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
16765 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
16766 (get_context_regcache): Handle static tracepoints.
16767 (do_action_at_tracepoint): Handle static tracepoint actions.
16768 (traceframe_find_block_type): Handle static trace data blocks.
16769 (traceframe_read_sdata): New.
16770 (download_tracepoints): Download static tracepoint actions.
16771 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
16772 (GDB_PROBE_NAME): New.
16774 (GET_UST_SYM): New.
16777 (ust_marker_to_static_tracepoint): New.
16779 (collect_ust_data_at_tracepoint): New.
16780 (gdb_ust_probe): New.
16781 (UNIX_PATH_MAX, SOCK_DIR): New.
16782 (gdb_ust_connect_sync_socket): New.
16783 (resume_thread, stop_thread): New.
16784 (run_inferior_command): New.
16785 (init_named_socket): New.
16786 (gdb_ust_socket_init): New.
16787 (cstr_to_hexstr): New.
16789 (first_marker, next_marker): New.
16790 (response_ust_marker): New.
16791 (cmd_qtfstm, cmd_qtsstm): New.
16792 (unprobe_marker_at, probe_marker_at): New.
16793 (cmd_qtstmat, gdb_ust_thread): New.
16794 (gdb_ust_init): New.
16795 (initialize_tracepoint_ftlib): Call gdb_ust_init.
16796 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
16797 (ST_REGENTRY): New.
16798 (x86_64_st_collect_regmap): New.
16799 (X86_64_NUM_ST_COLLECT_GREGS): New.
16800 (AMD64_RIP_REGNUM): New.
16801 (supply_static_tracepoint_registers): New.
16802 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
16803 (ST_REGENTRY): New.
16804 (i386_st_collect_regmap): New.
16805 (i386_NUM_ST_COLLECT_GREGS): New.
16806 (supply_static_tracepoint_registers): New.
16807 * server.c (handle_query): Handle qXfer:statictrace:read.
16808 <qSupported>: Report support for StaticTracepoints, and
16809 qXfer:statictrace:read features.
16810 * server.h (traceframe_read_sdata)
16811 (supply_static_tracepoint_registers): Declare.
16812 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
16813 (unpack_varlen_hex): Include in IPA build.
16814 * Makefile.in (ustlibs, ustinc): New.
16815 (IPA_OBJS): Add remote-utils-ipa.o.
16816 ($(IPA_LIB)): Link -ldl and -lpthread.
16818 (IPAGENT_CFLAGS): Add UST_CFLAGS.
16819 * config.in, configure: Regenerate.
16821 2010-06-20 Ian Lance Taylor <iant@google.com>
16822 Pedro Alves <pedro@codesourcery.com>
16824 * linux-x86-low.c (always_true): Delete.
16825 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
16826 trying to fool the compiler with always_true.
16828 2010-06-20 Pedro Alves <pedro@codesourcery.com>
16830 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
16831 conditions in gdbserver.
16833 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
16835 * spu-low.c (spu_read_memory): Wrap around local store limit.
16836 (spu_write_memory): Likewise.
16838 2010-06-15 Pedro Alves <pedro@codesourcery.com>
16840 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
16841 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
16843 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
16845 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
16846 uses with LONGEST uses.
16848 2010-06-14 Stan Shebs <stan@codesourcery.com>
16849 Pedro Alves <pedro@codesourcery.com>
16853 * linux-x86-low.c: Include limits.h.
16855 (always_true): New.
16858 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
16859 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
16860 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
16861 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
16862 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
16863 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
16864 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
16865 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
16866 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
16867 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
16868 (amd64_emit_void_call_2): New.
16869 (amd64_emit_ops): New.
16870 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
16871 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
16872 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
16873 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
16874 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
16875 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
16876 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
16877 (i386_emit_call, i386_emit_reg, i386_emit_pop)
16878 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
16879 (i386_emit_stack_adjust, i386_emit_int_call_1)
16880 (i386_emit_void_call_2): New.
16881 (i386_emit_ops): New.
16882 (x86_emit_ops): New.
16883 (the_low_target): Install x86_emit_ops.
16884 * server.h (struct emit_ops): New.
16885 (get_raw_reg_func_addr): Declare.
16886 (current_insn_ptr, emit_error): Declare.
16887 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
16888 (set_trace_state_variable_value): New defines.
16889 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
16890 addr_get_trace_state_variable_value and
16891 addr_set_trace_state_variable_value.
16892 (symbol_list): New fields for get_raw_reg,
16893 get_trace_state_variable_value and set_trace_state_variable_value.
16894 (condfn): New typedef.
16895 (struct tracepoint): New field `compiled_cond'.
16896 (do_action_at_tracepoint): Clear compiled_cond.
16897 (get_trace_state_variable_value, set_trace_state_variable_value):
16899 (condition_true_at_tracepoint): If there's a compiled condition,
16901 (current_insn_ptr, emit_error): New globals.
16902 (struct bytecode_address): New.
16903 (get_raw_reg_func_addr): New.
16904 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
16905 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
16906 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
16907 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
16908 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
16909 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
16910 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
16911 (compile_tracepoint_condition, compile_bytecodes): New.
16912 * target.h (emit_ops): Forward declare.
16913 (struct target_ops): New field emit_ops.
16914 (target_emit_ops): New.
16915 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
16916 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
16917 * linux-low.c (linux_emit_ops): New.
16918 (linux_target_ops): Install it.
16919 * linux-low.h (struct linux_target_ops): New field emit_ops.
16921 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
16923 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
16924 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
16926 2010-06-01 Pedro Alves <pedro@codesourcery.com>
16927 Stan Shebs <stan@codesourcery.com>
16929 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
16930 (all): Depend on $(extra_libraries).
16931 (install-only): Install the IPA.
16932 (IPA_OBJS, IPA_LIB): New.
16933 (clean): Remove the IPA lib.
16934 (IPAGENT_CFLAGS): New.
16935 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
16936 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
16937 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
16938 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
16939 * configure.ac: Check for atomic builtins support in the compiler.
16940 (IPA_DEPFILES, extra_libraries): Define.
16941 * configure.srv (ipa_obj): Add description.
16942 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
16943 (i[34567]86-*-linux*): Set ipa_obj.
16944 (x86_64-*-linux*): Set ipa_obj.
16945 * linux-low.c (stabilizing_threads): New.
16946 (supports_fast_tracepoints): New.
16947 (linux_detach): Stabilize threads before detaching.
16948 (handle_tracepoints): Handle internal tracing breakpoints. Assert
16949 the lwp is either not stabilizing, or is moving out of a jump pad.
16950 (linux_fast_tracepoint_collecting): New.
16951 (maybe_move_out_of_jump_pad): New.
16952 (enqueue_one_deferred_signal): New.
16953 (dequeue_one_deferred_signal): New.
16954 (linux_wait_for_event_1): If moving out of a jump pad, defer
16955 pending signals to later.
16956 (linux_stabilize_threads): New.
16957 (linux_wait_1): Check if threads need moving out of jump pads, and
16959 (stuck_in_jump_pad_callback): New.
16960 (move_out_of_jump_pad_callback): New.
16961 (lwp_running): New.
16962 (linux_resume_one_lwp): Handle moving out of jump pads.
16963 (linux_set_resume_request): Dequeue deferred signals.
16964 (need_step_over_p): Also step over fast tracepoint jumps.
16965 (start_step_over): Also uninsert fast tracepoint jumps.
16966 (finish_step_over): Also reinsert fast tracepoint jumps.
16967 (linux_install_fast_tracepoint_jump): New.
16968 (linux_target_ops): Install linux_stabilize_threads and
16969 linux_install_fast_tracepoint_jump_pad.
16970 * linux-low.h (linux_target_ops) <get_thread_area,
16971 install_fast_tracepoint_jump_pad>: New fields.
16972 (struct lwp_info) <collecting_fast_tracepoint,
16973 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
16974 (linux_get_thread_area): Declare.
16975 * linux-x86-low.c (jump_insn): New.
16976 (x86_get_thread_area): New.
16977 (append_insns): New.
16978 (push_opcode): New.
16979 (amd64_install_fast_tracepoint_jump_pad): New.
16980 (i386_install_fast_tracepoint_jump_pad): New.
16981 (x86_install_fast_tracepoint_jump_pad): New.
16982 (the_low_target): Install x86_get_thread_area and
16983 x86_install_fast_tracepoint_jump_pad.
16984 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
16985 (struct fast_tracepoint_jump): New.
16986 (fast_tracepoint_jump_insn): New.
16987 (fast_tracepoint_jump_shadow): New.
16988 (find_fast_tracepoint_jump_at): New.
16989 (fast_tracepoint_jump_here): New.
16990 (delete_fast_tracepoint_jump): New.
16991 (set_fast_tracepoint_jump): New.
16992 (uninsert_fast_tracepoint_jumps_at): New.
16993 (reinsert_fast_tracepoint_jumps_at): New.
16994 (set_breakpoint_at): Use write_inferior_memory.
16995 (uninsert_raw_breakpoint): Use write_inferior_memory.
16996 (check_mem_read): Mask out fast tracepoint jumps.
16997 (check_mem_write): Mask out fast tracepoint jumps.
16998 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
16999 (set_fast_tracepoint_jump): Declare.
17000 (delete_fast_tracepoint_jump)
17001 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
17002 (reinsert_fast_tracepoint_jumps_at): Declare.
17003 * regcache.c: Don't compile many functions when building the
17004 in-process agent library.
17005 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
17006 the register buffer in the heap.
17007 (free_register_cache): If the register buffer isn't owned by the
17008 regcache, don't free it.
17009 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
17010 pre-existing register caches.
17011 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
17013 (convert_ascii_to_int): : Constify `from' parameter type.
17014 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
17015 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
17016 the needed buffer in-place.
17017 (relocate_instruction): New.
17018 * server.c (handle_query) <qSymbols>: If the target supports
17019 tracepoints, give it a chance of looking up symbols. Report
17020 support for fast tracepoints.
17021 (handle_status): Stabilize threads.
17022 (process_serial_event): Adjust.
17023 * server.h (struct fast_tracepoint_jump): Forward declare.
17024 (struct process_info) <fast_tracepoint_jumps>: New field.
17025 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
17026 (decode_X_packet, decode_M_packet): Adjust.
17027 (relocate_instruction): Declare.
17028 (in_process_agent_loaded): Declare.
17029 (tracepoint_look_up_symbols): Declare.
17030 (struct fast_tpoint_collect_status): Declare.
17031 (fast_tracepoint_collecting): Declare.
17032 (force_unlock_trace_buffer): Declare.
17033 (handle_tracepoint_bkpts): Declare.
17034 (initialize_low_tracepoint)
17035 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
17036 * target.h (struct target_ops) <stabilize_threads,
17037 install_fast_tracepoint_jump_pad>: New fields.
17038 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
17039 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
17040 [HAVE_STDINT_H]: Include stdint.h.
17041 (trace_debug_1): Rename to ...
17042 (trace_vdebug): ... this.
17043 (trace_debug): Rename to ...
17044 (trace_debug_1): ... this. Add `level' parameter.
17045 (trace_debug): New.
17046 (ATTR_USED, ATTR_NOINLINE): New.
17047 (IP_AGENT_EXPORT): New.
17048 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
17049 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
17050 (about_to_request_buffer_space, trace_buffer_is_full)
17051 (stopping_tracepoint, expr_eval_result, error_tracepoint)
17052 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
17053 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
17054 (traceframe_write_count, traceframes_created)
17055 (trace_state_variables)
17056 New renaming defines.
17057 (struct ipa_sym_addresses): New.
17058 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
17059 (symbol_list): New.
17060 (ipa_sym_addrs): New.
17061 (all_tracepoint_symbols_looked_up): New.
17062 (in_process_agent_loaded): New.
17063 (write_e_ipa_not_loaded): New.
17064 (maybe_write_ipa_not_loaded): New.
17065 (tracepoint_look_up_symbols): New.
17066 (debug_threads) [IN_PROCESS_AGENT]: New.
17067 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
17068 (UNKNOWN_SIDE_EFFECTS): New.
17069 (stop_tracing): New.
17070 (flush_trace_buffer): New.
17071 (stop_tracing_bkpt): New.
17072 (flush_trace_buffer_bkpt): New.
17073 (read_inferior_integer): New.
17074 (read_inferior_uinteger): New.
17075 (read_inferior_data_pointer): New.
17076 (write_inferior_data_pointer): New.
17077 (write_inferior_integer): New.
17078 (write_inferior_uinteger): New.
17079 (struct collect_static_trace_data_action): Delete.
17080 (enum tracepoint_type): New.
17081 (struct tracepoint) <type>: New field `type'.
17082 <actions_str, step_actions, step_actions_str>: Only include in
17084 <orig_size, obj_addr_on_target, adjusted_insn_addr>
17085 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
17086 (tracepoints): Use IP_AGENT_EXPORT.
17087 (last_tracepoint): Don't include in the IPA.
17088 (stopping_tracepoint): Use IP_AGENT_EXPORT.
17089 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
17090 (alloced_trace_state_variables): New.
17091 (trace_state_variables): Use IP_AGENT_EXPORT.
17092 (traceframe_t): Delete unused variable.
17093 (circular_trace_buffer): Don't include in the IPA.
17094 (trace_buffer_start): Delete.
17095 (struct trace_buffer_control): New.
17096 (trace_buffer_free): Delete.
17097 (struct ipa_trace_buffer_control): New.
17098 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
17099 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
17101 (trace_buffer_ctrl): New.
17102 (TRACE_BUFFER_CTRL_CURR): New.
17103 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
17104 Reimplement as macros.
17105 (trace_buffer_wrap): Delete.
17106 (traceframe_write_count, traceframe_read_count)
17107 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
17108 (struct tracepoint_hit_ctx) <type>: New field.
17109 (struct fast_tracepoint_ctx): New.
17110 (memory_barrier): New.
17112 (record_tracepoint_error): Update atomically in the IPA.
17113 (clear_inferior_trace_buffer): New.
17114 (about_to_request_buffer_space): New.
17115 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
17116 updating the same buffer.
17117 (add_tracepoint): Default the tracepoint's type to trap
17118 tracepoint, and orig_size to -1.
17119 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
17120 internal variables.
17121 (create_trace_state_variable): New parameter `gdb'. Handle it.
17122 (clear_installed_tracepoints): Clear fast tracepoint jumps.
17123 (cmd_qtdp): Handle fast tracepoints.
17124 (cmd_qtdv): Adjust.
17125 (max_jump_pad_size): New.
17126 (gdb_jump_pad_head): New.
17127 (get_jump_space_head): New.
17128 (claim_jump_space): New.
17129 (sort_tracepoints): New.
17130 (MAX_JUMP_SIZE): New.
17131 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
17133 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
17134 support. Upload fast traceframes, and delete internal IPA
17136 (stop_tracing_handler): New.
17137 (flush_trace_buffer_handler): New.
17138 (cmd_qtstop): Upload fast tracepoints.
17139 (response_tracepoint): Handle fast tracepoints.
17140 (tracepoint_finished_step): Upload fast traceframes. Set the
17141 tracepoint hit context's tracepoint type.
17142 (handle_tracepoint_bkpts): New.
17143 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
17144 type. Add comment about fast tracepoints.
17145 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
17146 non-existing action_str field.
17147 (get_context_regcache): Handle fast tracepoints.
17148 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
17150 (fast_tracepoint_from_jump_pad_address): New.
17151 (fast_tracepoint_from_ipa_tpoint_address): New.
17152 (collecting_t): New.
17153 (force_unlock_trace_buffer): New.
17154 (fast_tracepoint_collecting): New.
17156 (gdb_collect): New.
17157 (write_inferior_data_ptr): New.
17158 (target_tp_heap): New.
17159 (target_malloc): New.
17160 (download_agent_expr): New.
17162 (download_tracepoints): New.
17163 (download_trace_state_variables): New.
17164 (upload_fast_traceframes): New.
17165 (IPA_FIRST_TRACEFRAME): New.
17166 (IPA_NEXT_TRACEFRAME_1): New.
17167 (IPA_NEXT_TRACEFRAME): New.
17168 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
17169 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
17170 (gdb_jump_pad_buffer_end): New.
17171 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
17172 (initialize_tracepoint): Adjust.
17173 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
17174 buffer. Initialize the low module.
17175 * utils.c (PREFIX, TOOLNAME): New.
17176 (malloc_failure): Use PREFIX.
17177 (error): In the IPA, an error causes an exit.
17178 (fatal, warning): Use PREFIX.
17179 (internal_error): Use TOOLNAME.
17180 (NUMCELLS): Increase to 10.
17181 * configure, config.in: Regenerate.
17183 2010-06-01 Pedro Alves <pedro@codesourcery.com>
17185 * server.c (handle_query) <qSupported>: Do two passes over the
17186 qSupported string to avoid nesting strtok.
17188 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17190 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
17192 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
17193 -Wl,--dynamic-list.
17194 * configure: Regenerate.
17195 * proc-service.list: New.
17197 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17199 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
17202 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
17204 * gdbreplay.c (remote_open): Check error return from socket() call by
17205 its equality to -1 not by it being negative.
17206 * remote-utils.c (remote_open): Likewise.
17208 2010-05-23 Pedro Alves <pedro@codesourcery.com>
17210 * config.h: Regenerate.
17212 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17214 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
17215 doesn't provide PTRACE_GET_THREAD_AREA.
17217 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17219 * linux-m68k-low.c: Include <asm/ptrace.h>
17220 (ps_get_thread_area): Implement.
17222 2010-05-03 Doug Evans <dje@google.com>
17224 * event-loop.c (struct callback_event): New struct.
17225 (callback_list): New global.
17226 (append_callback_event, delete_callback_event): New functions.
17227 (process_callback): New function.
17228 (start_event_loop): Call it.
17229 * remote-utils.c (NOT_SCHEDULED): Define.
17230 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
17231 moved out of readchar.
17232 (readchar): Rewrite. Call reschedule before returning.
17233 (reset_readchar): New function.
17234 (remote_close): Call it.
17235 (process_remaining, reschedule): New functions.
17236 * server.h (callback_handler_func): New typedef.
17237 (append_callback_event, delete_callback_event): Declare.
17239 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17241 * proc-service.c (ps_pglobal_lookup): Use
17242 thread_db_look_up_one_symbol.
17243 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
17244 parameter. Use it instead of all_symbols_looked_up.
17245 * server.h (struct process_info) <all_symbols_looked_up>: Delete
17247 (all_symbols_looked_up): Don't declare.
17248 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
17249 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
17251 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
17252 Set all_symbols_looked_up here.
17253 (thread_db_look_up_one_symbol): New.
17254 (thread_db_get_tls_address): Adjust.
17255 (thread_db_load_search, try_thread_db_load_1): Always allocate the
17256 thread_db object on the heap, and tentatively set it in the
17258 (thread_db_init): Don't set all_symbols_looked_up here.
17259 * linux-low.h (thread_db_look_up_one_symbol): Declare.
17261 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17263 * linux-low.c (linux_kill, linux_detach): Adjust.
17264 (status_pending_p_callback): Remove redundant statement. Check
17265 for !TARGET_WAITIKIND_IGNORE, instead of
17266 TARGET_WAITKIND_STOPPED.
17267 (handle_tracepoints): Make sure LWP is locked. Adjust.
17268 (linux_wait_for_event_1): Adjust.
17269 (linux_cancel_breakpoints): New.
17270 (unsuspend_one_lwp): New.
17271 (unsuspend_all_lwps): New.
17272 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
17273 (send_sigstop_callback): Change return type to int, add new
17274 `except' parameter and handle it.
17275 (suspend_and_send_sigstop_callback): New.
17276 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
17277 pass them down. If SUSPEND, also increment the lwp's suspend
17279 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
17280 (need_step_over_p): Don't consider suspended LWPs.
17281 (start_step_over): Adjust.
17282 (proceed_one_lwp): Change return type to int, add new `except'
17283 parameter and handle it.
17284 (unsuspend_and_proceed_one_lwp): New.
17285 (proceed_all_lwps): Use find_inferior instead of
17287 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
17288 also decrement the suspend count of LWPs. Pass `except' down,
17289 instead of hacking its suspend count.
17290 (linux_pause_all): Add `freeze' parameter. Adjust.
17291 (linux_unpause_all): New.
17292 (linux_target_ops): Install linux_unpause_all.
17293 * server.c (handle_status): Adjust.
17294 * target.h (struct target_ops): New fields `unpause_all' and
17295 `cancel_breakpoints'. Add new parameter to `pause_all'.
17296 (pause_all): Add new `freeze' parameter.
17297 (unpause_all): New.
17298 (cancel_breakpoints): New.
17299 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
17300 cancel breakpoints.
17301 (cmd_qtstart): Pause threads.
17302 (stop_tracing): Pause threads, and cancel breakpoints.
17303 * win32-low.c (win32_target_ops): Adjust.
17305 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17307 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
17308 the inferior right away from here...
17309 (linux_wait_1): ... to here, and adjust to check the thread's
17310 last_resume_kind instead of the lwp's step or stop_expected flags.
17312 2010-05-02 Pedro Alves <pedro@codesourcery.com>
17314 * README: Use consistent `GDB' and `GDBserver' spellings.
17316 2010-05-02 Pedro Alves <pedro@codesourcery.com>
17318 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
17319 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
17320 (linux_detach_one_lwp): Assume the lwp is stopped.
17321 (any_thread_of): Delete.
17322 (linux_detach): Stop all lwps here. Don't blindly delete all
17324 (delete_lwp_callback): New.
17325 (linux_mourn): Delete all lwps of the process that is gone.
17326 (linux_wait_1): Don't delete the last lwp of the process here.
17327 * mem-break.h (mark_breakpoints_out): Declare.
17328 * mem-break.c (mark_breakpoints_out): New.
17329 (free_all_breakpoints): Use it.
17330 * server.c (handle_target_event): If the process is gone, mark
17332 * thread-db.c (struct thread_db) <create_bp>: New field.
17333 (thread_db_enable_reporting): Fix prototype. Store a thread event
17334 breakpoint reference in the thread_db struct.
17335 (thread_db_load_search): Clear the thread_db object.
17336 (try_thread_db_load_1): Ditto.
17337 (switch_to_process): New.
17338 (disable_thread_event_reporting): Use it.
17339 (remove_thread_event_breakpoints): New.
17340 (thread_db_detach, thread_db_mourn): Use it.
17342 2010-05-01 Pedro Alves <pedro@codesourcery.com>
17344 * linux-low.c (linux_enable_event_reporting): New.
17345 (linux_wait_for_event_1, handle_extended_wait): Use it.
17347 2010-04-30 Pedro Alves <pedro@codesourcery.com>
17349 * linux-low.c (linux_kill_one_lwp, linux_kill)
17350 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
17351 (send_sigstop): Take an lwp_info as parameter instead. Queue a
17352 SIGSTOP even if the LWP is stopped.
17353 (send_sigstop_callback): New.
17354 (stop_all_lwps): Use send_sigstop_callback instead.
17355 (linux_resume_one_thread): Adjust.
17356 (proceed_one_lwp): Still proceed an LWP that the client has
17357 requested to stop, if we haven't reported it as stopped yet. Make
17358 sure that LWPs the client want stopped, have a pending SIGSTOP.
17360 2010-04-26 Doug Evans <dje@google.com>
17362 * server.c (handle_general_set): Make static.
17364 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
17365 Print received char after testing for error/eof instead of before.
17366 (input_interrupt): Tweak comment.
17368 2010-04-23 Doug Evans <dje@google.com>
17370 * server.c (start_inferior): Print inferior argv if --debug.
17372 2010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
17374 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
17375 * nto-x86-low.c: Include server.h
17377 2010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
17379 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
17380 be consistent with other sources of this directory.
17381 (init_registers_amd64): Correct name of source file of this function
17384 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17386 * configure.srv (x86_64-*-mingw*): New configuration for Windows
17387 64-bit executables.
17389 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17391 * win32-i386-low.c: Add 64-bit support.
17392 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
17393 (init_registers_amd64): Declare.
17394 (mappings): Add 64-bit version of array.
17395 (init_windows_x86): New function.
17396 (the_low_target): Change init_arch field to init_windows_x86.
17398 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17400 * win32-low.c: Adapt to support also 64-bit architecture.
17401 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
17402 (get_image_name): Use SIZE_T type for local variable `done'.
17403 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
17404 (toolhelp_get_dll_name): Idem.
17405 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
17406 Use uintptr_t typecast to avoid warning.
17407 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
17408 (handle_exception): Use phex_nz to avoid warning.
17409 (win32_wait): Remove unused local variable `process'.
17411 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17413 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
17416 2010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
17418 * configure.ac: Use `ws2_32' library for srv_mingw.
17419 * configure: Regenerate.
17420 * gdbreplay.c: Include winsock2.h instead of winsock.h.
17421 * remote-utils.c: Likewise.
17423 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
17425 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
17426 if __x86_64__ is defined.
17428 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17430 * configure: Regenerate.
17432 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17434 * server.c (handle_query): Handle 'qGetTIBAddr' query.
17435 * target.h (target_ops): New get_tib_address field.
17436 * win32-low.h (win32_thread_info): Add thread_local_base field.
17437 * win32-low.c (child_add_thread): Add tlb argument.
17438 Set thread_local_base field to TLB.
17439 (get_child_debug_event): Adapt to child_add_thread change.
17440 (win32_get_tib_address): New function.
17441 (win32_target_ops): Set get_tib_address field to
17442 win32_get_tib_address.
17443 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
17445 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17447 * linux-low.c (linux_mourn): Also remove the process.
17448 * server.c (handle_target_event): Don't remove the process here.
17449 * nto-low.c (nto_mourn): New.
17450 (nto_target_ops): Install it.
17451 * spu-low.c (spu_mourn): New.
17452 (spu_target_ops): Install it.
17453 * win32-low.c (win32_mourn): New.
17454 (win32_target_ops): Install it.
17456 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17458 * server.h (buffer_xml_printf): Remove redundant `;'.
17460 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17462 * regcache.c (set_register_cache): Invalidate regcaches before
17463 changing the register cache layout.
17464 (regcache_invalidate_one): Allow a NULL regcache.
17465 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
17466 regcaches before changing the register cache layout or the target
17469 2010-04-12 H.J. Lu <hongjiu.lu@intel.com>
17471 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
17472 variable warning on Linux/x86-64.
17474 2010-04-11 Pedro Alves <pedro@codesourcery.com>
17476 GDBserver disconnected tracing support.
17478 * linux-low.c (linux_remove_process): Delete.
17479 (add_lwp): Don't set last_resume_kind here.
17480 (linux_kill): Use `mourn'.
17481 (linux_detach): Use `thread_db_detach', and `mourn'.
17482 (linux_mourn): New.
17483 (linux_attach_lwp_1): Adjust comment.
17484 (linux_attach): last_resume_kind moved the thread_info; adjust.
17485 (status_pending_p_callback): Adjust.
17486 (linux_wait_for_event_1): Adjust.
17487 (count_events_callback, select_singlestep_lwp_callback)
17488 (select_event_lwp_callback, cancel_breakpoints_callback)
17489 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
17490 (proceed_one_lwp): Adjust.
17491 (linux_async): Add debug output.
17492 (linux_thread_stopped): New.
17493 (linux_pause_all): New.
17494 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
17496 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
17497 (thread_db_free): Delete declaration.
17498 (thread_db_detach, thread_db_mourn): Declare.
17499 * thread-db.c (thread_db_init): Use thread_db_mourn.
17500 (thread_db_free): Delete, split in two.
17501 (disable_thread_event_reporting): New.
17502 (thread_db_detach): New.
17503 (thread_db_mourn): New.
17505 * server.h (struct thread_info) <last_resume_kind>: New field.
17506 <attached>: Add comment.
17507 <gdb_detached>: New field.
17508 (handler_func): Change return type to int.
17509 (handle_serial_event, handle_target_event): Ditto.
17510 (gdb_connected): Declare.
17512 (disconnected_tracing): Declare.
17513 (stop_tracing): Declare.
17515 * server.c (handle_query) <qSupported>: Report support for
17516 disconnected tracing.
17517 (queue_stop_reply_callback): Account for running threads.
17518 (gdb_wants_thread_stopped): New.
17519 (gdb_wants_all_threads_stopped): New.
17520 (gdb_reattached_process): New.
17521 (handle_status): Clear the `gdb_detached' flag of all processes.
17522 In all-stop, stop all threads.
17523 (main): Be sure to leave tfind mode. Handle disconnected tracing.
17524 (process_serial_event): If the remote connection breaks, or if an
17525 exit was forced with "monitor exit", force an event loop exit.
17526 Handle disconnected tracing on detach.
17527 (handle_serial_event): Adjust.
17528 (handle_target_event): If GDB isn't connected, forward events back
17529 to the inferior, unless the last process exited, in which case,
17530 exit gdbserver. Adjust interface.
17532 * remote-utils.c (remote_open): Don't block in accept. Instead
17533 register an event loop source on the listen socket file
17534 descriptor. Refactor bits into ...
17535 (listen_desc): ... this new global.
17536 (gdb_connected): ... this new function.
17537 (enable_async_notification): ... this new function.
17538 (handle_accept_event): ... this new function.
17539 (remote_close): Clear remote_desc.
17541 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
17543 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
17545 (mourn_inferior): Define.
17546 (target_process_qsupported): Avoid the dangling else problem.
17547 (thread_stopped): Define.
17548 (pause_all): Define.
17549 (target_waitstatus_to_string): Declare.
17550 * target.c (target_waitstatus_to_string): New.
17552 * tracepoint.c (tracing): Make extern.
17553 (disconnected_tracing): New.
17554 (stop_tracing): Make extern. Handle tracing stops due to GDB
17556 (cmd_qtdisconnected): New.
17557 (cmd_qtstatus): Report disconnected tracing status in trace reply.
17558 (handle_tracepoint_general_set): Handle QTDisconnected.
17560 * event-loop.c (event_handler_func): Change return type to int.
17561 (process_event): Bail out if the event handler wants the event
17563 (handle_file_event): Ditto.
17564 (start_event_loop): Bail out if the event handler wants the event
17567 * nto-low.c (nto_target_ops): Adjust.
17568 * spu-low.c (spu_wait): Don't remove the process here.
17569 (spu_target_ops): Adjust.
17570 * win32-low.c (win32_wait): Don't remove the process here.
17571 (win32_target_ops): Adjust.
17573 2010-04-11 Pedro Alves <pedro@codesourcery.com>
17575 * regcache.c (realloc_register_cache): Invalidate inferior's
17576 regcache before recreating it.
17578 2010-04-09 Pedro Alves <pedro@codesourcery.com>
17580 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
17582 2010-04-09 Stan Shebs <stan@codesourcery.com>
17583 Pedro Alves <pedro@codesourcery.com>
17585 * server.h (LONGEST): New.
17586 (struct thread_info) <while_stepping>: New field.
17587 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
17589 (initialize_tracepoint, handle_tracepoint_general_set)
17590 (handle_tracepoint_query, tracepoint_finished_step)
17591 (tracepoint_was_hit, release_while_stepping_state_list):
17592 (current_traceframe): Declare.
17593 * server.c (handle_general_set): Handle tracepoint packets.
17594 (read_memory): New.
17595 (write_memory): New.
17596 (handle_search_memory_1): Use read_memory.
17597 (handle_query): Report support for conditional tracepoints, trace
17598 state variables, and tracepoint sources. Handle tracepoint
17600 (main): Initialize the tracepoints module.
17601 (process_serial_event): Handle traceframe reads/writes.
17603 * linux-low.c (handle_tracepoints): New.
17604 (linux_wait_1): Call it.
17605 (linux_resume_one_lwp): Handle while-stepping.
17606 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
17607 (linux_target_ops): Install them.
17608 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
17610 * linux-x86-low.c (x86_supports_tracepoints): New.
17611 (the_low_target). Install it.
17613 * mem-break.h (delete_breakpoint): Declare.
17614 * mem-break.c (delete_breakpoint): Make external.
17616 * target.h (struct target_ops): Add `supports_tracepoints',
17617 `read_pc', and `write_pc' fields.
17618 (target_supports_tracepoints): Define.
17619 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
17622 * regcache.h (struct regcache) <registers_owned>: New field.
17623 (init_register_cache, regcache_cpy): Declare.
17624 (regcache_read_pc, regcache_write_pc): Declare.
17625 (register_cache_size): Declare.
17626 (supply_regblock): Declare.
17627 * regcache.c (init_register_cache): New.
17628 (new_register_cache): Use it.
17629 (regcache_cpy): New.
17630 (register_cache_size): New.
17631 (supply_regblock): New.
17632 (regcache_read_pc, regcache_write_pc): New.
17634 * tracepoint.c: New.
17636 * Makefile.in (OBS): Add tracepoint.o.
17637 (tracepoint.o): New rule.
17639 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
17641 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
17643 (i386-mmx.c): Likewise.
17644 (i386-mmx-linux.o): Likewise.
17645 (i386-mmx-linux.c): Likewise.
17647 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
17648 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
17649 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
17650 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
17652 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
17653 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
17654 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
17656 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
17658 * Makefile.in (clean): Updated.
17660 (i386-avx.c): Likewise.
17661 (i386-avx-linux.o): Likewise.
17662 (i386-avx-linux.c): Likewise.
17663 (amd64-avx.o): Likewise.
17664 (amd64-avx.c): Likewise.
17665 (amd64-avx-linux.o): Likewise.
17666 (amd64-avx-linux.c): Likewise.
17668 * configure.srv (srv_i386_regobj): Add i386-avx.o.
17669 (srv_i386_linux_regobj): Add i386-avx-linux.o.
17670 (srv_amd64_regobj): Add amd64-avx.o.
17671 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
17672 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
17673 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
17674 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
17675 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
17676 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
17677 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
17679 * i387-fp.c: Include "i386-xstate.h".
17681 (i387_cache_to_xsave): Likewise.
17682 (i387_xsave_to_cache): Likewise.
17683 (x86_xcr0): Likewise.
17685 * i387-fp.h (i387_cache_to_xsave): Likewise.
17686 (i387_xsave_to_cache): Likewise.
17687 (x86_xcr0): Likewise.
17689 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
17690 * linux-crisv32-low.c (target_regsets): Likewise.
17691 * linux-m68k-low.c (target_regsets): Likewise.
17692 * linux-mips-low.c (target_regsets): Likewise.
17693 * linux-ppc-low.c (target_regsets): Likewise.
17694 * linux-s390-low.c (target_regsets): Likewise.
17695 * linux-sh-low.c (target_regsets): Likewise.
17696 * linux-sparc-low.c (target_regsets): Likewise.
17697 * linux-xtensa-low.c (target_regsets): Likewise.
17699 * linux-low.c: Include <sys/uio.h>.
17700 (regsets_fetch_inferior_registers): Support nt_type.
17701 (regsets_store_inferior_registers): Likewise.
17702 (linux_process_qsupported): New.
17703 (linux_target_ops): Add linux_process_qsupported.
17705 * linux-low.h (regset_info): Add nt_type.
17706 (linux_target_ops): Add process_qsupported.
17708 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
17710 (init_registers_i386_avx_linux): New.
17711 (init_registers_amd64_avx_linux): Likewise.
17712 (xmltarget_i386_linux_no_xml): Likewise.
17713 (xmltarget_amd64_linux_no_xml): Likewise.
17714 (PTRACE_GETREGSET): Likewise.
17715 (PTRACE_SETREGSET): Likewise.
17716 (x86_fill_xstateregset): Likewise.
17717 (x86_store_xstateregset): Likewise.
17718 (use_xml): Likewise.
17719 (x86_linux_update_xmltarget): Likewise.
17720 (x86_linux_process_qsupported): Likewise.
17721 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
17722 (x86_arch_setup): Don't call init_registers_amd64_linux nor
17723 init_registers_i386_linux here. Call
17724 x86_linux_update_xmltarget.
17725 (the_low_target): Add x86_linux_process_qsupported.
17727 * server.c (handle_query): Call target_process_qsupported.
17729 * target.h (target_ops): Add process_qsupported.
17730 (target_process_qsupported): New.
17732 2010-04-03 Pedro Alves <pedro@codesourcery.com>
17734 * inferiors.c (add_thread): Set last_status kind to
17735 TARGET_WAITKIND_IGNORE.
17736 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
17737 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
17738 (linux_wait_1): Move `thread' local definition to block that uses
17739 it. Don't NULL initialize `event_child'.
17740 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
17741 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
17742 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
17744 2010-04-01 Pedro Alves <pedro@codesourcery.com>
17746 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
17747 an extended waitstatus, or by a watchpoint.
17748 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
17749 thread was stepping or has been stopped by a watchpoint.
17751 2010-04-01 Pedro Alves <pedro@codesourcery.com>
17753 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
17754 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
17755 of another, then delete the previous, and validate all
17757 (validate_inserted_breakpoint): New.
17758 (delete_disabled_breakpoints): New.
17759 (validate_breakpoints): New.
17760 (check_mem_read): Validate breakpoints before trusting their
17761 shadow. Delete disabled breakpoints.
17762 (check_mem_write): Validate breakpoints before trusting they
17763 should be inserted. Delete disabled breakpoints.
17764 * mem-break.h (validate_breakpoints):
17765 * server.c (handle_query): Validate breakpoints when we see a
17768 2010-04-01 Pedro Alves <pedro@codesourcery.com>
17770 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
17771 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
17772 if we could tell there's a GDB breakpoint at stop_pc.
17773 (need_step_over_p): Don't do a step over if we find a GDB
17774 breakpoint at the resume PC.
17776 * mem-break.c (struct raw_breakpoint): New.
17777 (enum bkpt_type): New type `gdb_breakpoint'.
17778 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
17779 fields. New field `raw'.
17780 (find_raw_breakpoint_at): New.
17781 (set_raw_breakpoint_at): Handle refcounting. Create a raw
17782 breakpoint instead.
17783 (set_breakpoint_at): Adjust.
17784 (delete_raw_breakpoint): New.
17785 (release_breakpoint): New.
17786 (delete_breakpoint): Rename to...
17787 (delete_breakpoint_1): ... this. Add proc parameter. Use
17788 release_breakpoint. Return ENOENT.
17789 (delete_breakpoint): Reimplement.
17790 (find_breakpoint_at): Delete.
17791 (find_gdb_breakpoint_at): New.
17792 (delete_breakpoint_at): Delete.
17793 (set_gdb_breakpoint_at): New.
17794 (delete_gdb_breakpoint_at): New.
17795 (gdb_breakpoint_here): New.
17796 (set_reinsert_breakpoint): Use release_breakpoint.
17797 (uninsert_breakpoint): Rename to ...
17798 (uninsert_raw_breakpoint): ... this.
17799 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
17800 (reinsert_raw_breakpoint): Change parameter type to
17802 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
17804 (check_breakpoints): Adjust. Use release_breakpoint.
17805 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
17806 (breakpoint_inserted_here): Ditto.
17807 (check_mem_read): Adjust to iterate over raw breakpoints instead.
17808 Don't trust the breakpoint's shadow if it is not inserted.
17809 (check_mem_write): Adjust to iterate over raw breakpoints instead.
17810 (delete_all_breakpoints): Adjust.
17811 (free_all_breakpoints): Mark all breakpoints as uninserted, and
17812 use delete_breakpoint_1.
17814 * mem-break.h (breakpoints_supported): Delete declaration.
17815 (set_gdb_breakpoint_at): Declare.
17816 (gdb_breakpoint_here): Declare.
17817 (delete_breakpoint_at): Delete.
17818 (delete_gdb_breakpoint_at): Declare.
17820 * server.h (struct raw_breakpoint): Forward declare.
17821 (struct process_info): New field `raw_breakpoints'.
17823 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
17826 2010-03-24 Pedro Alves <pedro@codesourcery.com>
17828 * linux-low.c (status_pending_p_callback): Fix comment.
17829 (linux_wait_for_event_1): Move most of the internal breakpoint
17830 handling from here...
17831 (linux_wait_1): ... to here.
17832 (count_events_callback): New.
17833 (select_singlestep_lwp_callback): New.
17834 (select_event_lwp_callback): New.
17835 (cancel_breakpoints_callback): New.
17836 (select_event_lwp): New.
17837 (linux_wait_1): Simplify internal breakpoint handling. Give equal
17838 priority to all LWPs that have had events that should be reported
17839 to the client. Cancel breakpoints when about to reporting the
17840 event to the client, not while stopping lwps. No longer cancel
17841 finished single-steps here.
17842 (cancel_finished_single_step): Delete.
17843 (cancel_finished_single_steps): Delete.
17845 2010-03-24 Pedro Alves <pedro@codesourcery.com>
17847 * mem-break.c (enum bkpt_type): New.
17848 (struct breakpoint): New field `type'.
17849 (set_breakpoint_at): Change return type to struct breakpoint
17850 pointer. Set type to `other_breakpoint' by default.
17851 (delete_breakpoint): Rewrite, supporting more than one breakpoint
17852 in the breakpoint list.
17853 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
17854 (reinsert_breakpoint): Rename to ...
17855 (reinsert_raw_breakpoint): ... this.
17856 (reinsert_breakpoints_at): Adjust.
17857 * mem-break.h (struct breakpoint): Declare.
17858 (set_breakpoint_at): Change return type to struct breakpoint
17861 2010-03-24 Pedro Alves <pedro@codesourcery.com>
17863 * server.c (handle_query): Assign, not compare.
17865 2010-03-24 Pedro Alves <pedro@codesourcery.com>
17867 Teach linux gdbserver to step-over-breakpoints.
17869 * linux-low.c (can_hardware_single_step): New.
17870 (supports_breakpoints): New.
17871 (handle_extended_wait): If stopping threads, read the stop pc of
17872 the new cloned LWP.
17874 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
17875 low target doesn't support retrieving the PC.
17876 (add_lwp): Set last_resume_kind to resume_continue.
17877 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
17878 (linux_attach): Don't clear stop_expected. Set the lwp's
17879 last_resume_kind to resume_stop.
17880 (linux_detach_one_lwp): Don't check for removed breakpoints.
17881 (check_removed_breakpoint): Delete.
17882 (status_pending_p): Rename to ...
17883 (status_pending_p_callback): ... this. Don't check for removed
17884 breakpoints. Don't consider threads that are stopped from GDB's
17886 (linux_wait_for_lwp): Always read the stop_pc here.
17887 (cancel_breakpoint): New.
17888 (step_over_bkpt): New global.
17889 (linux_wait_for_event_1): Implement stepping over breakpoints.
17890 (gdb_wants_lwp_stopped): New.
17891 (gdb_wants_all_stopped): New.
17892 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
17893 single-step traps here. Store the thread's last reported target
17895 (send_sigstop): Don't clear stop_expected. Always set it,
17897 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
17898 (cancel_finished_single_step): New.
17899 (cancel_finished_single_steps): New.
17900 (wait_for_sigstop): Don't cancel finished single-step traps here.
17901 (linux_resume_one_lwp): Don't check for removed breakpoints.
17902 Don't set `step' on non-hardware step archs.
17903 (linux_set_resume_request): Ignore resume_stop requests if already
17904 stopping or stopped. Set the lwp's last_resume_kind.
17905 (resume_status_pending_p): Don't check for removed breakpoints.
17906 (need_step_over_p): New.
17907 (start_step_over): New.
17908 (finish_step_over): New.
17909 (linux_resume_one_thread): Always queue a sigstop for resume_stop
17910 requests. Clear the thread's last reported target waitstatus.
17911 Don't use the `suspended' flag. Don't consider pending breakpoints.
17912 (linux_resume): Start a step-over if necessary.
17913 (proceed_one_lwp): New.
17914 (proceed_all_lwps): New.
17915 (unstop_all_lwps): New.
17916 * linux-low.h (struct lwp_info): Rewrite comment for the
17917 `suspended' flag. Add the `stop_pc' field. Delete the
17918 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
17919 Add `'last_resume_kind' and `need_step_over' fields.
17920 * inferiors.c (struct thread_info): Delete, moved elsewhere.
17921 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
17922 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
17923 (set_raw_breakpoint_at): New.
17924 (set_breakpoint_at): Rewrite to use it.
17925 (reinsert_breakpoint_handler): Delete.
17926 (set_reinsert_breakpoint): New.
17927 (reinsert_breakpoint_by_bp): Delete.
17928 (delete_reinsert_breakpoints): New.
17929 (uninsert_breakpoint): Rewrite.
17930 (uninsert_breakpoints_at): New.
17931 (reinsert_breakpoint): Rewrite.
17932 (reinsert_breakpoints_at): New.
17933 (check_breakpoints): Rewrite.
17934 (breakpoint_here): New.
17935 (breakpoint_inserted_here): New.
17936 (check_mem_read): Adjust.
17937 * mem-break.h (breakpoints_supported, breakpoint_here)
17938 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
17939 (reinsert_breakpoint_by_bp): Delete declaration.
17940 (delete_reinsert_breakpoints): Declare.
17941 (reinsert_breakpoint): Delete declaration.
17942 (reinsert_breakpoints_at): Declare.
17943 (uninsert_breakpoint): Delete declaration.
17944 (uninsert_breakpoints_at): Declare.
17945 (check_breakpoints): Adjust prototype.
17946 * server.h: Adjust include order.
17947 (struct thread_info): Declare here. Add a `last_status' field.
17949 2010-03-23 Michael Snyder <msnyder@vmware.com>
17951 * server.c (crc32): New function.
17952 (handle_query): Add handling for 'qCRC:' request.
17954 2010-03-23 Pedro Alves <pedro@codesourcery.com>
17956 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
17957 lwp had been stopped by a watchpoint.
17959 2010-03-16 Pedro Alves <pedro@codesourcery.com>
17961 * server.h (internal_error): Declare.
17962 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
17963 * utils.c (internal_error): New function.
17965 2010-03-15 Andreas Schwab <schwab@redhat.com>
17967 * configure.srv: Fix typo setting srv_regobj.
17969 2010-03-15 Pedro Alves <pedro@codesourcery.com>
17971 * linux-low.c (fetch_register): Avoid passing a non string literal
17973 (usr_store_inferior_registers): Ditto.
17975 2010-03-14 Pedro Alves <pedro@codesourcery.com>
17977 * linux-low.c (linux_write_memory): Bail out early if peeking
17980 2010-03-14 Pedro Alves <pedro@codesourcery.com>
17982 * linux-low.h (struct lwp_info): New fields
17983 `stopped_by_watchpoint' and `stopped_data_address'.
17984 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
17985 here, and cache them in the lwp object.
17986 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
17988 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
17990 (linux_stopped_by_watchpoint): Rewrite.
17991 (linux_stopped_data_address): Rewrite.
17993 2010-03-06 Simo Melenius <simo.melenius@iki.fi>
17995 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
17996 switching the current inferior, not before.
17998 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
18000 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
18001 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
18002 i386-linux.c and amd64-linux.c.
18003 (reg-i386.o): Removed.
18004 (reg-i386.c): Likewise.
18005 (reg-i386-linux.o): Likewise.
18006 (reg-i386-linux.c): Likewise.
18007 (reg-x86-64.o): Likewise.
18008 (reg-x86-64.c): Likewise.
18009 (reg-x86-64-linux.o): Likewise.
18010 (reg-x86-64-linux.c): Likewise.
18012 (i386.c): Likewise.
18013 (i386-linux.o): Likewise.
18014 (i386-linux.c): Likewise.
18015 (amd64.o): Likewise.
18016 (amd64.c): Likewise.
18017 (amd64-linux.o): Likewise.
18018 (amd64-linux.c): Likewise.
18020 * configure.srv (srv_i386_regobj): New.
18021 (srv_i386_linux_regobj): Likewise.
18022 (srv_amd64_regobj): Likewise.
18023 (srv_amd64_linux_regobj): Likewise.
18024 (srv_i386_32bit_xmlfiles): Likewise.
18025 (srv_i386_64bit_xmlfiles): Likewise.
18026 (srv_i386_xmlfiles): Likewise.
18027 (srv_amd64_xmlfiles): Likewise.
18028 (srv_i386_linux_xmlfiles): Likewise.
18029 (srv_amd64_linux_xmlfiles): Likewise.
18030 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
18031 srv_xmlfiles to $srv_i386_xmlfiles.
18032 (i[34567]86-*-mingw32ce*): Likewise.
18033 (i[34567]86-*-mingw*): Likewise.
18034 (i[34567]86-*-nto*): Likewise.
18035 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
18036 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
18037 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
18038 (x86_64-*-linux*): Likewise.
18040 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
18041 (init_registers_amd64_linux): New.
18042 (x86_arch_setup): Replace init_registers_x86_64_linux with
18043 init_registers_amd64_linux.
18045 2010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
18047 * configure.ac: Check for libdl. If it is not available link against
18048 static libthread_db.
18049 * configure: Regenerate.
18051 2010-02-22 Pedro Alves <pedro@codesourcery.com>
18055 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
18056 handing a read watchpoint.
18057 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
18059 2010-02-12 Doug Evans <dje@google.com>
18061 * linux-low.c (linux_supports_tracefork_flag): Document.
18062 (linux_look_up_symbols): Add comment.
18064 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
18066 * regcache.c (supply_register): Clear regcache if buf is NULL.
18068 2010-02-02 Nicolas Roche <roche@sourceware.org>
18069 Joel Brobecker <brobecker@adacore.com>
18071 * inferiors.c (find_inferior): Add function documentation.
18072 (unloaded_dll): Handle the case where the unloaded dll has not
18073 been previously registered in the dll list.
18075 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
18077 * linux-arm-low.c (thumb_breakpoint_len): Delete.
18078 (thumb2_breakpoint): New.
18079 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
18081 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18083 * linux-low.c (get_stop_pc): Check for SIGTRAP.
18084 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
18087 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18089 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
18091 2010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
18093 * linux-s390-low.c (s390_collect_ptrace_register)
18094 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
18096 2010-01-21 Doug Evans <dje@google.com>
18098 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
18099 (PTRACE_ARG4_TYPE): New macro.
18100 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
18101 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
18102 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
18103 (usr_store_inferior_registers): Ditto.
18104 (linux_read_memory, linux_write_memory): Ditto.
18105 (linux_test_for_tracefork): Ditto.
18107 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
18108 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
18110 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18112 * proc-service.c (ps_lgetregs): Don't refetch registers from the
18115 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18117 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
18118 prototype to take a regcache. Adjust.
18120 2010-01-20 Pedro Alves <pedro@codesourcery.com>
18122 * regcache.h (struct thread_info): Forward declare.
18123 (struct regcache): New.
18124 (new_register_cache): Adjust prototype.
18125 (get_thread_regcache): Declare.
18126 (free_register_cache): Adjust prototype.
18127 (registers_to_string, registers_from_string): Ditto.
18128 (supply_register, supply_register_by_name, collect_register)
18129 (collect_register_as_string, collect_register_by_name): Ditto.
18130 * regcache.c (struct inferior_regcache_data): Delete.
18131 (get_regcache): Rename to ...
18132 (get_thread_regcache): ... this. Adjust. Switch inferior before
18133 fetching registers.
18134 (regcache_invalidate_one): Adjust.
18135 (regcache_invalidate): Fix prototype.
18136 (new_register_cache): Return the new register cache.
18137 (free_register_cache): Change prototype.
18138 (realloc_register_cache): Adjust.
18139 (registers_to_string): Change prototype to take a regcache. Adjust.
18140 (registers_from_string): Ditto.
18141 (register_data): Ditto.
18142 (supply_register): Ditto.
18143 (supply_register_by_name): Ditto.
18144 (collect_register): Ditto.
18145 (collect_register_as_string): Ditto.
18146 (collect_register_by_name): Ditto.
18147 * server.c (process_serial_event): Adjust.
18148 * linux-low.h (regset_fill_func, regset_store_func): Change
18150 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
18152 * linux-low.c (get_stop_pc): Adjust.
18153 (check_removed_breakpoint): Adjust.
18154 (linux_wait_for_event): Adjust.
18155 (linux_resume_one_lwp): Adjust.
18156 (fetch_register): Add regcache parameter. Adjust.
18157 (usr_store_inferior_registers): Ditto.
18158 (regsets_fetch_inferior_registers): Ditto.
18159 (regsets_store_inferior_registers): Ditto.
18160 (linux_fetch_registers, linux_store_registers): Ditto.
18161 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
18163 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
18165 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
18166 prototype to take a regcache.
18167 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
18168 * remote-utils.c (convert_ascii_to_int, outreg)
18169 (prepare_resume_reply): Change prototype to take a regcache.
18171 * target.h (struct target_ops) <fetch_registers, store_registers>:
18172 Change prototype to take a regcache.
18173 (fetch_inferior_registers, store_inferior_registers): Change
18174 prototype to take a regcache. Adjust.
18175 * proc-service.c (ps_lgetregs): Adjust.
18176 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
18177 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
18178 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
18179 take a regcache. Adjust.
18180 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
18181 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
18182 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
18183 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
18184 * linux-cris-low.c (cris_get_pc, cris_set_pc)
18185 (cris_cannot_fetch_register):
18186 (cris_breakpoint_at): Change prototype to take a regcache.
18188 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
18189 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
18190 to take a regcache. Adjust.
18191 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
18193 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
18194 take a regcache. Adjust.
18195 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
18196 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
18197 (m68k_set_pc): Change prototype to take a regcache. Adjust.
18198 * linux-mips-low.c (mips_get_pc):
18199 (mips_set_pc): Change prototype to take a regcache. Adjust.
18200 (mips_reinsert_addr): Adjust.
18201 (mips_collect_register): Change prototype to take a regcache.
18203 (mips_supply_register):
18204 (mips_collect_register_32bit, mips_supply_register_32bit)
18205 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
18206 (mips_store_fpregset): Ditto.
18207 * linux-ppc-low.c (ppc_supply_ptrace_register)
18208 (ppc_supply_ptrace_register): Ditto.
18209 (parse_spufs_run): Adjust.
18210 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
18211 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
18212 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
18213 take a regcache. Adjust.
18214 * linux-s390-low.c (s390_collect_ptrace_register)
18215 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
18216 (s390_set_pc): Change prototype to take a regcache. Adjust.
18217 (s390_arch_setup): Adjust.
18218 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
18219 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
18220 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
18221 (sparc_fill_gregset, sparc_store_gregset_from_stack)
18222 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
18224 (sparc_breakpoint_at): Adjust.
18225 * linux-xtensa-low.c (xtensa_fill_gregset):
18226 (xtensa_store_gregset):
18227 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
18228 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
18229 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
18230 prototype to take a regcache. Adjust.
18231 * win32-arm-low.c (arm_fetch_inferior_register)
18232 (arm_store_inferior_register): Change prototype to take a
18234 * win32-i386-low.c (i386_fetch_inferior_register)
18235 (i386_store_inferior_register): Change prototype to take a
18237 * win32-low.c (child_fetch_inferior_registers)
18238 (child_store_inferior_registers): Change prototype to take a
18240 (win32_wait): Adjust.
18241 (win32_fetch_inferior_registers): Change prototype to take a
18243 (win32_store_inferior_registers): Adjust.
18244 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
18245 store_inferior_register>: Change prototype to take a regcache.
18247 2010-01-20 Doug Evans <dje@google.com>
18249 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
18251 (linux_wait_for_event1, linux_init_signals): Ditto.
18252 (W_STOPCODE): Provide definition if missing.
18254 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
18256 * linux-low.c (linux_core_of_thread): New.
18257 (compare_ints, show_process, list_threads): New.
18258 (linux_qxfer_osdata): Report threads and cores.
18259 (linux_target_op): Register linux_core_of_thread.
18260 * remote-utils.c (prepare_resume_reply): Report the core.
18261 (buffer_xml_printf): Support %d specifier.
18262 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
18264 (handle_query): Handle qXfer:threads. Announce availability
18266 * target.h (struct target_ops): New field core_of_thread.
18268 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
18270 * Makefile.in (clean): Remove new generated files.
18271 (reg-s390.o, reg-s390.c): Remove rules.
18272 (reg-s390x.o, reg-s390x.c): Likewise.
18273 (s390-linux32.o, s390-linux32.c): Add rules.
18274 (s390-linux64.o, s390-linux64.c): Likewise.
18275 (s390x-linux64.o, s390x-linux64.c): Likewise.
18276 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
18277 * linux-s390-low.c: Include <elf.h>.
18278 (HWCAP_S390_HIGH_GPRS): Define if undefined.
18279 (init_registers_s390): Remove prototype.
18280 (init_registers_s390x): Likewise.
18281 (init_registers_s390_linux32): Add prototype.
18282 (init_registers_s390_linux64): Likewise.
18283 (init_registers_s390x_linux64): Likewise.
18284 (s390_num_regs_3264): New define.
18285 (s390_regmap_3264): New global variable.
18286 (s390_cannot_fetch_register): Remove obsolete check.
18287 (s390_cannot_store_register): Likewise.
18288 (s390_collect_ptrace_register): Handle upper/lower register halves.
18289 (s390_supply_ptrace_register): Likewise.
18290 (s390_fill_gregset): Update to register number changes.
18291 (s390_get_hwcap): New routine.
18292 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
18293 Install appropriate regmap and register set.
18295 2010-01-01 Joel Brobecker <brobecker@adacore.com>
18297 * server.c (gdbserver_version): Update copyright year to 2010.
18298 * gdbreplay.c (gdbreplay_version): Likewise.
18300 2009-12-28 Doug Evans <dje@google.com>
18302 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
18303 elf/external.h. Include <elf.h> instead but only if necessary.
18305 2009-12-28 Pedro Alves <pedro@codesourcery.com>
18307 * linux-low.c (linux_remove_process): Remove `detaching'
18308 parameter. Don't release/detach from thread_db here.
18309 (linux_kill): Release/detach from thread_db here, ...
18310 (linux_detach): ... and here, before actually detaching.
18311 (linux_wait_1): ... and here, when a process exits.
18312 * thread-db.c (any_thread_of): New.
18313 (thread_db_free): Switch the current inferior to a thread of the
18316 2009-12-21 Doug Evans <dje@google.com>
18318 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
18320 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
18321 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
18322 warning ifndef __NR_tkill. Move setting of errno there too.
18323 Delete unnecessary resetting of errno after syscall.
18324 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
18326 * configure.ac: Check for dladdr.
18327 * config.in: Regenerate.
18328 * configure: Regenerate.
18329 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
18330 (try_thread_db_load): Update.
18332 * linux-low.c (my_waitpid): Delete unnecessary prototype.
18334 2009-12-18 Doug Evans <dje@google.com>
18336 * event-loop.c: Include unistd.h if it exists.
18338 * linux-low.c (my_waitpid): Move definition away from being in
18339 between linux_tracefork_child/linux_test_for_tracefork.
18341 * gdb_proc_service.h (psaddr_t): Fix type.
18342 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
18343 signature to match glibc.
18345 2009-12-16 Doug Evans <dje@google.com>
18347 * linux-low.c (linux_read_memory): Fix argument to read.
18349 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18351 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
18352 events, don't leave current_inferior pointing at null.
18354 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18356 * win32-low.c (LOG): Delete.
18357 (OUTMSG): Output to stderr.
18358 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
18359 on compile time LOG macro.
18360 (win32_wait): Fix debug output.
18362 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18364 * win32-low.c (win32_add_one_solib): If the dll name is
18365 "ntdll.dll", prepend the system directory to the dll path.
18367 2009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
18369 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
18371 2009-11-17 Nathan Sidwell <nathan@codesourcery.com>
18372 Vladimir Prus <vladimir@codesourcery.com>
18374 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
18375 * configure.ac: Check for __mcoldfire__ and set
18376 gdb_cv_m68k_is_coldfire.
18377 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
18378 reg-cf.o and reg-m68k.o.
18379 * configure: Regenerated.
18381 2009-11-16 Pedro Alves <pedro@codesourcery.com>
18383 * linux-low.c (linux_remove_process): Add `detaching' parameter.
18384 Pass it to thread_db_free.
18385 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
18386 proper `detaching' argument to linux_remove_process.
18387 * linux-low.h (thread_db_free): Add `detaching' parameter.
18388 * thread-db.c (thread_db_init): Pass false as `detaching' argument
18390 (thread_db_free): Add `detaching' parameter. Only
18391 call td_ta_clear_event if detaching from process.
18393 2009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
18395 * thread-db.c (thread_db_free): Fix typo.
18397 2009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
18400 * thread-db.c (thread_db_free): Call td_ta_clear_event.
18402 2009-11-03 Nathan Sidwell <nathan@codesourcery.com>
18404 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
18405 with an i686 compiler.
18406 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
18408 * configure: Rebuilt.
18410 2009-10-29 Sandra Loosemore <sandra@codesourcery.com>
18414 * server.c (handle_search_memory_1): Correct read_addr initialization
18415 in loop for searching subsequent chunks.
18417 2009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
18419 * configure.ac: New --with-libthread-db option.
18420 * thread-db.c: Allow direct dependence on libthread_db.
18421 (thread_db_free): Adjust.
18422 * config.in: Regenerate.
18423 * configure: Likewise.
18425 2009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
18428 * thread-db.c (attach_thread): New function.
18429 (maybe_attach_thread): Return success/failure.
18430 (find_new_threads_callback): Adjust.
18431 (thread_db_find_new_threads): Loop until no new threads.
18433 2009-10-13 Pedro Alves <pedro@codesourcery.com>
18435 * proc-service.c (ps_lgetregs): Formatting.
18437 2009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
18439 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
18440 * configure.ac: Adjust.
18441 * linux-low.h (struct process_info_private): Move members to struct
18443 (thread_db_free, thread_db_handle_monitor_command): New prototype.
18444 * linux-low.c (linux_remove_process): Adjust.
18445 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
18446 * server.c (handle_query): Move code ...
18447 (handle_monitor_command): ... here. New function.
18448 * target.h (struct target_ops): New member.
18449 * thread-db.c (struct thread_db): New.
18450 (libthread_db_search_path): New variable.
18451 (thread_db_create_event, thread_db_enable_reporting)
18452 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
18453 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
18454 (try_thread_db_load_1, dladdr_to_soname): New functions.
18455 (try_thread_db_load, thread_db_load_search): New functions.
18456 (thread_db_init): Search for libthread_db.
18457 (thread_db_free): New function.
18458 (thread_db_handle_monitor_command): Likewise.
18459 * config.in: Regenerate.
18460 * configure: Regenerate.
18462 2009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
18464 * spu-low.c (spu_kill): Wait for inferior to terminate.
18465 Call clear_inferiors.
18466 (spu_detach): Call clear_inferiors.
18468 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18470 * aclocal.m4: Regenerate.
18471 * config.in: Likewise.
18472 * configure: Likewise.
18474 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18476 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
18477 (parse_spufs_run): New function.
18478 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
18479 (ppc_breakpoint_at): Handle SPU breakpoints.
18481 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18483 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
18484 (SPUFS_MAGIC): Define.
18485 (spu_enumerate_spu_ids): New function.
18486 (linux_qxfer_spu): New function.
18487 (linux_target_ops): Install linux_qxfer_spu.
18489 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18491 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
18492 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
18493 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
18494 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
18495 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
18496 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
18497 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
18498 (init_registers_powerpc_cell32l): Add prototype.
18499 (init_registers_powerpc_cell64l): Likewise.
18500 (ppc_arch_setup): Detect Cell/B.E. architecture.
18502 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18504 * Makefile.in (datarootdir): New variable.
18506 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18508 * linux-low.c (linux_write_memory): Update debugging output.
18509 * Makefile.in (clean): Add new descriptions.
18510 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
18511 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
18512 * configure.srv: Add new files for arm*-*-linux*.
18513 * linux-arm-low.c: Add new declarations.
18514 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
18515 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
18516 (HWCAP_VFPv3D16): New.
18517 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
18518 instead of __IWMMXT__.
18519 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
18520 (arm_arch_setup): New.
18521 (target_regsets): Remove #ifdef. Add VFP regset.
18522 (the_low_target): Use arm_arch_setup.
18524 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18526 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
18527 the main thread again.
18529 2009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
18531 Adding Neutrino gdbserver.
18532 * configure: Regenerated.
18533 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
18534 * configure.srv (i[34567]86-*-nto*): New target.
18535 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
18536 * remote-utils.c [__QNX__]: Include sys/iomgr.h
18537 (nto_comctrl) [__QNX__]: New function.
18538 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
18540 2009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
18542 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
18545 2009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
18546 Pedro Alves <pedro@codesourcery.com>
18548 * win32-i386-low.c (i386_get_thread_context): Handle systems that
18549 don't support CONTEXT_EXTENDED_REGISTERS.
18550 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
18551 (the_low_target): Install them.
18552 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
18553 failing with ERROR_PIPE_NOT_CONNECTED.
18555 2009-06-30 Doug Evans <dje@google.com>
18556 Pierre Muller <muller@ics.u-strasbg.fr>
18558 Add h/w watchpoint support to x86-linux, win32-i386.
18559 * Makefile.in (SFILES): Add i386-low.c
18560 (i386_low_h): Define.
18561 (i386-low.o): Add dependencies.
18562 (linux-x86-low.o): Add i386-low.h dependency.
18563 (win32-i386-low.o): Ditto.
18564 * i386-low.c: New file.
18565 * i386-low.h: New file.
18566 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
18567 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
18568 * linux-low.c (linux_add_process): Initialize arch_private.
18569 (linux_remove_process): Free arch_private.
18570 (add_lwp): Initialize arch_private.
18571 (delete_lwp): Free arch_private.
18572 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
18574 * linux-low.h (process_info_private): New member arch_private.
18575 (lwp_info): New member arch_private.
18576 (linux_target_ops): New members new_process, new_thread,
18578 (ptid_of): New macro.
18579 * linux-x86-low.c: Include stddef.h, i386-low.h.
18580 (arch_process_info): New struct.
18581 (arch_lwp_info): New struct.
18582 (x86_linux_dr_get, x86_linux_dr_set): New functions.
18583 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18584 (i386_dr_low_get_status): New function.
18585 (x86_insert_point, x86_remove_point): New functions.
18586 (x86_stopped_by_watchpoint): New function.
18587 (x86_stopped_data_address): New function.
18588 (x86_linux_new_process, x86_linux_new_thread): New functions.
18589 (x86_linux_prepare_to_resume): New function.
18590 (the_low_target): Add entries for insert_point, remove_point,
18591 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
18593 * server.c (debug_hw_points): New global.
18594 (monitor_show_help): Document set debug-hw-points.
18595 (handle_query): Process "set debug-hw-points".
18596 * server.h (debug_hw_points): Declare.
18597 (paddress): Declare.
18598 * utils.c (NUMCELLS, CELLSIZE): New macros.
18599 (get_sell, xsnprintf, paddress): New functions.
18600 * win32-arm-low.c (the_low_target): Add entries for insert_point,
18601 remove_point, stopped_by_watchpoint, stopped_data_address.
18602 * win32-i386-low.c: Include i386-low.h.
18603 (debug_reg_state): Replaces dr.
18604 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18605 (i386_dr_low_get_status): New function.
18606 (i386_insert_point, i386_remove_point): New functions.
18607 (i386_stopped_by_watchpoint): New function.
18608 (i386_stopped_data_address): New function.
18609 (i386_initial_stuff): Update.
18610 (get_thread_context,set_thread_context,i386_thread_added): Update.
18611 (the_low_target): Add entries for insert_point,
18612 remove_point, stopped_by_watchpoint, stopped_data_address.
18613 * win32-low.c (win32_insert_watchpoint): New function.
18614 (win32_remove_watchpoint): New function.
18615 (win32_stopped_by_watchpoint): New function.
18616 (win32_stopped_data_address): New function.
18617 (win32_target_ops): Add entries for insert_watchpoint,
18618 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
18619 * win32-low.h (win32_target_ops): New members insert_point,
18620 remove_point, stopped_by_watchpoint, stopped_data_address.
18622 2009-06-25 Pedro Alves <pedro@codesourcery.com>
18624 * server.c (process_serial_event): Re-return unsupported, not
18625 error, if the type isn't recognized. Re-allow supporting only
18626 insert or remove packets. Also call require_running for
18627 breakpoints. Add missing break statement to default case. Tidy.
18628 * target.h (struct target_ops): Rename insert_watchpoint to
18629 insert_point, and remove_watchpoint to remove_point.
18631 * linux-low.h (struct linux_target_ops): Likewise.
18632 * linux-low.c (linux_insert_watchpoint): Rename to ...
18633 (linux_insert_point): ... this. Adjust.
18634 (linux_remove_watchpoint): Rename to ...
18635 (linux_remove_point): ... this. Adjust.
18636 (linux_target_ops): Adjust.
18637 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
18638 (cris_insert_point): ... this.
18639 (cris_remove_watchpoint): Rename to ...
18640 (cris_remove_point): ... this.
18641 (the_low_target): Adjust.
18643 2009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
18645 * server.c (handle_v_kill): Pass signal_pid to
18646 kill_inferior if multi_process is zero.
18648 2009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
18650 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
18651 * target.h (target_ops): Comment for *_watchpoint to make it clear
18652 the functions can get types '0' and '1'.
18654 2009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
18656 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
18657 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
18658 * regcache.c (get_regcache): Likewise.
18659 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
18660 * win32-low.c (child_fetch_inferior_registers): Remove check for
18663 2009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
18664 Pedro Alves <pedro@codesourcery.com>
18666 * target.h (struct target_ops) <supports_multi_process>: New
18668 (target_supports_multi_process): New.
18669 * server.c (handle_query): Even if GDB reports support, only
18670 enable multi-process if the target also supports it. Report
18671 multi-process support only if the target backend supports it.
18672 * linux-low.c (linux_supports_multi_process): New function.
18673 (linux_target_ops): Install it as target_supports_multi_process
18676 2009-05-24 Doug Evans <dje@google.com>
18678 Global renaming of find_thread_pid to find_thread_ptid.
18679 * server.h (find_thread_ptid): Renamed from find_thread_pid.
18680 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
18681 All callers updated.
18683 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
18684 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
18687 * linux-low.c (get_stop_pc): Print pc if debug_threads.
18688 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
18689 (linux_resume_one_lwp): Ditto.
18691 2009-05-23 Doug Evans <dje@google.com>
18693 * linux-low.c (linux_resume_one_lwp): Change type of first arg
18694 from struct inferior_list_entry * to struct lwp_info *.
18695 All callers updated.
18697 2009-05-13 Doug Evans <dje@google.com>
18699 * linux-x86-low.c: Don't include assert.h.
18700 (x86_siginfo_fixup): Use fatal, not assert.
18701 (x86_arch_setup): Fix comment.
18703 2009-05-12 Doug Evans <dje@google.com>
18705 Biarch support for i386/amd64 gdbserver.
18706 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
18707 Add linux-x86-low.c.
18708 (linux-i386-low.o, linux-x86-64-low.o): Delete.
18709 (linux-x86-low.o): Add.
18710 * linux-x86-64-low.c: Delete.
18711 * linux-i386-low.c: Delete.
18712 * linux-x86-low.c: New file.
18713 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
18715 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
18717 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
18718 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
18719 (linux_child_pid_to_exec_file): New function.
18720 (elf_64_header_p, elf_64_file_p): New functions.
18721 (siginfo_fixup): New function.
18722 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
18723 give target a chance to convert layout.
18724 * linux-low.h (linux_target_ops): New member siginfo_fixup.
18725 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
18727 2009-05-07 Doug Evans <dje@google.com>
18729 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
18730 (regsets_store_inferior_registers): Ditto.
18732 2009-05-06 Pedro Alves <pedro@codesourcery.com>
18736 * linux-low.c (must_set_ptrace_flags): Delete.
18737 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
18739 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
18740 `lwp->must_set_ptrace_flags' instead.
18741 (linux_wait_for_event_1): Set ptrace options here.
18742 (linux_wait_1): ... not here.
18744 2009-04-30 Doug Evans <dje@google.com>
18746 * inferiors.c (started_inferior_callback): New function.
18747 (attached_inferior_callback): New function.
18748 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
18749 * server.c (print_started_pid, print_attached_pid): New functions.
18750 (detach_or_kill_for_exit): New function.
18751 (main): Call it instead of for_each_inferior (kill_inferior_callback).
18752 * server.h (have_started_inferiors_p): Declare.
18753 (have_attached_inferiors_p): Declare.
18755 * inferiors.c (remove_process): Fix memory leak, free process.
18756 * linux-low.c (linux_remove_process): New function.
18757 (linux_kill): Call it instead of remove_process.
18758 (linux_detach, linux_wait_1): Ditto.
18760 2009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
18762 * configure.srv: Add x86 Windows CE target.
18764 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
18766 * inferiors.c (get_thread_process): Make global.
18767 * server.h (get_thread_process): Add prototype.
18768 * thread-db.c (find_one_thread): Use get_thread_process
18769 instead of current_process.
18770 (thread_db_get_tls_address): Do not crash if called when
18771 thread layer is not yet initialized.
18773 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
18775 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
18776 * spu-low.c (current_tid): Rename to ...
18777 (current_ptid): ... this.
18778 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
18779 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
18780 ptid_get_lwp (current_ptid) instead of current_tid.
18781 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
18782 instead of current_tid. Use find_process_pid to verify pid
18783 argument is valid. Pass proper argument to remove_process.
18784 (spu_thread_alive): Compare current_ptid instead of current_tid.
18785 (spu_resume): Likewise.
18787 2009-04-02 Pedro Alves <pedro@codesourcery.com>
18789 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
18792 2009-04-01 Pedro Alves <pedro@codesourcery.com>
18794 Implement the multiprocess extensions, and add linux multiprocess
18797 * server.h (ULONGEST): Declare.
18798 (struct ptid, ptid_t): New.
18799 (minus_one_ptid, null_ptid): Declare.
18800 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
18801 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
18802 (struct inferior_list_entry): Change `id' type from unsigned from
18804 (struct sym_cache, struct breakpoint, struct
18805 process_info_private): Forward declare.
18806 (struct process_info): Declare.
18807 (current_process): Declare.
18808 (all_processes): Declare.
18809 (initialize_inferiors): Declare.
18810 (add_thread): Adjust to use ptid_t.
18811 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
18812 (add_process, remove_process, find_thread_pid): Declare.
18813 (find_inferior_id): Adjust to use ptid_t.
18814 (cont_thread, general_thread, step_thread): Change type to ptid_t.
18815 (multi_process): Declare.
18816 (push_event): Adjust to use ptid_t.
18817 (read_ptid, write_ptid): Declare.
18818 (prepare_resume_reply): Adjust to use ptid_t.
18819 (clear_symbol_cache): Declare.
18820 * inferiors.c (all_processes): New.
18821 (null_ptid, minus_one_ptid): New.
18822 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
18823 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
18824 (add_thread): Change unsigned long to ptid. Remove gdb_id
18826 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
18827 (gdb_id_to_thread): Rename to ...
18828 (find_thread_pid): ... this. Change unsigned long to ptid.
18829 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
18830 (loaded_dll, pull_pid_from_list): Adjust.
18831 (add_process, remove_process, find_process_pid)
18832 (get_thread_process, current_process, initialize_inferiors): New.
18833 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
18834 (struct target_waitstatus) <related_pid>: Ditto.
18835 (struct target_ops) <kill, detach>: Add `pid' argument. Change
18836 return type to int.
18837 (struct target_ops) <join>: Add `pid' argument.
18838 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
18839 (struct target_ops) <wait>: Add `ptid' field. Change return type
18841 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
18842 (mywait): Add `ptid' argument. Change return type to ptid_t.
18843 (target_pid_to_str): Declare.
18844 * target.c (set_desired_inferior): Adjust to use ptids.
18845 (mywait): Add new `ptid' argument. Adjust.
18846 (target_pid_to_str): New.
18847 * mem-break.h (free_all_breakpoints): Declare.
18848 * mem-break.c (breakpoints): Delelete.
18849 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
18850 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
18851 to use per-process breakpoint list.
18852 (free_all_breakpoints): New.
18853 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
18854 (symbol_cache, all_symbols_looked_up): Delete.
18856 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
18858 (prepare_resume_reply): Change ptid argument's type from unsigned
18859 long to ptid_t. Adjust. Implement W;process and X;process.
18860 (free_sym_cache, clear_symbol_cache): New.
18861 (look_up_one_symbol): Adjust to per-process symbol cache. *
18862 * server.c (cont_thread, general_thread, step_thread): Change type
18864 (attached): Delete.
18865 (multi_process): New.
18866 (last_ptid): Change type to ptid_t.
18867 (struct vstop_notif) <ptid>: Change type to ptid_t.
18868 (queue_stop_reply, push_event): Change `ptid' argument's type to
18870 (discard_queued_stop_replies): Add `pid' argument.
18871 (start_inferior): Adjust to use ptids. Adjust to mywait interface
18872 changes. Don't reference the `attached' global.
18873 (attach_inferior): Adjust to mywait interface changes.
18874 (handle_query): Adjust to use ptids. Parse GDB's qSupported
18875 features. Handle and report "multiprocess+". Handle
18877 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
18879 (handle_v_kill): New.
18880 (handle_v_stopped): Adjust to use target_pid_to_str.
18881 (handle_v_requests): Allow multiple attaches and runs when
18882 multiprocess extensions are in effect. Handle "vKill".
18883 (myresume): Adjust to use ptids.
18884 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
18885 (handle_status): Adjust to discard_queued_stop_replies interface
18887 (first_thread_of, kill_inferior_callback)
18888 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
18889 (main): Call initialize_inferiors. Adjust to use ptids, killing
18890 and detaching from all inferiors. Handle multiprocess packet
18892 * linux-low.h: Include gdb_proc_service.h.
18893 (struct process_info_private): New.
18894 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
18895 <lwpid_of>: Use ptid_get_lwp.
18896 (get_lwp_thread): Adjust.
18897 (struct lwp_info): Add `dead' member.
18898 (find_lwp_pid): Declare.
18899 * linux-low.c (thread_db_active): Delete.
18900 (new_inferior): Adjust comment.
18901 (inferior_pid): Delete.
18902 (linux_add_process): New.
18903 (handle_extended_wait): Adjust.
18904 (add_lwp): Change unsigned long to ptid.
18905 (linux_create_inferior): Add process to processes table. Adjust
18906 to use ptids. Don't set new_inferior here.
18907 (linux_attach_lwp): Rename to ...
18908 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
18909 it. Adjust to use ptids.
18910 (linux_attach_lwp): New.
18911 (linux_attach): Add process to processes table. Don't set
18913 (struct counter): New.
18914 (second_thread_of_pid_p, last_thread_of_process_p): New.
18915 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
18916 multiple processes.
18917 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
18918 processes. Remove process from process table.
18919 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
18920 to multiple processes.
18921 (any_thread_of): New.
18922 (linux_detach): Add `pid' argument, and handle it. Remove process
18923 from processes table.
18924 (linux_join): Add `pid' argument. Handle it.
18925 (linux_thread_alive): Change unsighed long argument to ptid_t.
18926 Consider dead lwps as not being alive.
18927 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
18928 threads we're not interested in.
18929 (same_lwp, find_lwp_pid): New.
18930 (linux_wait_for_lwp): Change `pid' argument's type from int to
18932 (linux_wait_for_event): Rename to ...
18933 (linux_wait_for_event_1): ... this. Change `pid' argument's type
18934 from int to ptid_t. Adjust.
18935 (linux_wait_for_event): New.
18936 (linux_wait_1): Add `ptid' argument. Change return type to
18937 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
18938 that exit from the process table.
18939 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
18941 (mark_lwp_dead): New.
18942 (wait_for_sigstop): Adjust to use ptids. If a process exits while
18943 stopping all threads, mark its main lwp as dead.
18944 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
18946 (fetch_register, usr_store_inferior_registers)
18947 (regsets_fetch_inferior_registers)
18948 (regsets_store_inferior_registers, linux_read_memory)
18949 (linux_write_memory): Inline `inferior_pid'.
18950 (linux_look_up_symbols): Adjust to use per-process
18951 `thread_db_active'.
18952 (linux_request_interrupt): Adjust to use ptids.
18953 (linux_read_auxv): Inline `inferior_pid'.
18954 (initialize_low): Don't reference thread_db_active.
18955 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
18956 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
18957 (ps_getpid): Return the pid of the current inferior.
18958 * thread-db.c (proc_handle, thread_agent): Delete.
18959 (thread_db_create_event, thread_db_enable_reporting): Adjust to
18961 (find_one_thread): Change argument type to ptid_t. Adjust to
18963 (maybe_attach_thread): Adjust to per-process data and ptids.
18964 (thread_db_find_new_threads): Ditto.
18965 (thread_db_init): Ditto.
18966 * spu-low.c (spu_create_inferior, spu_attach): Add process to
18967 processes table. Adjust to use ptids.
18968 (spu_kill, spu_detach): Adjust interface. Remove process from
18970 (spu_join, spu_thread_alive): Adjust interface.
18971 (spu_wait): Adjust interface. Remove process from processes
18972 table. Adjust to use ptids.
18973 * win32-low.c (current_inferior_tid): Delete.
18974 (current_inferior_ptid): New.
18975 (debug_event_ptid): New.
18976 (thread_rec): Take a ptid. Adjust.
18977 (child_add_thread): Add `pid' argument. Adjust to use ptids.
18978 (child_delete_thread): Ditto.
18979 (do_initial_child_stuff): Add `attached' argument. Add process to
18981 (child_fetch_inferior_registers, child_store_inferior_registers):
18983 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
18984 (win32_attach): Pass 1 to do_initial_child_stuff.
18985 (win32_kill): Adjust interface. Remove process from processes
18987 (win32_detach): Ditto.
18988 (win32_join): Adjust interface.
18989 (win32_thread_alive): Take a ptid.
18990 (win32_resume): Adjust to use ptids.
18991 (get_child_debug_event): Ditto.
18992 (win32_wait): Adjust interface. Remove exiting process from
18995 2009-04-01 Pedro Alves <pedro@codesourcery.com>
18997 Non-stop mode support.
18999 * server.h (non_stop): Declare.
19000 (gdb_client_data, handler_func): Declare.
19001 (delete_file_handler, add_file_handler, start_event_loop):
19003 (handle_serial_event, handle_target_event, push_event)
19004 (putpkt_notif): Declare.
19005 * target.h (enum resume_kind): New.
19006 (struct thread_resume): Replace `step' field by `kind' field.
19007 (TARGET_WNOHANG): Define.
19008 (struct target_ops) <wait>: Add `options' argument.
19009 <supports_non_stop, async, start_non_stop>: New fields.
19010 (target_supports_non_stop, target_async): New.
19011 (start_non_stop): Declare.
19012 (mywait): Add `options' argument.
19013 * target.c (mywait): Add `options' argument. Print child exit
19014 notifications here.
19015 (start_non_stop): New.
19016 * server.c (non_stop, own_buf, mem_buf): New globals.
19017 (struct vstop_notif): New.
19018 (notif_queue): New global.
19019 (queue_stop_reply, push_event, discard_queued_stop_replies)
19020 (send_next_stop_reply): New.
19021 (start_inferior): Adjust to use resume_kind. Adjust to mywait
19023 (attach_inferior): In non-stop mode, don't wait for the target
19025 (handle_general_set): Handle QNonStop.
19026 (handle_query): When handling qC, return the current general
19027 thread, instead of the first thread of the list.
19028 (handle_query): If the backend supports non-stop mode, include
19029 QNonStop+ in the qSupported query response.
19030 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
19032 (handle_v_attach, handle_v_run): Handle non-stop mode.
19033 (handle_v_stopped): New.
19034 (handle_v_requests): Report support for vCont;t. Handle vStopped.
19035 (myresume): Adjust to use resume_kind. Handle non-stop.
19036 (queue_stop_reply_callback): New.
19037 (handle_status): Handle non-stop mode.
19038 (main): Clear non_stop flag on reconnection. Use the event-loop.
19039 Refactor serial protocol handling from here ...
19040 (process_serial_event): ... to this new function. When GDB
19041 selects any thread, select one here. In non-stop mode, wait until
19042 GDB acks all pending events before exiting.
19043 (handle_serial_event, handle_target_event): New.
19044 * remote-utils.c (remote_open): Install remote_desc in the event
19046 (remote_close): Remove remote_desc from the event loop.
19047 (putpkt_binary): Rename to...
19048 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
19049 (putpkt_binary): New as wrapper around putpkt_binary_1.
19050 (putpkt_notif): New.
19051 (prepare_resume_reply): In non-stop mode, don't change the
19053 * event-loop.c: New.
19054 * Makefile.in (OBJ): Add event-loop.o.
19055 (event-loop.o): New rule.
19057 * linux-low.h (pid_of): Moved here.
19059 (get_lwp_thread): Use lwpid_of.
19060 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
19061 * linux-low.c (pid_of): Delete.
19062 (inferior_pid): Use lwpid_of.
19063 (linux_event_pipe): New.
19064 (target_is_async_p): New.
19066 (handle_extended_wait): Use lwpid_of.
19067 (add_lwp): Don't set lwpid field.
19068 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
19069 (linux_kill_one_lwp): If killing a running lwp, stop it first.
19070 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
19071 (linux_detach_one_lwp): If detaching from a running lwp, stop it
19072 first. Adjust to linux_wait_for_event interface changes. Use
19074 (linux_detach): Don't delete the main lwp here.
19075 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
19076 (status_pending_p): Don't consider explicitly suspended lwps.
19077 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
19078 pointer. Add OPTIONS argument. Change return type to int. Use
19079 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
19080 (linux_wait_for_event): Take an integer pid instead of a lwp_info
19081 pointer. Add status pointer argument. Return a pid instead of a
19082 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
19083 changes. In non-stop mode, don't switch to a random thread.
19084 (linux_wait): Rename to...
19085 (linux_wait_1): ... this. Add target_options argument, and handle
19086 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
19087 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
19088 clean exit and signal exit code. Don't stop all threads in
19089 non-stop mode. In all-stop mode, only stop all threads when
19090 reporting a stop to GDB. Handle explicit thread stop requests.
19091 (async_file_flush, async_file_mark): New.
19093 (send_sigstop): Use lwpid_of.
19094 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
19095 interface changes. In non-stop mode, don't switch to a random
19097 (linux_resume_one_lwp): Use lwpid_of.
19098 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
19099 (linux_resume_one_thread): ... this. Handle resume_stop. In
19100 non-stop mode, don't look for pending flag in all threads.
19101 (resume_status_pending_p): Don't consider explicitly suspended
19103 (my_waitpid): Reimplement. Emulate __WALL.
19104 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19106 (sigchld_handler, linux_supports_non_stop, linux_async)
19107 (linux_start_non_stop): New.
19108 (linux_target_ops): Register linux_supports_non_stop, linux_async
19109 and linux_start_non_stop.
19110 (initialize_low): Install SIGCHLD handler.
19111 * thread-db.c (thread_db_create_event, find_one_thread)
19112 (thread_db_get_tls_address): Use lwpid_of.
19113 * win32-low.c (win32_detach): Adjust to use resume_kind.
19114 (win32_wait): Add `options' argument.
19115 * spu-low.c (spu_resume): Adjust to use resume_kind.
19116 (spu_wait): Add `options' argument.
19118 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19120 Decouple target code from remote protocol.
19122 * target.h (enum target_waitkind): New.
19123 (struct target_waitstatus): New.
19124 (struct target_ops) <wait>: Return an unsigned long. Take a
19125 target_waitstatus pointer instead of a char pointer.
19126 (mywait): Likewise.
19127 * target.c (mywait): Change prototype to return an unsigned long.
19128 Take a target_waitstatus pointer instead of a char pointer. Adjust.
19129 * server.h (thread_from_wait, old_thread_from_wait): Delete
19131 (prepare_resume_reply): Change prototype to take a
19133 * server.c (thread_from_wait, old_thread_from_wait): Delete.
19134 (last_status, last_ptid): New.
19135 (start_inferior): Remove "statusptr" argument. Adjust. Return a
19136 pid instead of a signal.
19137 (attach_inferior): Remove "status" and "signal" parameters.
19139 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
19141 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
19142 (handle_v_requests, myresume): Remove "status" and "signal"
19143 parameters. Adjust.
19144 (handle_status): New.
19145 (main): Delete local `status'. Adjust.
19146 * remote-utils.c: Include target.h.
19147 (prepare_resume_reply): Change prototype to take a
19148 target_waitstatus. Adjust.
19150 * linux-low.c (linux_wait): Adjust to new target_ops->wait
19152 * spu-low.c (spu_wait): Adjust.
19153 * win32-low.c (enum target_waitkind, struct target_waitstatus):
19155 (win32_wait): Adjust.
19157 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19159 * target.h (struct thread_resume): Delete leave_stopped member.
19160 (struct target_ops): Add a `n' argument to the `resume' callback.
19161 * server.c (start_inferior): Adjust.
19162 (handle_v_cont, myresume): Adjust.
19163 * linux-low.c (check_removed_breakpoint): Adjust to resume
19164 interface change, and to removed leave_stopped field.
19165 (resume_ptr): Delete.
19166 (struct thread_resume_array): New.
19167 (linux_set_resume_request): Add new `arg' parameter. Adjust to
19168 resume interface change.
19169 (linux_continue_one_thread, linux_queue_one_thread)
19170 (resume_status_pending_p): Check if the resume field is NULL
19171 instead of checking the leave_stopped member.
19172 (linux_resume): Adjust to the target resume interface change.
19173 * spu-low.c (spu_resume): Adjust to the target resume interface
19175 * win32-low.c (win32_detach, win32_resume): Ditto.
19177 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19179 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
19181 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
19183 (linux_continue_one_thread): Only preserve the stepping flag if
19184 there's a pending breakpoint.
19186 2009-03-31 Pedro Alves <pedro@codesourcery.com>
19188 * server.c (main): After the inferior having exited, call
19189 remote_close before exiting gdbserver.
19191 2009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
19193 Fix size of FPSCR in Power 7 processors.
19194 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
19195 (PPC_FEATURE_HAS_DFP): New #define.
19196 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
19199 2009-03-23 Pedro Alves <pedro@codesourcery.com>
19201 * server.c (handle_query) Whitespace and formatting.
19203 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19205 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
19206 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
19207 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
19208 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
19209 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
19210 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
19211 Makefile.in, configure.ac: Fix whitespace throughout.
19212 * configure: Regenerate.
19214 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19216 * inferiors.c (find_inferior): Make it safe for the callback
19217 function to delete the currently iterated inferior.
19219 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19221 * Makefile.in (linuw_low_h): Move higher.
19222 (thread-db.o): Depend on $(linux_low_h).
19224 2009-03-17 Pedro Alves <pedro@codesourcery.com>
19226 Rename "process" to "lwp" throughout.
19228 * linux-low.c (all_processes): Rename to...
19229 (all_lwps): ... this.
19230 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
19231 (add_process): Rename to ...
19232 (add_lwp): ... this. Adjust.
19233 (linux_create_inferior): Adjust.
19234 (linux_attach_lwp): Adjust.
19235 (linux_attach): Adjust.
19236 (linux_kill_one_process): Rename to ...
19237 (linux_kill_one_lwp): ... this. Adjust.
19238 (linux_kill): Adjust.
19239 (linux_detach_one_process): Rename to ...
19240 (linux_detach_one_lwp): ... this. Adjust.
19241 (linux_detach): Adjust.
19242 (check_removed_breakpoint): Adjust.
19243 (status_pending_p): Adjust.
19244 (linux_wait_for_process): Rename to ...
19245 (linux_wait_for_lwp): ... this. Adjust.
19246 (linux_wait_for_event): Adjust.
19247 (send_sigstop): Adjust.
19248 (wait_for_sigstop): Adjust.
19249 (stop_all_processes): Rename to ...
19250 (stop_all_lwps): ... this.
19251 (linux_resume_one_process): Rename to ...
19252 (linux_resume_one_lwp): ... this. Adjust.
19253 (linux_set_resume_request, linux_continue_one_thread)
19254 (linux_queue_one_thread, resume_status_pending_p)
19255 (usr_store_inferior_registers, regsets_store_inferior_registers)
19256 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19258 * linux-low.h (get_process): Rename to ...
19259 (get_lwp): ... this. Adjust.
19260 (get_thread_process): Rename to ...
19261 (get_thread_lwp): ... this. Adjust.
19262 (get_process_thread): Rename to ...
19263 (get_lwp_thread): ... this. Adjust.
19264 (struct process_info): Rename to ...
19265 (struct lwp_info): ... this.
19266 (all_processes): Rename to ...
19267 (all_lwps): ... this.
19268 * proc-service.c (ps_lgetregs): Adjust.
19269 * thread-db.c (thread_db_create_event, find_one_thread)
19270 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
19272 2009-03-14 Pedro Alves <pedro@codesourcery.com>
19274 * server.c (handle_query): Handle "qAttached".
19276 2009-03-13 Nathan Sidwell <nathan@codesourcery.com>
19278 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
19279 GPLv3, update license URL.
19281 2009-03-01 Doug Evans <dje@google.com>
19283 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
19284 (server_h): Add gdb_signals.h.
19285 (signals.o): Update.
19286 * server.h (target_signal_from_host,target_signal_to_host_p)
19287 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
19289 2009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
19291 * remote-utils.c (getpkt): Also generate remote-debug
19292 information if noack_mode is set.
19294 2009-02-06 Pedro Alves <pedro@codesourcery.com>
19296 * server.c (handle_query): Report qXfer:siginfo:read and
19297 qXfer:siginfo:write as supported and handle them.
19298 * target.h (struct target_ops) <qxfer_siginfo>: New field.
19299 * linux-low.c (linux_xfer_siginfo): New.
19300 (linux_target_ops): Set it.
19302 2009-01-26 Pedro Alves <pedro@codesourcery.com>
19304 * server.c (gdbserver_usage): Mention --remote-debug.
19305 (main): Accept '--remote-debug' switch.
19307 2009-01-18 Doug Evans <dje@google.com>
19309 * regcache.c (new_register_cache): No need to check result of xcalloc.
19310 * server.c (handle_search_memory): Back out calls to xmalloc,
19311 result is checked and error is returned to user upon failure.
19312 (handle_query): Ditto. Add more checks for result of malloc.
19313 (handle_v_cont): Check result of malloc, report error back to
19315 (handle_v_run): Ditto. Call freeargv.
19316 * server.h (freeargv): Declare.
19317 * utils.c (freeargv): New fn.
19319 2009-01-15 Doug Evans <dje@google.com>
19321 * gdbreplay.c (perror_with_name): Make arg const char *.
19322 * server.h (target_signal_to_name): Make return type const char *.
19323 * thread-db.c (thread_db_err_str): Make return type const char *.
19324 * utils.c (perror_with_name): Make arg const char *.
19326 2009-01-14 Pedro Alves <pedro@codesourcery.com>
19328 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
19329 when handling a EXIT_PROCESS_DEBUG_EVENT.
19331 2009-01-06 Joel Brobecker <brobecker@adacore.com>
19333 * gdbreplay.c (gdbreplay_version): Update copyright year.
19334 * server.c (gdbserver_version): Likewise.
19336 2009-01-05 Doug Evans <dje@google.com>
19338 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
19339 (handle_extended_wait): Improve comment.
19341 2008-12-13 Doug Evans <dje@google.com>
19343 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
19344 * server.h (ATTR_MALLOC): New macro.
19345 (xmalloc,xcalloc,xstrdup): Declare.
19346 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
19347 * inferiors.c: Ditto.
19348 * linux-low.c: Ditto.
19349 * mem-break.c: Ditto.
19350 * regcache.c: Ditto.
19351 * remote-utils.c: Ditto.
19354 * win32-low.c: Ditto.
19356 2008-12-12 Doug Evans <dje@google.com>
19358 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
19359 in debugging printf.
19361 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
19363 2008-12-09 Doug Evans <dje@google.com>
19365 * linux-low.h (struct process_info): Delete member tid, unused.
19366 * thread-db.c (find_one_thread): Update.
19367 (maybe_attach_thread): Update.
19369 2008-12-02 Pedro Alves <pedro@codesourcery.com>
19371 * target.h (struct target_ops): Add qxfer_osdata member.
19372 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
19374 (linux_qxfer_osdata): New functions.
19375 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
19377 * server.c (handle_query): Handle "qXfer:osdata:read:".
19378 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
19379 (buffer_xml_printf): New functions.
19380 * server.h (struct buffer): New.
19381 (buffer_grow_str, buffer_grow_str0): New macros.
19382 (buffer_grow, buffer_free, buffer_init, buffer_finish)
19383 (buffer_xml_printf): Declare.
19385 2008-11-24 Doug Evans <dje@google.com>
19387 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
19389 2008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
19391 * server.c (handle_v_run): Always use the supplied argument list.
19393 2008-11-19 Bob Wilson <bob.wilson@acm.org>
19395 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
19396 (xtensa_regmap_table): Add entry for scompare1.
19398 2008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
19400 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
19401 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
19402 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
19403 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
19404 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
19405 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
19406 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
19407 XML target descriptions.
19408 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
19409 when inferior is running on an ISA 2.05 or later processor. Add
19410 special case to return offset for full 64-bit slot of FPSCR when
19413 2008-11-14 Daniel Gutson <dgutson@codesourcery.com>
19415 * Makefile.in (SFILES, clean): Added sparc64 files.
19416 (reg-sparc64.o, reg-sparc64.c): New.
19417 * configure.srv (sparc*-*-linux*): New configuration.
19418 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
19419 syscall arguments for SPARC.
19420 (regsets_store_inferior_registers): Likewise.
19421 * linux-sparc-low.c: New file.
19423 2008-10-21 Doug Evans <dje@google.com>
19425 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
19426 (READLINE_DIR,READLINE_DEP): Delete.
19427 (INTERNAL_CFLAGS): Update.
19428 (LINTFLAGS): Update.
19430 2008-10-10 Pedro Alves <pedro@codesourcery.com>
19432 * server.c (handle_v_run): If GDB didn't specify an argv, use the
19433 whole argv from the last run, not just argv[0].
19435 2008-09-08 Pedro Alves <pedro@codesourcery.com>
19437 * regcache.c (new_register_cache): Return NULL if the register
19438 cache size isn't known yet.
19439 (free_register_cache): Avoid dereferencing a NULL regcache.
19441 2008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
19443 * configure.srv: Merge MIPS and MIPS64.
19445 2008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
19447 * Makefile.in (uninstall): Apply $(EXEEXT) too.
19449 2008-08-18 Luis Machado <luisgpm@br.ibm.com>
19451 * Makefile.in: Add required vsx dependencies.
19453 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
19454 Declare init_registers_powerpc_vsx32l.
19455 Declare init_registers_powerpc_vsx64l.
19456 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
19457 (ppc_arch_setup): Check for VSX in hwcap.
19458 (ppc_fill_vsxregset): New function.
19459 (ppc_store_vsxregset): New function.
19460 Add new VSX entry in regset_info target_regsets.
19462 * configure.srv: Add new VSX dependencies.
19464 2008-08-12 Pedro Alves <pedro@codesourcery.com>
19466 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
19467 (remote_open): Set or clear transport_is_reliable.
19468 (putpkt_binary): Don't expect acks in noack mode.
19469 (getpkt): Don't send ack/nac in noack mode.
19470 * server.c (handle_general_set): Handle QStartNoAckMode.
19471 (handle_query): If connected by tcp pass QStartNoAckMode+ in
19473 (main): Reset noack_mode on every connection.
19474 * server.h (noack_mode): Declare.
19476 2008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19478 * Makefile.in (GDBREPLAY_OBS): New variable.
19479 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
19481 2008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
19482 Daniel Jacobowitz <dan@codesourcery.com>
19484 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
19485 (usr_store_inferior_registers): Likewise.
19486 (regsets_store_inferior_registers): Likewise.
19488 2008-07-31 Rolf Jansen <rj@surtec.com>
19489 Pedro Alves <pedro@codesourcery.com>
19491 * configure.ac: Check for memmem declaration.
19492 * server.c [HAVE_MALLOC_H]: Include malloc.h.
19493 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
19494 (disable_packet_qfThreadInfo): Unconditionally compile.
19495 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
19496 * configure, config.in: Regenerate.
19498 2008-07-28 Doug Kwan <dougkwan@google.com>
19500 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
19501 (linux_write_memory): Remove declaration of errno.
19503 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
19505 * linux-low.c (handle_extended_wait): Do not use "status"
19506 variable uninitialized.
19508 2008-07-07 Pedro Alves <pedro@codesourcery.com>
19510 * server.c (handle_v_attach): Inhibit reporting dll changes.
19512 2008-06-27 Pedro Alves <pedro@codesourcery.com>
19514 * remote-utils.c (prepare_resume_reply): If requested, don't
19515 output "thread:TID" in the T stop reply.
19517 * server.c (disable_packet_vCont, disable_packet_Tthread)
19518 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
19519 (handle_query): If requested, disable support for qC, qfThreadInfo
19521 (handle_v_requests): If requested, disable support for vCont.
19522 (gdbserver_show_disableable): New.
19523 (main): Handle --disable-packet and --disable-packet=LIST.
19525 * server.h (disable_packet_vCont, disable_packet_Tthread)
19526 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
19528 2008-06-20 Carlos O'Donell <carlos@codesourcery.com>
19530 * server.c (gdbserver_usage): Mention --version.
19532 2008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
19534 * Makefile.in (gdbreplay.o): New rule.
19536 2008-06-06 Joseph Myers <joseph@codesourcery.com>
19538 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
19539 message, not gdbserver.
19541 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
19542 Nathan Sidwell <nathan@codesourcery.com>
19543 Joseph Myers <joseph@codesourcery.com>
19545 * acinclude.m4: Include ../../config/acx.m4.
19546 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
19547 * configure, config.in: Regenerate.
19548 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
19549 * server.c (gdbserver_version): Print PKGVERSION.
19550 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
19551 (main): Adjust gdbserver_usage calls.
19552 * gdbreplay.c (version, host_name): Add declarations.
19553 (gdbreplay_version, gdbreplay_usage): New.
19554 (main): Accept --version and --help options.
19556 2008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
19558 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
19559 (arm_breakpoint_at): Handle Thumb.
19560 (the_low_target): Add comment.
19562 2008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
19564 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
19566 2008-05-09 Doug Evans <dje@google.com>
19568 * server.h (decode_search_memory_packet): Declare.
19569 * remote-utils.c (decode_search_memory_packet): New fn.
19570 * server.c (handle_search_memory_1): New fn.
19571 (handle_search_memory): New fn.
19572 (handle_query): Process qSearch:memory packets.
19574 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
19576 * regcache.c (registers_length): Remove.
19577 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
19578 full register packet.
19579 * regcache.h (registers_length): Remove prototype.
19580 * server.h (PBUFSIZ): Define to 16384.
19582 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
19584 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
19585 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
19586 powerpc-64l.o, and powerpc-altivec64l.o.
19587 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
19588 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
19589 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
19590 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
19591 rs6000/power-linux.xml, and rs6000/power64-linux.xml
19594 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
19595 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
19596 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
19597 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
19598 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
19599 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
19600 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
19601 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
19602 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
19603 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
19606 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
19607 (init_registers_powerpc_32l): ... this new prototype.
19608 (init_registers_powerpc_32): Remove, replace by ...
19609 (init_registers_powerpc_altivec32l): ... this new prototype.
19610 (init_registers_powerpc_e500): Remove, replace by ...
19611 (init_registers_powerpc_e500l): ... this new prototype.
19612 (init_registers_ppc64): Remove, replace by ...
19613 (init_registers_powerpc_64l): ... this new prototype.
19614 (init_registers_powerpc_64): Remove, replace by ...
19615 (init_registers_powerpc_altivec64l): ... this new prototype.
19616 (ppc_num_regs): Set to 73.
19617 (PT_ORIG_R3, PT_TRAP): Define if necessary.
19618 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
19619 (ppc_cannot_store_register): Handle orig_r3 and trap.
19620 (ppc_arch_setup): Update init_registers_... calls.
19621 (ppc_fill_gregset): Handle orig_r3 and trap.
19623 * inferiors.c (clear_inferiors): Reset current_inferior.
19625 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
19627 * acinclude.m4: Add override.m4.
19628 * configure: Regenerate.
19630 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19632 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
19633 initial call to init_register_ppc64.
19635 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19637 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
19638 single powerpc*-*-linux* case.
19639 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
19641 2008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
19643 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
19644 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
19646 * linux-ppc-low.c: Include <elf.h>.
19647 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
19648 (ppc_hwcap): New global variable.
19649 (ppc_regmap): Remove __SPE__ #ifdef sections.
19650 (ppc_regmap_e500): New global variable.
19651 (ppc_cannot_store_register): Update __SPE__ special case.
19652 (ppc_get_hwcap): New function.
19653 (ppc_arch_setup): Use it to determine whether inferior supports
19654 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
19655 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
19656 Do not access registers if target does not support AltiVec.
19657 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
19658 Do not access registers if target does not support SPE.
19659 (target_regsets): Unconditionally include AltiVec and SPE regsets.
19661 2008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
19663 * linux-low.c (disabled_regsets, num_regsets): New.
19664 (use_regsets_p): Delete.
19665 (linux_wait_for_process): Clear disabled_regsets.
19666 (regsets_fetch_inferior_registers): Check and set it.
19667 (regsets_store_inferior_registers): Likewise.
19668 (linux_fetch_registers, linux_store_registers): Do not use
19670 (initialize_low): Allocate disabled_regsets.
19672 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
19674 * Makefile.in (LIBOBJS): New.
19675 (OBS): Use LIBOBJS.
19676 (memmem.o): New rule.
19677 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
19678 * configure: Regenerated.
19680 2008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
19682 * server.c (handle_query): Never return "unsupported" for
19683 qXfer:features:read queries.
19685 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
19687 * server.c (get_features_xml): Fix inverted condition.
19688 (handle_query): Always support qXfer:feature:read.
19690 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
19692 * server.c (wrapper_argv): New.
19693 (start_inferior): Handle wrapper_argv. If set, expect an extra
19695 (gdbserver_usage): Document --wrapper.
19696 (main): Parse --wrapper.
19698 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19700 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
19701 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
19702 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
19703 (ppc_set_pc): Likewise.
19704 (ppc_arch_setup): New function.
19705 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
19706 of collect_register.
19707 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
19709 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19711 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
19712 instead of linux-ppc64-low.o.
19713 * linux-ppc64-low.c: Remove file.
19714 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
19715 (linux-ppc64-low.o): Remove rule.
19717 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
19718 (init_registers_powerpc_64): Likewise.
19719 (ppc_regmap): Conditionally define depending on __powerpc64__.
19720 (ppc_cannot_store_register): Do not special-case "fpscr" when
19721 compiled on __powerpc64__.
19722 (ppc_collect_ptrace_register): New function.
19723 (ppc_supply_ptrace_register): New function.
19724 (ppc_breakpoint): Change type to "unsigned int".
19725 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
19726 (the_low_target): Conditionally provide initializers for the
19727 arch_setup member depending on __powerpc64__. Install
19728 collect_ptrace_register and supply_ptrace_register members.
19730 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19732 * regcache.h (gdbserver_xmltarget): Add extern declaration.
19733 * server.c (gdbserver_xmltarget): Define.
19734 (get_features_xml): Use it to replace "target.xml" and arch_string.
19736 * configure.srv: Remove srv_xmltarget. Add XML files that were
19737 mentioned there to srv_xmlfiles instead. Remove conditional tests
19738 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
19739 srv_xmlfiles and srv_regobj to include all possible choices.
19740 * configure.ac (srv_xmltarget): Remove.
19741 (srv_xmlfiles): Do not add "target.xml".
19742 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
19743 checks for supplementary target information.
19744 * configure: Regenerate.
19745 * Makefile.in (XML_TARGET): Remove.
19746 (target.xml): Remove rule.
19747 (clean): Do not clean up target.xml.
19748 (.PRECIOUS): Do not mention target.xml.
19750 * target.h (struct target_ops): Remove arch_string member.
19751 * linux-low.c (linux_arch_string): Remove.
19752 (linux_target_ops): Remove arch_string initializer.
19753 * linux-low.h (struct linux_target_ops): Remove arch_string member.
19754 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
19755 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
19756 * spu-low.c (spu_arch_string): Remove.
19757 (spu_target_ops): Remove arch_string initializer.
19758 * win32-low.c (win32_arch_string): Remove.
19759 (win32_target_ops): Remove arch_string initializer.
19760 * win32-low.h (struct win32_target_ops): Remove arch_string member.
19761 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
19762 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
19764 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19766 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
19767 by collect_ptrace_register and supply_ptrace_register hooks.
19768 * linux-low.c (fetch_register): Use supply_ptrace_register callback
19769 instead of checking for the_low_target.left_pad_xfer.
19770 (usr_store_inferior_registers): Use collect_ptrace_register callback
19771 instead of checking for the_low_target.left_pad_xfer.
19773 * linux-s390-low.c (s390_collect_ptrace_register): New function.
19774 (s390_supply_ptrace_register): Likewise.
19775 (s390_fill_gregset): Call s390_collect_ptrace_register.
19776 (the_low_target): Update.
19778 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
19779 (ppc_supply_ptrace_register): Likewise.
19780 (the_low_target): Update.
19782 * linux-i386-low.c (the_low_target): Update.
19783 * linux-x86-64-low.c (the_low_target): Update.
19785 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19787 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
19788 reg-s390.o and reg-s390x.o.
19790 * linux-low.c (new_inferior): New global variable.
19791 (linux_create_inferior, linux_attach): Set it.
19792 (linux_wait_for_process): Call the_low_target.arch_setup after the
19793 target has stopped for the first time.
19794 (initialize_low): Do not call the_low_target.arch_setup.
19796 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
19797 (s390_set_pc): Likewise.
19798 (s390_arch_setup): New function.
19799 (the_low_target): Use s390_arch_setup as arch_setup routine.
19801 * regcache.c (realloc_register_cache): New function.
19802 (set_register_cache): Call it for each existing regcache.
19804 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19806 * server.h (init_registers): Remove prototype.
19808 * linux-low.h (struct linux_target_ops): Add arch_setup field.
19809 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
19810 instead of init_registers ().
19811 * linux-arm-low.c (init_registers_arm): Add prototype.
19812 (init_registers_arm_with_iwmmxt): Likewise.
19813 (the_low_target): Add initializer for arch_setup field.
19814 * linux-cris-low.c (init_registers_cris): Add prototype.
19815 (the_low_target): Add initializer for arch_setup field.
19816 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
19817 (the_low_target): Add initializer for arch_setup field.
19818 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
19819 (the_low_target): Add initializer for arch_setup field.
19820 * linux-ia64-low.c (init_registers_ia64): Add prototype.
19821 (the_low_target): Add initializer for arch_setup field.
19822 * linux-m32r-low.c (init_registers_m32r): Add prototype.
19823 (the_low_target): Add initializer for arch_setup field.
19824 * linux-m68k-low.c (init_registers_m68k): Add prototype.
19825 (the_low_target): Add initializer for arch_setup field.
19826 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
19827 (init_registers_mips64_linux): Likewise.
19828 (the_low_target): Add initializer for arch_setup field.
19829 * linux-ppc-low.c (init_registers_ppc): Add prototype.
19830 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
19831 (the_low_target): Add initializer for arch_setup field.
19832 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
19833 (init_registers_powerpc_64): Likewise.
19834 (the_low_target): Add initializer for arch_setup field.
19835 * linux-s390-low.c (init_registers_s390): Add prototype.
19836 (init_registers_s390x): Likewise.
19837 (the_low_target): Add initializer for arch_setup field.
19838 * linux-sh-low.c (init_registers_sh): Add prototype.
19839 (the_low_target): Add initializer for arch_setup field.
19840 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
19841 (the_low_target): Add initializer for arch_setup field.
19842 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
19843 (the_low_target): Add initializer for arch_setup field.
19845 * win32-low.h (struct win32_target_ops): Add arch_setup field.
19846 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
19847 instead of init_registers ().
19848 * win32-arm-low.c (init_registers_arm): Add prototype.
19849 (the_low_target): Add initializer for arch_setup field.
19850 * win32-i386-low.c (init_registers_i386): Add prototype.
19851 (the_low_target): Add initializer for arch_setup field.
19853 * spu-low.c (init_registers_spu): Add prototype.
19854 (initialize_low): Call initialie_registers_spu () instead of
19855 initialize_registers ().
19857 2008-02-19 Pedro Alves <pedro@codesourcery.com>
19859 * server.c (handle_v_requests): When handling the vRun and vAttach
19860 packets, if already debugging a process, don't kill it. Return an
19863 2008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
19865 * server.c (handle_query): Correct length check.
19867 2008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
19869 * win32-low.c (do_initial_child_stuff): Add process handle
19870 parameter. Set current_process_handle and current_process_id from the
19871 parameters. Clear globals.
19872 (win32_create_inferior): Don't set current_process_handle and
19873 current_process_id here. Instead pass them on the call to
19874 do_initial_child_stuff.
19875 (win32_attach): Likewise.
19876 (win32_clear_inferiors): New.
19877 (win32_kill): Don't close the current process handle or the
19878 current thread handle here. Instead call win32_clear_inferiors.
19879 (win32_detach): Don't open a new handle to the process. Call
19880 win32_clear_inferiors.
19881 (win32_join): Don't rely on current_process_handle; open a new
19882 handle using the process id.
19883 (win32_wait): Call win32_clear_inferiors when the inferior process
19886 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
19888 * server.c (monitor_show_help): Add "exit".
19890 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
19892 * Makefile.in (SFILES): Add linux-xtensa-low.c.
19893 (clean): Add reg-xtensa.c.
19894 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
19895 * configure.srv (xtensa*-*-linux*) New target.
19896 * linux-xtensa-low.c: New.
19897 * xtensa-xtregs.c: New.
19899 2008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
19901 * hostio.c: Don't include errno.h.
19902 (errno_to_fileio_errno): Move to hostio-errno.
19903 * hostio.c: (hostio_error): Remove the error parameter. Defer the
19904 error number outputting to the target->hostio_last_error callback.
19905 (hostio_packet_error): Use FILEIO_EINVAL directly.
19906 (handle_open, handle_pread, hostio_error, handle_unlink): Update
19907 calls to hostio_error.
19908 * hostio-errno.c: New.
19909 * server.h (hostio_last_error_from_errno): Declare.
19910 * target.h (target_ops): Add hostio_last_error member.
19911 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
19912 as hostio_last_error handler.
19913 * spu-low.c (spu_target_ops): Likewise.
19914 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
19915 (wince_hostio_last_error): New functions.
19916 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
19917 as hostio_last_error handler.
19918 (win32_target_ops) [!_WIN32_WCE]: Register
19919 hostio_last_error_from_errno as hostio_last_error handler.
19920 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
19921 (hostio-errno.o): New rule.
19922 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
19923 * configure.srv (srv_hostio_err_objs): New variable. Default to
19925 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
19926 * configure: Regenerate.
19928 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
19930 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
19931 (linux_kill, linux_detach): Clean up the process list.
19932 * remote-utils.c (remote_open): Improve port number parsing.
19933 (putpkt_binary, input_interrupt): Only send interrupts if the target
19935 * server.c (extended_protocol): Make static.
19936 (attached): Define earlier.
19937 (exit_requested, response_needed, program_argv): New variables.
19938 (target_running): New.
19939 (start_inferior): Clear attached here.
19940 (attach_inferior): Set attached here.
19941 (require_running): Define.
19942 (handle_query): Use require_running and target_running. Implement
19944 (handle_v_attach, handle_v_run): New.
19945 (handle_v_requests): Use require_running. Handle vAttach and vRun.
19946 (gdbserver_usage): Update.
19947 (main): Redo argument parsing. Handle --debug and --multi. Handle
19948 --attach along with other options or after the port. Save
19949 program_argv. Support no initial program. Resynchronize
19950 communication with GDB after an error. Handle "monitor exit".
19951 Use require_running and target_running. Always allow the extended
19952 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
19953 restart in extended mode.
19954 * README: Refer to the GDB manual. Update --attach usage.
19956 2007-12-20 Andreas Schwab <schwab@suse.de>
19958 * linux-low.c (STACK_SIZE): Define.
19959 (linux_tracefork_child): Use it. Use __clone2 on ia64.
19960 (linux_test_for_tracefork): Likewise.
19962 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
19964 * linux-low.c (linux_wait_for_event): Update messages. Do not
19965 reinsert auto-delete breakpoints.
19966 * mem-break.c (struct breakpoint): Change return type of handler to
19968 (set_breakpoint_at): Update handler type.
19969 (reinsert_breakpoint_handler): Return 1 instead of calling
19971 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
19973 (check_breakpoints): Delete auto-delete breakpoints and return 2.
19974 * mem-break.h (set_breakpoint_at): Update handler type.
19975 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
19976 * win32-low.c (auto_delete_breakpoint): New.
19977 (get_child_debug_event): Use it.
19979 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
19981 * configure.ac: Check for pread and pwrite.
19982 * hostio.c (handle_pread): Fall back to lseek and read.
19983 (handle_pwrite): Fall back to lseek and write.
19984 * config.in, configure: Regenerated.
19986 2007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
19988 * server.c (myresume): Add own_buf argument.
19989 (main): Update calls.
19991 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
19993 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
19994 * remote-utils.c (remote_open): Do not call disable_async_io.
19995 (block_async_io): Delete.
19996 (unblock_async_io): Make static.
19997 (initialize_async_io): New.
19998 * server.c (handle_v_cont): Handle async I/O here.
19999 (myresume): Likewise. Move other common resume tasks here...
20000 (main): ... from here. Call initialize_async_io. Disable async
20001 I/O before the main loop.
20002 * server.h (initialize_async_io): Declare.
20003 (block_async_io, unblock_async_io): Delete prototypes.
20004 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
20006 2007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
20008 * remote-utils.c (readchar): Allow binary data in received messages.
20010 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20012 * win32-low.c (attaching): New global.
20013 (win32_create_inferior): Clear the `attaching' global.
20014 (win32_attach): Set the `attaching' global.
20015 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
20016 attaching. Only set a breakpoint at the entry point if not
20019 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20021 * server.c (main): Don't report dll events on the initial
20022 connection on attaches.
20024 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20026 * server.c (main): Relax numerical bases supported for the pid of
20027 the --attach command line argument.
20029 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20031 * win32-low.c (win32_attach): Call OpenProcess before
20032 DebugActiveProcess, not after. Add last error output to error
20035 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20037 * win32-low.c (win32_get_thread_context)
20038 (win32_set_thread_context): New functions.
20039 (thread_rec): Use win32_get_thread_context.
20040 (continue_one_thread, win32_resume): Use win32_set_thread_context.
20041 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
20044 2007-12-03 Leo Zayas
20045 Pedro Alves <pedro_alves@portugalmail.pt>
20047 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
20049 (child_add_thread): Minor cleanup.
20050 (child_continue): Resume artificially suspended threads before
20051 calling ContinueDebugEvent.
20052 (suspend_one_thread): New.
20053 (fake_breakpoint_event): New.
20054 (get_child_debug_event): Change return type to int. Check here if
20055 gdb sent an interrupt request. If a soft interrupt was requested,
20056 fake a breakpoint event. Return 0 if there is no event to handle,
20058 (win32_wait): Don't check here if gdb sent an interrupt request.
20059 Ensure there is a valid event to handle.
20060 (win32_request_interrupt): Add soft interruption method as last
20063 2007-12-03 Leo Zayas
20064 Pedro Alves <pedro_alves@portugalmail.pt>
20066 * win32-low.h (win32_thread_info): Add descriptions to the
20067 structure members. Replace `suspend_count' counter by a
20069 * win32-low.c (thread_rec): Update condition of when to get the
20070 context from the inferior. Rely on ContextFlags being set if it
20071 has already been retrieved. Only suspend the inferior thread if
20072 we haven't already. Warn if that fails.
20073 (continue_one_thread): s/suspend_count/suspended/. Only call
20074 ResumeThread once. Warn if that fails.
20076 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20078 * win32-low.c (win32_wait): Don't read from the inferior when it
20079 has already exited.
20081 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20083 * Makefile.in (win32_low_h): New variable.
20084 (win32-low.o): Add dependency on $(win32_low_h).
20085 (win32-arm-low.o, win32-i386-low.o): New rules.
20087 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20089 * hostio.c: Correct copyright year.
20091 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20093 * Makefile.in (OBS): Add hostio.o.
20094 (hostio.o): New rule.
20095 * server.h (handle_vFile): Declare.
20096 * hostio.c: New file.
20097 * server.c (handle_v_requests): Take packet_len and new_packet_len
20098 for binary packets. Call handle_vFile.
20099 (main): Update call to handle_v_requests.
20101 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
20103 * linux-low.c: Include <sched.h>.
20105 2007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
20107 * linux-low.c (linux_tracefork_grandchild): New.
20108 (linux_tracefork_child): Use clone.
20109 (linux_test_for_tracefork): Use clone; allocate and free a stack.
20111 2007-10-31 Joel Brobecker <brobecker@adacore.com>
20113 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
20115 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
20117 * linux-low.c (handle_extended_wait): Handle unexpected signals.
20119 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
20121 * inferiors.c (change_inferior_id): Delete.
20122 (add_pid_to_list, pull_pid_from_list): New.
20123 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
20124 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
20125 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
20126 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
20127 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
20128 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
20129 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
20130 (using_threads): Always set to 1.
20131 (handle_extended_wait): New.
20132 (add_process): Do not set TID.
20133 (linux_create_inferior): Set must_set_ptrace_flags.
20134 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
20135 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
20136 (linux_thread_alive): Rename TID argument to LWPID.
20137 (linux_wait_for_process): Handle unknown processes. Do not use TID.
20138 (linux_wait_for_event): Do not use TID or check using_threads. Update
20139 call to dead_thread_notify. Call handle_extended_wait.
20140 (linux_create_inferior): Use PTRACE_SETOPTIONS.
20141 (send_sigstop): Delete sigstop_sent.
20142 (wait_for_sigstop): Avoid TID.
20143 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
20144 (linux_test_for_tracefork): New.
20145 (linux_lookup_signals): Use thread_db_active and
20146 linux_supports_tracefork_flag.
20147 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
20148 * linux-low.h (get_process_thread): Avoid TID.
20149 (struct process_ifo): Move thread_known and tid to the end. Remove
20151 (linux_attach_lwp, thread_db_init): Update prototypes.
20152 * server.h (change_inferior_id): Delete prototype.
20153 (add_pid_to_list, pull_pid_from_list): New prototypes.
20154 * thread-db.c (thread_db_use_events): New.
20155 (find_first_thread): Rename to...
20156 (find_one_thread): ...this. Update callers and messages. Do not
20157 call fatal. Check thread_db_use_events. Do not call
20158 change_inferior_id or new_thread_notify.
20159 (maybe_attach_thread): Update. Do not call new_thread_notify.
20160 (thread_db_init): Set thread_db_use_events. Check use_events.
20161 * utils.c (fatal, warning): Correct message prefix.
20163 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
20165 * Makefile.in (clean): Remove new files.
20166 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
20167 (powerpc-64.o, powerpc-64.c): New rules.
20168 * configure.srv: Use alternate register sets for powerpc64-*-linux*
20169 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
20171 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
20173 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
20174 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
20175 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
20176 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
20177 (target_regsets): Add AltiVec and SPE register sets.
20178 * configure.ac: Check for AltiVec and SPE.
20179 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
20180 (ppc_fill_vrregset, ppc_store_vrregset): New.
20181 (target_regsets): Add AltiVec register set.
20182 * configure: Regenerated.
20184 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
20186 * linux-low.c (O_LARGEFILE): Define.
20187 (linux_read_memory): Use /proc/PID/mem.
20188 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
20189 * configure, config.in: Regenerated.
20191 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20193 * linux-low.c (linux_wait_for_event): Do not pass signals while
20196 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20198 * win32-low.c (create_process): New.
20199 (win32_create_inferior): Use create_process instead of
20200 CreateProcess. If create_process failed retry appending an ".exe"
20201 suffix. Store the GetLastError result immediatelly after
20202 create_process calls and use it on the call to error.
20204 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20206 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
20208 2007-08-23 Joel Brobecker <brobecker@adacore.com>
20210 * configure.ac: Switch license to GPLv3.
20212 2007-08-01 Michael Snyder <msnyder@access-company.com>
20214 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
20216 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
20218 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
20220 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
20221 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
20222 CloseToolhelp32Snapshot.
20223 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
20224 CloseToolhelp32Snapshot.
20226 2007-07-27 Michael Snyder <michael.snyder@access-company.com>
20228 * server.c (main): Check for inferior exit before main loop.
20230 2007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
20232 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
20233 instead of on tmp_desc.
20235 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
20236 Daniel Jacobowitz <dan@codesourcery.com>
20238 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
20239 (add_thread): Minor cleanups.
20240 (clear_inferiors): Move lower in the file. Clear the DLL
20242 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
20243 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
20244 (xml_escape_text): New.
20245 * server.c (handle_query): Handle qXfer:libraries:read. Report it
20247 (handle_v_cont): Report errors.
20248 (gdbserver_version): Update.
20249 (main): Correct size of own_buf. Do not report initial DLL events.
20250 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
20251 (unloaded_dll, xml_escape_text): New.
20252 * win32-low.c (enum target_waitkind): Update comments.
20253 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
20254 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
20255 (win32_EnumProcessModules, win32_GetModuleInformation)
20256 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
20257 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
20258 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
20259 (win32_Module32First, win32_Module32Next, load_toolhelp)
20260 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
20261 (get_child_debug_event): Handle DLL events.
20262 (win32_wait): Likewise.
20264 2007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20266 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
20267 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
20269 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20271 * win32-low.c (handle_output_debug_string): Ignore event if not
20274 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20276 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
20278 2007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
20280 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
20282 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
20284 * inferiors.c (change_inferior_id): Add comment.
20285 * linux-low.c (check_removed_breakpoint): Add an early
20286 prototype. Improve debug output.
20287 (linux_attach): Doc update.
20288 (linux_detach_one_process, linux_detach): Clean up before releasing
20290 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
20291 * linux-low.h (struct process_info): Doc improvement.
20292 * mem-break.c (delete_all_breakpoints): New.
20293 * mem-break.h (delete_all_breakpoints): New prototype.
20294 * thread-db.c (find_first_thread): New.
20295 (thread_db_create_event): Call it instead of
20296 thread_db_find_new_threads. Clean up unused variables.
20297 (maybe_attach_thread): Remove first thread handling.
20298 (thread_db_find_new_threads): Use find_first_thread.
20299 (thread_db_get_tls_address): Likewise.
20301 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
20303 * thread-db.c (thread_db_find_new_threads): Add prototype.
20304 (thread_db_create_event): Check for the main thread before adding
20306 (maybe_attach_thread): Only enable event reporting if TID == 0.
20307 (thread_db_get_tls_address): Check for new threads.
20309 2007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
20311 * linux-low.c (linux_create_inferior): Try execv before execvp.
20312 * spu-low.c (spu_create_inferior): Likewise.
20314 2007-06-13 Mike Frysinger <vapier@gentoo.org>
20316 * linux-low.c (linux_create_inferior): Change execv to execvp.
20317 * spu-low.c (spu_create_inferior): Likewies.
20319 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
20321 * Makefile.in (clean): Clean new files instead of deleted ones.
20322 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
20323 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
20325 * configure.srv: Specify XML files and new regformats for MIPS and
20327 * linux-mips-low.c (mips_num_regs): Set to only used registers.
20328 (mips_regmap): Do not fetch $0. Remove unused registers. Add
20329 an entry for the restart register.
20330 (mips_cannot_fetch_register, mips_cannot_store_register)
20331 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
20332 register names to match the XML descriptions.
20333 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
20334 restart register instead of $0.
20336 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20337 Markus Deuling <deuling@de.ibm.com>
20339 * remote-utils.c (decode_xfer_write): New function.
20340 * server.h (decode_xfer_write): Add prototype.
20341 * server.c (handle_query): Add PACKET_LEN argument. Support
20342 qXfer:spu:read and qXfer:spu:write packets.
20343 (main): Pass packet_len to handle_query.
20344 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
20345 * target.h (target_ops): Add qxfer_spu.
20347 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20349 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
20350 accessing non-seekable spufs files.
20352 2007-05-16 Markus Deuling <deuling@de.ibm.com>
20354 * server.c (handle_query): Add reply for qC packet.
20356 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20357 Leo Zayas <lerele@champenstudios@com>
20359 * server.h (check_remote_input_interrupt_request): New function.
20360 * remote_utils.c (INVALID_DESCRIPTOR): New define.
20361 (remote_desc): Initialize with INVALID_DESCRIPTOR.
20362 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
20363 (check_remote_input_interrupt_request): New function.
20364 * server.h (check_remote_input_interrupt_request): Declare.
20365 * win32-low.c (winapi_DebugBreakProcess,
20366 winapi_GenerateConsoleCtrlEvent): New typedefs.
20367 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
20369 (win32_wait): Check for remote interrupt request
20370 with check_remote_input_interrupt_request.
20371 (win32_request_interrupt): New function.
20372 (win32_target_op): Set request_interrupt to win32_request_interrupt.
20374 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20376 * win32-low.c (debug_registers_changed,
20377 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
20378 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
20379 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
20380 (thread_rec): Get context using the low target.
20381 (child_add_thread): Call thread_added on the low target,
20382 which does the same thing.
20384 (do_initial_child_stuff): Remove debug registers references.
20385 Set context using the low target. Resume threads after
20386 setting the contexts.
20387 (child_continue): Remove dead variable. Remove debug
20388 registers references.
20389 (child_fetch_inferior_registers): Go through the low target.
20390 (do_child_store_inferior_registers): Remove.
20391 (child_store_inferior_registers): Go through the low target.
20392 (win32_resume): Remove debug registers references.
20393 Set context using the low target.
20394 (handle_exception): Change return type to void. Don't record
20395 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
20396 first chance exception.
20397 (get_child_debug_event): Change return type to void. Remove
20398 goto loop. Always return after waiting for debug event.
20399 (win32_wait): Convert to switch statement. Handle spurious
20402 * win32-i386-low.c (debug_registers_changed,
20403 debug_registers_used): New.
20404 (initial_stuff): Rename to ...
20405 (i386_initial_stuff): ... this. Clear debug registers
20407 (store_debug_registers): Delete.
20408 (i386_get_thread_context): New.
20409 (load_debug_registers): Delete.
20410 (i386_set_thread_context): New.
20411 (i386_thread_added): New.
20412 (single_step): Rename to ...
20413 (i386_single_step): ... this.
20414 (do_fetch_inferior_registers): Rename to ...
20415 (i386_fetch_inferior_register): ... this.
20416 (i386_store_inferior_register): New.
20417 (the_low_target): Adapt to new interface.
20419 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
20420 (arm_get_thread_context): New.
20421 (arm_set_thread_context): New.
20423 (do_fetch_inferior_registers): Rename to ...
20424 (arm_fetch_inferior_register): ... this.
20425 (arm_store_inferior_register): New.
20426 (arm_wince_breakpoint): Reimplement as unsigned long.
20427 (arm_wince_breakpoint_len): Define.
20428 (the_low_target): Adapt to new interface.
20430 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
20431 load_debug_registers. Add get_thread_context, set_thread_context,
20432 thread_added and store_inferior_register. Rename
20433 fetch_inferior_registers to fetch_inferior_register.
20434 (regptr): Remove declaration.
20436 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20438 * linux-low.c (linux_detach): Change return type to int. Return 0.
20439 * spu-low.c (spu_detach): Likewise.
20441 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20443 * target.h (target_ops): Change return type of detach to int.
20445 (join_inferior): New.
20446 * server.c (main): Don't skip detach support on mingw32.
20447 If the inferior doesn't support detaching return error.
20448 Call join_inferior instead of using waitpid.
20449 * linux-low.c (linux_join): New.
20450 (linux_target_op): Add linux_join.
20451 * spu-low.c (spu_join): New.
20452 (spu_target_ops): Add spu_join.
20453 * win32-low.c (win32_detach): Adapt to new interface.
20454 Reopen current_process_handle before detaching. Issue a child
20455 resume before detaching.
20457 (win32_target_op): Add win32_join.
20459 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20461 * win32-low.c (win32-attach): Fix return value.
20462 * target.h (target_ops): Describe ATTACH return values.
20464 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20466 * win32-low.c (GETPROCADDRESS): Define.
20467 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
20468 (winapi_DebugSetProcessKillOnExit): Likewise.
20469 (win32_create_inferior): Force usage of ansi CreateProcessA.
20470 (win32_attach): Use GETPROCADDRESS.
20471 (win32_detach): Likewise.
20473 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20475 * win32-low.c (win32_wait): Don't use WSTOPSIG.
20477 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
20479 * win32-low.c: Commit leftover changes from 2007-03-29.
20481 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20483 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
20484 fields short instead of int. Add explicit padding.
20485 (i387_cache_to_fsave): Remove unnecessary casts.
20486 (i387_fsave_to_cache): Doc fix.
20487 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
20489 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20491 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
20492 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
20494 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20496 * configure.srv (arm*-*-mingw32ce*): Move near the other
20499 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20501 * configure.ac: Add errno checking.
20502 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
20503 sys/file.h and malloc.h.
20504 (AC_CHECK_DECLS): Add perror.
20505 (srv_mingwce): Handle.
20506 * configure.srv (i[34567]86-*-cygwin*): Add
20507 win32-i386-low.o to srv_tgtobj.
20508 (i[34567]86-*-mingw*): Likewise.
20509 (arm*-*-mingw32ce*): Add case.
20510 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20511 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
20512 [__MINGW32CE__] (strerror): New function.
20513 [__MINGW32CE__] (errno): Define to GetLastError.
20514 [__MINGW32CE__] (COUNTOF): New macro.
20515 (remote_open): Remove extra close call.
20516 * mem-break.c (delete_breakpoint_at): New function.
20517 * mem-break.h (delete_breakpoint_at): Declare.
20518 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20519 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
20520 [USE_WIN32API] (read, write): Add char* casts.
20521 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
20522 * server.h: Include wincecompat.h on Windows CE.
20523 [HAVE_ERRNO_H]: Check.
20524 (perror): Declare if not declared.
20525 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
20526 (perror_with_name): Remove errno declaration.
20527 * wincecompat.h: New.
20528 * wincecompat.c: New.
20529 * win32-low.h: New.
20530 * win32-arm-low.c: New.
20531 * win32-i386-low.c: New.
20532 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
20533 (OUTMSG2): Make it safe.
20535 (COUNTOF): New macro.
20536 (NUM_REGS): Get it from the low target.
20537 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
20538 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
20539 (thread_rec): Let low target handle debug registers.
20540 (child_add_thread): Likewise.
20541 (child_init_thread_list): Likewise.
20542 (continue_one_thread): Likewise.
20544 (do_child_fetch_inferior_registers): Move to ...
20545 * win32-i386-low.c: ... here, and rename to ...
20546 (do_fetch_inferior_registers): ... this.
20547 * win32-low.c (child_fetch_inferior_registers):
20548 Go through the low target.
20549 (do_child_store_inferior_registers): Use regptr.
20550 (strwinerror): New function.
20551 (win32_create_inferior): Handle Windows CE.
20552 Use strwinerror instead of strerror on Windows error
20553 codes. Add program to the error output.
20554 Don't close the main thread handle on Windows CE.
20555 (win32_attach): Use coredll.dll on Windows CE.
20556 (win32_kill): Close current process and current
20558 (win32_detach): Use coredll.dll on Windows CE.
20559 (win32_resume): Let low target handle debug registers, and
20561 (handle_exception): Add/Remove initial breakpoint. Avoid
20562 non-existant WSTOPSIG on Windows CE.
20563 (win32_read_inferior_memory): Cast to remove warning.
20564 (win32_arch_string): Go through the low target.
20565 (initialize_low): Call set_breakpoint_data with the low
20566 target's breakpoint.
20567 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
20568 FOP_REGNUM, mappings): Move to ...
20569 * win32-i386-low.c: ... here.
20570 * win32-low.c (win32_thread_info): Move to ...
20571 * win32-low.h: ... here.
20572 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
20573 win32-arm-low.c and wincecompat.c.
20574 (all:): Add $EXEEXT.
20575 (install-only:): Likewise.
20576 (gdbserver:): Likewise.
20577 (gdbreplay:): Likewise.
20578 * config.in: Regenerate.
20579 * configure: Regenerate.
20581 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20583 * win32-low.c: Rename typedef thread_info to
20584 win32_thread_info throughout.
20586 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20588 * win32-i386-low.c: Rename to ...
20589 * win32-low.c: ... this.
20590 * configure.srv: Replace win32-i386-low.o with win32-low.o.
20591 * Makefile.in: Likewise.
20593 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
20595 * remote-utils.c (monitor_output): Constify msg parameter.
20596 * server.h (monitor_output): Likewise.
20597 * win32-i386-low.c (handle_output_debug_string): New.
20598 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
20599 handle_output_debug_string.
20600 (get_child_debug_event): Likewise.
20602 2007-03-27 Mat Hostetter <mat@lcs.mit.edu>
20604 * server.c (main): Correct strtoul check.
20606 2007-03-27 Jon Ringle <jon@ringle.org>
20608 * linux-low.c: Check __ARCH_HAS_MMU__ also.
20610 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
20612 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
20614 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
20616 * terminal.h: Check HAVE_SGTTY_H.
20618 2007-02-27 Mat Hostetter <mat@lcs.mit.edu>
20620 * remote-utils.c (remote_open): Print out the assigned port number.
20622 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
20624 * remote-utils.c (monitor_output): New function.
20625 * server.c (debug_threads): Define here.
20626 (monitor_show_help): New function.
20627 (handle_query): Handle qRcmd.
20628 (main): Do not handle 'd' packet.
20629 * server.h (debug_threads, remote_debug, monitor_output): Declare.
20630 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
20633 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20635 * Makefile.in (EXEEXT): New.
20636 (clean): Use $(EXEEXT).
20638 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20640 * target.h (target_ops): Rename send_signal to request_interrupt,
20641 and remove enum target_signal parameter.
20642 * linux-low.c (linux_request_interrupt): Rename from
20643 linux_send_signal, and always send SIGINT.
20644 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
20645 and always send SIGINT.
20646 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
20648 (input_interrupt): Likewise.
20650 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20652 * server.c (get_features_xml): Check if target implemented
20654 * win32-i386-low.c (win32_arch_string): New.
20655 (win32_target_ops): Add win32_arch_string as arch_string member.
20657 2007-02-22 Markus Deuling <deuling@de.ibm.com>
20659 * spu-low.c (spu_arch_string): New.
20660 (spu_target_ops): Add spu_arch_string.
20662 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
20664 * remote-utils.c: Remove HAVE_TERMINAL_H check.
20665 * configure.ac: Do not check for terminal.h.
20666 * configure, config.in: Regenerated.
20668 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
20670 * Makefile.in (OBS): Add $(XML_BUILTIN).
20671 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
20673 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
20674 (arm-with-iwmmxt.c): New.
20675 * config.in, configure: Regenerate.
20676 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
20677 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
20678 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
20679 (arm*-*-linux*): Add iWMMXt and regset support.
20680 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
20681 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
20682 (arm_store_wmmxregset, target_regsets): New.
20683 * server.c (get_features_xml): Take annex argument. Check builtin
20685 (handle_query): Handle multiple annexes.
20687 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20689 * remote-utils.c [USE_WIN32API] (read, write): Define.
20690 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
20693 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
20695 * linux-i386-low.c (the_low_target): Set arch_string.
20696 * linux-x86-64-low.c (the_low_target): Likewise.
20697 * linux-low.c (linux_arch_string): New.
20698 (linux_target_ops): Add it.
20699 * linux-low.h (struct linux_target_ops): Add arch_string.
20700 * server.c (write_qxfer_response): Use const void * for DATA.
20701 (get_features_xml): New.
20702 (handle_query): Handle qXfer:features:read. Report it for qSupported.
20703 * target.h (struct target_ops): Add arch_string method.
20705 2007-01-03 Denis Pilat <denis.pilat@st.com>
20706 Daniel Jacobowitz <dan@codesourcery.com>
20708 * linux-low.c (linux_kill): Handle being called with no threads.
20709 * win32-i386-low.c (win32_kill): Likewise.
20710 (get_child_debug_event): Clear current_process_handle.
20712 2006-12-30 Denis PILAT <denis.pilat@st.com>
20713 Daniel Jacobowitz <dan@codesourcery.com>
20715 * remote-utils.c (remote_open): Check the type of specified
20716 serial port devices before opening them.
20717 * server.c (main): Kill the inferior if an error occurs during
20718 the first remote_open.
20720 2006-12-05 Markus Deuling <deuling@de.ibm.com>
20722 * README: Update supported targets.
20724 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
20726 * Makefile.in (clean): Remove reg-mips64.c.
20727 (reg-mips64.c, reg-mips64.o): New rules.
20728 * configure.srv: Handle mips64. Include regset support for mips.
20729 * linux-mips-low.c (union mips_register): New.
20730 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
20731 (mips_breakpoint, mips_breakpoint_at): Use int.
20732 (mips_collect_register, mips_supply_register)
20733 (mips_collect_register_32bit, mips_supply_register_32bit)
20734 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
20735 (mips_store_fpregset, target_regsets): New.
20736 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
20738 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
20740 * configure.srv: Add target "spu*-*-*".
20741 * Makefile.in (clean): Remove reg-spu.c.
20742 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
20743 * spu-low.c: New file.
20745 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
20747 * configure.ac: Correct td_thr_tls_get_addr test.
20748 * configure: Regenerated.
20750 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
20752 * linux-low.c (linux_wait_for_event): Reformat. Use the
20753 pass_signals array.
20754 * remote-utils.c (decode_address_to_semicolon): New.
20755 * server.c (pass_signals, handle_general_set): New.
20756 (handle_query): Mention QPassSignals for qSupported.
20757 (main): Call handle_general_set.
20758 * server.h (pass_signals, decode_address_to_semicolon): New.
20760 2006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
20762 * server.c (handle_query): Correct error handling for read_auxv.
20764 2005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
20766 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
20767 and srv_linux_thread_db to yes.
20768 * linux-s390-low.c (s390_fill_gregset): New function.
20769 (target_regsets): Define data structure.
20771 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
20773 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
20774 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
20775 * config.in, configure: Regenerated.
20776 * inferiors.c (gdb_id_to_thread): New function.
20777 (gdb_id_to_thread_id): Use it.
20778 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
20779 * linux-low.h (struct process_info): Add th member.
20780 (thread_db_get_tls_address): New prototype.
20781 * remote-utils.c (decode_address): Make non-static.
20782 * server.c (handle_query): Handle qGetTLSAddr.
20783 * server.h (gdb_id_to_thread, decode_address): New prototypes.
20784 * target.h (struct target_ops): Add get_tls_address.
20785 * thread-db.c (maybe_attach_thread): Save the thread handle.
20786 (thread_db_get_tls_address): New.
20788 2006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
20790 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
20791 (linux_resume_one_process): Take a siginfo_t *. Update all
20792 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
20793 (struct pending_signals): Add a siginfo_t.
20794 (linux_wait_for_process): Always set last_status.
20795 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
20796 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
20797 * linux-low.h (struct process_info): Add last_status.
20799 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
20801 * remote-utils.c (try_rle): New function.
20802 (putpkt_binary): Use it.
20804 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
20806 * Makefile.in (clean): Clean reg-x86-64-linux.c.
20807 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
20808 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
20809 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
20810 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
20813 2006-08-08 Richard Sandiford <richard@codesourcery.com>
20815 * server.c (terminal_fd): New variable.
20816 (old_foreground_pgrp): Likewise.
20817 (restore_old_foreground_pgrp): New function.
20818 (start_inferior): Record the terminal file descriptor in terminal_fd
20819 and its original foreground group in old_foreground_pgrp. Register
20820 restore_old_foreground_pgrp with atexit().
20822 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
20824 * server.c (handle_query): Correct qPart to qXfer.
20826 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
20828 * configure.ac: Check for more headers which are missing on
20829 Windows. Automatically supply -lwsock32 and USE_WIN32API.
20830 * configure.srv: Add Cygwin and mingw32.
20831 * remote-utils.c: Don't include headers unconditionally which
20832 are missing on mingw32. Include <winsock.h> for mingw32.
20833 (remote_open): Adjust for mingw32 support. Flush
20834 standard error after writing to it.
20835 (remote_close, putpkt_binary, input_interrupt, block_async_io)
20836 (unblock_async_io, enable_async_io, disable_async_io)
20837 (readchar, getpkt): Update for Winsock support.
20838 (prepare_resume_reply): Expect a protocol signal number.
20839 * server.c: Disable <sys/wait.h> on mingw32.
20840 (start_inferior): Adjust for mingw32 support. Flush
20841 standard error after writing to it.
20842 (attach_inferior): Likewise. Use protocol signal
20844 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
20846 * win32-i386-low.c: New file.
20847 * Makefile.in (XM_CLIBS): Set.
20848 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
20849 (win32-i386-low.o): New dependency rule.
20850 * linux-low.c (linux_wait): Use target signal numbers.
20851 * target.h (struct target_ops): Doc fix.
20852 * server.h (target_signal_to_name): New prototype.
20853 * gdbreplay.c: Don't include headers unconditionally which
20854 are missing on mingw32. Include <winsock.h> for mingw32.
20855 (remote_close, remote_open): Adjust for Winsock support.
20856 * configure, config.in: Regenerated.
20858 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20860 * server.c (decode_xfer_read, write_qxfer_response): New.
20861 (handle_query): Take a packet length argument. Handle
20862 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
20863 the qSupported response.
20864 (main): Update call to handle_query.
20866 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
20868 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
20869 (putpkt_binary): Renamed from putpkt and adjusted for binary
20871 (putpkt): New wrapper for putpkt_binary.
20872 (readchar): Don't mask off the high bit.
20873 (decode_X_packet): New function.
20874 * server.c (main): Call putpkt_binary if a handler sets the packet
20875 length. Save the length of the incoming packet. Handle 'X'.
20876 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
20878 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
20880 * server.c (handle_query): Handle qSupported.
20882 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
20884 * remote-utils.c (all_symbols_looked_up): New variable.
20885 (look_up_one_symbol): Check it.
20886 * server.h (look_up_one_symbol): New declaration.
20887 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
20889 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
20891 * Makefile.in (linux-arm-low.o): Update dependencies.
20892 * linux-arm-low.c: Include "gdb_proc_service.h".
20893 (PTRACE_GET_THREAD_AREA): Define.
20894 (ps_get_thread_area): New function.
20896 2006-05-09 Nathan Sidwell <nathan@codesourcery.com>
20898 * configure.srv (m68k*-*-uclinux*): New target.
20899 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
20900 (linux_resume_one_process): Remove extraneous cast.
20901 (linux_read_offsets): New.
20902 (linux_target_op): Add linux_read_offsets on mmuless systems.
20903 * server.c (handle_query): Add qOffsets logic.
20904 * target.h (struct target_ops): Add read_offsets.
20906 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
20908 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
20909 (PTRACE_GET_THREAD_AREA): Define.
20910 (ps_get_thread_area): New function.
20911 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
20912 (linux-x86-64-low.o): Update.
20914 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
20916 * configure.ac: Remove checks for prfpregset_t.
20917 * gdb_proc_service.h: New file.
20918 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
20919 new "gdb_proc_service.h".
20920 * proc-service.c: Likewise.
20921 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
20922 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
20923 * Makefile.in (gdb_proc_service_h): Updated.
20924 * configure, config.in: Regenerated.
20926 2006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
20928 * remote-utils.c (prepare_resume_reply): Move declaration
20929 of gdb_id_from_wait to the top of the block.
20931 2006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
20933 * linux-low.c (regsets_store_inferior_registers): Read the regset
20934 from the target before filling it.
20936 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
20938 * server.c (attach_inferior): Return SIGTRAP for a successful
20941 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
20943 * Makefile.in (OBS): Add version.o.
20944 (STAGESTUFF): Delete.
20945 (version.o): Add dependencies.
20946 (version.c): Replace rule.
20947 (clean): Remove version.c.
20948 * server.c (gdbserver_version): New.
20949 (gdbserver_usage): Use printf.
20950 (main): Handle --version and --help.
20951 * server.h (version, host_name): Add declarations.
20953 2005-12-23 Eli Zaretskii <eliz@gnu.org>
20965 * linux-x86-64-low.c:
20967 * linux-s390-low.c:
20968 * linux-ppc64-low.c:
20970 * linux-mips-low.c:
20971 * linux-m68k-low.c:
20972 * linux-m32r-low.c:
20975 * linux-ia64-low.c:
20976 * linux-i386-low.c:
20977 * linux-crisv32-low.c:
20989 * gdbserver.1: Add (C) after Copyright. Update the FSF
20992 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
20994 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
20995 (arm_breakpoint_at): Recognize both breakpoints.
20996 (the_low_target): Use the correct breakpoint instruction.
20998 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
21000 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
21001 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
21002 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
21003 (the_low_target): Update.
21005 2005-10-25 Andreas Schwab <schwab@suse.de>
21007 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
21009 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
21010 (ia64_num_regs): Reduce to 462.
21012 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
21014 * acinclude.m4: Correct quoting.
21015 * aclocal.m4: Regenerated.
21017 Suggested by SZOKOVACS Robert <szo@ies.hu>:
21018 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
21019 (thread_db_init): Call thread_db_err_str.
21020 * configure.ac: Check for TD_VERSION.
21021 * config.in, configure: Regenerated.
21023 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21025 * server.h (error, fatal, warning): Add ATTR_FORMAT.
21027 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21029 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
21030 is not available. Define HAVE_PTRACE_GETREGS if it is.
21031 * config.in, configure: Regenerated.
21032 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
21033 * linux-i386-low.c, linux-m68k-low.c: Update to use
21034 HAVE_PTRACE_GETREGS.
21035 * linux-low.c (regsets_fetch_inferior_registers)
21036 (regsets_store_inferior_registers): Only return 0 if we processed
21038 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
21039 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
21041 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21043 * inferiors.c (struct thread_info): Add gdb_id.
21044 (add_thread): Add gdb_id argument.
21045 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
21046 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
21047 calls to add_thread.
21048 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
21049 * server.c (handle_query): Use thread_to_gdb_id.
21050 (handle_v_cont, main): Use gdb_id_to_thread_id.
21051 * server.h (add_thread): Update prototype.
21052 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
21055 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21057 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
21058 left-padded registers.
21059 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
21060 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
21062 2005-07-01 Steve Ellcey <sje@cup.hp.com>
21064 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
21065 * configure: Regenerate.
21066 * config.in: Regenerate.
21067 * server.h (NEED_DECLARATION_STRERROR):
21068 Replace with !HAVE_DECL_STRERROR.
21070 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
21072 * linux-low.c (linux_wait, linux_send_signal): Don't test
21073 an unsigned long variable for > 0 if it could be MAX_ULONG.
21074 * server.c (myresume): Likewise.
21075 * target.c (set_desired_inferior): Likewise.
21077 2005-06-13 Mark Kettenis <kettenis@gnu.org>
21079 * configure.ac: Simplify and improve check for socklen_t.
21080 * configure, config.in: Regenerate.
21082 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
21084 * acconfig.h: Remove.
21085 * configure.ac: Add a test for socklen_t. Use three-argument
21086 AC_DEFINE throughout.
21087 * config.in: Regenerated using autoheader 2.59.
21088 * configure: Regenerated.
21090 * gdbreplay.c (socklen_t): Provide a default.
21091 (remote_open): Use socklen_t.
21092 * remote-utils.c (socklen_t): Provide a default.
21093 (remote_open): Use socklen_t.
21094 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
21097 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
21099 * linux-low.c (linux_read_memory, linux_write_memory)
21100 (linux_read_auxv): Likewise.
21101 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
21102 (check_mem_write): Likewise.
21103 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
21105 * regcache.c (struct inferior_rgcache_data, registers_to_string)
21106 (registers_from_string, register_data): Likewise.
21107 * server.c (handle_query, main): Likewise.
21108 * server.h (convert_ascii_to_int, convert_int_to_ascii)
21109 (decode_M_packet): Likewise.
21110 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
21111 * target.h (struct target_ops): Update read_memory, write_memory,
21113 (read_inferior_memory, write_inferior_memory): Update.
21114 * linux-low.h (struct linux_target_ops): Change type of breakpoint
21115 to unsigned char *.
21116 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
21117 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
21118 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
21119 linux-s390-low.c, linux-sh-low.c: Update for changes in
21120 read_inferior_memory and the_low_target->breakpoint.
21122 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
21124 * Makefile.in (SFILES): Add linux-ppc64-low.c.
21125 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
21126 * configure.srv: Add powerpc64-*-linux*.
21127 * linux-ppc64-low.c: New file.
21129 2005-05-23 Orjan Friberg <orjanf@axis.com>
21131 * linux-cris-low.c: New file with support for CRIS.
21132 * linux-crisv32-low.c: Ditto for CRISv32.
21133 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
21134 (clean): Add reg-cris.c and reg-crisv32.c.
21135 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
21136 reg-crisv32.o, and reg-crisv32.c to make rules.
21137 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
21138 recognized targets.
21140 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
21142 * linux-low.c (fetch_register): Ensure buffer size is a multiple
21143 of sizeof (PTRACE_XFER_TYPE).
21144 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
21146 2005-05-12 Orjan Friberg <orjanf@axis.com>
21148 * target.h (struct target_ops): Add insert_watchpoint,
21149 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
21150 pointers for hardware watchpoint support.
21151 * linux-low.h (struct linux_target_ops): Ditto.
21152 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
21153 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
21154 to linux_target_ops.
21155 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
21157 * server.c (main): Recognize 'Z' and 'z' packets.
21159 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
21161 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
21162 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
21163 (the_low_target): Add new members.
21165 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21167 * proc-service.c (ps_lgetregs): Search all_processes instead of
21170 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21172 * server.c (start_inferior): Change return type to int.
21173 (attach_inferior): Change sigptr to int *.
21174 (handle_v_cont, handle_v_requests): Change signal to int *.
21175 (main): Change signal to int.
21177 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
21179 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
21180 * configure.srv: Add m32r*-*-linux*.
21181 * linux-m32r-low.c: New file.
21183 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
21185 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
21187 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21189 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
21190 Take unsigned long arguments for PIDs.
21191 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
21192 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
21193 (wait_for_sigstop, linux_resume_one_process)
21194 (regsets_fetch_inferior_registers, linux_send_signal)
21195 (linux_read_auxv): Likewise. Update the types of variables holding
21196 PIDs. Update format string specifiers.
21197 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
21198 * remote-utils.c (prepare_resume_reply): Likewise.
21199 * server.c (cont_thread, general_thread, step_thread)
21200 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
21202 (handle_query): Update format specifiers.
21203 (handle_v_cont, main): Use strtoul for thread IDs.
21204 * server.h (struct inferior_list_entry): Use unsigned long for ID.
21205 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
21206 (general_thread, step_thread, thread_from_wait)
21207 (old_thread_from_wait): Update.
21208 * target.h (struct thread_resume): Use unsigned long for THREAD.
21209 (struct target_ops): Use unsigned long for arguments to attach and
21212 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
21214 * acinclude.m4: Include bfd/bfd.m4 directly.
21215 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
21216 <agriffis@toolchain.org>.
21217 * aclocal.m4, configure: Regenerated.
21219 2005-01-07 Andrew Cagney <cagney@gnu.org>
21221 * configure.ac: Rename configure.in, require autoconf 2.59.
21222 * configure: Re-generate.
21224 2004-12-08 Daniel Jacobowitz <dan@debian.org>
21226 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
21227 LIBS when finished.
21228 * aclocal.m4: Regenerated.
21229 * configure: Regenerated.
21231 2004-11-21 Andreas Schwab <schwab@suse.de>
21233 * linux-m68k-low.c (m68k_num_gregs): Define.
21234 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
21235 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
21236 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
21237 (m68k_breakpoint_at): New. Add to the_low_target.
21239 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
21240 srv_linux_thread_db to yes.
21242 2004-10-20 Joel Brobecker <brobecker@gnat.com>
21244 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
21245 (ARCH_SET_FS): Likewise.
21246 (ARCH_GET_FS): Likewise.
21247 (ARCH_GET_GS): Likewise.
21249 2004-10-16 Daniel Jacobowitz <dan@debian.org>
21251 * linux-i386-low.c (ps_get_thread_area): New.
21252 * linux-x86-64-low.c (ps_get_thread_area): New.
21253 * linux-low.c: Include <sys/syscall.h>.
21254 (linux_kill_one_process): Don't kill the first thread here.
21255 (linux_kill): Kill the first thread here.
21256 (kill_lwp): New function.
21257 (send_sigstop, linux_send_signal): Use it.
21258 * proc-service.c: Clean up #ifdefs.
21259 (fpregset_info): Delete.
21260 (ps_lgetregs): Update and enable implementation.
21261 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
21263 * remote-utils.c (struct sym_cache, symbol_cache): New.
21264 (input_interrupt): Print a clearer message.
21265 (async_io_enabled): New variable.
21266 (enable_async_io, disable_async_io): Use it. Update comments.
21267 (look_up_one_symbol): Use the symbol cache.
21268 * thread-db.c (thread_db_look_up_symbols): New function.
21269 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
21271 2004-10-16 Daniel Jacobowitz <dan@debian.org>
21273 * configure.in: Test for -rdynamic.
21274 * configure: Regenerated.
21275 * Makefile (INTERNAL_LDFLAGS): New.
21276 (gdbserver, gdbreplay): Use it.
21278 2004-09-02 Andrew Cagney <cagney@gnu.org>
21280 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
21282 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
21284 * linux-low.c (linux_wait): Clear all_processes list also.
21286 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
21288 * linux-low.c: Include <errno.h>. Remove extern declaration of
21291 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
21293 * gdbreplay.c, server.h, utils.c: Update copyright years.
21295 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21297 * server.c (main): Print child status or termination signal from
21298 variable 'signal', not 'sig'.
21300 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21302 * linux-low.c (linux_read_memory): Change return type to
21303 int. Check for and return error from ptrace().
21304 * target.c (read_inferior_memory): Change return type to int. Pass
21305 back return status from the_target->read_memory().
21306 * target.h (struct target_ops): Adapt *read_memory() prototype.
21308 (read_inferior_memory): Adapt prototype.
21309 * server.c (main): Return an error packet if
21310 read_inferior_memory() returns an error.
21312 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
21314 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
21315 Unify with other clean targets.
21317 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21319 * server.c (handle_v_cont): Call set_desired_inferior.
21321 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21323 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
21325 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21327 * linux-low.c (linux_wait): Unblock async I/O.
21328 (linux_resume): Block and enable async I/O.
21329 * remote-utils.c (block_async_io, unblock_async_io): New functions.
21330 * server.h (block_async_io, unblock_async_io): Add prototypes.
21332 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21334 * remote-utils.c (remote_open): Print a status notice after
21335 opening a TCP port.
21336 * server.c (attach_inferior): Print a status notice after
21339 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21341 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
21343 2004-02-26 Daniel Jacobowitz <drow@mvista.com>
21345 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
21347 * server.c, target.h: Update copyright years.
21349 2004-02-25 Roland McGrath <roland@redhat.com>
21351 * target.h (struct target_ops): New member `read_auxv'.
21352 * server.c (handle_query): Handle qPart:auxv:read: query using that.
21353 * linux-low.c (linux_read_auxv): New function.
21354 (linux_target_ops): Initialize `read_auxv' member to that.
21356 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21358 Committed by Jim Blandy <jimb@redhat.com>.
21360 * linux-s390-low.c (s390_num_regs): Update.
21361 (s390_regmap): Remove control registers. Use __s390x__ predefine
21362 instead of GPR_SIZE to distiguish s390 and s390x targets.
21364 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
21366 * linux-low.c: Update copyright year.
21367 (check_removed_breakpoint): Clear pending_is_breakpoint.
21368 (linux_set_resume_request, linux_queue_one_thread)
21369 (resume_status_pending_p): New functions.
21370 (linux_continue_one_thread): Use process->resume.
21371 (linux_resume): Only resume threads if there are no pending events.
21372 * linux-low.h (struct process_info): Add resume request
21375 2004-01-30 Daniel Jacobowitz <drow@mvista.com>
21377 * regcache.c (new_register_cache): Clear the allocated register
21378 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
21380 2003-10-13 Daniel Jacobowitz <drow@mvista.com>
21382 * linux-low.c (linux_resume): Take a struct thread_resume *
21384 (linux_wait): Update call.
21385 (resume_ptr): New static variable.
21386 (linux_continue_one_thread): Renamed from
21387 linux_continue_one_process. Use resume_ptr.
21388 (linux_resume): Use linux_continue_one_thread.
21389 * server.c (handle_v_cont, handle_v_requests): New functions.
21390 (myresume): New function.
21391 (main): Handle 'v' case.
21392 * target.h (struct thread_resume): New type.
21393 (struct target_ops): Change argument of "resume" to struct
21395 (myresume): Delete macro.
21397 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
21399 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
21400 (uninstall): Support DESTDIR.
21402 Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
21404 * configure.srv: Add xscale*linux copy of arm*linux entry.
21406 2003-07-24 Daniel Jacobowitz <drow@mvista.com>
21408 * linux-arm-low.c (arm_reinsert_addr): New function.
21409 (the_low_target): Add arm_reinsert_addr.
21411 2003-07-08 Mark Kettenis <kettenis@gnu.org>
21413 * mem-break.c: Remove whitespace at end of file.
21415 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
21417 * configure.in: Check whether we need to prototype strerror.
21418 * server.h: Optionally prototype strerror.
21419 * gdbreplay.c (perror_with_name): Use strerror.
21420 * linux-low.c (linux_attach_lwp): Use strerror.
21421 * utils.c (perror_with_name): Use strerror.
21422 * config.in, configure: Regenerated.
21424 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
21426 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
21427 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
21429 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
21431 * Makefile.in (SFILES): Update.
21432 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
21433 low-sun3.c: Remove files.
21435 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
21437 * linux-low.c: Move comment to linux_thread_alive where it belonged.
21438 (linux_detach_one_process, linux_detach): New functions.
21439 (linux_target_ops): Add linux_detach.
21440 * server.c (main): Handle 'D' packet.
21441 * target.h (struct target_ops): Add "detach" member.
21442 (detach_inferior): Define.
21444 2003-06-13 Mark Kettenis <kettenis@gnu.org>
21446 From Kelley Cook <kelleycook@wideopenwest.com>:
21447 * configure.srv: Accept i[34567]86 variants.
21449 2003-06-05 Daniel Jacobowitz <drow@mvista.com>
21451 * linux-low.c (linux_wait_for_event): Correct comment typos.
21452 (linux_resume_one_process): Call check_removed_breakpoint.
21453 (linux_send_signal): New function.
21454 (linux_target_ops): Add linux_send_signal.
21455 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
21457 * target.h (struct target_ops): Add send_signal.
21459 2003-05-29 Jim Blandy <jimb@redhat.com>
21461 * linux-low.c (usr_store_inferior_registers): Transfer buf in
21462 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
21463 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
21464 away part of the register's value.
21466 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
21468 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
21469 (linux_wait_for_event, linux_init_signals): Likewise.
21471 2003-03-17 Daniel Jacobowitz <drow@mvista.com>
21473 * configure.in: Check for stdlib.h.
21474 * configure: Regenerated.
21475 * config.in: Regenerated.
21477 2003-01-04 Andreas Schwab <schwab@suse.de>
21479 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
21481 2003-01-02 Andrew Cagney <ac131313@redhat.com>
21483 * Makefile.in: Remove obsolete code.
21485 2002-11-20 Daniel Jacobowitz <drow@mvista.com>
21487 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
21488 defined(PT_FPR0_HI).
21490 2002-11-17 Stuart Hughes <seh@zee2.com>
21492 * linux-arm-low.c (arm_num_regs): Increase.
21493 (arm_regmap): Include status register.
21495 2002-11-17 Daniel Jacobowitz <drow@mvista.com>
21497 * linux-low.c (register_addr): Remove incorrect -1 check.
21499 2002-08-29 Daniel Jacobowitz <drow@mvista.com>
21501 * linux-low.c (linux_create_inferior): Call setpgid. Return
21503 (unstopped_p, linux_signal_pid): Remove.
21504 (linux_target_ops): Remove linux_signal_pid.
21505 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
21506 global instead of target method.
21507 * target.h (struct target_ops): Remove signal_pid. Update comment
21508 for create_inferior.
21509 * server.c (signal_pid): New variable.
21510 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
21511 gdbserver. Set the child to be the foreground process group.
21512 (attach_inferior): Set signal_pid.
21514 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
21516 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
21518 2002-08-20 Jim Blandy <jimb@redhat.com>
21520 * Makefile.in (LDFLAGS): Allow the configure script to establish a
21523 2002-08-01 Andrew Cagney <cagney@redhat.com>
21525 * Makefile.in: Make chill references obsolete.
21527 2002-07-24 Kevin Buettner <kevinb@redhat.com>
21529 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
21530 * configure: Regenerate.
21531 * config.in: Regenerate.
21533 2002-07-09 David O'Brien <obrien@FreeBSD.org>
21535 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
21536 (perror_with_name, remote_close, remote_open, expect, play): Static.
21538 2002-07-04 Michal Ludvig <mludvig@suse.cz>
21540 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
21541 byte offsets instead of an array of indexes.
21542 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
21544 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
21546 * regcache.c: Add comment.
21548 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
21550 * thread-db.c: New file.
21551 * proc-service.c: New file.
21552 * acinclude.m4: New file.
21553 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
21554 proc-service.o, and thread-db.o.
21555 (linux-low.o): Add USE_THREAD_DB.
21556 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
21557 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
21558 * aclocal.m4: Regenerated.
21559 * config.in: Regenerated.
21560 * configure: Regenerated.
21561 * configure.in: Check for proc_service.h, sys/procfs.h,
21562 thread_db.h, and linux/elf.h headrs.
21563 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
21564 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
21565 Check for -lthread_db and thread support.
21566 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
21567 PowerPC, and SuperH.
21568 * i387-fp.c: Constify arguments.
21569 * i387-fp.h: Likewise.
21570 * inferiors.c: (struct thread_info): Renamed from
21571 `struct inferior_info'. Remove PID member. Use generic inferior
21572 list header. All uses updated.
21573 (inferiors, signal_pid): Removed.
21574 (all_threads): New variable.
21575 (get_thread): Define.
21576 (add_inferior_to_list): New function.
21577 (for_each_inferior): New function.
21578 (change_inferior_id): New function.
21579 (add_inferior): Removed.
21580 (remove_inferior): New function.
21581 (add_thread): New function.
21582 (free_one_thread): New function.
21583 (remove_thread): New function.
21584 (clear_inferiors): Use for_each_inferior and free_one_thread.
21585 (find_inferior): New function.
21586 (find_inferior_id): New function.
21587 (inferior_target_data): Update argument type.
21588 (set_inferior_target_data): Likewise.
21589 (inferior_regcache_data): Likewise.
21590 (set_inferior_regcache_data): Likewise.
21591 * linux-low.c (linux_bp_reinsert): Remove.
21592 (all_processes, stopping_threads, using_thrads)
21593 (struct pending_signals, debug_threads, pid_of): New.
21594 (inferior_pid): Replace with macro.
21595 (struct inferior_linux_data): Remove.
21596 (get_stop_pc, add_process): New functions.
21597 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
21598 Use add_process and add_thread.
21599 (linux_attach_lwp): New function, based on old linux_attach. Use
21600 add_process and add_thread. Set stop_expected for new threads.
21601 (linux_attach): New function.
21602 (linux_kill_one_process): New function.
21603 (linux_kill): Kill all LWPs.
21604 (linux_thread_alive): Use find_inferior_id.
21605 (check_removed_breakpoints, status_pending_p): New functions.
21606 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
21607 Update. Use WNOHANG. Wait for cloned processes also. Update process
21608 struct for the found process.
21609 (linux_wait_for_event): New function.
21610 (linux_wait): Use it. Support LWPs.
21611 (send_sigstop, wait_for_sigstop, stop_all_processes)
21612 (linux_resume_one_process, linux_continue_one_process): New functions.
21613 (linux_resume): Support LWPs.
21614 (REGISTER_RAW_SIZE): Remove.
21615 (fetch_register): Use register_size instead. Call supply_register.
21616 (usr_store_inferior_registers): Likewise. Call collect_register.
21617 Fix recursive case.
21618 (regsets_fetch_inferior_registers): Improve error message.
21619 (regsets_store_inferior_registers): Add debugging.
21620 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
21621 (unstopped_p, linux_signal_pid): New functions.
21622 (linux_target_ops): Add linux_signal_pid.
21623 (linux_init_signals): New function.
21624 (initialize_low): Call it. Initialize using_threads.
21625 * regcache.c (inferior_regcache_data): Add valid
21627 (get_regcache): Fetch registers lazily. Add fetch argument
21628 and update all callers.
21629 (regcache_invalidate_one, regcache_invalidate): New
21631 (new_register_cache): Renamed from create_register_cache.
21632 Return the new regcache.
21633 (free_register_cache): Change argument to a void *.
21634 (registers_to_string, registers_from_string): Call get_regcache
21635 with fetch flag set.
21636 (register_data): Make static. Pass fetch flag to get_regcache.
21637 (supply_register): Call get_regcache with fetch flag clear.
21638 (collect_register): Call get_regcache with fetch flag set.
21639 (collect_register_as_string): New function.
21640 * regcache.h: Update.
21641 * remote-utils.c (putpkt): Flush after debug output and use
21643 Handle input interrupts while waiting for an ACK.
21644 (input_interrupt): Use signal_pid method.
21645 (getpkt): Flush after debug output and use stderr.
21646 (outreg): Use collect_register_as_string.
21647 (new_thread_notify, dead_thread_notify): New functions.
21648 (prepare_resume_reply): Check using_threads. Set thread_from_wait
21649 and general_thread.
21650 (look_up_one_symbol): Flush after debug output.
21651 * server.c (step_thread, server_waiting): New variables.
21652 (start_inferior): Don't use signal_pid. Update call to mywait.
21653 (attach_inferior): Update call to mywait.
21654 (handle_query): Handle qfThreadInfo and qsThreadInfo.
21655 (main): Don't fetch/store registers explicitly. Use
21656 set_desired_inferior. Support proposed ``Hs'' packet. Update
21658 * server.h: Update.
21659 (struct inferior_list, struct_inferior_list_entry): New.
21660 * target.c (set_desired_inferior): New.
21661 (write_inferior_memory): Constify.
21662 (mywait): New function.
21663 * target.h: Update.
21664 (struct target_ops): New signal_pid method.
21665 (mywait): Removed macro, added prototype.
21667 * linux-low.h (regset_func): Removed.
21668 (regset_fill_func, regset_store_func): New.
21669 (enum regset_type): New.
21670 (struct regset_info): Add type field. Use new operation types.
21671 (struct linux_target_ops): stop_pc renamed to get_pc.
21672 Add decr_pc_after_break and breakpoint_at.
21673 (get_process, get_thread_proess, get_process_thread)
21674 (strut process_info, all_processes, linux_attach_lwp)
21675 (thread_db_init): New.
21677 * linux-arm-low.c (arm_get_pc, arm_set_pc,
21678 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
21679 (the_low_target): Add new members.
21680 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
21681 (i386_store_fpxregset): Constify.
21682 (target_regsets): Add new kind identifier.
21683 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
21684 (i386_set_pc): Add debugging.
21685 (i386_breakpoint_at): New function.
21686 (the_low_target): Add new members.
21687 * linux-mips-low.c (mips_get_pc, mips_set_pc)
21688 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
21689 (mips_breakpoint_at): New.
21690 (the_low_target): Add new members.
21691 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
21692 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
21693 (the_low_target): Add new members.
21694 * linux-sh-low.c (sh_get_pc, sh_set_pc)
21695 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
21696 (the_low_target): Add new members.
21697 * linux-x86-64-low.c (target_regsets): Add new kind
21700 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
21702 From Martin Pool <mbp@samba.org>:
21703 * server.c (gdbserver_usage): New function.
21706 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
21708 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
21709 stop_at -> stop_pc.
21711 2002-05-04 Andrew Cagney <ac131313@redhat.com>
21713 * Makefile.in: Remove obsolete code.
21715 2002-04-24 Michal Ludvig <mludvig@suse.cz>
21717 * linux-low.c (regsets_fetch_inferior_registers),
21718 (regsets_store_inferior_registers): Removed cast to int from
21720 * regcache.h: Added declaration of struct inferior_info.
21722 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
21724 * inferiors.c (struct inferior_info): Add regcache_data.
21725 (add_inferior): Call create_register_cache.
21726 (clear_inferiors): Call free_register_cache.
21727 (inferior_regcache_data, set_inferior_regcache_data): New functions.
21728 * regcache.c (struct inferior_regcache_data): New.
21729 (registers): Remove.
21730 (get_regcache): New function.
21731 (create_register_cache, free_register_cache): New functions.
21732 (set_register_cache): Don't initialize the register cache here.
21733 (registers_to_string, registers_from_string, register_data): Call
21735 * regcache.h: Add prototypes.
21736 * server.h: Likewise.
21738 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
21740 * mem-break.c: New file.
21741 * mem-break.h: New file.
21742 * Makefile.in: Add mem-break.o rule; update server.h
21744 * inferiors.c (struct inferior_info): Add target_data
21746 (clear_inferiors): Free target_data member if set.
21747 (inferior_target_data, set_inferior_target_data): New functions.
21748 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
21749 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
21750 * linux-low.c (linux_bp_reinsert): New variable.
21751 (struct inferior_linux_data): New.
21752 (linux_create_inferior): Use set_inferior_target_data.
21753 (linux_attach): Likewise. Call add_inferior.
21754 (linux_wait_for_one_inferior): New function.
21755 (linux_wait): Call it.
21756 (linux_write_memory): Add const.
21757 (initialize_low): Call set_breakpoint_data.
21758 * linux-low.h (struct linux_target_ops): Add breakpoint
21760 * server.c (attach_inferior): Remove extra add_inferior
21762 * server.h: Include mem-break.h. Update inferior.c
21764 * target.c (read_inferior_memory)
21765 (write_inferior_memory): New functions.
21766 * target.h (read_inferior_memory)
21767 (write_inferior_memory): Change macros to prototypes.
21768 (struct target_ops): Update comments. Add const to write_memory
21771 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
21773 * linux-low.c (usr_store_inferior_registers): Support
21774 registers which are allowed to fail to store.
21775 * linux-low.h (linux_target_ops): Likewise.
21776 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
21777 (ppc_cannot_store_register): FPSCR may not be storable.
21779 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
21781 * server.h: Include <string.h> if HAVE_STRING_H.
21782 * ChangeLog: Correct paths in last ChangeLog entry.
21784 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
21786 * linux-low.h: Remove obsolete prototypes.
21787 (struct linux_target_ops): New.
21788 (extern the_low_target): New.
21789 * linux-low.c (num_regs, regmap): Remove declarations.
21790 (register_addr): Use the_low_target explicitly.
21791 (fetch_register): Likewise.
21792 (usr_fetch_inferior_registers): Likewise.
21793 (usr_store_inferior_registers): Likewise.
21794 * linux-arm-low.c (num_regs): Remove.
21795 (arm_num_regs): Define.
21796 (arm_regmap): Renamed from regmap, made static.
21797 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
21799 (arm_cannot_store_register): Renamed from cannot_store_register,
21801 (the_low_target): New.
21802 * linux-i386-low.c (num_regs): Remove.
21803 (i386_num_regs): Define.
21804 (i386_regmap): Renamed from regmap, made static.
21805 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
21807 (i386_cannot_store_register): Renamed from cannot_store_register,
21809 (the_low_target): New.
21810 * linux-ia64-low.c (num_regs): Remove.
21811 (ia64_num_regs): Define.
21812 (ia64_regmap): Renamed from regmap, made static.
21813 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
21815 (ia64_cannot_store_register): Renamed from cannot_store_register,
21817 (the_low_target): New.
21818 * linux-m68k-low.c (num_regs): Remove.
21819 (m68k_num_regs): Define.
21820 (m68k_regmap): Renamed from regmap, made static.
21821 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
21823 (m68k_cannot_store_register): Renamed from cannot_store_register,
21825 (the_low_target): New.
21826 * linux-mips-low.c (num_regs): Remove.
21827 (mips_num_regs): Define.
21828 (mips_regmap): Renamed from regmap, made static.
21829 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
21831 (mips_cannot_store_register): Renamed from cannot_store_register,
21833 (the_low_target): New.
21834 * linux-ppc-low.c (num_regs): Remove.
21835 (ppc_num_regs): Define.
21836 (ppc_regmap): Renamed from regmap, made static.
21837 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
21839 (ppc_cannot_store_register): Renamed from cannot_store_register,
21841 (the_low_target): New.
21842 * linux-s390-low.c (num_regs): Remove.
21843 (s390_num_regs): Define.
21844 (s390_regmap): Renamed from regmap, made static.
21845 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
21847 (s390_cannot_store_register): Renamed from cannot_store_register,
21849 (the_low_target): New.
21850 * linux-sh-low.c (num_regs): Remove.
21851 (sh_num_regs): Define.
21852 (sh_regmap): Renamed from regmap, made static.
21853 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
21855 (sh_cannot_store_register): Renamed from cannot_store_register,
21857 (the_low_target): New.
21858 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
21859 (the_low_target): New.
21861 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
21863 * Makefile.in: Add stamp-h target.
21864 * configure.in: Create stamp-h.
21865 * configure: Regenerated.
21867 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
21869 * inferiors.c: New file.
21870 * target.c: New file.
21871 * target.h: New file.
21872 * Makefile.in: Add target.o and inferiors.o. Update
21874 * linux-low.c (inferior_pid): New static variable,
21875 moved from server.c.
21876 (linux_create_inferior): Renamed from create_inferior.
21877 Call add_inferior. Return 0 on success instead of a PID.
21878 (linux_attach): Renamed from myattach.
21879 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
21880 (linux_thread_alive): Renamed from mythread_alive.
21881 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
21883 (linux_resume): Renamed from myresume. Add missing ``return 0''.
21884 (regsets_store_inferior_registers): Correct error message.
21885 Add missing ``return 0''.
21886 (linux_fetch_registers): Renamed from fetch_inferior_registers.
21887 (linux_store_registers): Renamed from store_inferior_registers.
21888 (linux_read_memory): Renamed from read_inferior_memory.
21889 (linux_write_memory): Renamed from write_inferior_memory.
21890 (linux_target_ops): New structure.
21891 (initialize_low): Call set_target_ops ().
21892 * remote-utils.c (unhexify): New function.
21893 (hexify): New function.
21894 (input_interrupt): Send signals to ``signal_pid''.
21895 * server.c (inferior_pid): Remove.
21896 (start_inferior): Update create_inferior call.
21897 (attach_inferior): Call add_inferior.
21898 (handle_query): New function.
21899 (main): Call handle_query for `q' packets.
21900 * server.h: Include "target.h". Remove obsolete prototypes.
21901 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
21903 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
21905 * Makefile.in: Add WARN_CFLAGS. Update configury
21907 * configure.in: Check for <string.h>
21908 * configure: Regenerate.
21909 * config.in: Regenerate.
21910 * gdbreplay.c: Include needed system headers.
21911 (remote_open): Remove strchr prototype.
21912 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
21913 * regcache.c (supply_register): Change buf argument to const void *.
21914 (supply_register_by_name): Likewise.
21915 (collect_register): Change buf argument to void *.
21916 (collect_register_by_name): Likewise.
21917 * regcache.h: Add missing prototypes.
21918 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
21919 * server.c (handle_query): New function.
21920 (attached): New static variable, moved out of main.
21921 (main): Quiet longjmp clobber warnings.
21922 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
21923 * utils.c (error): Remove NORETURN.