1 2020-04-08 Tom Tromey <tromey@adacore.com>
3 * win32-low.c (windows_nat::thread_rec): Rename from thread_rec.
4 No longer static. Change parameters.
5 (child_add_thread, child_fetch_inferior_registers)
6 (child_store_inferior_registers, win32_resume)
7 (win32_get_tib_address): Update.
9 2020-04-08 Tom Tromey <tromey@adacore.com>
11 * win32-low.h (struct win32_target_ops): Use qualified names where
13 * win32-i386-low.c: Add "using namespace".
14 * win32-low.c: Add "using namespace".
15 * win32-arm-low.c: Add "using namespace".
17 2020-04-08 Tom Tromey <tromey@adacore.com>
19 * win32-low.c (delete_thread_info): Don't call CloseHandle.
21 2020-04-08 Tom Tromey <tromey@adacore.com>
23 * win32-low.c (win32_require_context, suspend_one_thread): Use
24 windows_thread_info::suspend.
25 (continue_one_thread): Use windows_thread_info::resume.
26 * configure.srv (srv_tgtobj): Add windows-nat.o when needed.
28 2020-04-08 Tom Tromey <tromey@adacore.com>
30 * win32-i386-low.c (update_debug_registers)
31 (i386_prepare_to_resume, i386_thread_added): Update.
33 2020-04-08 Tom Tromey <tromey@adacore.com>
35 * win32-low.c (child_add_thread): Use new.
36 (delete_thread_info): Use delete.
38 2020-04-08 Tom Tromey <tromey@adacore.com>
40 * win32-low.h (struct windows_thread_info): Remove.
42 2020-04-08 Tom Tromey <tromey@adacore.com>
44 * win32-low.h (struct windows_thread_info): Rename from
45 win32_thread_info. Remove typedef.
46 (struct win32_target_ops, win32_require_context): Update.
47 * win32-low.c (win32_get_thread_context)
48 (win32_set_thread_context, win32_prepare_to_resume)
49 (win32_require_context, thread_rec, child_add_thread)
50 (delete_thread_info, continue_one_thread)
51 (child_fetch_inferior_registers, child_store_inferior_registers)
52 (win32_resume, suspend_one_thread, win32_get_tib_address):
54 * win32-i386-low.c (update_debug_registers)
55 (win32_get_current_dr, i386_get_thread_context)
56 (i386_prepare_to_resume, i386_thread_added, i386_single_step)
57 (i386_fetch_inferior_register, i386_store_inferior_register):
59 * win32-arm-low.c (arm_get_thread_context)
60 (arm_fetch_inferior_register, arm_store_inferior_register):
63 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
65 * linux-low.h (struct linux_target_ops): Remove.
66 (the_low_target): Remove.
67 * linux-x86-low.cc (the_low_target): Remove.
68 * linux-aarch64-low.cc (the_low_target): Ditto.
69 * linux-arm-low.cc (the_low_target): Ditto.
70 * linux-bfin-low.cc (the_low_target): Ditto.
71 * linux-cris-low.cc (the_low_target): Ditto.
72 * linux-crisv32-low.cc (the_low_target): Ditto.
73 * linux-ia64-low.cc (the_low_target): Ditto.
74 * linux-m32r-low.cc (the_low_target): Ditto.
75 * linux-m68k-low.cc (the_low_target): Ditto.
76 * linux-mips-low.cc (the_low_target): Ditto.
77 * linux-nios2-low.cc (the_low_target): Ditto.
78 * linux-ppc-low.cc (the_low_target): Ditto.
79 * linux-riscv-low.cc (the_low_target): Ditto.
80 * linux-s390-low.cc (the_low_target): Ditto.
81 * linux-sh-low.cc (the_low_target): Ditto.
82 * linux-sparc-low.cc (the_low_target): Ditto.
83 * linux-tic6x-low.cc (the_low_target): Ditto.
84 * linux-tile-low.cc (the_low_target): Ditto.
85 * linux-xtensa-low.cc (the_low_target): Ditto.
87 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
89 Remove the 'get_ipa_tdesc_idx' linux target op and let a concrete
90 linux target define the op by overriding the declaration in
91 process_stratum_target.
93 * linux-low.h (struct linux_target_ops): Remove the op.
94 (class linux_process_target) <get_ipa_tdesc_idx>: Remove.
95 * linux-low.cc (linux_process_target::get_ipa_tdesc_idx): Remove.
96 * linux-x86-low.cc (class x86_target) <get_ipa_tdesc_idx>: Declare.
97 (x86_get_ipa_tdesc_idx): Turn into...
98 (x86_target::get_ipa_tdesc_idx): ...this.
99 (the_low_target): Remove the op field.
100 * linux-ppc-low.cc (class ppc_target) <get_ipa_tdesc_idx>: Declare.
101 (ppc_get_ipa_tdesc_idx): Turn into...
102 (ppc_target::get_ipa_tdesc_idx): ...this.
103 (the_low_target): Remove the op field.
104 * linux-s390-low.cc (class s390_target) <get_ipa_tdesc_idx>: Declare.
105 (s390_get_ipa_tdesc_idx): Turn into...
106 (s390_target::get_ipa_tdesc_idx): ...this.
107 (the_low_target): Remove the op field.
109 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
111 Turn the 'get_syscall_trapinfo' linux target op into a method
112 of process_stratum_target.
114 * linux-low.h (struct linux_target_ops): Remove the op.
115 (class linux_process_target) <get_syscall_trapinfo>
116 <gdb_catch_this_syscall>
117 <low_supports_catch_syscall>
118 <low_get_syscall_trapinfo>: Declare.
119 * linux-low.cc (get_syscall_trapinfo): Turn into...
120 (linux_process_target::get_syscall_trapinfo): ...this.
121 (linux_process_target::low_get_syscall_trapinfo): Define.
122 (gdb_catch_this_syscall_p): Turn into...
123 (linux_process_target::gdb_catch_this_syscall): ...this.
124 (linux_process_target::low_supports_catch_syscall): Define.
126 Update the callers below.
128 (linux_process_target::wait_1)
129 (linux_process_target::supports_catch_syscall)
131 * linux-x86-low.cc (class x86_target) <low_supports_catch_syscall>
132 <low_get_syscall_trapinfo>: Declare.
133 (x86_target::low_supports_catch_syscall): Define.
134 (x86_get_syscall_trapinfo): Turn into...
135 (x86_target::low_get_syscall_trapinfo): ...this.
136 (the_low_target): Remove the op field.
137 * linux-aarch64-low.cc (class aarch64_target)
138 <low_supports_catch_syscall>
139 <low_get_syscall_trapinfo>: Declare.
140 (aarch64_target::low_supports_catch_syscall): Define.
141 (aarch64_get_syscall_trapinfo): Turn into...
142 (aarch64_target::low_get_syscall_trapinfo): ...this.
143 (the_low_target): Remove the op field.
144 * linux-arm-low.cc (class arm_target) <low_supports_catch_syscall>
145 <low_get_syscall_trapinfo>: Declare.
146 (arm_target::low_supports_catch_syscall): Define.
147 (arm_get_syscall_trapinfo): Turn into...
148 (arm_target::low_get_syscall_trapinfo): ...this.
149 (the_low_target): Remove the op field.
150 * linux-ppc-low.cc (the_low_target): Remove the op field.
151 * linux-s390-low.cc (the_low_target): Remove the op field.
153 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
155 Remove the 'supports_hardware_single_step' linux target op and
156 override the process_stratum_target's op definition in
157 linux_process_target to return true.
159 * linux-low.h (struct linux_target_ops): Remove the op.
160 (class linux_process_target) <finish_step_over>
161 <maybe_hw_step>: Declare.
162 * linux-low.cc (can_hardware_single_step): Remove.
163 (maybe_hw_step): Turn into...
164 (linux_process_target::maybe_hw_step): ...this.
165 (finish_step_over): Turn into...
166 (linux_process_target::finish_step_over): ...this.
167 (linux_process_target::supports_hardware_single_step): Update
170 Update the callers below.
172 (linux_process_target::single_step)
173 (linux_process_target::resume_one_lwp_throw)
175 * linux-arm-low.cc (class arm_target)
176 <supports_hardware_single_step>: Declare.
177 (arm_supports_hardware_single_step): Turn into...
178 (arm_target::supports_hardware_single_step): ...this.
179 (the_low_target): Remove the op field.
180 * linux-x86-low.cc (x86_supports_hardware_single_step): Remove.
181 (the_low_target): Remove the op field.
182 * linux-aarch64-low.cc (aarch64_supports_hardware_single_step):
184 (the_low_target): Remove the op field.
185 * linux-bfin-low.cc (bfin_supports_hardware_single_step): Remove.
186 (the_low_target): Remove the op field.
187 * linux-crisv32-low.cc (cris_supports_hardware_single_step): Remove.
188 (the_low_target): Remove the op field.
189 * linux-m32r-low.cc (m32r_supports_hardware_single_step): Remove.
190 (the_low_target): Remove the op field.
191 * linux-m68k-low.cc (m68k_supports_hardware_single_step): Remove.
192 (the_low_target): Remove the op field.
193 * linux-ppc-low.cc (ppc_supports_hardware_single_step): Remove.
194 (the_low_target): Remove the op field.
195 * linux-s390-low.cc (s390_supports_hardware_single_step): Remove.
196 (the_low_target): Remove the op field.
197 * linux-sh-low.cc (sh_supports_hardware_single_step): Remove.
198 (the_low_target): Remove the op field.
199 * linux-tic6x-low.cc (tic6x_supports_hardware_single_step): Remove.
200 (the_low_target): Remove the op field.
201 * linux-tile-low.cc (tile_supports_hardware_single_step): Remove.
202 (the_low_target): Remove the op field.
203 * linux-xtensa-low.cc (xtensa_supports_hardware_single_step):
205 (the_low_target): Remove the op field.
207 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
209 Turn the 'supports_range_stepping' linux target op into a method
210 of linux_process_target.
212 * linux-low.h (struct linux_target_ops): Remove the op.
213 (class linux_process_target) <low_supports_range_stepping>: Declare.
214 * linux-low.cc (linux_process_target::low_supports_range_stepping):
216 (linux_process_target::supports_range_stepping): Update the call
218 * linux-x86-low.cc (class x86_target)
219 <low_supports_range_stepping>: Declare.
220 (x86_supports_range_stepping): Turn into...
221 (x86_target::low_supports_range_stepping): ...this.
222 (the_low_target): Remove the op field.
223 * linux-aarch64-low.cc (class aarch64_target)
224 <low_supports_range_stepping>: Declare.
225 (aarch64_supports_range_stepping): Turn into...
226 (aarch64_target::low_supports_range_stepping): ...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-ppc-low.cc (the_low_target): Ditto.
234 * linux-s390-low.cc (the_low_target): Ditto.
235 * linux-sh-low.cc (the_low_target): Ditto.
236 * linux-tic6x-low.cc (the_low_target): Ditto.
237 * linux-tile-low.cc (the_low_target): Ditto.
238 * linux-xtensa-low.cc (the_low_target): Ditto.
240 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
242 Remove the 'emit_ops' linux target ops and let the concrete
243 linux target define the op by overriding the declaration of
244 process_stratum_target.
246 * linux-low.h (struct linux_target_ops): Remove the op.
247 (class linux_process_target) <emit_ops>: Remove.
248 * linux-low.cc (linux_process_target::emit_ops): Remove.
249 * linux-x86-low.cc (class x86_target) <emit_ops>: Declare.
250 (x86_emit_ops): Turn into...
251 (x86_target::emit_ops): ...this.
252 (the_low_target): Remove the op field.
253 * linux-aarch64-low.cc (class aarch64_target) <emit_ops>: Declare.
254 (aarch64_emit_ops): Turn into...
255 (aarch64_target::emit_ops): ...this.
256 (the_low_target): Remove the op field.
257 * linux-ppc-low.cc (class ppc_target) <emit_ops>: Declare.
258 (ppc_emit_ops): Turn into...
259 (ppc_target::emit_ops): ...this.
260 (the_low_target): Remove the op field.
261 * linux-s390-low.cc (class s390_target) <emit_ops>: Declare.
262 (s390_emit_ops): Turn into...
263 (s390_target::emit_ops): ...this.
264 (the_low_target): Remove the op field.
265 * linux-arm-low.cc (the_low_target): Remove the op field.
266 * linux-bfin-low.cc (the_low_target): Ditto.
267 * linux-crisv32-low.cc (the_low_target): Ditto.
268 * linux-m32r-low.cc (the_low_target): Ditto.
269 * linux-m68k-low.cc (the_low_target): Ditto.
270 * linux-sh-low.cc (the_low_target): Ditto.
271 * linux-tic6x-low.cc (the_low_target): Ditto.
272 * linux-tile-low.cc (the_low_target): Ditto.
273 * linux-xtensa-low.cc (the_low_target): Ditto.
275 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
277 Remove the 'install_fast_tracepoint_jump_pad' and
278 'get_min_fast_tracepoint_insn_len' linux target ops to let the
279 concrete linux target define the ops by overriding the declarations
280 of process_stratum_target.
282 * linux-low.h (struct linux_target_ops): Remove the ops.
283 (class linux_process_target) <supports_fast_tracepoints>
284 <install_fast_tracepoint_jump_pad>
285 <get_min_fast_tracepoint_insn_len>: Remove.
286 * linux-low.cc (linux_process_target::supports_fast_tracepoints)
287 (linux_process_target::install_fast_tracepoint_jump_pad)
288 (linux_process_target::get_min_fast_tracepoint_insn_len): Remove.
289 * linux-x86-low.cc (class x86_target) <supports_fast_tracepoints>
290 <install_fast_tracepoint_jump_pad>
291 <get_min_fast_tracepoint_insn_len>: Declare.
292 (x86_target::supports_fast_tracepoints): Define.
293 (x86_install_fast_tracepoint_jump_pad): Turn into...
294 (x86_target::install_fast_tracepoint_jump_pad): ...this.
295 (x86_get_min_fast_tracepoint_insn_len): Turn into...
296 (x86_target::get_min_fast_tracepoint_insn_len): ...this.
297 (the_low_target): Remove the op fields.
298 * linux-aarch64-low.cc (class aarch64_target)
299 <supports_fast_tracepoints>
300 <install_fast_tracepoint_jump_pad>
301 <get_min_fast_tracepoint_insn_len>: Declare.
302 (aarch64_target::supports_fast_tracepoints): Define.
303 (aarch64_install_fast_tracepoint_jump_pad): Turn into...
304 (aarch64_target::install_fast_tracepoint_jump_pad): ...this.
305 (aarch64_get_min_fast_tracepoint_insn_len): Turn into...
306 (aarch64_target::get_min_fast_tracepoint_insn_len): ...this.
307 (the_low_target): Remove the op fields.
308 * linux-ppc-low.cc (class ppc_target) <supports_fast_tracepoints>
309 <install_fast_tracepoint_jump_pad>
310 <get_min_fast_tracepoint_insn_len>: Declare.
311 (ppc_target::supports_fast_tracepoints): Define.
312 (ppc_install_fast_tracepoint_jump_pad): Turn into...
313 (ppc_target::install_fast_tracepoint_jump_pad): ...this.
314 (ppc_get_min_fast_tracepoint_insn_len): Turn into...
315 (ppc_target::get_min_fast_tracepoint_insn_len): ...this.
316 (the_low_target): Remove the op fields.
317 * linux-s390-low.cc (class s390_target) <supports_fast_tracepoints>
318 <install_fast_tracepoint_jump_pad>
319 <get_min_fast_tracepoint_insn_len>: Declare.
320 (s390_target::supports_fast_tracepoints): Define.
321 (s390_install_fast_tracepoint_jump_pad): Turn into...
322 (s390_target::install_fast_tracepoint_jump_pad): ...this.
323 (s390_get_min_fast_tracepoint_insn_len): Turn into...
324 (s390_target::get_min_fast_tracepoint_insn_len): ...this.
325 (the_low_target): Remove the op fields.
326 * linux-arm-low.cc (the_low_target): Remove the op fields.
327 * linux-bfin-low.cc (the_low_target): Ditto.
328 * linux-crisv32-low.cc (the_low_target): Ditto.
329 * linux-m32r-low.cc (the_low_target): Ditto.
330 * linux-m68k-low.cc (the_low_target): Ditto.
331 * linux-sh-low.cc (the_low_target): Ditto.
332 * linux-tic6x-low.cc (the_low_target): Ditto.
333 * linux-tile-low.cc (the_low_target): Ditto.
334 * linux-xtensa-low.cc (the_low_target): Ditto.
336 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
338 Turn the 'get_thread_area' linux target op into a method of
339 process_stratum_target.
341 * linux-low.h (struct linux_target_ops): Remove the op.
342 (class linux_process_target) <stuck_in_jump_pad>
343 <linux_fast_tracepoint_collecting>
344 <low_get_thread_area>: Declare.
345 * linux-low.cc (supports_fast_tracepoints): Remove.
346 (linux_fast_tracepoint_collecting): Turn into...
347 (linux_process_target::linux_fast_tracepoint_collecting): ...this.
348 (linux_process_target::low_get_thread_area): Define.
349 (stuck_in_jump_pad_callback): Turn into...
350 (linux_process_target::stuck_in_jump_pad): ...this.
352 Update the caller below.
354 (linux_process_target::stabilize_threads)
356 * linux-x86-low.cc (class x86_target) <low_get_thread_area>:
358 (x86_get_thread_area): Turn into...
359 (x86_target::low_get_thread_area): ...this.
360 (the_low_target): Remove the op field.
361 * linux-aarch64-low.cc (class aarch64_target) <low_get_thread_area>:
363 (aarch64_get_thread_area): Turn into...
364 (aarch64_target::low_get_thread_area): ...this.
365 (the_low_target): Remove the op field.
366 * linux-ppc-low.cc (class ppc_target) <low_get_thread_area>:
368 (ppc_get_thread_area): Turn into...
369 (ppc_target::low_get_thread_area): ...this.
370 (the_low_target): Remove the op field.
371 * linux-s390-low.cc (class s390_target) <low_get_thread_area>:
373 (s390_get_thread_area): Turn into...
374 (s390_target::low_get_thread_area): ...this.
375 (the_low_target): Remove the op field.
376 * linux-arm-low.cc (the_low_target): Remove the op field.
377 * linux-bfin-low.cc (the_low_target): Ditto.
378 * linux-crisv32-low.cc (the_low_target): Ditto.
379 * linux-m32r-low.cc (the_low_target): Ditto.
380 * linux-m68k-low.cc (the_low_target): Ditto.
381 * linux-sh-low.cc (the_low_target): Ditto.
382 * linux-tic6x-low.cc (the_low_target): Ditto.
383 * linux-tile-low.cc (the_low_target): Ditto.
384 * linux-xtensa-low.cc (the_low_target): Ditto.
386 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
388 Remote the 'supports_tracepoints' linux target op and let the
389 concrete linux target define it by overriding the op declared in
390 process_stratum_target.
392 * linux-low.h (struct linux_target_ops): Remove the op.
393 (class linux_process_target) <supports_tracepoints>: Remove.
394 * linux-low.cc (linux_process_target::supports_tracepoints): Remove.
395 * linux-x86-low.cc (class x86_target) <supports_tracepoints>:
397 (x86_supports_tracepoints): Turn into...
398 (x86_target::supports_tracepoints): ...this.
399 (the_low_target): Remove the op field.
400 * linux-aarch64-low.cc (class aarch64_target)
401 <supports_tracepoints>: Declare.
402 (aarch64_supports_tracepoints): Turn into...
403 (aarch64_target::supports_tracepoints): ...this.
404 (the_low_target): Remove the op field.
405 * linux-ppc-low.cc (class ppc_target) <supports_tracepoints>:
407 (ppc_supports_tracepoints): Turn into...
408 (ppc_target::supports_tracepoints): ...this.
409 (the_low_target): Remove the op field.
410 * linux-s390-low.cc (class s390_target) <supports_tracepoints>:
412 (s390_supports_tracepoints): Turn into...
413 (s390_target::supports_tracepoints): ...this.
414 (the_low_target): Remove the op field.
415 * linux-arm-low.cc (the_low_target): Remove the op field.
416 * linux-bfin-low.cc (the_low_target): Ditto.
417 * linux-crisv32-low.cc (the_low_target): Ditto.
418 * linux-m32r-low.cc (the_low_target): Ditto.
419 * linux-m68k-low.cc (the_low_target): Ditto.
420 * linux-sh-low.cc (the_low_target): Ditto.
421 * linux-tic6x-low.cc (the_low_target): Ditto.
422 * linux-tile-low.cc (the_low_target): Ditto.
423 * linux-xtensa-low.cc (the_low_target): Ditto.
425 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
427 Remove the 'process_qsupported' linux target op and let a concrete
428 linux target define the op by overriding the op declaration in
429 process_stratum_target.
431 * linux-low.h (struct linux_target_ops): Remove the op.
432 (class linux_process_target) <process_qsupported>: Remove.
433 * linux-low.cc (linux_process_target::process_qsupported): Remove.
434 * linux-x86-low.cc (class x86_target) <process_qsupported>: Declare.
435 (x86_linux_process_qsupported): Turn into...
436 (x86_target::process_qsupported): ...this.
437 (the_low_target): Remove the op field.
438 * linux-aarch64-low.cc (the_low_target): Remove the op
440 * linux-arm-low.cc (the_low_target): Ditto.
441 * linux-bfin-low.cc (the_low_target): Ditto.
442 * linux-crisv32-low.cc (the_low_target): Ditto.
443 * linux-m32r-low.cc (the_low_target): Ditto.
444 * linux-m68k-low.cc (the_low_target): Ditto.
445 * linux-ppc-low.cc (the_low_target): Ditto.
446 * linux-s390-low.cc (the_low_target): Ditto.
447 * linux-sh-low.cc (the_low_target): Ditto.
448 * linux-tic6x-low.cc (the_low_target): Ditto.
449 * linux-tile-low.cc (the_low_target): Ditto.
450 * linux-xtensa-low.cc (the_low_target): Ditto.
452 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
454 Turn the 'prepare_to_resume' linux target op into a method of
455 linux_process_target.
457 * linux-low.h (struct linux_target_ops): Remove the op.
458 (class linux_process_target) <low_prepare_to_resume>: Declare.
459 * linux-low.cc (linux_process_target::low_prepare_to_resume):
462 Update the callers below:
464 (linux_process_target::resume_one_lwp_throw)
465 (linux_process_target::low_prepare_to_resume)
467 * linux-x86-low.cc (class x86_target) <low_prepare_to_resume>:
469 (x86_target::low_prepare_to_resume): Define.
470 (the_low_target): Remove the op field.
471 * linux-aarch64-low.cc (class aarch64_target)
472 <low_prepare_to_resume>: Declare.
473 (aarch64_target::low_prepare_to_resume): Define.
474 (the_low_target): Remove the op field.
475 * linux-arm-low.cc (class arm_target) <low_prepare_to_resume>:
477 (arm_prepare_to_resume): Turn into...
478 (arm_target::low_prepare_to_resume): ...this.
479 (the_low_target): Remove the op field.
480 * linux-mips-low.cc (class mips_target) <low_prepare_to_resume>:
482 (mips_linux_prepare_to_resume): Turn into...
483 (mips_target::low_prepare_to_resume): ...this.
484 (the_low_target): Remove the op field.
485 * linux-bfin-low.cc (the_low_target): Remove the op field.
486 * linux-crisv32-low.cc (the_low_target): Ditto.
487 * linux-m32r-low.cc (the_low_target): Ditto.
488 * linux-m68k-low.cc (the_low_target): Ditto.
489 * linux-ppc-low.cc (the_low_target): Ditto.
490 * linux-s390-low.cc (the_low_target): Ditto.
491 * linux-sh-low.cc (the_low_target): Ditto.
492 * linux-tic6x-low.cc (the_low_target): Ditto.
493 * linux-tile-low.cc (the_low_target): Ditto.
494 * linux-xtensa-low.cc (the_low_target): Ditto.
496 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
498 Turn the 'new_process', 'delete_process', 'new_thread',
499 'delete_thread', and 'new_fork' linux target ops into methods
500 of linux_process_target.
502 * linux-low.h (struct linux_target_ops): Remove the ops.
503 (class linux_process_target) <add_linux_process>
508 <check_zombie_leaders>
514 <low_new_fork>: Declare.
515 * linux-low.cc (delete_lwp): Turn into...
516 (linux_process_target::delete_lwp): ...this.
517 (linux_process_target::low_delete_thread): Define.
518 (linux_add_process): Turn into...
519 (linux_process_target::add_linux_process): ...this.
520 (linux_process_target::low_new_process): Define.
521 (linux_process_target::low_delete_process): Define.
522 (linux_process_target::low_new_fork): Define.
523 (add_lwp): Turn into...
524 (linux_process_target::add_lwp): ...this.
525 (linux_process_target::low_new_thread): Define.
526 (linux_attach_lwp): Turn into...
527 (linux_process_target::attach_lwp): ...this.
528 (linux_detach_one_lwp): Turn into...
529 (linux_process_target::detach_one_lwp): ...this.
530 (linux_detach_lwp_callback): Remove and inline...
531 (linux_process_target::detach): ...here.
532 (check_zombie_leaders): Turn into...
533 (linux_process_target::check_zombie_leaders): ...this.
534 (filter_exit_event): Turn into...
535 (linux_process_target::filter_exit_event): ...this.
537 Update the callers below.
539 (linux_process_target::handle_extended_wait)
540 (linux_process_target::create_inferior)
541 (attach_proc_task_lwp_callback)
542 (linux_process_target::attach)
543 (linux_process_target::detach)
544 (linux_process_target::mourn)
545 * thread-db.cc (attach_thread)
547 * linux-x86-low.cc (class x86_target) <low_new_process>
551 <low_new_fork>: Declare.
552 (x86_linux_new_process): Turn into...
553 (x86_target::low_new_process): ...this.
554 (x86_linux_delete_process): Turn into...
555 (x86_target::low_delete_process): ...this.
556 (x86_target::low_new_thread): Define.
557 (x86_target::low_delete_thread): Define.
558 (x86_linux_new_fork): Turn into...
559 (x86_target::low_new_fork): ...this.
560 (the_low_target): Remove the op fields.
561 * linux-aarch64-low.cc (class aarch64_target) <low_new_process>
565 <low_new_fork>: Declare.
566 (aarch64_linux_new_process): Turn into...
567 (aarch64_target::low_new_process): ...this.
568 (aarch64_linux_delete_process): Turn into...
569 (aarch64_target::low_delete_process): ...this.
570 (aarch64_target::low_new_thread): Define.
571 (aarch64_target::low_delete_thread): Define.
572 (aarch64_linux_new_fork): Turn into...
573 (aarch64_target::low_new_fork): ...this.
574 (the_low_target): Remove the op fields.
575 * linux-arm-low.cc (class arm_target) <low_new_process>
579 <low_new_fork>: Declare.
580 (arm_new_process): Turn into...
581 (arm_target::low_new_process): ...this.
582 (arm_delete_process): Turn into...
583 (arm_target::low_delete_process): ...this.
584 (arm_new_thread): Turn into...
585 (arm_target::low_new_thread): ...this.
586 (arm_delete_thread): Turn into...
587 (arm_target::low_delete_thread): ...this.
588 (arm_new_fork): Turn into...
589 (arm_target::low_new_fork): ...this.
590 (the_low_target): Remove the op fields.
591 * linux-mips-low.cc (class mips_target) <low_new_process>
595 <low_new_fork>: Declare.
596 (mips_linux_new_process): Turn into...
597 (mips_target::low_new_process): ...this.
598 (mips_linux_delete_process): Turn into...
599 (mips_target::low_delete_process): ...this.
600 (mips_linux_new_thread): Turn into...
601 (mips_target::low_new_thread): ...this.
602 (mips_linux_delete_thread): Turn into...
603 (mips_target::low_delete_thread): ...this.
604 (mips_linux_new_fork): Turn into...
605 (mips_target::low_new_fork): ...this.
606 (the_low_target): Remove the op fields.
607 * linux-bfin-low.cc (the_low_target): Remove the op fields.
608 * linux-crisv32-low.cc (the_low_target): Ditto.
609 * linux-m32r-low.cc (the_low_target): Ditto.
610 * linux-m68k-low.cc (the_low_target): Ditto.
611 * linux-ppc-low.cc (the_low_target): Ditto.
612 * linux-s390-low.cc (the_low_target): Ditto.
613 * linux-sh-low.cc (the_low_target): Ditto.
614 * linux-tic6x-low.cc (the_low_target): Ditto.
615 * linux-tile-low.cc (the_low_target): Ditto.
616 * linux-xtensa-low.cc (the_low_target): Ditto.
618 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
620 Turn the 'siginfo_fixup' linux target op into a method of
621 linux_process_target.
623 * linux-low.h (struct linux_target_ops): Remove the op.
624 (class linux_process_target) <siginfo_fixup>
625 <low_siginfo_fixup>: Declare.
626 * linux-low.cc (siginfo_fixup): Turn into...
627 (linux_process_target::siginfo_fixup): ...this.
628 (linux_process_target::low_siginfo_fixup): Define.
629 * linux-x86-low.cc (class x86_target) <low_siginfo_fixup>: Declare.
630 (x86_siginfo_fixup): Turn into...
631 (x86_target::low_siginfo_fixup): ...this.
632 (the_low_target): Remove the op field.
633 * linux-aarch64-low.cc (class aarch64_target):
634 <low_siginfo_fixup>: Declare.
635 (aarch64_linux_siginfo_fixup): Turn into...
636 (aarch64_target::low_siginfo_fixup): ...this.
637 (the_low_target): Remove the op field.
638 * linux-arm-low.cc (the_low_target): Remove the op field.
639 * linux-bfin-low.cc (the_low_target): Ditto.
640 * linux-crisv32-low.cc (the_low_target): Ditto.
641 * linux-m32r-low.cc (the_low_target): Ditto.
642 * linux-m68k-low.cc (the_low_target): Ditto.
643 * linux-mips-low.cc (the_low_target): Ditto.
644 * linux-ppc-low.cc (the_low_target): Ditto.
645 * linux-s390-low.cc (the_low_target): Ditto.
646 * linux-sh-low.cc (the_low_target): Ditto.
647 * linux-tic6x-low.cc (the_low_target): Ditto.
648 * linux-tile-low.cc (the_low_target): Ditto.
649 * linux-xtensa-low.cc (the_low_target): Ditto.
651 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
653 Turn the 'collect_ptrace_register' and 'supply_ptrace_register'
654 linux target ops into methods of linux_process_target.
656 * linux-low.h (struct linux_target_ops): Remove the ops.
657 (class linux_process_target) <low_collect_ptrace_register>
658 <low_store_ptrace_register>: Declare.
659 * linux-low.cc (linux_process_target::low_collect_ptrace_register)
660 (linux_process_target::low_supply_ptrace_register): Define.
662 Update the callers below.
664 (linux_process_target::fetch_register)
665 (linux_process_target::store_register)
667 * linux-x86-low.cc (the_low_target): Remove the op fields.
668 * linux-aarch64-low.cc (the_low_target): Ditto.
669 * linux-arm-low.cc (the_low_target): Ditto.
670 * linux-bfin-low.cc (the_low_target): Ditto.
671 * linux-crisv32-low.cc (the_low_target): Ditto.
672 * linux-m32r-low.cc (the_low_target): Ditto.
673 * linux-m68k-low.cc (the_low_target): Ditto.
674 * linux-sh-low.cc (the_low_target): Ditto.
675 * linux-sparc-low.cc (the_low_target): Ditto.
676 * linux-tic6x-low.cc (the_low_target): Ditto.
677 * linux-tile-low.cc (the_low_target): Ditto.
678 * linux-xtensa-low.cc (the_low_target): Ditto.
679 * linux-mips-low.cc (class mips_target)
680 <low_collect_ptrace_register>
681 <low_supply_ptrace_register>: Declare.
682 (mips_collect_ptrace_register): Turn into ...
683 (mips_target::low_collect_ptrace_register): ...this.
684 (mips_supply_ptrace_register): Turn into...
685 (mips_target::low_supply_ptrace_register): ...this.
686 (the_low_target): Remove the op fields.
687 * linux-ppc-low.cc (class ppc_target)
688 <low_collect_ptrace_register>
689 <low_supply_ptrace_register>: Declare.
690 (ppc_collect_ptrace_register): Turn into ...
691 (ppc_target::low_collect_ptrace_register): ...this.
692 (ppc_supply_ptrace_register): Turn into ...
693 (ppc_target::low_supply_ptrace_register): ...this.
694 (ppc_fill_gregset): Update for the calls to
695 low_collect_ptrace_register.
696 (the_low_target): Remove the op fields.
697 * linux-s390-low.cc (class s390_target)
698 <low_collect_ptrace_register>
699 <low_supply_ptrace_register>: Declare.
700 (s390_collect_ptrace_register): Turn into ...
701 (s390_target::low_collect_ptrace_register): ...this.
702 (s390_supply_ptrace_register): Turn into ...
703 (s390_target::low_supply_ptrace_register): ...this.
704 (s390_fill_gregset): Update for the calls to
705 low_collect_ptrace_register.
706 (the_low_target): Remove the op fields.
708 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
710 Turn the 'stopped_by_watchpoint' and 'stopped_data_address' linux
711 target ops into methods of linux_process_target.
713 * linux-low.h (struct linux_target_ops): Remove the ops.
714 (class linux_process_target) <check_stopped_by_watchpoint>
715 <low_stopped_by_watchpoint>
716 <low_stopped_data_address>: Declare.
717 * linux-low.cc (check_stopped_by_watchpoint): Turn into...
718 (linux_process_target::check_stopped_by_watchpoint): ...this.
719 (linux_process_target::low_stopped_by_watchpoint): Define.
720 (linux_process_target::low_stopped_data_address): Define.
721 * linux-x86-low.cc (class x86_target) <low_stopped_by_watchpoint>
722 <low_stopped_data_address>: Declare.
723 (x86_stopped_by_watchpoint): Turn into...
724 (x86_target::low_stopped_by_watchpoint): ...this.
725 (x86_stopped_data_address): Turn into...
726 (x86_target::low_stopped_data_address): ...this.
727 (the_low_target): Remove the op fields.
728 * linux-aarch64-low.cc (class aarch64_target)
729 <low_stopped_by_watchpoint>
730 <low_stopped_data_address>: Declare.
731 (aarch64_stopped_by_watchpoint): Turn into...
732 (aarch64_target::low_stopped_by_watchpoint): ...this.
733 (aarch64_stopped_data_address): Turn into...
734 (aarch64_target::low_stopped_data_address): ...this.
735 (the_low_target): Remove the op fields.
736 * linux-arm-low.cc (class arm_target) <low_stopped_by_watchpoint>
737 <low_stopped_data_address>: Declare.
738 (arm_stopped_by_watchpoint): Turn into...
739 (arm_target::low_stopped_by_watchpoint): ...this.
740 (arm_stopped_data_address): Turn into...
741 (arm_target::low_stopped_data_address): ...this.
742 (the_low_target): Remove the op fields.
743 * linux-crisv32-low.cc (class crisv32_target)
744 <low_stopped_by_watchpoint>
745 <low_stopped_data_address>: Declare.
746 (cris_stopped_by_watchpoint): Turn into...
747 (crisv32_target::low_stopped_by_watchpoint): ...this.
748 (cris_stopped_data_address): Turn into...
749 (crisv32_target::low_stopped_data_address): ...this.
750 (the_low_target): Remove the op fields.
751 * linux-mips-low.cc (class mips_target) <low_stopped_by_watchpoint>
752 <low_stopped_data_address>: Declare.
753 (mips_stopped_by_watchpoint): Turn into...
754 (mips_target::low_stopped_by_watchpoint): ...this.
755 (mips_stopped_data_address): Turn into...
756 (mips_target::low_stopped_data_address): ...this.
757 (the_low_target): Remove the op fields.
758 * linux-bfin-low.cc (the_low_target): Remove the op fields.
759 * linux-m32r-low.cc (the_low_target): Ditto.
760 * linux-m68k-low.cc (the_low_target): Ditto.
761 * linux-ppc-low.cc (the_low_target): Ditto.
762 * linux-s390-low.cc (the_low_target): Ditto.
763 * linux-sh-low.cc (the_low_target): Ditto.
764 * linux-sparc-low.cc (the_low_target): Ditto.
765 * linux-tic6x-low.cc (the_low_target): Ditto.
766 * linux-tile-low.cc (the_low_target): Ditto.
767 * linux-xtensa-low.cc (the_low_target): Ditto.
769 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
771 Turn the 'insert_point' and 'remove_point' linux target ops into
772 methods of linux_process_target.
774 * linux-low.h (struct linux_target_ops): Remove the ops.
775 (class linux_process_target) <low_insert_point>
776 <low_remove_point>: Declare.
777 * linux-low.cc (linux_process_target::low_insert_point)
778 (linux_process_target::low_remove_point): Define.
779 (linux_process_target::insert_point)
780 (linux_process_target::remove_point): Update for calls to
781 low_insert_point and low_remove_point.
782 * linux-x86-low.cc (class x86_target) <low_insert_point>
783 <low_remove_point>: Declare.
784 (x86_insert_point): Turn into...
785 (x86_target::low_insert_point): ...this.
786 (x86_remove_point): Turn into...
787 (x86_target::low_remove_point): ...this.
788 (the_low_target): Remove the op fields.
789 * linux-aarch64-low.cc (class aarch64_target) <low_insert_point>
790 <low_remove_point>: Declare.
791 (aarch64_insert_point): Turn into...
792 (aarch64_target::low_insert_point): ...this.
793 (aarch64_remove_point): Turn into...
794 (aarch64_target::low_remove_point): ...this.
795 (the_low_target): Remove the op fields.
796 * linux-arm-low.cc (class arm_target) <low_insert_point>
797 <low_remove_point>: Declare.
798 (arm_insert_point): Turn into...
799 (arm_target::low_insert_point): ...this.
800 (arm_remove_point): Turn into...
801 (arm_target::low_remove_point): ...this.
802 (the_low_target): Remove the op fields.
803 * linux-crisv32-low.cc (class crisv32_target) <low_insert_point>
804 <low_remove_point>: Declare.
805 (crisv32_insert_point): Turn into...
806 (crisv32_target::low_insert_point): ...this.
807 (crisv32_remove_point): Turn into...
808 (crisv32_target::low_remove_point): ...this.
809 (the_low_target): Remove the op fields.
810 * linux-mips-low.cc (class mips_target) <low_insert_point>
811 <low_remove_point>: Declare.
812 (mips_insert_point): Turn into...
813 (mips_target::low_insert_point): ...this.
814 (mips_remove_point): Turn into...
815 (mips_target::low_remove_point): ...this.
816 (the_low_target): Remove the op fields.
817 * linux-ppc-low.cc (class ppc_target) <low_insert_point>
818 <low_remove_point>: Declare.
819 (ppc_insert_point): Turn into...
820 (ppc_target::low_insert_point): ...this.
821 (ppc_remove_point): Turn into...
822 (ppc_target::low_remove_point): ...this.
823 (the_low_target): Remove the op fields.
824 * linux-bfin-low.cc (the_low_target): Remove the op fields.
825 * linux-m32r-low.cc (the_low_target): Ditto.
826 * linux-m68k-low.cc (the_low_target): Ditto.
827 * linux-s390-low.cc (the_low_target): Ditto.
828 * linux-sh-low.cc (the_low_target): Ditto.
829 * linux-sparc-low.cc (the_low_target): Ditto.
830 * linux-tic6x-low.cc (the_low_target): Ditto.
831 * linux-tile-low.cc (the_low_target): Ditto.
832 * linux-xtensa-low.cc (the_low_target): Ditto.
834 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
836 Remove the 'supports_z_point_type' linux target op and let the
837 concrete linux target define it by overriding the op declared in
838 process_stratum_target.
840 * linux-low.cc (linux_process_target::supports_z_point_type):
842 * linux-low.h (struct linux_target_ops): Remove the op.
843 (class linux_process_target) <supports_z_point_type>: Remove.
844 * linux-x86-low.cc (class x86_target) <supports_z_point_type>:
846 (x86_supports_z_point_type): Turn into...
847 (x86_target::supports_z_point_type): ...this.
848 (the_low_target): Remove the op field.
849 * linux-aarch64-low.cc (class aarch64_target)
850 <supports_z_point_type>: Declare.
851 (aarch64_supports_z_point_type): Turn into...
852 (aarch64_target::supports_z_point_type): ...this.
853 (the_low_target): Remove the op field.
854 * linux-arm-low.cc (class arm_target) <supports_z_point_type>:
856 (arm_supports_z_point_type): Turn into...
857 (arm_target::supports_z_point_type): ...this.
858 (the_low_target): Remove the op field.
859 * linux-crisv32-low.cc (class crisv32_target)
860 <supports_z_point_type>: Declare.
861 (cris_supports_z_point_type): Turn into...
862 (crisv32_target::supports_z_point_type): ...this.
863 (the_low_target): Remove the op field.
864 * linux-mips-low.cc (class mips_target) <supports_z_point_type>:
866 (mips_supports_z_point_type): Turn into...
867 (mips_target::supports_z_point_type): ...this.
868 (the_low_target): Remove the op field.
869 * linux-ppc-low.cc (class ppc_target) <supports_z_point_type>:
871 (ppc_supports_z_point_type): Turn into...
872 (ppc_target::supports_z_point_type): ...this.
873 (the_low_target): Remove the op field.
874 * linux-s390-low.cc (class s390_target) <supports_z_point_type>:
876 (s390_supports_z_point_type): Turn into...
877 (s390_target::supports_z_point_type): ...this.
878 (the_low_target): Remove the op field.
879 * linux-bfin-low.cc (the_low_target): Remove the op field.
880 * linux-m32r-low.cc (the_low_target): Ditto.
881 * linux-m68k-low.cc (the_low_target): Ditto.
882 * linux-sh-low.cc (the_low_target): Ditto.
883 * linux-sparc-low.cc (the_low_target): Ditto.
884 * linux-tic6x-low.cc (the_low_target): Ditto.
885 * linux-tile-low.cc (the_low_target): Ditto.
886 * linux-xtensa-low.cc (the_low_target): Ditto.
888 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
890 Turn the 'breakpoint_at' linux target op into a method of
891 linux_process_target.
893 * linux-low.h (struct linux_target_ops): Remove the op.
894 (class linux_process_target) <low_breakpoint_at>: Declare.
896 Update the callers below:
898 * linux-low.cc (linux_process_target::save_stop_reason)
899 (linux_process_target::thread_still_has_status_pending)
900 (linux_process_target::wait_1)
902 * linux-x86-low.cc (class x86_target)
903 <low_breakpoint_at>: Declare.
904 (x86_breakpoint_at): Turn into...
905 (x86_target::low_breakpoint_at): ...this.
906 (the_low_target): Remove the op field.
907 * linux-aarch64-low.cc (class aarch64_target)
908 <low_breakpoint_at>: Declare.
909 (aarch64_breakpoint_at): Turn into...
910 (aarch64_target::low_breakpoint_at): ...this.
911 (the_low_target): Remove the op field.
912 * linux-arm-low.cc (class arm_target)
913 <low_breakpoint_at>: Declare.
914 (arm_target::low_breakpoint_at): Define.
915 (the_low_target): Remove the op field.
916 * linux-bfin-low.cc (class bfin_target)
917 <low_breakpoint_at>: Declare.
918 (bfin_breakpoint_at): Turn into...
919 (bfin_target::low_breakpoint_at): ...this.
920 (the_low_target): Remove the op field.
921 * linux-cris-low.cc (class cris_target)
922 <low_breakpoint_at>: Declare.
923 (cris_breakpoint_at): Turn into...
924 (cris_target::low_breakpoint_at): ...this.
925 (the_low_target): Remove the op field.
926 * linux-crisv32-low.cc (class crisv32_target)
927 <low_breakpoint_at>: Declare.
928 (crisv32_breakpoint_at): Turn into...
929 (crisv32_target::low_breakpoint_at): ...this.
930 (the_low_target): Remove the op field.
931 * linux-ia64-low.cc (class ia64_target)
932 <low_breakpoint_at>: Declare.
933 (ia64_target::low_breakpoint_at): Define.
934 * linux-m32r-low.cc (class m32r_target)
935 <low_breakpoint_at>: Declare.
936 (m32r_breakpoint_at): Turn into...
937 (m32r_target::low_breakpoint_at): ...this.
938 (the_low_target): Remove the op field.
939 * linux-m68k-low.cc (class m68k_target)
940 <low_breakpoint_at>: Declare.
941 (m68k_breakpoint_at): Turn into...
942 (m68k_target::low_breakpoint_at): ...this.
943 (the_low_target): Remove the op field.
944 * linux-mips-low.cc (class mips_target)
945 <low_breakpoint_at>: Declare.
946 (mips_breakpoint_at): Turn into...
947 (mips_target::low_breakpoint_at): ...this.
948 (the_low_target): Remove the op field.
949 * linux-nios2-low.cc (class nios2_target)
950 <low_breakpoint_at>: Declare.
951 (nios2_breakpoint_at): Turn into...
952 (nios2_target::low_breakpoint_at): ...this.
953 (the_low_target): Remove the op field.
954 * linux-ppc-low.cc (class ppc_target)
955 <low_breakpoint_at>: Declare.
956 (ppc_breakpoint_at): Turn into...
957 (ppc_target::low_breakpoint_at): ...this.
958 (the_low_target): Remove the op field.
959 * linux-riscv-low.cc (class riscv_target)
960 <low_breakpoint_at>: Declare.
961 (riscv_breakpoint_at): Turn into...
962 (riscv_target::low_breakpoint_at): ...this.
963 (the_low_target): Remove the op field.
964 * linux-s390-low.cc (class s390_target)
965 <low_breakpoint_at>: Declare.
966 (s390_breakpoint_at): Turn into...
967 (s390_target::low_breakpoint_at): ...this.
968 (the_low_target): Remove the op field.
969 * linux-sh-low.cc (class sh_target)
970 <low_breakpoint_at>: Declare.
971 (sh_breakpoint_at): Turn into...
972 (sh_target::low_breakpoint_at): ...this.
973 (the_low_target): Remove the op field.
974 * linux-sparc-low.cc (class sparc_target)
975 <low_breakpoint_at>: Declare.
976 (sparc_breakpoint_at): Turn into...
977 (sparc_target::low_breakpoint_at): ...this.
978 (the_low_target): Remove the op field.
979 * linux-tic6x-low.cc (class tic6x_target)
980 <low_breakpoint_at>: Declare.
981 (tic6x_breakpoint_at): Turn into...
982 (tic6x_target::low_breakpoint_at): ...this.
983 (the_low_target): Remove the op field.
984 * linux-tile-low.cc (class tile_target)
985 <low_breakpoint_at>: Declare.
986 (tile_breakpoint_at): Turn into...
987 (tile_target::low_breakpoint_at): ...this.
988 (the_low_target): Remove the op field.
989 * linux-xtensa-low.cc (class xtensa_target)
990 <low_breakpoint_at>: Declare.
991 (xtensa_breakpoint_at): Turn into...
992 (xtensa_target::low_breakpoint_at): ...this.
993 (the_low_target): Remove the op field.
995 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
997 Turn the 'decr_pc_after_break' linux_target_ops field into
998 a method of linux_process_target.
1000 * linux-low.h (struct linux_target_ops)
1001 <decr_pc_after_break>: Remove.
1002 (class linux_process_target) <low_decr_pc_after_break>: New method
1004 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
1005 New method implementation.
1007 Update the users below.
1009 (linux_process_target::save_stop_reason)
1010 (linux_process_target::wait_1)
1011 * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
1013 (x86_target::low_decr_pc_after_break): New method implementation.
1014 (the_low_target): Remove the field.
1015 * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
1017 (bfin_target::low_decr_pc_after_break): New method implementation.
1018 (the_low_target): Remove the field.
1019 * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
1021 (m68k_target::low_decr_pc_after_break): New method implementation.
1022 (the_low_target): Remove the field.
1023 * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
1025 (s390_target::low_decr_pc_after_break): New method implementation.
1026 (the_low_target): Remove the field.
1027 * linux-aarch64-low.cc (the_low_target): Remove the field.
1028 * linux-arm-low.cc (the_low_target): Remove the field.
1029 * linux-cris-low.cc (the_low_target): Remove the field.
1030 * linux-crisv32-low.cc (the_low_target): Remove the field.
1031 * linux-m32r-low.cc (the_low_target): Remove the field.
1032 * linux-mips-low.cc (the_low_target): Remove the field.
1033 * linux-nios2-low.cc (the_low_target): Remove the field.
1034 * linux-ppc-low.cc (the_low_target): Remove the field.
1035 * linux-riscv-low.cc (the_low_target): Remove the field.
1036 * linux-sh-low.cc (the_low_target): Remove the field.
1037 * linux-sparc-low.cc (the_low_target): Remove the field.
1038 * linux-tic6x-low.cc (the_low_target): Remove the field.
1039 * linux-tile-low.cc (the_low_target): Remove the field.
1040 * linux-xtensa-low.cc (the_low_target): Remove the field.
1042 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1044 Remove the 'supports_software_single_step' linux target op and let
1045 the concrete linux target define it by overriding the op in
1046 process_stratum_target.
1047 Turn the 'get_next_pcs' linux target op into a method of
1048 linux_process_target.
1050 * linux-low.h (struct linux_target_ops): Remove the ops.
1051 (class linux_process_target) <supports_software_single_step>:
1053 <low_get_next_pcs>: Declare.
1054 * linux-low.cc (can_software_single_step): Remove.
1055 (linux_process_target::low_get_next_pcs): Define.
1056 (linux_process_target::supports_software_single_step): Remove.
1058 Update the callers below.
1060 (linux_process_target::handle_extended_wait)
1061 (linux_process_target::wait_1)
1062 (linux_process_target::install_software_single_step_breakpoints)
1063 (linux_process_target::single_step)
1064 (linux_process_target::thread_needs_step_over)
1065 (linux_process_target::proceed_one_lwp)
1066 (linux_process_target::supports_range_stepping)
1068 * linux-x86-low.cc (the_low_target): Remove the op field.
1069 * linux-aarch64-low.cc (the_low_target): Ditto.
1070 * linux-bfin-low.cc (the_low_target): Ditto.
1071 * linux-cris-low.cc (the_low_target): Ditto.
1072 * linux-crisv32-low.cc (the_low_target): Ditto.
1073 * linux-m32r-low.cc (the_low_target): Ditto.
1074 * linux-m68k-low.cc (the_low_target): Ditto.
1075 * linux-mips-low.cc (the_low_target): Ditto.
1076 * linux-nios2-low.cc (the_low_target): Ditto.
1077 * linux-ppc-low.cc (the_low_target): Ditto.
1078 * linux-riscv-low.cc (the_low_target): Ditto.
1079 * linux-s390-low.cc (the_low_target): Ditto.
1080 * linux-sh-low.cc (the_low_target): Ditto.
1081 * linux-sparc-low.cc (the_low_target): Ditto.
1082 * linux-tic6x-low.cc (the_low_target): Ditto.
1083 * linux-tile-low.cc (the_low_target): Ditto.
1084 * linux-xtensa-low.cc (the_low_target): Ditto.
1085 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
1086 <supports_software_single_step>: Declare.
1087 (arm_target::supports_software_single_step): Define.
1088 (arm_gdbserver_get_next_pcs): Turn into...
1089 (arm_target::low_get_next_pcs): ...this.
1090 (the_low_target): Remove the op field.
1092 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1094 Remove the 'sw_breakpoint_from_kind' linux target op, and let
1095 the concrete linux target define it by overriding the op
1096 in process_stratum_target.
1098 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
1100 * linux-low.h (struct linux_target_ops): Remove the op.
1101 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
1102 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
1104 (x86_sw_breakpoint_from_kind): Turn into...
1105 (x86_target::sw_breakpoint_from_kind): ...this.
1106 (the_low_target): Remove the op field.
1107 * linux-aarch64-low.cc (class aarch64_target)
1108 <sw_breakpoint_from_kind>: Declare.
1109 (aarch64_sw_breakpoint_from_kind): Turn into...
1110 (aarch64_target::sw_breakpoint_from_kind): ...this.
1111 (the_low_target): Remove the op field.
1112 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
1114 (arm_target::sw_breakpoint_from_kind): Define.
1115 (the_low_target): Remove the op field.
1116 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
1118 (bfin_sw_breakpoint_from_kind): Turn into...
1119 (bfin_target::sw_breakpoint_from_kind): ...this.
1120 (the_low_target): Remove the op field.
1121 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
1123 (cris_sw_breakpoint_from_kind): Turn into...
1124 (cris_target::sw_breakpoint_from_kind): ...this.
1125 (the_low_target): Remove the op field.
1126 * linux-crisv32-low.cc (class crisv32_target)
1127 <sw_breakpoint_from_kind>: Declare.
1128 (cris_sw_breakpoint_from_kind): Turn into...
1129 (crisv32_target::sw_breakpoint_from_kind): ...this.
1130 (the_low_target): Remove the op field.
1131 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
1133 (ia64_target::sw_breakpoint_from_kind): Define.
1134 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
1136 (m32r_sw_breakpoint_from_kind): Turn into...
1137 (m32r_target::sw_breakpoint_from_kind): ...this.
1138 (the_low_target): Remove the op field.
1139 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
1141 (m68k_sw_breakpoint_from_kind): Turn into...
1142 (m68k_target::sw_breakpoint_from_kind): ...this.
1143 (the_low_target): Remove the op field.
1144 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
1146 (mips_sw_breakpoint_from_kind): Turn into...
1147 (mips_target::sw_breakpoint_from_kind): ...this.
1148 (the_low_target): Remove the op field.
1149 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
1151 (nios2_sw_breakpoint_from_kind): Turn into...
1152 (nios2_target::sw_breakpoint_from_kind): ...this.
1153 (the_low_target): Remove the op field.
1154 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
1156 (ppc_sw_breakpoint_from_kind): Turn into...
1157 (ppc_target::sw_breakpoint_from_kind): ...this.
1158 (the_low_target): Remove the op field.
1159 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
1161 (riscv_sw_breakpoint_from_kind): Turn into...
1162 (riscv_target::sw_breakpoint_from_kind): ...this.
1163 (the_low_target): Remove the op field.
1164 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
1166 (s390_sw_breakpoint_from_kind): Turn into...
1167 (s390_target::sw_breakpoint_from_kind): ...this.
1168 (the_low_target): Remove the op field.
1169 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
1171 (sh_sw_breakpoint_from_kind): Turn into...
1172 (sh_target::sw_breakpoint_from_kind): ...this.
1173 (the_low_target): Remove the op field.
1174 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
1176 (sparc_sw_breakpoint_from_kind): Turn into...
1177 (sparc_target::sw_breakpoint_from_kind): ...this.
1178 (the_low_target): Remove the op field.
1179 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
1181 (tic6x_sw_breakpoint_from_kind): Turn into...
1182 (tic6x_target::sw_breakpoint_from_kind): ...this.
1183 (the_low_target): Remove the op field.
1184 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
1186 (tile_sw_breakpoint_from_kind): Turn into...
1187 (tile_target::sw_breakpoint_from_kind): ...this.
1188 (the_low_target): Remove the op field.
1189 * linux-xtensa-low.cc (class xtensa_target)
1190 <sw_breakpoint_from_kind>: Declare.
1191 (xtensa_sw_breakpoint_from_kind): Turn into...
1192 (xtensa_target::sw_breakpoint_from_kind): ...this.
1193 (the_low_target): Remove the op field.
1195 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1197 Remove the 'breakpoint_kind_from_pc' and
1198 'breakpoint_kind_from_current_state' linux target ops, and let the
1199 concrete linux target define them by overriding the ops of
1200 process_stratum_target.
1202 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
1204 (linux_process_target::breakpoint_kind_from_current_state): Remove.
1205 * linux-low.h (struct linux_target_ops): Remove ops.
1206 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
1207 <breakpoint_kind_from_current_state>: Remove.
1208 * linux-x86-low.cc (the_low_target): Remove the op fields.
1209 * linux-bfin-low.cc (the_low_target): Ditto.
1210 * linux-cris-low.cc (the_low_target): Ditto.
1211 * linux-crisv32-low.cc (the_low_target): Ditto.
1212 * linux-m32r-low.cc (the_low_target): Ditto.
1213 * linux-m68k-low.cc (the_low_target): Ditto.
1214 * linux-mips-low.cc (the_low_target): Ditto.
1215 * linux-nios2-low.cc (the_low_target): Ditto.
1216 * linux-ppc-low.cc (the_low_target): Ditto.
1217 * linux-s390-low.cc (the_low_target): Ditto.
1218 * linux-sh-low.cc (the_low_target): Ditto.
1219 * linux-sparc-low.cc (the_low_target): Ditto.
1220 * linux-tic6x-low.cc (the_low_target): Ditto.
1221 * linux-tile-low.cc (the_low_target): Ditto.
1222 * linux-xtensa-low.cc (the_low_target): Ditto.
1223 * linux-aarch64-low.cc (class aarch64_target)
1224 <breakpoint_kind_from_pc>
1225 <breakpoint_kind_from_current_state>: Declare.
1226 (aarch64_breakpoint_kind_from_pc): Turn into...
1227 (aarch64_target::breakpoint_kind_from_pc): ...this.
1228 (aarch64_breakpoint_kind_from_current_state): Turn into...
1229 (aarch64_target::breakpoint_kind_from_current_state): ...this.
1230 (the_low_target): Remove the op fields.
1231 * linux-arm-low.cc (class arm_target):
1232 <breakpoint_kind_from_pc>
1233 <breakpoint_kind_from_current_state>: Declare.
1234 (arm_target::breakpoint_kind_from_pc): Define.
1235 (arm_target::breakpoint_kind_from_current_state): Define.
1236 (the_low_target): Remove the op fields.
1237 * linux-riscv-low.cc (class riscv_target):
1238 <breakpoint_kind_from_pc>: Declare.
1239 (riscv_breakpoint_kind_from_pc): Turn into...
1240 (riscv_target::breakpoint_kind_from_pc): ...this.
1241 (the_low_target): Remove the op fields.
1243 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1245 Turn the 'get_pc' and 'set_pc' linux target ops into methods
1246 of linux_process_target.
1248 * linux-low.h (struct linux_target_ops): Remove the ops.
1249 (class linux_process_target) <low_supports_breakpoints>
1251 <low_set_pc>: Declare.
1252 * linux-low.cc (supports_breakpoints): Turn into...
1253 (linux_process_target::low_supports_breakpoints): ...this.
1254 (linux_process_target::low_get_pc): Define.
1255 (linux_process_target::low_set_pc): Define.
1257 Update the callers below.
1259 (linux_process_target::get_pc)
1260 (linux_process_target::save_stop_reason)
1261 (linux_process_target::maybe_move_out_of_jump_pad)
1262 (linux_process_target::wait_1)
1263 (linux_process_target::resume_one_lwp_throw)
1264 (linux_process_target::resume)
1265 (linux_process_target::proceed_all_lwps)
1266 (linux_process_target::read_pc)
1267 (linux_process_target::write_pc)
1269 * linux-x86-low.cc (class linux_process_target)
1270 <low_supports_breakpoints>
1272 <low_set_pc>: Declare.
1273 (x86_target::low_supports_breakpoints): Define.
1274 (x86_get_pc): Turn into...
1275 (x86_target::low_get_pc): ...this.
1276 (x86_set_pc): Turn into...
1277 (x86_target::low_set_pc): ...this.
1278 (the_low_target): Remove the op fields.
1279 * linux-arm-low.cc (class arm_target)
1280 <low_supports_breakpoints>
1282 <low_set_pc>: Declare.
1283 (arm_target::low_supports_breakpoints)
1284 (arm_target::low_get_pc)
1285 (arm_target::low_set_pc): Define.
1286 (the_low_target): Remove the op fields.
1287 * linux-bfin-low.cc (class bfin_target)
1288 <low_supports_breakpoints>
1290 <low_set_pc>: Declare.
1291 (bfin_target::low_supports_breakpoints)
1292 (bfin_target::low_get_pc)
1293 (bfin_target::low_set_pc): Define.
1294 (the_low_target): Remove the op fields.
1295 * linux-cris-low.cc (class cris_target)
1296 <low_supports_breakpoints>
1298 <low_set_pc>: Declare.
1299 (cris_target::low_supports_breakpoints)
1300 (cris_target::low_get_pc)
1301 (cris_target::low_set_pc): Define.
1302 (the_low_target): Remove the op fields.
1303 * linux-crisv32-low.cc (class crisv32_target)
1304 <low_supports_breakpoints>
1306 <low_set_pc>: Declare.
1307 (crisv32_target::low_supports_breakpoints)
1308 (crisv32_target::low_get_pc)
1309 (crisv32_target::low_set_pc): Define.
1310 (the_low_target): Remove the op fields.
1311 * linux-m32r-low.cc (class m32r_target)
1312 <low_supports_breakpoints>
1314 <low_set_pc>: Declare.
1315 (m32r_target::low_supports_breakpoints)
1316 (m32r_target::low_get_pc)
1317 (m32r_target::low_set_pc): Define.
1318 (the_low_target): Remove the op fields.
1319 * linux-m68k-low.cc (class m68k_target)
1320 <low_supports_breakpoints>
1322 <low_set_pc>: Declare.
1323 (m68k_target::low_supports_breakpoints)
1324 (m68k_target::low_get_pc)
1325 (m68k_target::low_set_pc): Define.
1326 (the_low_target): Remove the op fields.
1327 * linux-nios2-low.cc (class nios2_target)
1328 <low_supports_breakpoints>
1330 <low_set_pc>: Declare.
1331 (nios2_target::low_supports_breakpoints)
1332 (nios2_target::low_get_pc)
1333 (nios2_target::low_set_pc): Define.
1334 (the_low_target): Remove the op fields.
1335 * linux-sh-low.cc (class sh_target)
1336 <low_supports_breakpoints>
1338 <low_set_pc>: Declare.
1339 (sh_target::low_supports_breakpoints)
1340 (sh_target::low_get_pc)
1341 (sh_target::low_set_pc): Define.
1342 (the_low_target): Remove the op fields.
1343 * linux-xtensa-low.cc (class xtensa_target)
1344 <low_supports_breakpoints>
1346 <low_set_pc>: Declare.
1347 (xtensa_target::low_supports_breakpoints)
1348 (xtensa_target::low_get_pc)
1349 (xtensa_target::low_set_pc): Define.
1350 (the_low_target): Remove the op fields.
1351 * linux-sparc-low.cc (class sparc_target)
1352 <low_supports_breakpoints>
1353 <low_get_pc>: Declare.
1354 (sparc_target::low_supports_breakpoints)
1355 (sparc_target::low_get_pc): Define.
1356 (the_low_target): Remove the op fields.
1357 * linux-tile-low.cc (class tile_target)
1358 <low_supports_breakpoints>
1360 <low_set_pc>: Declare.
1361 (tile_target::low_supports_breakpoints)
1362 (tile_target::low_get_pc)
1363 (tile_target::low_set_pc): Define.
1364 (the_low_target): Remove the op fields.
1365 * linux-aarch64-low.cc (class aarch64_target)
1366 <low_supports_breakpoints>
1368 <low_set_pc>: Declare.
1369 (aarch64_target::low_supports_breakpoints): Define.
1370 (aarch64_get_pc): Turn into...
1371 (aarch64_target::low_get_pc): ...this.
1372 (aarch64_set_pc): Turn into...
1373 (aarch64_target::low_set_pc): ...this.
1374 (the_low_target): Remove the op fields.
1375 * linux-mips-low.cc (class mips_target)
1376 <low_supports_breakpoints>
1378 <low_set_pc>: Declare.
1379 (mips_target::low_supports_breakpoints): Define.
1380 (mips_get_pc): Turn into...
1381 (mips_target::low_get_pc): ...this.
1382 (mips_set_pc): Turn into...
1383 (mips_target::low_set_pc): ...this.
1384 (the_low_target): Remove the op fields.
1385 * linux-ppc-low.cc (class ppc_target)
1386 <low_supports_breakpoints>
1388 <low_set_pc>: Declare.
1389 (ppc_target::low_supports_breakpoints): Define.
1390 (ppc_get_pc): Turn into...
1391 (ppc_target::low_get_pc): ...this.
1392 (ppc_set_pc): Turn into...
1393 (ppc_target::low_set_pc): ...this.
1394 (the_low_target): Remove the op fields.
1395 * linux-riscv-low.cc (class riscv_target)
1396 <low_supports_breakpoints>
1398 <low_set_pc>: Declare.
1399 (riscv_target::low_supports_breakpoints): Define.
1400 (riscv_get_pc): Turn into...
1401 (riscv_target::low_get_pc): ...this.
1402 (riscv_set_pc): Turn into...
1403 (riscv_target::low_set_pc): ...this.
1404 (the_low_target): Remove the op fields.
1405 * linux-s390-low.cc (class s390_target)
1406 <low_supports_breakpoints>
1408 <low_set_pc>: Declare.
1409 (s390_target::low_supports_breakpoints): Define.
1410 (s390_get_pc): Turn into...
1411 (s390_target::low_get_pc): ...this.
1412 (s390_set_pc): Turn into...
1413 (s390_target::low_set_pc): ...this.
1414 (the_low_target): Remove the op fields.
1415 * linux-tic6x-low.cc (class tic6x_target)
1416 <low_supports_breakpoints>
1418 <low_set_pc>: Declare.
1419 (tic6x_target::low_supports_breakpoints): Define.
1420 (tic6x_get_pc): Turn into...
1421 (tic6x_target::low_get_pc): ...this.
1422 (tic6x_set_pc): Turn into...
1423 (tic6x_target::low_set_pc): ...this.
1424 (the_low_target): Remove the op fields.
1426 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1428 Turn some more static methods in linux-low into private methods
1429 of linux_process_target.
1431 * linux-low.cc (get_pc): Turn into...
1432 (linux_process_target::get_pc): ...this.
1433 (save_stop_reason): Turn into...
1434 (linux_process_target::save_stop_reason): ...this.
1435 (thread_still_has_status_pending_p): Turn into...
1436 (linux_process_target::thread_still_has_status_pending): ...this.
1437 (status_pending_p_callback): Turn into...
1438 (linux_process_target::status_pending_p_callback): ...this.
1439 (resume_stopped_resumed_lwps): Turn into...
1440 (linux_process_target::resume_stopped_resumed_lwps): ...this.
1441 (install_software_single_step_breakpoints): Turn into...
1442 (linux_process_target::install_software_single_step_breakpoints):
1444 (single_step): Turn into...
1445 (linux_process_target::single_step): ...this.
1446 (linux_resume_one_lwp_throw): Turn into...
1447 (linux_process_target::resume_one_lwp_throw): ...this.
1448 (linux_resume_one_lwp): Turn into...
1449 (linux_process_target::resume_one_lwp): ...this.
1450 (resume_status_pending_p): Turn into...
1451 (linux_process_target::resume_status_pending): ...this.
1452 (need_step_over_p): Turn into...
1453 (linux_process_target::thread_needs_step_over): ...this.
1454 (linux_resume_one_thread): Turn into...
1455 (linux_process_target::resume_one_thread): ...this.
1456 (proceed_one_lwp): Turn into...
1457 (linux_process_target::proceed_one_lwp): ...this.
1458 (unsuspend_and_proceed_one_lwp): Turn into...
1459 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
1461 Update the calls/references to the above functions below.
1463 (linux_process_target::handle_extended_wait)
1464 (linux_process_target::filter_event)
1465 (linux_process_target::wait_for_event_filtered)
1466 (linux_process_target::wait_1)
1467 (linux_process_target::move_out_of_jump_pad)
1468 (linux_process_target::start_step_over)
1469 (linux_process_target::resume)
1470 (linux_process_target::proceed_all_lwps)
1471 (regsets_store_inferior_registers)
1472 (linux_process_target::store_register)
1474 * linux-low.h (class linux_process_target)
1477 <thread_still_has_status_pending>
1478 <status_pending_p_callback>
1479 <resume_stopped_resumed_lwps>
1480 <install_software_single_step_breakpoints>
1482 <resume_one_lwp_throw>
1484 <resume_status_pending>
1485 <thread_needs_step_over>
1488 <unsuspend_and_proceed_one_lwp>: Declare.
1490 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1492 Turn the 'fetch_register' linux target op into a method of
1493 linux_process_target.
1495 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
1496 (class linux_process_target) <low_fetch_register>: Declare.
1497 * linux-x86-low.cc (the_low_target)
1498 * linux-aarch64-low.cc (the_low_target)
1499 * linux-arm-low.cc (the_low_target)
1500 * linux-bfin-low.cc (the_low_target)
1501 * linux-cris-low.cc (the_low_target)
1502 * linux-crisv32-low.cc (the_low_target)
1503 * linux-m32r-low.cc (the_low_target)
1504 * linux-m68k-low.cc (the_low_target)
1505 * linux-nios2-low.cc (the_low_target)
1506 * linux-ppc-low.cc (the_low_target)
1507 * linux-s390-low.cc (the_low_target)
1508 * linux-sh-low.cc (the_low_target)
1509 * linux-sparc-low.cc (the_low_target)
1510 * linux-tic6x-low.cc (the_low_target)
1511 * linux-tile-low.cc (the_low_target)
1512 * linux-xtensa-low.cc (the_low_target): Remove the op field.
1513 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
1515 (ia64_fetch_register): Turn into...
1516 (ia64_target::low_fetch_register): ...this.
1517 (the_low_target): Remove the op field.
1518 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
1520 (mips_fetch_register): Turn into...
1521 (mips_target::low_fetch_register): ...this.
1522 (the_low_target): Remove the op field.
1523 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
1525 (riscv_fetch_register): Turn into...
1526 (riscv_target::low_fetch_register): ...this.
1527 (the_low_target): Remove the op field.
1529 Update the callers below.
1531 * linux-low.cc (linux_process_target::fetch_registers)
1532 (linux_process_target::low_fetch_register)
1534 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1536 Turn the 'cannot_fetch_register' and 'cannot_store_register'
1537 linux target ops into methods of linux_process_target.
1539 * linux-low.h (struct linux_target_ops): Remove the low target ops.
1540 (class linux_process_target) <fetch_register>
1542 <usr_fetch_inferior_registers>
1543 <usr_store_inferior_registers>
1544 <low_cannot_fetch_register>
1545 <low_cannot_fetch_register> Declare.
1546 * linux-low.cc (fetch_register): Turn into...
1547 (linux_process_target::fetch_register): ...this.
1548 (store_register): Turn into ...
1549 (linux_process_target::store_register): ...this.
1550 (usr_fetch_inferior_registers): Turn into...
1551 (linux_process_target::usr_fetch_inferior_registers): ...this.
1552 (usr_store_inferior_registers): Turn into...
1553 (linux_process_target::usr_store_inferior_registers): ...this.
1554 * linux-x86-low.cc (class x86_target)
1555 <low_cannot_fetch_register>
1556 <low_cannot_store_register>: Declare.
1557 (x86_cannot_store_register): Turn into...
1558 (x86_target::low_cannot_store_register): ...this.
1559 (x86_cannot_fetch_register): Turn into...
1560 (x86_target::low_cannot_fetch_register): ...this.
1561 (the_low_target): Remove the target op fields.
1562 * linux-aarch64-low.cc (class aarch64_target)
1563 <low_cannot_fetch_register>
1564 <low_cannot_store_register>: Declare.
1565 (aarch64_target::low_cannot_fetch_register)
1566 (aarch64_target::low_cannot_store_register): Define.
1567 (the_low_target): Remove the op fields.
1568 * linux-arm-low.cc (class arm_target)
1569 <low_cannot_fetch_register>
1570 <low_cannot_store_register>: Declare.
1571 (arm_cannot_fetch_register): Turn into...
1572 (arm_target::low_cannot_fetch_register): ...this.
1573 (arm_cannot_store_register): Turn into...
1574 (arm_target::low_cannot_store_register): ...this.
1575 (the_low_target): Remove the op fields.
1576 * linux-bfin-low.cc (class bfin_target)
1577 <low_cannot_fetch_register>
1578 <low_cannot_store_register>: Declare.
1579 (bfin_cannot_fetch_register): Turn into...
1580 (bfin_target::low_cannot_fetch_register): ...this.
1581 (bfin_cannot_store_register): Turn into...
1582 (bfin_target::low_cannot_store_register): ...this.
1583 (the_low_target): Remove the op fields.
1584 * linux-cris-low.cc (class cris_target)
1585 <low_cannot_fetch_register>
1586 <low_cannot_store_register>: Declare.
1587 (cris_cannot_fetch_register): Turn into...
1588 (cris_target::low_cannot_fetch_register): ...this.
1589 (cris_cannot_store_register): Turn into...
1590 (cris_target::low_cannot_store_register): ...this.
1591 (the_low_target): Remove the op fields.
1592 * linux-crisv32-low.cc (class crisv32_target)
1593 <low_cannot_fetch_register>
1594 <low_cannot_store_register>: Declare.
1595 (crisv32_target::low_cannot_fetch_register)
1596 (crisv32_target::low_cannot_store_register): Define.
1597 (the_low_target): Remove the op fields.
1598 * linux-ia64-low.cc (class ia64_target)
1599 <low_cannot_fetch_register>
1600 <low_cannot_store_register>: Declare.
1601 (ia64_cannot_fetch_register): Turn into...
1602 (ia64_target::low_cannot_fetch_register): ...this.
1603 (ia64_cannot_store_register): Turn into...
1604 (ia64_target::low_cannot_store_register): ...this.
1605 (the_low_target): Remove the op fields.
1606 * linux-m32r-low.cc (class m32r_target)
1607 <low_cannot_fetch_register>
1608 <low_cannot_store_register>: Declare.
1609 (m32r_cannot_fetch_register): Turn into...
1610 (m32r_target::low_cannot_fetch_register): ...this.
1611 (m32r_cannot_store_register): Turn into...
1612 (m32r_target::low_cannot_store_register): ...this.
1613 (the_low_target): Remove the op fields.
1614 * linux-m68k-low.cc (class m68k_target)
1615 <low_cannot_fetch_register>
1616 <low_cannot_store_register>: Declare.
1617 (m68k_cannot_fetch_register): Turn into...
1618 (m68k_target::low_cannot_fetch_register): ...this.
1619 (m68k_cannot_store_register): Turn into...
1620 (m68k_target::low_cannot_store_register): ...this.
1621 (the_low_target): Remove the op fields.
1622 * linux-mips-low.cc (class mips_target)
1623 <low_cannot_fetch_register>
1624 <low_cannot_store_register>: Declare.
1625 (mips_cannot_fetch_register): Turn into...
1626 (mips_target::low_cannot_fetch_register): ...this.
1627 (mips_cannot_store_register): Turn into...
1628 (mips_target::low_cannot_store_register): ...this.
1629 (get_usrregs_info): Inline at the call sites in
1630 low_cannot_fetch_register and low_cannot_store_register,
1632 (the_low_target): Remove the op fields.
1633 * linux-nios2-low.cc (class nios2_target)
1634 <low_cannot_fetch_register>
1635 <low_cannot_store_register>: Declare.
1636 (nios2_cannot_fetch_register): Turn into...
1637 (nios2_target::low_cannot_fetch_register): ...this.
1638 (nios2_cannot_store_register): Turn into...
1639 (nios2_target::low_cannot_store_register): ...this.
1640 (the_low_target): Remove the op fields.
1641 * linux-ppc-low.cc (class ppc_target)
1642 <low_cannot_fetch_register>
1643 <low_cannot_store_register>: Declare.
1644 (ppc_cannot_fetch_register): Turn into...
1645 (ppc_target::low_cannot_fetch_register): ...this.
1646 (ppc_cannot_store_register): Turn into...
1647 (ppc_target::low_cannot_store_register): ...this.
1648 (the_low_target): Remove the op fields.
1649 * linux-riscv-low.cc (class riscv_target)
1650 <low_cannot_fetch_register>
1651 <low_cannot_store_register>: Declare.
1652 (riscv_target::low_cannot_fetch_register)
1653 (riscv_target::low_cannot_store_register): Define.
1654 (the_low_target): Remove the op fields.
1655 * linux-s390-low.cc (class s390_target)
1656 <low_cannot_fetch_register>
1657 <low_cannot_store_register>: Declare.
1658 (s390_cannot_fetch_register): Turn into...
1659 (s390_target::low_cannot_fetch_register): ...this.
1660 (s390_cannot_store_register): Turn into...
1661 (s390_target::low_cannot_store_register): ...this.
1662 (the_low_target): Remove the op fields.
1663 * linux-sh-low.cc (class sh_target)
1664 <low_cannot_fetch_register>
1665 <low_cannot_store_register>: Declare.
1666 (sh_cannot_fetch_register): Turn into...
1667 (sh_target::low_cannot_fetch_register): ...this.
1668 (sh_cannot_store_register): Turn into...
1669 (sh_target::low_cannot_store_register): ...this.
1670 (the_low_target): Remove the op fields.
1671 * linux-sparc-low.cc (class sparc_target)
1672 <low_cannot_fetch_register>
1673 <low_cannot_store_register>: Declare.
1674 (sparc_cannot_fetch_register): Turn into...
1675 (sparc_target::low_cannot_fetch_register): ...this.
1676 (sparc_cannot_store_register): Turn into...
1677 (sparc_target::low_cannot_store_register): ...this.
1678 (the_low_target): Remove the op fields.
1679 * linux-tic6x-low.cc (class tic6x_target)
1680 <low_cannot_fetch_register>
1681 <low_cannot_store_register>: Declare.
1682 (tic6x_cannot_fetch_register): Turn into...
1683 (tic6x_target::low_cannot_fetch_register): ...this.
1684 (tic6x_cannot_store_register): Turn into...
1685 (tic6x_target::low_cannot_store_register): ...this.
1686 (the_low_target): Remove the op fields.
1687 * linux-tile-low.cc (class tile_target)
1688 <low_cannot_fetch_register>
1689 <low_cannot_store_register>: Declare.
1690 (tile_cannot_fetch_register): Turn into...
1691 (tile_target::low_cannot_fetch_register): ...this.
1692 (tile_cannot_store_register): Turn into...
1693 (tile_target::low_cannot_store_register): ...this.
1694 (the_low_target): Remove the op fields.
1695 * linux-xtensa-low.cc (class xtensa_target)
1696 <low_cannot_fetch_register>
1697 <low_cannot_store_register>: Declare.
1698 (xtensa_target::low_cannot_fetch_register)
1699 (xtensa_target::low_cannot_store_register): Define.
1700 (the_low_target): Remove the op fields.
1702 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1704 Turn the 'regs_info' linux target op into a method of
1705 linux_process_target.
1707 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
1708 (class linux_process_target) <get_regs_info>: Define.
1710 Update the callers below.
1712 * linux-low.cc (linux_process_target::fetch_registers)
1713 (linux_process_target::store_registers)
1714 * proc-service.cc (gregset_info)
1716 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
1717 (x86_linux_regs_info): Turn into ...
1718 (x86_target::get_regs_info): ...this.
1719 (the_low_target): Remove the op field.
1720 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
1722 (aarch64_regs_info): Turn into ...
1723 (aarch64_target::get_regs_info): ...this.
1724 (the_low_target): Remove the op field.
1725 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
1726 (arm_regs_info): Turn into ...
1727 (arm_target::get_regs_info): ...this.
1728 (the_low_target): Remove the op field.
1729 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
1730 (bfin_regs_info): Turn into ...
1731 (bfin_target::get_regs_info): ...this.
1732 (the_low_target): Remove the op field.
1733 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
1734 (cris_regs_info): Turn into ...
1735 (cris_target::get_regs_info): ...this.
1736 (the_low_target): Remove the op field.
1737 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
1739 (crisv32_regs_info): Turn into ...
1740 (crisv32_target::get_regs_info): ...this.
1741 (the_low_target): Remove the op field.
1742 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
1743 (ia64_regs_info): Turn into ...
1744 (ia64_target::get_regs_info): ...this.
1745 (the_low_target): Remove the op field.
1746 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
1747 (m32r_regs_info): Turn into ...
1748 (m32r_target::get_regs_info): ...this.
1749 (the_low_target): Remove the op field.
1750 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
1751 (m68k_regs_info): Turn into ...
1752 (m68k_target::get_regs_info): ...this.
1753 (the_low_target): Remove the op field.
1754 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
1755 (mips_regs_info): Turn into ...
1756 (mips_target::get_regs_info): ...this.
1757 (the_low_target): Remove the op field.
1758 (get_usrregs_info): Update the call to the op.
1759 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
1760 (nios2_regs_info): Turn into ...
1761 (nios2_target::get_regs_info): ...this.
1762 (the_low_target): Remove the op field.
1763 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
1764 (ppc_regs_info): Turn into ...
1765 (ppc_target::get_regs_info): ...this.
1766 (the_low_target): Remove the op field.
1767 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
1768 (riscv_regs_info): Turn into ...
1769 (riscv_target::get_regs_info): ...this.
1770 (the_low_target): Remove the op field.
1771 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
1772 (s390_regs_info): Turn into ...
1773 (s390_target::get_regs_info): ...this.
1774 (the_low_target): Remove the op field.
1775 (s390_collect_ptrace_register)
1776 (s390_supply_ptrace_register)
1777 (s390_fill_gregset): Update the call to the op.
1778 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
1779 (sh_regs_info): Turn into ...
1780 (sh_target::get_regs_info): ...this.
1781 (the_low_target): Remove the op field.
1782 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
1783 (sparc_regs_info): Turn into ...
1784 (sparc_target::get_regs_info): ...this.
1785 (the_low_target): Remove the op field.
1786 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
1787 (tic6x_regs_info): Turn into ...
1788 (tic6x_target::get_regs_info): ...this.
1789 (the_low_target): Remove the op field.
1790 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
1791 (tile_regs_info): Turn into ...
1792 (tile_target::get_regs_info): ...this.
1793 (the_low_target): Remove the op field.
1794 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
1796 (xtensa_regs_info): Turn into ...
1797 (xtensa_target::get_regs_info): ...this.
1798 (the_low_target): Remove the op field.
1800 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1802 Turn the 'arch_setup' linux target op into a method of
1803 linux_process_target.
1805 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
1806 (class linux_process_target) <arch_setup_thread>
1807 <low_arch_setup>: New declarations.
1808 * linux-low.cc (linux_arch_setup): Delete.
1809 (linux_arch_setup_thread): Turn into...
1810 (linux_process_target::arch_setup_thread): ... this.
1812 Update the callers below.
1814 (linux_process_target::handle_extended_wait)
1815 (linux_process_target::post_create_inferior)
1816 (linux_process_target::filter_event)
1818 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
1820 (x86_linux_update_xmltarget): Turn into...
1821 (x86_target::update_xmltarget): ...this.
1822 (x86_linux_process_qsupported): Update the call to
1823 x86_linux_update_xmltarget.
1824 (x86_arch_setup): Turn into ...
1825 (x86_target::low_arch_setup): ...this.
1826 (the_low_target): Remove the op field.
1827 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
1829 (aarch64_arch_setup): Turn into ...
1830 (aarch64_target::low_arch_setup): ...this.
1831 (the_low_target): Remove the op field.
1832 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
1834 (arm_arch_setup): Turn into ...
1835 (arm_target::low_arch_setup): ...this.
1836 (the_low_target): Remove the op field.
1837 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
1839 (bfin_arch_setup): Turn into ...
1840 (bfin_target::low_arch_setup): ...this.
1841 (the_low_target): Remove the op field.
1842 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
1844 (cris_arch_setup): Turn into ...
1845 (cris_target::low_arch_setup): ...this.
1846 (the_low_target): Remove the op field.
1847 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
1849 (crisv32_arch_setup): Turn into ...
1850 (crisv32_target::low_arch_setup): ...this.
1851 (the_low_target): Remove the op field.
1852 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
1854 (ia64_arch_setup): Turn into ...
1855 (ia64_target::low_arch_setup): ...this.
1856 (the_low_target): Remove the op field.
1857 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
1859 (m32r_arch_setup): Turn into ...
1860 (m32r_target::low_arch_setup): ...this.
1861 (the_low_target): Remove the op field.
1862 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
1864 (m68k_arch_setup): Turn into ...
1865 (m68k_target::low_arch_setup): ...this.
1866 (the_low_target): Remove the op field.
1867 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
1869 (mips_arch_setup): Turn into ...
1870 (mips_target::low_arch_setup): ...this.
1871 (the_low_target): Remove the op field.
1872 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
1874 (nios2_arch_setup): Turn into ...
1875 (nios2_target::low_arch_setup): ...this.
1876 (the_low_target): Remove the op field.
1877 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
1879 (ppc_arch_setup): Turn into ...
1880 (ppc_target::low_arch_setup): ...this.
1881 (the_low_target): Remove the op field.
1882 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
1884 (riscv_arch_setup): Turn into ...
1885 (riscv_target::low_arch_setup): ...this.
1886 (the_low_target): Remove the op field.
1887 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
1889 (s390_arch_setup): Turn into ...
1890 (s390_target::low_arch_setup): ...this.
1891 (the_low_target): Remove the op field.
1892 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
1894 (sh_arch_setup): Turn into ...
1895 (sh_target::low_arch_setup): ...this.
1896 (the_low_target): Remove the op field.
1897 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
1899 (sparc_arch_setup): Turn into ...
1900 (sparc_target::low_arch_setup): ...this.
1901 (the_low_target): Remove the op field.
1902 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
1904 (tic6x_arch_setup): Turn into ...
1905 (tic6x_target::low_arch_setup): ...this.
1906 (the_low_target): Remove the op field.
1907 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
1909 (tile_arch_setup): Turn into ...
1910 (tile_target::low_arch_setup): ...this.
1911 (the_low_target): Remove the op field.
1912 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
1914 (xtensa_arch_setup): Turn into ...
1915 (xtensa_target::low_arch_setup): ...this.
1916 (the_low_target): Remove the op field.
1918 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1920 * linux-low.h (the_linux_target): New extern declaration.
1921 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
1923 (the_linux_target): Remove.
1924 * linux-x86-low.cc (class x86_target): New class.
1925 (the_x86_target): New static object.
1926 (the_linux_target): Define as pointer to the_x86_target.
1927 * linux-aarch64-low.cc (class aarch64_target): New class.
1928 (the_aarch64_target): New static object.
1929 (the_linux_target): Define as pointer to the_aarch64_target.
1930 * linux-arm-low.cc (class arm_target): New class.
1931 (the_arm_target): New static object.
1932 (the_linux_target): Define as pointer to the_arm_target.
1933 * linux-bfin-low.cc (class bfin_target): New class.
1934 (the_bfin_target): New static object.
1935 (the_linux_target): Define as pointer to the_bfin_target.
1936 * linux-cris-low.cc (class cris_target): New class.
1937 (the_cris_target): New static object.
1938 (the_linux_target): Define as pointer to the_cris_target.
1939 * linux-crisv32-low.cc (class crisv32_target): New class.
1940 (the_crisv32_target): New static object.
1941 (the_linux_target): Define as pointer to the_crisv32_target.
1942 * linux-ia64-low.cc (class ia64_target): New class.
1943 (the_ia64_target): New static object.
1944 (the_linux_target): Define as pointer to the_ia64_target.
1945 * linux-m32r-low.cc (class m32r_target): New class.
1946 (the_m32r_target): New static object.
1947 (the_linux_target): Define as pointer to the_m32r_target.
1948 * linux-m68k-low.cc (class m68k_target): New class.
1949 (the_m68k_target): New static object.
1950 (the_linux_target): Define as pointer to the_m68k_target.
1951 * linux-mips-low.cc (class mips_target): New class.
1952 (the_mips_target): New static object.
1953 (the_linux_target): Define as pointer to the_mips_target.
1954 * linux-nios2-low.cc (class nios2_target): New class.
1955 (the_nios2_target): New static object.
1956 (the_linux_target): Define as pointer to the_nios2_target.
1957 * linux-ppc-low.cc (class ppc_target): New class.
1958 (the_ppc_target): New static object.
1959 (the_linux_target): Define as pointer to the_ppc_target.
1960 * linux-riscv-low.cc (class riscv_target): New class.
1961 (the_riscv_target): New static object.
1962 (the_linux_target): Define as pointer to the_riscv_target.
1963 * linux-s390-low.cc (class s390_target): New class.
1964 (the_s390_target): New static object.
1965 (the_linux_target): Define as pointer to the_s390_target.
1966 * linux-sh-low.cc (class sh_target): New class.
1967 (the_sh_target): New static object.
1968 (the_linux_target): Define as pointer to the_sh_target.
1969 * linux-sparc-low.cc (class sparc_target): New class.
1970 (the_sparc_target): New static object.
1971 (the_linux_target): Define as pointer to the_sparc_target.
1972 * linux-tic6x-low.cc (class tic6x_target): New class.
1973 (the_tic6x_target): New static object.
1974 (the_linux_target): Define as pointer to the_tic6x_target.
1975 * linux-tile-low.cc (class tile_target): New class.
1976 (the_tile_target): New static object.
1977 (the_linux_target): Define as pointer to the_tile_target.
1978 * linux-xtensa-low.cc (class xtensa_target): New class.
1979 (the_xtensa_target): New static object.
1980 (the_linux_target): Define as pointer to the_xtensa_target.
1982 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1984 Turn some static functions in linux-low.cc into private methods of
1985 linux_process_target.
1987 * linux-low.cc (handle_extended_wait): Turn into ...
1988 (linux_process_target::handle_extended_wait): ...this. Call
1989 'mourn' on 'this' object instead of 'the_target'.
1990 (maybe_move_out_of_jump_pad): Turn into...
1991 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
1992 (linux_low_filter_event): Turn into...
1993 (linux_process_target::filter_event): ...this.
1994 (linux_wait_for_event_filtered): Turn into...
1995 (linux_process_target::wait_for_event_filtered): ...this.
1996 (linux_wait_for_event): Turn into...
1997 (linux_process_target::wait_for_event): ...this.
1998 (linux_wait_1): Turn into...
1999 (linux_process_target::wait_1): ...this.
2000 (wait_for_sigstop): Turn into...
2001 (linux_process_target::wait_for_sigstop): ...this.
2002 (move_out_of_jump_pad_callback): Turn into...
2003 (linux_process_target::move_out_of_jump_pad): ...this.
2004 (stop_all_lwps): Turn into...
2005 (linux_process_target::stop_all_lwps): ...this.
2006 (start_step_over): Turn into...
2007 (linux_process_target::start_step_over): ...this.
2008 (complete_ongoing_step_over): Turn into...
2009 (linux_process_target::complete_ongoing_step_over): ...this.
2010 (proceed_all_lwps): Turn into...
2011 (linux_process_target::proceed_all_lwps): ...this.
2012 (unstop_all_lwps): Turn into...
2013 (linux_process_target::unstop_all_lwps): ...this.
2015 * linux-low.h (class linux_process_target)
2016 <handle_extended_wait>
2017 <maybe_move_out_of_jump_pad>
2019 <wait_for_event_filtered>
2023 <move_out_of_jump_pad>
2026 <complete_ongoing_step_over>
2028 <unstop_all_lwps>: Declare.
2030 Update the callers below.
2032 * linux-low.cc (linux_process_target::attach): Update.
2033 (linux_process_target::stabilize_threads): Ditto.
2034 (linux_process_target::wait): Ditto.
2036 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2038 * linux-low.h (struct linux_target_ops): Update the comment for
2039 'cannot_store_register' to return 0 or 1.
2040 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
2043 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
2045 * config.in: Re-generate.
2046 * configure: Re-generate.
2048 2020-03-17 Kamil Rytarowski <n54@gmx.com>
2050 * regcache.cc (find_register_by_number): Update.
2051 * tdesc.cc (init_target_desc): Likewise.
2052 * tdesc.h (target_desc::reg_defs): Likewise.
2054 2020-03-12 Tom Tromey <tom@tromey.com>
2056 * configure: Rebuild.
2057 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
2058 (WIN32APILIBS): New subst.
2059 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
2061 (gdbsupport/%.o): Remove target.
2062 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
2063 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
2064 (WIN32APILIBS): New variable.
2065 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
2066 (gdbreplay$(EXEEXT)): Likewise.
2068 2020-03-12 Tom Tromey <tom@tromey.com>
2070 * config.in, configure: Rebuild.
2071 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
2072 * acinclude.m4: Include gettext-sister.m4.
2073 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
2075 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
2076 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
2078 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2080 * acinclude.m4: Update path to selftest.m4.
2082 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2084 * configure.ac: Don't source bfd/development.sh, move
2085 GDB_AC_COMMON higher.
2086 * configure: Re-generate.
2088 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2090 * configure: Re-generate.
2092 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
2094 * configure: Re-generate.
2096 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2098 * .dir-locals.el: New file.
2100 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2102 * .gitattributes: New file.
2104 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
2106 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
2107 reply into an S reply.
2108 * server.cc (disable_packet_T): New global.
2109 (captured_main): Set new global when appropriate.
2110 * server.h (disable_packet_T): Declare.
2112 2020-02-21 Tom Tromey <tom@tromey.com>
2114 * Makefile.in (mostlyclean): New target.
2116 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2118 * target.h (struct process_stratum_target): Remove.
2119 (class process_target): Rename to ...
2120 (class process_stratum_target): ... this.
2121 * linux-low.h (class linux_process_target): Derive from
2122 'process_stratum_target'.
2123 * linux-low.cc (linux_target_ops): Remove.
2124 (initialize_low): Set the_target to the singleton instance of
2125 linux_process_target.
2126 * lynx-low.h (class lynx_process_target): Derive from
2127 'process_stratum_target'.
2128 * lynx-low.cc (lynx_target_ops): Remove.
2129 (initialize_low): Set the_target to the singleton instance of
2130 lynx_process_target.
2131 * nto-low.h (class nto_process_target): Derive from
2132 'process_stratum_target'.
2133 * nto-low.cc (nto_target_ops): Remove.
2134 (initialize_low): Set the_target to the singleton instance of
2136 * win32-low.h (class win32_process_target): Derive from
2137 'process_stratum_target'.
2138 * win32-low.cc (win32_target_ops): Remove.
2139 (initialize_low): Set the_target to the singleton instance of
2140 win32_process_target.
2142 Replace 'the_target->pt' with 'the_target' in the uses below.
2144 * hostio.cc (hostio_error)
2149 * linux-aarch32-low.cc (arm_breakpoint_at)
2150 * linux-aarch64-low.cc (aarch64_breakpoint_at)
2151 * linux-arm-low.cc (arm_sigreturn_next_pc)
2153 (arm_get_syscall_trapinfo)
2154 * linux-cris-low.cc (cris_breakpoint_at)
2155 * linux-crisv32-low.cc (cris_breakpoint_at)
2156 * linux-low.cc (handle_extended_wait)
2159 (linux_process_target::breakpoint_kind_from_pc)
2161 * linux-m32r-low.cc (m32r_breakpoint_at)
2162 * linux-mips-low.cc (mips_breakpoint_at)
2163 * linux-nios2-low.cc (nios2_breakpoint_at)
2164 * linux-ppc-low.cc (ppc_breakpoint_at)
2165 * linux-s390-low.cc (s390_get_hwcap)
2166 * linux-sh-low.cc (sh_breakpoint_at)
2167 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
2168 (sparc_store_gregset_from_stack)
2169 (sparc_breakpoint_at)
2170 * linux-tic6x-low.cc (tic6x_breakpoint_at)
2171 * linux-tile-low.cc (tile_breakpoint_at)
2172 * linux-x86-low.cc (x86_breakpoint_at)
2173 * linux-xtensa-low.cc (xtensa_breakpoint_at)
2174 * mem-break.cc (bp_size)
2176 (insert_memory_breakpoint)
2177 (set_raw_breakpoint_at)
2178 (delete_raw_breakpoint)
2180 (uninsert_raw_breakpoint)
2181 (reinsert_raw_breakpoint)
2182 (validate_inserted_breakpoint)
2183 * regcache.cc (regcache_read_pc)
2185 * remote-utils.cc (putpkt_binary_1)
2188 (prepare_resume_reply)
2189 * server.cc (handle_general_set)
2192 (handle_qxfer_exec_file)
2193 (handle_qxfer_libraries_svr4)
2194 (handle_qxfer_osdata)
2195 (handle_qxfer_siginfo)
2196 (handle_qxfer_fdpic)
2200 (queue_stop_reply_callback)
2202 * target.cc (prepare_to_access_memory)
2203 (done_accessing_memory)
2204 (read_inferior_memory)
2205 (target_write_memory)
2206 (target_stop_and_wait)
2208 (target_mourn_inferior)
2209 (target_continue_no_signal)
2211 (target_supports_multi_process)
2214 (target_create_inferior)
2215 (target_post_create_inferior)
2217 (target_supports_fork_events)
2218 (target_supports_vfork_events)
2219 (target_supports_exec_events)
2220 (target_handle_new_gdb_connection)
2223 (fetch_inferior_registers)
2224 (store_inferior_registers)
2226 (target_supports_non_stop)
2228 (target_process_qsupported)
2229 (target_supports_catch_syscall)
2230 (target_get_ipa_tdesc_idx)
2231 (target_supports_tracepoints)
2232 (target_supports_fast_tracepoints)
2233 (target_get_min_fast_tracepoint_insn_len)
2234 (target_thread_stopped)
2236 (target_unpause_all)
2237 (target_stabilize_threads)
2238 (target_install_fast_tracepoint_jump_pad)
2240 (target_supports_disable_randomization)
2241 (target_supports_agent)
2242 (target_enable_btrace)
2243 (target_disable_btrace)
2244 (target_read_btrace)
2245 (target_read_btrace_conf)
2246 (target_supports_range_stepping)
2247 (target_supports_stopped_by_sw_breakpoint)
2248 (target_stopped_by_sw_breakpoint)
2249 (target_supports_stopped_by_hw_breakpoint)
2250 (target_supports_hardware_single_step)
2251 (target_stopped_by_hw_breakpoint)
2252 (target_breakpoint_kind_from_pc)
2253 (target_breakpoint_kind_from_current_state)
2254 (target_supports_software_single_step)
2255 (target_core_of_thread)
2256 (target_thread_name)
2257 (target_thread_handle)
2258 * win32-low.cc (do_initial_child_stuff)
2260 Rename target op default definitions listed below.
2262 * target.cc (process_target::post_create_inferior): Rename as ...
2263 (process_stratum_target::post_create_inferior): ... this.
2264 (process_target::prepare_to_access_memory): Rename as ...
2265 (process_stratum_target::prepare_to_access_memory): ... this.
2266 (process_target::done_accessing_memory): Rename as ...
2267 (process_stratum_target::done_accessing_memory): ... this.
2268 (process_target::look_up_symbols): Rename as ...
2269 (process_stratum_target::look_up_symbols): ... this.
2270 (process_target::supports_read_auxv): Rename as ...
2271 (process_stratum_target::supports_read_auxv): ... this.
2272 (process_target::read_auxv): Rename as ...
2273 (process_stratum_target::read_auxv): ... this.
2274 (process_target::supports_z_point_type): Rename as ...
2275 (process_stratum_target::supports_z_point_type): ... this.
2276 (process_target::insert_point): Rename as ...
2277 (process_stratum_target::insert_point): ... this.
2278 (process_target::remove_point): Rename as ...
2279 (process_stratum_target::remove_point): ... this.
2280 (process_target::stopped_by_sw_breakpoint): Rename as ...
2281 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
2282 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
2283 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
2284 (process_target::stopped_by_hw_breakpoint): Rename as ...
2285 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
2286 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
2287 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
2288 (process_target::supports_hardware_single_step): Rename as ...
2289 (process_stratum_target::supports_hardware_single_step): ... this.
2290 (process_target::stopped_by_watchpoint): Rename as ...
2291 (process_stratum_target::stopped_by_watchpoint): ... this.
2292 (process_target::stopped_data_address): Rename as ...
2293 (process_stratum_target::stopped_data_address): ... this.
2294 (process_target::supports_read_offsets): Rename as ...
2295 (process_stratum_target::supports_read_offsets): ... this.
2296 (process_target::read_offsets): Rename as ...
2297 (process_stratum_target::read_offsets): ... this.
2298 (process_target::supports_get_tls_address): Rename as ...
2299 (process_stratum_target::supports_get_tls_address): ... this.
2300 (process_target::get_tls_address): Rename as ...
2301 (process_stratum_target::get_tls_address): ... this.
2302 (process_target::hostio_last_error): Rename as ...
2303 (process_stratum_target::hostio_last_error): ... this.
2304 (process_target::supports_qxfer_osdata): Rename as ...
2305 (process_stratum_target::supports_qxfer_osdata): ... this.
2306 (process_target::qxfer_osdata): Rename as ...
2307 (process_stratum_target::qxfer_osdata): ... this.
2308 (process_target::supports_qxfer_siginfo): Rename as ...
2309 (process_stratum_target::supports_qxfer_siginfo): ... this.
2310 (process_target::qxfer_siginfo): Rename as ...
2311 (process_stratum_target::qxfer_siginfo): ... this.
2312 (process_target::supports_non_stop): Rename as ...
2313 (process_stratum_target::supports_non_stop): ... this.
2314 (process_target::async): Rename as ...
2315 (process_stratum_target::async): ... this.
2316 (process_target::start_non_stop): Rename as ...
2317 (process_stratum_target::start_non_stop): ... this.
2318 (process_target::supports_multi_process): Rename as ...
2319 (process_stratum_target::supports_multi_process): ... this.
2320 (process_target::supports_fork_events): Rename as ...
2321 (process_stratum_target::supports_fork_events): ... this.
2322 (process_target::supports_vfork_events): Rename as ...
2323 (process_stratum_target::supports_vfork_events): ... this.
2324 (process_target::supports_exec_events): Rename as ...
2325 (process_stratum_target::supports_exec_events): ... this.
2326 (process_target::handle_new_gdb_connection): Rename as ...
2327 (process_stratum_target::handle_new_gdb_connection): ... this.
2328 (process_target::handle_monitor_command): Rename as ...
2329 (process_stratum_target::handle_monitor_command): ... this.
2330 (process_target::core_of_thread): Rename as ...
2331 (process_stratum_target::core_of_thread): ... this.
2332 (process_target::supports_read_loadmap): Rename as ...
2333 (process_stratum_target::supports_read_loadmap): ... this.
2334 (process_target::read_loadmap): Rename as ...
2335 (process_stratum_target::read_loadmap): ... this.
2336 (process_target::process_qsupported): Rename as ...
2337 (process_stratum_target::process_qsupported): ... this.
2338 (process_target::supports_tracepoints): Rename as ...
2339 (process_stratum_target::supports_tracepoints): ... this.
2340 (process_target::read_pc): Rename as ...
2341 (process_stratum_target::read_pc): ... this.
2342 (process_target::write_pc): Rename as ...
2343 (process_stratum_target::write_pc): ... this.
2344 (process_target::supports_thread_stopped): Rename as ...
2345 (process_stratum_target::supports_thread_stopped): ... this.
2346 (process_target::thread_stopped): Rename as ...
2347 (process_stratum_target::thread_stopped): ... this.
2348 (process_target::supports_get_tib_address): Rename as ...
2349 (process_stratum_target::supports_get_tib_address): ... this.
2350 (process_target::get_tib_address): Rename as ...
2351 (process_stratum_target::get_tib_address): ... this.
2352 (process_target::pause_all): Rename as ...
2353 (process_stratum_target::pause_all): ... this.
2354 (process_target::unpause_all): Rename as ...
2355 (process_stratum_target::unpause_all): ... this.
2356 (process_target::stabilize_threads): Rename as ...
2357 (process_stratum_target::stabilize_threads): ... this.
2358 (process_target::supports_fast_tracepoints): Rename as ...
2359 (process_stratum_target::supports_fast_tracepoints): ... this.
2360 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
2361 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
2362 (process_target::emit_ops): Rename as ...
2363 (process_stratum_target::emit_ops): ... this.
2364 (process_target::supports_disable_randomization): Rename as ...
2365 (process_stratum_target::supports_disable_randomization): ... this.
2366 (process_target::supports_qxfer_libraries_svr4): Rename as ...
2367 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
2368 (process_target::qxfer_libraries_svr4): Rename as ...
2369 (process_stratum_target::qxfer_libraries_svr4): ... this.
2370 (process_target::supports_agent): Rename as ...
2371 (process_stratum_target::supports_agent): ... this.
2372 (process_target::enable_btrace): Rename as ...
2373 (process_stratum_target::enable_btrace): ... this.
2374 (process_target::disable_btrace): Rename as ...
2375 (process_stratum_target::disable_btrace): ... this.
2376 (process_target::read_btrace): Rename as ...
2377 (process_stratum_target::read_btrace): ... this.
2378 (process_target::read_btrace_conf): Rename as ...
2379 (process_stratum_target::read_btrace_conf): ... this.
2380 (process_target::supports_range_stepping): Rename as ...
2381 (process_stratum_target::supports_range_stepping): ... this.
2382 (process_target::supports_pid_to_exec_file): Rename as ...
2383 (process_stratum_target::supports_pid_to_exec_file): ... this.
2384 (process_target::pid_to_exec_file): Rename as ...
2385 (process_stratum_target::pid_to_exec_file): ... this.
2386 (process_target::supports_multifs): Rename as ...
2387 (process_stratum_target::supports_multifs): ... this.
2388 (process_target::multifs_open): Rename as ...
2389 (process_stratum_target::multifs_open): ... this.
2390 (process_target::multifs_unlink): Rename as ...
2391 (process_stratum_target::multifs_unlink): ... this.
2392 (process_target::multifs_readlink): Rename as ...
2393 (process_stratum_target::multifs_readlink): ... this.
2394 (process_target::breakpoint_kind_from_pc): Rename as ...
2395 (process_stratum_target::breakpoint_kind_from_pc): ... this.
2396 (process_target::breakpoint_kind_from_current_state): Rename as ...
2397 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
2398 (process_target::thread_name): Rename as ...
2399 (process_stratum_target::thread_name): ... this.
2400 (process_target::thread_handle): Rename as ...
2401 (process_stratum_target::thread_handle): ... this.
2402 (process_target::supports_software_single_step): Rename as ...
2403 (process_stratum_target::supports_software_single_step): ... this.
2404 (process_target::supports_catch_syscall): Rename as ...
2405 (process_stratum_target::supports_catch_syscall): ... this.
2406 (process_target::get_ipa_tdesc_idx): Rename as ...
2407 (process_stratum_target::get_ipa_tdesc_idx): ... this.
2409 2020-02-20 Pedro Alves <palves@redhat.com>
2411 * target.cc (set_target_ops): Simply copy the given target pointer
2412 instead of creating a copy of the pointed object.
2414 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2416 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
2419 * target.h (struct process_stratum_target): Remove the target op.
2420 (class process_target): Add the target op.
2421 (target_get_ipa_tdesc_idx): Update the macro.
2422 * target.cc (process_target::get_ipa_tdesc_idx): Define.
2424 Update the derived classes and callers below.
2426 * linux-low.cc (linux_target_ops): Update.
2427 (linux_get_ipa_tdesc_idx): Turn into ...
2428 (linux_process_target::get_ipa_tdesc_idx): ... this.
2429 * linux-low.h (class linux_process_target): Update.
2430 * lynx-low.cc (lynx_target_ops): Update.
2431 * nto-low.cc (nto_target_ops): Update.
2432 * win32-low.cc (win32_target_ops): Update.
2434 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2436 Turn process_stratum_target's supports_catch_syscall op into a
2437 method of process_target.
2439 * target.h (struct process_stratum_target): Remove the target op.
2440 (class process_target): Add the target op.
2441 (target_supports_catch_syscall): Update the macro.
2442 * target.cc (process_target::supports_catch_syscall): Define.
2444 Update the derived classes and callers below.
2446 * linux-low.cc (linux_target_ops): Update.
2447 (linux_supports_catch_syscall): Turn into ...
2448 (linux_process_target::supports_catch_syscall): ... this.
2449 * linux-low.h (class linux_process_target): Update.
2450 * lynx-low.cc (lynx_target_ops): Update.
2451 * nto-low.cc (nto_target_ops): Update.
2452 * win32-low.cc (win32_target_ops): Update.
2454 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2456 Turn process_stratum_target's supports_software_single_step op
2457 into a method of process_target.
2459 * target.h (struct process_stratum_target): Remove the target op.
2460 (class process_target): Add the target op.
2461 (target_supports_software_single_step): Update the macro.
2462 * target.cc (process_target::supports_software_single_step): Define.
2464 Update the derived classes and callers below.
2466 * linux-low.cc (linux_target_ops): Update.
2467 (linux_supports_software_single_step): Turn into ...
2468 (linux_process_target::supports_software_single_step): ... this.
2469 * linux-low.h (class linux_process_target): Update.
2470 * lynx-low.cc (lynx_target_ops): Update.
2471 * nto-low.cc (nto_target_ops): Update.
2472 * win32-low.cc (win32_target_ops): Update.
2474 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2476 Turn process_stratum_target's thread_name and thread_handle ops
2477 into methods of process_target.
2479 * target.h (struct process_stratum_target): Remove the target ops.
2480 (class process_target): Add the target ops.
2481 (target_thread_name): Update the macro.
2482 (target_thread_handle): Update the macro.
2483 * target.cc (process_target::thread_name): Define.
2484 (process_target::thread_handle): Define.
2486 Update the derived classes and callers below.
2488 * linux-low.cc (linux_target_ops): Update.
2489 (linux_process_target::thread_name): Define.
2490 (linux_process_target::thread_handle): Define.
2491 * linux-low.h (class linux_process_target): Update.
2492 * lynx-low.cc (lynx_target_ops): Update.
2493 * nto-low.cc (nto_target_ops): Update.
2494 * win32-low.cc (win32_target_ops): Update.
2496 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2498 Turn process_stratum_target's breakpoint_kind_from_pc,
2499 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
2500 ops into methods of process_target.
2502 * target.h (struct process_stratum_target): Remove the target op.
2503 (class process_target): Add the target op.
2504 (target_breakpoint_kind_from_pc): Update the macro.
2505 (target_breakpoint_kind_from_current_state): Update the macro.
2506 (default_breakpoint_kind_from_pc): Remove declaration.
2507 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
2508 (process_target::breakpoint_kind_from_pc): ... this.
2509 (process_target::breakpoint_kind_from_current_state): Define.
2511 Update the derived classes and callers below.
2513 * mem-break.cc (bp_size): Update.
2514 (bp_opcode): Update.
2515 * linux-low.cc (linux_target_ops): Update.
2516 (linux_wait_1): Update.
2517 (linux_breakpoint_kind_from_pc): Turn into ...
2518 (linux_process_target::breakpoint_kind_from_pc): ... this.
2519 (linux_sw_breakpoint_from_kind): Turn into ...
2520 (linux_process_target::sw_breakpoint_from_kind): ... this.
2521 (linux_breakpoint_kind_from_current_state): Turn into ...
2522 (linux_process_target::breakpoint_kind_from_current_state): ... this.
2523 * linux-low.h (class linux_process_target): Update.
2524 * lynx-low.cc (lynx_target_ops): Update.
2525 (lynx_process_target::sw_breakpoint_from_kind): Define.
2526 * lynx-low.h (class lynx_process_target): Update.
2527 * nto-low.cc (nto_target_ops): Update.
2528 (nto_sw_breakpoint_from_kind): Turn into ...
2529 (nto_process_target::sw_breakpoint_from_kind): ... this.
2530 * nto-low.h (class nto_process_target): Update.
2531 * win32-low.cc (win32_target_ops): Update.
2532 (win32_sw_breakpoint_from_kind): Turn into ...
2533 (win32_process_target::sw_breakpoint_from_kind): ... this.
2534 * win32-low.h (class win32_process_target): Update.
2536 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2538 Turn process_stratum_target's multifs_open, multifs_readlink,
2539 multifs_unlink ops into methods of process_target.
2541 * target.h (struct process_stratum_target): Remove the target ops.
2542 (class process_target): Add the target ops. Also add
2544 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
2546 (process_target::supports_multifs): Define.
2547 (process_target::multifs_open): Define.
2548 (process_target::multifs_readlink): Define.
2549 (process_target::multifs_unlink): Define.
2551 Update the derived classes and callers below.
2553 * hostio.cc (handle_setfs): Update.
2554 (handle_open): Update.
2555 (handle_unlink): Update.
2556 (handle_readlink): Update.
2557 * linux-low.cc (linux_target_ops): Update.
2558 (linux_process_target::supports_multifs): Define.
2559 (linux_process_target::multifs_open): Define.
2560 (linux_process_target::multifs_readlink): Define.
2561 (linux_process_target::multifs_unlink): Define.
2562 * linux-low.h (class linux_process_target): Update.
2563 * lynx-low.cc (lynx_target_ops): Update.
2564 * nto-low.cc (nto_target_ops): Update.
2565 * win32-low.cc (win32_target_ops): Update.
2567 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2569 Turn process_stratum_target's pid_to_exec_file op into a method
2572 * target.h (struct process_stratum_target): Remove the target op.
2573 (class process_target): Add the target op. Also add
2574 'supports_pid_to_exec_file'.
2575 * target.cc (process_target::pid_to_exec_file): Define.
2576 (process_target::supports_pid_to_exec_file): Define.
2578 Update the derived classes and callers below.
2580 * server.cc (handle_qxfer_exec_file): Update.
2581 (handle_query): Update.
2582 * linux-low.cc (linux_target_ops): Update.
2583 (linux_process_target::supports_pid_to_exec_file): Define.
2584 (linux_process_target::pid_to_exec_file): Define.
2585 * linux-low.h (class linux_process_target): Update.
2586 * lynx-low.cc (lynx_target_ops): Update.
2587 * nto-low.cc (nto_target_ops): Update.
2588 * win32-low.cc (win32_target_ops): Update.
2590 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2592 Turn process_stratum_target's supports_range_stepping op into a
2593 method of process_target.
2595 * target.h (struct process_stratum_target): Remove the target op.
2596 (class process_target): Add the target op.
2597 (target_supports_range_stepping): Update the macro.
2598 * target.cc (process_target::supports_range_stepping): Define.
2600 Update the derived classes and callers below.
2602 * linux-low.cc (linux_target_ops): Update.
2603 (linux_supports_range_stepping): Turn into ...
2604 (linux_process_target::supports_range_stepping): ... this.
2605 * linux-low.h (class linux_process_target): Update.
2606 * lynx-low.cc (lynx_target_ops): Update.
2607 * nto-low.cc (nto_target_ops): Update.
2608 * win32-low.cc (win32_target_ops): Update.
2610 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2612 Turn process_stratum_target's btrace-related ops (enable_btrace,
2613 disable_btrace, read_btrace, read_btrace_conf) into methods of
2616 * target.h (struct process_stratum_target): Remove the target ops.
2617 (class process_target): Add the target ops.
2618 (target_enable_btrace): Update.
2619 (target_disable_btrace): Update.
2620 (target_read_btrace): Update.
2621 (target_read_btrace_conf): Update.
2622 * target.cc (process_target::enable_btrace): Define.
2623 (process_target::disable_btrace): Define.
2624 (process_target::read_btrace): Define.
2625 (process_target::read_btrace_conf): Define.
2627 Update the derived classes and callers below.
2629 * linux-low.cc (linux_target_ops): Update.
2630 (linux_process_target:enable_btrace): Define as a wrapper around
2631 linux_enable_btrace.
2632 (linux_low_disable_btrace): Turn into ...
2633 (linux_process_target::disable_btrace): ... this.
2634 (linux_low_read_btrace): Turn into ...
2635 (linux_process_target::read_btrace): ... this.
2636 (linux_low_btrace_conf): Turn into ...
2637 (linux_process_target::read_btrace_conf): ... this.
2638 * linux-low.h (class linux_process_target): Update.
2639 * lynx-low.cc (lynx_target_ops): Update.
2640 * nto-low.cc (nto_target_ops): Update.
2641 * win32-low.cc (win32_target_ops): Update.
2643 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2645 Turn process_stratum_target's supports_agent op into a method of
2648 * target.h (struct process_stratum_target): Remove the target op.
2649 (class process_target): Add the target op.
2650 (target_supports_agent): Update the macro.
2651 * target.cc (process_target::supports_agent): Define.
2653 Update the derived classes and callers below.
2655 * linux-low.cc (linux_target_ops): Update.
2656 (linux_supports_agent): Turn into ...
2657 (linux_process_target::supports_agent): ... this.
2658 * linux-low.h (class linux_process_target): Update.
2659 * lynx-low.cc (lynx_target_ops): Update.
2660 * nto-low.cc (nto_target_ops): Update.
2661 * win32-low.cc (win32_target_ops): Update.
2663 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2665 Turn process_stratum_target's qxfer_libraries_svr4 op into a
2666 method of process_target.
2668 * target.h (struct process_stratum_target): Remove the target op.
2669 (class process_target): Add the target op. Also add
2670 'supports_qxfer_libraries_svr4'.
2671 * target.cc (process_target::qxfer_libraries_svr4): Define.
2672 (process_target::supports_qxfer_libraries_svr4): Define.
2674 Update the derived classes and callers below.
2676 * server.cc (handle_qxfer_libraries_svr4): Update.
2677 (handle_query): Update.
2678 * linux-low.cc (linux_target_ops): Update.
2679 (linux_process_target::supports_qxfer_libraries_svr4): Define.
2680 (linux_qxfer_libraries_svr4): Turn into ...
2681 (linux_process_target::qxfer_libraries_svr4): ... this.
2682 * linux-low.h (class linux_process_target): Update.
2683 * lynx-low.cc (lynx_target_ops): Update.
2684 * nto-low.cc (nto_target_ops): Update.
2685 * win32-low.cc (win32_target_ops): Update.
2687 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2689 Turn process_stratum_target's supports_disable_randomization op
2690 into a method of process_target.
2692 * target.h (struct process_stratum_target): Remove the target op.
2693 (class process_target): Add the target op.
2694 (target_supports_disable_randomization): Update the macro.
2695 * target.cc (process_target::supports_disable_randomization): Define.
2697 Update the derived classes and callers below.
2699 * linux-low.cc (linux_target_ops): Update.
2700 (linux_supports_disable_randomization): Turn into ...
2701 (linux_process_target::supports_disable_randomization): ... this.
2702 * linux-low.h (class linux_process_target): Update.
2703 * lynx-low.cc (lynx_target_ops): Update.
2704 * nto-low.cc (nto_target_ops): Update.
2705 * win32-low.cc (win32_target_ops): Update.
2707 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2709 Turn process_stratum_target's emit_ops op into a method of
2712 * target.h (struct process_stratum_target): Remove the target op.
2713 (class process_target): Add the target op.
2714 (target_emit_ops): Update the macro.
2715 * target.cc (process_target::emit_ops): Define.
2717 Update the derived classes and callers below.
2719 * linux-low.cc (linux_target_ops): Update.
2720 (linux_emit_ops): Turn into ...
2721 (linux_process_target::emit_ops): ... this.
2722 * linux-low.h (class linux_process_target): Update.
2723 * lynx-low.cc (lynx_target_ops): Update.
2724 * nto-low.cc (nto_target_ops): Update.
2725 * win32-low.cc (win32_target_ops): Update.
2727 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2729 Turn process_stratum_target's install_fast_tracepoint_jump_pad
2730 and get_min_fast_tracepoint_insn_len ops into methods of
2733 * target.h (struct process_stratum_target): Remove the target ops.
2734 (class process_target): Add the target ops. Also add
2735 'supports_fast_tracepoints'.
2736 (target_supports_fast_tracepoints): Update the macro.
2737 (target_get_min_fast_tracepoint_insn_len): Update the macro.
2738 (install_fast_tracepoint_jump_pad): Update and rename the macro
2740 (target_install_fast_tracepoint_jump_pad): ... this.
2741 * target.cc (process_target::supports_fast_tracepoints): Define.
2742 (process_target::install_fast_tracepoint_jump_pad): Define.
2743 (process_target::get_min_fast_tracepoint_insn_len): Define.
2745 Update the derived classes and callers below.
2747 * tracepoint.cc (install_fast_tracepoint): Update.
2748 * linux-low.cc (linux_target_ops): Update.
2749 (linux_process_target::supports_fast_tracepoints): Define.
2750 (linux_install_fast_tracepoint_jump_pad): Turn into ...
2751 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
2752 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
2753 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
2754 * linux-low.h (class linux_process_target): Update.
2755 * lynx-low.cc (lynx_target_ops): Update.
2756 * nto-low.cc (nto_target_ops): Update.
2757 * win32-low.cc (win32_target_ops): Update.
2759 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2761 Turn process_stratum_target's stabilize_threads op into a
2762 method of process_target.
2764 * target.h (struct process_stratum_target): Remove the target op.
2765 (class process_target): Add the target op.
2766 (target_stabilize_threads): Update the macro.
2767 * target.cc (process_target::stabilize_threads): Define.
2769 Update the derived classes and callers below.
2771 * server.cc (handle_status): Update.
2772 * tracepoint.cc (cmd_qtdp): Update.
2773 (cmd_qtstart): Update.
2774 * linux-low.cc (linux_target_ops): Update.
2775 (linux_stabilize_threads): Turn into ...
2776 (linux_process_target::stabilize_threads): ... this.
2777 (linux_wait_1): Update.
2778 * linux-low.h (class linux_process_target): Update.
2779 * lynx-low.cc (lynx_target_ops): Update.
2780 * nto-low.cc (nto_target_ops): Update.
2781 * win32-low.cc (win32_target_ops): Update.
2783 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2785 Turn process_stratum_target's pause_all and unpause_all ops
2786 into methods of process_target.
2788 * target.h (struct process_stratum_target): Remove the target ops.
2789 (class process_target): Add the target ops.
2790 (pause_all): Update the macro and rename to...
2791 (target_pause_all): ... this.
2792 (unpause_all): Update the macro and rename to...
2793 (target_unpause_all): ... this.
2794 * target.cc (process_target::pause_all): Define.
2795 (process_target::unpause_all): Define.
2797 Update the derived classes and callers below.
2799 * server.cc (handle_status): Update.
2800 * tracepoint.cc (clear_installed_tracepoints): Update.
2802 (cmd_qtstart): Update.
2803 (stop_tracing): Update.
2804 (cmd_qtstatus): Update.
2805 (upload_fast_traceframes): Update.
2806 (run_inferior_command): Update.
2807 * linux-low.cc (linux_target_ops): Update.
2808 (linux_pause_all): Turn into ...
2809 (linux_process_target::pause_all): ... this.
2810 (linux_unpause_all): Turn into ...
2811 (linux_process_target::unpause_all): ... this.
2812 (linux_process_target::prepare_to_access_memory): Update.
2813 (linux_process_target::done_accessing_memory): Update.
2814 * linux-low.h (class linux_process_target): Update.
2815 * lynx-low.cc (lynx_target_ops): Update.
2816 * nto-low.cc (nto_target_ops): Update.
2817 * win32-low.cc (win32_target_ops): Update.
2819 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2821 Turn process_stratum_target's get_tib_address op into a method of
2824 * target.h (struct process_stratum_target): Remove the target op.
2825 (class process_target): Add the target op. Also add
2826 'supports_get_tib_address'.
2827 * target.cc (process_target::get_tib_address): Define.
2828 (process_target::supports_get_tib_address): Define.
2830 Update the derived classes and callers below.
2832 * server.cc (handle_query): Update.
2833 * linux-low.cc (win32_target_ops): Update.
2834 * lynx-low.cc (lynx_target_ops): Update.
2835 * nto-low.cc (nto_target_ops): Update.
2836 * win32-low.cc (win32_target_ops): Update.
2837 (win32_process_target::supports_get_tib_address): Define.
2838 (win32_get_tib_address): Turn into ...
2839 (win32_process_target::get_tib_address): ... this.
2840 * win32-low.h (class win32_process_target): Update.
2842 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2844 Turn process_stratum_target's thread_stopped op into a method of
2847 * target.h (struct process_stratum_target): Remove the target op.
2848 (class process_target): Add the target op. Also add
2849 'supports_thread_stopped'.
2850 (target_thread_stopped): Update the macro.
2851 * target.cc (process_target::thread_stopped): Define.
2852 (process_target::supports_thread_stopped): Define.
2853 (prepare_to_access_memory): Update.
2855 Update the derived classes and callers below.
2857 * server.cc (queue_stop_reply_callback): Update.
2858 * linux-low.cc (linux_target_ops): Update.
2859 (linux_process_target::supports_thread_stopped): Define.
2860 (linux_thread_stopped): Turn into ...
2861 (linux_process_target::thread_stopped): ... this.
2862 * linux-low.h (class linux_process_target): Update.
2863 * lynx-low.cc (lynx_target_ops): Update.
2864 * nto-low.cc (nto_target_ops): Update.
2865 * win32-low.cc (win32_target_ops): Update.
2867 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2869 Turn process_stratum_target's read_pc and write_pc ops into
2870 methods of process_target.
2872 * target.h (struct process_stratum_target): Remove the target ops.
2873 (class process_target): Add the target ops.
2874 * target.cc (process_target::read_pc): Define.
2875 (process_target::write_pc): Define.
2877 Update the derived classes and callers below.
2879 * regcache.cc (regcache_read_pc): Update.
2880 (regcache_write_pc): Update.
2881 * linux-low.cc (linux_target_ops): Update.
2882 (linux_read_pc): Turn into ...
2883 (linux_process_target::read_pc): ... this.
2884 (linux_write_pc): Turn into ...
2885 (linux_process_target::write_pc): ... this.
2886 * linux-low.h (class linux_process_target): Update.
2887 * lynx-low.cc (lynx_target_ops): Update.
2888 * nto-low.cc (nto_target_ops): Update.
2889 * win32-low.cc (win32_target_ops): Update.
2891 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2893 Turn process_stratum_target's supports_tracepoints op into a
2894 method of process_target.
2896 * target.h (struct process_stratum_target): Remove the target op.
2897 (class process_target): Add the target op.
2898 (target_supports_tracepoints): Update the macro.
2899 * target.cc (process_target::supports_tracepoints): Define.
2901 Update the derived classes and callers below.
2903 * linux-low.cc (linux_target_ops): Update.
2904 (linux_supports_tracepoints): Turn into ...
2905 (linux_process_target::supports_tracepoints): ... this.
2906 * linux-low.h (class linux_process_target): Update.
2907 * lynx-low.cc (lynx_target_ops): Update.
2908 * nto-low.cc (nto_target_ops): Update.
2909 * win32-low.cc (win32_target_ops): Update.
2911 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2913 Turn process_stratum_target's process_qsupported op into a method
2916 * target.h (struct process_stratum_target): Remove the target op.
2917 (class process_target): Add the target op.
2918 (target_process_qsupported): Update the macro.
2919 * target.cc (process_target::process_qsupported): Define.
2921 Update the derived classes and callers below.
2923 * linux-low.cc (linux_target_ops): Update.
2924 (linux_process_qsupported): Turn into ...
2925 (linux_process_target::process_qsupported): ... this.
2926 * linux-low.h (class linux_process_target): Update.
2927 * lynx-low.cc (lynx_target_ops): Update.
2928 * nto-low.cc (nto_target_ops): Update.
2929 * win32-low.cc (win32_target_ops): Update.
2931 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2933 Turn process_stratum_target's read_loadmap op into a method of
2936 * target.h (struct process_stratum_target): Remove the target op.
2937 (class process_target): Add the target op. Also add
2938 'supports_read_loadmap'.
2939 * target.cc (process_target::read_loadmap): Define.
2940 (process_target::supports_read_loadmap): Define.
2942 Update the derived classes and callers below.
2944 * server.cc (handle_qxfer_fdpic): Update.
2945 (handle_query): Update.
2946 * linux-low.cc (linux_target_ops): Update.
2947 (linux_process_target::supports_read_loadmap): Define.
2948 (linux_read_loadmap): Turn into ...
2949 (linux_process_target::read_loadmap): ... this.
2950 * linux-low.h (class linux_process_target): Update.
2951 * lynx-low.cc (lynx_target_ops): Update.
2952 * nto-low.cc (nto_target_ops): Update.
2953 * win32-low.cc (win32_target_ops): Update.
2955 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2957 Turn process_stratum_target's core_of_thread op into a method of
2960 * target.h (struct process_stratum_target): Remove the target op.
2961 (class process_target): Add the target op.
2962 (target_core_of_thread): Update the macro.
2963 * target.cc (process_target::core_of_thread): Define.
2965 Update the derived classes and callers below.
2967 * linux-low.cc (linux_target_ops): Update.
2968 (linux_process_target::core_of_thread): Define.
2969 * linux-low.h (class linux_process_target): Update.
2970 * lynx-low.cc (lynx_target_ops): Update.
2971 * nto-low.cc (nto_target_ops): Update.
2972 * win32-low.cc (win32_target_ops): Update.
2974 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2976 Turn process_stratum_target's handle_monitor_command op into a
2977 method of process_target.
2979 * target.h (struct process_stratum_target): Remove the target op.
2980 (class process_target): Add the target op.
2981 (target_handle_monitor_command): Update the macro.
2982 * target.cc (process_target::handle_monitor_command): Define.
2984 Update the derived classes and callers below.
2986 * server.cc (handle_query): Update.
2987 * linux-low.cc (linux_target_ops): Update.
2988 (linux_process_target::handle_monitor_command): Define.
2989 * linux-low.h (class linux_process_target): Update.
2990 * lynx-low.cc (lynx_target_ops): Update.
2991 * nto-low.cc (nto_target_ops): Update.
2992 * win32-low.cc (win32_target_ops): Update.
2994 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2996 Turn process_stratum_target's handle_new_gdb_connection op into a
2997 method of process_target.
2999 * target.h (struct process_stratum_target): Remove the target op.
3000 (class process_target): Add the target op.
3001 (target_handle_new_gdb_connection): Update the macro.
3002 * target.cc (process_target::handle_new_gdb_connection): Define.
3004 Update the derived classes and callers below.
3006 * linux-low.cc (linux_target_ops): Update.
3007 (linux_handle_new_gdb_connection): Turn into ...
3008 (linux_process_target::handle_new_gdb_connection): ... this.
3009 * linux-low.h (class linux_process_target): Update.
3010 * lynx-low.cc (lynx_target_ops): Update.
3011 * nto-low.cc (nto_target_ops): Update.
3012 * win32-low.cc (win32_target_ops): Update.
3014 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3016 Turn process_stratum_target's supports_fork_events,
3017 supports_vfork_events, and supports_exec_events ops into methods
3020 * target.h (struct process_stratum_target): Remove the target ops.
3021 (class process_target): Add the target ops.
3022 (target_supports_fork_events): Update the macro.
3023 (target_supports_vfork_events): Update the macro.
3024 (target_supports_exec_events): Update the macro.
3025 * target.cc (process_target::supports_fork_events): Define.
3026 (process_target::supports_vfork_events): Define.
3027 (process_target::supports_exec_events): Define.
3029 Update the derived classes and callers below.
3031 * linux-low.cc (linux_target_ops): Update.
3032 (linux_supports_fork_events): Turn into ...
3033 (linux_process_target::supports_fork_events): ... this.
3034 (linux_supports_vfork_events): Turn into ...
3035 (linux_process_target::supports_vfork_events): ... this.
3036 (linux_supports_exec_events): Turn into ...
3037 (linux_process_target::supports_exec_events): ... this.
3038 * linux-low.h (class linux_process_target): Update.
3039 * lynx-low.cc (lynx_target_ops): Update.
3040 * nto-low.cc (nto_target_ops): Update.
3041 * win32-low.cc (win32_target_ops): Update.
3043 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3045 Turn process_stratum_target's supports_multi_process op into a
3046 method of process_target.
3048 * target.h (struct process_stratum_target): Remove the target op.
3049 (class process_target): Add the target op.
3050 * target.cc (process_target::supports_multi_process): Define.
3051 (target_supports_multi_process): Update.
3053 Update the derived classes and callers below.
3055 * linux-low.cc (linux_target_ops): Update.
3056 (linux_supports_multi_process): Turn into ...
3057 (linux_process_target::supports_multi_process): ... this.
3058 * linux-low.h (class linux_process_target): Update.
3059 * lynx-low.cc (lynx_target_ops): Update.
3060 * nto-low.cc (nto_target_ops): Update.
3061 * win32-low.cc (win32_target_ops): Update.
3063 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3065 Turn process_stratum_target's supports_non_stop, async, and
3066 start_non_stop ops into methods of process_target.
3068 * target.h (struct process_stratum_target): Remove the target ops.
3069 (class process_target): Add the target ops.
3070 (target_supports_non_stop): Update the macro.
3071 (target_async): Update the macro.
3072 (start_non_stop): Remove declaration.
3073 * target.cc (process_target::supports_non_stop): Define.
3074 (process_target::async): Define.
3075 (process_target::start_non_stop): Define.
3076 (start_non_stop): Remove.
3078 Update the derived classes and callers below.
3080 * server.cc (handle_qxfer_siginfo): Update.
3081 (handle_query): Update.
3082 * linux-low.cc (linux_target_ops): Update.
3083 (linux_supports_non_stop): Turn into ...
3084 (linux_process_target::supports_non_stop): ... this.
3085 (linux_async): Turn into ...
3086 (linux_process_target::async): ... this.
3087 (linux_start_non_stop): Turn into ...
3088 (linux_process_target::start_non_stop): ... this.
3089 * linux-low.h (class linux_process_target): Update.
3090 * lynx-low.cc (lynx_target_ops): Update.
3091 * nto-low.cc (nto_target_ops): Update.
3092 (nto_supports_non_stop): Remove; rely on the default behavior
3094 * win32-low.cc (win32_target_ops): Update.
3096 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3098 Turn process_stratum_target's qxfer_siginfo op into a method of
3101 * target.h (struct process_stratum_target): Remove the target op.
3102 (class process_target): Add the target op. Also add
3103 'supports_qxfer_siginfo'.
3104 * target.cc (process_target::qxfer_siginfo): Define.
3105 (process_target::supports_qxfer_siginfo): Define.
3107 Update the derived classes and callers below.
3109 * server.cc (handle_qxfer_siginfo): Update.
3110 (handle_query): Update.
3111 * linux-low.cc (linux_target_ops): Update.
3112 (linux_process_target::supports_qxfer_siginfo): Define.
3113 (linux_xfer_siginfo): Turn into ...
3114 (linux_process_target::qxfer_siginfo): ... this.
3115 * linux-low.h (class linux_process_target): Update.
3116 * lynx-low.cc (lynx_target_ops): Update.
3117 * nto-low.cc (nto_target_ops): Update.
3118 * win32-low.cc (win32_target_ops): Update.
3120 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3122 Turn process_stratum_target's qxfer_osdata op into a method of
3125 * target.h (struct process_stratum_target): Remove the target op.
3126 (class process_target): Add the target op. Also add
3127 'supports_qxfer_osdata'.
3128 * target.cc (process_target::qxfer_osdata): Define.
3129 (process_target::supports_qxfer_osdata): Define.
3131 Update the derived classes and callers below.
3133 * server.cc (handle_qxfer_osdata): Update.
3134 (handle_query): Update.
3135 * linux-low.cc (linux_target_ops): Update.
3136 (linux_process_target::supports_qxfer_osdata): Define.
3137 (linux_qxfer_osdata): Turn into ...
3138 (linux_process_target::qxfer_osdata): ... this.
3139 * linux-low.h (class linux_process_target): Update.
3140 * lynx-low.cc (lynx_target_ops): Update.
3141 * nto-low.cc (nto_target_ops): Update.
3142 * win32-low.cc (win32_target_ops): Update.
3144 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3146 Turn process_stratum_target's hostio_last_error op into a
3147 method of process_target.
3149 * target.h (struct process_stratum_target): Remove the target op.
3150 (class process_target): Add the target op.
3151 * target.cc: Add "hostio.h" to includes.
3152 (process_target::hostio_last_error): Define.
3154 Update the derived classes and callers below.
3156 * hostio.cc (hostio_error): Update.
3157 * linux-low.cc: Remove "hostio.h" from includes.
3158 (linux_target_ops): Update.
3159 * lynx-low.cc (lynx_target_ops): Update.
3160 * nto-low.cc (nto_target_ops): Update.
3161 * win32-low.h (class win32_process_target): Update.
3162 * win32-low.cc (win32_target_ops): Update.
3163 (wince_hostio_last_error): Turn into ...
3164 (win32_process_target::hostio_last_error): ... this.
3166 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3168 Turn process_stratum_target's get_tls_address op into a method of
3171 * target.h (struct process_stratum_target): Remove the target op.
3172 (class process_target): Add the target op. Also add
3173 'supports_get_tls_address'.
3174 * target.cc (process_target::get_tls_address): Define.
3175 (process_target::supports_get_tls_address): Define.
3177 Update the derived classes and callers below.
3179 * server.cc (handle_query): Update.
3180 * linux-low.cc (linux_target_ops): Update.
3181 (linux_process_target::supports_get_tls_address): Define.
3182 (linux_process_target::get_tls_address): Define.
3183 * linux-low.h (class linux_process_target): Update.
3184 * lynx-low.cc (lynx_target_ops): Update.
3185 * nto-low.cc (nto_target_ops): Update.
3186 * win32-low.cc (win32_target_ops): Update.
3188 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3190 Turn process_stratum_target's read_offsets op into a method of
3193 * target.h (struct process_stratum_target): Remove the target op.
3194 (class process_target): Add the target op. Also add
3195 'supports_read_offsets'.
3196 * target.cc (process_target::read_offsets): Define.
3197 (process_target::supports_read_offsets): Define.
3199 Update the derived classes and callers below.
3201 * server.cc (handle_query): Update.
3202 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
3203 (linux_target_ops): Update.
3204 (linux_process_target::supports_read_offsets): Define.
3205 (linux_read_offsets): Turn into ...
3206 (linux_process_target::read_offsets): ... this.
3207 * linux-low.h (class linux_process_target): Update.
3208 * lynx-low.cc (lynx_target_ops): Update.
3209 * nto-low.cc (nto_target_ops): Update.
3210 * win32-low.cc (win32_target_ops): Update.
3212 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3214 Turn process_stratum_target's stopped_by_watchpoint and
3215 stopped_data_address ops into methods of process_target.
3217 * target.h (struct process_stratum_target): Remove the target ops.
3218 (class process_target): Add the target ops.
3219 * target.cc (process_target::stopped_by_watchpoint): Define.
3220 (process_target::stopped_data_address): Define.
3222 Update the derived classes and callers below.
3224 * remote-utils.cc (prepare_resume_reply): Update.
3225 * linux-low.cc (linux_target_ops): Update.
3226 (linux_stopped_by_watchpoint): Turn into ...
3227 (linux_process_target::stopped_by_watchpoint): ... this.
3228 (linux_stopped_data_address): Turn into ...
3229 (linux_process_target::stopped_data_address): ... this.
3230 * linux-low.h (class linux_process_target): Update.
3231 * lynx-low.cc (lynx_target_ops): Update.
3232 * nto-low.cc (nto_target_ops): Update.
3233 (nto_stopped_by_watchpoint): Turn into ...
3234 (nto_process_target::stopped_by_watchpoint): ... this.
3235 (nto_stopped_data_address): Turn into ...
3236 (nto_process_target::stopped_data_address): ... this.
3237 * nto-low.h (class nto_process_target): Update.
3238 * win32-low.cc (win32_target_ops): Update.
3239 (win32_stopped_by_watchpoint): Turn into ...
3240 (win32_process_target::stopped_by_watchpoint): ... this.
3241 (win32_stopped_data_address): Turn into ...
3242 (win32_process_target::stopped_data_address): ... this.
3243 * win32-low.h (class win32_process_target): Update.
3245 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3247 Turn process_stratum_target's supports_hardware_single_step op into
3248 a method of process_target.
3250 * target.h (struct process_stratum_target): Remove the target op.
3251 (class process_target): Add the target op.
3252 (target_supports_hardware_single_step): Update the macro.
3253 (target_can_do_hardware_single_step): Remove declaration.
3254 * target.cc (process_target::supports_hardware_single_step): Define.
3255 (target_can_do_hardware_single_step): Remove.
3257 Update the derived classes and callers below.
3259 * linux-low.h (class linux_process_target): Update.
3260 * linux-low.cc (linux_target_ops): Update.
3261 (linux_supports_hardware_single_step): Turn into ...
3262 (linux_process_target::supports_hardware_single_step): ... this.
3263 * lynx-low.h (class lynx_process_target): Update.
3264 * lynx-low.cc (lynx_target_ops): Update.
3265 (lynx_process_target::supports_hardware_single_step): Define.
3266 * nto-low.h (class nto_process_target): Update.
3267 * nto-low.cc (nto_target_ops): Update.
3268 (nto_process_target::supports_hardware_single_step): Define.
3269 * win32-low.h (class win32_process_target): Update.
3270 * win32-low.cc (win32_target_ops): Update.
3271 (win32_process_target::supports_hardware_single_step): Define.
3273 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3275 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
3276 ops into methods of process_target.
3278 * target.h (struct process_stratum_target): Remove the target ops.
3279 (class process_target): Add the target ops.
3280 (target_stopped_by_hw_breakpoint): Update the macro.
3281 (target_supports_stopped_by_hw_breakpoint): Update the macro.
3282 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
3283 (process_target::supports_stopped_by_hw_breakpoint): Define.
3285 Update the derived classes and callers below.
3287 * linux-low.cc (linux_target_ops): Update.
3288 (linux_stopped_by_hw_breakpoint): Turn into ...
3289 (linux_process_target::stopped_by_hw_breakpoint): ... this.
3290 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
3291 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
3292 * linux-low.h (class linux_process_target): Update.
3293 * lynx-low.cc (lynx_target_ops): Update.
3294 * nto-low.cc (nto_target_ops): Update.
3295 * win32-low.cc (win32_target_ops): Update.
3297 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3299 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
3300 ops into methods of process_target.
3302 * target.h (struct process_stratum_target): Remove the target ops.
3303 (class process_target): Add the target ops.
3304 (target_stopped_by_sw_breakpoint): Update the macro.
3305 (target_supports_stopped_by_sw_breakpoint): Update the macro.
3306 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
3307 (process_target::supports_stopped_by_sw_breakpoint): Define.
3309 Update the derived classes and callers below.
3311 * linux-low.cc (linux_target_ops): Update.
3312 (linux_stopped_by_sw_breakpoint): Turn into ...
3313 (linux_process_target::stopped_by_sw_breakpoint): ... this.
3314 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
3315 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
3316 * linux-low.h (class linux_process_target): Update.
3317 * lynx-low.cc (lynx_target_ops): Update.
3318 * nto-low.cc (nto_target_ops): Update.
3319 * win32-low.cc (win32_target_ops): Update.
3321 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3323 Turn process_stratum_target's insert_point and remove_point ops
3324 into methods of process_target.
3326 * target.h (struct process_stratum_target): Remove the target ops.
3327 (class process_target): Add the target ops.
3328 * target.cc (process_target::insert_point): Define.
3329 (process_target::remove_point): Define.
3331 Update the derived classes and callers below.
3333 * mem-break.cc (set_raw_breakpoint_at): Update.
3334 (delete_raw_breakpoint): Update.
3335 (uninsert_raw_breakpoint): Update.
3336 (reinsert_raw_breakpoint): Update.
3337 * linux-low.cc (linux_target_ops): Update.
3338 (linux_insert_point): Turn into ...
3339 (linux_process_target::insert_point): ... this.
3340 (linux_remove_point): Turn into ...
3341 (linux_process_target::remove_point): ... this.
3342 * linux-low.h (class linux_process_target): Update.
3343 * lynx-low.cc (lynx_target_ops): Update.
3344 * nto-low.cc (nto_target_ops): Update.
3345 (nto_insert_point): Turn into ...
3346 (nto_process_target::insert_point): ... this.
3347 (nto_remove_point): Turn into ...
3348 (nto_process_target::remove_point): ... this.
3349 * nto-low.h (class nto_process_target): Update.
3350 * win32-low.cc (win32_target_ops): Update.
3351 (win32_insert_point): Turn into ...
3352 (win32_process_target::insert_point): ... this.
3353 (win32_remove_point): Turn into ...
3354 (win32_process_target::remove_point): ... this.
3355 * win32-low.h (class win32_process_target): Update.
3357 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3359 Turn process_stratum_target's supports_z_point_type op into a
3360 method of process_target.
3362 * target.h (struct process_stratum_target): Remove the target op.
3363 (class process_target): Add the target op.
3364 * target.cc (process_target::supports_z_point_type): Define.
3366 Update the derived classes and callers below.
3368 * mem-break.cc (z_type_supported): Update.
3369 * linux-low.cc (linux_target_ops): Update.
3370 (linux_supports_z_point_type): Turn into ...
3371 (linux_process_target::supports_z_point_type): ... this.
3372 * linux-low.h (class linux_process_target): Update.
3373 * lynx-low.cc (lynx_target_ops): Update.
3374 * nto-low.cc (nto_target_ops): Update.
3375 (nto_supports_z_point_type): Turn into ...
3376 (nto_process_target::supports_z_point_type): ... this.
3377 * nto-low.h (class nto_process_target): Update.
3378 * win32-low.cc (win32_target_ops): Update.
3379 (win32_supports_z_point_type): Turn into ...
3380 (win32_process_target::supports_z_point_type): ... this.
3381 * win32-low.h (class win32_process_target): Update.
3383 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3385 Turn process_stratum_target's read_auxv op into a method of
3388 * target.h (class process_stratum_target): Remove the target op.
3389 (struct process_target): Add the target op. Also add
3390 'supports_read_auxv'.
3391 * target.cc (process_target::read_auxv): Define.
3392 (process_target::supports_read_auxv): Define.
3394 Update the derived classes and callers below.
3396 * server.cc (handle_qxfer_auxv): Update.
3397 (handle_query): Update.
3398 * linux-low.cc (linux_target_ops): Update.
3399 (linux_process_target::supports_read_auxv): Define.
3400 (linux_read_auxv): Turn into ...
3401 (linux_process_target::read_auxv): ... this.
3402 * linux-low.h (class linux_process_target): Update.
3403 * lynx-low.cc (lynx_target_ops): Update.
3404 * nto-low.cc (nto_target_ops): Update.
3405 (nto_process_target::supports_read_auxv): Define.
3406 (nto_read_auxv): Turn into ...
3407 (nto_process_target::read_auxv): ... this.
3408 * nto-low.h (class nto_process_target): Update.
3409 * win32-low.cc (win32_target_ops): Update.
3411 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3413 Turn process_stratum_target's request_interrupt op into a method of
3416 * target.h (struct process_stratum_target): Remove the target op.
3417 (class process_target): Add the target op.
3419 Update the derived classes and callers below.
3421 * remote-utils.cc (putpkt_binary_1): Update.
3422 (input_interrupt): Update.
3424 * server.cc (handle_v_requests): Update.
3425 * linux-low.cc (linux_target_ops): Update.
3426 (linux_request_interrupt): Turn into ...
3427 (linux_process_target::request_interrupt): ... this.
3428 * linux-low.h (class linux_process_target): Update.
3429 * lynx-low.cc (lynx_target_ops): Update.
3430 (lynx_request_interrupt): Turn into ...
3431 (lynx_process_target::request_interrupt): ... this.
3432 * lynx-low.h (class lynx_process_target): Update.
3433 * nto-low.cc (nto_target_ops): Update.
3434 (nto_request_interrupt): Turn into ...
3435 (nto_process_target::request_interrupt): ... this.
3436 * nto-low.h (class nto_process_target): Update.
3437 * win32-low.cc (win32_target_ops): Update.
3438 (win32_request_interrupt): Turn into ...
3439 (win32_process_target::request_interrupt): ... this.
3440 * win32-low.h (class win32_process_target): Update.
3442 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3444 Turn process_stratum_target's look_up_symbols op into a method of
3447 * target.h (struct process_stratum_target): Remove the target op.
3448 (class process_target): Add the target op.
3449 * target.cc (process_target::look_up_symbols): Define.
3451 Update the derived classes and callers below.
3453 * server.cc (handle_query): Update.
3454 * linux-low.cc (linux_target_ops): Update.
3455 (linux_look_up_symbols): Turn into ...
3456 (linux_process_target::look_up_symbols): ... this.
3457 * linux-low.h (class linux_process_target): Update.
3458 * lynx-low.cc (lynx_target_ops): Update.
3459 * nto-low.cc (nto_target_ops): Update.
3460 * win32-low.cc (win32_target_ops): Update.
3462 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3464 Turn process_stratum_target's read_memory and write_memory
3465 ops into methods of process_target.
3467 * target.h (struct process_stratum_target): Remove the target ops.
3468 (class process_target): Add the target ops.
3470 Update the derived classes and callers below.
3472 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
3473 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
3474 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
3475 (arm_get_syscall_trapinfo): Update.
3476 * linux-cris-low.cc (cris_breakpoint_at): Update.
3477 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
3478 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
3479 * linux-mips-low.cc (mips_breakpoint_at): Update.
3480 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
3481 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
3482 * linux-sh-low.cc (sh_breakpoint_at): Update.
3483 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
3484 (sparc_store_gregset_from_stack): Update.
3485 (sparc_breakpoint_at): Update.
3486 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
3487 * linux-tile-low.cc (tile_breakpoint_at): Update.
3488 * linux-x86-low.cc (x86_breakpoint_at): Update.
3489 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
3490 * mem-brea.cc (insert_memory_breakpoint): Update.
3491 (validate_inserted_breakpoint): Update.
3492 * target.cc (read_inferior_memory): Update.
3493 (target_write_memory): Update.
3494 * linux-low.cc (linux_target_ops): Update.
3495 (linux_read_memory): Make a wrapper around the read_memory target
3497 (linux_process_target::read_memory): Rename from linux_read_memory.
3498 (linux_write_memory): Turn into ...
3499 (linux_process_target::write_memory): ... this.
3500 * linux-low.h (class linux_process_target): Update.
3501 * lynx-low.cc (lynx_target_ops): Update.
3502 (lynx_read_memory): Turn into ...
3503 (lynx_process_target::read_memory): ... this.
3504 (lynx_write_memory): Turn into ...
3505 (lynx_process_target::write_memory): ... this.
3506 * lynx-low.h (class lynx_process_target): Update.
3507 * nto-low.cc (nto_target_ops): Update.
3508 (nto_read_memory): Turn into ...
3509 (nto_process_target::read_memory): ... this.
3510 (nto_write_memory): Turn into ...
3511 (nto_process_target::write_memory): ... this.
3512 * nto-low.h (class nto_process_target): Update.
3513 * win32-low.cc (win32_target_ops): Update.
3514 (win32_read_inferior_memory): Turn into ...
3515 (win32_process_target::read_memory): ... this.
3516 (win32_write_inferior_memory): Turn into ...
3517 (win32_process_target::write_memory): ... this.
3518 * win32-low.h (class win32_process_target): Update.
3520 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3522 Turn process_stratum_target's prepare_to_access_memory and
3523 done_accessing_memory ops into methods of process_target.
3525 * target.h (struct process_stratum_target): Remove the target ops.
3526 (class process_target): Add the target ops.
3527 * target.cc (process_target::prepare_to_access_memory): Define.
3528 (process_target::done_accessing_memory): Define.
3529 (prepare_to_access_memory): Update.
3530 (done_accessing_memory): Update.
3532 Update the derived classes and callers below.
3534 * linux-low.cc (linux_target_ops): Update.
3535 (linux_prepare_to_access_memory): Turn into ...
3536 (linux_process_target::prepare_to_access_memory): ... this.
3537 (linux_done_accessing_memory): Turn into ...
3538 (linux_process_target::done_accessing_memory): ... this.
3539 * linux-low.h (class linux_process_target): Update.
3540 * lynx-low.cc (lynx_target_ops): Update.
3541 * nto-low.cc (nto_target_ops): Update.
3542 * win32-low.cc (win32_target_ops): Update.
3544 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3546 Turn process_stratum_target's fetch_registers and store_registers
3547 ops into methods of process_target.
3549 * target.h (struct process_stratum_target): Remove the target ops.
3550 (class process_target): Add the target ops.
3551 (fetch_inferior_registers): Update the macro.
3552 (store_inferior_registers): Update the macro.
3554 Update the derived classes and callers below.
3556 * linux-low.cc (linux_target_ops): Update.
3557 (linux_fetch_registers): Turn into ...
3558 (linux_process_target::fetch_registers): ... this.
3559 (linux_store_registers): Turn into ...
3560 (linux_process_target::store_registers): ... this.
3561 * linux-low.h (class linux_process_target): Update.
3562 * lynx-low.cc (lynx_target_ops): Update.
3563 (lynx_fetch_registers): Turn into ...
3564 (lynx_process_target::fetch_registers): ... this.
3565 (lynx_store_registers): Turn into ...
3566 (lynx_process_target::store_registers): ... this.
3567 * lynx-low.h (class lynx_process_target): Update.
3568 * nto-low.cc (nto_target_ops): Update.
3569 (nto_fetch_registers): Turn into ...
3570 (nto_process_target::fetch_registers): ... this.
3571 (nto_store_registers): Turn into ...
3572 (nto_process_target::store_registers): ... this.
3573 * nto-low.h (class nto_process_target): Update.
3574 * win32-low.cc (win32_target_ops): Update.
3575 (win32_fetch_inferior_registers): Turn into ...
3576 (win32_process_target::fetch_registers): ... this.
3577 (win32_store_inferior_registers): Turn into ...
3578 (win32_process_target::store_registers): ... this.
3579 * win32-low.h (class win32_process_target): Update.
3581 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3583 Turn process_stratum_target's wait op into a method of
3586 * target.h (struct process_stratum_target): Remove the target op.
3587 (class process_target): Add the target op.
3589 Update the derived classes and callers below.
3591 * target.cc (target_wait): Update.
3592 * linux-low.cc (linux_target_ops): Update.
3593 (linux_wait): Turn into ...
3594 (linux_process_target::wait): ... this.
3595 * linux-low.h (class linux_process_target): Update.
3596 * lynx-low.cc (lynx_target_ops): Update.
3597 (lynx_wait): Turn into ...
3598 (lynx_process_target::wait): ... this.
3599 * lynx-low.h (class lynx_process_target): Update.
3600 * nto-low.cc (nto_target_ops): Update.
3601 (nto_wait): Turn into ...
3602 (nto_process_target::wait): ... this.
3603 * nto-low.h (class nto_process_target): Update.
3604 * win32-low.cc (win32_target_ops): Update.
3605 (win32_wait): Turn into ...
3606 (win32_process_target::wait): ... this.
3607 (do_initial_child_stuff): Update.
3608 * win32-low.h (class win32_process_target): Update.
3610 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3612 Turn process_stratum_target's resume op into a method of
3615 * target.h (struct process_stratum_target): Remove the target op.
3616 (class process_target): Add the target op.
3618 Update the derived classes and callers below.
3620 * server.cc (resume): Update.
3621 * target.cc (target_stop_and_wait): Update.
3622 (target_continue_no_signal): Update.
3623 (target_continue): Update.
3624 * linux-low.cc (linux_target_ops): Update.
3625 (linux_resume): Turn into ...
3626 (linux_process_target::resume): ... this.
3627 * linux-low.h (class linux_process_target): Update.
3628 * lynx-low.cc (lynx_target_ops): Update.
3629 (lynx_resume): Turn into ...
3630 (lynx_process_target::resume): ... this.
3631 * lynx-low.h (class lynx_process_target): Update.
3632 * nto-low.cc (nto_target_ops): Update.
3633 (nto_resume): Turn into ...
3634 (nto_process_target::resume): ... this.
3635 * nto-low.h (class nto_process_target): Update.
3636 * win32-low.cc (win32_target_ops): Update.
3637 (win32_resume): Turn into ...
3638 (win32_process_target::resume): ... this.
3639 (win32_process_target::detach): Update.
3640 (do_initial_child_stuff): Update.
3641 * win32-low.h (class win32_process_target): Update.
3643 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3645 Turn process_stratum_target's thread_alive op into a method of
3648 * target.h (struct process_stratum_target): Remove the target op.
3649 (class process_target): Add the target op.
3650 (mythread_alive): Update the macro.
3652 Update the derived classes and callers below.
3654 * linux-low.cc (linux_target_ops): Update.
3655 (linux_thread_alive): Turn into ...
3656 (linux_process_target::thread_alive): ... this.
3657 (wait_for_sigstop): Update.
3658 * linux-low.h (class linux_process_target): Update.
3659 * lynx-low.cc (lynx_target_ops): Update.
3660 (lynx_thread_alive): Turn into ...
3661 (lynx_process_target::thread_alive): ... this.
3662 * lynx-low.h (class lynx_process_target): Update.
3663 * nto-low.cc (nto_target_ops): Update.
3664 (nto_thread_alive): Turn into ...
3665 (nto_process_target::thread_alive): ... this.
3666 * nto-low.h (class nto_process_target): Update.
3667 * win32-low.cc (win32_target_ops): Update.
3668 (win32_thread_alive): Turn into ...
3669 (win32_process_target::thread_alive): ... this.
3670 * win32-low.h (class win32_process_target): Update.
3672 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3674 Turn process_stratum_target's join op into a method of
3677 * target.h (struct process_stratum_target): Remove the target op.
3678 (class process_target): Add the target op.
3679 (join_inferior): Update the macro.
3681 Update the derived classes and callers below.
3683 * linux-low.cc (linux_target_ops): Update.
3684 (linux_join): Turn into ...
3685 (linux_process_target::join): ... this.
3686 * linux-low.h (class linux_process_target): Update.
3687 * lynx-low.cc (lynx_target_ops): Update.
3688 (lynx_join): Turn into ...
3689 (lynx_process_target::join): ... this.
3690 * lynx-low.h (class lynx_process_target): Update.
3691 * nto-low.cc (nto_target_ops): Update.
3692 (nto_process_target::join): Define.
3693 * nto-low.h (class nto_process_target): Update.
3694 * win32-low.cc (win32_target_ops): Update.
3695 (win32_join): Turn into ...
3696 (win32_process_target::join): ... this.
3697 * win32-low.h (class win32_process_target): Update.
3699 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3701 Turn process_stratum_target's mourn op into a method of
3704 * target.h (struct process_stratum_target): Remove the target op.
3705 (class process_target): Add the target op.
3707 Update the derived classes and callers below.
3709 * target.cc (target_mourn_inferior): Update.
3710 * linux-low.cc (linux_target_ops): Update.
3711 (linux_mourn): Turn into ...
3712 (linux_process_target::mourn): ... this.
3713 (handle_extended_wait): Update.
3714 (linux_process_target::kill): Update.
3715 (linux_process_target::detach): Update.
3716 * linux-low.h (class linux_process_target): Update.
3717 * lynx-low.cc (lynx_target_ops): Update.
3718 (lynx_mourn): Turn into ...
3719 (lynx_process_target::mourn): ... this.
3720 * lynx-low.h (class lynx_process_target): Update.
3721 * nto-low.cc (nto_target_ops): Update.
3722 (nto_mourn): Turn into ...
3723 (nto_process_target::mourn): ... this.
3724 * nto-low.h (class nto_process_target): Update.
3725 * win32-low.cc (win32_target_ops): Update.
3726 (win32_mourn): Turn into ...
3727 (win32_process_target::mourn): ... this.
3728 * win32-low.h (class win32_process_target): Update.
3730 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3732 Turn process_stratum_target's detach op into a method of
3735 * target.h (struct process_stratum_target): Remove the target op.
3736 (class process_target): Add the target op.
3737 (detach_inferior): Update the macro.
3739 Update the derived classes and callers below.
3741 * linux-low.cc (linux_target_ops): Update.
3742 (linux_detach): Turn into ...
3743 (linux_process_target::detach): ... this.
3744 * linux-low.h (class linux_process_target): Update.
3745 * lynx-low.cc (lynx_target_ops): Update.
3746 (lynx_detach): Turn into ...
3747 (lynx_process_target::detach): ... this.
3748 * lynx-low.h (class lynx_process_target): Update.
3749 * nto-low.cc (nto_target_ops): Update.
3750 (nto_detach): Turn into ...
3751 (nto_process_target::detach): ... this.
3752 * nto-low.h (class nto_process_target): Update.
3753 * win32-low.cc (win32_target_ops): Update.
3754 (win32_detach): Turn into ...
3755 (win32_process_target::detach): ... this.
3756 * win32-low.h (class win32_process_target): Update.
3758 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3760 Turn process_stratum_target's kill op into a method of
3763 * target.h (struct process_stratum_target): Remove the target op.
3764 (class process_target): Add the target op.
3766 Update the derived classes and callers below.
3768 * target.cc (kill_inferior): Update.
3769 * linux-low.cc (linux_target_ops): Update.
3770 (linux_kill): Turn into ...
3771 (linux_process_target::kill): ... this.
3772 * linux-low.h (class linux_process_target): Update.
3773 * lynx-low.cc (lynx_target_ops): Update.
3774 (lynx_kill): Turn into ...
3775 (lynx_process_target::kill): ... this.
3776 * lynx-low.h (class lynx_process_target): Update.
3777 * nto-low.cc (nto_target_ops): Update.
3778 (nto_kill): Turn into ...
3779 (nto_process_target::kill): ... this.
3780 * nto-low.h (class nto_process_target): Update.
3781 * win32-low.cc (win32_target_ops): Update.
3782 (win32_kill): Turn into ...
3783 (win32_process_target::kill): ... this.
3784 * win32-low.h (class win32_process_target): Update.
3786 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3788 Turn process_stratum_target's attach op into a method of
3791 * target.h (struct process_stratum_target): Remove the target op.
3792 (class process_target): Add the target op.
3793 (myattach): Update the macro.
3795 Update the derived classes and callers below.
3797 * linux-low.cc (linux_target_ops): Update.
3798 (linux_attach): Turn into ...
3799 (linux_process_target::attach): ... this.
3800 * linux-low.h (class linux_process_target): Update.
3801 * lynx-low.cc (lynx_target_ops): Update.
3802 (lynx_attach): Turn into ...
3803 (lynx_process_target::attach): ... this.
3804 * lynx-low.h (class lynx_process_target): Update.
3805 * nto-low.cc (nto_target_ops): Update.
3806 (nto_attach): Turn into ...
3807 (nto_process_target::attach): ... this.
3808 * nto-low.h (class nto_process_target): Update.
3809 * win32-low.cc (win32_target_ops): Update.
3810 (win32_attach): Turn into ...
3811 (win32_process_target::attach): ... this.
3812 * win32-low.h (class win32_process_target): Update.
3814 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3816 Turn process_stratum_target's post_create_inferior op into a method
3819 * target.h (struct process_stratum_target): Remove the target op.
3820 (class process_target): Add the target op.
3821 (target_post_create_inferior): Update the macro.
3822 * target.cc (process_target::post_create_inferior): Define.
3824 Update the derived classes and callers below.
3826 * linux-low.cc (linux_target_ops): Update.
3827 (linux_post_create_inferior): Turn into ...
3828 (linux_process_target::post_create_inferior): ... this.
3829 * linux-low.h (class linux_process_target): Update.
3830 * lynx-low.cc (lynx_target_ops): Update.
3831 * nto-low.cc (nto_target_ops): Update.
3832 * win32-low.cc (win32_target_ops): Update.
3834 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3836 Turn process_stratum_target's create_inferior op into a method of
3839 * target.h (struct process_stratum_target): Remove the target op.
3840 (class process_target): Add the target op.
3841 (create_inferior): Rename the macro to ...
3842 (target_create_inferior): ... this.
3844 Update the derived classes and callers below.
3846 * server.cc (handle_v_run): Update.
3847 (captured_main): Update.
3848 (process_serial_event): Update.
3849 * linux-low.cc (linux_target_ops): Update.
3850 (linux_create_inferior): Turn into ...
3851 (linux_process_target::create_inferior): ... this.
3852 * linux-low.h (class linux_process_target): Update.
3853 * lynx-low.cc (lynx_target_ops): Update.
3854 (lynx_create_inferior): Turn into ...
3855 (lynx_process_target::create_inferior): ... this.
3856 * lynx-low.h (class lynx_process_target): Update.
3857 * nto-low.cc (nto_target_ops): Update.
3858 (nto_create_inferior): Turn into ...
3859 (nto_process_target::create_inferior): ... this.
3860 * nto-low.h (class nto_process_target): Update.
3861 * win32-low.cc (win32_target_ops): Update.
3862 (win32_create_inferior): Turn into ...
3863 (win32_process_target::create_inferior): ... this.
3864 * win32-low.h (class win32_process_target): Update.
3866 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3868 * target.h (class process_target): New class definition.
3869 (struct process_stratum_target) <pt>: New field with type
3871 * linux-low.h (class linux_process_target): Define as a derived
3872 class of 'process_target'.
3873 * linux-low.cc (linux_target_ops): Add a linux_process_target*
3875 * lynx-low.h (class lynx_process_target): Define as a derived
3876 class of 'process_target'.
3877 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
3879 * nto-low.h (class nto_process_target): Define as a derived
3880 class of 'process_target'.
3881 * nto-low.cc (nto_target_ops): Add an nto_process_target*
3883 * win32-low.h (class win32_process_target): Define as a derived
3884 class of 'process_target'.
3885 * win32-low.cc (win32_target_ops): Add a win32_process_target*
3888 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
3890 * configure: Regenerate.
3892 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
3893 Andrew Burgess <andrew.burgess@embecosm.com>
3895 * linux-riscv-low.cc: New file.
3896 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
3897 and nat/riscv-linux-tdesc.c.
3898 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
3899 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
3902 2020-02-14 Tom Tromey <tom@tromey.com>
3904 * acinclude.m4: Don't include acx_configure_dir.m4.
3905 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
3906 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
3907 (all, install-only, uninstall, clean-info, clean)
3908 (maintainer-clean): Don't recurse.
3909 (subdir_do, all-lib): Remove.
3910 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
3912 (generated_files): Update.
3913 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
3914 * configure: Rebuild.
3915 * configure.ac: Don't configure gnulib or libiberty.
3918 2020-02-14 Eli Zaretskii <eliz@gnu.org>
3920 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
3921 preparing the command line for CreateProcess.
3922 (win32_create_inferior): Reflect the program name in debugging
3923 output that shows the process and its command line.
3925 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
3927 * Makefile.in: Rename source files from .c to .cc.
3928 * %.c: Rename to %.cc.
3929 * configure.ac: Rename server.c to server.cc.
3930 * configure: Re-generate.
3932 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
3934 * Makefile.in: Rename gdbsupport source files from .c to .cc.
3936 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
3938 * win32-low.c (win32_create_inferior): Set signal_pid.
3940 2020-02-12 Maciej W. Rozycki <macro@wdc.com>
3941 Pedro Alves <palves@redhat.com>
3943 Skip building gdbserver in a cross-configuration.
3944 * configure.srv: Set $gdbserver_host depending on whether $target
3945 is $host. Use $gdbserver_host instead of $host.
3947 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
3949 * configure: Re-generate.
3951 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
3953 * configure: Re-generate.
3955 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
3957 * acinclude.m4: Update warning.m4 path.
3959 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
3961 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
3962 (handle_exception): Set siginfo_er.
3963 (win32_xfer_siginfo): New function.
3965 2020-02-07 Tom Tromey <tom@tromey.com>
3966 Pedro Alves <palves@redhat.com>
3968 * README: Update build documentation.
3969 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
3971 * configure.ac: Update paths.
3972 * configure: Rebuild.
3973 * acinclude.m4: Update paths.
3974 * Makefile.in: Update include paths.
3975 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
3976 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
3977 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
3978 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
3979 (%-generated.c): Update paths.
3980 * Move entire directory from ../gdb/gdbserver.
3982 2020-01-29 Maciej W. Rozycki <macro@wdc.com>
3984 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
3986 2020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3988 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
3989 assignment instead of srv_linux_obj.
3991 2020-01-28 Hannes Domani <ssbssa@yahoo.de>
3993 * server.c (handle_qxfer_libraries): Write segment-address with
3996 2020-01-24 Hannes Domani <ssbssa@yahoo.de>
3998 * Makefile.in (install-strip): New target.
3999 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
4000 * aclocal.m4: Regenerate.
4001 * configure: Regenerate.
4002 * configure.ac: Add AM_PROG_INSTALL_STRIP.
4004 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
4006 * Makefile.in (SFILES): Adjust paths to point to real files.
4007 (OBS): Move waitstatus.o to target/waitstatus.o.
4008 (TAGS): Transform paths appropriately.
4010 (nat/%.o): ... this pattern rule.
4012 (target/%.o): ... this pattern rule.
4013 * configure.srv: Adjust paths throughout to include nat/ prefix
4014 with the revant files.
4015 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
4016 * configure: Regenerate.
4018 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
4020 * Makefile.in (TAGS): Remove config files from the recipe.
4022 2020-01-14 Tom Tromey <tom@tromey.com>
4024 * configure: Rebuild.
4025 * configure.ac: Remove any checks that were added to common.m4.
4026 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
4029 2020-01-14 Tom Tromey <tom@tromey.com>
4031 * server.h: Include config.h.
4032 * gdbreplay.c: Include config.h.
4033 * configure: Rebuild.
4034 * configure.ac: Don't source common.host.
4035 * acinclude.m4: Update path.
4036 * Makefile.in (INCSUPPORT): New variable.
4037 (INCLUDE_CFLAGS): Add INCSUPPORT.
4038 (SFILES): Update paths.
4039 (version-generated.c): Update path to create-version.sh.
4040 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
4042 2020-01-14 Tom Tromey <tom@tromey.com>
4044 * configure.ac (LIBS): Use WIN32APILIBS.
4045 (USE_WIN32API): Don't define.
4046 * configure: Rebuild.
4048 2020-01-14 Tom Tromey <tom@tromey.com>
4050 * configure: Rebuild.
4052 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4054 * Makefile.in (%-generated.c): Remove rule for files from
4057 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4059 * configure: Re-generate.
4061 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4063 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
4065 * tracepoint.c (stop_tracing, flush_trace_buffer,
4066 about_to_request_buffer_space, get_trace_state_variable_value,
4067 set_trace_state_variable_value, gdb_collect): Add declaration.
4069 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4071 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
4072 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
4073 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
4074 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
4075 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
4078 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4080 * inferiors.c: Include gdbsupport/common-inferior.h.
4082 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4084 * hostio-errno.c: Include hostio.h.
4086 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4088 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
4091 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4093 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
4094 * linux-arm-tdesc.h: Include arch/arm.h.
4096 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4098 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
4100 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4102 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
4103 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
4105 2020-01-10 Pedro Alves <palves@redhat.com>
4107 * fork-child.c (post_fork_inferior): Pass target down to
4109 * inferiors.c (switch_to_thread): Add process_stratum_target
4111 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
4112 * nto-low.c (nto_target_ops): Now a process_stratum_target.
4113 * linux-low.c (linux_target_ops): Now a process_stratum_target.
4114 * remote-utils.c (prepare_resume_reply): Pass the target to
4116 * target.c (the_target): Now a process_stratum_target.
4117 (done_accessing_memory): Pass the target to switch_to_thread.
4118 (set_target_ops): Ajust to use process_stratum_target.
4119 * target.h (struct target_ops): Rename to ...
4120 (struct process_stratum_target): ... this.
4121 (the_target, set_target_ops): Adjust.
4122 (prepare_to_access_memory): Adjust comment.
4123 * win32-low.c (child_xfer_memory): Adjust to use
4124 process_stratum_target.
4125 (win32_target_ops): Now a process_stratum_target.
4127 2020-01-06 Eli Zaretskii <eliz@gnu.org>
4128 Pedro Alves <palves@redhat.com>
4130 * win32-low.c (get_child_debug_event): Extract the fatal exception
4131 from the exit status and convert to the equivalent Posix signal
4133 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
4134 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
4136 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
4138 * Makefile.in: Use INSTALL_PROGRAM_ENV.
4140 2020-01-01 Joel Brobecker <brobecker@adacore.com>
4142 * server.c (gdbserver_version): Change copyright year to 2020.
4143 * gdbreplay.c (gdbreplay_version): Likewise.
4145 2019-12-19 Christian Biesinger <cbiesinger@google.com>
4147 * configure: Regenerate.
4148 * configure.ac: Quote variable arguments of test.
4150 2019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
4152 * Makefile.in: Fix build with GNU Make 3.81
4154 2019-12-16 Tom Tromey <tromey@adacore.com>
4156 * server.c (get_exec_file): Constify result.
4158 2019-12-10 Christian Biesinger <cbiesinger@google.com>
4160 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
4161 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
4162 * config.in: Regenerate.
4163 * configure: Regenerate.
4164 * configure.ac: Don't check for strerror.
4165 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
4166 Call safe_strerror instead of strerror.
4167 * server.h (strerror): Remove this now-unnecessary declaration.
4168 * tracepoint.c (init_named_socket): Call safe_strerror instead of
4170 (gdb_agent_helper_thread): Likewise.
4171 * utils.c (perror_with_name): Likewise.
4173 2019-11-26 Tom Tromey <tom@tromey.com>
4175 * configure, config.in: Rebuild.
4177 2019-11-26 Tom Tromey <tom@tromey.com>
4179 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
4180 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
4182 * configure, config.in: Rebuild.
4184 2019-11-26 Tom Tromey <tom@tromey.com>
4186 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
4187 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
4188 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
4189 * acinclude.m4: Include ax_pthread.m4.
4190 * config.in, configure: Rebuild.
4192 2019-11-26 Christian Biesinger <cbiesinger@google.com>
4194 * debug.c (debug_set_output): Call safe_strerror instead of
4196 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
4197 (linux_kill_one_lwp): Likewise.
4198 (linux_detach_one_lwp): Likewise.
4199 (linux_wait_for_event_filtered): Likewise.
4200 (store_register): Likewise.
4201 * lynx-low.c (lynx_attach): Likewise.
4202 * mem-break.c (insert_memory_breakpoint): Likewise.
4203 (remove_memory_breakpoint): Likewise.
4204 (delete_fast_tracepoint_jump): Likewise.
4205 (set_fast_tracepoint_jump): Likewise.
4206 (uninsert_fast_tracepoint_jumps_at): Likewise.
4207 (reinsert_fast_tracepoint_jumps_at): Likewise.
4208 * nto-low.c (nto_xfer_memory): Likewise.
4209 (nto_resume): Likewise.
4211 2019-11-20 Luis Machado <luis.machado@linaro.org>
4213 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
4214 instead of register count.
4215 * tdesc.c (tdesc_contains_feature): New function.
4216 * tdesc.h (tdesc_contains_feature): New prototype.
4218 2019-11-15 Christian Biesinger <cbiesinger@google.com>
4220 * Makefile.in: Add safe-strerror.c.
4221 * configure: Regenerate.
4222 * configure.ac: Don't source common.host.
4224 2019-11-15 Christian Biesinger <cbiesinger@google.com>
4226 * config.in: Regenerate.
4227 * configure: Regenerate.
4229 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
4231 * ax.c (ax_printf): Handle size_t_arg.
4233 2019-11-06 Christian Biesinger <cbiesinger@google.com>
4235 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
4236 * mi/mi-main.c (output_cores): Likewise.
4237 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
4238 (linux_xfer_osdata_modules): Likewise.
4239 * remote.c (register_remote_support_xml): Likewise.
4240 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
4241 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
4243 2019-11-01 Christian Biesinger <cbiesinger@google.com>
4245 * configure: Regenerate.
4246 * configure.ac: Remove check for strerror_r.
4248 2019-10-31 Christian Biesinger <cbiesinger@google.com>
4250 * config.in: Regenerate.
4251 * configure: Regenerate.
4252 * configure.ac: Also check for strerror_r.
4254 2019-10-31 Christian Biesinger <cbiesinger@google.com>
4256 * ax.h (debug_agent): Remove duplicate declaration.
4258 2019-10-26 Tom de Vries <tdevries@suse.de>
4260 * linux-aarch64-low.c: Fix typos in comments.
4261 * linux-arm-low.c: Same.
4262 * linux-low.c: Same.
4263 * linux-ppc-low.c: Same.
4264 * proc-service.c: Same.
4267 * tracepoint.c: Same.
4268 * win32-low.c: Same.
4270 2019-10-25 Tom Tromey <tromey@adacore.com>
4272 * utils.c (xstrdup): Remove.
4274 2019-10-23 Tom Tromey <tom@tromey.com>
4276 * configure, config.in: Rebuild.
4278 2019-10-23 Tom Tromey <tom@tromey.com>
4280 * configure: Rebuild.
4281 * acinclude.m4: Use m4_include, not sinclude.
4283 2019-10-17 Tom Tromey <tromey@adacore.com>
4285 * configure: Rebuild.
4286 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
4287 in AC_CONFIG_FILES invocation.
4288 * Makefile.in (stamp-h, Makefile): Use new-style config.status
4291 2019-10-16 Christian Biesinger <cbiesinger@google.com>
4293 * server.c: Include xml-builtin.h.
4294 (get_xml_features): Don't declare xml_builtins here.
4296 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4298 * Makefile.in: Remove references to vec-ipa.o.
4300 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4302 * Makefile.in: Remove references to vec.c.
4304 2019-10-02 Christian Biesinger <cbiesinger@google.com>
4306 * server.c (server_waiting): Change to bool.
4307 (extended_protocol): Likewise.
4308 (response_needed): Likewise.
4309 (exit_requested): Likewise.
4310 (run_once): Likewise.
4311 (report_no_resumed): Likewise.
4312 (non_stop): Likewise.
4313 (disable_packet_vCont): Likewise.
4314 (disable_packet_Tthread): Likewise.
4315 (disable_packet_qC): Likewise.
4316 (disable_packet_qfThreadInfo): Likewise.
4317 (handle_general_set): Update.
4318 (handle_detach): Update.
4319 (handle_monitor_command): Update.
4320 (handle_query): Update.
4321 (captured_main): Update.
4322 (process_serial_event): Update.
4323 * server.h (server_waiting): Change to bool.
4324 (disable_packet_vCont): Likewise.
4325 (disable_packet_Tthread): Likewise.
4326 (disable_packet_qC): Likewise.
4327 (disable_packet_qfThreadInfo): Likewise.
4328 (run_once): Likewise.
4329 (non_stop): Likewise.
4330 * target.c (target_stop_and_wait): Update.
4332 2019-10-02 Tom Tromey <tromey@adacore.com>
4334 * Makefile.in (SFILES): Add common-inferior.c.
4335 (OBS): Add common-inferior.o.
4336 * server.c (startup_with_shell): Don't define.
4338 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
4340 * linux-low.c (linux_low_read_btrace): Update for change to
4343 2019-09-20 Christian Biesinger <cbiesinger@google.com>
4345 * debug.c (debug_threads): Remove comment in favor of the header.
4346 * debug.h (using_threads): Add declaration.
4347 (debug_threads): Add comment.
4348 * linux-aarch64-low.c: Include debug.h and remove declaration of
4350 * nto-low.c: Likewise.
4351 * remote-utils.c: Likewise.
4352 * thread-db.c: Likewise.
4354 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
4356 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
4357 and powerpc-cell64l-ipa.o.
4358 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
4359 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
4360 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
4363 * spu-low.c: Remove file.
4365 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
4366 (parse_spufs_run): Remove.
4367 (ppc_get_pc): Remove Cell/B.E. support.
4368 (ppc_set_pc): Likewise.
4369 (ppc_breakpoint_at): Likewise.
4370 (ppc_arch_setup): Likewise.
4371 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
4372 tdesc_powerpc_cell32l.
4373 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
4374 or init_registers_powerpc_cell32l.
4375 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
4376 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
4377 or init_registers_powerpc_cell32l.
4378 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
4379 (init_registers_powerpc_cell32l): Remove prototype.
4380 (init_registers_powerpc_cell64l): Likewise.
4382 * target.h (struct target_ops): Remove qxfer_spu member.
4383 * server.c (handle_qxfer_spu): Remove.
4384 (qxfer_packets): Remove entry for "spu".
4385 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
4386 * linux-low.c (SPUFS_MAGIC): Remove.
4387 (spu_enumerate_spu_ids): Remove.
4388 (linux_qxfer_spu): Remove.
4389 (linux_target_ops): Remove qxfer_spu member.
4390 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
4391 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
4392 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
4394 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4396 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
4397 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
4398 * config.in: Regenerate.
4399 * configure: Regenerate.
4401 2019-08-15 Tom Tromey <tromey@adacore.com>
4403 * target.c (target_write_memory): Use gdb::byte_vector.
4405 2019-08-15 Tom Tromey <tromey@adacore.com>
4407 * tracepoint.c (write_inferior_data_pointer)
4408 (write_inferior_integer, write_inferior_int8)
4409 (write_inferior_uinteger, m_tracepoint_action_download)
4410 (r_tracepoint_action_download, x_tracepoint_action_download)
4411 (l_tracepoint_action_download, clear_inferior_trace_buffer)
4412 (download_agent_expr, download_tracepoint_1)
4413 (download_trace_state_variables, upload_fast_traceframes): Update.
4414 * server.c (gdb_write_memory): Update.
4415 * remote-utils.c (relocate_instruction): Update.
4416 * proc-service.c (ps_pdwrite): Update.
4417 * mem-break.c (remove_memory_breakpoint)
4418 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
4419 (uninsert_fast_tracepoint_jumps_at)
4420 (reinsert_fast_tracepoint_jumps_at): Update.
4421 * linux-x86-low.c (append_insns)
4422 (i386_install_fast_tracepoint_jump_pad)
4423 (amd64_write_goto_address, i386_write_goto_address): Update.
4424 * linux-s390-low.c (append_insns, s390_write_goto_address):
4426 * linux-ppc-low.c (ppc_relocate_instruction)
4427 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
4428 (ppc_write_goto_address): Update.
4429 * linux-aarch64-low.c (append_insns): Update.
4430 * target.h (struct target_ops): Update.
4431 (write_inferior_memory): Don't declare.
4432 * target.c (target_write_memory): Rename from
4433 write_inferior_memory. Remove old target_write_memory.
4435 2019-08-15 Tom Tromey <tromey@adacore.com>
4437 * target.c (write_inferior_memory): Use std::vector.
4439 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
4442 * configure.ac: Drop enable-libmcheck support.
4443 * configure, config.in: Rebuild.
4444 * acinclude.m4: Don't include it.
4446 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4448 * configure.srv: Remove Arm xml files.
4450 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4452 * configure.srv: Add new files. Remove xml generated files.
4453 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
4455 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
4456 * linux-aarch32-tdesc.c: New file.
4457 * linux-aarch32-tdesc.h: New file.
4458 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
4459 * linux-arm-low.c (init_registers_arm, tdesc_arm)
4460 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
4461 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
4462 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
4463 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
4464 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
4465 (arm_read_description): Call arm_linux_read_description.
4466 (initialize_low_arch): Don't init registers.
4467 * linux-arm-tdesc.c: New file.
4468 * linux-arm-tdesc.h: New file.
4470 2019-07-10 Alan Hayward <alan.hayward@arm.com>
4472 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
4473 Move counter inside for.
4474 (arm_read_description): Check ptrace earlier.
4475 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
4477 2019-07-09 Tom Tromey <tom@tromey.com>
4479 * configure: Rebuild.
4480 * configure.ac: Change common to gdbsupport.
4481 * acinclude.m4: Change common to gdbsupport.
4482 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
4483 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
4484 common to gdbsupport.
4485 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
4486 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
4487 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
4488 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
4489 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
4490 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
4491 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
4492 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
4493 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
4494 common to gdbsupport.
4496 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4498 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
4500 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
4502 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4504 * configure.srv: Remove legacy xml.
4505 * linux-aarch64-low.c (initialize_low_arch): Remove
4506 initialize_low_tdesc call.
4507 * linux-aarch64-tdesc-selftest.c: Remove file.
4508 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
4509 * linux-x86-low.c (initialize_low_arch): Remove
4510 initialize_low_tdesc call.
4511 * linux-x86-tdesc-selftest.c: Remove file.
4512 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
4514 2019-06-20 Tom de Vries <tdevries@suse.de>
4516 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
4517 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
4519 2019-06-19 Tom de Vries <tdevries@suse.de>
4521 * debug.h (debug_write): Change return type to ssize_t.
4522 * debug.c (debug_write): Same.
4524 2019-06-14 Tom Tromey <tom@tromey.com>
4526 * configure.ac: Use new path to gnulib.
4527 * configure: Rebuild.
4528 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
4531 2019-06-11 Tom Tromey <tom@tromey.com>
4533 * Makefile.in (SFILES): Add alloc.c.
4535 (IPA_OBJS): Add alloc-ipa.o.
4536 (alloc-ipa.o): New target.
4537 (%.o: ../%.c): New pattern rule.
4539 2019-06-10 Tom Tromey <tromey@adacore.com>
4541 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
4542 end warning with a newline.
4543 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
4545 * thread-db.c (attach_thread): Don't end warning with a newline.
4546 (thread_db_notice_clone): Likewise.
4547 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
4549 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
4550 end warning with a newline.
4552 2019-06-04 Pedro Alves <palves@redhat.com>
4554 * server.c (captured_main): Use make_unique_xstrdup.
4556 2019-06-02 Tom Tromey <tom@tromey.com>
4558 * gdbreplay.c (fromhex): Remove.
4559 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
4561 2019-05-29 Tom Tromey <tromey@adacore.com>
4563 * configure: Rebuild.
4565 2019-05-06 Kevin Buettner <kevinb@redhat.com>
4567 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
4568 sign extension code on 32-bit builds.
4570 2019-05-03 Eli Zaretskii <eliz@gnu.org>
4573 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
4575 2019-04-19 Tom Tromey <tom@tromey.com>
4577 * server.c (struct vstop_notif): Derive from notif_event.
4579 (queue_stop_reply): Update.
4580 (remove_all_on_match_ptid): Change type. Rewrite.
4581 (discard_queued_stop_replies): Rewrite.
4582 (in_queued_stop_replies_ptid): Change type.
4583 (in_queued_stop_replies): Rewrite.
4584 (notif_stop): Update.
4585 (queue_stop_reply_callback): Update.
4586 (captured_main): Don't call initialize_notif.
4587 (push_stop_notification): Update.
4588 * notif.c (notif_write_event, handle_notif_ack)
4589 (notif_event_enque, notif_push): Update.
4590 (notif_event_xfree, initialize_notif): Remove.
4591 * notif.h (struct notif_event): Include <list>, not
4593 (struct notif_server) <queue>: Now a std::list.
4594 (notif_event_p): Remove typedef.
4595 (initialize_notif): Don't declare.
4596 (struct notif_event): Add virtual destructor.
4598 2019-04-17 Alan Hayward <alan.hayward@arm.com>
4600 * ax.c (ax_vdebug): Call debug_printf.
4601 * debug.c (debug_write): New function.
4602 * debug.h (debug_write): New declaration.
4603 * linux-low.c (sigchld_handler): Call debug_write.
4605 2019-04-17 Alan Hayward <alan.hayward@arm.com>
4607 * debug.c (debug_set_output): New function.
4608 (debug_vprintf): Send output to debug_file.
4609 (debug_flush): Likewise.
4610 * debug.h (debug_set_output): New declaration.
4611 * server.c (handle_monitor_command): Add debug-file option.
4612 (captured_main): Likewise.
4614 2019-04-17 Alan Hayward <alan.hayward@arm.com>
4616 * debug.c (remote_debug): Add definition.
4617 * debug.h (remote_debug): Add declaration.
4618 * hostio.c (remote_debug): Remove declaration.
4619 * remote-utils.c (struct ui_file): Likewise.
4620 (remote_debug): Likewise.
4621 * remote-utils.h (remote_debug): Likewise,
4622 * server.c (remote_debug): Remove definition.
4624 2019-04-10 Kevin Buettner <kevinb@redhat.com>
4626 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
4627 when using a 64-bit gdbserver.
4629 2019-04-09 Tom Tromey <tromey@adacore.com>
4631 * linux-low.c (select_event_lwp): Use find_thread_in_random.
4633 2019-04-08 Tom Tromey <tom@tromey.com>
4635 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
4637 (linux_resume_one_lwp): Likewise.
4639 2019-04-08 Tom Tromey <tom@tromey.com>
4641 * gdbreplay.c: Update.
4642 * linux-low.c: Update.
4645 2019-04-08 Tom Tromey <tom@tromey.com>
4647 * server.c: Use C++ exception handling.
4648 * linux-low.c: Use C++ exception handling.
4649 * gdbreplay.c: Use C++ exception handling.
4651 2019-04-08 Tom Tromey <tom@tromey.com>
4653 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
4654 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
4655 (captured_main, main): Update.
4656 * gdbreplay.c (main): Update.
4658 2019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4660 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
4661 value in argument pointer, return 1 if the entry is found and 0
4662 otherwise. Move comment.
4663 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
4664 * linux-low.h (linux_get_auxv): Declare.
4665 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
4667 2019-04-05 Tom Tromey <tromey@adacore.com>
4669 * server.c (gdbserver_usage): Use upper-case for metasyntactic
4672 2019-03-28 Alan Hayward <alan.hayward@arm.com>
4674 * linux-low.c (AT_HWCAP2): Add define if not already included.
4676 2019-03-26 Alan Hayward <alan.hayward@arm.com>
4678 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
4679 (aarch64_arch_setup): Call linux_get_hwcap.
4680 * linux-arm-low.c (arm_get_hwcap): Remove function.
4681 (arm_read_description): Call linux_get_hwcap.
4682 * linux-low.c (linux_get_auxv): New function.
4683 (linux_get_hwcap): Likewise.
4684 (linux_get_hwcap2): Likewise.
4685 * linux-low.h (linux_get_hwcap): New declaration.
4686 (linux_get_hwcap2): Likewise.
4687 * linux-ppc-low.c (ppc_get_auxv): Remove function.
4688 (ppc_arch_setup): Call linux_get_hwcap.
4689 * linux-s390-low.c (s390_get_hwcap): Remove function.
4690 (s390_arch_setup): Call linux_get_hwcap.
4692 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4693 Jiong Wang <jiong.wang@arm.com>
4695 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
4696 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
4698 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
4700 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4701 Jiong Wang <jiong.wang@arm.com>
4703 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
4704 (aarch64_get_hwcap): New function.
4705 (aarch64_arch_setup): Read APIA hwcap.
4707 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4708 Jiong Wang <jiong.wang@arm.com>
4710 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
4711 (initialize_low_tracepoint): Likewise.
4712 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
4713 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
4714 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
4715 (aarch64_linux_read_description): Likewise.
4716 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
4718 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4720 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
4721 i386_create_target_description for 'segments' parameter.
4722 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
4723 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
4724 * win32-i386-low.c (i386_arch_setup): Likewise.
4726 2019-03-12 Tom Tromey <tromey@adacore.com>
4728 * linux-low.c (iterate_over_lwps): Update.
4730 2019-03-06 Tom Tromey <tom@tromey.com>
4732 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
4733 (captured_main): Use SCOPE_EXIT.
4735 2019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
4737 * configure.srv: Use '$enable_unittest' instead of '$development'
4738 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
4741 2019-02-27 Tom Tromey <tromey@adacore.com>
4743 * gdbreplay.c (logchar): Handle \r\n.
4745 2019-02-07 Alan Hayward <alan.hayward@arm.com>
4747 * linux-low.c (linux_attach): Add process before lwp.
4748 * server.c (attach_inferior): Check if already attached.
4750 2019-02-07 Tom Tromey <tom@tromey.com>
4752 * x86-tdesc.h: Rename include guard.
4753 * x86-low.h: Add include guard.
4754 * wincecompat.h: Rename include guard.
4755 * win32-low.h: Add include guard.
4756 * utils.h: Rename include guard.
4757 * tracepoint.h: Rename include guard.
4758 * tdesc.h: Rename include guard.
4759 * target.h: Rename include guard.
4760 * server.h: Rename include guard.
4761 * remote-utils.h: Rename include guard.
4762 * regcache.h: Rename include guard.
4763 * nto-low.h: Rename include guard.
4764 * notif.h: Add include guard.
4765 * mem-break.h: Rename include guard.
4766 * lynx-low.h: Add include guard.
4767 * linux-x86-tdesc.h: Add include guard.
4768 * linux-s390-tdesc.h: Add include guard.
4769 * linux-ppc-tdesc-init.h: Add include guard.
4770 * linux-low.h: Add include guard.
4771 * linux-aarch64-tdesc.h: Add include guard.
4772 * linux-aarch32-low.h: Add include guard.
4773 * inferiors.h: Rename include guard.
4774 * i387-fp.h: Rename include guard.
4775 * hostio.h: Rename include guard.
4776 * gdbthread.h: Rename include guard.
4777 * gdb_proc_service.h: Rename include guard.
4778 * event-loop.h: Rename include guard.
4779 * dll.h: Rename include guard.
4780 * debug.h: Rename include guard.
4781 * ax.h: Rename include guard.
4783 2018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
4786 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
4787 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
4789 2019-01-25 Tom Tromey <tom@tromey.com>
4791 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
4793 2019-01-25 Tom Tromey <tom@tromey.com>
4795 * win32-low.c: Fix common/ includes.
4796 * win32-i386-low.c: Fix common/ includes.
4797 * tracepoint.c: Fix common/ includes.
4798 * thread-db.c: Fix common/ includes.
4799 * target.h: Fix common/ includes.
4800 * symbol.c: Fix common/ includes.
4801 * spu-low.c: Fix common/ includes.
4802 * server.h: Fix common/ includes.
4803 * server.c: Fix common/ includes.
4804 * remote-utils.c: Fix common/ includes.
4805 * regcache.h: Fix common/ includes.
4806 * regcache.c: Fix common/ includes.
4807 * nto-x86-low.c: Fix common/ includes.
4808 * notif.h: Fix common/ includes.
4809 * mem-break.h: Fix common/ includes.
4810 * lynx-low.c: Fix common/ includes.
4811 * lynx-i386-low.c: Fix common/ includes.
4812 * linux-x86-tdesc-selftest.c: Fix common/ includes.
4813 * linux-x86-low.c: Fix common/ includes.
4814 * linux-low.c: Fix common/ includes.
4815 * inferiors.h: Fix common/ includes.
4816 * i387-fp.c: Fix common/ includes.
4817 * hostio.c: Fix common/ includes.
4818 * hostio-errno.c: Fix common/ includes.
4819 * gdbthread.h: Fix common/ includes.
4820 * gdbreplay.c: Fix common/ includes.
4821 * fork-child.c: Fix common/ includes.
4822 * event-loop.c: Fix common/ includes.
4824 (enum gdb_agent_op): Fix common/ includes.
4826 2019-01-21 Tom Tromey <tom@tromey.com>
4828 * tracepoint.c: Fix includes.
4829 * remote-utils.c: Fix includes.
4830 * linux-x86-low.c: Fix includes.
4832 2019-01-01 Joel Brobecker <brobecker@adacore.com>
4834 * gdbreplay.c (gdbreplay_version): Update copyright year in
4836 * server.c (gdbserver_version): Likewise.
4838 2018-12-05 Alan Hayward <alan.hayward@arm.com>
4840 * linux-low.c (add_lwp): Switch ordering.
4842 2018-11-29 Tom Tromey <tom@tromey.com>
4844 * win32-low.c (win32_join): Take pid, not process.
4845 * target.h (struct target_ops) <join>: Change argument type.
4846 (join_inferior): Change argument name.
4847 * spu-low.c (spu_join): Take pid, not process.
4848 * server.c (handle_detach): Preserve pid before destroying
4850 * lynx-low.c (lynx_join): Take pid, not process.
4851 * linux-low.c (linux_join): Take pid, not process.
4853 2018-11-23 Alan Hayward <alan.hayward@arm.com>
4855 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
4856 (aarch64_cannot_fetch_register): Likewise.
4857 (struct linux_target_ops): Update references.
4859 2018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4861 * linux-ppc-low.c: Include nat/linux-ptrace.h.
4863 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4865 * configure.srv (ipa_ppc_linux_regobj): Add
4866 powerpc-isa207-htm-vsx32l-ipa.o and
4867 powerpc-isa207-htm-vsx64l-ipa.o.
4868 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
4869 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
4870 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
4871 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
4872 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
4873 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
4874 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
4875 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
4876 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
4877 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
4878 (init_registers_powerpc_isa207_htm_vsx32l)
4879 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
4880 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
4881 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
4882 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
4883 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
4884 (ppc_store_tm_ctarregset): New functions.
4885 (ppc_regsets): Add entries for HTM regsets.
4886 (ppc_arch_setup): Set htm in features struct when needed. Set
4887 sizes for the HTM regsets.
4888 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
4889 (initialize_low_arch): Call
4890 init_registers_powerpc_isa207_htm_vsx32l and
4891 init_registers_powerpc_isa207_htm_vsx64l.
4892 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
4893 PPC_TDESC_ISA207_HTM_VSX.
4894 (initialize_low_tracepoint): Call
4895 init_registers_powerpc_isa207_htm_vsx32l and
4896 init_registers_powerpc_isa207_htm_vsx64l.
4898 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4900 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
4901 rs6000/power-linux-pmu.xml to srv_xmlfiles.
4902 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
4903 (ppc_store_pmuregset): New functions.
4904 (ppc_regsets): Add entries for ebb and pmu regsets.
4905 (ppc_arch_setup): Set isa207 in features struct if the ebb and
4906 pmu regsets are available. Set sizes for these regsets.
4908 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4910 * configure.srv (ipa_ppc_linux_regobj): Add
4911 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
4912 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
4913 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
4914 rs6000/powerpc-isa207-vsx32l.xml, and
4915 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
4916 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
4917 <PPC_TDESC_ISA207_VSX>: New enum value.
4918 (init_registers_powerpc_isa207_vsx32l): Declare.
4919 (init_registers_powerpc_isa207_vsx64l): Declare.
4920 * linux-ppc-low.c (ppc_fill_tarregset): New function.
4921 (ppc_store_tarregset): New function.
4922 (ppc_regsets): Add entry for the TAR regset.
4923 (ppc_arch_setup): Set isa207 in features struct when needed. Set
4924 size for the TAR regsets.
4925 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
4926 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
4927 and init_registers_powerpc_isa207_vsx64l.
4928 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
4929 (initialize_low_tracepoint): Call
4930 init_registers_powerpc_isa207_vsx32l and
4931 init_registers_powerpc_isa207_vsx64l.
4933 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4934 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4936 * configure.srv (ipa_ppc_linux_regobj): Add
4937 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
4938 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
4939 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
4940 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
4941 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
4942 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
4943 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
4944 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
4945 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
4946 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
4947 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
4948 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
4949 (ppc_hwcap): Add comment.
4950 (ppc_hwcap2): New global.
4951 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
4952 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
4953 (ppc_regsets): Add entries for the DSCR and PPR regsets.
4954 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
4955 when needed. Set sizes for the the DSCR and PPR regsets.
4956 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
4957 (initialize_low_arch): Call
4958 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
4959 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
4960 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
4961 PPC_TDESC_ISA205_PPR_DSCR_VSX.
4962 (initialize_low_tracepoint): Call
4963 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
4964 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
4966 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4968 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
4970 2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
4971 Simon Marchi <simark@simark.ca>
4973 * acinclude.m4: Include "../selftest.m4".
4974 * configure: Regenerate.
4975 * configure.ac: Use "GDB_AC_SELFTEST".
4976 * configure.srv: Use "$enable_unittests" instead of
4977 "$development" when checking whether unit tests have been
4979 * server.c (captured_main): Update message informing that
4980 selftests have been disabled.
4982 2018-10-04 Tom Tromey <tom@tromey.com>
4984 * configure: Rebuild.
4986 2018-10-04 Tom Tromey <tom@tromey.com>
4988 * server.c (handle_status): Rename inner "thread".
4989 (process_serial_event): Declare "res" in 'm' case.
4990 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
4991 (iterate_over_lwps): Rename inner "thread".
4992 (linux_qxfer_libraries_svr4): Rename inner "len".
4993 * gdbthread.h (find_thread_in_random): Rename inner "thread".
4995 2018-10-01 Gary Benson <gbenson@redhat.com>
4997 * gdb_proc_service.h: Moved common code to
4998 common/gdb_proc_service.h.
5000 2018-10-01 Gary Benson <gbenson@redhat.com>
5002 * gdb_proc_service.h: Synchronize comments and whitespace with
5003 GDB's version of this file.
5005 2018-09-25 Tom Tromey <tom@tromey.com>
5007 * configure: Rebuild.
5008 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
5010 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5012 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
5013 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
5014 ($(IPA_LIB)): Sort IPA_OBJS.
5016 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5018 * Makefile.in: Remove references to $(ADD_DEPS).
5020 2018-09-16 Tom Tromey <tom@tromey.com>
5022 * remote-utils.c (remote_open): Use GNU style for metasyntactic
5024 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
5027 2018-09-05 Tom Tromey <tom@tromey.com>
5029 * configure: Rebuild.
5031 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
5034 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
5036 2018-08-27 Tom Tromey <tom@tromey.com>
5039 * configure: Rebuild.
5041 2018-08-27 Tom Tromey <tom@tromey.com>
5043 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
5044 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
5045 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
5046 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
5047 (s390x_emit_stack_adjust): Add casts to unsigned char.
5049 2018-08-22 Simon Marchi <simon.marchi@ericsson.com>
5053 * server.h (struct client_state) <disable_randomization>:
5056 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5058 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
5060 (mips_supply_ptrace_register): Likewise.
5062 2018-07-22 Tom Tromey <tom@tromey.com>
5064 * configure: Rebuild.
5066 2018-07-22 Tom Tromey <tom@tromey.com>
5068 * win32-low.c (win32_create_inferior): Remove unused variables.
5069 * gdbreplay.c (remote_open): Remove unused variable.
5070 * remote-utils.c (remote_prepare): Remove unused variable.
5071 * x86-tdesc.h (X86_TDESC_H): Define.
5072 (amd64_expedite_regs): Define conditionally.
5073 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
5074 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
5075 * remote-utils.c (readchar): Remove unused variable.
5077 2018-07-13 Pedro Alves <palves@redhat.com>
5079 * linux-low.c (linux_kill): Change parameter to process_info
5080 pointer instead of pid. Adjust.
5081 * lynx-low.c (lynx_kill): Likewise.
5082 * nto-low.c (nto_kill): Likewise.
5083 * spu-low.c (spu_kill): Likewise.
5084 * win32-low.c (win32_kill): Likewise.
5085 * server.c (handle_v_kill, kill_inferior_callback)
5086 (detach_or_kill_for_exit): Adjust.
5087 * target.c (kill_inferior): Change parameter to process_info
5088 pointer instead of pid. Adjust.
5089 * target.h (struct target_ops) <kill>: Change parameter to
5090 process_info pointer instead of pid. Adjust all implementations
5092 (kill_inferior): Likewise.
5094 2018-07-13 Pedro Alves <palves@redhat.com>
5096 * linux-low.c (linux_detach, linux_join): Change parameter to
5097 process_info pointer instead of pid. Adjust.
5098 * lynx-low.c (lynx_detach, lynx_join): Likewise.
5099 * nto-low.c (nto_detach): Likewise.
5100 * spu-low.c (spu_detach, spu_join): Likewise.
5101 * win32-low.c (win32_detach, win32_join): Likewise.
5102 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
5103 * target.h (struct target_ops) <detach, join>: Change parameter to
5104 process_info pointer instead of pid. Adjust all implementations
5106 (detach_inferior, join_inferior): Rename 'pid' parameter to
5109 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
5110 Jan Kratochvil <jan.kratochvil@redhat.com>
5111 Paul Fertser <fercerpav@gmail.com>
5112 Tsutomu Seki <sekiriki@gmail.com>
5114 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
5115 (OBS): Add 'common/netstuff.o'.
5116 (GDBREPLAY_OBS): Likewise.
5117 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
5118 (remote_open): Implement support for IPv6
5120 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
5122 (handle_accept_event): Accept connections from IPv6 sources.
5123 (remote_prepare): Handle IPv6-style hostnames; implement
5124 support for IPv6 connections.
5125 (remote_open): Implement support for printing connections from
5128 2018-07-11 Pedro Alves <palves@redhat.com>
5131 * mem-break.c (any_persistent_commands): Add process_info
5132 parameter and use it instead of relying on the current process.
5133 Change return type to bool.
5134 * mem-break.h (any_persistent_commands): Add process_info
5135 parameter and change return type to bool.
5136 * server.c (handle_detach): Remove require_running_or_return call.
5137 Look up the process_info for the process we're about to detach.
5138 If not found, return back error to GDB. Adjust
5139 any_persistent_commands call to pass down a process pointer.
5141 2018-07-11 Pedro Alves <palves@redhat.com>
5143 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
5144 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
5145 instead of collect_register_by_name.
5146 * regcache.c (regcache_raw_get_unsigned_by_name): New.
5147 * regcache.h (regcache_raw_get_unsigned_by_name): New.
5149 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
5150 Pedro Alves <palves@redhat.com>
5152 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
5154 2018-07-03 Tom Tromey <tom@tromey.com>
5156 * linux-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 * win32-low.c: Update.
5166 2018-07-03 Tom Tromey <tom@tromey.com>
5170 2018-07-03 Tom Tromey <tom@tromey.com>
5172 * linux-low.c: Update.
5174 2018-07-03 Tom Tromey <tom@tromey.com>
5178 2018-07-03 Tom Tromey <tom@tromey.com>
5180 * linux-low.c: Update.
5181 * linux-mips-low.c: Update.
5182 * lynx-low.c: Update.
5183 * nto-low.c: Update.
5184 * remote-utils.c: Update.
5186 * spu-low.c: Update.
5188 * thread-db.c: Update.
5190 2018-07-03 Tom Tromey <tom@tromey.com>
5192 * linux-low.c: Update.
5193 * linux-mips-low.c: Update.
5194 * lynx-low.c: Update.
5195 * mem-break.c: Update.
5196 * nto-low.c: Update.
5197 * remote-utils.c: Update.
5199 * spu-low.c: Update.
5201 * tracepoint.c: Update.
5203 2018-07-03 Tom Tromey <tom@tromey.com>
5205 * linux-low.c: Update.
5206 * linux-ppc-low.c: Update.
5207 * linux-x86-low.c: Update.
5208 * proc-service.c: Update.
5210 * spu-low.c: Update.
5211 * thread-db.c: Update.
5212 * win32-low.c: Update.
5214 2018-07-03 Tom Tromey <tom@tromey.com>
5216 * linux-low.c: Update.
5217 * lynx-low.c: Update.
5218 * nto-low.c: Update.
5219 * remote-utils.c: Update.
5220 * spu-low.c: Update.
5221 * thread-db.c: Update.
5222 * win32-low.c: Update.
5224 2018-06-29 Joel Brobecker <brobecker@adacore.com>
5226 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
5227 parameter in call to 'amd64_create_target_description'.
5229 2018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5231 * x86-tdesc.h: Remove executable permission flag.
5233 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5235 * configure.ac: Remove AC_PREREQ, add missing quoting.
5236 * configure: Re-generate.
5237 * config.in: Re-generate.
5238 * aclocal.m4: Re-generate.
5240 2018-06-18 Simon Marchi <simon.marchi@ericsson.com>
5242 * tracepoint.h (current_traceframe): Remove declaration.
5244 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5246 * linux-aarch64-low.c (is_sve_tdesc): New function.
5247 (aarch64_sve_regs_copy_to_regcache): Likewise.
5248 (aarch64_sve_regs_copy_from_regcache): Likewise.
5249 (aarch64_regs_info): Add SVE checks.
5250 (initialize_low_arch): Initialize SVE.
5252 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5254 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
5256 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5258 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
5259 (initialize_low_tracepoint): Likewise
5260 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
5261 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
5263 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
5265 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
5267 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5269 * server.h (PBUFSIZ): Increase size
5271 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5273 * regcache.c (regcache::raw_compare): New function.
5274 * regcache.h (regcache::raw_compare): New declaration.
5276 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5278 * regcache.c (new_register_cache): Use new.
5279 (free_register_cache): Use delete.
5280 (register_data): Use const.
5281 (supply_register): Move body inside regcache.
5282 (regcache::raw_supply): New override function.
5283 (collect_register): Move body inside regcache.
5284 (regcache::raw_collect): New override function.
5285 (regcache::get_register_status): New override function.
5286 * regcache.h (struct regcache): Inherit from reg_buffer_common.
5288 2018-06-09 Tom Tromey <tom@tromey.com>
5290 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
5292 (event_queue): Use std::queue.
5293 (gdb_event_xfree): Remove.
5294 (initialize_event_loop, process_event, wait_for_event): Update.
5296 2018-06-08 Stan Cox <scox@redhat.com>
5298 * win32-low.c (win32_create_inferior): last_ptid and last_status
5299 moved to client_state.
5301 2018-06-08 Pedro Alves <palves@redhat.com>
5303 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
5304 common/common-exceptions.o, common/common-utils.o,
5305 common/errors.o, common/print-utils.o and utils.o.
5306 * gdbreplay.c: Include "common-defs.h" instead of the two
5307 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
5308 string.h or alloca.h.
5309 (perror_with_name): Delete.
5310 (remote_open): Use xstrdup instead of strdup.
5311 (main): Rename to ...
5312 (captured_main): ... this.
5315 2018-06-08 Tom Tromey <tom@tromey.com>
5317 * linux-low.c (linux_low_read_btrace): Update.
5319 2018-06-04 Stan Cox <scox@redhat.com>
5321 * server.h (struct client_state): New.
5322 * server.c (cont_thread, general_thread, multi_process)
5323 (report_fork_events, report_vfork_events, report_exec_events)
5324 (report_thread_events, swbreak_feature, hwbreak_feature)
5325 (vCont_supported, disable_randomization, pass_signals)
5326 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
5327 Moved to client_state.
5328 * remote-utils.c (remote_debug, noack_mode)
5329 (transport_is_reliable): Moved to client_state.
5330 * tracepoint.c (current_traceframe): Moved to client_state.
5333 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
5334 linux-low.c, remote-utils.h, target.c: Use client_state.
5336 2018-05-31 Alan Hayward <alan.hayward@arm.com>
5338 * configure.srv: Add new c/h file.
5340 2018-05-31 Alan Hayward <alan.hayward@arm.com>
5342 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
5345 2018-05-25 Maciej W. Rozycki <macro@mips.com>
5347 * gdb.arch/mips-fpregset-core.exp: New test.
5348 * gdb.arch/mips-fpregset-core.c: New test source.
5350 2018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
5353 * hostio.c (require_int): Do not report overflow for integers
5354 between 0xfffffff and 0x7fffffff.
5356 2018-05-22 Maciej W. Rozycki <macro@mips.com>
5358 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
5359 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
5360 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
5362 (the_low_target): Wire them.
5364 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5366 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
5367 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
5368 mode. Call collect_register_by_name with vscr using
5369 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
5370 (ppc_store_vrregset): Add and set vscr_offset variable as in
5371 ppc_fill_vrregset. Call supply_register_by_name with vscr using
5374 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5376 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
5377 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
5378 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
5380 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5382 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
5383 (ppc_store_vsxregset): Likewise.
5384 (ppc_fill_vrregset): Likewise.
5385 (ppc_store_vrregset): Likewise.
5386 (ppc_fill_evrregset): Likewise.
5387 (ppc_store_evrregset): Likewise.
5388 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
5389 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
5392 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5394 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
5395 wordsize of the inferior. Call ppc_linux_target_wordsize.
5397 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5399 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
5400 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
5401 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
5402 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
5403 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
5404 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
5405 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
5406 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
5407 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
5408 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
5409 (tdesc_powerpc_e500l): Remove.
5410 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
5411 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
5412 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
5413 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
5415 (ppc_arch_setup): Remove target description matching code. Fill a
5416 ppc_linux_features struct and call ppc_linux_match_description
5419 2018-05-22 Maciej W. Rozycki <macro@mips.com>
5421 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
5422 width of the requested register exceeds the width of the
5424 (mips_cannot_store_register): Likewise.
5426 2018-05-21 Maciej W. Rozycki <macro@mips.com>
5428 * linux-mips-low.c (mips_fetch_register): New function. Update
5430 (mips_store_gregset): Supply 0 rather than $restart for $zero.
5431 (the_low_target): Wire `mips_fetch_register'.
5433 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5435 * lynx-i386-low.c (LYNXOS_178): New macro.
5436 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
5437 the layout on LynxOS-178.
5438 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
5439 handle floating point registers that are not supported by
5442 2018-05-10 Tom Tromey <tom@tromey.com>
5444 * configure: Rebuild.
5446 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5449 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
5450 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
5451 Use it to set the expedite_regs field in the given tdesc.
5452 * x86-tdesc.h: New file.
5453 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
5454 Adjust following the addition of the new expedite_regs parameter
5455 to init_target_desc.
5456 * linux-tic6x-low.c (tic6x_read_description): Likewise.
5457 * linux-x86-tdesc.c: #include "x86-tdesc.h".
5458 (i386_linux_read_description, amd64_linux_read_description):
5459 Adjust following the addition of the new expedite_regs parameter
5460 to init_target_desc.
5461 * lynx-i386-low.c: #include "x86-tdesc.h".
5462 (lynx_i386_arch_setup): Adjust following the addition of the new
5463 expedite_regs parameter to init_target_desc.
5464 * nto-x86-low.c: #include "x86-tdesc.h".
5465 (nto_x86_arch_setup): Adjust following the addition of the new
5466 expedite_regs parameter to init_target_desc.
5467 * win32-i386-low.c: #include "x86-tdesc.h".
5468 (i386_arch_setup): Adjust following the addition of the new
5469 expedite_regs parameter to init_target_desc.
5471 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5474 * win32-low.c (win32_create_inferior): Add call to my_wait
5475 setting last_status global.
5477 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5480 * win32-low.c (create_process): Only call gdb_tilde_expand if
5481 inferior_cwd is not NULL.
5483 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
5485 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
5486 registers to the cache if their values have changed.
5487 (i387_xsave_to_cache): Provide default values for x87 control
5488 registers when these features are available, but disabled.
5489 * regcache.c (supply_register_by_name_zeroed): New function.
5490 * regcache.h (supply_register_by_name_zeroed): Declare new
5493 2018-05-07 Tom Tromey <tom@tromey.com>
5495 * configure: Rebuild.
5497 2018-05-04 Tom Tromey <tom@tromey.com>
5499 * configure: Rebuild.
5501 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5502 Pedro Alves <palves@redhat.com>
5504 * linux-aarch64-low.c (aarch64_stopped_data_address):
5507 2018-04-27 Tom Tromey <tom@tromey.com>
5509 * configure: Rebuild.
5511 2018-04-23 Tom Tromey <tom@tromey.com>
5513 * configure: Rebuild.
5515 2018-04-19 Simon Marchi <simon.marchi@ericsson.com>
5517 * Makefile.in (depcomp): Add "..".
5518 (all_deps_files): New and use it.
5520 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5522 * configure.srv (aarch64*-*-linux*): Don't include xml.
5523 (i[34567]86-*-cygwin*): Likewise.
5524 (i[34567]86-*-linux*): Likewise.
5525 (i[34567]86-*-lynxos*): Likewise.
5526 (i[34567]86-*-mingw32ce*): Likewise.
5527 (i[34567]86-*-mingw*): Likewise.
5528 (i[34567]86-*-nto*): Likewise.
5529 (tic6x-*-uclinux): Likewise.
5530 (x86_64-*-linux*): Likewise.
5531 (x86_64-*-mingw*): Likewise.
5532 (x86_64-*-cygwin*): Likewise.
5534 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5536 * tdesc.c: Remove xml parameter.
5538 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5540 * server.c (get_features_xml): Remove cast.
5541 * tdesc.c (void target_desc::accept): Fill in function.
5542 (tdesc_get_features_xml): Remove old xml creation.
5543 (print_xml_feature::visit_pre): Add xml vistor.
5544 * tdesc.h (struct target_desc): Make xmltarget mutable.
5545 (tdesc_get_features_xml): Remove declaration.
5547 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5549 * tdesc.c (tdesc_architecture_name): Add new function.
5550 (tdesc_osabi_name): Likewise.
5551 (tdesc_get_features_xml): Use new functions.
5553 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5555 * tdesc.c (tdesc_create_flags): Remove.
5556 (tdesc_add_flag): Likewise.
5557 (tdesc_named_type): Likewise.
5558 (tdesc_create_union): Likewise.
5559 (tdesc_create_struct): Likewise.
5560 (tdesc_create_vector): Likewise.
5561 (tdesc_add_bitfield): Likewise.
5562 (tdesc_add_field): Likewise.
5563 (tdesc_set_struct_size): Likewise.
5565 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5567 * tdesc.c (~target_desc): Remove implictly deleted items.
5568 (init_target_desc): Iterate all features.
5569 (tdesc_get_features_xml): Use vector.
5570 (tdesc_create_feature): Create feature.
5571 * tdesc.h (tdesc_feature) Remove
5572 (target_desc): Add features.
5574 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5576 * Makefile.in: Add common/tdesc.c
5577 * tdesc.c (init_target_desc): init all reg_defs from register
5579 (tdesc_create_reg): Create tdesc_reg.
5580 * tdesc.h (tdesc_feature): Add register vector.
5582 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
5584 * tdesc.h (struct target_desc) <features>: Change type to
5585 std::vector<std::string>.
5586 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
5588 (tdesc_get_features_xml): Likewise.
5589 (tdesc_create_feature): Likewise.
5591 2018-03-26 Alan Hayward <alan.hayward@arm.com>
5593 * regcache.c (find_register_by_number): Return a ref.
5594 (find_regno): Use references.
5595 (register_size): Likewise.
5596 (register_data): Likewise.
5597 * tdesc.c (target_desc::~target_desc): Remove free calls.
5598 (target_desc::operator==): Use std::vector compare.
5599 (init_target_desc): Use reference.
5600 (tdesc_create_reg): Use reg constructors.
5601 * tdesc.h (struct target_desc): Replace pointer with object.
5603 2018-03-23 Alan Hayward <alan.hayward@arm.com>
5605 * regcache.c (find_register_by_number): Make static.
5606 (find_regno): Use find_register_by_number
5607 * regcache.h (struct reg): Remove declaration.
5609 2018-03-23 Alan Hayward <alan.hayward@arm.com>
5611 * tdesc.c (target_desc::~target_desc): Move to here.
5612 (target_desc::operator==): Likewise.
5613 * tdesc.h (target_desc::~target_desc): Move from here.
5614 (target_desc::operator==): Likewise.
5616 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
5618 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
5620 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5622 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
5624 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
5625 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
5626 and init_registers_s390_gs_linux64.
5628 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5630 * linux-s390-low.c (s390_fill_gs): Remove function.
5631 (s390_fill_gsbc): Remove function.
5632 (s390_regsets): Set fill functions for the guarded storage regsets
5635 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5637 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
5638 the word size. Add comment.
5639 (s390_get_wordsize): New function.
5640 (s390_arch_setup): No longer select a temporary tdesc to fetch the
5641 pswm with it. Instead, use s390_get_wordsize to determine the
5642 word size first and derive the correct tdesc from that directly.
5644 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
5646 * Makefile.in: Include silent-rules.mk.
5647 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
5648 (COMPILE): Add ECHO_CXX.
5649 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5650 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5651 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
5652 (version-generated.c): Add ECHO_GEN.
5653 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
5654 (IPAGENT_COMPILE): Add ECHO_CXX.
5655 (%-generated.c): Add ECHO_REGDAT.
5657 2018-03-14 Tom Tromey <tom@tromey.com>
5660 * ax.c (ax_printf): Special case for NULL.
5662 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5664 * linux-low.c (linux_qxfer_libraries_svr4): Use
5665 xml_escape_text_append.
5667 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5669 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
5671 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5673 * server.c (handle_general_set): Remove unnecessary xstrdup.
5675 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5677 * server.c (parse_debug_format_options): Adjust to
5678 delim_string_to_char_ptr_vec changes.
5679 * thread-db.c (thread_db_load_search): Adjust to
5680 dirnames_to_char_ptr_vec changes.
5682 2018-03-01 Markus Metzger <markus.t.metzger@intel.com>
5684 * target.h (target_enable_btrace, target_disable_btrace)
5685 (target_read_btrace, target_read_btrace_conf): Turn macro into
5686 inline function. Throw error if target method is not defined.
5687 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
5688 check for btrace target method. Be prepared to handle exceptions
5689 from btrace target methods.
5691 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5693 * server.c (captured_main): Change order of error message printed
5694 when the current working directory cannot be found.
5696 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5698 * server.c: Include "filenames.h" and "pathstuff.h".
5699 (program_name): Delete variable.
5700 (program_path): New anonymous class.
5701 (get_exec_wrapper): Use "program_path" instead of
5703 (handle_v_run): Likewise.
5704 (captured_main): Likewise.
5705 (process_serial_event): Likewise.
5707 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5709 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
5710 (OBJS): Add "pathstuff.o".
5711 * server.c (current_directory): New global variable.
5712 (captured_main): Initialize "current_directory".
5714 2018-02-26 Alan Hayward <alan.hayward@arm.com>
5716 * tdesc.c: Use common/tdesc.h.
5717 * tdesc.h: Likewise.
5719 2018-02-20 Alan Hayward <alan.hayward@arm.com>
5720 Simon Marchi <simon.marchi@ericsson.com>
5722 * Makefile.in: Switch order of make rules.
5724 2018-02-19 Alan Hayward <alan.hayward@arm.com>
5726 * Makefile.in: Add common directory in build.
5727 * configure.ac: Add common reference.
5728 * configure: Regenerate.
5730 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
5732 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
5733 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
5734 * spu-low.c (spu_target_ops): Likewise.
5735 * win32-low.c (win32_target_ops): Likewise.
5736 * server.c (supported_btrace_packets): Report packets unconditionally.
5737 * target.h (target_ops) <supports_btrace>: Remove.
5738 (target_supports_btrace): Remove.
5740 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
5742 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
5743 (handle_btrace_disable): Change return type to void. Use exceptions
5745 (handle_btrace_general_set): Catch exception and copy message to
5748 2018-02-08 Tom Tromey <tom@tromey.com>
5750 * linux-low.c (install_software_single_step_breakpoints): Use
5751 make_scoped_restore.
5752 * inferiors.c (make_cleanup_restore_current_thread): Remove.
5753 (do_restore_current_thread_cleanup): Remove.
5754 * gdbthread.h (make_cleanup_restore_current_thread): Don't
5757 2018-02-08 Tom Tromey <tom@tromey.com>
5759 * mem-break.c (set_raw_breakpoint_at): Use
5760 gdb::unique_xmalloc_ptr.
5762 2018-01-30 Pedro Alves <palves@redhat.com>
5765 * target.c (target_terminal::terminal_state): Rename to ...
5766 (target_terminal::m_terminal_state): ... this.
5768 2018-01-19 James Clarke <jrtc27@jrtc27.com>
5770 * linux-low.c (handle_extended_wait): Surround call to
5771 thread_db_notice_clone with #ifdef USE_THREAD_DB.
5773 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
5775 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
5776 linux_ptrace_attach_fail_reason_string now returning an
5778 (linux_attach): Likewise.
5779 * thread-db.c (attach_thread): Likewise.
5781 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
5784 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
5785 checking for fs_base/gs_base fields in struct user_regs_struct.
5786 * configure: Regenerate.
5788 2018-01-16 Yao Qi <yao.qi@linaro.org>
5791 * linux-low.c (fetch_register): Call supply_register instead of
5794 2018-01-08 Yao Qi <yao.qi@linaro.org>
5795 Simon Marchi <simon.marchi@ericsson.com>
5797 * Makefile.in (OBS): Remove selftest.o.
5798 * configure.ac: Set srv_selftest_objs if $development is true.
5799 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
5800 * configure: Re-generated.
5801 * server.c (captured_main): Wrap variable selftest_filter with
5804 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
5806 * server.c (parse_debug_format_options): Return std::string.
5807 (handle_monitor_command, captured_main): Adjust.
5809 2018-01-05 Pedro Alves <palves@redhat.com>
5812 * server.c (captured_main): Pass quiet=false to
5813 save_original_signals_state.
5815 2018-01-01 Joel Brobecker <brobecker@adacore.com>
5817 * gdbreplay.c (gdbreplay_version): Update copyright year in
5819 * server.c (gdbserver_version): Likewise.
5821 2017-12-08 Tom Tromey <tom@tromey.com>
5823 * ax.c (ax_printf): Update.
5825 2017-12-07 Yao Qi <yao.qi@linaro.org>
5827 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
5828 aarch64_linux_read_description.
5829 * linux-amd64-ipa.c (idx2mask): New array.
5830 (get_ipa_tdesc): Move idx2mask out.
5831 (initialize_low_tracepoint): Initialize target descriptions.
5832 * linux-i386-ipa.c (idx2mask): New array.
5833 (get_ipa_tdesc): Move idx2mask out.
5834 (initialize_low_tracepoint): Initialize target descriptions.
5836 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
5838 * tdesc.c (struct tdesc_type): Change return type.
5839 (tdesc_add_flag): Change parameter type.
5840 (tdesc_add_bitfield): Likewise.
5841 (tdesc_add_field): Likewise.
5842 (tdesc_set_struct_size): Likewise.
5844 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
5846 * regcache.c (registers_to_string): Remove unused variable.
5848 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5850 * inferiors.c (for_each_inferior_with_data): Remove.
5851 * inferiors.h (for_each_inferior_with_data): Remove.
5852 * server.c (handle_qxfer_threads_worker): Change parameter type.
5853 (handle_qxfer_threads_proper): Use for_each_thread.
5855 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5857 * inferiors.c (for_each_inferior): Remove.
5858 (clear_inferiors): Use for_each_thread.
5859 * inferiors.h (for_each_inferior): Remove.
5860 * linux-low.c (linux_wait_for_event_filtered): Use
5862 (linux_stabilize_threads): Likewise.
5863 * regcache.c (regcache_release): Likewise.
5864 * server.c (gdb_wants_all_threads_stopped): Likewise.
5865 (clear_pending_status_callback): Remove.
5866 (handle_status): Use for_each_thread.
5867 (captured_main): Likewise.
5868 * win32-low.c (child_init_thread_list): Likewise.
5869 (win32_clear_inferiors): Likewise.
5870 (fake_breakpoint_event): Likewise.
5872 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5874 * inferiors.h (find_inferior): Remove.
5875 * inferiors.c (find_inferior): Remove.
5877 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5879 * linux-low.c (resume_status_pending_p): Update comment.
5880 (need_step_over_p): Update comment.
5882 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5884 * linux-low.c (proceed_one_lwp): Return void, change parameter
5886 (unsuspend_and_proceed_one_lwp): Likewise.
5887 (proceed_all_lwps): Use for_each_thread.
5888 (unstop_all_lwps): Likewise.
5890 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5892 * linux-low.c (linux_resume_one_thread): Return void, take
5894 (linux_resume): Use for_each_thread.
5896 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5898 * linux-low.c (send_sigstop_callback): Return void, change
5899 parameter type. Rename to...
5900 (send_sigstop): ... this.
5901 (suspend_and_send_sigstop_callback): Return void, change parameter
5903 (suspend_and_send_sigstop): ... this.
5904 (stop_all_lwps): Use for_each_thread.
5906 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5908 * linux-low.c (lwp_running): Return bool, remove unused
5910 (linux_stabilize_threads): Use find_thread.
5912 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5914 * linux-low.c (select_singlestep_lwp_callback): Remove.
5915 (count_events_callback): Remove.
5916 (select_event_lwp_callback): Remove.
5917 (select_event_lwp): Use find_thread/for_each_thread.
5919 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5921 * linux-low.c (not_stopped_callback): Return bool, take filter
5923 (linux_wait_for_event_filtered): Use find_thread.
5924 (linux_wait_1): Likewise.
5926 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5928 * linux-low.c (same_lwp): Remove.
5929 (find_lwp_pid): Use find_thread.
5931 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5933 * linux-low.c (delete_lwp_callback): Remove.
5934 (linux_mourn): Use for_each_thread.
5936 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5938 * linux-low.c (linux_detach_lwp_callback): Return void, remove
5939 args parameter, don't check for pid.
5940 (linux_detach): Use for_each_thread.
5942 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5944 * linux-low.c (struct counter): Remove.
5945 (second_thread_of_pid_p): Remove.
5946 (last_thread_of_process_p): Use find_thread.
5948 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5950 * inferiors.c (find_inferior_in_random): Remove.
5951 * inferiors.h (find_inferior_in_random): Remove.
5952 * linux-low.c (status_pending_p_callback): Return bool, accept
5953 parameter ptid directly.
5954 (linux_wait_for_event_filtered): Use find_thread_in_random.
5955 (linux_wait_1): Likewise.
5957 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5959 * inferiors.c (find_inferior_id): Remove.
5960 (find_thread_ptid): Move implemention from find_inferior_id to
5962 * inferiors.h (find_inferior_id): Remove.
5963 * server.c (handle_status): Use find_thread_ptid.
5964 (process_serial_event): Likewise.
5965 * thread-db.c (find_one_thread): Likewise.
5966 (thread_db_thread_handle): Likewise.
5967 * win32-low.c (thread_rec): Likewise.
5968 (child_delete_thread): Likewise.
5969 (win32_thread_alive): Likewise.
5970 (get_child_debug_event): Likewise.
5972 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5974 * linux-mips-low.c (update_watch_registers_callback): Return
5975 void, remove pid_p parameter, don't check for pid.
5976 (mips_insert_point, mips_remove_point): Use for_each_thread.
5978 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5980 * lynx.low (lynx_delete_thread_callback): Remove.
5981 (lynx_mourn): Use for_each_thread.
5983 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5985 * regcache.c (regcache_invalidate_one): Remove.
5986 (regcache_invalidate_pid): use for_each_thread.
5988 2017-11-26 Tom Tromey <tom@tromey.com>
5990 * linux-low.c (linux_create_inferior): Update.
5992 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
5994 * spu-low.c (spu_create_inferior): Fix typo in argument name.
5996 2017-11-24 Alan Hayward <alan.hayward@arm.com>
5998 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
5999 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6000 * linux-aarch64-tdesc-selftest.c: New file.
6001 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6003 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6005 * configure.srv: Add new file.
6006 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6007 * linux-aarch64-tdesc-selftest.c: New file.
6008 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6010 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6012 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
6013 * linux-aarch64-low.c (initialize_low_arch): Remove init.
6014 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
6016 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6018 * configure.srv: Add new files.
6019 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
6020 aarch64_linux_read_description.
6021 * linux-aarch64-low.c (aarch64_linux_read_description):
6022 Merge with aarch64_arch_setup.
6023 (aarch64_arch_setup): Call aarch64_linux_read_description.
6024 * linux-aarch64-tdesc.c: New file.
6025 * linux-aarch64-tdesc.h: New file.
6027 2017-11-24 Yao Qi <yao.qi@linaro.org>
6029 * configure.srv: Set $srv_regobj for tic6x-linux.
6030 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
6031 (tic6x_read_description): Move some code to tic6x_arch_setup.
6032 (tic6x_tdesc_test): New function.
6033 (initialize_low_arch): Call selftests::register_test.
6035 2017-11-22 Yao Qi <yao.qi@linaro.org>
6037 * remote-utils.c (prepare_resume_reply): Use memcpy.
6039 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6041 * linux-low.c (kill_one_lwp_callback): Return void, take
6042 argument directly, don't filter on pid.
6043 (linux_kill): Use for_each_thread.
6045 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6047 * linux-low.c (need_step_over_p): Return bool, remove dummy
6049 (linux_resume, proceed_all_lwps): Use find_thread.
6051 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6053 * linux-low.c (resume_status_pending_p): Return bool, remove
6055 (linux_resume): Use find_thread.
6057 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6059 * linux-low.c (struct thread_resume_array): Remove.
6060 (linux_set_resume_request): Return void, take arguments
6062 (linux_resume): Use for_each_thread.
6064 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6066 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
6067 return bool, remove data argument.
6068 (linux_stabilize_threads): Use find_thread.
6070 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6072 * linux-low.c (unsuspend_one_lwp): Remove.
6073 (unsuspend_all_lwps): Use for_each_thread, inline code from
6076 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6078 * gdbthread.h (find_thread): Add overload with ptid_t filter.
6079 * linux-low.c (struct iterate_over_lwps_args): Remove.
6080 (iterate_over_lwps_filter): Remove.
6081 (iterate_over_lwps): Use find_thread.
6083 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6085 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
6086 (linux_handle_new_gdb_connection): Use for_each_thread, inline
6087 code from reset_lwp_ptrace_options_callback.
6089 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6091 * linux-arm-low.c (struct update_registers_data): Remove.
6092 (update_registers_callback): Return void, take arguments
6093 directly, don't check thread's pid.
6094 (arm_insert_point, arm_remove_point): Use for_each_thread.
6096 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6098 * win32-low.c (continue_one_thread): Return void, take argument
6100 (child_continue): Use for_each_thread.
6102 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6104 * win32-i386-low.c (update_debug_registers_callback): Rename
6106 (update_debug_registers): ... this, return void, remove pid_p arg.
6107 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
6109 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
6111 * inferiors.h (struct process_info): Add constructor, initialize
6113 <syscalls_to_catch>: Change type to std::vector<int>.
6114 * inferiors.c (add_process): Allocate process_info with new.
6115 (remove_process): Free process_info with delete.
6116 * linux-low.c (handle_extended_wait): Adjust.
6117 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
6118 * server.c (handle_general_set): Adjust.
6120 2017-11-16 Pedro Alves <palves@redhat.com>
6122 * remote-utils.c (remote_close): Block SIGIO signals instead of
6123 uninstalling the SIGIO handler.
6125 2017-11-16 Alan Hayward <alan.hayward@arm.com>
6127 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
6129 2017-11-16 Yao Qi <yao.qi@linaro.org>
6131 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
6132 (tic6x_store_gregset): Likewise.
6133 (tic6x_usrregs_info): Move it up.
6135 2017-11-15 Alan Hayward <alan.hayward@arm.com>
6137 * Makefile.in: Update arch rules.
6138 * configure.srv: Explicitly mark arch/ files.
6140 2017-11-13 Andreas Schwab <schwab@suse.de>
6142 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
6144 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6146 2017-11-06 Pedro Alves <palves@redhat.com>
6148 * config.in, configure: Regenerate.
6150 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6152 * target.c (struct thread_search): Remove.
6153 (thread_search_callback): Remove.
6154 (prepare_to_access_memory): Use for_each_thread instead of
6155 find_inferior. Inline code from thread_search_callback.
6157 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6159 * server.c (struct visit_actioned_threads_data): Remove.
6160 (visit_actioned_threads): Change prototype to take arguments
6162 (resume): Use find_thread instead of find_inferior.
6164 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6166 * server.c (queue_stop_reply_callback): Change prototype, return
6168 (find_status_pending_thread_callback): Remove.
6169 (handle_status): Replace find_inferior with find_thread and
6172 2017-10-25 Alan Hayward <alan.hayward@arm.com>
6174 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
6176 (aarch64_store_gregset): Likewise.
6177 (aarch64_fill_fpregset): Likewise.
6178 (aarch64_store_fpregset): Likewise.
6180 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
6182 * gdbthread.h (find_thread, for_each_thread): New functions.
6183 * inferiors.c (thread_of_pid): Remove.
6184 (find_any_thread_of_pid): Use find_thread.
6185 * linux-low.c (num_lwps): Use for_each_thread.
6187 2017-10-17 Yao Qi <yao.qi@linaro.org>
6189 * Makefile.in: Remove one rule.
6190 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
6192 2017-10-17 Yao Qi <yao.qi@linaro.org>
6194 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
6195 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
6197 2017-10-17 Yao Qi <yao.qi@linaro.org>
6199 * configure.srv: Rename arm.o with arch/arm.o.
6201 2017-10-17 Yao Qi <yao.qi@linaro.org>
6203 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
6204 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
6205 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
6206 (arch-i386.o, arch-amd64.o): Remove rules.
6207 (arch/%.o): New rule.
6208 Update POSTCOMPILE and COMPILE.pre.
6209 * configure.ac: Invoke AC_CONFIG_COMMANDS.
6210 * configure: Re-generated.
6211 * configure.srv: Replace arch-i386.o with arch/i386.o.
6212 Replace arch-amd64.o with arch/amd64.o.
6214 2017-10-16 Yao Qi <yao.qi@linaro.org>
6216 * configure: Regenerated.
6218 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6220 * inferiors.h: (struct inferior_list): Remove.
6221 (struct inferior_list_entry); Remove.
6222 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
6223 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
6224 get_first_inferior): Remove.
6225 (for_each_inferior, for_each_inferior_with_data, find_inferior,
6226 find_inferior_id, find_inferior_in_random): Change signature.
6227 * inferiors.c (all_threads): Change type to
6228 std::list<thread_info *>.
6229 (get_thread): Remove macro.
6230 (find_inferior, find_inferior_id): Change signature, implement
6232 (find_inferior_in_random): Change signature, implement using
6233 find_thread_in_random.
6234 (for_each_inferior, for_each_inferior_with_data): Change
6235 signature, implement using for_each_thread.
6236 (add_inferior_to_list, remove_inferior): Remove.
6237 (add_thread, get_first_thread, thread_of_pid,
6238 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
6239 (get_first_inferior, one_inferior_p, clear_inferior_list):
6241 (clear_inferiors, get_thread_process): Update.
6242 * gdbthread.h: Include <list>.
6243 (struct thread_info) <entry>: Remove field.
6245 (all_threads): Change type to std::list<thread_info *>.
6246 (get_first_inferior): Add doc.
6247 (find_thread, for_each_thread, find_thread_in_random): New
6249 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
6250 * linux-arm-low.c (update_registers_callback): Update.
6251 * linux-low.c (second_thread_of_pid_p): Update.
6252 (kill_one_lwp_callback, linux_detach_lwp_callback,
6253 delete_lwp_callback, status_pending_p_callback, same_lwp,
6254 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
6255 iterate_over_lwps, not_stopped_callback,
6256 resume_stopped_resumed_lwps, count_events_callback,
6257 select_singlestep_lwp_callback, select_event_lwp_callback,
6258 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
6259 suspend_and_send_sigstop_callback, wait_for_sigstop,
6260 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
6261 lwp_running, linux_set_resume_request, resume_status_pending_p,
6262 need_step_over_p, start_step_over, linux_resume_one_thread,
6263 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
6264 reset_lwp_ptrace_options_callback): Update.
6265 * linux-mips-low.c (update_watch_registers_callback): Update.
6266 * regcache.c (regcache_invalidate_one, regcache_invalidate):
6268 (free_register_cache_thread_one): Remove.
6269 (regcache_release): Update.
6270 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
6271 handle_qxfer_threads_worker): Update.
6272 (handle_query): Update, use list iterator.
6273 (visit_actioned_threads, handle_pending_status,
6274 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
6275 clear_pending_status_callback, set_pending_status_callback,
6276 find_status_pending_thread_callback, handle_status,
6277 process_serial_event): Update.
6278 * target.c (thread_search_callback): Update.
6279 * thread-db.c (thread_db_get_tls_address): Update.
6280 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
6282 * win32-i386-low.c (update_debug_registers_callback): Update.
6283 * win32-low.c (delete_thread_info, child_delete_thread,
6284 continue_one_thread, suspend_one_thread,
6285 get_child_debug_event): Adjust.
6287 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6289 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
6290 * inferiors.h: Include <list>.
6291 (struct process_info) <entry>: Remove field.
6293 (pid_of): Change macro to function.
6294 (ptid_of, lwpid_of): Remove macro.
6295 (all_processes): Change type to std::list<process_info *>.
6296 (ALL_PROCESSES): Remove macro.
6297 (for_each_process, find_process): New function.
6298 * inferiors.c (all_processes): Change type to
6299 std::list<process_info *>.
6300 (find_thread_process): Adjust.
6301 (add_process): Likewise.
6302 (remove_process): Likewise.
6303 (find_process_pid): Likewise.
6304 (get_first_process): Likewise.
6305 (started_inferior_callback): Remove.
6306 (have_started_inferiors_p): Adjust.
6307 (attached_inferior_callback): Remove.
6308 (have_attached_inferiors_p): Adjust.
6309 * linux-low.c (check_zombie_leaders): Likewise.
6310 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
6311 (x86_linux_update_xmltarget): Adjust.
6312 * server.c (handle_query): Likewise.
6313 (gdb_reattached_process): Remove.
6314 (handle_status): Adjust.
6315 (kill_inferior_callback): Likewise.
6316 (detach_or_kill_inferior): Remove.
6317 (print_started_pid): Likewise.
6318 (print_attached_pid): Likewise.
6319 (detach_or_kill_for_exit): Update.
6320 (process_serial_event): Likewise.
6321 * linux-arm-low.c (arm_new_fork): Likewise.
6323 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6325 * dll.h: Include <list>.
6326 (struct dll_info): Add constructor.
6327 <entry>: Remove field.
6328 (all_dlls): Change type to std::list<dll_info>.
6329 * dll.c: Include <algorithm>.
6330 (get_dll): Remove macro.
6331 (all_dlls): Change type to std::list<dll_info *>.
6332 (free_one_dll): Remove.
6333 (match_dll): Likewise.
6334 (loaded_dll): Adjust.
6335 (unloaded_dll): Adjust to all_dlls type change, use
6336 std::find_if. Inline code from match_dll.
6337 (clear_dlls): Adjust to all_dlls type change.
6338 * server.c (emit_dll_description): Remove.
6339 (handle_qxfer_libraries): Adjust to all_dlls type change,
6340 integrate emit_dll_description's functionality.
6342 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6344 * linux-low.h (struct linux_target_ops) <delete_process>: New
6346 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
6347 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
6348 (struct linux_target_ops): Add delete_process callback.
6349 * linux-arm-low.c (arm_delete_process): New.
6350 (struct linux_target_ops): Add delete_process callback.
6351 * linux-bfin-low.c (struct linux_target_ops): Likewise.
6352 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
6353 * linux-m32r-low.c (struct linux_target_ops): Likewise.
6354 * linux-mips-low.c (mips_linux_delete_process): New.
6355 (struct linux_target_ops): Add delete_process callback.
6356 * linux-ppc-low.c (struct linux_target_ops): Likewise.
6357 * linux-s390-low.c (struct linux_target_ops): Likewise.
6358 * linux-sh-low.c (struct linux_target_ops): Likewise.
6359 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
6360 * linux-tile-low.c (struct linux_target_ops): Likewise.
6361 * linux-x86-low.c (x86_linux_delete_process): New.
6362 (struct linux_target_ops): Add delete_process callback.
6363 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
6365 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6367 * linux-aarch64-low.c (the_low_target): Add thread delete
6369 * linux-arm-low.c (arm_delete_thread): New function.
6370 (the_low_target): Add thread delete callback.
6371 * linux-bfin-low.c (the_low_target): Likewise.
6372 * linux-crisv32-low.c (the_low_target): Likewise.
6373 * linux-low.c (delete_lwp): Invoke delete_thread callback if
6375 * linux-low.h (struct linux_target_ops) <delete_thread>: New
6377 * linux-m32r-low.c (the_low_target): Add thread delete callback.
6378 * linux-mips-low.c (mips_linux_delete_thread): New function.
6379 (the_low_target): Add thread delete callback.
6380 * linux-ppc-low.c (the_low_target): Likewise.
6381 * linux-s390-low.c (the_low_target): Likewise.
6382 * linux-sh-low.c (the_low_target): Likewise.
6383 * linux-tic6x-low.c (the_low_target): Likewise.
6384 * linux-tile-low.c (the_low_target): Likewise.
6385 * linux-x86-low.c (the_low_target): Likewise.
6386 * linux-xtensa-low.c (the_low_target): Likewise.
6388 2017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
6390 * win32-low.c: Include "common-inferior.h".
6392 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6394 * inferiors.c (set_inferior_cwd): New function.
6395 * server.c (handle_general_set): Handle QSetWorkingDir packet.
6396 (handle_query): Inform that QSetWorkingDir is supported.
6397 * win32-low.c (create_process): Pass the inferior's cwd to
6400 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6402 * inferiors.c (current_inferior_cwd): New global variable.
6403 (get_inferior_cwd): New function.
6404 * inferiors.h (struct process_info) <cwd>: New field.
6406 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6408 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
6409 (OBS): Add gdb_tilde_expand.o.
6411 2017-10-02 Simon Marchi <simon.marchi@ericsson.com>
6413 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
6414 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
6416 2017-09-29 Pedro Alves <palves@redhat.com>
6418 * ax.c (gdb_parse_agent_expr): Constify.
6419 * ax.h (gdb_parse_agent_expr): Constify.
6420 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
6422 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
6423 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
6424 * remote-utils.h (read_ptid): Constify.
6425 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
6426 (process_point_options, process_serial_event): Constify.
6427 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
6428 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
6429 (cmd_qtbuffer): Constify.
6431 2017-09-29 Pedro Alves <palves@redhat.com>
6433 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
6436 2017-09-29 Pedro Alves <palves@redhat.com>
6438 * linux-low.c (handle_extended_wait): Pass parent thread instead
6439 of process to thread_db_notice_clone.
6440 * linux-low.h (thread_db_notice_clone): Replace parent process
6441 parameter with parent thread parameter.
6442 * thread-db.c (find_one_thread): Add comment.
6443 (thread_db_notice_clone): Replace parent process parameter with
6444 parent thread parameter. Temporarily switch to the parent thread.
6446 2017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
6448 * gdbthread.h: Include "common-gdbthread.h".
6449 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
6450 "if" when validating the ptid.
6451 * remote-utils.c: Include "gdbthread.h".
6452 (prepare_resume_reply): Use "switch_to_thread".
6453 * target.c (done_accessing_memory): Likewise.
6455 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6457 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
6458 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
6459 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
6460 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
6461 s390x-gs-linux64-ipa.o to ipa_obj.
6462 * linux-s390-low.c (HWCAP_S390_GS): New define.
6463 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
6465 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
6466 (s390_arch_setup): Check for guarded-storage support and choose
6468 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
6469 init_registers_s390x_gs_linux64.
6470 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
6472 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
6473 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
6475 2017-09-22 Simon Marchi <simon.marchi@ericsson.com>
6477 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
6479 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6481 * linux-low.h (struct lwp_info): Add new field, thread_handle.
6482 (thread_db_thread_handle): Declare.
6483 * linux-low.c (linux_target_ops): Initialize thread_handle.
6484 * server.c (handle_qxfer_threads_worker): Add support for
6486 * target.h (struct target_ops): Add new function pointer,
6488 (target_thread_handle): Define.
6489 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
6491 (thread_db_thread_handle): New function.
6493 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6495 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
6496 * linux-low.h (thread_db_notice_clone): Declare.
6497 * thread-db.c (thread_db_notice_clone): New function.
6499 2017-09-21 Pedro Alves <palves@redhat.com>
6501 * server.c (gdb_read_memory, handle_status, process_serial_event)
6502 (handle_serial_event, handle_target_event): Adjust to
6503 set_desired_thread prototype change.
6504 * target.c (set_desired_thread): Remove 'use_general' parameter
6506 * target.h (set_desired_thread): Remove 'use_general' parameter.
6508 2017-09-20 Tom Tromey <tom@tromey.com>
6510 * target.c (target_terminal::terminal_state): Define.
6511 (target_terminal::init): Rename from target_terminal_init.
6512 (target_terminal::inferior): Rename from
6513 target_terminal_inferior.
6514 (target_terminal::ours): Rename from target_terminal_ours.
6515 (target_terminal::ours_for_output, target_terminal::info): New.
6517 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6519 * server.c (accumulate_file_name_length): Remove.
6520 (emit_dll_description): Adjust to std::string change.
6521 (handle_qxfer_libraries): Use std::string to hold document.
6523 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6525 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
6526 return type of xml_escape_text.
6527 * server.c (emit_dll_description): Likewise.
6529 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6531 * server.c (captured_main): Accept argument for --selftest.
6532 Update run_tests call.
6533 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
6534 when registering selftests.
6536 2017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
6538 * regcache.c (get_thread_regcache): Update code to use "std::vector"
6539 instead of "VEC" for "target_desc.reg_defs".
6540 (regcache_cpy): Likewise.
6541 (registers_to_string): Likewise.
6542 (registers_from_string): Likewise.
6543 (find_regno): Likewise.
6544 (supply_regblock): Likewise.
6545 (regcache_raw_read_unsigned): Likewise.
6546 * tdesc.c (init_target_desc): Likewise.
6547 (tdesc_create_reg): Likewise.
6548 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
6549 (struct target_desc) <reg_defs>: Convert to "std::vector".
6550 (target_desc): Do not initialize "reg_defs".
6551 (~target_desc): Update code to use "std::vector" instead of "VEC"
6552 for "target_desc.reg_defs".
6553 (operator==): Likewise.
6555 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6557 * inferiors.h (thread_to_gdb_id): Remove.
6558 * inferiors.c (thread_to_gdb_id): Remove.
6559 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
6560 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
6561 lynx_store_registers, lynx_read_memory, lynx_write_memory):
6563 * nto-low.c (nto_fetch_registers, nto_store_registers,
6564 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
6566 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6568 * inferiors.h (gdb_id_to_thread_id): Remove.
6569 * inferiors.c (gdb_id_to_thread_id): Remove.
6570 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
6571 removal. Move pid declaration closer to where it's used.
6573 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6575 * server.c (handle_detach): New function.
6576 (process_serial_event): Move code out, call handle_detach.
6578 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6580 * server.c (require_running): Rename to ...
6581 (require_running_or_return): ... this ...
6582 (require_running_or_break): ... and this.
6583 (handle_query, process_serial_event): Adjust.
6585 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6587 * linux-low.c (linux_set_resume_request): Remove unused
6590 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6592 * server.c (first_thread_of): Remove.
6593 (process_serial_event): Replace usage of first_thread_of with
6594 find_any_thread_of_pid.
6595 * tracepoint.c (same_process_p): Remove.
6596 (gdb_agent_about_to_close): Replace usage of same_process_p with
6597 find_any_thread_of_pid.
6598 * linux-x86-low.c (same_process_callback): Remove.
6599 (x86_arch_setup_process_callback): Replace usage of
6600 same_process_callback with find_any_thread_of_pid.
6601 * thread-db.c (any_thread_of): Remove.
6602 (switch_to_process): Replace usage of any_thread_of with
6603 find_any_thread_of_pid.
6604 * inferiors.c (thread_pid_matches_callback): Remove.
6605 (find_thread_process): Adjust to use find_any_thread_of_pid.
6607 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6609 * regcache.c (get_thread_regcache): Guard calls to "memset"
6612 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6614 * linux-low.c (handle_extended_wait): Use
6615 "allocate_target_description" instead of "XNEW".
6616 * linux-x86-low.c (initialize_low_arch): Likewise.
6618 2017-09-05 Yao Qi <yao.qi@linaro.org>
6620 * configure.srv (srv_i386_regobj): Remove.
6621 (srv_amd64_regobj): Remove.
6622 (srv_regobj): Set it to "" for x86 non-linux targets.
6623 * linux-x86-tdesc.c (i386_linux_read_description):
6624 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
6625 (init_registers_i386): Remove the declaration.
6626 (tdesc_i386): Remove the declaration.
6627 (lynx_i386_arch_setup): Call i386_create_target_description.
6628 * nto-x86-low.c: Likewise.
6629 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
6630 [!__x86_64__]: include arch/i386.h.
6631 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
6633 2017-09-05 Yao Qi <yao.qi@linaro.org>
6635 * configure.srv (srv_amd64_linux_xmlfiles): Remove
6636 i386/amd64-XXX-linux from it.
6638 2017-09-05 Yao Qi <yao.qi@linaro.org>
6640 * configure.srv: Empty srv_amd64_linux_regobj if $development is
6642 (ipa_amd64_linux_regobj): Remove.
6643 (ipa_x32_linux_regobj): Remove.
6645 2017-09-05 Yao Qi <yao.qi@linaro.org>
6647 * Makefile.in (arch-amd64.o): New rule.
6648 * configure.srv: Append arch-amd64.o.
6649 * linux-amd64-ipa.c: Include common/x86-xstate.h.
6650 (get_ipa_tdesc): Call amd64_linux_read_description.
6651 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
6652 and init_registers_amd64_XXX.
6653 * linux-x86-low.c (x86_linux_read_description): Call
6654 amd64_linux_read_description.
6655 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
6656 (initialize_low_arch): Don't call init_registers_x32_XXX and
6657 init_registers_amd64_XXX.
6658 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
6659 and tdesc_amd64_XXX.
6660 [__x86_64__] (amd64_tdesc_test): New function.
6661 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
6662 and init_registers_amd64_XXX.
6663 * linux-x86-tdesc.c: Include arch/amd64.h.
6664 (xcr0_to_tdesc_idx): New function.
6665 (i386_linux_read_description): New function.
6666 (amd64_get_ipa_tdesc_idx): New function.
6667 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
6668 (amd64_get_ipa_tdesc): Declare.
6670 2017-09-05 Yao Qi <yao.qi@linaro.org>
6672 * configure.srv (srv_i386_linux_xmlfiles): Remove
6673 i386/i386-XXX-linux.xml from it.
6675 2017-09-05 Yao Qi <yao.qi@linaro.org>
6677 * configure.srv: Set srv_i386_linux_regobj empty if $development
6679 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
6680 initialize_low_tdesc.
6681 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
6682 with #if initialize_low_tdesc.
6683 * linux-x86-tdesc-selftest.c: New file.
6684 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
6686 2017-09-05 Yao Qi <yao.qi@linaro.org>
6688 * Makefile.in (arch-i386.o): New rule.
6689 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
6690 (x86_64-*-linux*): Likewise.
6691 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
6692 include arch/i386.h.
6693 (i386_linux_read_description): Remove code and call
6694 i386_create_target_description.
6695 * tdesc.c (allocate_target_description): New function.
6696 * tdesc.h (set_tdesc_architecture): Remove declaration.
6697 (set_tdesc_osabi): Likewise.
6699 2017-09-05 Yao Qi <yao.qi@linaro.org>
6701 * linux-x86-tdesc.c: Don't include <inttypes.h>.
6702 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
6703 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
6705 * server.c (get_features_xml): Call tdesc_get_features_xml.
6706 * tdesc.c (set_tdesc_architecture): New function.
6707 (set_tdesc_osabi): New function.
6708 (tdesc_get_features_xml): New function.
6709 (tdesc_create_feature): Add an argument.
6710 * tdesc.h (struct target_desc) <features>: New field.
6711 <arch, osabi>: New field.
6712 (~target_desc): xfree features, arch, and osabi.
6713 (target_desc::oerator==): Don't compare .xmltarget.
6714 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
6715 (set_tdesc_osabi): Likewise.
6716 (tdesc_get_features_xml): Likewise.
6718 2017-09-05 Yao Qi <yao.qi@linaro.org>
6720 * linux-x86-tdesc.c: Include selftest.h.
6721 (i386_tdesc_test): New function.
6722 (initialize_low_tdesc): Call selftests::register_test.
6723 * tdesc.h: Include regdef.h.
6724 (target_desc): Override operator == and !=.
6726 2017-09-05 Yao Qi <yao.qi@linaro.org>
6728 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
6729 (ipa_obj): Likewise.
6730 * linux-i386-ipa.c: Include common/x86-xstate.h
6731 (get_ipa_tdesc): Call i386_linux_read_description.
6732 (initialize_low_tracepoint): Don't call init_registers_XXX
6733 functions, call initialize_low_tdesc instead.
6734 * linux-x86-low.c (x86_linux_read_description): Call
6735 i386_linux_read_description.
6736 (initialize_low_arch): Don't call init_registers_i386_XXX
6737 functions, call initialize_low_tdesc.
6738 * linux-x86-tdesc.c: New file.
6739 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
6740 (i386_get_ipa_tdesc_idx): Declare.
6741 (i386_get_ipa_tdesc): Declare.
6742 (initialize_low_tdesc): Declare.
6744 2017-09-05 Yao Qi <yao.qi@linaro.org>
6746 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
6749 2017-09-05 Yao Qi <yao.qi@linaro.org>
6751 * Makefile.in (IPA_OBJS): Add vec-ipa.o
6752 * regcache.c (get_thread_regcache): Use VEC_length.
6753 (init_register_cache): Likewise.
6754 (regcache_cpy): Likewise.
6755 (registers_to_string): Iterate reg_defs via VEC_iterate.
6756 (find_regno): Likewise.
6757 (find_register_by_number): Use VEC_index.
6758 (register_size): Call find_register_by_number.
6759 (register_data): Call find_register_by_number.
6760 (supply_regblock): Use VEC_length.
6761 (regcache_raw_read_unsigned): Likewise.
6762 * tdesc.c (init_target_desc): Iterate reg_defs via
6764 (default_description): Update initializer.
6765 (copy_target_description): Don't update field num_registers.
6766 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
6767 <num_registers>: Remove.
6769 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
6771 * Makefile.in (.SECONDARY): Define target.
6773 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
6775 * linux-low.c (linux_wait_1): Adjust.
6776 * server.c (queue_stop_reply_callback): Adjust.
6778 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
6780 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
6781 QEnvironmentUnset and QEnvironmentReset packets.
6782 (handle_query): Inform remote that QEnvironmentHexEncoded,
6783 QEnvironmentUnset and QEnvironmentReset are supported.
6785 2017-08-25 Simon Marchi <simon.marchi@ericsson.com>
6787 * inferiors.h (inferior_target_data): Rename to ...
6788 (thread_target_data): ... this.
6789 (inferior_regcache_data): Rename to ...
6790 (thread_regcache_data): ... this.
6791 (set_inferior_regcache_data): Rename to ...
6792 (set_thread_regcache_data): ... this.
6793 * inferiors.c (inferior_target_data): Rename to ...
6794 (thread_target_data): ... this.
6795 (inferior_regcache_data): Rename to ...
6796 (thread_regcache_data): ... this.
6797 (set_inferior_regcache_data): Rename to ...
6798 (set_thread_regcache_data): ... this.
6799 (free_one_thread): Update.
6800 * linux-low.h (get_thread_lwp): Update.
6801 * regcache.c (get_thread_regcache): Update.
6802 (regcache_invalidate_thread): Update.
6803 (free_register_cache_thread): Update.
6804 * win32-i386-low.c (update_debug_registers_callback): Update.
6805 (win32_get_current_dr): Update.
6806 * win32-low.c (thread_rec): Update.
6807 (delete_thread_info): Update.
6808 (continue_one_thread): Update.
6809 (suspend_one_thread): Update.
6811 2017-08-24 Simon Marchi <simon.marchi@ericsson.com>
6813 * inferiors.c (set_inferior_target_data): Remove.
6814 * inferiors.h (set_inferior_target_data): Remove.
6816 2017-08-18 Yao Qi <yao.qi@linaro.org>
6818 * Makefile.in (OBS): Add selftest.o.
6819 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
6820 * configure, config.in: Re-generated.
6821 * server.c: Include common/sefltest.h.
6822 (captured_main): Handle option --selftest.
6824 2017-08-09 Yao Qi <yao.qi@linaro.org>
6826 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
6827 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
6828 i386-avx-mpx.o and i386-mmx.o.
6829 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
6830 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
6831 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
6832 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
6833 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
6834 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
6835 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
6836 i386/amd64-avx-mpx.xml.
6838 2017-08-09 Yao Qi <yao.qi@linaro.org>
6840 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
6841 and x32-avx-avx512.o.
6842 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
6843 i386/x32-avx-avx512.xml.
6845 2017-07-26 Simon Marchi <simon.marchi@ericsson.com>
6847 * tracepoint.h (enum class fast_tpoint_collect_result): New
6849 (fast_tracepoint_collecting): Change return type to
6850 fast_tpoint_collect_result.
6851 * tracepoint.c (fast_tracepoint_collecting): Likewise.
6852 * linux-low.h: Include tracepoint.h.
6853 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
6854 fast_tpoint_collect_result.
6855 * linux-low.c (handle_tracepoints): Adjust.
6856 (linux_fast_tracepoint_collecting): Change return type to
6857 fast_tpoint_collect_result.
6858 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
6859 linux_wait_1, stuck_in_jump_pad_callback,
6860 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
6861 proceed_one_lwp): Adjust to type change.
6863 2017-07-10 Yao Qi <yao.qi@linaro.org>
6865 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
6867 2017-06-29 Yao Qi <yao.qi@linaro.org>
6869 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
6871 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
6873 2017-06-20 Simon Marchi <simon.marchi@ericsson.com>
6875 * Makefile.in (IPA_OBJS): Sort and format one item per line.
6877 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
6879 * linux-low.c (linux_create_inferior): Adjust code to access the
6880 environment information via 'gdb_environ' class.
6881 * lynx-low.c (lynx_create_inferior): Likewise.
6882 * server.c (our_environ): Make it an instance of 'gdb_environ'.
6883 (get_environ): Return a pointer to 'our_environ'.
6884 (captured_main): Initialize 'our_environ'.
6885 * server.h (get_environ): Adjust prototype.
6886 * spu-low.c (spu_create_inferior): Adjust code to access the
6887 environment information via 'gdb_environ' class.
6889 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6891 * linux-low.c (linux_read_memory, linux_write_memory): Remove
6892 usage of "register" keyword.
6894 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6896 * configure: Re-generate.
6898 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6900 * configure: Re-generate.
6902 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6904 * Makefile.in (COMPILE.pre): Add "-x c++".
6906 2017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
6908 * fork-child.c: Conditionally include <signal.h>.
6910 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6912 * server.c (handle_general_set): Handle new packet
6913 "QStartupWithShell".
6914 (handle_query): Add "QStartupWithShell" to the list of supported
6916 (gdbserver_usage): Add help text explaining the
6917 new "--startup-with-shell" and "--no-startup-with-shell" CLI
6919 (captured_main): Recognize and act upon the presence of the new
6922 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6923 Pedro Alves <palves@redhat.com>
6925 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
6926 * configure: Regenerate.
6927 * configure.srv (srv_linux_obj): Add "fork-child.o" and
6929 (i[34567]86-*-lynxos*): Likewise.
6930 (spu*-*-*): Likewise.
6931 * fork-child.c: New file.
6932 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
6934 (linux_ptrace_fun): New function.
6935 (linux_create_inferior): Adjust function prototype to reflect
6936 change on "target.h". Adjust function code to use
6938 (linux_request_interrupt): Delete "signal_pid".
6939 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
6940 (lynx_ptrace_fun): New function.
6941 (lynx_create_inferior): Adjust function prototype to reflect
6942 change on "target.h". Adjust function code to use
6944 * nto-low.c (nto_create_inferior): Adjust function prototype and
6945 code to reflect change on "target.h". Update comments.
6946 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
6947 "common-terminal.h" and "environ.h".
6948 (terminal_fd): Moved to fork-child.c.
6949 (old_foreground_pgrp): Likewise.
6950 (restore_old_foreground_pgrp): Likewise.
6951 (last_status): Make it global.
6952 (last_ptid): Likewise.
6953 (our_environ): New variable.
6954 (startup_with_shell): Likewise.
6955 (program_name): Likewise.
6956 (program_argv): Rename to...
6957 (program_args): ...this.
6958 (wrapper_argv): New variable.
6959 (start_inferior): Delete function.
6960 (get_exec_wrapper): New function.
6961 (get_exec_file): Likewise.
6962 (get_environ): Likewise.
6963 (prefork_hook): Likewise.
6964 (post_fork_inferior): Likewise.
6965 (postfork_hook): Likewise.
6966 (postfork_child_hook): Likewise.
6967 (handle_v_run): Update code to deal with arguments coming from the
6968 remote host. Update calls from "start_inferior" to
6970 (captured_main): Likewise. Initialize environment variable. Call
6972 * server.h (post_fork_inferior): New prototype.
6973 (get_environ): Likewise.
6974 (last_status): Declare.
6975 (last_ptid): Likewise.
6976 (signal_pid): Likewise.
6977 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
6978 (spu_ptrace_fun): New function.
6979 (spu_create_inferior): Adjust function prototype to reflect change
6980 on "target.h". Adjust function code to use "fork_inferior".
6981 * target.c (target_terminal_init): New function.
6982 (target_terminal_inferior): Likewise.
6983 (target_terminal_ours): Likewise.
6984 * target.h: Include <vector>.
6985 (struct target_ops) <create_inferior>: Update prototype.
6986 (create_inferior): Update macro.
6987 * utils.c (gdb_flush_out_err): New function.
6988 * win32-low.c (win32_create_inferior): Adjust function prototype
6989 and code to reflect change on "target.h".
6991 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6993 * inferiors.c (switch_to_thread): New function.
6995 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6997 * Makefile.in (SFILE): Add "common/job-control.c".
6998 (OBS): Add "job-control.o".
7000 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7002 * Makefile: Remove "@host_makefile_frag@".
7004 2017-05-05 Pedro Alves <palves@redhat.com>
7006 * configure: Regenerate.
7008 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7010 * configure: Regenerate.
7012 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7014 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
7015 software_single_step change of return type to
7016 std::vector<CORE_ADDR>.
7017 * linux-low.c (install_software_single_step_breakpoints):
7019 * linux-low.h (install_software_single_step_breakpoints):
7022 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7024 * remote-utils.c: Include "gdb_termios.h" instead of
7026 * terminal.h: Delete file.
7028 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7030 * server.c: Include <vector>.
7031 <program_argv, wrapper_argv>: Convert to std::vector.
7032 (start_inferior): Rewrite function to use C++.
7033 (handle_v_run): Likewise. Update code that calculates the argv
7034 based on the vRun packet; use C++.
7035 (captured_main): Likewise.
7037 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7039 * server.c (handle_v_cont): Initialize thread_resume::thread
7042 2017-04-05 Pedro Alves <palves@redhat.com>
7044 * configure: Regenerate.
7046 2017-04-05 Pedro Alves <palves@redhat.com>
7048 * gdbreplay.c (sync_error): Constify.
7049 * linux-x86-low.c (push_opcode): Constify.
7051 2017-04-05 Pedro Alves <palves@redhat.com>
7053 * win32-low.c (get_child_debug_event)
7054 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
7055 Report TARGET_WAITKIND_SPURIOUS instead.
7057 2017-04-05 Pedro Alves <palves@redhat.com>
7059 * remote-utils.c (remote_prepare, remote_open): Constify.
7060 * remote-utils.h (remote_prepare, remote_open): Constify.
7061 * server.c (captured_main): Constify 'port' handling.
7063 2017-04-04 Simon Marchi <simon.marchi@ericsson.com>
7065 * Makefile.in (clean): Clear .deps.
7067 2017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
7069 * .gitignore: Remove generated files, replace with wildcard.
7070 * (clean): Replace removal of generated files with wildcard.
7071 (version.c): Replace with...
7072 (version-generated.c): ...this.
7073 (xml-builtin.c): Replace with...
7074 (xml-builtin-generated.c): ...this.
7075 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
7076 (%.c: *regformats*): Replace with...
7077 (%-generated.c: *regformats*): ...this.
7079 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7081 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
7082 (xtensa_fill_gregset): Call collect_register_by_name for
7084 (xtensa_store_gregset): Call supply_register_by_name for
7087 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7089 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
7090 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
7091 (xtensa_store_gregset): Call supply_register for all registers in
7092 a0_regnum..a0_regnum + C0_NREGS range.
7094 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7096 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
7097 (ax-ipa.o: ax.c): Remove.
7098 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
7099 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
7100 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
7101 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
7102 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
7104 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7106 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
7107 (print-utils-ipa.o: ../common/print-utils.c): Remove.
7108 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
7109 (errors-ipa.o: ../common/errors.c): Remove.
7110 (format-ipa.o: ../common/format.c): Remove.
7111 (common-utils-ipa.o: ../common/common-utils.c): Remove.
7113 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7115 * Makefile.in (%-ipa.o: %.c): New rule.
7116 (tracepoint-ipa.o: tracepoint.c): Remove.
7117 (utils-ipa.o: utils.c): Remove.
7118 (remote-utils-ipa.o: remote-utils.c): Remove.
7119 (regcache-ipa.o: regcache.c): Remove.
7120 (i386-linux-ipa.o: i386-linux.c): Remove.
7121 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
7122 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
7123 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
7124 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
7125 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
7126 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
7127 (amd64-linux-ipa.o: amd64-linux.c): Remove.
7128 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
7129 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
7130 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
7131 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
7132 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
7133 (aarch64-ipa.o: aarch64.c): Remove.
7134 (s390-linux32-ipa.o: s390-linux32.c): Remove.
7135 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
7136 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
7137 (s390-linux64-ipa.o: s390-linux64.c): Remove.
7138 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
7139 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
7140 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
7141 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
7142 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
7143 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
7144 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
7145 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
7146 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
7147 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
7148 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
7149 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
7150 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
7151 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
7152 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
7153 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
7154 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
7155 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
7156 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
7157 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
7158 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
7159 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
7160 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
7161 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
7162 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
7163 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
7164 (tdesc-ipa.o: tdesc.c): Remove.
7165 (x32-linux-ipa.o: x32-linux.c): Remove.
7166 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
7167 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
7169 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7171 * Makefile.in (%.o: ../arch/%.c): New rule.
7172 (arm.o: ../arch/arm.c): Remove.
7173 (arm-linux.o: ../arch/arm-linux.c): Remove.
7174 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
7175 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
7177 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7179 * Makefile.in (%.o: ../nat/%.c): New rule.
7180 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
7181 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
7182 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
7183 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
7184 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
7185 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
7186 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
7187 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
7188 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
7189 (linux-personality.o: ../nat/linux-personality.c): Remove.
7190 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
7191 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
7192 (x86-linux.o: ../nat/x86-linux.c): Remove.
7193 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
7194 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
7196 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7198 * Makefile.in (%.o: ../common/%.c): New rule.
7199 (signals.o: ../common/signals.c): Remove.
7200 (print-utils.o: ../common/print-utils.c): Remove.
7201 (rsp-low.o: ../common/rsp-low.c): Remove.
7202 (common-utils.o: ../common/common-utils.c): Remove.
7203 (posix-strerror.o: ../common/posix-strerror.c): Remove.
7204 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
7205 (vec.o: ../common/vec.c): Remove.
7206 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
7207 (xml-utils.o: ../common/xml-utils.c): Remove.
7208 (ptid.o: ../common/ptid.c): Remove.
7209 (buffer.o: ../common/buffer.c): Remove.
7210 (format.o: ../common/format.c): Remove.
7211 (filestuff.o: ../common/filestuff.c): Remove.
7212 (agent.o: ../common/agent.c): Remove.
7213 (errors.o: ../common/errors.c): Remove.
7214 (environ.o: ../common/environ.c): Remove.
7215 (common-debug.o: ../common/common-debug.c): Remove.
7216 (cleanups.o: ../common/cleanups.c): Remove.
7217 (common-exceptions.o: ../common/common-exceptions.c): Remove.
7218 (fileio.o: ../common/fileio.c): Remove.
7219 (common-regcache.o: ../common/common-regcache.c): Remove.
7220 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
7221 (new-op.o: ../common/new-op.c): Remove.
7222 (btrace-common.o: ../common/btrace-common.c): Remove.
7224 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7226 * Makefile.in (%.o: ../target/%.c): New rule.
7227 (waitstatus.o: ../target/waitstatus.c): Remove.
7229 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7232 (%.c: ../regformats/%.dat,
7233 (%.c: ../regformats/arm/%.dat,
7234 (%.c: ../regformats/i386/%.dat,
7235 (%.c: ../regformats/rs6000/%.dat): New rules.
7236 (aarch64.c): Remove.
7237 (reg-arm.c): Remove.
7238 (arm-with-iwmmxt.c): Remove.
7239 (arm-with-vfpv2.c): Remove.
7240 (arm-with-vfpv3.c): Remove.
7241 (arm-with-neon.c): Remove.
7242 (reg-bfin.c): Remove.
7243 (reg-cris.c): Remove.
7244 (reg-crisv32.c): Remove.
7246 (i386-linux.c): Remove.
7247 (i386-avx.c): Remove.
7248 (i386-avx-linux.c): Remove.
7249 (i386-avx-avx512.c): Remove.
7250 (i386-avx-avx512-linux.c): Remove.
7251 (i386-mpx.c): Remove.
7252 (i386-mpx-linux.c): Remove.
7253 (i386-avx-mpx-avx512-pku.c): Remove.
7254 (i386-avx-mpx-avx512-pku-linux.c): Remove.
7255 (i386-avx-mpx.c): Remove.
7256 (i386-avx-mpx-linux.c): Remove.
7257 (i386-mmx.c): Remove.
7258 (i386-mmx-linux.c): Remove.
7259 (reg-ia64.c): Remove.
7260 (reg-m32r.c): Remove.
7261 (reg-m68k.c): Remove.
7263 (mips-linux.c): Remove.
7264 (mips-dsp-linux.c): Remove.
7265 (mips64-linux.c): Remove.
7266 (mips64-dsp-linux.c): Remove.
7267 (nios2-linux.c): Remove.
7268 (powerpc-32.c): Remove.
7269 (powerpc-32l.c): Remove.
7270 (powerpc-altivec32l.c): Remove.
7271 (powerpc-cell32l.c): Remove.
7272 (powerpc-vsx32l.c): Remove.
7273 (powerpc-isa205-32l.c): Remove.
7274 (powerpc-isa205-altivec32l.c): Remove.
7275 (powerpc-isa205-vsx32l.c): Remove.
7276 (powerpc-e500l.c): Remove.
7277 (powerpc-64l.c): Remove.
7278 (powerpc-altivec64l.c): Remove.
7279 (powerpc-cell64l.c): Remove.
7280 (powerpc-vsx64l.c): Remove.
7281 (powerpc-isa205-64l.c): Remove.
7282 (powerpc-isa205-altivec64l.c): Remove.
7283 (powerpc-isa205-vsx64l.c): Remove.
7284 (s390-linux32.c): Remove.
7285 (s390-linux32v1.c): Remove.
7286 (s390-linux32v2.c): Remove.
7287 (s390-linux64.c): Remove.
7288 (s390-linux64v1.c): Remove.
7289 (s390-linux64v2.c): Remove.
7290 (s390-te-linux64.c): Remove.
7291 (s390-vx-linux64.c): Remove.
7292 (s390-tevx-linux64.c): Remove.
7293 (s390x-linux64.c): Remove.
7294 (s390x-linux64v1.c): Remove.
7295 (s390x-linux64v2.c): Remove.
7296 (s390x-te-linux64.c): Remove.
7297 (s390x-vx-linux64.c): Remove.
7298 (s390x-tevx-linux64.c): Remove.
7299 (tic6x-c64xp-linux.c): Remove.
7300 (tic6x-c64x-linux.c): Remove.
7301 (tic6x-c62x-linux.c): Remove.
7303 (reg-sparc64.c): Remove.
7304 (reg-spu.c): Remove.
7306 (amd64-linux.c): Remove.
7307 (amd64-avx.c): Remove.
7308 (amd64-avx-linux.c): Remove.
7309 (amd64-avx-avx512.c): Remove.
7310 (amd64-avx-avx512-linux.c): Remove.
7311 (amd64-mpx.c): Remove.
7312 (amd64-mpx-linux.c): Remove.
7313 (amd64-avx-mpx-avx512-pku.c): Remove.
7314 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
7315 (amd64-avx-mpx.c): Remove.
7316 (amd64-avx-mpx-linux.c): Remove.
7318 (x32-linux.c): Remove.
7319 (x32-avx.c): Remove.
7320 (x32-avx-linux.c): Remove.
7321 (x32-avx-avx512.c): Remove.
7322 (x32-avx-avx512-linux.c): Remove.
7323 (reg-xtensa.c): Remove.
7324 (reg-tilegx.c): Remove.
7325 (reg-tilegx32.c): Remove.
7327 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
7329 * Makefile.in (SFILES): Add "common/environ.c".
7330 (OBJS): Add "common/environ.h".
7332 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7334 * configure.ac: Check if the fs_base and gs_base members of
7335 `struct user_regs_struct' exist.
7336 * config.in: Regenerated.
7337 * configure: Likewise.
7339 2017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
7341 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
7343 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
7344 (get_next_pcs_syscall_next_pc): Likewise.
7346 2016-12-23 Luis Machado <lgustavo@codesourcery.com>
7348 * win32-i386-low.c: Fix incorrect reference to a couple source files.
7349 * nto-x86-low.c: Likewise.
7351 2016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
7353 * Makefile.in: Include disable-implicit-rules.mk.
7355 2016-11-23 Pedro Alves <palves@redhat.com>
7357 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
7358 (debug_vprintf): Use std::chrono::steady_clock instead of
7359 gettimeofday. Use '.' instead of ':'.
7360 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
7361 (get_timestamp): Use std::chrono::steady_clock instead of
7364 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7366 * Makefile.in: Fix whitespace formatting.
7368 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7370 * Makefile.in (SFILES, OBS): Flatten list and order
7373 2016-11-23 Pedro Alves <palves@redhat.com>
7375 * event-loop.c (handle_file_event): Use warning.
7376 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
7377 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
7380 2016-11-23 Pedro Alves <palves@redhat.com>
7382 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
7384 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
7385 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
7386 debug_printf and debug_flush for debug output.
7387 * server.c (handle_general_set): Likewise.
7388 * thread-db.c (try_thread_db_load): Use debug_printf for debug
7391 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7393 * Makefile.in (.c.o): Replace rule with ...
7394 (%.o: %.c): ... this one.
7396 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7398 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
7399 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
7401 * configure.ac: Remove checks for the make program.
7402 * configure: Re-generate.
7404 2016-10-28 Pedro Alves <palves@redhat.com>
7406 * Makefile.in (CXX_DIALECT): Get from configure.
7407 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
7408 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
7409 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
7410 * config.in: Regenerate.
7411 * configure: Regenerate.
7413 2016-10-27 Yao Qi <yao.qi@linaro.org>
7415 * linux-low.c (linux_supports_range_stepping): Return true if
7416 can_software_single_step return true.
7418 2016-10-27 Yao Qi <yao.qi@linaro.org>
7420 * inferiors.c (find_inferior_in_random): New function.
7421 * inferiors.h (find_inferior_in_random): Declare.
7422 * linux-low.c (linux_wait_for_event_filtered): Call
7423 find_inferior_in_random instead of find_inferior.
7425 2016-10-27 Yao Qi <yao.qi@linaro.org>
7427 * linux-low.c (linux_wait_1): If single-step breakpoints are
7428 inserted, remove them.
7430 2016-10-26 Pedro Alves <palves@redhat.com>
7432 * linux-low.c (handle_extended_wait): Link parent/child fork
7434 (linux_wait_1): Unlink them.
7435 (linux_set_resume_request): Ignore resume requests for
7436 already-resumed and unhandled fork child threads.
7437 * linux-low.h (struct lwp_info) <fork_relative>: New field.
7438 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
7440 (handle_v_requests) <vCont>: Don't call require_running.
7441 * server.h (in_queued_stop_replies): New declaration.
7443 2016-10-24 Yao Qi <yao.qi@linaro.org>
7446 * linux-aarch64-low.c (append_insns): Cast the return value to
7449 2016-10-10 Yao Qi <yao.qi@linaro.org>
7451 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
7453 2016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
7455 * target.c (target_supports_multi_process): New function, moved
7457 * target.h (target_supports_multi_process): ... here. Remove
7460 2016-10-05 Tom Tromey <tom@tromey.com>
7463 * tracepoint.c (handle_tracepoint_bkpts): Check
7464 ipa_error_tracepoint, not ipa_stopping_tracepoint.
7466 2016-10-05 Yao Qi <yao.qi@linaro.org>
7468 * configure.srv: Update the path of arm-*.xml files.
7470 2016-10-05 Terry Guo <terry.guo@arm.com>
7471 Yao Qi <yao.qi@linaro.org>
7473 * Makefile.in: Adjust the path of rules.
7474 * configure.srv: Update the path of xml files.
7475 * regformats/arm-with-iwmmxt.dat: Regenerated.
7476 * regformats/arm-with-neon.dat: Likewise.
7477 * regformats/arm-with-vfpv2.dat: Likewise.
7478 * regformats/arm-with-vfpv3.dat Likewise.
7480 2016-09-30 Yao Qi <yao.qi@linaro.org>
7483 * target.c (target_stop_and_wait): Don't call
7484 target_continue_no_signal, use resume_stop instead.
7486 2016-09-26 Yao Qi <yao.qi@linaro.org>
7488 * linux-low.c (linux_wait_1): Call debug_exit.
7490 2016-09-23 Pedro Alves <palves@redhat.com>
7492 * Makefile.in (SFILES): Add common/new-op.c.
7493 (OBS): Add common/new-op.o.
7494 (new-op.o): New rule.
7496 2016-09-21 Simon Marchi <simon.marchi@ericsson.com>
7498 * .gitinore: Ignore more files.
7500 2016-09-21 Yao Qi <yao.qi@linaro.org>
7502 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
7505 2016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
7507 * server.c (start_inferior): Call target_mourn_inferior instead of
7508 mourn_inferior; pass ptid_t argument to it.
7510 (handle_target_event): Likewise.
7511 * target.c (target_mourn_inferior): New function.
7512 * target.h (mourn_inferior): Delete macro.
7514 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
7516 * linux-low.c (lwp_is_stepping): New function.
7518 2016-09-06 Carl Love <cel@us.ibm.com>
7520 * server.c (start_inferior): Fixed comment, requested comment change
7521 didn't get updated correctly. Removed reference to ptrace () call as
7522 it is only true on Linux systems.
7524 2016-09-06 Carl Love <cel@us.ibm.com>
7526 * server.c (start_inferior): Do not call
7527 function target_post_create_inferior () if the
7528 inferior process has already exited.
7530 2016-09-05 Pedro Alves <palves@redhat.com>
7532 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
7533 (COMPILE.pre, CC_LD): Use CXX directly.
7534 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
7535 * acinclude.m4: Don't include build-with-cxx.m4.
7536 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
7537 * configure: Regenerate.
7539 2016-09-02 Akash Trehan <akash.trehan123@gmail.com>
7542 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
7543 call writing data to own_buf.
7545 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7547 * target.c (mywait): Call target_wait instead of
7549 (target_wait): New function.
7551 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7553 * server.c (start_inferior): New variable 'ptid'. Replace calls
7554 to the_target->resume by target_continue{,_no_signal}, depending
7556 * target.c (target_stop_and_wait): Call target_continue_no_signal
7557 instead of the_target->resume.
7558 (target_continue): New function.
7560 2016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
7562 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
7564 2016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7567 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
7569 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
7570 * linux-arm-low.c (ps_get_thread_area): Likewise.
7571 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
7572 * linux-m68k-low.c (ps_get_thread_area): Likewise.
7573 * linux-mips-low.c (ps_get_thread_area): Likewise.
7574 * linux-nios2-low.c (ps_get_thread_area): Likewise.
7575 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
7576 * linux-x86-low.c (ps_get_thread_area): Likewise.
7577 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
7579 2016-08-19 Pedro Alves <palves@redhat.com>
7581 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
7583 2016-08-19 Pedro Alves <palves@redhat.com>
7585 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
7586 comment. Use memcpy instead of casting through unsigned long.
7588 2016-08-19 Pedro Alves <palves@redhat.com>
7590 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
7591 allocating around 0x80000000.
7593 2016-08-19 Pedro Alves <palves@redhat.com>
7596 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
7597 (x32-avx512-linux-ipa.o): New rules.
7598 * configure.ac (x86_64-*-linux*): New x32 check.
7599 * configure.srv (ipa_x32_linux_regobj): New.
7600 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
7601 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
7603 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
7605 * configure: Regenerate.
7607 2016-08-09 Pedro Alves <palves@redhat.com>
7610 * Makefile.in (OBS): Add signals-state-save-restore.o.
7611 (signals-state-save-restore.o): New rule.
7612 * config.in: Regenerate.
7613 * configure: Regenerate.
7614 * linux-low.c: Include "signals-state-save-restore.h".
7615 (linux_create_inferior): Call
7616 restore_original_signals_state.
7617 * server.c: Include "dispositions-save-restore.h".
7618 (captured_main): Call save_original_signals_state.
7620 2016-08-05 Pedro Alves <palves@redhat.com>
7622 * configure: Regenerate.
7624 2016-08-04 Yao Qi <yao.qi@linaro.org>
7626 * linux-low.c (regsets_fetch_inferior_registers): Check
7627 errno is ESRCH or not.
7629 2016-08-02 Yao Qi <yao.qi@linaro.org>
7631 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
7632 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
7633 (thread_db_load_search): Update.
7634 (try_thread_db_load_1): Don't look for td_ta_event_addr,
7635 td_ta_set_event and td_ta_event_getmsg.
7637 2016-07-26 Pedro Alves <palves@redhat.com>
7640 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
7641 of unsigned long for 64-bit registers and use uint32_t instead of
7642 unsigned int for 32-bit registers.
7644 2016-07-26 Pedro Alves <palves@redhat.com>
7646 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
7649 2016-07-21 Tom Tromey <tom@tromey.com>
7651 * configure: Rebuild.
7653 2016-07-21 Yao Qi <yao.qi@linaro.org>
7655 * mem-break.c (find_gdb_breakpoint): Cast bp to
7656 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
7658 2016-07-21 Yao Qi <yao.qi@linaro.org>
7660 * server.c (handle_v_requests): Support s and S actions
7661 if target_supports_software_single_step return true.
7663 2016-07-21 Yao Qi <yao.qi@linaro.org>
7665 * linux-low.c (resume_stopped_resumed_lwps): If resume request
7666 is resume_step, call maybe_hw_step.
7667 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
7669 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
7671 (proceed_one_lwp): If resume request is resume_step, install
7672 reinsert breakpoints and call maybe_hw_step.
7674 2016-07-21 Yao Qi <yao.qi@linaro.org>
7676 * linux-low.c (proceed_one_lwp): Declare.
7677 (linux_resume_one_thread): Remove local variable 'step'.
7678 Lift code enqueue signal. Call proceed_one_lwp instead of
7679 linux_resume_one_lwp.
7681 2016-07-21 Yao Qi <yao.qi@linaro.org>
7683 * linux-low.c (linux_resume_one_thread): Call
7684 enqueue_pending_signal.
7686 2016-07-21 Yao Qi <yao.qi@linaro.org>
7688 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
7689 * inferiors.c (do_restore_current_thread_cleanup): New function.
7690 (make_cleanup_restore_current_thread): Likewise.
7691 * linux-low.c (install_software_single_step_breakpoints): Call
7692 make_cleanup_restore_current_thread. Switch current_thread to
7695 2016-07-21 Yao Qi <yao.qi@linaro.org>
7697 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
7698 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
7699 (clone_one_breakpoint): Likewise.
7700 (delete_reinsert_breakpoints): Change parameter to thread.
7702 (has_reinsert_breakpoints): Likewise.
7703 (uninsert_reinsert_breakpoints): Likewise.
7704 (reinsert_reinsert_breakpoints): Likewise.
7705 * mem-break.h (set_reinsert_breakpoint): Update declaration.
7706 (delete_reinsert_breakpoints): Likewise.
7707 (reinsert_reinsert_breakpoints): Likewise.
7708 (uninsert_reinsert_breakpoints): Likewise.
7709 (has_reinsert_breakpoints): Likewise.
7711 2016-07-21 Yao Qi <yao.qi@linaro.org>
7713 * inferiors.c (get_thread_process): Make parameter const.
7714 * inferiors.h (get_thread_process): Update declaration.
7715 * mem-break.c (clone_all_breakpoints): Remove all parameters.
7716 Add new parameters child_thread and parent_thread. Callers
7718 * mem-break.h (clone_all_breakpoints): Update declaration.
7720 2016-07-21 Yao Qi <yao.qi@linaro.org>
7722 * mem-break.c (struct breakpoint) <cond_list>: Remove.
7723 <command_list, handler>: Remove.
7724 (struct gdb_breakpoint): New.
7725 (struct other_breakpoint): New.
7726 (struct reinsert_breakpoint): New.
7727 (is_gdb_breakpoint): New function.
7728 (any_persistent_commands): Update command_list if
7729 is_gdb_breakpoint returns true.
7730 (set_breakpoint): Create breakpoints according to their types.
7731 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
7732 (set_gdb_breakpoint_1): Likewise.
7733 (set_gdb_breakpoint): Likewise.
7734 (clear_breakpoint_conditions): Change parameter type to
7735 'struct gdb_breakpoint *'.
7736 (clear_breakpoint_commands): Likewise.
7737 (clear_breakpoint_conditions_and_commands): Likewise.
7738 (add_condition_to_breakpoint): Likewise.
7739 (add_breakpoint_condition): Likewise.
7740 (add_commands_to_breakpoint): Likewise.
7741 (check_breakpoints): Check other_breakpoint.
7742 (clone_one_breakpoint): Clone breakpopint according to its type.
7743 * mem-break.h (struct gdb_breakpoint): Declare.
7744 (set_gdb_breakpoint): Update declaration.
7745 (clear_breakpoint_conditions_and_commands): Likewise.
7746 (add_breakpoint_condition): Likewise.
7747 (add_breakpoint_commands): Likewise.
7748 * server.c (process_point_options): Change parameter type to
7749 'struct gdb_breakpoint *'.
7751 2016-07-21 Yao Qi <yao.qi@linaro.org>
7753 * mem-break.c (set_breakpoint_at): Rename it to ...
7754 (set_breakpoint_type_at): ... it.
7755 (set_breakpoint_at): Call set_breakpoint_type_at.
7756 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
7757 * mem-break.h (set_breakpoint_at): Update comments.
7759 2016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
7761 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
7763 (nios2_store_gregset): Likewise.
7765 2016-07-01 Pedro Alves <palves@redhat.com>
7766 Antoine Tremblay <antoine.tremblay@ericsson.com>
7768 * linux-low.c: Change interface to take the target lwp_info
7769 pointer directly and return void. Handle detaching from a zombie
7771 (linux_detach_lwp_callback): New function.
7772 (linux_detach): Detach from the leader thread after detaching from
7775 2016-06-28 Yao Qi <yao.qi@linaro.org>
7777 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
7778 for variable new_offset.
7779 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
7780 (aarch64_ftrace_insn_reloc_cb): Likewise.
7781 (aarch64_ftrace_insn_reloc_tb): Likewise.
7782 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
7783 PRIx64 instead of PRIx32.
7785 2016-06-28 Yao Qi <yao.qi@linaro.org>
7787 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
7788 (the_low_target): Install arm_get_syscall_trapinfo.
7790 2016-06-28 Yao Qi <yao.qi@linaro.org>
7792 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
7794 (the_low_target): Install aarch64_get_syscall_trapinfo.
7796 2016-06-28 Yao Qi <yao.qi@linaro.org>
7798 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
7800 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
7801 Remove parameter sysno.
7802 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
7805 2016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7807 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
7808 (s390_emit_ne_goto): Likewise.
7809 (s390_emit_lt_goto): Likewise.
7810 (s390_emit_le_goto): Likewise.
7811 (s390_emit_gt_goto): Likewise.
7812 (s390_emit_ge_goto): Likewise.
7813 (s390x_emit_eq_goto): Likewise.
7814 (s390x_emit_ne_goto): Likewise.
7815 (s390x_emit_lt_goto): Likewise.
7816 (s390x_emit_le_goto): Likewise.
7817 (s390x_emit_gt_goto): Likewise.
7818 (s390x_emit_ge_goto): Likewise.
7819 (s390_emit_ops_impl): Mark variable static.
7820 (s390x_emit_ops): Likewise.
7822 2016-06-17 Yao Qi <yao.qi@linaro.org>
7824 * linux-low.c (handle_extended_wait): Call
7825 uninsert_reinsert_breakpoints for the parent process. Remove
7826 reinsert breakpoints from the child process. Reinsert them to
7827 the parent process when vfork is done.
7828 * mem-break.c (uninsert_reinsert_breakpoints): New function.
7829 (reinsert_reinsert_breakpoints): New function.
7830 * mem-break.h (uninsert_reinsert_breakpoints): Declare
7831 (reinsert_reinsert_breakpoints): Declare.
7833 2016-06-17 Yao Qi <yao.qi@linaro.org>
7835 * linux-low.c (handle_extended_wait): If the parent is doing
7836 step-over, remove the reinsert breakpoints from the forked child.
7838 2016-06-17 Yao Qi <yao.qi@linaro.org>
7840 * linux-low.c (unsuspend_all_lwps): Declare.
7841 (linux_low_filter_event): If thread exited, call finish_step_over.
7842 If step-over is finished, unsuspend other threads.
7844 2016-06-17 Yao Qi <yao.qi@linaro.org>
7846 * linux-low.c (linux_resume_one_lwp_throw): Assert
7847 has_reinsert_breakpoints returns false.
7848 * mem-break.c (delete_disabled_breakpoints): Assert
7849 bp type isn't reinsert_breakpoint.
7851 2016-06-17 Yao Qi <yao.qi@linaro.org>
7853 * linux-low.c (maybe_hw_step): New function.
7854 (linux_resume_one_lwp_throw): Call maybe_hw_step.
7855 (finish_step_over): Switch current_thread to lwp temporarily,
7856 and assert has_reinsert_breakpoints returns true.
7857 (proceed_one_lwp): Call maybe_hw_step.
7858 * mem-break.c (has_reinsert_breakpoints): New function.
7859 * mem-break.h (has_reinsert_breakpoints): Declare.
7861 2016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
7863 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
7865 2016-05-17 Yao Qi <yao.qi@linaro.org>
7867 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
7868 instead of find_inferior.
7870 2016-05-05 Yao Qi <yao.qi@linaro.org>
7872 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
7873 Initialize res to zero.
7875 2016-05-05 Yao Qi <yao.qi@linaro.org>
7877 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
7880 2016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7882 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
7883 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
7884 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
7886 2016-04-28 Par Olsson <par.olsson@windriver.com>
7887 Simon Marchi <simon.marchi@ericsson.com>
7889 * tracepoint.c (write_inferior_int8): New function.
7890 (cmd_qtenable_disable): Write enable flag using
7891 write_inferior_int8.
7893 2016-04-25 Yao Qi <yao.qi@linaro.org>
7895 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
7896 (need_step_over_p): Return zero if the LWP has pending signals
7897 can be delivered on software single step target.
7899 2016-04-25 Yao Qi <yao.qi@linaro.org>
7901 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
7902 return instead of error.
7904 2016-04-22 Yao Qi <yao.qi@linaro.org>
7906 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
7909 2016-04-22 Yao Qi <yao.qi@linaro.org>
7911 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
7912 signal when stepping over breakpoint with software single
7915 2016-04-21 Pedro Alves <palves@redhat.com>
7917 * linux-s390-low.c (s390_collect_ptrace_register)
7918 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
7920 (s390_check_regset): Use void * instead of gdb_byte *.
7922 2016-04-20 Pedro Alves <palves@redhat.com>
7924 * configure: Renegerate.
7926 2016-04-20 Yao Qi <yao.qi@linaro.org>
7928 * linux-aarch32-low.c: Include "arch/arm-linux.h".
7929 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
7931 (arm_store_gregset): Likewise.
7933 2016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
7935 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
7936 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
7937 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
7938 (amd64-avx-mpx-linux.c): New rules.
7939 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
7940 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
7941 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
7942 (srv_amd64_regobj): Add amd64-avx-mpx.o.
7943 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
7944 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
7945 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
7946 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
7947 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
7948 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
7949 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
7950 * linux-x86-low.c (x86_linux_read_description): Add case for
7951 X86_XSTATE_AVX_MPX_MASK.
7952 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
7953 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
7954 init_registers_i386_avx_mpx_linux.
7955 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
7956 (initialize_low_tracepoint): Call
7957 init_registers_i386_avx_mpx_linux.
7958 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
7959 (initialize_low_tracepoint): Call
7960 init_registers_amd64_avx_mpx_linux.
7961 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
7962 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
7963 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
7966 2016-04-18 Pedro Alves <palves@redhat.com>
7968 * configure: Regenerate.
7970 2016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
7972 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
7973 (aarch64_emit_sub): Likewise.
7975 2016-04-12 Pedro Alves <palves@redhat.com>
7977 * utils.c (prepare_to_throw_exception): Delete.
7979 2016-04-05 Simon Marchi <simon.marchi@ericsson.com>
7981 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
7983 2016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
7985 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
7987 2016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
7989 * linux-aarch64-ipa.c: Add <elf.h> include.
7990 * linux-ppc-ipa.c: Add <elf.h> include.
7991 * linux-s390-ipa.c: Add <elf.h> include.
7993 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
7995 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
7996 (get_raw_reg_ptr): Likewise.
7997 (get_trace_state_variable_value_ptr): Likewise.
7998 (set_trace_state_variable_value_ptr): Likewise.
7999 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
8002 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
8003 Marcin Kościelnicki <koriakin@0x04.net>
8006 * linux-ppc-low.c (emit_insns): New function.
8007 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
8008 (ppc_emit_prologue): New function.
8009 (ppc_emit_epilogue): New function.
8010 (ppc_emit_add): New function.
8011 (ppc_emit_sub): New function.
8012 (ppc_emit_mul): New function.
8013 (ppc_emit_lsh): New function.
8014 (ppc_emit_rsh_signed): New function.
8015 (ppc_emit_rsh_unsigned): New function.
8016 (ppc_emit_ext): New function.
8017 (ppc_emit_zero_ext): New function.
8018 (ppc_emit_log_not): New function.
8019 (ppc_emit_bit_and): New function.
8020 (ppc_emit_bit_or): New function.
8021 (ppc_emit_bit_xor): New function.
8022 (ppc_emit_bit_not): New function.
8023 (ppc_emit_equal): New function.
8024 (ppc_emit_less_signed): New function.
8025 (ppc_emit_less_unsigned): New function.
8026 (ppc_emit_ref): New function.
8027 (ppc_emit_const): New function.
8028 (ppc_emit_reg): New function.
8029 (ppc_emit_pop): New function.
8030 (ppc_emit_stack_flush): New function.
8031 (ppc_emit_swap): New function.
8032 (ppc_emit_stack_adjust): New function.
8033 (ppc_emit_call): New function.
8034 (ppc_emit_int_call_1): New function.
8035 (ppc_emit_void_call_2): New function.
8036 (ppc_emit_if_goto): New function.
8037 (ppc_emit_goto): New function.
8038 (ppc_emit_eq_goto): New function.
8039 (ppc_emit_ne_goto): New function.
8040 (ppc_emit_lt_goto): New function.
8041 (ppc_emit_le_goto): New function.
8042 (ppc_emit_gt_goto): New function.
8043 (ppc_emit_ge_goto): New function.
8044 (ppc_write_goto_address): New function.
8045 (ppc_emit_ops_impl): New static variable.
8046 (ppc64v1_emit_prologue): New function.
8047 (ppc64v2_emit_prologue): New function.
8048 (ppc64_emit_epilogue): New function.
8049 (ppc64_emit_add): New function.
8050 (ppc64_emit_sub): New function.
8051 (ppc64_emit_mul): New function.
8052 (ppc64_emit_lsh): New function.
8053 (ppc64_emit_rsh_signed): New function.
8054 (ppc64_emit_rsh_unsigned): New function.
8055 (ppc64_emit_ext): New function.
8056 (ppc64_emit_zero_ext): New function.
8057 (ppc64_emit_log_not): New function.
8058 (ppc64_emit_bit_and): New function.
8059 (ppc64_emit_bit_or): New function.
8060 (ppc64_emit_bit_xor): New function.
8061 (ppc64_emit_bit_not): New function.
8062 (ppc64_emit_equal): New function.
8063 (ppc64_emit_less_signed): New function.
8064 (ppc64_emit_less_unsigned): New function.
8065 (ppc64_emit_ref): New function.
8066 (ppc64_emit_const): New function.
8067 (ppc64v1_emit_reg): New function.
8068 (ppc64v2_emit_reg): New function.
8069 (ppc64_emit_pop): New function.
8070 (ppc64_emit_stack_flush): New function.
8071 (ppc64_emit_swap): New function.
8072 (ppc64v1_emit_call): New function.
8073 (ppc64v2_emit_call): New function.
8074 (ppc64v1_emit_int_call_1): New function.
8075 (ppc64v2_emit_int_call_1): New function.
8076 (ppc64v1_emit_void_call_2): New function.
8077 (ppc64v2_emit_void_call_2): New function.
8078 (ppc64_emit_if_goto): New function.
8079 (ppc64_emit_eq_goto): New function.
8080 (ppc64_emit_ne_goto): New function.
8081 (ppc64_emit_lt_goto): New function.
8082 (ppc64_emit_le_goto): New function.
8083 (ppc64_emit_gt_goto): New function.
8084 (ppc64_emit_ge_goto): New function.
8085 (ppc64v1_emit_ops_impl): New static variable.
8086 (ppc64v2_emit_ops_impl): New static variable.
8087 (ppc_emit_ops): New function.
8088 (linux_low_target): Wire in ppc_emit_ops.
8090 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
8091 Marcin Kościelnicki <koriakin@0x04.net>
8094 * Makefile.in: Add powerpc-*-ipa.o
8095 * configure.srv: Add ipa_obj for powerpc*-linux.
8096 * linux-ppc-ipa.c: New file.
8097 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
8099 (PPC_FIELD): New macro.
8100 (PPC_SEXT): New macro.
8101 (PPC_OP6): New macro.
8102 (PPC_BO): New macro.
8103 (PPC_LI): New macro.
8104 (PPC_BD): New macro.
8105 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
8106 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
8107 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
8108 (ppc_get_thread_area): New function.
8109 (is_elfv2_inferior): New function.
8110 (gen_ds_form): New function.
8111 (GEN_STD): New macro.
8112 (GEN_STDU): New macro.
8113 (GEN_LD): New macro.
8114 (GEN_LDU): New macro.
8115 (gen_d_form): New function.
8116 (GEN_ADDI): New macro.
8117 (GEN_ADDIS): New macro.
8118 (GEN_LI): New macro.
8119 (GEN_LIS): New macro.
8120 (GEN_ORI): New macro.
8121 (GEN_ORIS): New macro.
8122 (GEN_LWZ): New macro.
8123 (GEN_STW): New macro.
8124 (GEN_STWU): New macro.
8125 (gen_xfx_form): New function.
8126 (GEN_MFSPR): New macro.
8127 (GEN_MTSPR): New macro.
8128 (GEN_MFCR): New macro.
8129 (GEN_MTCR): New macro.
8130 (GEN_SYNC): New macro.
8131 (GEN_LWSYNC): New macro.
8132 (gen_x_form): New function.
8133 (GEN_OR): New macro.
8134 (GEN_MR): New macro.
8135 (GEN_LWARX): New macro.
8136 (GEN_STWCX): New macro.
8137 (GEN_CMPW): New macro.
8138 (gen_md_form): New function.
8139 (GEN_RLDICL): New macro.
8140 (GEN_RLDICR): New macro.
8141 (gen_i_form): New function.
8143 (GEN_BL): New macro.
8144 (gen_b_form): New function.
8145 (GEN_BNE): New macro.
8146 (GEN_LOAD): New macro.
8147 (GEN_STORE): New macro.
8148 (gen_limm): New function.
8149 (gen_atomic_xchg): New function.
8150 (gen_call): New function.
8151 (ppc_relocate_instruction): New function.
8152 (ppc_install_fast_tracepoint_jump_pad): New function.
8153 (ppc_get_min_fast_tracepoint_insn_len): New function.
8154 (ppc_get_ipa_tdesc_idx): New function.
8155 (the_low_target): Wire in the new functions.
8156 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
8158 * linux-ppc-tdesc.h: New file.
8160 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8162 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8163 (alloc_jump_pad_buffer): New function.
8164 * linux-amd64-ipa.c: Add <sys/mman.h> include.
8165 (alloc_jump_pad_buffer): New function.
8166 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
8167 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8168 (alloc_jump_pad_buffer): New function.
8169 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
8170 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
8171 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
8172 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
8174 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8176 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
8177 * linux-amd64-ipa.c: Likewise.
8178 * linux-i386-ipa.c: Likewise.
8179 * linux-s390-ipa.c: Likewise.
8180 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
8181 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
8182 set_trace_state_variable_value_ptr.
8183 (struct ipa_sym_addresses): Likewise.
8184 (symbol_list): Likewise.
8185 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
8186 accessing gdb_collect directly.
8187 (gdb_collect_ptr_type): New typedef.
8188 (get_raw_reg_ptr_type): New typedef.
8189 (get_trace_state_variable_value_ptr_type): New typedef.
8190 (set_trace_state_variable_value_ptr_type): New typedef.
8191 (gdb_collect_ptr): New global.
8192 (get_raw_reg_ptr): New global.
8193 (get_trace_state_variable_value_ptr): New global.
8194 (set_trace_state_variable_value_ptr): New global.
8195 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
8196 accessing get_raw_reg directly.
8197 (get_get_tsv_func_addr): Likewise for
8198 get_trace_state_variable_value_ptr.
8199 (get_set_tsv_func_addr): Likewise for
8200 set_trace_state_variable_value_ptr.
8201 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
8203 2016-03-30 Simon Marchi <simon.marchi@ericsson.com>
8205 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
8207 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8209 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
8211 (relocate_instruction): Remove own_buf.
8212 * server.c (own_buf): Make global.
8213 (handle_v_requests): Make global.
8214 * server.h (own_buf): New declaration.
8215 (handle_v_requests): New prototype.
8217 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8220 * linux-s390-low.c (add_insns): New function.
8221 (s390_emit_prologue): New function.
8222 (s390_emit_epilogue): New function.
8223 (s390_emit_add): New function.
8224 (s390_emit_sub): New function.
8225 (s390_emit_mul): New function.
8226 (s390_emit_lsh): New function.
8227 (s390_emit_rsh_signed): New function.
8228 (s390_emit_rsh_unsigned): New function.
8229 (s390_emit_ext): New function.
8230 (s390_emit_log_not): New function.
8231 (s390_emit_bit_and): New function.
8232 (s390_emit_bit_or): New function.
8233 (s390_emit_bit_xor): New function.
8234 (s390_emit_bit_not): New function.
8235 (s390_emit_equal): New function.
8236 (s390_emit_less_signed): New function.
8237 (s390_emit_less_unsigned): New function.
8238 (s390_emit_ref): New function.
8239 (s390_emit_if_goto): New function.
8240 (s390_emit_goto): New function.
8241 (s390_write_goto_address): New function.
8242 (s390_emit_litpool): New function.
8243 (s390_emit_const): New function.
8244 (s390_emit_call): New function.
8245 (s390_emit_reg): New function.
8246 (s390_emit_pop): New function.
8247 (s390_emit_stack_flush): New function.
8248 (s390_emit_zero_ext): New function.
8249 (s390_emit_swap): New function.
8250 (s390_emit_stack_adjust): New function.
8251 (s390_emit_set_r2): New function.
8252 (s390_emit_int_call_1): New function.
8253 (s390_emit_void_call_2): New function.
8254 (s390_emit_eq_goto): New function.
8255 (s390_emit_ne_goto): New function.
8256 (s390_emit_lt_goto): New function.
8257 (s390_emit_le_goto): New function.
8258 (s390_emit_gt_goto): New function.
8259 (s390_emit_ge_goto): New function.
8260 (s390x_emit_prologue): New function.
8261 (s390x_emit_epilogue): New function.
8262 (s390x_emit_add): New function.
8263 (s390x_emit_sub): New function.
8264 (s390x_emit_mul): New function.
8265 (s390x_emit_lsh): New function.
8266 (s390x_emit_rsh_signed): New function.
8267 (s390x_emit_rsh_unsigned): New function.
8268 (s390x_emit_ext): New function.
8269 (s390x_emit_log_not): New function.
8270 (s390x_emit_bit_and): New function.
8271 (s390x_emit_bit_or): New function.
8272 (s390x_emit_bit_xor): New function.
8273 (s390x_emit_bit_not): New function.
8274 (s390x_emit_equal): New function.
8275 (s390x_emit_less_signed): New function.
8276 (s390x_emit_less_unsigned): New function.
8277 (s390x_emit_ref): New function.
8278 (s390x_emit_if_goto): New function.
8279 (s390x_emit_const): New function.
8280 (s390x_emit_call): New function.
8281 (s390x_emit_reg): New function.
8282 (s390x_emit_pop): New function.
8283 (s390x_emit_stack_flush): New function.
8284 (s390x_emit_zero_ext): New function.
8285 (s390x_emit_swap): New function.
8286 (s390x_emit_stack_adjust): New function.
8287 (s390x_emit_int_call_1): New function.
8288 (s390x_emit_void_call_2): New function.
8289 (s390x_emit_eq_goto): New function.
8290 (s390x_emit_ne_goto): New function.
8291 (s390x_emit_lt_goto): New function.
8292 (s390x_emit_le_goto): New function.
8293 (s390x_emit_gt_goto): New function.
8294 (s390x_emit_ge_goto): New function.
8295 (s390_emit_ops): New function.
8296 (struct linux_target_ops): Fill in emit_ops hook.
8298 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8301 * Makefile.in: Add s390 IPA files.
8302 * configure.srv: Build IPA for s390.
8303 * linux-s390-ipa.c: New file.
8304 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
8305 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
8306 (tdesc_s390_linux32): Likewise.
8307 (init_registers_s390_linux32v1): Likewise.
8308 (tdesc_s390_linux32v1): Likewise.
8309 (init_registers_s390_linux32v2): Likewise.
8310 (tdesc_s390_linux32v2): Likewise.
8311 (init_registers_s390_linux64): Likewise.
8312 (tdesc_s390_linux64): Likewise.
8313 (init_registers_s390_linux64v1): Likewise.
8314 (tdesc_s390_linux64v1): Likewise.
8315 (init_registers_s390_linux64v2): Likewise.
8316 (tdesc_s390_linux64v2): Likewise.
8317 (init_registers_s390_te_linux64): Likewise.
8318 (tdesc_s390_te_linux64): Likewise.
8319 (init_registers_s390_vx_linux64): Likewise.
8320 (tdesc_s390_vx_linux64): Likewise.
8321 (init_registers_s390_tevx_linux64): Likewise.
8322 (tdesc_s390_tevx_linux64): Likewise.
8323 (init_registers_s390x_linux64): Likewise.
8324 (tdesc_s390x_linux64): Likewise.
8325 (init_registers_s390x_linux64v1): Likewise.
8326 (tdesc_s390x_linux64v1): Likewise.
8327 (init_registers_s390x_linux64v2): Likewise.
8328 (tdesc_s390x_linux64v2): Likewise.
8329 (init_registers_s390x_te_linux64): Likewise.
8330 (tdesc_s390x_te_linux64): Likewise.
8331 (init_registers_s390x_vx_linux64): Likewise.
8332 (tdesc_s390x_vx_linux64): Likewise.
8333 (init_registers_s390x_tevx_linux64): Likewise.
8334 (tdesc_s390x_tevx_linux64): Likewise.
8335 (have_hwcap_s390_vx): New static variable.
8336 (s390_arch_setup): Fill have_hwcap_s390_vx.
8337 (s390_get_thread_area): New function.
8338 (s390_ft_entry_gpr_esa): New const.
8339 (s390_ft_entry_gpr_zarch): New const.
8340 (s390_ft_entry_misc): New const.
8341 (s390_ft_entry_fr): New const.
8342 (s390_ft_entry_vr): New const.
8343 (s390_ft_main_31): New const.
8344 (s390_ft_main_64): New const.
8345 (s390_ft_exit_fr): New const.
8346 (s390_ft_exit_vr): New const.
8347 (s390_ft_exit_misc): New const.
8348 (s390_ft_exit_gpr_esa): New const.
8349 (s390_ft_exit_gpr_zarch): New const.
8350 (append_insns): New function.
8351 (s390_relocate_instruction): New function.
8352 (s390_install_fast_tracepoint_jump_pad): New function.
8353 (s390_get_min_fast_tracepoint_insn_len): New function.
8354 (s390_get_ipa_tdesc_idx): New function.
8355 (struct linux_target_ops): Wire in the above functions.
8356 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
8357 * linux-s390-tdesc.h: New file.
8359 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8361 * linux-s390-low.c (s390_supports_tracepoints): New function.
8362 (struct linux_target_ops): Fill supports_tracepoints hook.
8364 2016-03-18 Yao Qi <yao.qi@linaro.org>
8366 * linux-low.c (lwp_signal_can_be_delivered): New function.
8367 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
8369 2016-03-18 Yao Qi <yao.qi@linaro.org>
8371 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
8372 0 if signal is enqueued. Remove 'signal' from one debugging
8373 message. Move one debugging message to some lines below.
8374 Remove code setting 'signal' to 0.
8376 2016-03-18 Yao Qi <yao.qi@linaro.org>
8378 * linux-low.c (linux_low_filter_event): Remove redundant
8379 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
8381 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
8383 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
8384 (struct linux_target_ops): Wire in the above.
8386 2016-03-03 Yao Qi <yao.qi@linaro.org>
8388 * linux-low.c: Update comments to start_step_over.
8390 2016-03-03 Yao Qi <yao.qi@linaro.org>
8393 * linux-low.c (handle_extended_wait): Set child suspended
8394 if event_lwp->bp_reinsert isn't zero.
8396 2016-03-02 Yao Qi <yao.qi@linaro.org>
8398 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
8399 enqueue_pending_signal.
8401 2016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
8403 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
8406 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8408 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
8409 (s390_regmap_3264) [!__s390x__]: New global.
8410 (s390_collect_ptrace_register): Skip map entries containing -1.
8411 (s390_supply_ptrace_register): Ditto.
8412 (s390_fill_gprs_high): New function.
8413 (s390_store_gprs_high): New function.
8414 (s390_regsets): Add NT_S390_HIGH_GPRS.
8415 (s390_get_hwcap): Enable on 31-bit.
8416 (have_hwcap_s390_high_gprs): Enable on 31-bit.
8417 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
8418 Detect NT_S390_HIGH_GPRS.
8419 (s390_usrregs_info_3264): Enable on 31-bit.
8420 (s390_regs_info): Enable regs_info_3264 on 31-bit.
8421 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
8423 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8426 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
8427 * configure.srv: Ditto.
8428 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
8429 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
8430 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
8431 (init_registers_amd64_linux): Remove prototype.
8432 (tdesc_amd64_linux): Remove declaration.
8433 (get_ipa_tdesc): New function.
8434 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8435 initialize remaining tdescs.
8436 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
8437 (init_registers_i386_linux): Remove prototype.
8438 (tdesc_i386_linux): Remove declaration.
8439 (get_ipa_tdesc): New function.
8440 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8441 initialize remaining tdescs.
8442 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
8443 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
8444 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
8445 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
8446 (x86_get_ipa_tdesc_idx): New function.
8447 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
8448 * linux-x86-tdesc.h: New file.
8449 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
8450 (target_get_ipa_tdesc_idx): New macro.
8451 * tracepoint.c (ipa_tdesc_idx): New macro.
8452 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
8453 (symbol_list): Add ipa_tdesc_idx.
8454 (cmd_qtstart): Write ipa_tdesc_idx in the target.
8455 (ipa_tdesc): Remove.
8456 (ipa_tdesc_idx): New variable.
8457 (get_context_regcache): Use get_ipa_tdesc.
8458 (gdb_collect): Ditto.
8460 * tracepoint.h (get_ipa_tdesc): New prototype.
8461 (ipa_tdesc): Remove.
8463 2016-02-24 Pedro Alves <palves@redhat.com>
8465 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
8466 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
8467 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
8468 Factor out common code between the USE_SIGTRAP_SIGINFO and
8469 !USE_SIGTRAP_SIGINFO blocks.
8470 (linux_low_filter_event): Call save_stop_reason instead of
8471 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
8473 (linux_wait_1): Update comments.
8475 2016-02-24 Wei-cheng Wang <cole945@gmail.com>
8477 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
8478 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
8479 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
8480 ppc_insert_point, ppc_remove_point.
8482 2016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
8484 * linux-s390-low.c (s390_supports_z_point_type): New function.
8485 (struct linux_target_ops): Wire s390_supports_z_point_type in.
8487 2016-02-16 Yao Qi <yao.qi@linaro.org>
8489 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
8490 PC. Get pc from regcache_read_pc.
8492 2016-02-12 Yao Qi <yao.qi@linaro.org>
8494 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
8495 or linux_get_pc_32bit.
8496 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
8498 2016-02-12 Yao Qi <yao.qi@linaro.org>
8500 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
8501 arm_linux_get_next_pcs_fixup.
8503 2016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
8505 * tracepoint.c (x_tracepoint_action_download): Change
8506 write_inferior_data_ptr to write_inferior_data_pointer.
8507 (cmd_qtstart): Likewise.
8508 (write_inferior_data_ptr): Remove.
8509 (download_agent_expr): Change write_inferior_data_ptr to
8510 write_inferior_data_pointer.
8511 (download_tracepoint_1): Likewise.
8512 (download_tracepoint): Likewise.
8513 (download_trace_state_variables): Likewise.
8515 2016-02-11 Wei-cheng Wang <cole945@gmail.com>
8516 Marcin Kościelnicki <koriakin@0x04.net>
8518 * tracepoint.c (struct tracepoint_action_ops): Remove.
8519 (struct tracepoint_action): Remove ops.
8520 (m_tracepoint_action_download, r_tracepoint_action_download)
8521 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
8522 size and offset accordingly.
8523 (m_tracepoint_action_ops, r_tracepoint_action_ops)
8524 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
8525 (tracepoint_action_send, tracepoint_action_download): New functions.
8526 Helpers for trace action handlers.
8527 (add_tracepoint_action): Remove setup actions ops.
8528 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
8530 2016-02-10 Yao Qi <yao.qi@linaro.org>
8532 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
8534 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8536 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
8538 * configure: Regenerate.
8540 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8542 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
8543 void * to gdb_byte *.
8544 * linux-low.c (siginfo_fixup): Likewise.
8545 (linux_xfer_siginfo): Likewise.
8546 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
8548 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
8550 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
8552 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
8554 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
8556 * linux-x86-low.c [__x86_64__]: Include
8557 "nat/amd64-linux-siginfo.h".
8558 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
8559 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
8560 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
8561 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
8562 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
8563 (cpt_si_fd, si_timerid, si_overrun): Move from
8564 nat/amd64-linux-siginfo.c.
8565 * Makefile.in (amd64-linux-siginfo.o:): New rule.
8567 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
8569 * server.c (skip_to_semicolon): Remove.
8570 (process_point_options): Use strchrnul instead of
8573 2016-01-26 Yao Qi <yao.qi@linaro.org>
8575 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
8576 * linux-low.c (install_software_single_step_breakpoints): Don't
8577 call regcache_read_pc.
8578 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
8581 2016-01-26 Yao Qi <yao.qi@linaro.org>
8583 * linux-low.c (install_software_single_step_breakpoints): Call
8584 regcache_read_pc instead of get_pc.
8586 2016-01-26 Yao Qi <yao.qi@linaro.org>
8588 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
8589 (unblock_async_io): Rename to ...
8590 (block_unblock_async_io): ... it. New function.
8591 (enable_async_io): Don't install SIGIO handler. Unblock it
8593 (disable_async_io): Don't ignore SIGIO. Block it instead.
8594 (initialize_async_io): Install SIGIO handler. Don't call
8597 2016-01-26 Yao Qi <yao.qi@linaro.org>
8599 * remote-utils.c (getpkt): If the buffer isn't empty, and the
8600 first character is '\003', call *the_target->request_interrupt.
8602 2016-01-25 Yao Qi <yao.qi@linaro.org>
8604 * remote-utils.c (new_thread_notify): Remove.
8605 (dead_thread_notify): Likewise.
8606 * remote-utils.h (new_thread_notify): Remove declaration.
8607 (dead_thread_notify): Likewise.
8609 2016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
8611 * gdb.trace/pending.exp: Fix expected message on continue.
8613 2016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
8615 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
8616 it works properly on big-endian machines where sizeof (CORE_ADDR)
8619 2016-01-21 Pedro Alves <palves@redhat.com>
8621 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
8622 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
8623 * configure: Regenerate.
8625 2016-01-21 Yao Qi <yao.qi@linaro.org>
8627 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
8628 is_thumb and set it according to CPSR saved on the stack.
8629 (get_next_pcs_syscall_next_pc): Pass is_thumb to
8630 arm_sigreturn_next_pc.
8632 2016-01-18 Yao Qi <yao.qi@linaro.org>
8634 * linux-low.c (linux_set_pc_64bit): New function.
8635 (linux_get_pc_64bit): New function.
8636 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
8638 * linux-sparc-low.c (debug_threads): Remove declaration.
8639 (sparc_get_pc): Remove.
8640 (the_low_target): Use linux_get_pc_64bit instead of
8642 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
8643 (the_low_target): Use linux_get_pc_64bit and
8646 2016-01-18 Yao Qi <yao.qi@linaro.org>
8648 * linux-arm-low.c (debug_threads): Remove declaration.
8649 (arm_get_pc, arm_set_pc): Remove.
8650 (the_low_target): Use linux_get_pc_32bit and
8652 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
8653 (the_low_target): Use linux_get_pc_32bit and
8655 * linux-cris-low.c (debug_threads): Remove declaration.
8656 (cris_get_pc, cris_set_pc,): Remove.
8657 (the_low_target): Use linux_get_pc_32bit and
8659 * linux-crisv32-low.c (debug_threads): Remove declaration.
8660 (cris_get_pc, cris_set_pc): Remove.
8661 (the_low_target): Use linux_get_pc_32bit and
8663 * linux-low.c: Include inttypes.h.
8664 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
8665 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
8666 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
8667 (the_low_target): Use linux_get_pc_32bit and
8669 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
8670 (the_low_target): Use linux_get_pc_32bit and
8672 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
8673 (the_low_target): Use linux_get_pc_32bit and
8675 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
8676 (the_low_target): Use linux_get_pc_32bit and
8678 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
8679 (the_low_target): Use linux_get_pc_32bit and
8682 2016-01-18 Gary Benson <gbenson@redhat.com>
8684 * configure.ac (AC_FUNC_FORK): New check.
8685 * config.in: Regenerate.
8686 * configure: Likewise.
8688 2016-01-14 Yao Qi <yao.qi@linaro.org>
8690 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
8691 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
8692 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
8693 arm_get_next_pcs_ctor.
8695 2016-01-12 Josh Stone <jistone@redhat.com>
8696 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8698 * inferiors.h: Include "gdb_vecs.h".
8699 (struct process_info): Add syscalls_to_catch.
8700 * inferiors.c (remove_process): Free syscalls_to_catch.
8701 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
8702 syscall_return stops.
8703 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
8704 * server.c (handle_general_set): Handle QCatchSyscalls.
8705 (handle_query): Report support for QCatchSyscalls.
8706 * target.h (struct target_ops): Add supports_catch_syscall.
8707 (target_supports_catch_syscall): New macro.
8708 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
8709 (struct lwp_info): Add syscall_state.
8710 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
8711 Maintain syscall_state and syscalls_to_catch across exec.
8712 (get_syscall_trapinfo): New function, proxy to the_low_target.
8713 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
8714 (linux_low_filter_event): Toggle syscall_state entry/return for
8715 syscall traps, and set it ignored for all others.
8716 (gdb_catching_syscalls_p): New function.
8717 (gdb_catch_this_syscall_p): New function.
8718 (linux_wait_1): Handle SYSCALL_SIGTRAP.
8719 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
8720 (linux_supports_catch_syscall): New function.
8721 (linux_target_ops): Install it.
8722 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
8723 (the_low_target): Install it.
8725 2016-01-12 Mike Frysinger <vapier@gentoo.org>
8727 * acinclude.m4: Include new ../warning.m4 file.
8728 * configure: Regenerated.
8729 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
8731 2016-01-12 Mike Frysinger <vapier@gentoo.org>
8733 * ax.c (is_goto_target): Mark static.
8734 * linux-low.c (register_addr): Likewise.
8735 (linux_fetch_registers, linux_store_registers): Likewise.
8736 * mem-break.c (any_persistent_commands): Fix old prototype.
8737 (add_commands_to_breakpoint): Mark static.
8738 * regcache.c (find_register_by_name): Delete unused func.
8739 * remote-utils.c (hex_or_minus_one): Mark static.
8740 * server.c (monitor_show_help): Mark static.
8741 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
8742 handle_v_requests): Likewise.
8744 2016-01-12 Pedro Alves <palves@redhat.com>
8746 Remove use of the registered trademark symbol throughout.
8748 2016-01-08 Yao Qi <yao.qi@linaro.org>
8750 * remote-utils.c (getpkt): If c is '\003', call target hook
8753 2016-01-06 Yao Qi <yao.qi@linaro.org>
8755 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
8756 linux-aarch32-low.c.
8757 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8758 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
8759 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8760 (thumb2_breakpoint): Declare.
8761 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
8762 linux-aarch32-low.h.
8763 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8764 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
8765 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8767 2016-01-01 Joel Brobecker <brobecker@adacore.com>
8769 * gdbreplay.c (gdbreplay_version): Change copyright year in
8771 * server.c (gdbserver_version): Likewise.
8773 2015-12-28 Patrick Palka <patrick@parcs.ath.cx>
8775 * server.c (crc32_table): Delete.
8776 (crc32): Use libiberty's xcrc32 function.
8778 2015-12-22 Joel Brobecker <brobecker@adacore.com>
8780 * lynx-low.c (lynx_delete_thread_callback): New function.
8781 (lynx_mourn): Properly delete our process and all of its
8782 threads. Remove call to clear_inferiors.
8784 2015-12-22 Joel Brobecker <brobecker@adacore.com>
8786 * target.c (thread_search_callback): Add check that
8787 the thread_stopped target callback is not NULL before
8790 2015-12-21 Yao Qi <yao.qi@linaro.org>
8792 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
8795 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8797 * server.c (handle_query): Call target_supports_software_single_step.
8799 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8801 * linux-low.c (single_step): New function.
8802 (linux_resume_one_lwp_throw): Call single_step.
8803 (start_step_over): Likewise.
8805 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8807 * Makefile.in (SFILES): Append arch/arm-linux.c,
8808 arch/arm-get-next-pcs.c.
8809 (arm-linux.o): New rule.
8810 (arm-get-next-pcs.o): New rule.
8811 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
8813 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
8814 to linux-aarch32-low.c.
8815 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8816 (arm_breakpoint_len, thumb_breakpoint): Likewise.
8817 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
8818 (thumb2_breakpoint_len): Likewise.
8819 (arm_is_thumb_mode): Make non-static.
8820 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
8821 from linux-aarch32-low.c.
8822 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8823 (arm_breakpoint_len, thumb_breakpoint): Likewise.
8824 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
8825 (thumb2_breakpoint_len): Likewise.
8826 (arm_is_thumb_mode): New declaration.
8827 * linux-arm-low.c: Include arch/arm-linux.h
8828 aarch/arm-get-next-pcs.h, sys/syscall.h.
8829 (get_next_pcs_ops): New struct.
8830 (get_next_pcs_addr_bits_remove): New function.
8831 (get_next_pcs_is_thumb): New function.
8832 (get_next_pcs_read_memory_unsigned_integer): Likewise.
8833 (arm_sigreturn_next_pc): Likewise.
8834 (get_next_pcs_syscall_next_pc): Likewise.
8835 (arm_gdbserver_get_next_pcs): Likewise.
8836 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
8838 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
8839 * server.h: Include gdb_vecs.h.
8841 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8843 * Makefile.in (SFILES): Append common/common-regcache.c.
8844 (OBS): Append common-regcache.o.
8845 (common-regcache.o): New rule.
8846 * regcache.c (init_register_cache): Initialize cache to
8848 (regcache_raw_read_unsigned): New function.
8849 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
8850 register_status enum.
8852 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8854 * linux-aarch64-low.c (the_low_targets): Rename
8855 breakpoint_reinsert_addr to get_next_pcs.
8856 * linux-arm-low.c (the_low_targets): Likewise.
8857 * linux-bfin-low.c (the_low_targets): Likewise.
8858 * linux-cris-low.c (the_low_targets): Likewise.
8859 * linux-crisv32-low.c (the_low_targets): Likewise.
8860 * linux-low.c (can_software_single_step): Likewise.
8861 (install_software_single_step_breakpoints): New function.
8862 (start_step_over): Use install_software_single_step_breakpoints.
8863 * linux-low.h: New CORE_ADDR vector.
8864 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
8866 * linux-mips-low.c (the_low_targets): Likewise.
8867 * linux-nios2-low.c (the_low_targets): Likewise.
8868 * linux-sparc-low.c (the_low_targets): Likewise.
8870 2015-12-17 Pedro Alves <palves@redhat.com>
8872 * linux-low.c (linux_kill_one_lwp): Remove references to
8874 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
8876 (linux_init_signals): Delete.
8877 (initialize_low): Adjust.
8878 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
8880 2015-12-16 Pedro Alves <palves@redhat.com>
8882 * configure.ac (compiler warning flags): When testing a
8883 -Wno-foo option, check whether -Wfoo works instead.
8884 * configure: Regenerate.
8886 2015-12-11 Don Breazeal <donb@codesourcery.com>
8888 * server.c (process_serial_event): Don't exit from gdbserver
8889 in remote mode if there are still active inferiors.
8891 2015-12-11 Yao Qi <yao.qi@linaro.org>
8893 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
8894 arm_breakpoint_at if the process is 32-bit.
8896 2015-12-11 Yao Qi <yao.qi@linaro.org>
8898 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
8901 2015-12-07 Yao Qi <yao.qi@linaro.org>
8903 * configure.srv: Append arm.o to srv_tgtobj for
8904 aarch64*-*-linux* target.
8905 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
8906 from linux-arm-low.c.
8907 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8908 (arm_breakpoint_len, thumb_breakpoint): Likewise.
8909 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
8910 (thumb2_breakpoint_len): Likewise.
8911 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
8912 (arm_breakpoint_kinds): Likewise.
8913 (arm_breakpoint_kind_from_pc): Likewise.
8914 (arm_sw_breakpoint_from_kind): Likewise.
8915 (arm_breakpoint_kind_from_current_state): Likewise.
8916 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
8917 (arm_sw_breakpoint_from_kind): Declare.
8918 (arm_breakpoint_kind_from_current_state): Declare.
8919 (arm_breakpoint_at): Declare.
8920 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
8921 arm_sw_breakpoint_from_kind if process is 32-bit.
8922 (aarch64_breakpoint_kind_from_pc): New function.
8923 (aarch64_breakpoint_kind_from_current_state): New function.
8924 (the_low_target): Initialize fields breakpoint_kind_from_pc
8925 and breakpoint_kind_from_current_state.
8926 * linux-arm-low.c (arm_breakpoint_kinds): Move to
8927 linux-aarch32-low.c.
8928 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
8929 (arm_breakpoint, arm_breakpoint_len): Likewise.
8930 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
8931 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8932 (arm_is_thumb_mode): Likewise.
8933 (arm_breakpoint_at): Likewise.
8934 (arm_breakpoint_kind_from_pc): Likewise.
8935 (arm_sw_breakpoint_from_kind): Likewise.
8936 (arm_breakpoint_kind_from_current_state): Likewise.
8939 2015-08-04 Yao Qi <yao.qi@linaro.org>
8941 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
8942 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
8943 * server.c (extended_protocol): Remove "static".
8944 * server.h (extended_protocol): Declare it.
8946 2015-12-04 Josh Stone <jistone@redhat.com>
8948 * target.h (struct target_ops) <arch_setup>: Rename to ...
8949 (struct target_ops) <post_create_inferior>: ... this.
8950 (target_arch_setup): Rename to ...
8951 (target_post_create_inferior): ... this, calling post_create_inferior.
8952 * server.c (start_inferior): Update target_arch_setup calls to
8953 target_post_create_inferior.
8954 * linux-low.c (linux_low_ptrace_options): Forward declare.
8955 (linux_arch_setup): Update its comment for general use.
8956 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
8957 (struct linux_target_ops): Use linux_post_create_inferior.
8958 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
8959 to post_create_inferior.
8960 * nto-low.c (struct nto_target_ops): Likewise.
8961 * spu-low.c (struct spu_target_ops): Likewise.
8962 * win32-low.c (struct win32_target_ops): Likewise.
8964 2015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
8966 * linux-arm-low.c: Remove duplicate arch/arm.h include.
8968 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
8970 * linux-arm-low.c (arm_reinsert_addr): Remove function.
8971 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
8972 * linux-cris-low.c (cris_reinsert_addr> Remove function.
8973 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
8974 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
8975 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
8976 * linux-mips-low.c (mips_reinsert_addr): Remove function.
8977 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
8978 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
8979 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
8980 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
8981 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
8983 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
8985 * linux-low.c (linux_look_up_symbols): Don't call
8986 linux_supports_traceclone.
8987 * linux-low.h (thread_db_init): Remove use_events argument.
8988 * thread-db.c (thread_db_use_event): Remove global variable.
8989 (struct thread_db) <td_thr_event_enable_p>: Remove field.
8990 (struct thread_db) <td_create_bp>: Remove field.
8991 (thread_db_create_event): Remove function.
8992 (thread_db_enable_reporting): Likewise.
8993 (find_one_thread): Don't check for thread_db_use_events.
8994 (attach_thread): Likewise.
8995 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
8996 (try_thread_db_load_1): Don't check for thread_db_use_events.
8997 (thread_db_init): Remove use_events argument and thread events
8999 (remove_thread_event_breakpoints): Remove function.
9000 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
9002 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9004 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
9006 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9007 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
9008 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9009 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
9010 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
9012 * linux-crisv32-low.c (cris_supports_hardware_single_step):
9014 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9015 * linux-low.c (can_hardware_single_step): Use
9016 supports_hardware_single_step.
9017 (can_software_single_step): New function.
9018 (start_step_over): Call can_software_single_step.
9019 (linux_supports_hardware_single_step): New function.
9020 (struct target_ops) <supports_software_single_step>: Initialize.
9021 * linux-low.h (struct linux_target_ops)
9022 <supports_hardware_single_step>: Initialize.
9023 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
9024 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9025 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
9026 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
9027 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
9028 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9029 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
9030 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9031 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
9032 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
9034 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
9035 (struct linux_target_ops) <tile_supports_hardware_single_step>:
9037 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
9038 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9039 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
9041 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9042 * target.h (struct target_ops): <supports_software_single_step>:
9044 (target_supports_software_single_step): New macro.
9046 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9048 * linux-low.c (linux_wait_1): Fix pc advance condition.
9049 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
9050 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
9052 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9054 * linux-arm-low.c (arm_is_thumb_mode): New function.
9055 (arm_breakpoint_at): Use arm_is_thumb_mode.
9056 (arm_breakpoint_kind_from_current_state): New function.
9057 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
9059 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
9060 (linux_breakpoint_kind_from_current_state): New function.
9061 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
9062 * linux-low.h (struct linux_target_ops)
9063 <breakpoint_kind_from_current_state>: New field.
9064 * target.h (struct target_ops): Likewise.
9065 (target_breakpoint_kind_from_current_state): New macro.
9067 2015-11-30 Pedro Alves <palves@redhat.com>
9069 * linux-low.c (linux_resume): Wake up the event loop before
9072 2015-11-30 Pedro Alves <palves@redhat.com>
9074 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
9076 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
9078 * target.c (struct thread_search): New structure.
9079 (thread_search_callback): New function.
9080 (prev_general_thread): New global.
9081 (prepare_to_access_memory, done_accessing_memory): New functions.
9082 * target.h (prepare_to_access_memory, done_accessing_memory):
9083 Replace macros with function declarations.
9085 2015-11-30 Pedro Alves <palves@redhat.com>
9088 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
9089 report TARGET_WAITKIND_NO_RESUMED.
9090 * remote-utils.c (prepare_resume_reply): Handle
9091 TARGET_WAITKIND_NO_RESUMED.
9092 * server.c (report_no_resumed): New global.
9093 (handle_query) <qSupported>: Handle "no-resumed+". Report
9094 "no-resumed+" support.
9095 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
9096 return error if the client doesn't support no-resumed events.
9097 (push_stop_notification): New function.
9098 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
9099 events if the client supports them.
9101 2015-11-30 Pedro Alves <palves@redhat.com>
9103 * linux-low.c (thread_still_has_status_pending_p): Don't check
9105 (lwp_resumed): New function.
9106 (status_pending_p_callback): Return early if the LWP is not
9107 supposed to be resumed.
9109 2015-11-30 Pedro Alves <palves@redhat.com>
9111 * linux-low.c (handle_extended_wait): Assert that the LWP's
9112 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
9113 thread create events, leave the new child's status pending.
9114 (linux_low_filter_event): If GDB wants to hear about thread exit
9115 events, leave the LWP marked dead and don't delete it.
9116 (linux_wait_for_event_filtered): Don't check for thread exit.
9117 (filter_exit_event): New function.
9118 (linux_wait_1): Use it, when returning an exit event.
9119 (linux_resume_one_lwp_throw): Assert that the LWP's
9120 waitstatus is TARGET_WAITKIND_IGNORE.
9121 * remote-utils.c (prepare_resume_reply): Handle
9122 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
9123 * server.c (report_thread_events): New global.
9124 (handle_general_set): Handle QThreadEvents.
9125 (handle_query) <qSupported>: Handle and report QThreadEvents+;
9126 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
9127 TARGET_WAITKIND_THREAD_EXITED.
9128 * server.h (report_thread_events): Declare.
9130 2015-11-30 Pedro Alves <palves@redhat.com>
9132 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
9133 the thread's last_resume_kind was resume_stop.
9135 2015-11-30 Pedro Alves <palves@redhat.com>
9137 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
9140 2015-11-30 Pedro Alves <palves@redhat.com>
9142 * server.c (handle_v_requests): Handle vCtrlC.
9144 2015-11-30 Pedro Alves <palves@redhat.com>
9146 * gdbthread.h (find_any_thread_of_pid): Declare.
9147 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
9149 * server.c (handle_query): If current_thread is NULL, look for
9150 another thread of the selected process.
9152 2015-11-26 Daniel Colascione <dancol@dancol.org>
9153 Simon Marchi <simon.marchi@ericsson.com>
9155 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
9156 * server.c (handle_qxfer_threads_worker): Refactor to include thread
9158 * target.h (struct target_ops) <thread_name>: New field.
9159 (target_thread_name): New macro.
9161 2015-11-23 Joel Brobecker <brobecker@adacore.com>
9163 * regcache.h (regcache_invalidate_pid): Add declaration.
9164 * regcache.c (regcache_invalidate_pid): New function, extracted
9165 from regcache_invalidate.
9166 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
9167 Add trivial documentation comment.
9168 * lynx-low.c: Use regcache_invalidate_pid instead of
9169 regcache_invalidate.
9171 2015-11-23 Joel Brobecker <brobecker@adacore.com>
9173 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
9174 and Elf64_auxv_t if the target is Android.
9176 2015-11-22 Doug Evans <xdje42@gmail.com>
9178 * target.h: #include <sys/types.h>.
9180 2015-11-19 Pedro Alves <palves@redhat.com>
9182 * linux-low.c (linux_process_qsupported): Change prototype.
9184 * linux-low.h (struct linux_target_ops) <process_qsupported>:
9186 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
9187 and adjust to loop over all features.
9188 * server.c (handle_query) <qSupported>: Adjust to call
9189 target_process_qsupported once, passing it a vector of unprocessed
9191 * target.h (struct target_ops) <process_qsupported>: Change
9193 (target_process_qsupported): Adjust.
9195 2015-11-19 Pedro Alves <palves@redhat.com>
9197 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
9199 * configure: Regenerate.
9201 2015-11-19 Pedro Alves <palves@redhat.com>
9203 * configure: Regenerate.
9205 2015-11-19 Yao Qi <yao.qi@linaro.org>
9207 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
9210 2015-11-19 Yao Qi <yao.qi@linaro.org>
9212 * linux-aarch64-low.c (enum aarch64_operand_type): New.
9213 (struct aarch64_operand): Move enum out.
9215 2015-11-19 Yao Qi <yao.qi@linaro.org>
9217 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
9218 struct user_fpsimd_state *.
9219 (aarch64_store_fpregset): Likewise.
9221 2015-11-19 Yao Qi <yao.qi@linaro.org>
9223 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
9224 struct user_pt_regs *.
9225 (aarch64_store_gregset): Likewise.
9227 2015-11-18 Pedro Alves <palves@redhat.com>
9229 * Makefile.in (all_object_files): Add $IPA_OBJS.
9231 2015-11-17 Pedro Alves <palves@redhat.com>
9233 * win32-low.c (win32_resume): Use gdb_signal_from_host,
9234 GDB_SIGNAL_0 and gdb_signal_to_string.
9236 2015-11-17 Pedro Alves <palves@redhat.com>
9238 * win32-low.c (handle_output_debug_string): Remove parameter.
9239 (win32_kill): Remove our_status local and adjust call to
9240 handle_output_debug_string.
9241 (get_child_debug_event): Adjust call to
9242 handle_output_debug_string.
9244 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9246 * linux-mips-low.c (mips_fill_gregset): Add cast.
9247 (mips_store_gregset): Likewise.
9248 (mips_fill_fpregset): Likewise.
9249 (mips_store_fpregset): Likewise.
9251 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9253 * linux-mips-low.c (mips_add_watchpoint): Rename private to
9256 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9258 * linux-mips-low.c (mips_linux_new_thread): Change type of
9259 watch_type to enum target_hw_bp_type.
9261 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9263 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
9264 Change return type to arm_hwbp_type.
9266 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9268 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
9269 (arm_store_gregset): Likewise.
9270 * linux-arm-low.c (arm_get_hwcap): Likewise.
9271 (arm_read_description): Likewise.
9273 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9275 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
9277 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9279 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
9280 (ppc_fill_vsxregset): Likewise.
9281 (ppc_store_vsxregset): Likewise.
9282 (ppc_fill_vrregset): Likewise.
9283 (ppc_store_vrregset): Likewise.
9284 (ppc_fill_evrregset): Likewise.
9285 (ppc_store_evrregset): Likewise.
9287 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9289 * linux-ppc-low.c (ppc_usrregs_info): Remove
9290 forward-declaration.
9291 (ppc_arch_setup): Move lower in file.
9293 2015-10-30 Simon Marchi <simon.marchi@ericsson.com>
9295 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
9296 (ps_pdwrite): Likewise.
9298 2015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
9300 * linux-arm-low.c (arm_new_thread): Move pointer dereference
9301 to after assert checks.
9303 2015-10-29 Simon Marchi <simon.marchi@ericsson.com>
9305 * proc-service.c (ps_pdread): Add/adjust casts.
9306 (ps_pdwrite): Add/adjust casts.
9308 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9310 * server.c (handle_search_memory_1): Cast return value of
9313 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9315 * server.c (write_qxfer_response): Change type of data to
9318 2015-10-29 Pedro Alves <palves@redhat.com>
9320 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
9322 2015-10-29 Pedro Alves <palves@redhat.com>
9324 * tracepoint.c (clear_installed_tracepoints): Add casts.
9326 2015-10-29 Pedro Alves <palves@redhat.com>
9328 * server.c (handle_v_cont, process_serial_event): Add enum
9329 gdb_signal casts to signal parsing code.
9331 2015-10-29 Pedro Alves <palves@redhat.com>
9333 * linux-low.h (NULL_REGSET): Define.
9334 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9335 * linux-arm-low.c (arm_regsets): Likewise.
9336 * linux-crisv32-low.c (cris_regsets): Likewise.
9337 * linux-m68k-low.c (m68k_regsets): Likewise.
9338 * linux-mips-low.c (mips_regsets): Likewise.
9339 * linux-nios2-low.c (nios2_regsets): Likewise.
9340 * linux-ppc-low.c (ppc_regsets): Likewise.
9341 * linux-s390-low.c (s390_regsets): Likewise.
9342 * linux-sh-low.c (sh_regsets): Likewise.
9343 * linux-sparc-low.c (sparc_regsets): Likewise.
9344 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9345 * linux-tile-low.c (tile_regsets): Likewise.
9346 * linux-x86-low.c (x86_regsets): Likewise.
9347 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9349 2015-10-29 Pedro Alves <palves@redhat.com>
9351 * linux-low.h (NULL_REGSET): Define.
9352 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9353 * linux-arm-low.c (arm_regsets): Likewise.
9354 * linux-crisv32-low.c (cris_regsets): Likewise.
9355 * linux-m68k-low.c (m68k_regsets): Likewise.
9356 * linux-mips-low.c (mips_regsets): Likewise.
9357 * linux-nios2-low.c (nios2_regsets): Likewise.
9358 * linux-ppc-low.c (ppc_regsets): Likewise.
9359 * linux-s390-low.c (s390_regsets): Likewise.
9360 * linux-sh-low.c (sh_regsets): Likewise.
9361 * linux-sparc-low.c (sparc_regsets): Likewise.
9362 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9363 * linux-tile-low.c (tile_regsets): Likewise.
9364 * linux-x86-low.c (x86_regsets): Likewise.
9365 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9367 2015-10-26 Doug Evans <dje@google.com>
9369 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
9371 2015-10-26 Doug Evans <dje@google.com>
9373 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
9375 2015-10-26 Doug Evans <dje@google.com>
9377 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
9379 (attach_thread, find_new_threads_callback): Ditto.
9381 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9383 * mem-break.h (set_breakpoint_data): Remove.
9385 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9387 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
9388 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9389 (initialize_low): Remove set_breakpoint_data call.
9390 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
9391 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
9392 (initialize_low): Remove set_breakpoint_data call.
9393 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
9394 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9395 (initialize_low): Remove set_breakpoint_data call.
9397 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9399 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
9400 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
9401 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
9402 * target.h (target_breakpoint_kind_from_pc): New macro.
9404 2015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
9406 * linux-low.c (default_breakpoint_kind_from_pc): New function.
9407 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
9408 the default breakpoint kind.
9410 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9412 * linux-arm-low.c (arm_supports_z_point_type): Add software
9415 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9417 * linux-arm-low.c: Refactor breakpoint definitions.
9418 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
9419 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
9421 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9423 * Makefile.in: Add arm.c/o.
9424 * configure.srv: Likewise.
9425 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
9426 (arm_breakpoint_kind_from_pc): New function.
9427 (arm_sw_breakpoint_from_kind): Return proper kind.
9428 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
9430 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9432 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
9434 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
9435 (struct raw_breakpoint) <size>: Remove.
9436 (struct raw_breakpoint) <kind>: Add.
9437 (bp_size): New function.
9438 (bp_opcode): Likewise.
9439 (find_raw_breakpoint_at): Adjust for kind.
9440 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
9441 (remove_memory_breakpoint): Adjust for kind call bp_size.
9442 (set_raw_breakpoint_at): Adjust for kind.
9443 (set_breakpoint): Likewise.
9444 (set_breakpoint_at): Call breakpoint_kind_from_pc.
9445 (delete_raw_breakpoint): Adjust for kind.
9446 (delete_breakpoint): Likewise.
9447 (find_gdb_breakpoint): Likewise.
9448 (set_gdb_breakpoint_1): Likewise.
9449 (set_gdb_breakpoint): Likewise.
9450 (delete_gdb_breakpoint_1): Likewise.
9451 (delete_gdb_breakpoint): Likewise.
9452 (uninsert_raw_breakpoint): Likewise.
9453 (reinsert_raw_breakpoint): Likewise.
9454 (set_breakpoint_data): Remove.
9455 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
9456 (check_mem_read): Adjust for kind call bp_size.
9457 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
9458 (clone_one_breakpoint): Adjust for kind.
9459 * mem-break.h (set_gdb_breakpoint): Likewise.
9460 (delete_gdb_breakpoint): Likewise.
9461 * server.c (process_serial_event): Likewise.
9463 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9465 * linux-aarch64-low.c (aarch64_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-arm-low.c (arm_breakpoint_kind_from_pc): New function.
9471 (arm_sw_breakpoint_from_kind): New function.
9472 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
9473 (struct linux_target_ops) <breakpoint>: Remove.
9474 (struct linux_target_ops) <breakpoint_len>: Remove.
9475 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9476 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9477 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
9478 (struct linux_target_ops) <breakpoint>: Remove.
9479 (struct linux_target_ops) <breakpoint_len>: Remove.
9480 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9481 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9482 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
9483 (struct linux_target_ops) <breakpoint>: Remove.
9484 (struct linux_target_ops) <breakpoint_len>: Remove.
9485 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9486 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9487 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
9488 and sw_breakpoint_from_kind to increment the pc.
9489 (linux_breakpoint_kind_from_pc): New function.
9490 (linux_sw_breakpoint_from_kind): New function.
9491 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
9492 (initialize_low): Call breakpoint_kind_from_pc and
9493 sw_breakpoint_from_kind to replace breakpoint_data/len.
9494 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
9496 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
9497 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
9498 (struct linux_target_ops) <breakpoint>: Remove.
9499 (struct linux_target_ops) <breakpoint_len>: Remove.
9500 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9501 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9502 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
9503 (struct linux_target_ops) <breakpoint>: Remove.
9504 (struct linux_target_ops) <breakpoint_len>: Remove.
9505 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9506 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9507 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
9508 (struct linux_target_ops) <breakpoint>: Remove.
9509 (struct linux_target_ops) <breakpoint_len>: Remove.
9510 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9511 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9512 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
9513 (struct linux_target_ops) <breakpoint>: Remove.
9514 (struct linux_target_ops) <breakpoint_len>: Remove.
9515 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9516 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9517 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
9518 (struct linux_target_ops) <breakpoint>: Remove.
9519 (struct linux_target_ops) <breakpoint_len>: Remove.
9520 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9521 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9522 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
9523 (struct linux_target_ops) <breakpoint>: Remove.
9524 (struct linux_target_ops) <breakpoint_len>: Remove.
9525 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9526 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9527 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
9528 (struct linux_target_ops) <breakpoint>: Remove.
9529 (struct linux_target_ops) <breakpoint_len>: Remove.
9530 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9531 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9532 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
9533 (struct linux_target_ops) <breakpoint>: Remove.
9534 (struct linux_target_ops) <breakpoint_len>: Remove.
9535 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9536 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9537 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
9538 (struct linux_target_ops) <breakpoint>: Remove.
9539 (struct linux_target_ops) <breakpoint_len>: Remove.
9540 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9541 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9542 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
9543 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
9544 (struct linux_target_ops) <breakpoint>: Remove.
9545 (struct linux_target_ops) <breakpoint_len>: Remove.
9546 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9547 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9548 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
9549 (struct linux_target_ops) <breakpoint>: Remove.
9550 (struct linux_target_ops) <breakpoint_len>: Remove.
9551 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9552 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9554 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9556 * linux-cris-low.c (cris_get_pc): Remove void arg.
9558 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9560 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
9563 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9565 * inferiors.c (thread_pid_matches_callback): New function.
9566 (find_thread_process): New function.
9567 (remove_thread): Reset current_thread.
9568 (remove_process): Assert threads have been removed first.
9570 2015-10-15 Yao Qi <yao.qi@linaro.org>
9572 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
9574 (aarch64_remove_point): Likewise.
9575 * regcache.c (regcache_register_size): New function.
9577 2015-10-12 Yao Qi <yao.qi@linaro.org>
9579 * linux-aarch64-low.c: Update all callers as emit_load_store
9580 is renamed to aarch64_emit_load_store.
9582 2015-10-12 Yao Qi <yao.qi@linaro.org>
9584 * linux-aarch64-low.c: Update all callers of function renaming
9585 from emit_insn to aarch64_emit_insn.
9587 2015-10-12 Yao Qi <yao.qi@linaro.org>
9589 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
9590 arch/aarch64-insn.h.
9591 (struct aarch64_memory_operand): Likewise.
9593 (emit_insn): Move to arch/aarch64-insn.c.
9594 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
9595 (emit_load_store): Move to arch/aarch64-insn.c.
9596 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
9597 (can_encode_int32): Remove.
9599 2015-10-12 Yao Qi <yao.qi@linaro.org>
9601 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
9602 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
9603 (aarch64_relocate_instruction): Likewise.
9604 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
9605 (struct aarch64_insn_visitor): Likewise.
9607 2015-10-12 Yao Qi <yao.qi@linaro.org>
9609 * linux-aarch64-low.c (struct aarch64_insn_data): New.
9610 (struct aarch64_insn_visitor): New.
9611 (struct aarch64_insn_relocation_data): New.
9612 (aarch64_ftrace_insn_reloc_b): New function.
9613 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
9614 (aarch64_ftrace_insn_reloc_cb): Likewise.
9615 (aarch64_ftrace_insn_reloc_tb): Likewise.
9616 (aarch64_ftrace_insn_reloc_adr): Likewise.
9617 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
9618 (aarch64_ftrace_insn_reloc_others): Likewise.
9620 (aarch64_relocate_instruction): Use visitor.
9622 2015-10-12 Yao Qi <yao.qi@linaro.org>
9624 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
9625 int. Add argument buf.
9626 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
9627 aarch64_relocate_instruction.
9629 2015-10-12 Yao Qi <yao.qi@linaro.org>
9631 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
9632 argument insn. Remove local variable insn. Don't call
9634 (aarch64_install_fast_tracepoint_jump_pad): Call
9637 2015-09-30 Yao Qi <yao.qi@linaro.org>
9639 * linux-aarch64-low.c (emit_movk): Shorten a long line.
9640 (emit_load_store_pair): Likewise.
9642 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9644 * dll.c (match_dll): Add cast(s).
9645 (unloaded_dll): Likewise.
9646 * linux-low.c (second_thread_of_pid_p): Likewise.
9647 (delete_lwp_callback): Likewise.
9648 (count_events_callback): Likewise.
9649 (select_event_lwp_callback): Likewise.
9650 (linux_set_resume_request): Likewise.
9651 * server.c (accumulate_file_name_length): Likewise.
9652 (emit_dll_description): Likewise.
9653 (handle_qxfer_threads_worker): Likewise.
9654 (visit_actioned_threads): Likewise.
9655 * thread-db.c (any_thread_of): Likewise.
9656 * tracepoint.c (same_process_p): Likewise.
9657 (match_blocktype): Likewise.
9658 (build_traceframe_info_xml): Likewise.
9660 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9662 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
9664 (gdb_unparse_agent_expr): Likewise.
9665 * hostio.c (require_data): Likewise.
9666 (handle_pread): Likewise.
9667 * linux-low.c (disable_regset): Likewise.
9668 (fetch_register): Likewise.
9669 (store_register): Likewise.
9670 (get_dynamic): Likewise.
9671 (linux_qxfer_libraries_svr4): Likewise.
9672 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
9673 (set_fast_tracepoint_jump): Likewise.
9674 (uninsert_fast_tracepoint_jumps_at): Likewise.
9675 (reinsert_fast_tracepoint_jumps_at): Likewise.
9676 (validate_inserted_breakpoint): Likewise.
9677 (clone_agent_expr): Likewise.
9678 * regcache.c (init_register_cache): Likewise.
9679 * remote-utils.c (putpkt_binary_1): Likewise.
9680 (decode_M_packet): Likewise.
9681 (decode_X_packet): Likewise.
9682 (look_up_one_symbol): Likewise.
9683 (relocate_instruction): Likewise.
9684 (monitor_output): Likewise.
9685 * server.c (handle_search_memory): Likewise.
9686 (handle_qxfer_exec_file): Likewise.
9687 (handle_qxfer_libraries): Likewise.
9688 (handle_qxfer): Likewise.
9689 (handle_query): Likewise.
9690 (handle_v_cont): Likewise.
9691 (handle_v_run): Likewise.
9692 (captured_main): Likewise.
9693 * target.c (write_inferior_memory): Likewise.
9694 * thread-db.c (try_thread_db_load_from_dir): Likewise.
9695 * tracepoint.c (init_trace_buffer): Likewise.
9696 (add_tracepoint_action): Likewise.
9697 (add_traceframe): Likewise.
9698 (add_traceframe_block): Likewise.
9699 (cmd_qtdpsrc): Likewise.
9700 (cmd_qtdv): Likewise.
9701 (cmd_qtstatus): Likewise.
9702 (response_source): Likewise.
9703 (response_tsv): Likewise.
9704 (cmd_qtnotes): Likewise.
9705 (gdb_collect): Likewise.
9706 (initialize_tracepoint): Likewise.
9708 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9710 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
9711 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
9712 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
9714 (enum aarch64_condition_codes): New enum.
9715 (w0): New static global.
9718 (struct aarch64_memory_operand) <type>: New
9719 MEMORY_OPERAND_POSTINDEX type.
9720 (postindex_memory_operand): New helper function.
9721 (emit_ret): New function.
9722 (emit_load_store_pair): New function, factored out of emit_stp
9723 with support for MEMORY_OPERAND_POSTINDEX.
9724 (emit_stp): Rewrite using emit_load_store_pair.
9725 (emit_ldp): New function.
9726 (emit_load_store): Likewise.
9727 (emit_ldr): Mention post-index instruction in comment.
9728 (emit_ldrh): New function.
9729 (emit_ldrb): New function.
9730 (emit_ldrsw): Mention post-index instruction in comment.
9731 (emit_str): Likewise.
9732 (emit_subs): New function.
9733 (emit_cmp): Likewise.
9734 (emit_and): Likewise.
9735 (emit_orr): Likewise.
9736 (emit_orn): Likewise.
9737 (emit_eor): Likewise.
9738 (emit_mvn): Likewise.
9739 (emit_lslv): Likewise.
9740 (emit_lsrv): Likewise.
9741 (emit_asrv): Likewise.
9742 (emit_mul): Likewise.
9743 (emit_sbfm): Likewise.
9744 (emit_sbfx): Likewise.
9745 (emit_ubfm): Likewise.
9746 (emit_ubfx): Likewise.
9747 (emit_csinc): Likewise.
9748 (emit_cset): Likewise.
9749 (emit_nop): Likewise.
9750 (emit_ops_insns): New helper function.
9751 (emit_pop): Likewise.
9752 (emit_push): Likewise.
9753 (aarch64_emit_prologue): New function.
9754 (aarch64_emit_epilogue): Likewise.
9755 (aarch64_emit_add): Likewise.
9756 (aarch64_emit_sub): Likewise.
9757 (aarch64_emit_mul): Likewise.
9758 (aarch64_emit_lsh): Likewise.
9759 (aarch64_emit_rsh_signed): Likewise.
9760 (aarch64_emit_rsh_unsigned): Likewise.
9761 (aarch64_emit_ext): Likewise.
9762 (aarch64_emit_log_not): Likewise.
9763 (aarch64_emit_bit_and): Likewise.
9764 (aarch64_emit_bit_or): Likewise.
9765 (aarch64_emit_bit_xor): Likewise.
9766 (aarch64_emit_bit_not): Likewise.
9767 (aarch64_emit_equal): Likewise.
9768 (aarch64_emit_less_signed): Likewise.
9769 (aarch64_emit_less_unsigned): Likewise.
9770 (aarch64_emit_ref): Likewise.
9771 (aarch64_emit_if_goto): Likewise.
9772 (aarch64_emit_goto): Likewise.
9773 (aarch64_write_goto_address): Likewise.
9774 (aarch64_emit_const): Likewise.
9775 (aarch64_emit_call): Likewise.
9776 (aarch64_emit_reg): Likewise.
9777 (aarch64_emit_pop): Likewise.
9778 (aarch64_emit_stack_flush): Likewise.
9779 (aarch64_emit_zero_ext): Likewise.
9780 (aarch64_emit_swap): Likewise.
9781 (aarch64_emit_stack_adjust): Likewise.
9782 (aarch64_emit_int_call_1): Likewise.
9783 (aarch64_emit_void_call_2): Likewise.
9784 (aarch64_emit_eq_goto): Likewise.
9785 (aarch64_emit_ne_goto): Likewise.
9786 (aarch64_emit_lt_goto): Likewise.
9787 (aarch64_emit_le_goto): Likewise.
9788 (aarch64_emit_gt_goto): Likewise.
9789 (aarch64_emit_ge_got): Likewise.
9790 (aarch64_emit_ops_impl): New static global variable.
9791 (aarch64_emit_ops): New target function, return
9792 &aarch64_emit_ops_impl.
9793 (struct linux_target_ops): Install it.
9795 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9797 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
9798 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
9800 * linux-aarch64-ipa.c: New file.
9801 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
9803 (aarch64_get_thread_area): New target method.
9804 (extract_signed_bitfield): New helper function.
9805 (aarch64_decode_ldr_literal): New function.
9806 (enum aarch64_opcodes): New enum.
9807 (struct aarch64_register): New struct.
9808 (struct aarch64_operand): New struct.
9809 (x0): New static global.
9818 (aarch64_register): New helper function.
9819 (register_operand): Likewise.
9820 (immediate_operand): Likewise.
9821 (struct aarch64_memory_operand): New struct.
9822 (offset_memory_operand): New helper function.
9823 (preindex_memory_operand): Likewise.
9824 (enum aarch64_system_control_registers): New enum.
9825 (ENCODE): New macro.
9826 (emit_insn): New helper function.
9827 (emit_b): New function.
9828 (emit_bcond): Likewise.
9829 (emit_cb): Likewise.
9830 (emit_tb): Likewise.
9831 (emit_blr): Likewise.
9832 (emit_stp): Likewise.
9833 (emit_ldp_q_offset): Likewise.
9834 (emit_stp_q_offset): Likewise.
9835 (emit_load_store): Likewise.
9836 (emit_ldr): Likewise.
9837 (emit_ldrsw): Likewise.
9838 (emit_str): Likewise.
9839 (emit_ldaxr): Likewise.
9840 (emit_stxr): Likewise.
9841 (emit_stlr): Likewise.
9842 (emit_data_processing_reg): Likewise.
9843 (emit_data_processing): Likewise.
9844 (emit_add): Likewise.
9845 (emit_sub): Likewise.
9846 (emit_mov): Likewise.
9847 (emit_movk): Likewise.
9848 (emit_mov_addr): Likewise.
9849 (emit_mrs): Likewise.
9850 (emit_msr): Likewise.
9851 (emit_sevl): Likewise.
9852 (emit_wfe): Likewise.
9853 (append_insns): Likewise.
9854 (can_encode_int32_in): New helper function.
9855 (aarch64_relocate_instruction): New function.
9856 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
9857 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
9858 (struct linux_target_ops): Install aarch64_get_thread_area,
9859 aarch64_install_fast_tracepoint_jump_pad and
9860 aarch64_get_min_fast_tracepoint_insn_len.
9862 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9864 * Makefile.in (aarch64-insn.o): New rule.
9865 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
9867 2015-09-21 Yao Qi <yao.qi@linaro.org>
9869 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
9871 2015-09-21 Yao Qi <yao.qi@linaro.org>
9873 * tracepoint.c (max_jump_pad_size): Remove.
9875 2015-09-18 Yao Qi <yao.qi@linaro.org>
9877 * linux-aarch64-low.c: Don't include sys/uio.h.
9878 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
9880 2015-09-16 Wei-cheng Wang <cole945@gmail.com>
9882 * tracepoint.c (eval_result_type): Change prototype.
9883 (condition_true_at_tracepoint): Fix argument to compiled_cond.
9885 2015-09-15 Pedro Alves <palves@redhat.com>
9887 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
9888 Check whether to report exec events instead of checking whether
9889 multiprocess is enabled.
9891 2015-09-15 Pedro Alves <palves@redhat.com>
9894 * remote-utils.c (prepare_resume_reply): Merge
9895 TARGET_WAITKIND_VFORK_DONE switch case with the
9896 TARGET_WAITKIND_FORKED case.
9898 2015-09-15 Yao Qi <yao.qi@linaro.org>
9900 * server.c (handle_query): Check string comparison using
9901 "else if" instead of "if".
9903 2015-09-15 Yao Qi <yao.qi@linaro.org>
9905 * server.c (vCont_supported): New global variable.
9906 (handle_query): Set vCont_supported to 1 if "vContSupported+"
9907 matches. Append ";vContSupported+" to own_buf.
9908 (handle_v_requests): Append ";s;S" to own_buf if target supports
9909 hardware single step or vCont_supported is false.
9910 (capture_main): Set vCont_supported to zero.
9912 2015-09-15 Yao Qi <yao.qi@linaro.org>
9914 * linux-low.c (linux_supports_conditional_breakpoints): Rename
9916 (linux_supports_hardware_single_step): ... New function.
9917 (linux_target_ops): Update.
9918 * lynx-low.c (lynx_target_ops): Set field
9919 supports_hardware_single_step to target_can_do_hardware_single_step.
9920 * nto-low.c (nto_target_ops): Likewise.
9921 * spu-low.c (spu_target_ops): Likewise.
9922 * win32-low.c (win32_target_ops): Likewise.
9923 * target.c (target_can_do_hardware_single_step): New function.
9924 * target.h (struct target_ops) <supports_conditional_breakpoints>:
9925 Remove. <supports_hardware_single_step>: New field.
9926 (target_supports_conditional_breakpoints): Remove.
9927 (target_supports_hardware_single_step): New macro.
9928 (target_can_do_hardware_single_step): Declare.
9929 * server.c (handle_query): Use target_supports_hardware_single_step
9930 instead of target_supports_conditional_breakpoints.
9932 2015-09-15 Yao Qi <yao.qi@linaro.org>
9934 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
9936 (struct linux_target_ops the_low_target): Install
9937 aarch64_linux_siginfo_fixup.
9939 2015-09-11 Don Breazeal <donb@codesourcery.com>
9940 Luis Machado <lgustavo@codesourcery.com>
9942 * linux-low.c (linux_mourn): Static declaration.
9943 (linux_arch_setup): Move in front of
9944 handle_extended_wait.
9945 (linux_arch_setup_thread): New function.
9946 (handle_extended_wait): Handle exec events. Call
9947 linux_arch_setup_thread. Make event_lwp argument a
9948 pointer-to-a-pointer.
9949 (check_zombie_leaders): Do not check stopped threads.
9950 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
9951 (linux_low_filter_event): Add lwp and thread for exec'ing
9952 non-leader thread if leader thread has been deleted.
9953 Refactor code into linux_arch_setup_thread and call it.
9954 Pass child lwp pointer by reference to handle_extended_wait.
9955 (linux_wait_for_event_filtered): Update comment.
9956 (linux_wait_1): Prevent clobbering exec event status.
9957 (linux_supports_exec_events): New function.
9958 (linux_target_ops) <supports_exec_events>: Initialize new member.
9959 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
9961 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
9962 * server.c (report_exec_events): New global variable.
9963 (handle_query): Handle qSupported query for exec-events feature.
9964 (captured_main): Initialize report_exec_events.
9965 * server.h (report_exec_events): Declare new global variable.
9966 * target.h (struct target_ops) <supports_exec_events>: New
9968 (target_supports_exec_events): New macro.
9969 * win32-low.c (win32_target_ops) <supports_exec_events>:
9970 Initialize new member.
9972 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
9974 * linux-low.c (linux_low_enable_btrace): Remove.
9975 (linux_target_ops): Replace linux_low_enable_btrace with
9976 linux_enable_btrace.
9978 2015-09-03 Yao Qi <yao.qi@linaro.org>
9980 * linux-aarch64-low.c (aarch64_insert_point): Call
9981 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
9984 2015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9986 * linux-low.c (check_stopped_by_breakpoint): Use
9987 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
9989 2015-08-27 Pedro Alves <palves@redhat.com>
9991 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
9993 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
9995 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
9996 the XNEW-family equivalent.
9997 (compile_bytecodes): Likewise.
9998 * dll.c (loaded_dll): Likewise.
9999 * event-loop.c (append_callback_event): Likewise.
10000 (create_file_handler): Likewise.
10001 (create_file_event): Likewise.
10002 * hostio.c (handle_open): Likewise.
10003 * inferiors.c (add_thread): Likewise.
10004 (add_process): Likewise.
10005 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
10006 * linux-arm-low.c (arm_new_process): Likewise.
10007 (arm_new_thread): Likewise.
10008 * linux-low.c (add_to_pid_list): Likewise.
10009 (linux_add_process): Likewise.
10010 (handle_extended_wait): Likewise.
10011 (add_lwp): Likewise.
10012 (enqueue_one_deferred_signal): Likewise.
10013 (enqueue_pending_signal): Likewise.
10014 (linux_resume_one_lwp_throw): Likewise.
10015 (linux_resume_one_thread): Likewise.
10016 (linux_read_memory): Likewise.
10017 (linux_write_memory): Likewise.
10018 * linux-mips-low.c (mips_linux_new_process): Likewise.
10019 (mips_linux_new_thread): Likewise.
10020 (mips_add_watchpoint): Likewise.
10021 * linux-x86-low.c (initialize_low_arch): Likewise.
10022 * lynx-low.c (lynx_add_process): Likewise.
10023 * mem-break.c (set_raw_breakpoint_at): Likewise.
10024 (set_breakpoint): Likewise.
10025 (add_condition_to_breakpoint): Likewise.
10026 (add_commands_to_breakpoint): Likewise.
10027 (clone_agent_expr): Likewise.
10028 (clone_one_breakpoint): Likewise.
10029 * regcache.c (new_register_cache): Likewise.
10030 * remote-utils.c (look_up_one_symbol): Likewise.
10031 * server.c (queue_stop_reply): Likewise.
10032 (start_inferior): Likewise.
10033 (queue_stop_reply_callback): Likewise.
10034 (handle_target_event): Likewise.
10035 * spu-low.c (fetch_ppc_memory): Likewise.
10036 (store_ppc_memory): Likewise.
10037 * target.c (set_target_ops): Likewise.
10038 * thread-db.c (thread_db_load_search): Likewise.
10039 (try_thread_db_load_1): Likewise.
10040 * tracepoint.c (add_tracepoint): Likewise.
10041 (add_tracepoint_action): Likewise.
10042 (create_trace_state_variable): Likewise.
10043 (cmd_qtdpsrc): Likewise.
10044 (cmd_qtro): Likewise.
10045 (add_while_stepping_state): Likewise.
10046 * win32-low.c (child_add_thread): Likewise.
10047 (get_image_name): Likewise.
10049 2015-08-25 Yao Qi <yao.qi@linaro.org>
10051 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
10053 2015-08-25 Yao Qi <yao.qi@linaro.org>
10055 * Makefile.in (aarch64-linux.o): New rule.
10056 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
10058 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
10059 (aarch64_init_debug_reg_state): Make it extern.
10060 (aarch64_linux_prepare_to_resume): Remove.
10062 2015-08-25 Yao Qi <yao.qi@linaro.org>
10064 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
10065 lwp_arch_private_info and ptid_of_lwp.
10067 2015-08-25 Yao Qi <yao.qi@linaro.org>
10069 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
10070 Find proc_info by find_process_pid. All callers updated.
10072 2015-08-25 Yao Qi <yao.qi@linaro.org>
10074 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
10076 (debug_reg_change_callback): Remove.
10077 (aarch64_notify_debug_reg_change): Remove.
10079 2015-08-25 Yao Qi <yao.qi@linaro.org>
10081 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
10082 Call current_lwp_ptid.
10084 2015-08-25 Yao Qi <yao.qi@linaro.org>
10086 * linux-aarch64-low.c (debug_reg_change_callback): Use
10089 2015-08-25 Yao Qi <yao.qi@linaro.org>
10091 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
10093 2015-08-25 Yao Qi <yao.qi@linaro.org>
10095 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
10097 2015-08-25 Yao Qi <yao.qi@linaro.org>
10099 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
10102 2015-08-25 Yao Qi <yao.qi@linaro.org>
10104 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
10106 (debug_reg_change_callback): Remove argument entry and add argument
10107 lwp. Remove local variable thread. Don't print thread id in the
10108 debugging output. Don't check whether pid of thread equals to pid.
10109 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
10110 iterate_over_lwps instead find_inferior.
10112 2015-08-24 Pedro Alves <palves@redhat.com>
10114 * inferiors.c (get_first_process): New function.
10115 * inferiors.h (get_first_process): New declaration.
10116 * remote-utils.c (read_ptid): Default to the first process in the
10117 list, instead of to the current thread's process.
10119 2015-08-24 Pedro Alves <palves@redhat.com>
10121 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
10122 * event-loop.c: Likewise.
10123 * remote-utils.c: Likewise.
10124 * tracepoint.c: Likewise.
10126 2015-08-24 Pedro Alves <palves@redhat.com>
10128 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
10131 2015-08-21 Pedro Alves <palves@redhat.com>
10133 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
10134 instead of literal 1.
10136 2015-08-21 Pedro Alves <palves@redhat.com>
10138 * tdesc.c (default_description): Explicitly zero-initialize.
10140 2015-08-21 Pedro Alves <palves@redhat.com>
10143 * inferiors.c (remove_thread): Discard any pending stop reply for
10145 * server.c (remove_all_on_match_pid): Rename to ...
10146 (remove_all_on_match_ptid): ... this. Work with a filter ptid
10148 (discard_queued_stop_replies): Change parameter to a ptid. Now
10150 (handle_v_kill, kill_inferior_callback, captured_main)
10151 (process_serial_event): Adjust.
10152 * server.h (discard_queued_stop_replies): Declare.
10154 2015-08-21 Pedro Alves <palves@redhat.com>
10156 * linux-low.c (wait_for_sigstop): Always switch to no thread
10157 selected if the previously current thread dies.
10158 * lynx-low.c (lynx_request_interrupt): Use the first thread's
10159 process instead of the current thread's.
10160 * remote-utils.c (input_interrupt): Don't check if there's no
10162 * server.c (gdb_read_memory, gdb_write_memory): If setting the
10163 current thread to the general thread fails, error out.
10164 (handle_qxfer_auxv, handle_qxfer_libraries)
10165 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
10166 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
10167 (handle_query): Check if there's a thread selected instead of
10168 checking whether there's any thread in the thread list.
10169 (handle_qxfer_threads, handle_qxfer_btrace)
10170 (handle_qxfer_btrace_conf): Don't error out early if there's no
10171 thread in the thread list.
10172 (handle_v_cont, myresume): Don't set the current thread to the
10174 (process_serial_event) <Hg handling>: Also set thread_id if the
10175 previous general thread is still alive.
10176 (process_serial_event) <g/G handling>: If setting the current
10177 thread to the general thread fails, error out.
10178 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
10179 thread's lwp instead of the current thread's.
10180 * target.c (set_desired_thread): If the desired thread was not
10181 found, leave the current thread pointing to NULL. Return an int
10182 (boolean) indicating success.
10183 * target.h (set_desired_thread): Change return type to int.
10185 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
10187 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
10188 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
10190 (ps_get_thread_area): New function.
10192 2015-08-19 Gary Benson <gbenson@redhat.com>
10194 * hostio.c (handle_pread): Do not attempt to read more data
10195 than hostio_reply_with_data can fit in a packet.
10197 2015-08-18 Joel Brobecker <brobecker@adacore.com>
10199 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
10201 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
10203 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
10205 2015-08-06 Pedro Alves <palves@redhat.com>
10207 * tracepoint.c (expr_eval_result): Now an int.
10209 2015-08-06 Pedro Alves <palves@redhat.com>
10211 * gdbthread.h (struct regcache): Forward declare.
10212 (struct thread_info) <regcache_data>: Now a struct regcache
10214 * inferiors.c (inferior_regcache_data)
10215 (set_inferior_regcache_data): Now work with struct regcache
10217 * inferiors.h (struct regcache): Forward declare.
10218 (inferior_regcache_data, set_inferior_regcache_data): Now work
10219 with struct regcache pointers.
10220 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
10221 (free_register_cache_thread): Remove struct regcache pointer
10224 2015-08-06 Pedro Alves <palves@redhat.com>
10226 * server.c (captured_main): On error, print the exception message
10227 to stderr, and if run_once is set, throw a quit.
10229 2015-08-06 Pedro Alves <palves@redhat.com>
10231 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
10232 the current thread.
10234 2015-08-06 Pedro Alves <palves@redhat.com>
10236 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
10237 reading beyond the passed in buffer length.
10239 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
10241 * tracepoint.c (symbol_list) <required>: Remove.
10243 2015-08-06 Pedro Alves <palves@redhat.com>
10245 * linux-low.c (handle_extended_wait): Set the fork child's suspend
10246 count if stopping and suspending threads.
10247 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
10248 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
10249 (linux_detach): Complete an ongoing step-over.
10250 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
10252 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
10253 (linux_wait_1): If passing a signal to the inferior after
10254 finishing a step-over, unsuspend and re-resume all lwps. If we
10255 see a single-step event but the thread should be continuing, don't
10256 pass the trap to gdb.
10257 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
10258 internal_error instead of gdb_assert.
10259 (enqueue_pending_signal): New function.
10260 (check_ptrace_stopped_lwp_gone): Add debug output.
10261 (start_step_over): Use internal_error instead of gdb_assert.
10262 (complete_ongoing_step_over): New function.
10263 (linux_resume_one_thread): Don't resume a suspended thread.
10264 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
10267 2015-08-06 Pedro Alves <palves@redhat.com>
10269 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
10270 (linux_thread_alive): Use lwp_is_marked_dead.
10271 (extended_event_reported): Delete.
10272 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
10273 instead of extended_event_reported.
10274 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
10276 (lwp_is_marked_dead): New function.
10277 (lwp_running): Use lwp_is_marked_dead.
10278 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
10281 2015-08-06 Pedro Alves <palves@redhat.com>
10283 * linux-low.c (linux_wait_1): Move fork event output out of the
10284 !report_to_gdb check. Pass event_child->waitstatus to
10285 target_waitstatus_to_string instead of ourstatus.
10287 2015-08-04 Yao Qi <yao.qi@linaro.org>
10289 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
10290 if current_thread is 32 bit.
10292 2015-08-04 Yao Qi <yao.qi@linaro.org>
10294 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
10295 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
10296 * server.c (extended_protocol): Remove "static".
10297 * server.h (extended_protocol): Declare it.
10299 2015-08-04 Yao Qi <yao.qi@linaro.org>
10301 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
10302 both aarch64 and aarch32.
10303 (aarch64_set_pc): Likewise.
10305 2015-08-04 Yao Qi <yao.qi@linaro.org>
10307 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
10308 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
10309 arm-with-neon.xml to srv_xmlfiles.
10310 * linux-aarch64-low.c: Include linux-aarch32-low.h.
10311 (is_64bit_tdesc): New function.
10312 (aarch64_linux_read_description): New function.
10313 (aarch64_arch_setup): Call aarch64_linux_read_description.
10314 (regs_info): Rename to regs_info_aarch64.
10315 (aarch64_regs_info): Return right regs_info.
10316 (initialize_low_arch): Call initialize_low_arch_aarch32.
10318 2015-08-04 Yao Qi <yao.qi@linaro.org>
10320 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
10321 * linux-aarch32-low.c: New file.
10322 * linux-aarch32-low.h: New file.
10323 * linux-arm-low.c (arm_fill_gregset): Move it to
10324 linux-aarch32-low.c.
10325 (arm_store_gregset): Likewise.
10326 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
10327 (arm_store_vfpregset): Call arm_store_vfpregset_num.
10328 (arm_arch_setup): Check if PTRACE_GETREGSET works.
10329 (regs_info): Rename to regs_info_arm.
10330 (arm_regs_info): Return regs_info_aarch32 if
10331 have_ptrace_getregset is 1 and target description is
10332 arm_with_neon or arm_with_vfpv3.
10333 (initialize_low_arch): Don't call init_registers_arm_with_neon.
10334 Call initialize_low_arch_aarch32 instead.
10336 2015-08-04 Yao Qi <yao.qi@linaro.org>
10338 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
10339 * linux-low.c: ... here.
10340 * linux-low.h (have_ptrace_getregset): Declare it.
10342 2015-08-04 Pedro Alves <palves@redhat.com>
10344 * thread-db.c (struct thread_db): Use new typedefs.
10345 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
10347 (disable_thread_event_reporting): Cast result of dlsym to
10348 destination function pointer type.
10349 (thread_db_mourn): Use td_ta_delete_ftype.
10351 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
10353 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
10355 (CDX_BREAKPOINT): Define for R2.
10356 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
10357 (the_low_target): Add comments.
10359 2015-07-30 Yao Qi <yao.qi@linaro.org>
10361 * linux-arm-low.c (arm_hwcap): Remove it.
10362 (arm_read_description): New local variable arm_hwcap. Don't
10363 set arm_hwcap to zero.
10365 2015-07-30 Yao Qi <yao.qi@linaro.org>
10367 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
10368 Use regcache->tdesc instead.
10369 (arm_store_wmmxregset): Likewise.
10370 (arm_fill_vfpregset): Likewise.
10371 (arm_store_vfpregset): Likewise.
10373 2015-07-30 Yao Qi <yao.qi@linaro.org>
10375 * linux-arm-low.c: Include arch/arm.h.
10376 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
10377 (arm_store_gregset): Likewise.
10379 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
10381 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
10382 ptrace's 4th parameter.
10384 2015-07-27 Yao Qi <yao.qi@linaro.org>
10386 * configure.srv (case aarch64*-*-linux*): Don't set
10389 2015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
10391 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
10393 * linux-arm-low.c: Likewise.
10394 * linux-cris-low.c: Likewise.
10395 * linux-crisv32-low.c: Likewise.
10396 * linux-low.c: Likewise.
10397 * linux-m68k-low.c: Likewise.
10398 * linux-mips-low.c: Likewise.
10399 * linux-nios2-low.c: Likewise.
10400 * linux-s390-low.c: Likewise.
10401 * linux-sparc-low.c: Likewise.
10402 * linux-tic6x-low.c: Likewise.
10403 * linux-tile-low.c: Likewise.
10404 * linux-x86-low.c: Likewise.
10406 2015-07-24 Pedro Alves <palves@redhat.com>
10408 * config.in: Regenerate.
10409 * configure: Regenerate.
10411 2015-07-24 Pedro Alves <palves@redhat.com>
10413 * acinclude.m4: Include ../ptrace.m4.
10414 * configure.ac: Call GDB_AC_PTRACE.
10415 * config.in, configure: Regenerate.
10417 2015-07-24 Yao Qi <yao.qi@linaro.org>
10419 * linux-low.c (linux_create_inferior): Remove setting to
10420 proc->priv->new_inferior.
10421 (linux_attach): Likewise.
10422 (linux_low_filter_event): Likewise.
10423 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
10425 2015-07-24 Yao Qi <yao.qi@linaro.org>
10427 * linux-low.c (linux_arch_setup): New function.
10428 (linux_low_filter_event): If proc->tdesc is NULL and
10429 proc->attached is true, call the_low_target.arch_setup.
10430 Otherwise, keep status pending, and return.
10431 (linux_resume_one_lwp_throw): Don't call get_pc if
10432 thread->while_stepping isn't NULL. Don't call
10433 get_thread_regcache if proc->tdesc is NULL.
10434 (need_step_over_p): Return 0 if proc->tdesc is NULL.
10435 (linux_target_ops): Install arch_setup.
10436 * server.c (start_inferior): Call the_target->arch_setup.
10437 * target.h (struct target_ops) <arch_setup>: New field.
10438 (target_arch_setup): New marco.
10439 * lynx-low.c (lynx_target_ops): Update.
10440 * nto-low.c (nto_target_ops): Update.
10441 * spu-low.c (spu_target_ops): Update.
10442 * win32-low.c (win32_target_ops): Update.
10444 2015-07-24 Yao Qi <yao.qi@linaro.org>
10446 * linux-low.c (linux_add_process): Don't set
10447 proc->priv->new_inferior.
10448 (linux_create_inferior): Set proc->priv->new_inferior to 1.
10449 (linux_attach): Likewise.
10451 2015-07-24 Yao Qi <yao.qi@linaro.org>
10453 * server.c (start_inferior): Code refactor.
10455 2015-07-24 Yao Qi <yao.qi@linaro.org>
10457 * server.c (process_serial_event): Set general_thread.
10459 2015-07-21 Yao Qi <yao.qi@linaro.org>
10461 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
10462 aarch64_linux_get_debug_reg_capacity.
10464 2015-07-17 Yao Qi <yao.qi@linaro.org>
10466 * Makefile.in (aarch64-linux-hw-point.o): New rule.
10467 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
10468 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
10469 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
10470 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
10471 (AARCH64_HWP_ALIGNMENT): Likewise.
10472 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
10473 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
10474 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
10475 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
10476 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
10477 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
10478 (struct aarch64_debug_reg_state): Likewise.
10479 (struct arch_lwp_info): Likewise.
10480 (aarch64_align_watchpoint): Likewise.
10481 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
10482 (aarch64_watchpoint_length): Likewise.
10483 (aarch64_point_encode_ctrl_reg): Likewise
10484 (aarch64_point_is_aligned): Likewise.
10485 (aarch64_align_watchpoint): Likewise.
10486 (aarch64_linux_set_debug_regs):
10487 (aarch64_dr_state_insert_one_point): Likewise.
10488 (aarch64_dr_state_remove_one_point): Likewise.
10489 (aarch64_handle_breakpoint): Likewise.
10490 (aarch64_handle_aligned_watchpoint): Likewise.
10491 (aarch64_handle_unaligned_watchpoint): Likewise.
10492 (aarch64_handle_watchpoint): Likewise.
10494 2015-07-17 Yao Qi <yao.qi@linaro.org>
10496 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
10497 and don't aarch64_get_debug_reg_state. All callers update.
10498 (aarch64_handle_aligned_watchpoint): Likewise.
10499 (aarch64_handle_unaligned_watchpoint): Likewise.
10500 (aarch64_handle_watchpoint): Likewise.
10501 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
10502 (aarch64_remove_point): Likewise.
10504 2015-07-17 Yao Qi <yao.qi@linaro.org>
10506 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
10508 (aarch64_handle_unaligned_watchpoint): Likewise.
10510 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10512 Revert the previous 3 commits:
10513 Move gdb_regex* to common/
10514 Move linux_find_memory_regions_full & co.
10515 gdbserver build-id attribute generator
10517 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10518 Jan Kratochvil <jan.kratochvil@redhat.com>
10520 gdbserver build-id attribute generator.
10521 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
10522 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
10523 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
10525 (get_dynamic): Use find_pdhr to traverse program headers.
10526 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
10527 (compare_mapping_entry_range, struct find_memory_region_callback_data)
10528 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
10529 (get_hex_build_id): New.
10530 (linux_qxfer_libraries_svr4): Add optional build-id attribute
10531 to reply XML document.
10533 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10534 Jan Kratochvil <jan.kratochvil@redhat.com>
10536 * target.c: Include target/target-utils.h and fcntl.h.
10537 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
10538 (target_fileio_read_stralloc): New functions.
10540 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10542 * Makefile.in (OBS): Add gdb_regex.o.
10543 (gdb_regex.o): New.
10544 * config.in: Rebuilt.
10545 * configure: Rebuilt.
10547 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10548 Jan Kratochvil <jan.kratochvil@redhat.com>
10550 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
10551 * Makefile.in (OBS): Add target-utils.o.
10552 (linux-maps.o, target-utils.o): New.
10553 * configure.srv (srv_linux_obj): Add linux-maps.o.
10555 2015-07-15 Pierre Langlois <pierre.langlois@arm.com>
10557 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
10558 function, return 1.
10559 (the_low_target): Install it.
10561 2015-07-14 Pedro Alves <palves@redhat.com>
10563 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
10564 Instead, ignore ECHILD, and throw an error for other errnos.
10566 2015-07-10 Pedro Alves <palves@redhat.com>
10568 * event-loop.c (struct callback_event) <data>: Change type to
10569 gdb_client_data instance instead of gdb_client_data pointer.
10570 (append_callback_event): Adjust.
10572 2015-07-10 Pierre Langlois <pierre.langlois@arm.com>
10574 * linux-aarch64-low.c: Add comments for each linux_target_ops
10575 method. Remove comments already covered in target_ops and
10576 linux_target_ops definitions.
10577 (the_low_target): Add comments for each unimplemented method.
10579 2015-07-09 Yao Qi <yao.qi@linaro.org>
10581 * linux-aarch64-low.c (aarch64_regmap): Remove.
10582 (aarch64_usrregs_info): Remove.
10583 (regs_info): Set field usrregs to NULL.
10585 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
10587 * linux-low.c: Include "rsp-low.h"
10588 (linux_low_encode_pt_config, linux_low_encode_raw): New.
10589 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
10590 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
10591 (handle_btrace_enable_pt): New.
10592 (handle_btrace_general_set): Support "pt".
10593 (handle_btrace_conf_general_set): Support "pt:size".
10595 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10597 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
10600 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10602 * linux-aarch64-low.c: Remove comment about endianness.
10603 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
10604 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
10607 2015-06-24 Gary Benson <gbenson@redhat.com>
10609 * linux-i386-ipa.c (stdint.h): Do not include.
10610 * lynx-i386-low.c (stdint.h): Likewise.
10611 * lynx-ppc-low.c (stdint.h): Likewise.
10612 * mem-break.c (stdint.h): Likewise.
10613 * thread-db.c (stdint.h): Likewise.
10614 * tracepoint.c (stdint.h): Likewise.
10615 * win32-low.c (stdint.h): Likewise.
10617 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
10619 * server.c (write_qxfer_response): Update call to
10620 remote_escape_output.
10622 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
10623 Jan Kratochvil <jan.kratochvil@redhat.com>
10625 Merge multiple hex conversions.
10626 * gdbreplay.c (tohex): Rename to 'fromhex'.
10627 (logchar): Use fromhex.
10629 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10631 * server.c (handle_qxfer_libraries): Set `version' attribute for
10634 2015-06-10 Gary Benson <gbenson@redhat.com>
10636 * target.h (struct target_ops) <multifs_open>: New field.
10637 <multifs_unlink>: Likewise.
10638 <multifs_readlink>: Likewise.
10639 * linux-low.c (nat/linux-namespaces.h): New include.
10640 (linux_target_ops): Initialize the_target->multifs_open,
10641 the_target->multifs_unlink and the_target->multifs_readlink.
10642 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
10643 * hostio.c (hostio_fs_pid): New static variable.
10644 (hostio_handle_new_gdb_connection): New function.
10645 (handle_setfs): Likewise.
10646 (handle_open): Use the_target->multifs_open as appropriate.
10647 (handle_unlink): Use the_target->multifs_unlink as appropriate.
10648 (handle_readlink): Use the_target->multifs_readlink as
10650 (handle_vFile): Handle vFile:setfs packets.
10651 * server.c (handle_query): Call hostio_handle_new_gdb_connection
10652 after target_handle_new_gdb_connection.
10654 2015-06-10 Gary Benson <gbenson@redhat.com>
10656 * configure.ac (AC_CHECK_FUNCS): Add setns.
10657 * config.in: Regenerate.
10658 * configure: Likewise.
10659 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
10660 (linux-namespaces.o): New rule.
10661 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
10663 2015-06-09 Gary Benson <gbenson@redhat.com>
10665 * hostio.c (handle_open): Process mode argument with
10666 fileio_to_host_mode.
10668 2015-06-01 Yao Qi <yao.qi@linaro.org>
10670 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
10671 * linux-x86-low.c: Likewise.
10673 2015-05-28 Don Breazeal <donb@codesourcery.com>
10675 * linux-low.c (handle_extended_wait): Initialize
10676 thread_info.last_resume_kind for new fork children.
10678 2015-05-15 Pedro Alves <palves@redhat.com>
10680 * target.h (target_handle_new_gdb_connection): Rewrite using if
10681 wrapped in do/while.
10683 2015-05-14 Joel Brobecker <brobecker@adacore.com>
10685 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
10686 * configure, config.in: Regenerate.
10687 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
10690 2015-05-12 Don Breazeal <donb@codesourcery.com>
10692 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
10693 PTRACE_EVENT_VFORK_DONE.
10694 (linux_low_ptrace_options, extended_event_reported): Add vfork
10696 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
10697 and "vforkdone" for RSP 'T' Stop Reply Packet.
10698 * server.h (report_vfork_events): Declare
10701 2015-05-12 Don Breazeal <donb@codesourcery.com>
10703 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
10704 (the_low_target) <new_fork>: Initialize new member.
10705 * linux-arm-low.c (arm_new_fork): New function.
10706 (the_low_target) <new_fork>: Initialize new member.
10707 * linux-low.c (handle_extended_wait): Call new target function
10709 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
10710 * linux-mips-low.c (mips_add_watchpoint): New function
10711 extracted from mips_insert_point.
10712 (the_low_target) <new_fork>: Initialize new member.
10713 (mips_linux_new_fork): New function.
10714 (mips_insert_point): Call mips_add_watchpoint.
10715 * linux-x86-low.c (x86_linux_new_fork): New function.
10716 (the_low_target) <new_fork>: Initialize new member.
10718 2015-05-12 Don Breazeal <donb@codesourcery.com>
10720 * linux-low.c (handle_extended_wait): Implement return value,
10721 rename argument 'event_child' to 'event_lwp', handle
10722 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
10723 (linux_low_ptrace_options): New function.
10724 (linux_low_filter_event): Call linux_low_ptrace_options,
10725 use different argument fo linux_enable_event_reporting,
10726 use return value from handle_extended_wait.
10727 (extended_event_reported): New function.
10728 (linux_wait_1): Call extended_event_reported and set
10729 status to report fork events.
10730 (linux_write_memory): Add pid to debug message.
10731 (reset_lwp_ptrace_options_callback): New function.
10732 (linux_handle_new_gdb_connection): New function.
10733 (linux_target_ops): Initialize new structure member.
10734 * linux-low.h (struct lwp_info) <waitstatus>: New member.
10735 * lynx-low.c: Initialize new structure member.
10736 * remote-utils.c (prepare_resume_reply): Implement stop reason
10737 "fork" for "T" stop message.
10738 * server.c (handle_query): Call handle_new_gdb_connection.
10739 * server.h (report_fork_events): Declare global flag.
10740 * target.h (struct target_ops) <handle_new_gdb_connection>:
10742 (target_handle_new_gdb_connection): New macro.
10743 * win32-low.c: Initialize new structure member.
10745 2015-05-12 Don Breazeal <donb@codesourcery.com>
10747 * mem-break.c (APPEND_TO_LIST): Define macro.
10748 (clone_agent_expr): New function.
10749 (clone_one_breakpoint): New function.
10750 (clone_all_breakpoints): New function.
10751 * mem-break.h: Declare new functions.
10753 2015-05-12 Don Breazeal <donb@codesourcery.com>
10755 * linux-low.c (linux_supports_fork_events): New function.
10756 (linux_supports_vfork_events): New function.
10757 (linux_target_ops): Initialize new structure members.
10758 (initialize_low): Call linux_check_ptrace_features.
10759 * lynx-low.c (lynx_target_ops): Initialize new structure
10761 * server.c (report_fork_events, report_vfork_events):
10763 (handle_query): Add new features to qSupported packet and
10765 (captured_main): Initialize new global variables.
10766 * target.h (struct target_ops) <supports_fork_events>:
10768 <supports_vfork_events>: New member.
10769 (target_supports_fork_events): New macro.
10770 (target_supports_vfork_events): New macro.
10771 * win32-low.c (win32_target_ops): Initialize new structure
10774 2015-05-12 Gary Benson <gbenson@redhat.com>
10776 * server.c (handle_qxfer_exec_file): Use current process
10779 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
10781 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
10782 Remove HAVE_PTRACE_GETREGS conditionals.
10783 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
10784 instead of PTRACE_GETREGS and PTRACE_SETREGS.
10786 2015-05-08 Yao Qi <yao.qi@linaro.org>
10788 * linux-low.c (linux_supports_conditional_breakpoints): New
10790 (linux_target_ops): Install new target method.
10791 * lynx-low.c (lynx_target_ops): Install NULL hook for
10792 supports_conditional_breakpoints.
10793 * nto-low.c (nto_target_ops): Likewise.
10794 * spu-low.c (spu_target_ops): Likewise.
10795 * win32-low.c (win32_target_ops): Likewise.
10796 * server.c (handle_query): Check
10797 target_supports_conditional_breakpoints.
10798 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10800 (target_supports_conditional_breakpoints): New macro.
10802 2015-05-06 Pedro Alves <palves@redhat.com>
10805 * server.c (start_inferior): If the process exits, mourn it.
10807 2015-04-21 Gary Benson <gbenson@redhat.com>
10809 * hostio.c (fileio_open_flags_to_host): Factored out to
10810 fileio_to_host_openflags in common/fileio.c. Single use
10813 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
10815 * linux-xtensa-low.c (xtensa_fill_gregset)
10816 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
10819 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
10821 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
10822 (regs_info): Replace usrregs pointer with NULL.
10824 2015-04-17 Gary Benson <gbenson@redhat.com>
10826 * target.h (struct target_ops) <pid_to_exec_file>: New field.
10827 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
10828 * server.c (handle_qxfer_exec_file): New function.
10829 (qxfer_packets): Add exec-file entry.
10830 (handle_query): Report qXfer:exec-file:read as supported packet.
10832 2015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
10834 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
10836 2015-04-09 Gary Benson <gbenson@redhat.com>
10838 * hostio-errno.c (errno_to_fileio_error): Remove function.
10839 Update caller to use remote_fileio_to_fio_error.
10841 2015-04-09 Yao Qi <yao.qi@linaro.org>
10843 * linux-low.c (linux_insert_point): Call
10844 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
10845 (linux_remove_point): Call remove_memory_breakpoint if type is
10847 * linux-x86-low.c (x86_insert_point): Don't call
10848 insert_memory_breakpoint.
10849 (x86_remove_point): Don't call remove_memory_breakpoint.
10851 2015-04-01 Pedro Alves <palves@redhat.com>
10852 Cleber Rosa <crosa@redhat.com>
10854 * server.c (gdbserver_usage): Reorganize and extend the usage
10857 2015-03-24 Pedro Alves <palves@redhat.com>
10859 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
10860 output. Also dump TRAP_TRACE.
10861 (linux_low_filter_event): In debug output, distinguish a
10862 resume_stop SIGSTOP from a delayed SIGSTOP.
10864 2015-03-24 Gary Benson <gbenson@redhat.com>
10866 * linux-x86-low.c (x86_linux_new_thread): Moved to
10868 (x86_linux_prepare_to_resume): Likewise.
10870 2015-03-24 Gary Benson <gbenson@redhat.com>
10872 * Makefile.in (x86-linux-dregs.o): New rule.
10873 * configure.srv: Add x86-linux-dregs.o to relevant targets.
10874 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
10875 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
10876 (x86_linux_dr_get): Likewise.
10877 (x86_linux_dr_set): Likewise.
10878 (update_debug_registers_callback): Likewise.
10879 (x86_linux_dr_set_addr): Likewise.
10880 (x86_linux_dr_get_addr): Likewise.
10881 (x86_linux_dr_set_control): Likewise.
10882 (x86_linux_dr_get_control): Likewise.
10883 (x86_linux_dr_get_status): Likewise.
10884 (x86_linux_update_debug_registers): Likewise.
10886 2015-03-24 Gary Benson <gbenson@redhat.com>
10888 * linux-x86-low.c (x86_linux_update_debug_registers):
10889 New function, factored out from...
10890 (x86_linux_prepare_to_resume): ...this.
10892 2015-03-24 Gary Benson <gbenson@redhat.com>
10894 * linux-x86-low.c (x86_linux_dr_get): Update comments.
10895 (x86_linux_dr_set): Likewise.
10896 (update_debug_registers_callback): Likewise.
10897 (x86_linux_dr_set_addr): Likewise.
10898 (x86_linux_dr_get_addr): Likewise.
10899 (x86_linux_dr_set_control): Likewise.
10900 (x86_linux_dr_get_control): Likewise.
10901 (x86_linux_dr_get_status): Likewise.
10902 (x86_linux_prepare_to_resume): Likewise.
10904 2015-03-24 Gary Benson <gbenson@redhat.com>
10906 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
10907 Use perror_with_name. Pass string through gettext.
10908 (x86_linux_dr_set): Likewise.
10910 2015-03-24 Gary Benson <gbenson@redhat.com>
10912 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
10913 (x86_linux_dr_set_addr): ...this.
10914 (x86_dr_low_get_addr): Rename to...
10915 (x86_linux_dr_get_addr): ...this.
10916 (x86_dr_low_set_control): Rename to...
10917 (x86_linux_dr_set_control): ...this.
10918 (x86_dr_low_get_control): Rename to...
10919 (x86_linux_dr_get_control): ...this.
10920 (x86_dr_low_get_status): Rename to...
10921 (x86_linux_dr_get_status): ...this.
10922 (x86_dr_low): Update with new function names.
10924 2015-03-24 Gary Benson <gbenson@redhat.com>
10926 * Makefile.in (x86-linux.o): New rule.
10927 * configure.srv: Add x86-linux.o to relevant targets.
10928 * linux-low.c (lwp_set_arch_private_info): New function.
10929 (lwp_arch_private_info): Likewise.
10930 * linux-x86-low.c: Include nat/x86-linux.h.
10931 (arch_lwp_info): Removed structure.
10932 (update_debug_registers_callback):
10933 Use lwp_set_debug_registers_changed.
10934 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
10935 and lwp_set_debug_registers_changed.
10936 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
10938 2015-03-24 Gary Benson <gbenson@redhat.com>
10940 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
10941 * linux-arm-low.c (arm_new_thread): Likewise.
10942 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
10943 * linux-mips-low.c (mips_linux_new_thread): Likewise.
10944 * linux-x86-low.c (x86_linux_new_thread): Likewise.
10945 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
10947 2015-03-24 Gary Benson <gbenson@redhat.com>
10949 * linux-low.c (ptid_of_lwp): New function.
10950 (lwp_is_stopped): Likewise.
10951 (lwp_stop_reason): Likewise.
10952 * linux-x86-low.c (update_debug_registers_callback):
10953 Use lwp_is_stopped.
10954 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
10957 2015-03-24 Gary Benson <gbenson@redhat.com>
10959 * linux-low.h (linux_stop_lwp): Remove declaration.
10961 2015-03-24 Gary Benson <gbenson@redhat.com>
10963 * linux-low.h: Include nat/linux-nat.h.
10964 * linux-low.c (iterate_over_lwps_args): New structure.
10965 (iterate_over_lwps_filter): New function.
10966 (iterate_over_lwps): Likewise.
10967 * linux-x86-low.c (update_debug_registers_callback):
10968 Update signature to what iterate_over_lwps expects.
10969 Remove PID check that iterate_over_lwps now performs.
10970 (x86_dr_low_set_addr): Use iterate_over_lwps.
10971 (x86_dr_low_set_control): Likewise.
10973 2015-03-24 Gary Benson <gbenson@redhat.com>
10975 * linux-x86-low.c (x86_debug_reg_state): New function.
10976 (x86_linux_prepare_to_resume): Use the above.
10978 2015-03-24 Gary Benson <gbenson@redhat.com>
10980 * linux-low.c (current_lwp_ptid): New function.
10981 * linux-x86-low.c: Include nat/linux-nat.h.
10982 (x86_dr_low_get_addr): Use current_lwp_ptid.
10983 (x86_dr_low_get_control): Likewise.
10984 (x86_dr_low_get_status): Likewise.
10986 2015-03-20 Pedro Alves <palves@redhat.com>
10988 * tracepoint.c (cmd_qtstatus): Make "str" const.
10990 2015-03-20 Pedro Alves <palves@redhat.com>
10992 * server.c (handle_general_set): Make "req_str" const.
10994 2015-03-19 Pedro Alves <palves@redhat.com>
10996 * linux-low.c (linux_resume_one_lwp): Rename to ...
10997 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
10998 instead call perror_with_name.
10999 (check_ptrace_stopped_lwp_gone): New function.
11000 (linux_resume_one_lwp): Reimplement as wrapper around
11001 linux_resume_one_lwp_throw that swallows errors if the LWP is
11004 2015-03-19 Pedro Alves <palves@redhat.com>
11006 * linux-low.c (count_events_callback, select_event_lwp_callback):
11007 No longer check whether the thread has resume_stop as last resume
11010 2015-03-19 Pedro Alves <palves@redhat.com>
11012 * linux-low.c (count_events_callback, select_event_lwp_callback):
11013 Use the lwp's status_pending_p field, not the thread's.
11015 2015-03-19 Pedro Alves <palves@redhat.com>
11017 * linux-low.c (select_event_lwp_callback): Update comments to
11018 no longer mention SIGTRAP.
11020 2015-03-18 Gary Benson <gbenson@redhat.com>
11022 * server.c (handle_query): Do not report vFile:fstat as supported.
11024 2015-03-11 Gary Benson <gbenson@redhat.com>
11026 * hostio.c (sys/types.h): New include.
11027 (sys/stat.h): Likewise.
11028 (common-remote-fileio.h): Likewise.
11029 (handle_fstat): New function.
11030 (handle_vFile): Handle vFile:fstat packets.
11032 2015-03-11 Gary Benson <gbenson@redhat.com>
11034 * configure.ac (AC_CHECK_MEMBERS): Add checks for
11035 struct stat.st_blocks and struct stat.st_blksize.
11036 * configure: Regenerate.
11037 * config.in: Likewise.
11038 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
11039 (OBS): Add common-remote-fileio.o.
11040 (common-remote-fileio.o): New rule.
11042 2015-03-09 Pedro Alves <palves@redhat.com>
11044 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
11045 'struct sockaddr' pointer in 'accept' call.
11047 2015-03-09 Pedro Alves <palves@redhat.com>
11050 2015-03-07 Pedro Alves <palves@redhat.com>
11051 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11052 or <winsock2.h> here. Instead include "gdb_socket.h".
11053 (remote_open): Use union gdb_sockaddr_u.
11054 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11055 or <winsock2.h> here. Instead include "gdb_socket.h".
11056 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11057 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11059 (init_named_socket, gdb_agent_helper_thread): Use union
11062 2015-03-07 Pedro Alves <palves@redhat.com>
11064 * configure.ac (build_warnings): Move
11065 -Wdeclaration-after-statement to the C-specific set.
11066 * configure: Regenerate.
11068 2015-03-07 Pedro Alves <palves@redhat.com>
11070 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11071 or <winsock2.h> here. Instead include "gdb_socket.h".
11072 (remote_open): Use union gdb_sockaddr_u.
11073 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11074 or <winsock2.h> here. Instead include "gdb_socket.h".
11075 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11076 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11078 (init_named_socket, gdb_agent_helper_thread): Use union
11081 2015-03-07 Pedro Alves <palves@redhat.com>
11083 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
11086 2015-03-06 Yao Qi <yao.qi@linaro.org>
11088 * linux-aarch64-low.c (aarch64_insert_point): Use
11089 show_debug_regs as a boolean.
11090 (aarch64_remove_point): Likewise.
11092 2015-03-05 Pedro Alves <palves@redhat.com>
11094 * lynx-low.c (lynx_target_ops): Install NULL hooks for
11095 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
11096 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
11097 * nto-low.c (nto_target_ops): Likewise.
11098 * spu-low.c (spu_target_ops): Likewise.
11099 * win32-low.c (win32_target_ops): Likewise.
11101 2015-03-04 Pedro Alves <palves@redhat.com>
11103 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
11104 Decide whether a breakpoint triggered based on the SIGTRAP's
11106 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
11107 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
11108 (linux_low_filter_event): Check for breakpoints before checking
11110 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
11112 (linux_stopped_by_sw_breakpoint)
11113 (linux_supports_stopped_by_sw_breakpoint)
11114 (linux_stopped_by_hw_breakpoint)
11115 (linux_supports_stopped_by_hw_breakpoint): New functions.
11116 (linux_target_ops): Install new target methods.
11118 2015-03-04 Pedro Alves <palves@redhat.com>
11120 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
11121 * server.c (swbreak_feature, hwbreak_feature): New globals.
11122 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
11123 (captured_main): Clear swbreak_feature and hwbreak_feature.
11124 * server.h (swbreak_feature, hwbreak_feature): Declare.
11125 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
11126 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
11127 supports_stopped_by_hw_breakpoint>: New fields.
11128 (target_supports_stopped_by_sw_breakpoint)
11129 (target_stopped_by_sw_breakpoint)
11130 (target_supports_stopped_by_hw_breakpoint)
11131 (target_stopped_by_hw_breakpoint): Declare.
11133 2015-03-04 Pedro Alves <palves@redhat.com>
11135 enum lwp_stop_reason -> enum target_stop_reason
11136 * linux-low.c (check_stopped_by_breakpoint): Adjust.
11137 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
11138 (linux_wait_1, stuck_in_jump_pad_callback)
11139 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
11140 (linux_stopped_by_watchpoint):
11141 * linux-low.h (enum lwp_stop_reason): Delete.
11142 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
11143 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11145 2015-03-04 Yao Qi <yao.qi@linaro.org>
11147 * Makefile.in (SFILES): Add linux-aarch64-low.c.
11149 2015-03-03 Gary Benson <gbenson@redhat.com>
11151 * hostio.c (handle_vFile): Fix prefix lengths.
11153 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
11155 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
11158 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
11160 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
11161 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
11162 (clean): Add "rm -f" for above C files.
11163 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
11164 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
11165 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
11166 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
11167 * linux-s390-low.c (HWCAP_S390_VX): New macro.
11168 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
11169 (init_registers_s390x_vx_linux64)
11170 (init_registers_s390x_tevx_linux64)
11171 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
11172 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
11174 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
11175 (s390_store_vxrs_high): New functions.
11176 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
11178 (s390_arch_setup): Add logic for selecting one of the new target
11179 descriptions. Activate the new vector regsets if applicable.
11180 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
11181 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
11182 and init_registers_s390x_tevx_linux64.
11184 2015-03-01 Pedro Alves <palves@redhat.com>
11186 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
11189 2015-02-27 Pedro Alves <palves@redhat.com>
11191 * linux-x86-low.c (u_debugreg_offset): New function.
11192 (x86_linux_dr_get, x86_linux_dr_set): Use it.
11194 2015-02-27 Pedro Alves <palves@redhat.com>
11196 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
11197 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
11198 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
11199 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
11200 (ps_lsetfpregs, ps_getpid)
11201 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
11202 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
11203 (ps_lsetxregs, ps_plog): Declare.
11205 2015-02-27 Pedro Alves <palves@redhat.com>
11207 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
11208 IP_AGENT_EXPORT_FUNC.
11209 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
11210 IP_AGENT_EXPORT_FUNC.
11211 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
11212 (IP_AGENT_EXPORT): Delete.
11213 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11214 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11215 (gdb_trampoline_buffer_error, collecting, gdb_collect)
11216 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
11217 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
11218 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
11219 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
11220 (traceframe_read_count, traceframe_write_count)
11221 (traceframes_created, trace_state_variables, get_raw_reg)
11222 (get_trace_state_variable_value, set_trace_state_variable_value)
11223 (ust_loaded, helper_thread_id, cmd_buf): Use
11224 IPA_SYM_EXPORTED_NAME.
11225 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
11226 (tracepoints) Use IP_AGENT_EXPORT_VAR.
11227 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
11228 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11229 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
11230 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
11231 EXTERN_C_PUSH/EXTERN_C_POP.
11232 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
11233 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
11234 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11235 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
11236 (traceframe_write_count, traceframe_read_count)
11237 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
11238 (about_to_request_buffer_space, get_trace_state_variable_value)
11239 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
11240 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
11241 EXTERN_C_PUSH/EXTERN_C_POP.
11242 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
11243 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
11244 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
11245 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11246 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11247 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11248 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
11249 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
11251 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
11252 (IP_AGENT_EXPORT_VAR_DECL): Define.
11253 (tracing): Declare.
11254 (gdb_agent_get_raw_reg): Declare.
11256 2015-02-27 Tom Tromey <tromey@redhat.com>
11257 Pedro Alves <palves@redhat.com>
11259 Rename symbols whose names are reserved C++ keywords throughout.
11261 2015-02-27 Pedro Alves <palves@redhat.com>
11263 * Makefile.in (COMPILER): New, get it from autoconf.
11264 (CXX): Get from autoconf instead.
11265 (COMPILE.pre): Use COMPILER.
11266 (CC-LD): Rename to ...
11267 (CC_LD): ... this. Use COMPILER.
11268 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
11269 (CXX_FOR_TARGET): Default to g++ instead of gcc.
11270 * acinclude.m4: Include build-with-cxx.m4.
11271 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
11272 Disable -Werror by default if building in C++ mode.
11273 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
11274 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
11275 the C++ compiler. Save/restore CXXFLAGS too.
11276 * configure: Regenerate.
11278 2015-02-27 Pedro Alves <palves@redhat.com>
11280 * acinclude.m4: Include libiberty.m4.
11281 * configure.ac: Call libiberty_INIT.
11282 * config.in, configure: Regenerate.
11284 2015-02-26 Pedro Alves <palves@redhat.com>
11286 * linux-low.c (linux_wait_1): When incrementing the PC past a
11287 program breakpoint always use the_low_target.breakpoint_len as
11288 increment, rather than the maximum between that and
11289 the_low_target.decr_pc_after_break.
11291 2015-02-23 Pedro Alves <palves@redhat.com>
11293 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
11294 thread was doing a step-over; always adjust the PC if
11295 we stepped over a permanent breakpoint.
11296 (linux_wait_1): If we stepped over breakpoint that was on top of a
11297 permanent breakpoint, manually advance the PC past it.
11299 2015-02-23 Pedro Alves <palves@redhat.com>
11301 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
11303 (x86_fill_gregset, x86_store_gregset): Use it when handling
11306 2015-02-20 Pedro Alves <palves@redhat.com>
11308 * thread-db.c: Include "nat/linux-procfs.h".
11309 (thread_db_init): Skip listing new threads if the kernel supports
11310 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
11312 2015-02-20 Pedro Alves <palves@redhat.com>
11314 * linux-low.c (status_pending_p_callback): Use ptid_match.
11316 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
11318 PR breakpoints/16812
11319 * linux-low.c (wstatus_maybe_breakpoint): Remove.
11320 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
11321 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
11323 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
11325 PR breakpoints/15956
11326 * tracepoint.c (cmd_qtinit): Add check for current_thread.
11328 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11330 * linux-low.c (linux_low_btrace_conf): Print size.
11331 * server.c (handle_btrace_conf_general_set): New.
11332 (hanle_general_set): Call handle_btrace_conf_general_set.
11333 (handle_query): Report Qbtrace-conf:bts:size as supported.
11335 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11337 * linux-low.c (linux_low_enable_btrace): Update parameters.
11338 (linux_low_btrace_conf): New.
11339 (linux_target_ops)<to_btrace_conf>: Initialize.
11340 * server.c (current_btrace_conf): New.
11341 (handle_btrace_enable): Rename to ...
11342 (handle_btrace_enable_bts): ... this. Pass ¤t_btrace_conf
11343 to target_enable_btrace. Update comment. Update users.
11344 (handle_qxfer_btrace_conf): New.
11345 (qxfer_packets): Add btrace-conf entry.
11346 (handle_query): Report qXfer:btrace-conf:read as supported packet.
11347 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
11348 (target_ops)<read_btrace_conf>: New.
11349 (target_enable_btrace): Update parameters.
11350 (target_read_btrace_conf): New.
11352 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11354 * server.c (handle_btrace_general_set): Remove call to
11355 target_supports_btrace.
11356 (supported_btrace_packets): New.
11357 (handle_query): Call supported_btrace_packets.
11358 * target.h: include btrace-common.h.
11359 (btrace_target_info): Removed.
11360 (supports_btrace, target_supports_btrace): Update parameters.
11362 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11364 * Makefile.in (SFILES): Add common/btrace-common.c.
11365 (OBS): Add common/btrace-common.o.
11366 (btrace-common.o): Add build rules.
11367 * linux-low: Include btrace-common.h.
11368 (linux_low_read_btrace): Use struct btrace_data. Call
11369 btrace_data_init and btrace_data_fini.
11371 2015-02-06 Pedro Alves <palves@redhat.com>
11373 * thread-db.c (find_new_threads_callback): Add debug output.
11375 2015-02-04 Pedro Alves <palves@redhat.com>
11377 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
11378 (resume_stopped_resumed_lwps): New function.
11379 (linux_wait_for_event_filtered): Use it.
11381 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11383 * Makefile.in (SFILES): Add linux-personality.c.
11384 (linux-personality.o): New rule.
11385 * configure.srv (srv_linux_obj): Add linux-personality.o to the
11386 list of objects to be built.
11387 * linux-low.c: Include nat/linux-personality.h.
11388 (linux_create_inferior): Remove code to disable address space
11389 randomization (moved to ../nat/linux-personality.c). Create
11390 cleanup to disable address space randomization.
11392 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11394 * Makefile.in (posix-strerror.o): New rule.
11395 (mingw-strerror.o): Likewise.
11396 * configure: Regenerated.
11397 * configure.ac: Source file ../common/common.host. Initialize new
11398 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
11400 2015-01-14 Yao Qi <yao@codesourcery.com>
11402 * Makefile.in (SFILES): Add nat/ppc-linux.c.
11403 (ppc-linux.o): New rule.
11404 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
11405 * configure.ac: AC_CHECK_FUNCS(getauxval).
11406 * config.in: Re-generated.
11407 * configure: Re-generated.
11408 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
11409 ppc64_64bit_inferior_p
11411 2015-01-14 Yao Qi <yao@codesourcery.com>
11413 * linux-ppc-low.c: Include "nat/ppc-linux.h".
11414 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
11415 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
11416 (PT_ORIG_R3, PT_TRAP): Likewise.
11417 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
11418 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
11419 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
11421 2015-01-10 Joel Brobecker <brobecker@adacore.com>
11423 * i387-fp.c (i387_cache_to_xsave): In look over
11424 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
11425 zmmh_low_space field by use of zmmh_high_space.
11427 2015-01-09 Pedro Alves <palves@redhat.com>
11429 * linux-low.c (step_over_bkpt): Move higher up in the file.
11430 (handle_extended_wait): Don't store the stop_pc here.
11431 (get_stop_pc): Adjust comments and rename to ...
11432 (check_stopped_by_breakpoint): ... this. Record whether the LWP
11433 stopped for a software breakpoint or hardware breakpoint.
11434 (thread_still_has_status_pending_p): New function.
11435 (status_pending_p_callback): Use
11436 thread_still_has_status_pending_p. If the event is no longer
11437 interesting, resume the LWP.
11438 (handle_tracepoints): Add assert.
11439 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
11440 (wstatus_maybe_breakpoint): New function.
11441 (cancel_breakpoint): Delete function.
11442 (check_stopped_by_watchpoint): New function, factored out from
11443 linux_low_filter_event.
11444 (lp_status_maybe_breakpoint): Delete function.
11445 (linux_low_filter_event): Remove filter_ptid argument.
11446 Leave thread group exits pending here. Store the LWP's stop PC.
11447 Always leave events pending.
11448 (linux_wait_for_event_filtered): Pull all events out of the
11449 kernel, and leave them all pending.
11450 (count_events_callback, select_event_lwp_callback): Consider all
11452 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
11453 (select_event_lwp): Only give preference to the stepping LWP in
11454 all-stop mode. Adjust comments.
11455 (ignore_event): New function.
11456 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
11457 references to cancel_breakpoints. Adjust to renames. Also give
11458 equal priority to all LWPs that have had events in non-stop mode.
11459 If reporting a software breakpoint event, unadjust the LWP's PC.
11460 (linux_wait): If linux_wait_1 returned an ignored event, retry.
11461 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
11463 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
11464 (resume_status_pending_p): Use thread_still_has_status_pending_p.
11465 (linux_stopped_by_watchpoint): Adjust.
11466 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
11467 * linux-low.h (enum lwp_stop_reason): New.
11468 (struct lwp_info) <stop_pc>: Adjust comment.
11469 <stopped_by_watchpoint>: Delete field.
11470 <stop_reason>: New field.
11471 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11472 * mem-break.c (software_breakpoint_inserted_here)
11473 (hardware_breakpoint_inserted_here): New function.
11474 * mem-break.h (software_breakpoint_inserted_here)
11475 (hardware_breakpoint_inserted_here): Declare.
11476 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
11477 (cancel_breakpoints): Delete.
11478 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
11479 (upload_fast_traceframes): Remove references to
11480 cancel_breakpoints.
11482 2015-01-09 Pedro Alves <palves@redhat.com>
11484 * thread-db.c (find_new_threads_callback): Ignore thread if the
11485 kernel thread ID is -1.
11487 2015-01-09 Pedro Alves <palves@redhat.com>
11489 * linux-low.c (linux_attach_fail_reason_string): Move to
11490 nat/linux-ptrace.c, and rename.
11491 (linux_attach_lwp): Update comment.
11492 (attach_proc_task_lwp_callback): New function.
11493 (linux_attach): Adjust to rename and use
11494 linux_proc_attach_tgid_threads.
11495 (linux_attach_fail_reason_string): Delete declaration.
11497 2015-01-01 Joel Brobecker <brobecker@adacore.com>
11499 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
11500 * server.c (gdbserver_version): Likewise.
11502 2014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
11504 * remote-utils.c: Include ctype.h.
11505 (input_interrupt): Explicitly handle the case when the char
11506 received is the NUL byte. Improve the printing of non-ASCII
11509 2014-12-16 Joel Brobecker <brobecker@adacore.com>
11511 * linux-low.c (linux_low_filter_event): Update call to
11512 linux_enable_event_reporting following the addition of
11513 a new parameter to that function.
11515 2014-12-16 Catalin Udma <catalin.udma@freescale.com>
11518 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
11519 (AARCH64_FPCR_REGNO): Likewise.
11520 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
11521 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
11522 (aarch64_store_fpregset): Likewise.
11524 2014-12-15 Joel Brobecker <brobecker@adacore.com>
11526 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
11527 Remove FIXME comment about assumption about N.
11529 2014-12-13 Joel Brobecker <brobecker@adacore.com>
11531 * configure.ac: If large-file support is disabled in GDBserver,
11532 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
11533 * configure: Regenerate.
11535 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11537 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
11538 warning upon ENODATA from ptrace.
11539 * linux-s390-low.c (s390_store_tdb): New.
11540 (s390_regsets): Add regset for NT_S390_TDB.
11542 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11544 * linux-low.c (regsets_store_inferior_registers): Skip regsets
11545 without a fill_function.
11546 * linux-s390-low.c (s390_fill_last_break): Remove.
11547 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
11548 (s390_arch_setup): Use regset's size instead of fill_function for
11549 loop end condition.
11551 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11553 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
11554 the regset's store function when ptrace returned an error.
11555 * regcache.c (get_thread_regcache): Invalidate register cache
11556 before fetching inferior's registers.
11558 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11560 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
11561 while-loop as for-loop.
11562 (regsets_store_inferior_registers): Likewise.
11564 2014-11-28 Yao Qi <yao@codesourcery.com>
11566 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
11567 * config.in, configure: Re-generate.
11568 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
11571 2014-11-21 Yao Qi <yao@codesourcery.com>
11573 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
11574 (AC_CHECK_HEADERS): Remove malloc.h.
11575 * configure: Re-generated.
11576 * config.in: Re-generated.
11577 * server.h: Don't include alloca.h and malloc.h.
11578 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
11579 Don't include malloc.h.
11581 2014-11-17 Joel Brobecker <brobecker@adacore.com>
11583 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
11584 corresponding ERRNO check in same block.
11586 2014-11-12 Pedro Alves <palves@redhat.com>
11588 * server.c (cont_thread): Update comment.
11589 (start_inferior, attach_inferior): No longer clear cont_thread.
11590 (handle_v_cont): No longer set cont_thread.
11591 (captured_main): Clear cont_thread each time a GDB connects.
11593 2014-11-12 Pedro Alves <palves@redhat.com>
11595 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
11596 thread, and don't resume all threads if the Hc thread has exited.
11598 2014-11-12 Pedro Alves <palves@redhat.com>
11600 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
11601 the process group instead of to a specific LWP.
11603 2014-10-15 Pedro Alves <palves@redhat.com>
11606 * win32-arm-low.c (arm_set_thread_context): Remove current_event
11608 (arm_set_thread_context): Delete.
11609 (the_low_target): Adjust.
11610 * win32-i386-low.c (debug_registers_changed)
11611 (debug_registers_used): Delete.
11612 (update_debug_registers_callback): New function.
11613 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
11614 needing to update their debug registers.
11615 (win32_get_current_dr): New function.
11616 (x86_dr_low_get_addr, x86_dr_low_get_control)
11617 (x86_dr_low_get_status): Fetch the debug register from the thread
11619 (i386_initial_stuff): Adjust.
11620 (i386_get_thread_context): Remove current_event parameter. Don't
11621 clear debug_registers_changed nor copy DR values to
11623 (i386_set_thread_context): Delete.
11624 (i386_prepare_to_resume): New function.
11625 (i386_thread_added): Mark the thread as needing to update irs
11627 (the_low_target): Remove i386_set_thread_context and install
11628 i386_prepare_to_resume.
11629 * win32-low.c (win32_get_thread_context): Adjust.
11630 (win32_set_thread_context): Use SetThreadContext
11632 (win32_prepare_to_resume): New function.
11633 (win32_require_context): New function, factored out from ...
11634 (thread_rec): ... this.
11635 (continue_one_thread): Call win32_prepare_to_resume on each thread
11636 we're about to continue.
11637 (win32_resume): Call win32_prepare_to_resume on the event thread.
11638 * win32-low.h (struct win32_thread_info)
11639 <debug_registers_changed>: New field.
11640 (struct win32_target_ops): Change prototype of set_thread_context,
11641 delete set_thread_context and add prepare_to_resume.
11642 (win32_require_context): New declaration.
11644 2014-10-08 Gary Benson <gbenson@redhat.com>
11646 * server.h: Do not include common-exceptions.h.
11648 2014-10-08 Gary Benson <gbenson@redhat.com>
11650 * server.h: Do not include cleanups.h.
11652 2014-09-30 James Hogan <james.hogan@imgtec.com>
11654 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
11655 mips64-dsp-linux.c.
11657 2014-09-23 Yao Qi <yao@codesourcery.com>
11659 * linux-low.c (lp_status_maybe_breakpoint): New function.
11660 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
11661 (count_events_callback): Likewise.
11662 (select_event_lwp_callback): Likewise.
11663 (cancel_breakpoints_callback): Likewise.
11665 2014-09-19 Don Breazeal <donb@codesourcery.com>
11667 * linux-low.c (handle_extended_wait): Call
11668 linux_ptrace_get_extended_event.
11669 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
11670 linux_is_extended_waitstatus.
11672 2014-09-16 Joel Brobecker <brobecker@adacore.com>
11674 * Makefile.in (CPPFLAGS): Define.
11675 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
11676 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
11678 2014-09-16 Gary Benson <gbenson@redhat.com>
11680 * inferiors.h (current_inferior): Renamed as...
11681 (current_thread): New variable. All uses updated.
11682 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
11683 (maybe_move_out_of_jump_pad): Likewise.
11684 (cancel_breakpoint): Likewise.
11685 (linux_low_filter_event): Likewise.
11686 (wait_for_sigstop): Likewise.
11687 (linux_resume_one_lwp): Likewise.
11688 (need_step_over_p): Likewise.
11689 (start_step_over): Likewise.
11690 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
11691 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
11692 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
11693 and save_inferior as saved_thread.
11694 * regcache.c (get_thread_regcache): Renamed saved_inferior as
11696 (regcache_invalidate_thread): Likewise.
11697 * remote-utils.c (prepare_resume_reply): Likewise.
11698 * thread-db.c (thread_db_get_tls_address): Likewise.
11699 (disable_thread_event_reporting): Likewise.
11700 (remove_thread_event_breakpoints): Likewise.
11701 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
11703 * target.h (set_desired_inferior): Renamed as...
11704 (set_desired_thread): New declaration. All uses updated.
11705 * server.c (myresume): Updated comment to reference thread instead
11707 (handle_serial_event): Likewise.
11708 (handle_target_event): Likewise.
11710 2014-09-12 Tom Tromey <tromey@redhat.com>
11711 Gary Benson <gbenson@redhat.com>
11713 * regcache.h: Include common-regcache.h.
11714 (regcache_read_pc): Don't declare.
11715 * regcache.c (get_thread_regcache_for_ptid): New function.
11717 2014-09-11 Tom Tromey <tromey@redhat.com>
11718 Gary Benson <gbenson@redhat.com>
11720 * symbol.c: New file.
11721 * Makefile.in (SFILES): Add symbol.c.
11722 (OBS): Add symbol.o.
11724 2014-09-11 Gary Benson <gbenson@redhat.com>
11726 * target.c (target_stop_ptid, target_continue_ptid): New
11729 2014-09-11 Tom Tromey <tromey@redhat.com>
11730 Gary Benson <gbenson@redhat.com>
11732 * target.h: Include target/target.h.
11733 * target.c (target_read_memory, target_read_uint32)
11734 (target_write_memory): New functions.
11736 2014-09-11 Gary Benson <gbenson@redhat.com>
11738 * server.h (debug_hw_points): Don't declare.
11739 * server.c (debug_hw_points): Don't define. Replace all uses
11740 with show_debug_regs.
11741 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
11742 all uses with show_debug_regs.
11744 2014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
11746 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
11747 endianness into account.
11748 (ppc_supply_ptrace_register): Likewise.
11750 2014-09-03 James Hogan <james.hogan@imgtec.com>
11752 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
11753 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
11755 2014-09-03 Gary Benson <gbenson@redhat.com>
11757 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
11758 ALL_DEBUG_ADDRESS_REGISTERS.
11760 2014-09-02 Gary Benson <gbenson@redhat.com>
11762 * i386-low.h: Renamed as...
11763 * x86-low.h: New file. All type, function and variable name
11764 prefixes changed from "i386_" to "x86_". All references updated.
11765 * i386-low.c: Renamed as...
11766 * x86-low.c: New file. All type, function and variable name
11767 prefixes changed from "i386_" to "x86_". All references updated.
11769 2014-09-02 Gary Benson <gbenson@redhat.com>
11771 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
11772 (x86_linux_new_thread): Likewise.
11774 2014-08-29 Gary Benson <gbenson@redhat.com>
11776 * server.h (setjmp.h): Do not include.
11777 (toplevel): Do not declare.
11778 (common-exceptions.h): Include.
11779 (cleanups.h): Likewise.
11780 * server.c (toplevel): Do not define.
11781 (exit_code): New static global.
11782 (detach_or_kill_for_exit_cleanup): New function.
11783 (main): New function. Original main renamed to...
11784 (captured_main): New function.
11785 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
11787 2014-08-29 Gary Benson <gbenson@redhat.com>
11789 * Makefile.in (SFILES): Add common/common-exceptions.c.
11790 (OBS): Add common-exceptions.o.
11791 (common-exceptions.o): New rule.
11792 * utils.c (prepare_to_throw_exception): New function.
11794 2014-08-29 Gary Benson <gbenson@redhat.com>
11796 * config.in: Regenerate.
11797 * configure: Likewise.
11799 2014-08-29 Gary Benson <gbenson@redhat.com>
11801 * Makefile.in (SFILES): Add common/cleanups.c.
11803 (cleanups.o): New rule.
11805 2014-08-29 Gary Benson <gbenson@redhat.com>
11807 * utils.c (internal_vwarning): New function.
11809 2014-08-28 Gary Benson <gbenson@redhat.com>
11811 * utils.h (fatal): Remove declaration.
11812 * utils.c (fatal): Remove function.
11814 2014-08-28 Gary Benson <gbenson@redhat.com>
11816 * tracepoint.c (gdb_agent_init): Replace fatal with
11818 (initialize_tracepoint): Likewise.
11820 2014-08-28 Gary Benson <gbenson@redhat.com>
11822 * remote-utils.c (remote_prepare): Replace fatal with error.
11824 2014-08-28 Gary Benson <gbenson@redhat.com>
11826 * linux-low.c (linux_async): Replace fatal with warning.
11827 Tidy up and return.
11828 (linux_start_non_stop): Return -1 if linux_async failed.
11830 2014-08-28 Gary Benson <gbenson@redhat.com>
11832 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
11834 (i386_dr_low_get_addr): Remove vague comment.
11835 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
11838 2014-08-28 Gary Benson <gbenson@redhat.com>
11840 * inferiors.c (get_thread_process): Replace check with gdb_assert.
11841 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
11843 (linux_resume_one_lwp): Likewise.
11844 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
11846 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
11847 with internal_error.
11848 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
11849 (init_register_cache): Replace fatal with gdb_assert_not_reached.
11850 (find_register_by_name): Replace fatal with internal_error.
11851 (find_regno): Likewise.
11852 * tdesc.c (init_target_desc): Replace check with gdb_assert.
11853 * thread-db.c (thread_db_create_event): Likewise.
11854 (thread_db_load_search): Likewise.
11855 (try_thread_db_load_1): Likewise.
11856 * tracepoint.c (get_jump_space_head): Replace fatal with
11858 (claim_trampoline_space): Likewise.
11859 (have_fast_tracepoint_trampoline_buffer): Likewise.
11860 (cmd_qtstart): Likewise.
11861 (stop_tracing): Likewise.
11862 (fast_tracepoint_collecting): Likewise.
11863 (target_malloc): Likewise.
11864 (download_tracepoint): Likewise.
11865 (download_trace_state_variables): Replace check with gdb_assert.
11866 (upload_fast_traceframes): Replace fatal with internal_error.
11868 2014-08-19 Tom Tromey <tromey@redhat.com>
11869 Gary Benson <gbenson@redhat.com>
11871 * Makefile.in (SFILES): Add common/common-debug.c.
11872 (OBS): Add common-debug.o.
11873 (common-debug.o): New rule.
11874 * debug.h (debug_printf): Don't declare.
11875 * debug.c (debug_printf): Renamed and rewritten as...
11876 (debug_vprintf): New function.
11878 2014-08-19 Gary Benson <gbenson@redhat.com>
11880 * utils.h: Do not include print-utils.h.
11882 2014-08-19 Tom Tromey <tromey@redhat.com>
11883 Gary Benson <gbenson@redhat.com>
11885 * server.h: Add static assertion.
11886 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
11888 2014-08-19 Tom Tromey <tromey@redhat.com>
11889 Gary Benson <gbenson@redhat.com>
11891 * Makefile.in (SFILES): Add common/errors.c.
11892 (OBS): Add errors.o.
11893 (IPA_OBS): Add errors-ipa.o.
11894 (errors.o): New rule.
11895 (errors-ipa.o): Likewise.
11896 * utils.h (perror_with_name, error, warning): Don't declare.
11897 * utils.c (warning): Renamed and rewritten as...
11898 (vwarning): New function.
11899 (error): Renamed and rewritten as...
11900 (verror): New function.
11901 (internal_error): Renamed and rewritten as...
11902 (internal_verror): New function.
11904 2014-08-07 Gary Benson <gbenson@redhat.com>
11906 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
11907 * configure: Regenerate.
11908 * config.in: Likewise.
11909 * server.h: Do not include errno.h.
11910 * event-loop.c: Likewise.
11911 * hostio-errno.c: Likewise.
11912 * linux-low.c: Likewise.
11913 * remote-utils.c: Likewise.
11914 * spu-low.c: Likewise.
11915 * utils.c: Likewise.
11916 * gdbreplay.c: Unconditionally include errno.h.
11918 2014-08-07 Gary Benson <gbenson@redhat.com>
11920 * server.h: Do not include string.h.
11921 * event-loop.c: Likewise.
11922 * linux-low.c: Likewise.
11923 * regcache.c: Likewise.
11924 * remote-utils.c: Likewise.
11925 * spu-low.c: Likewise.
11926 * utils.c: Likewise.
11928 2014-08-07 Gary Benson <gbenson@redhat.com>
11930 * server.h: Do not include gdb_assert.h.
11932 2014-08-07 Gary Benson <gbenson@redhat.com>
11934 * server.h: Do not include common-utils.h.
11936 2014-08-07 Gary Benson <gbenson@redhat.com>
11938 * server.h: Do not include ptid.h.
11939 * notif.h: Likewise.
11941 2014-08-07 Gary Benson <gbenson@redhat.com>
11943 * server.h: Do not include gdb_locale.h.
11945 2014-08-07 Gary Benson <gbenson@redhat.com>
11947 * server.h: Do not include gdb/signals.h.
11948 * win32-low.c: Likewise.
11950 2014-08-07 Gary Benson <gbenson@redhat.com>
11952 * server.h: Do not include pathmax.h.
11954 2014-08-07 Gary Benson <gbenson@redhat.com>
11956 * server.h: Do not include libiberty.h.
11957 * linux-bfin-low.c: Likewise.
11959 2014-08-07 Gary Benson <gbenson@redhat.com>
11961 * server.h: Do not include ansidecl.h.
11963 2014-08-07 Gary Benson <gbenson@redhat.com>
11965 * linux-x86-low.c: Do not include stddef.h.
11966 * lynx-ppc-low.c: Likewise.
11967 * tracepoint.c: Likewise.
11969 2014-08-07 Gary Benson <gbenson@redhat.com>
11971 * server.h: Do not include stdarg.h.
11972 * nto-low.c: Likewise.
11974 2014-08-07 Gary Benson <gbenson@redhat.com>
11976 * server.h: Do not include stdlib.h.
11977 * inferiors.c: Likewise.
11978 * linux-low.c: Likewise.
11979 * regcache.c: Likewise.
11980 * spu-low.c: Likewise.
11981 * tracepoint.c: Likewise.
11982 * utils.c: Likewise.
11984 2014-08-07 Gary Benson <gbenson@redhat.com>
11986 * server.h: Do not include stdio.h.
11987 * linux-low.c: Likewise.
11988 * remote-utils.c: Likewise.
11989 * spu-low.c: Likewise.
11990 * utils.c: Likewise.
11991 * wincecompat.c: Likewise.
11993 2014-08-06 Gary Benson <gbenson@redhat.com>
11995 * regcache.c (init_register_cache): Move conditionals inside if.
11997 2014-08-06 Gary Benson <gbenson@redhat.com>
11999 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
12001 2014-07-31 Gary Benson <gbenson@redhat.com>
12003 * ax.h: Do not include server.h.
12004 * gdbthread.h: Likewise.
12005 * lynx-low.h: Likewise.
12006 * notif.h: Likewise.
12008 2014-07-30 Gary Benson <gbenson@redhat.com>
12010 * server.h: Include common-defs.h.
12011 Do not include config.h or build-gnulib-gdbserver/config.h.
12013 2014-07-30 Gary Benson <gbenson@redhat.com>
12015 * hostio-errno.c: Move server.h to top of includes list.
12016 * inferiors.c: Likewise.
12017 * linux-x86-low.c: Likewise.
12018 * notif.c: Include server.h.
12020 2014-07-24 Tom Tromey <tromey@redhat.com>
12021 Gary Benson <gbenson@redhat.com>
12023 * server.h (CORE_ADDR): Now unsigned.
12025 2014-07-16 Pedro Alves <palves@redhat.com>
12027 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
12029 2014-07-15 Pedro Alves <palves@redhat.com>
12031 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
12034 2014-07-11 Pedro Alves <palves@redhat.com>
12036 * linux-low.c (kill_wait_lwp): New function, based on
12037 kill_one_lwp_callback, but use my_waitpid directly.
12038 (kill_one_lwp_callback, linux_kill): Use it.
12040 2014-06-23 Pedro Alves <palves@redhat.com>
12042 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
12043 before setting DR0..DR3.
12045 2014-06-20 Gary Benson <gbenson@redhat.com>
12047 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
12048 * configure: Regenerated.
12049 * config.in: Likewise.
12051 2014-06-20 Gary Benson <gbenson@redhat.com>
12053 * Makefile.in (SFILES): Update locations for files moved
12054 from common to nat.
12055 (object file files): Reordered.
12057 2014-06-20 Gary Benson <gbenson@redhat.com>
12059 * i386-low.h (i386_dr_low_can_set_addr): Removed.
12060 (i386_dr_low_set_addr): Likewise.
12061 (i386_dr_low_get_addr): Likewise.
12062 (i386_dr_low_can_set_control): Likewise.
12063 (i386_dr_low_set_control): Likewise.
12064 (i386_dr_low_get_control): Likewise.
12065 (i386_dr_low_get_status): Likewise.
12066 (i386_get_debug_register_length): Likewise.
12067 * linux-x86-low.c (i386_dr_low_set_addr):
12068 Changed signature. Made static.
12069 (i386_dr_low_get_addr): Likewise.
12070 (i386_dr_low_set_control): Likewise.
12071 (i386_dr_low_get_control): Likewise.
12072 (i386_dr_low_get_status): Likewise.
12073 (i386_dr_low): New global variable.
12074 * win32-i386-low.c (i386_dr_low_set_addr):
12075 Changed signature. Made static.
12076 (i386_dr_low_get_addr): Likewise.
12077 (i386_dr_low_set_control): Likewise.
12078 (i386_dr_low_get_control): Likewise.
12079 (i386_dr_low_get_status): Likewise.
12080 (i386_dr_low): New global variable.
12082 2014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
12084 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
12085 * Makefile.in (AR, AR_FLAGS): Define.
12086 * configure: Regenerate.
12088 2014-06-19 Gary Benson <gbenson@redhat.com>
12090 * Makefile.in (i386-dregs.o): New rule.
12091 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
12092 * i386-low.c (target.h): Remove include.
12093 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
12094 (DR_CONTROL_SHIFT): Likewise.
12095 (DR_CONTROL_SIZE): Likewise.
12096 (DR_RW_EXECUTE): Likewise.
12097 (DR_RW_WRITE): Likewise.
12098 (DR_RW_READ): Likewise.
12099 (DR_RW_IORW): Likewise.
12100 (DR_LEN_1): Likewise.
12101 (DR_LEN_2): Likewise.
12102 (DR_LEN_4): Likewise.
12103 (DR_LEN_8): Likewise.
12104 (DR_LOCAL_ENABLE_SHIFT): Likewise.
12105 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
12106 (DR_ENABLE_SIZE): Likewise.
12107 (DR_LOCAL_SLOWDOWN): Likewise.
12108 (DR_GLOBAL_SLOWDOWN): Likewise.
12109 (DR_CONTROL_RESERVED): Likewise.
12110 (I386_DR_CONTROL_MASK): Likewise.
12111 (I386_DR_VACANT): Likewise.
12112 (I386_DR_LOCAL_ENABLE): Likewise.
12113 (I386_DR_GLOBAL_ENABLE): Likewise.
12114 (I386_DR_DISABLE): Likewise.
12115 (I386_DR_SET_RW_LEN): Likewise.
12116 (I386_DR_GET_RW_LEN): Likewise.
12117 (I386_DR_WATCH_HIT): Likewise.
12118 (i386_wp_op_t): Likewise.
12119 (i386_show_dr): Likewise.
12120 (i386_length_and_rw_bits): Likewise.
12121 (i386_insert_aligned_watchpoint): Likewise.
12122 (i386_remove_aligned_watchpoint): Likewise.
12123 (i386_handle_nonaligned_watchpoint): Likewise.
12124 i386_update_inferior_debug_regs(): Likewise.
12125 (i386_dr_insert_watchpoint): Likewise.
12126 (i386_dr_remove_watchpoint): Likewise.
12127 (i386_dr_region_ok_for_watchpoint): Likewise.
12128 (i386_dr_stopped_data_address): Likewise.
12129 (i386_dr_stopped_by_watchpoint): Likewise.
12131 2014-06-19 Gary Benson <gbenson@redhat.com>
12133 * i386-low.c (i386_dr_show): Renamed to
12134 i386_show_dr and made static. All uses updated.
12135 (i386_dr_length_and_rw_bits): Renamed to
12136 i386_length_and_rw_bits and made static.
12138 (i386_dr_insert_aligned_watchpoint): Renamed to
12139 i386_insert_aligned_watchpoint and made static.
12141 (i386_dr_remove_aligned_watchpoint): Renamed to
12142 i386_remove_aligned_watchpoint and made static.
12144 (i386_dr_update_inferior_debug_regs): Renamed to
12145 i386_update_inferior_debug_regs and made static.
12148 2014-06-18 Gary Benson <gbenson@redhat.com>
12150 * i386-low.h (i386_dr_low_can_set_addr): New macro.
12151 (i386_dr_low_can_set_control): Likewise.
12152 (i386_get_debug_register_length): Likewise.
12153 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
12154 (i386_dr_low_can_set_control): Likewise.
12155 (i386_get_debug_register_length): Likewise.
12157 2014-06-17 Gary Benson <gbenson@redhat.com>
12159 * i386-low.h (i386-dregs.h): New include.
12160 (DR_FIRSTADDR): Now in i386-dregs.h.
12161 (DR_LASTADDR): Likewise.
12162 (DR_NADDR): Likewise.
12163 (DR_STATUS): Likewise.
12164 (DR_CONTROL): Likewise.
12165 (i386_debug_reg_state): Likewise.
12166 (i386_dr_insert_watchpoint): Likewise.
12167 (i386_dr_remove_watchpoint): Likewise.
12168 (i386_dr_region_ok_for_watchpoint): Likewise.
12169 (i386_dr_stopped_data_address): Likewise.
12170 (i386_dr_stopped_by_watchpoint): Likewise.
12171 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
12173 2014-06-18 Gary Benson <gbenson@redhat.com>
12175 * i386-low.h (i386_low_insert_watchpoint): Renamed to
12176 i386_dr_insert_watchpoint.
12177 (i386_low_remove_watchpoint): Renamed to
12178 i386_dr_remove_watchpoint.
12179 (i386_low_region_ok_for_watchpoint): Renamed to
12180 i386_dr_region_ok_for_watchpoint.
12181 (i386_low_stopped_data_address): Renamed to
12182 i386_dr_stopped_data_address.
12183 (i386_low_stopped_by_watchpoint): Renamed to
12184 i386_dr_stopped_by_watchpoint.
12185 * i386-low.c (i386_show_dr): Renamed to
12186 i386_dr_show and made nonstatic. All uses updated.
12187 (i386_length_and_rw_bits): Renamed to
12188 i386_dr_length_and_rw_bits and made nonstatic.
12190 (i386_insert_aligned_watchpoint): Renamed to
12191 i386_dr_insert_aligned_watchpoint and made nonstatic.
12193 (i386_remove_aligned_watchpoint): Renamed to
12194 i386_dr_remove_aligned_watchpoint and made nonstatic.
12196 (i386_update_inferior_debug_regs): Renamed to
12197 i386_dr_update_inferior_debug_regs and made nonstatic.
12199 (i386_low_insert_watchpoint): Renamed to
12200 i386_dr_insert_watchpoint. All uses updated.
12201 (i386_low_remove_watchpoint): Renamed to
12202 i386_dr_remove_watchpoint. All uses updated.
12203 (i386_low_region_ok_for_watchpoint): Renamed to
12204 i386_dr_region_ok_for_watchpoint. All uses updated.
12205 (i386_low_stopped_data_address): Renamed to
12206 i386_dr_stopped_data_address. All uses updated.
12207 (i386_low_stopped_by_watchpoint): Renamed to
12208 i386_dr_stopped_by_watchpoint. All uses updated.
12210 2014-06-18 Gary Benson <gbenson@redhat.com>
12212 * i386-low.c (i386_dr_low_can_set_addr): New macro.
12213 (i386_dr_low_can_set_control): Likewise.
12214 (i386_insert_aligned_watchpoint): New check.
12216 2014-06-18 Gary Benson <gbenson@redhat.com>
12218 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
12221 2014-06-18 Gary Benson <gbenson@redhat.com>
12223 * i386-low.c (i386_length_and_rw_bits): Use internal_error
12224 instead of fatal and error.
12225 (i386_handle_nonaligned_watchpoint): Likewise.
12227 2014-06-18 Gary Benson <gbenson@redhat.com>
12229 * i386-low.c (i386_get_debug_register_length): New macro.
12230 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
12231 (i386_show_dr): Use debug_printf instead of fprintf. Use
12232 phex to format values.
12234 2014-06-18 Gary Benson <gbenson@redhat.com>
12236 * i386-low.h: Comment changes.
12237 * i386-low.c: Likewise.
12239 2014-06-18 Gary Benson <gbenson@redhat.com>
12241 * i386-low.c: Whitespace changes.
12243 2014-06-12 Tom Tromey <tromey@redhat.com>
12245 * utils.c (freeargv): Remove.
12247 2014-06-12 Tom Tromey <tromey@redhat.com>
12249 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
12250 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
12251 (parse_debug_format_options): Likewise.
12252 (gdbserver_usage): Likewise.
12253 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
12254 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
12255 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
12257 ($(LIBGNU)): Depend on libiberty.
12258 (all-lib): Recurse into all subdirs.
12259 (install-only): Invoke "install" target in subdirs.
12260 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
12262 * configure: Rebuild.
12263 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
12264 for vasprintf, vsnprintf, or gettimeofday.
12265 * configure.srv: Don't add safe-ctype.o or lbasename.o to
12268 2014-06-05 Joel Brobecker <brobecker@adacore.com>
12270 * development.sh: Delete.
12271 * Makefile.in (config.status): Adjust dependency on development.sh.
12272 * configure.ac: Adjust development.sh source call.
12273 * configure: Regenerate.
12275 2014-06-02 Pedro Alves <palves@redhat.com>
12277 * ax.c (gdb_free_agent_expr): New function.
12278 * ax.h (gdb_free_agent_expr): New declaration.
12279 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
12281 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
12283 (clear_breakpoint_conditions_and_commands): New function.
12284 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
12285 (clear_breakpoint_conditions_and_commands): New declaration.
12287 2014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12289 * linux-aarch64-low.c (asm/ptrace.h): Include.
12291 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12293 Fix TLS access for -static -pthread.
12294 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
12295 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
12296 (thread_db_load_search, try_thread_db_load_1): Initialize it.
12298 2014-05-20 Pedro Alves <palves@redhat.com>
12300 * linux-aarch64-low.c (aarch64_insert_point)
12301 (aarch64_remove_point): No longer check whether the type is
12302 supported here. Adjust to new interface.
12303 (the_low_target): Install aarch64_supports_z_point_type as
12304 supports_z_point_type method.
12305 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
12306 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
12307 instead of a Z packet char. Adjust.
12308 (arm_supports_z_point_type): New function.
12309 (arm_insert_point, arm_remove_point): Adjust to new interface.
12310 (the_low_target): Install arm_supports_z_point_type.
12311 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
12312 (cris_insert_point, cris_remove_point): Adjust to new interface.
12313 Don't check whether the type is supported here.
12314 (the_low_target): Install cris_supports_z_point_type.
12315 * linux-low.c (linux_supports_z_point_type): New function.
12316 (linux_insert_point, linux_remove_point): Adjust to new interface.
12317 * linux-low.h (struct linux_target_ops) <insert_point,
12318 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
12319 raw_breakpoint pointer parameter.
12320 <supports_z_point_type>: New method.
12321 * linux-mips-low.c (mips_supports_z_point_type): New function.
12322 (mips_insert_point, mips_remove_point): Adjust to new interface.
12323 Use mips_supports_z_point_type.
12324 (the_low_target): Install mips_supports_z_point_type.
12325 * linux-ppc-low.c (the_low_target): Install NULL as
12326 supports_z_point_type method.
12327 * linux-s390-low.c (the_low_target): Install NULL as
12328 supports_z_point_type method.
12329 * linux-sparc-low.c (the_low_target): Install NULL as
12330 supports_z_point_type method.
12331 * linux-x86-low.c (x86_supports_z_point_type): New function.
12332 (x86_insert_point): Adjust to new insert_point interface. Use
12333 insert_memory_breakpoint. Adjust to new
12334 i386_low_insert_watchpoint interface.
12335 (x86_remove_point): Adjust to remove_point interface. Use
12336 remove_memory_breakpoint. Adjust to new
12337 i386_low_remove_watchpoint interface.
12338 (the_low_target): Install x86_supports_z_point_type.
12339 * lynx-low.c (lynx_target_ops): Install NULL as
12340 supports_z_point_type callback.
12341 * nto-low.c (nto_supports_z_point_type): New.
12342 (nto_insert_point, nto_remove_point): Adjust to new interface.
12343 (nto_target_ops): Install nto_supports_z_point_type.
12344 * mem-break.c: Adjust intro comment.
12345 (struct raw_breakpoint) <raw_type, size>: New fields.
12346 <inserted>: Update comment.
12347 <shlib_disabled>: Delete field.
12348 (enum bkpt_type) <gdb_breakpoint>: Delete value.
12349 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
12350 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
12351 (raw_bkpt_type_to_target_hw_bp_type): New function.
12352 (find_enabled_raw_code_breakpoint_at): New function.
12353 (find_raw_breakpoint_at): New type and size parameters. Use them.
12354 (insert_memory_breakpoint): New function, based off
12355 set_raw_breakpoint_at.
12356 (remove_memory_breakpoint): New function.
12357 (set_raw_breakpoint_at): Reimplement.
12358 (set_breakpoint): New, based on set_breakpoint_at.
12359 (set_breakpoint_at): Reimplement.
12360 (delete_raw_breakpoint): Go through the_target->remove_point
12361 instead of assuming memory breakpoints.
12362 (find_gdb_breakpoint_at): Delete.
12363 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
12364 (find_gdb_breakpoint): New function.
12365 (set_gdb_breakpoint_at): Delete.
12366 (z_type_supported): New function.
12367 (set_gdb_breakpoint_1): New function, loosely based off
12368 set_gdb_breakpoint_at.
12369 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
12370 (delete_gdb_breakpoint_at): Delete.
12371 (delete_gdb_breakpoint_1): New function, loosely based off
12372 delete_gdb_breakpoint_at.
12373 (delete_gdb_breakpoint): New function.
12374 (clear_gdb_breakpoint_conditions): Rename to ...
12375 (clear_breakpoint_conditions): ... this. Don't handle a NULL
12377 (add_condition_to_breakpoint): Make static.
12378 (add_breakpoint_condition): Take a struct breakpoint pointer
12379 instead of an address. Adjust.
12380 (gdb_condition_true_at_breakpoint): Rename to ...
12381 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
12383 (gdb_condition_true_at_breakpoint): Reimplement.
12384 (add_breakpoint_commands): Take a struct breakpoint pointer
12385 instead of an address. Adjust.
12386 (gdb_no_commands_at_breakpoint): Rename to ...
12387 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
12388 parameter. Return true if no breakpoint was found. Change debug
12390 (gdb_no_commands_at_breakpoint): Reimplement.
12391 (run_breakpoint_commands): Rename to ...
12392 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
12393 and change return type to boolean.
12394 (run_breakpoint_commands): New function.
12395 (gdb_breakpoint_here): Also check for Z1 breakpoints.
12396 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
12397 breakpoint. Go through the_target->remove_point instead of
12398 assuming memory breakpoint.
12399 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
12400 software and hardware breakpoints.
12401 (reinsert_raw_breakpoint): Go through the_target->insert_point
12402 instead of assuming memory breakpoint.
12403 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
12404 software and hardware breakpoints.
12405 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
12406 Check both software and hardware breakpoints.
12407 (validate_inserted_breakpoint): Assert the breakpoint is a
12408 software breakpoint. Set the inserted flag to -1 instead of
12409 setting shlib_disabled.
12410 (delete_disabled_breakpoints): Adjust.
12411 (validate_breakpoints): Only validate software breakpoints.
12412 Adjust to inserted flag change.
12413 (check_mem_read, check_mem_write): Skip breakpoint types other
12414 than software breakpoints. Adjust to inserted flag change.
12415 * mem-break.h (enum raw_bkpt_type): New enum.
12416 (raw_breakpoint, struct process_info): Forward declare.
12417 (Z_packet_to_target_hw_bp_type): Delete declaration.
12418 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
12419 (set_gdb_breakpoint, delete_gdb_breakpoint)
12420 (clear_breakpoint_conditions): New declarations.
12421 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
12422 (breakpoint_inserted_here): Update comment.
12423 (add_breakpoint_condition, add_breakpoint_commands): Replace
12424 address parameter with a breakpoint pointer parameter.
12425 (gdb_breakpoint_here): Update comment.
12426 (delete_gdb_breakpoint_at): Delete.
12427 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
12428 * server.c (process_point_options): Take a struct breakpoint
12429 pointer instead of an address. Adjust.
12430 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
12431 delete_gdb_breakpoint.
12432 * spu-low.c (spu_target_ops): Install NULL as
12433 supports_z_point_type method.
12434 * target.h: Include mem-break.h.
12435 (struct target_ops) <prepare_to_access_memory>: Update comment.
12436 <supports_z_point_type>: New field.
12437 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12438 instead of a char. Also take a raw breakpoint pointer.
12439 * win32-arm-low.c (the_low_target): Install NULL as
12440 supports_z_point_type.
12441 * win32-i386-low.c (i386_supports_z_point_type): New function.
12442 (i386_insert_point, i386_remove_point): Adjust to new interface.
12443 (the_low_target): Install i386_supports_z_point_type.
12444 * win32-low.c (win32_supports_z_point_type): New function.
12445 (win32_insert_point, win32_remove_point): Adjust to new interface.
12446 (win32_target_ops): Install win32_supports_z_point_type.
12447 * win32-low.h (struct win32_target_ops):
12448 <supports_z_point_type>: New method.
12449 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12450 instead of a char. Also take a raw breakpoint pointer.
12452 2014-05-20 Pedro Alves <palves@redhat.com>
12454 * mem-break.h: Include break-common.h.
12455 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12456 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
12457 (Z_packet_to_target_hw_bp_type): New declaration.
12458 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
12459 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
12460 (Z_PACKET_ACCESS_WP): Delete macros.
12461 (Z_packet_to_hw_type): Delete function.
12462 * i386-low.h: Don't include break-common.h here.
12463 (Z_packet_to_hw_type): Delete declaration.
12464 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
12465 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12466 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
12467 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12468 * linux-aarch64-low.c: Don't include break-common.h here.
12469 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12470 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
12471 (Z_packet_to_target_hw_bp_type): Delete function.
12472 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
12474 (mips_insert_point, mips_remove_point): Use
12475 Z_packet_to_target_hw_bp_type.
12477 2014-05-20 Pedro Alves <palves@redhat.com>
12479 * linux-aarch64-low.c: Include break-common.h.
12480 (enum target_point_type): Delete.
12481 (Z_packet_to_point_type): Rename to ...
12482 (Z_packet_to_target_hw_bp_type): ... this, and return a
12483 target_hw_bp_type instead.
12484 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
12485 instead of an enum target_point_type.
12486 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
12488 (aarch64_dr_state_insert_one_point)
12489 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
12490 (aarch64_handle_aligned_watchpoint)
12491 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
12492 Take an enum target_hw_bp_type instead of an enum
12494 (aarch64_supports_z_point_type): New function.
12495 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
12496 use Z_packet_to_target_hw_bp_type.
12498 2014-05-20 Joel Brobecker <brobecker@adacore.com>
12500 * configure.ac: Only use -Werror by default when DEVELOPMENT
12502 * configure: Regenerate.
12504 2014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
12506 Fix gdbserver qGetTLSAddr for x86_64 -m32.
12507 * linux-x86-low.c (X86_64_USER_REGS): New.
12508 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
12510 2014-04-28 Yao Qi <yao@codesourcery.com>
12512 * Makefile.in (i386-avx512.c): Fix the typo of generated file
12515 2014-04-25 Pedro Alves <palves@redhat.com>
12518 * linux-low.c (linux_attach_fail_reason_string): New function.
12519 (linux_attach_lwp): Delete.
12520 (linux_attach_lwp_1): Rename to ...
12521 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
12522 argument. Remove "initial" parameter. Return int instead of
12523 void. Don't error or warn here.
12524 (linux_attach): Adjust to call linux_attach_lwp. Call error on
12525 failure to attach to the tgid. Call warning when failing to
12527 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
12528 argument. Remove "initial" parameter. Return int instead of
12529 void. Don't error or warn here.
12530 (linux_attach_fail_reason_string): New declaration.
12531 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
12532 interface change. Use linux_attach_fail_reason_string.
12534 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
12535 Walfred Tedeschi <walfred.tedeschi@intel.com>
12537 * Makefile.in: Added rules to handle new files
12538 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
12539 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
12540 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
12541 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
12542 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
12543 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
12544 x32-avx512-linux.o.
12545 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
12546 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
12547 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
12548 i386/x32-avx512.xml.
12549 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
12550 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
12551 i386/x32-avx512-linux.xml.
12552 * i387-fp.c (num_avx512_k_registers): New constant for number
12554 (num_avx512_zmmh_low_registers): New constant for number of
12555 lower ZMM registers (0-15).
12556 (num_avx512_zmmh_high_registers): New constant for number of
12557 higher ZMM registers (16-31).
12558 (num_avx512_ymmh_registers): New contant for number of higher
12559 YMM registers (ymm16-31 added by avx521 on x86_64).
12560 (num_avx512_xmm_registers): New constant for number of higher
12561 XMM registers (xmm16-31 added by AVX512 on x86_64).
12562 (struct i387_xsave): Add space for AVX512 registers.
12563 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
12564 Add code to handle AVX512 registers.
12565 (i387_xsave_to_cache): Add code to handle AVX512 registers.
12566 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
12567 prototypei from generated file.
12568 (tdesc_amd64_avx512_linux): Likewise.
12569 (init_registers_x32_avx512_linux): Likewise.
12570 (tdesc_x32_avx512_linux): Likewise.
12571 (init_registers_i386_avx512_linux): Likewise.
12572 (tdesc_i386_avx512_linux): Likewise.
12573 (x86_64_regmap): Add AVX512 registers.
12574 (x86_linux_read_description): Add code to handle AVX512 XSTATE
12576 (initialize_low_arch): Add code to initialize AVX512 registers.
12578 2014-04-23 Pedro Alves <palves@redhat.com>
12580 * mem-break.c (find_gdb_breakpoint_at): Make static.
12581 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
12583 2014-04-23 Pedro Alves <palves@redhat.com>
12585 * i386-low.c: Don't include break-common.h here.
12586 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12587 prototype to take target_hw_bp_type as argument instead of a Z
12589 * i386-low.h: Include break-common.h here.
12590 (Z_packet_to_hw_type): Declare.
12591 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12593 * linux-x86-low.c (x86_insert_point): Convert the packet number to
12594 a target_hw_bp_type before calling i386_low_insert_watchpoint.
12595 (x86_remove_point): Convert the packet number to a
12596 target_hw_bp_type before calling i386_low_remove_watchpoint.
12597 * win32-i386-low.c (i386_insert_point): Convert the packet number
12598 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
12599 (i386_remove_point): Convert the packet number to a
12600 target_hw_bp_type before calling i386_low_remove_watchpoint.
12602 2014-04-23 Pedro Alves <palves@redhat.com>
12604 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
12606 2014-04-10 Pedro Alves <palves@redhat.com>
12608 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
12609 Check if the condition or command is NULL before checking if the
12610 breakpoint is known. On success, return true.
12611 * mem-break.h (add_breakpoint_condition): Document return.
12612 (add_breakpoint_commands): Add describing comment.
12613 * server.c (skip_to_semicolon): New function.
12614 (process_point_options): Use it.
12616 2014-04-09 Pedro Alves <palves@redhat.com>
12618 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
12621 2014-02-27 Pedro Alves <palves@redhat.com>
12624 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
12626 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
12628 (last_thread_of_process_p): Take a PID argument instead of a
12630 (linux_wait_for_lwp): Delete.
12631 (num_lwps, check_zombie_leaders, not_stopped_callback): New
12633 (linux_low_filter_event): New function, party factored out from
12634 linux_wait_for_event.
12635 (linux_wait_for_event): Rename to ...
12636 (linux_wait_for_event_filtered): ... this. Add new filter ptid
12637 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
12638 sigsuspend. Check for zombie leaders.
12639 (linux_wait_for_event): Reimplement as wrapper around
12640 linux_wait_for_event_filtered.
12641 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
12642 a normal or signal exit is seen, it's the whole process exiting.
12643 (wait_for_sigstop): No longer a for_each_inferior callback.
12644 Rewrite on top of linux_wait_for_event_filtered.
12645 (stop_all_lwps): Call wait_for_sigstop directly.
12646 * server.c (resume, handle_target_event): Handle
12647 TARGET_WAITKIND_NO_RESUMED.
12649 2014-02-26 Joel Brobecker <brobecker@adacore.com>
12651 * win32-low.c (psapi_get_dll_name,
12652 * win32_CreateToolhelp32Snapshot): Delete.
12653 (win32_CreateToolhelp32Snapshot, win32_Module32First)
12654 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
12656 (handle_load_dll): Add function description.
12657 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
12659 2014-02-26 Joel Brobecker <brobecker@adacore.com>
12661 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
12663 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
12664 base address when calling win32_add_one_solib.
12665 (handle_load_dll): Delete local variable load_addr.
12666 Remove 0x1000 offset applied to DLL base address when calling
12667 win32_add_one_solib.
12668 (handle_unload_dll): Add comment.
12670 2014-02-26 Joel Brobecker <brobecker@adacore.com>
12672 * win32-low.c (win32_add_all_dlls): Renames
12673 win32_ensure_ntdll_loaded. Rewrite function documentation.
12674 Adjust implementation to always load all DLLs.
12675 Add 0x1000 offset to DLL base address when calling
12676 win32_add_one_solib.
12677 (child_initialization_done): New static global.
12678 (do_initial_child_stuff): Set child_initialization_done to
12679 zero during child initialization, and 1 after. Replace call
12680 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
12682 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
12683 (handle_unload_dll): Add function documentation.
12684 (get_child_debug_event): Ignore load and unload DLL events
12685 during child initialization.
12687 2014-02-20 Doug Evans <dje@google.com>
12689 Remove global all_lwps.
12690 * inferiors.h (ptid_of): Move here from linux-low.h.
12691 (pid_of, lwpid_of): Ditto.
12692 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
12693 parameter is a struct thread_info * now.
12694 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
12695 directly. Pass &all_threads to find_inferior instead of &all_lwps.
12696 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
12698 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
12699 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
12700 * linux-arm-low.c (update_registers_callback): Update, "entry"
12701 parameter is a struct thread_info * now.
12702 Fetch lwpid from current_inferior directly.
12703 (arm_insert_point): Pass &all_threads to find_inferior instead of
12705 (arm_remove_point): Ditto.
12706 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
12707 (arm_prepare_to_resume): Fetch pid from thread.
12708 (arm_read_description): Fetch lwpid from current_inferior directly.
12709 * linux-low.c (all_lwps): Delete.
12710 (delete_lwp): Delete call to remove_inferior.
12711 (handle_extended_wait): Fetch lwpid from thread.
12712 (add_lwp): Don't set lwp->entry.id. Remove call to
12713 add_inferior_to_list.
12714 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
12715 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
12716 (kill_one_lwp_callback): Ditto.
12717 (linux_kill): Don't dereference NULL pointer.
12718 Fetch ptid,lwpid from thread.
12719 (get_detach_signal): Fetch ptid from thread.
12720 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
12721 Simplify call to regcache_invalidate_thread.
12722 (delete_lwp_callback): Update, "entry" parameter is a
12723 struct thread_info * now. Fetch pid from thread.
12724 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
12725 (status_pending_p_callback): Update, "entry" parameter is a
12726 struct thread_info * now. Fetch ptid from thread.
12727 (find_lwp_pid): Update, "entry" parameter is a
12728 struct thread_info * now.
12729 (linux_wait_for_lwp): Fetch pid from thread.
12730 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
12731 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
12732 (enqueue_one_deferred_signal): Fetch lwpid from thread.
12733 (dequeue_one_deferred_signal): Ditto.
12734 (cancel_breakpoint): Fetch ptid from current_inferior.
12735 (linux_wait_for_event): Pass &all_threads to find_inferior,
12736 not &all_lwps. Fetch ptid, lwpid from thread.
12737 (count_events_callback): Update, "entry" parameter is a
12738 struct thread_info * now.
12739 (select_singlestep_lwp_callback): Ditto.
12740 (select_event_lwp_callback): Ditto.
12741 (cancel_breakpoints_callback): Ditto.
12742 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
12744 (select_event_lwp): Ditto. Fetch ptid from event_thread.
12745 (unsuspend_one_lwp): Update, "entry" parameter is a
12746 struct thread_info * now.
12747 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
12749 (linux_stabilize_threads): Ditto. And for for_each_inferior.
12750 Fetch lwpid from thread, not lwp.
12751 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
12752 Pass &all_threads to find_inferior, not &all_lwps.
12753 (send_sigstop): Fetch lwpid from thread, not lwp.
12754 (send_sigstop_callback): Update, "entry" parameter is a
12755 struct thread_info * now.
12756 (suspend_and_send_sigstop_callback): Ditto.
12757 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
12758 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
12759 struct thread_info * now.
12760 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
12762 (lwp_running): Update, "entry" parameter is a
12763 struct thread_info * now.
12764 (stop_all_lwps): Fetch ptid from thread.
12765 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
12766 (linux_resume_one_lwp): Fetch lwpid from thread.
12767 (linux_set_resume_request): Update, "entry" parameter is a
12768 struct thread_info * now. Fetch pid, lwpid from thread.
12769 (resume_status_pending_p): Update, "entry" parameter is a
12770 struct thread_info * now.
12771 (need_step_over_p): Ditto. Fetch lwpid from thread.
12772 (start_step_over): Fetch lwpid from thread.
12773 (linux_resume_one_thread): Update, "entry" parameter is a
12774 struct thread_info * now. Fetch lwpid from thread.
12775 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
12776 (proceed_one_lwp): Update, "entry" parameter is a
12777 struct thread_info * now. Fetch lwpid from thread.
12778 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
12779 struct thread_info * now.
12780 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
12781 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
12782 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
12784 (regsets_store_inferior_registers): Ditto.
12785 (fetch_register, store_register): Ditto.
12786 (linux_read_memory, linux_write_memory): Ditto.
12787 (linux_request_interrupt): Ditto.
12788 (linux_read_auxv): Ditto.
12789 (linux_xfer_siginfo): Ditto.
12790 (linux_qxfer_spu): Ditto.
12791 (linux_qxfer_libraries_svr4): Ditto.
12792 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
12793 moved to inferiors.h.
12795 (get_thread_lwp): Update.
12796 (struct lwp_info): Delete member "entry". Simplify comment for
12798 (all_lwps): Delete.
12799 * linux-mips-low.c (mips_read_description): Fetch lwpid from
12800 current_inferior directly.
12801 (update_watch_registers_callback): Update, "entry" parameter is a
12802 struct thread_info * now. Fetch pid from thread.
12803 (mips_linux_prepare_to_resume): Fetch ptid from thread.
12804 (mips_insert_point): Fetch lwpid from current_inferior.
12805 Pass &all_threads to find_inferior, not &all_lwps.
12806 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
12807 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
12809 (mips_stopped_data_address): Ditto.
12810 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
12812 * linux-tile-low.c (tile_arch_setup): Ditto.
12813 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
12814 (update_debug_registers_callback): Update, "entry" parameter is a
12815 struct thread_info * now. Fetch pid from thread.
12816 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
12817 Pass &all_threads to find_inferior, not &all_lwps.
12818 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
12819 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
12820 Pass &all_threads to find_inferior, not &all_lwps.
12821 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
12822 (i386_dr_low_get_status): Ditto.
12823 (x86_linux_prepare_to_resume): Fetch ptid from thread.
12824 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
12825 (x86_linux_read_description): Ditto.
12826 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
12828 2014-02-20 Doug Evans <dje@google.com>
12830 * inferiors.c (get_first_inferior): Fix buglet.
12832 2014-02-19 Doug Evans <dje@google.com>
12834 * gdbthread.h (add_thread): Change result type to struct thread_info *.
12835 * inferiors.c (add_thread): Change result type to struct thread_info *.
12836 All callers updated.
12837 (add_lwp): Call add_thread here instead of in callers.
12838 All callers updated.
12839 * linux-low.h (get_lwp_thread): Rewrite.
12840 (struct lwp_info): New member "thread".
12842 2014-02-19 Doug Evans <dje@google.com>
12844 * linux-low.c (add_lwp): Change result to struct lwp_info *.
12845 All callers updated.
12847 2014-02-19 Doug Evans <dje@google.com>
12849 * inferiors.c (add_thread): Fix whitespace.
12851 2014-02-19 Doug Evans <dje@google.com>
12853 * dll.c (clear_dlls): Replace accessing list implemention details
12855 * gdbthread.h (get_first_thread): Declare.
12856 * inferiors.c (for_each_inferior_with_data): New function.
12857 (get_first_thread): New function.
12858 (find_thread_ptid): Simplify.
12859 (get_first_inferior): New function.
12860 (clear_list): Delete.
12861 (one_inferior_p): New function.
12862 (clear_inferior_list): New function.
12863 (clear_inferiors): Update.
12864 * inferiors.h (for_each_inferior_with_data): Declare.
12865 (clear_inferior_list): Declare.
12866 (one_inferior_p): Declare.
12867 (get_first_inferior): Declare.
12868 * linux-low.c (linux_wait_for_event): Replace accessing list
12869 implemention details with API function.
12870 * server.c (target_running): Ditto.
12871 (accumulate_file_name_length): New function.
12872 (emit_dll_description): New function.
12873 (handle_qxfer_libraries): Replace accessing list implemention
12874 details with API function.
12875 (handle_qxfer_threads_worker): New function.
12876 (handle_qxfer_threads_proper): Replace accessing list implemention
12877 details with API function.
12878 (handle_query): Ditto.
12879 (visit_actioned_threads_callback_ftype): New typedef.
12880 (visit_actioned_threads_data): New struct.
12881 (visit_actioned_threads): Rewrite to be find_inferior callback.
12882 (resume): Call find_inferior.
12883 (handle_status): Replace accessing list implemention
12884 details with API function.
12885 (process_serial_event): Replace accessing list implemention details
12887 * target.c (set_desired_inferior): Replace accessing list implemention
12888 details with API function.
12889 * tracepoint.c (same_process_p): New function.
12890 (gdb_agent_about_to_close): Replace accessing list implemention
12891 details with API function.
12892 * win32-low.c (child_delete_thread): Replace accessing list
12893 implemention details with API function.
12894 (match_dll_by_basename): New function.
12895 (dll_is_loaded_by_basename): New function.
12896 (win32_ensure_ntdll_loaded): Replace accessing list implemention
12897 details call to dll_is_loaded_by_basename.
12899 2014-02-19 Doug Evans <dje@google.com>
12901 * dll.h (struct dll_info): Add comment.
12902 * gdbthread.h (struct thread_info): Add comment.
12903 (current_ptid): Simplify.
12904 * inferiors.c (add_process): Update.
12905 (remove_process): Update.
12906 * inferiors.h (struct process_info): Rename member "head" to "entry".
12907 * linux-low.c (delete_lwp): Update.
12909 (last_thread_of_process_p): Update.
12910 (kill_one_lwp_callback, linux_kill): Update.
12911 (status_pending_p_callback): Update.
12912 (wait_for_sigstop): Update. Simplify read of ptid.
12913 (start_step_over): Update.
12914 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
12915 (get_lwp_thread): Update.
12916 (struct lwp_info): Rename member "head" to "entry".
12917 * regcache.h (inferior_list_entry): Delete.
12918 * server.c (kill_inferior_callback): Update.
12919 (detach_or_kill_inferior_callback): Update.
12920 (print_started_pid): Update.
12921 (print_attached_pid): Update.
12922 (process_serial_event): Simplify read of ptid.
12923 * thread-db.c (thread_db_create_event): Update.
12924 (thread_db_get_tls_address): Update.
12925 * win32-low.c (current_inferior_ptid): Simplify.
12927 2014-02-19 Tom Tromey <tromey@redhat.com>
12929 * target.h (struct target_ops) <supports_btrace>: Add target_ops
12931 (target_supports_btrace): Update.
12933 2014-02-14 Yao Qi <yao@codesourcery.com>
12935 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
12936 (rsp-low-ipa.o): New target.
12938 2014-02-12 Tom Tromey <tromey@redhat.com>
12940 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
12941 convert_ascii_to_int.
12942 * regcache.c (registers_to_string): Likewise.
12943 * remote-utils.c (decode_M_packet): Likewise.
12944 * server.c (process_serial_event): Likewise.
12946 2014-02-12 Tom Tromey <tromey@redhat.com>
12948 * server.c (handle_query, handle_v_run): Use hex2bin, not
12950 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
12952 2014-02-12 Tom Tromey <tromey@redhat.com>
12954 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
12955 convert_int_to_ascii.
12956 * regcache.c (registers_to_string, collect_register_as_string):
12958 * remote-utils.c (look_up_one_symbol, relocate_instruction):
12960 * server.c (process_serial_event): Likewise.
12961 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
12962 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
12964 2014-02-12 Tom Tromey <tromey@redhat.com>
12966 * remote-utils.c (look_up_one_symbol, monitor_output): Use
12967 bin2hex, not hexify.
12968 * tracepoint.c (cmd_qtstatus): Likewise.
12970 2014-02-12 Tom Tromey <tromey@redhat.com>
12972 * remote-utils.c (monitor_output): Pass explicit length to
12975 2014-02-12 Tom Tromey <tromey@redhat.com>
12977 * tracepoint.c: Include rsp-low.h.
12978 * server.c: Include rsp-low.h.
12979 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
12980 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
12982 * remote-utils.c: Include rsp-low.h.
12983 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
12984 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
12985 (convert_int_to_ascii, convert_ascii_to_int): Move to
12987 * regcache.c: Include rsp-low.h.
12988 * ax.c: Include rsp-low.h.
12989 * Makefile.in (SFILES): Add common/rsp-low.c.
12990 (OBS): Add rsp-low.o.
12991 (rsp-low.o): New target.
12993 2014-02-12 Tom Tromey <tromey@redhat.com>
12995 * utils.h (pulongest, plongest, phex_nz): Don't declare.
12996 Include print-utils.h.
12997 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
12998 (plongest, thirty_two, phex_nz): Remove.
12999 * Makefile.in (SFILES): Add common/print-utils.c.
13000 (OBS): Add print-utils.o.
13001 (print-utils-ipa.o): New target.
13002 (print-utils.o): New target.
13003 (IPA_OBJS): Add print-utils-ipa.o.
13005 2014-02-06 Tom Tromey <tromey@redhat.com>
13007 * Makefile.in (SFILES): Fix indentation.
13009 2014-02-05 Doug Evans <dje@google.com>
13011 * linux-low.c (linux_wait_for_event): Improve comment.
13012 (linux_wait_1): Keep current_inferior in sync with event_child.
13014 2014-01-22 Doug Evans <dje@google.com>
13016 * gdbthread.h (gdb_id_to_thread): Delete, unused.
13018 2014-01-22 Doug Evans <dje@google.com>
13020 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
13021 * configure: Regenerate.
13022 * config.in: Regenerate.
13023 * Makefile.in (SFILES): Add debug.c.
13024 (OBS): Add debug.o.
13025 * debug.c: New file.
13026 * debug.h: New file.
13027 * linux-aarch64-low.c (*): Update all debugging printfs to use
13028 debug_printf instead of fprintf.
13029 * linux-arm-low.c (*): Ditto.
13030 * linux-cris-low.c (*): Ditto.
13031 * linux-crisv32-low.c (*): Ditto.
13032 * linux-m32r-low.c (*): Ditto.
13033 * linux-sparc-low.c (*): Ditto.
13034 * linux-x86.c (*): Ditto.
13035 * linux-low.c (*): Ditto.
13036 (linux_wait_1): Add calls to debug_enter, debug_exit.
13037 (linux_wait): Remove redundant debugging printf.
13038 (stop_all_lwps): Add calls to debug_enter, debug_exit.
13039 (linux_resume, unstop_all_lwps): Ditto.
13040 * mem-break.c (*): Update all debugging printfs to use
13041 debug_printf instead of fprintf.
13042 * remote-utils.c (*): Ditto.
13043 * thread-db.c (*): Ditto.
13044 * server.c #include <ctype.h>, "gdb_vecs.h".
13045 (debug_threads): Moved to debug.c.
13046 (*): Update all debugging printfs to use debug_printf instead of
13048 (start_inferior): Replace call to fflush with call to debug_flush.
13049 (monitor_show_help): Mention set debug-format.
13050 (parse_debug_format_options): New function.
13051 (handle_monitor_command): Handle "monitor set debug-format".
13052 (gdbserver_usage): Mention --debug-format.
13053 (main): Parse --debug-format.
13054 * server.h (debug_threads): Declaration moved to debug.h.
13055 #include "debug.h".
13056 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
13057 trace_debug_1 that uses debug_printf.
13058 (tracepoint_look_up_symbols): Update all debugging printfs to use
13059 debug_printf instead of fprintf.
13061 2014-01-20 Baruch Siach <baruch@tkos.co.il>
13063 * linux-xtensa-low.c: Include asm/ptrace.h instead of
13066 2014-01-17 Pedro Alves <palves@redhat.com>
13069 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
13070 defined after including gdb_proc_service.h.
13072 2014-01-16 Doug Evans <dje@google.com>
13074 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
13075 (match_dll): Use it.
13077 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13079 * target.h (target_ops) <read_btrace>: Change parameters and
13080 return type to allow error reporting.
13081 * server.c (handle_qxfer_btrace): Support delta reads. Pass
13082 trace reading errors on.
13083 * linux-low.c (linux_low_read_btrace): Pass trace reading
13085 (linux_low_disable_btrace): New.
13087 2014-01-15 Doug Evans <dje@google.com>
13089 * inferiors.c (thread_id_to_gdb_id): Delete.
13090 * inferiors.h (thread_id_to_gdb_id): Delete.
13092 2014-01-13 Eli Zaretskii <eliz@gnu.org>
13094 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
13095 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
13098 2014-01-08 Pedro Alves <palves@redhat.com>
13100 * server.c (handle_status): Don't discard previous queued stop
13101 replies or thread's pending status here.
13102 (main) <disconnection>: Do it here instead.
13104 2014-01-08 Pedro Alves <palves@redhat.com>
13106 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
13107 * server.c (visit_actioned_threads, handle_pending_status): New
13109 (handle_v_cont): Factor out parts to ...
13110 (resume): ... this new function. If in all-stop, and a thread
13111 being resumed has a pending status, report it without actually
13113 (myresume): Adjust to use the new 'resume' function.
13114 (clear_pending_status_callback, set_pending_status_callback)
13115 (find_status_pending_thread_callback): New functions.
13116 (handle_status): Handle the case of multiple threads having
13117 interesting statuses to report. Report threads' real last signal
13118 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
13119 with an interesting thread to report the status for, instead of
13120 always reporting the status of the first thread.
13122 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13124 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
13125 * gdbreplay.c (gdbreplay_version): Likewise.
13127 2013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
13129 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
13130 iov.iov_len with the real length in use.
13132 2013-12-13 Joel Brobecker <brobecker@adacore.com>
13134 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
13135 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
13136 for all targets that use win32-low.c.
13137 * win32-low.c (win32_ensure_ntdll_loaded): New function.
13138 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
13140 2013-12-13 Pedro Alves <palves@redhat.com>
13142 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
13143 if equal to TARGET_WAITKIND_LOADED.
13144 * win32-low.c (cached_status): New static global.
13145 (win32_wait): Add declaration.
13146 (do_initial_child_stuff): Flush all initial pending debug events
13147 up to the initial breakpoint.
13148 (win32_wait): If CACHED_STATUS was set, return that instead
13149 of doing a real wait. Remove the code resuming the execution
13150 of the inferior after receiving a TARGET_WAITKIND_LOADED event
13151 during the initial phase. Also remove the code changing
13152 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
13153 TARGET_WAITKIND_STOPPED.
13155 2013-12-11 Yao Qi <yao@codesourcery.com>
13157 * notif.c (handle_notif_ack): Return 0 if no notification
13160 2013-11-20 Doug Evans <dje@google.com>
13162 * linux-low.c (linux_set_resume_request): Fix comment.
13164 2013-11-20 Doug Evans <dje@google.com>
13166 * linux-low.c (resume_status_pending_p): Tweak comment.
13168 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
13170 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
13171 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
13172 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
13173 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
13174 (srv_amd64_regobj): Add amd64-mpx.o.
13175 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
13176 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
13177 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
13178 * i387-fp.c (num_pl_bnd_register) Added constant.
13179 (num_pl_bnd_cfg_registers) Added constant.
13180 (struct i387_xsave) Added reserved area and MPX fields.
13181 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
13182 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
13184 (tdesc_i386_mpx_linux): Add MPX amd64 target.
13185 (init_registers_amd64_mpx_linux): Declare new function.
13186 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
13187 (x86_64_regmap): Add MPX registers.
13188 (x86_linux_read_description): Add MPX case.
13189 (initialize_low_arch): Initialize MPX targets.
13191 2013-11-18 Tom Tromey <tromey@redhat.com>
13193 * configure: Rebuild.
13194 * configure.ac: Don't check for stdlib.h.
13195 * gdbreplay.c: Unconditionally include stdlib.h.
13197 2013-11-18 Tom Tromey <tromey@redhat.com>
13199 * config.in: Rebuild.
13200 * configure: Rebuild.
13201 * configure.ac: Don't use AC_HEADER_DIRENT.
13203 2013-11-18 Tom Tromey <tromey@redhat.com>
13205 * server.h: Don't check HAVE_STRING_H.
13206 * gdbreplay.c: Don't check HAVE_STRING_H.
13207 * configure: Rebuild.
13209 2013-11-18 Tom Tromey <tromey@redhat.com>
13211 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
13214 2013-11-08 Tom Tromey <tromey@redhat.com>
13216 * configure, config.in: Rebuild.
13217 * configure.ac: Remove unused configury.
13219 2013-11-08 Tom Tromey <tromey@redhat.com>
13221 * acinclude.m4: Include common.m4, codeset.m4.
13222 * configure, config.in: Rebuild.
13223 * configure.ac: Use GDB_AC_COMMON.
13225 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
13227 * linux-s390-low.c (HWCAP_S390_TE): New define.
13228 (s390_arch_setup): Consider the TE field in the HWCAP for
13229 determining 'have_regset_tdb'.
13231 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
13234 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
13237 2013-10-02 Pedro Alves <palves@redhat.com>
13239 * server.c (process_serial_event): Don't output "GDBserver
13240 exiting" if GDB is connected through stdio.
13241 * target.c (mywait): Likewise, be silent if GDB is connected
13244 2013-10-01 Joel Brobecker <brobecker@adacore.com>
13246 * lynx-low.c (lynx_add_threads_after_attach): New function.
13247 (lynx_attach): Remove call to add_thread. Add call to
13248 lynx_add_threads_after_attach instead.
13250 2013-09-28 Mike Frysinger <vapier@gentoo.org>
13252 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
13253 * config.in, configure: Regenerated.
13255 2013-09-18 Yao Qi <yao@codesourcery.com>
13258 * server.c (start_inferior): Clear 'resume_info'.
13260 2013-09-16 Jiong Wang <jiwang@tilera.com>
13262 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
13265 2013-09-16 Jiong Wang <jiwang@tilera.com>
13267 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
13268 linux-tile-low.o to srv_tgtobj.
13270 2013-09-16 Will Newton <will.newton@linaro.org>
13272 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
13275 2013-09-06 Pedro Alves <palves@redhat.com>
13277 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
13278 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
13279 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
13280 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
13281 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
13282 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
13284 2013-09-06 Pedro Alves <palves@redhat.com>
13286 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
13287 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
13289 2013-09-06 Pedro Alves <palves@redhat.com>
13291 * linux-amd64-ipa.c: Include tracepoint.h.
13292 * linux-i386-ipa.c: Include tracepoint.h.
13294 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
13296 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
13297 (ps_get_thread_area): New function.
13299 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
13301 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
13302 (initialize_low_arch): Call init_registers_crisv32 rather than
13303 init_register_crisv32.
13305 2013-09-05 Pedro Alves <palves@redhat.com>
13307 * server.h (handle_vFile, hostio_last_error_from_errno): Move
13309 * hostio.h: ... this new file.
13310 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
13311 win32-low.c: Include hostio.h.
13313 2013-09-05 Pedro Alves <palves@redhat.com>
13315 * server.h (gdb_client_data, handler_func, callback_handler_func)
13316 (delete_file_handler, add_file_handler, append_callback_event)
13317 (delete_callback_event, start_event_loop, initialize_event_loop):
13318 Move to event-loop.h and include it.
13319 * event-loop.h: New file.
13321 2013-09-05 Pedro Alves <palves@redhat.com>
13323 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
13324 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
13325 (loaded_dll, unloaded_dll): Move to ...
13326 * dll.h: ... this new file.
13327 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
13329 2013-09-05 Pedro Alves <palves@redhat.com>
13331 * server.h (current_process, get_thread_process, all_processes)
13332 (add_inferior_to_list, for_each_inferior, current_inferior)
13333 (remove_inferior, add_process, remove_process, find_process_pid)
13334 (have_started_inferiors_p, have_attached_inferiors_p)
13335 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
13336 (clear_inferiors, find_inferior, find_inferior_id)
13337 (inferior_target_data, set_inferior_target_data)
13338 (inferior_regcache_data, set_inferior_regcache_data): Move to
13339 inferiors.h, and include it.
13340 * inferiors.h: New file.
13342 2013-09-05 Pedro Alves <palves@redhat.com>
13344 * server.h (struct emit_ops, current_insn_ptr, emit_error):
13348 2013-09-05 Pedro Alves <palves@redhat.com>
13350 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
13352 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
13353 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
13354 (handle_tracepoint_general_set, handle_tracepoint_query)
13355 (tracepoint_finished_step, tracepoint_was_hit)
13356 (release_while_stepping_state_list, current_traceframe)
13357 (in_readonly_region, traceframe_read_mem)
13358 (fetch_traceframe_registers, traceframe_read_sdata)
13359 (traceframe_read_info, struct fast_tpoint_collect_status)
13360 (fast_tracepoint_collecting, force_unlock_trace_buffer)
13361 (handle_tracepoit_bkpts, initialize_low_tracepoint)
13362 (supply_fast_tracepoint_registers)
13363 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
13364 (ipa_tdesc, claim_trampoline_space)
13365 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
13366 (agent_mem_read, agent_get_trace_state_variable_value)
13367 (agent_set_trace_state_variable_value, agent_tsv_read)
13368 (agent_mem_read_string, get_raw_reg_func_addr)
13369 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
13370 * tracepoint.h: ... this new file.
13372 2013-09-05 Pedro Alves <palves@redhat.com>
13374 * server.h (perror_with_name, error, fatal, warning, paddress)
13375 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
13377 * utils.h: New file.
13379 2013-09-05 Pedro Alves <palves@redhat.com>
13381 * server.h (remote_debug, noack_mode, transport_is_reliable)
13382 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
13383 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
13384 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
13385 (write_enn, initialize_async_io, enable_async_io)
13386 (disable_async_io, check_remote_input_interrupt_request)
13387 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
13388 (dead_thread_notify, prepare_resume_reply)
13389 (decode_address_to_semicolon, decode_address, decode_m_packet)
13390 (decode_M_packet, decode_X_packet, decode_xfer_write)
13391 (decode_search_memory_packet, unhexify, hexify)
13392 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
13393 (look_up_one_symbol, relocate_instruction)
13394 (monitor_output): Move to remote-utils.h, and include it.
13395 * remote-utils.h: New file.
13397 2013-09-05 Pedro Alves <palves@redhat.com>
13399 * server.h (_): Delete.
13401 2013-09-02 Pedro Alves <palves@redhat.com>
13403 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
13404 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
13406 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
13408 2013-09-02 Pierre Muller <muller@sourceware.org>
13410 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
13411 or WriteProcessMemory complete successfully and handle
13412 ERROR_PARTIAL_COPY error.
13414 2013-09-02 Pedro Alves <palves@redhat.com>
13416 * server.c (gdb_read_memory): Return -1 on traceframe memory read
13417 error instead of EIO.
13419 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
13422 * linux-low.c: Include filestuff.h.
13423 (linux_create_inferior) <pid == 0>: Call close_most_fds.
13424 * lynx-low.c: Include filestuff.h.
13425 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
13426 * server.c: Include filestuff.h.
13427 (main): Call notice_open_fds.
13428 * spu-low.c: Include filestuff.h.
13429 (spu_create_inferior) <pid == 0>: Call close_most_fds.
13431 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
13433 * Makefile.in: Explain why ../target and ../nat are not
13434 listed as include file search paths.
13435 (linux-waitpid.o): New object file rule.
13436 * configure.srv (srv_native_linux_obj): New variable.
13437 Replace all occurrences of linux native object files with
13438 $srv_native_linux_obj.
13439 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
13440 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
13441 (linux_enable_event_reporting): Remove declaration.
13442 (my_waitpid): Moved to common/linux-waitpid.c.
13443 (linux_wait_for_event): Pass ptid when calling
13444 linux_enable_event_reporting.
13445 (linux_supports_tracefork_flag): Remove.
13446 (linux_enable_event_reporting): Likewise.
13447 (linux_tracefork_grandchild): Remove.
13448 (STACK_SIZE): Moved to common/linux-ptrace.c.
13449 (linux_tracefork_child): Remove.
13450 (linux_test_for_tracefork): Remove.
13451 (linux_look_up_symbols): Call linux_supports_traceclone.
13452 (initialize_low): Remove call to linux_test_for_tracefork.
13453 * linux-low.h (PTRACE_TYPE_ARG3): Move to
13454 common/linux-ptrace.h.
13455 (PTRACE_TYPE_ARG4): Likewise.
13456 Include linux-ptrace.h.
13458 2013-08-21 Pedro Alves <palves@redhat.com>
13460 * config.in: Renegerate.
13462 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
13464 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
13465 (SFILES): Remove $(srcdir)/common/target-common.c and
13466 add $(srcdir)/target/waitstatus.c.
13467 (OBS): Remove target-common.o and add waitstatus.o.
13468 (server_h): Remove $(srcdir)/../common/target-common.h and
13469 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
13470 and $(srcdir)/../target/waitstatus.h.
13471 (target-common.o): Remove.
13472 (waitstatus.o): New target object file.
13473 * target.h: Do not include target-common.h and
13474 include target/resume.h, target/wait.h and
13475 target/waitstatus.h.
13477 2013-08-13 Luis Machado <lgustavo@codesourcery.com>
13479 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13480 to PTRACE_TYPE_ARG3.
13481 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13482 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
13484 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
13485 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
13487 2013-07-27 Jie Zhang <jie@codesourcery.com>
13488 Daniel Jacobowitz <dan@codesourcery.com>
13489 Yao Qi <yao@codesourcery.com>
13491 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
13492 (mips-linux-watch.o): New rule.
13493 (mips_linux_watch_h): New variable.
13494 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
13496 * linux-mips-low.c: Include mips-linux-watch.h.
13497 (struct arch_process_info, struct arch_lwp_info): New.
13498 (update_watch_registers_callback): New function.
13499 (mips_linux_new_process, mips_linux_new_thread) New functions.
13500 (mips_linux_prepare_to_resume, mips_insert_point): New
13502 (mips_remove_point, mips_stopped_by_watchpoint): New
13504 (rsp_bp_type_to_target_hw_bp_type): New function.
13505 (mips_stopped_data_address): New function.
13506 (the_low_target): Add watchpoint support functions.
13508 2013-07-27 Yao Qi <yao@codesourcery.com>
13510 * i386-low.c: Include break-common.h.
13511 (enum target_hw_bp_type): Remove.
13513 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
13515 * Makefile.in (SFILES): /common/target-common.c.
13516 (OBS): Add target-common.o.
13517 (server_h): Add $(srcdir)/../common/target-common.h.
13518 (target-common.o): New target.
13519 * server.c (queue_stop_reply_callback): Free
13520 status string after use.
13521 * target.c (target_waitstatus_to_string): Remove.
13522 * target.h: Include target-common.h.
13523 (resume_kind): Likewise.
13524 (target_waitkind): Likewise.
13525 (target_waitstatus): Likewise.
13526 (TARGET_WNOHANG): Likewise.
13528 2013-07-04 Yao Qi <yao@codesourcery.com>
13530 * Makefile.in (host_alias): Use @host_noncanonical@.
13531 (target_alias): Use @target_noncanonical@.
13532 * configure.ac: Use ACX_NONCANONICAL_TARGET and
13533 ACX_NONCANONICAL_HOST.
13534 * configure: Regenerated.
13537 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13539 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13540 * configure: Rebuild.
13541 * Makefile.in (version_host, version_target): Get from configure.
13542 (version.c): Use $(version_host) and $(version_target).
13544 2013-07-03 Pedro Alves <palves@redhat.com>
13546 * Makefile.in (config.status): Depend on development.sh.
13547 * acinclude.m4: Include libmcheck.m4.
13548 * configure: Regenerate.
13550 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13552 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
13553 attribute inside the parentheses.
13554 (winapi_DebugSetProcessKillOnExit): Ditto.
13555 (winapi_DebugBreakProcess): Ditto.
13556 (winapi_GenerateConsoleCtrlEvent): Ditto.
13558 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13560 * notif.h (notif_event): Add a dummy member to avoid compiler
13563 2013-07-01 Pedro Alves <palves@redhat.com>
13565 * hostio.c (HOSTIO_PATH_MAX): Define.
13566 (require_filename, handle_open, handle_unlink, handle_readlink):
13569 2013-07-01 Pedro Alves <palves@redhat.com>
13571 * server.h: Include "pathmax.h".
13572 * linux-low.c: Don't include sys/param.h.
13573 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
13575 * win32-low.c: Don't include sys/param.h.
13576 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
13578 2013-07-01 Pedro Alves <palves@redhat.com>
13580 * event-loop.c: Don't check HAVE_UNISTD_H before including
13582 * gdbreplay.c: Likewise.
13583 * remote-utils.c: Likewise.
13584 * server.c: Likewise.
13585 * configure.ac: Don't check for unistd.h.
13586 * configure: Regenerate.
13588 2013-06-28 Tom Tromey <tromey@redhat.com>
13590 * Makefile.in (version.c): Use version.in, not
13593 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13595 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13596 * configure: Rebuild.
13597 * Makefile.in (version_host, version_target): Get from configure.
13598 (version.c): Use $(version_host) and $(version_target).
13600 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13602 Fix trace-status to output user name without trailing colon.
13603 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
13605 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13607 Fix trace-status to output proper start-time and stop-time.
13608 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
13609 output start time and stop time in hex as gdb expects.
13611 2013-06-26 Pedro Alves <pedro@codesourcery.com>
13613 * tracepoint.c (build_traceframe_info_xml): Output trace state
13614 variables present in the trace buffer.
13616 2013-06-24 Tom Tromey <tromey@redhat.com>
13618 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
13620 (version.o): Remove.
13621 * gdbreplay.c: Include version.h.
13622 (version, host_name): Don't declare.
13623 * server.h: Include version.h.
13624 (version, host_name): Don't declare.
13626 2013-06-12 Pedro Alves <palves@redhat.com>
13628 * linux-x86-low.c (linux_is_elf64): Delete global.
13629 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
13630 with local linux_pid_exe_is_elf_64_file use.
13632 2013-06-11 Pedro Alves <palves@redhat.com>
13634 * linux-low.c (regset_disabled, disable_regset): New functions.
13635 (regsets_fetch_inferior_registers)
13636 (regsets_store_inferior_registers): Use them.
13637 (initialize_regsets_info); Don't allocate the disabled_regsets
13639 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
13642 2013-06-11 Pedro Alves <palves@redhat.com>
13644 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
13647 2013-06-11 Pedro Alves <palves@redhat.com>
13649 * linux-x86-low.c (initialize_low_arch): Call
13650 init_registers_x32_avx_linux.
13652 2013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13654 Fix compatibility with Android Bionic.
13655 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
13658 2013-06-07 Pedro Alves <palves@redhat.com>
13661 * Makefile.in (OBS): Add tdesc.o.
13662 (IPA_OBJS): Add tdesc-ipa.o.
13663 (tdesc-ipa.o): New rule.
13664 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
13666 * linux-low.c (new_inferior): Delete.
13667 (disabled_regsets, num_regsets): Delete.
13668 (linux_add_process): Adjust to set the new per-process
13670 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
13671 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
13672 was a stop. When calling arch_setup, switch the current inferior
13673 to the thread that got an event.
13674 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
13675 (regsets_fetch_inferior_registers)
13676 (regsets_store_inferior_registers): New regsets_info parameter.
13678 (linux_register_in_regsets): New regs_info parameter. Adjust to
13680 (register_addr, fetch_register, store_register): New usrregs_info
13681 parameter. Adjust to use it.
13682 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
13683 parameter regs_info. Adjust to use it.
13684 (linux_fetch_registers): Get the current inferior's regs_info, and
13686 (linux_store_registers): Ditto.
13687 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
13688 (initialize_low): Don't initialize the target_regsets here. Call
13689 initialize_low_arch.
13690 * linux-low.h (target_regsets): Delete declaration.
13691 (struct regsets_info): New.
13692 (struct usrregs_info): New.
13693 (struct regs_info): New.
13694 (struct process_info_private) <new_inferior>: New field.
13695 (struct linux_target_ops): Delete the num_regs, regmap, and
13696 regset_bitmap fields. New field regs_info.
13697 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
13698 * i387-fp.c (num_xmm_registers): Delete.
13699 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
13700 calls to new interface.
13701 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
13702 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
13703 Infer the number of xmm registers from the regcache's target
13705 * i387-fp.h (num_xmm_registers): Delete.
13706 * inferiors.c (add_thread): Don't install the thread's regcache
13708 * proc-service.c (gregset_info): Fetch the current inferior's
13709 regs_info. Adjust to use it.
13710 * regcache.c: Include tdesc.h.
13711 (register_bytes, reg_defs, num_registers)
13712 (gdbserver_expedite_regs): Delete.
13713 (get_thread_regcache): If the thread doesn't have a regcache yet,
13714 create one, instead of aborting gdbserver.
13715 (regcache_invalidate_one): Rename to ...
13716 (regcache_invalidate_thread): ... this.
13717 (regcache_invalidate_one): New.
13718 (regcache_invalidate): Only invalidate registers of the current
13720 (init_register_cache): Add target_desc parameter, and use it.
13721 (new_register_cache): Ditto. Assert the target description has a
13722 non zero registers_size.
13723 (regcache_cpy): Add assertions. Adjust.
13724 (realloc_register_cache, set_register_cache): Delete.
13725 (registers_to_string, registers_from_string): Adjust.
13726 (find_register_by_name, find_regno, find_register_by_number)
13727 (register_cache_size): Add target_desc parameter, and use it.
13728 (free_register_cache_thread, free_register_cache_thread_one)
13729 (regcache_release, register_cache_size): New.
13730 (register_size): Add target_desc parameter, and use it.
13731 (register_data, supply_register, supply_register_zeroed)
13732 (supply_regblock, supply_register_by_name, collect_register)
13733 (collect_register_as_string, collect_register_by_name): Adjust.
13734 * regcache.h (struct target_desc): Forward declare.
13735 (struct regcache) <tdesc>: New field.
13736 (init_register_cache, new_register_cache): Add target_desc
13738 (regcache_invalidate_thread): Declare.
13739 (regcache_invalidate_one): Delete declaration.
13740 (regcache_release): Declare.
13741 (find_register_by_number, register_cache_size, register_size)
13742 (find_regno): Add target_desc parameter.
13743 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
13745 * remote-utils.c: Include tdesc.h.
13746 (outreg, prepare_resume_reply): Adjust.
13747 * server.c: Include tdesc.h.
13748 (gdbserver_xmltarget): Delete declaration.
13749 (get_features_xml, process_serial_event): Adjust.
13750 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
13752 (struct process_info) <tdesc>: New field.
13753 (ipa_tdesc): Declare.
13754 * tdesc.c: New file.
13755 * tdesc.h: New file.
13756 * tracepoint.c: Include tdesc.h.
13757 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
13758 (get_context_regcache): Adjust to pass ipa_tdesc down.
13759 (do_action_at_tracepoint): Adjust to get the register cache size
13760 from the context regcache's description.
13761 (traceframe_walk_blocks): Adjust to get the register cache size
13762 from the current trace frame's description.
13763 (traceframe_get_pc): Adjust to get current trace frame's
13764 description and pass it down.
13765 (gdb_collect): Adjust to get the register cache size from the
13767 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
13768 (gdbserver_xmltarget): Delete.
13769 (initialize_low_tracepoint): Set the ipa's target description.
13770 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
13771 (initialize_low_tracepoint): Set the ipa's target description.
13772 * linux-x86-low.c: Include tdesc.h.
13773 [__x86_64__] (is_64bit_tdesc): New.
13774 (ps_get_thread_area, x86_get_thread_area): Use it.
13775 (i386_cannot_store_register): Rename to ...
13776 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
13777 (i386_cannot_fetch_register): Rename to ...
13778 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
13779 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
13781 (target_regsets): Rename to ...
13782 (x86_regsets): ... this.
13783 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
13785 (x86_siginfo_fixup): Use is_64bit_tdesc.
13786 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
13787 (tdesc_x32_avx_linux, tdesc_x32_linux)
13788 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
13790 (x86_linux_update_xmltarget): Delete.
13791 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
13792 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
13793 (AMD64_LINUX_USER64_CS): New.
13794 (x86_linux_read_description): New, based on
13795 x86_linux_update_xmltarget.
13796 (same_process_callback): New.
13797 (x86_arch_setup_process_callback): New.
13798 (x86_linux_update_xmltarget): New.
13799 (x86_regsets_info): New.
13800 (amd64_linux_regs_info): New.
13801 (i386_linux_usrregs_info): New.
13802 (i386_linux_regs_info): New.
13803 (x86_linux_regs_info): New.
13804 (x86_arch_setup): Reimplement.
13805 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
13806 (x86_emit_ops): Ditto.
13807 (the_low_target): Adjust. Install x86_linux_regs_info,
13808 x86_cannot_fetch_register, and x86_cannot_store_register.
13809 (initialize_low_arch): New.
13810 * linux-ia64-low.c (tdesc_ia64): Declare.
13811 (ia64_fetch_register): Adjust.
13812 (ia64_usrregs_info, regs_info): New globals.
13813 (ia64_regs_info): New function.
13814 (the_low_target): Adjust.
13815 (initialize_low_arch): New function.
13816 * linux-sparc-low.c (tdesc_sparc64): Declare.
13817 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
13819 (sparc_arch_setup): New function.
13820 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
13821 (the_low_target): Adjust.
13822 (initialize_low_arch): New function.
13823 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
13824 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
13825 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
13826 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
13827 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
13828 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
13829 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
13830 (tdesc_powerpc_isa205_vsx64l): Declare.
13831 (ppc_cannot_store_register, ppc_collect_ptrace_register)
13832 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
13833 (ppc_set_pc, ppc_get_hwcap): Adjust.
13834 (ppc_usrregs_info): Forward declare.
13835 (!__powerpc64__) ppc_regmap_adjusted: New global.
13836 (ppc_arch_setup): Adjust to the current process'es target
13838 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
13839 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
13840 (ppc_store_evrregset): Adjust.
13841 (target_regsets): Rename to ...
13842 (ppc_regsets): ... this, and make static.
13843 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
13844 (ppc_regs_info): New function.
13845 (the_low_target): Adjust.
13846 (initialize_low_arch): New function.
13847 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
13848 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
13849 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
13850 (tdesc_s390x_linux64v2): Declare.
13851 (s390_collect_ptrace_register, s390_supply_ptrace_register)
13852 (s390_fill_gregset, s390_store_last_break): Adjust.
13853 (target_regsets): Rename to ...
13854 (s390_regsets): ... this, and make static.
13855 (s390_get_pc, s390_set_pc): Adjust.
13856 (s390_get_hwcap): New target_desc parameter, and use it.
13857 [__s390x__] (have_hwcap_s390_high_gprs): New global.
13858 (s390_arch_setup): Adjust to set the current process'es target
13859 description. Don't adjust the regmap.
13860 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
13861 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
13862 (regs_info_3264): New globals.
13863 (s390_regs_info): New function.
13864 (the_low_target): Adjust.
13865 (initialize_low_arch): New function.
13866 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
13867 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
13868 [__mips64] (init_registers_mips_linux)
13869 (init_registers_mips_dsp_linux): Delete defines.
13870 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
13871 (have_dsp): New global.
13872 (mips_read_description): New, based on mips_arch_setup.
13873 (mips_arch_setup): Reimplement.
13874 (get_usrregs_info): New function.
13875 (mips_cannot_fetch_register, mips_cannot_store_register)
13876 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
13877 (mips_fill_fpregset, mips_store_fpregset): Adjust.
13878 (target_regsets): Rename to ...
13879 (mips_regsets): ... this, and make static.
13880 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
13881 (dsp_regs_info, regs_info): New globals.
13882 (mips_regs_info): New function.
13883 (the_low_target): Adjust.
13884 (initialize_low_arch): New function.
13885 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
13886 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
13888 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
13889 (arm_read_description): New, with bits factored from
13891 (arm_arch_setup): Reimplement.
13892 (target_regsets): Rename to ...
13893 (arm_regsets): ... this, and make static.
13894 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
13895 (arm_regs_info): New function.
13896 (the_low_target): Adjust.
13897 (initialize_low_arch): New function.
13898 * linux-m68k-low.c (tdesc_m68k): Declare.
13899 (target_regsets): Rename to ...
13900 (m68k_regsets): ... this, and make static.
13901 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
13902 (m68k_regs_info): New function.
13903 (m68k_arch_setup): New function.
13904 (the_low_target): Adjust.
13905 (initialize_low_arch): New function.
13906 * linux-sh-low.c (tdesc_sharch): Declare.
13907 (target_regsets): Rename to ...
13908 (sh_regsets): ... this, and make static.
13909 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
13910 (sh_regs_info, sh_arch_setup): New functions.
13911 (the_low_target): Adjust.
13912 (initialize_low_arch): New function.
13913 * linux-bfin-low.c (tdesc_bfin): Declare.
13914 (bfin_arch_setup): New function.
13915 (bfin_usrregs_info, regs_info): New globals.
13916 (bfin_regs_info): New function.
13917 (the_low_target): Adjust.
13918 (initialize_low_arch): New function.
13919 * linux-cris-low.c (tdesc_cris): Declare.
13920 (cris_arch_setup): New function.
13921 (cris_usrregs_info, regs_info): New globals.
13922 (cris_regs_info): New function.
13923 (the_low_target): Adjust.
13924 (initialize_low_arch): New function.
13925 * linux-cris-low.c (tdesc_crisv32): Declare.
13926 (cris_arch_setup): New function.
13927 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
13928 (cris_regs_info): New function.
13929 (the_low_target): Adjust.
13930 (initialize_low_arch): New function.
13931 * linux-m32r-low.c (tdesc_m32r): Declare.
13932 (m32r_arch_setup): New function.
13933 (m32r_usrregs_info, regs_info): New globals.
13934 (m32r_regs_info): Adjust.
13935 (initialize_low_arch): New function.
13936 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
13937 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
13938 (tic6x_usrregs_info): Forward declare.
13939 (tic6x_read_description): New function, based on ...
13940 (tic6x_arch_setup): ... this. Reimplement.
13941 (target_regsets): Rename to ...
13942 (tic6x_regsets): ... this, and make static.
13943 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
13944 (tic6x_regs_info): New function.
13945 (the_low_target): Adjust.
13946 (initialize_low_arch): New function.
13947 * linux-xtensa-low.c (tdesc_xtensa): Declare.
13948 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
13949 (target_regsets): Rename to ...
13950 (xtensa_regsets): ... this, and make static.
13951 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
13953 (xtensa_arch_setup, xtensa_regs_info): New functions.
13954 (the_low_target): Adjust.
13955 (initialize_low_arch): New function.
13956 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
13957 (nios2_arch_setup): Set the current process'es tdesc.
13958 (target_regsets): Rename to ...
13959 (nios2_regsets): ... this.
13960 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
13961 (nios2_regs_info): New function.
13962 (the_low_target): Adjust.
13963 (initialize_low_arch): New function.
13964 * linux-aarch64-low.c (tdesc_aarch64): Declare.
13965 (aarch64_arch_setup): Set the current process'es tdesc.
13966 (target_regsets): Rename to ...
13967 (aarch64_regsets): ... this.
13968 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
13969 (aarch64_regs_info): New function.
13970 (the_low_target): Adjust.
13971 (initialize_low_arch): New function.
13972 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
13974 (target_regsets): Rename to ...
13975 (tile_regsets): ... this.
13976 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
13977 (tile_regs_info): New function.
13978 (tile_arch_setup): Set the current process'es tdesc.
13979 (the_low_target): Adjust.
13980 (initialize_low_arch): New function.
13981 * spu-low.c (tdesc_spu): Declare.
13982 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
13983 * win32-arm-low.c (tdesc_arm): Declare.
13984 (arm_arch_setup): New function.
13985 (the_low_target): Install arm_arch_setup instead of
13986 init_registers_arm.
13987 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
13988 (init_windows_x86): Rename to ...
13989 (i386_arch_setup): ... this. Set `win32_tdesc'.
13990 (the_low_target): Adjust.
13991 * win32-low.c (win32_tdesc): New global.
13992 (child_add_thread): Don't create the thread cache here.
13993 (do_initial_child_stuff): Set the new process'es tdesc.
13994 * win32-low.h (struct target_desc): Forward declare.
13995 (win32_tdesc): Declare.
13996 * lynx-i386-low.c (tdesc_i386): Declare global.
13997 (lynx_i386_arch_setup): Set `lynx_tdesc'.
13998 * lynx-low.c (lynx_tdesc): New global.
13999 (lynx_add_process): Set the new process'es tdesc.
14000 * lynx-low.h (struct target_desc): Forward declare.
14001 (lynx_tdesc): Declare global.
14002 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
14003 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
14004 * nto-low.c (nto_tdesc): New global.
14005 (do_attach): Set the new process'es tdesc.
14006 * nto-low.h (struct target_desc): Forward declare.
14007 (nto_tdesc): Declare.
14008 * nto-x86-low.c (tdesc_i386): Declare.
14009 (nto_x86_arch_setup): Set `nto_tdesc'.
14011 2013-06-04 Gary Benson <gbenson@redhat.com>
14013 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
14014 to qSupported response when appropriate.
14015 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
14016 with nonzero-length annex.
14017 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
14018 arguments supplied in annex.
14020 2013-05-31 Doug Evans <dje@google.com>
14023 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
14024 64 bits in 64-cross-32 environment.
14026 2013-05-28 Pedro Alves <palves@redhat.com>
14028 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
14029 (aarch64-without-fpu.c): Delete rule.
14030 * configure.srv (aarch64*-*-linux*): Remove references to
14031 aarch64-without-fpu.o and aarch64-without-fpu.xml.
14032 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
14035 2013-05-24 Pedro Alves <palves@redhat.com>
14037 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
14038 instead of strchr/decode_address. Error if the range isn't split
14039 with a ','. Don't assume there's be a ':' in the action.
14041 2013-05-23 Yao Qi <yao@codesourcery.com>
14042 Pedro Alves <palves@redhat.com>
14044 * linux-low.c (lwp_in_step_range): New function.
14045 (linux_wait_1): If the thread was range stepping and stopped
14046 outside the stepping range, report the stop to GDB. Otherwise,
14047 continue stepping. Add range stepping debug output.
14048 (linux_set_resume_request): Copy the step range from the resume
14049 request to the lwp.
14050 (linux_supports_range_stepping): New.
14051 (linux_target_ops) <supports_range_stepping>: Set to
14052 linux_supports_range_stepping.
14053 * linux-low.h (struct linux_target_ops)
14054 <supports_range_stepping>: New field.
14055 (struct lwp_info) <step_range_start, step_range_end>: New fields.
14056 * linux-x86-low.c (x86_supports_range_stepping): New.
14057 (the_low_target) <supports_range_stepping>: Set to
14058 x86_supports_range_stepping.
14059 * server.c (handle_v_cont): Handle 'r' action.
14060 (handle_v_requests): Append ";r" if the target supports range
14062 * target.h (struct thread_resume) <step_range_start,
14063 step_range_end>: New fields.
14064 (struct target_ops) <supports_range_stepping>:
14066 (target_supports_range_stepping): New macro.
14068 2013-05-17 Joel Brobecker <brobecker@adacore.com>
14070 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
14071 confusion in comment.
14073 2013-05-17 Joel Brobecker <brobecker@adacore.com>
14075 * lynx-low.c (struct process_info_private): New type.
14076 (lynx_add_process): New function.
14077 (lynx_create_inferior, lynx_attach): Replace calls to
14078 add_process by calls to lynx_add_process.
14079 (lynx_resume): If PTID is null, then try using
14080 current_process()->private->last_wait_event_ptid.
14082 (lynx_clear_inferiors): Delete. The contents of that function
14083 has been inlined in lynx_mourn;
14084 (lynx_wait_1): Save the ptid in the process's private data.
14085 (lynx_mourn): Free the process' private data. Replace call
14086 to lynx_clear_inferiors by call to clear_inferiors.
14088 2013-05-17 Yao Qi <yao@codesourcery.com>
14090 * i386-low.c (i386_length_and_rw_bits): Move the comment to
14093 2013-05-16 Luis Machado <lgustavo@codesourcery.com>
14095 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
14096 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
14097 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
14098 PT_TEXT_END_ADDR guards. Update comments.
14099 (linux_target_op) <read_offsets>: Conditionally define to
14100 linux_read_offsets if the target is UCLIBC and if it defines
14101 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
14103 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
14104 Andrew Jenner <andrew@codesourcery.com>
14106 * Makefile.in (SFILES): Add linux-nios2-low.c.
14107 (clean): Add action to delete nios2-linux.c.
14108 (nios2-linux.c): New rule.
14109 * configure.srv: Add nios2*-*-linux*.
14110 * linux-nios2-low.c: New.
14112 2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
14114 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
14116 2013-04-25 Hui Zhu <hui@codesourcery.com>
14119 * ax.c (ax_printf): Add fflush.
14121 2013-04-22 Tom Tromey <tromey@redhat.com>
14123 * Makefile.in (SFILES): Add filestuff.c.
14124 (OBS): Add filestuff.o.
14125 (filestuff.o): New target.
14126 * config.in, configure: Rebuild.
14127 * configure.ac: Check for fdwalk, pipe2.
14129 2013-04-17 Pedro Alves <palves@redhat.com>
14131 * configure.ac (USE_THREAD_DB): Delete variable.
14132 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
14133 Don't AC_SUBST USE_THREAD_DB.
14134 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
14135 * config.in, configure: Regenerate.
14137 2013-04-16 Pedro Alves <palves@redhat.com>
14139 * linux-low.h (struct lwp_info) <thread_known>: Move under
14140 the USE_THREAD_DB #ifdef.
14142 2013-04-16 Pedro Alves <palves@redhat.com>
14144 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
14145 (linux-low.o): Delete rule.
14146 * linux-low.h: Always include "gdb_thread_db.h" instead of
14147 conditionally including thread_db.h.
14148 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
14151 2013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14153 * Makefile.in (install-only): Fix make install regression.
14155 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
14157 Convert man pages to texinfo, new gdbinit.5 texinfo page.
14158 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
14160 * gdbserver.1: Remove.
14162 2013-03-22 Pedro Alves <palves@redhat.com>
14164 * linux-low.c (handle_extended_wait): Don't call
14165 linux_enable_event_reporting.
14167 2013-03-15 Tony Theodore <tonyt@logyst.com>
14170 * Makefile.in (SHELL): Use @SHELL@.
14172 2013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
14174 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
14177 2013-03-13 Joel Brobecker <brobecker@adacore.com>
14179 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
14180 Remove extraneous NULL element.
14182 2013-03-13 Yao Qi <yao@codesourcery.com>
14184 * tracepoint.c (traceframe_read_tsv): Look for the last matched
14185 'V' block in trace frame.
14187 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14189 * target.h (struct target_ops): Add btrace ops.
14190 (target_supports_btrace): New macro.
14191 (target_enable_btrace): New macro.
14192 (target_disable_btrace): New macro.
14193 (target_read_btrace): New macro.
14194 * gdbthread.h (struct thread_info): Add btrace field.
14195 * server.c: Include btrace-common.h.
14196 (handle_btrace_general_set): New function.
14197 (handle_btrace_enable): New function.
14198 (handle_btrace_disable): New function.
14199 (handle_general_set): Call handle_btrace_general_set.
14200 (handle_qxfer_btrace): New function.
14201 (struct qxfer qxfer_packets[]): Add btrace entry.
14202 * inferiors.c (remove_thread): Disable btrace.
14203 * linux-low: Include linux-btrace.h.
14204 (linux_low_enable_btrace): New function.
14205 (linux_low_read_btrace): New function.
14206 (linux_target_ops): Add btrace ops.
14207 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
14208 Add srv_linux_btrace=yes.
14209 (x86_64-*-linux*): Add linux-btrace.o.
14210 Add srv_linux_btrace=yes.
14211 * configure.ac: Define HAVE_LINUX_BTRACE.
14212 * config.in: Regenerated.
14213 * configure: Regenerated.
14215 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14217 * server.c (handle_qxfer): Preserve error message if -3 is
14219 (qxfer): Document the -3 return value.
14221 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14223 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
14224 (linux_btrace_h): New variable.
14225 (linux-btrace.o): New rule.
14227 2013-03-08 Stan Shebs <stan@codesourcery.com>
14228 Hafiz Abid Qadeer <abidh@codesourcery.com>
14230 * tracepoint.c (trace_buffer_size): New global.
14231 (DEFAULT_TRACE_BUFFER_SIZE): New define.
14232 (init_trace_buffer): Change to one-argument function. Allocate
14233 trace buffer memory.
14234 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
14235 handle QTBuffer:size packet.
14236 (cmd_bigqtbuffer_size): New function.
14237 (initialize_tracepoint): Call init_trace_buffer with
14238 DEFAULT_TRACE_BUFFER_SIZE.
14239 * server.c (handle_query): Add QTBuffer:size in the
14242 2013-03-07 Yao Qi <yao@codesourcery.com>
14244 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
14245 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
14247 (cmd_qtsp): Adjust condition. Do post increment.
14248 Set cur_action and cur_step_action back to 0.
14250 2013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
14253 * linux-low.c (linux_write_memory): Return early success if LEN is
14256 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
14258 * configure.srv: Add x86_64-*-cygwin* as target.
14260 2013-02-28 Tom Tromey <tromey@redhat.com>
14262 * configure.ac: Invoke AC_SYS_LARGEFILE.
14263 * configure, config.in: Rebuild.
14265 2013-02-28 Corinna Vinschen <vinschen@redhat.com>
14267 * win32-low.c: Throughout, fix format strings and casts of
14268 printf-like functions to avoid type related warnings on all
14270 (get_child_debug_event): Print dwDebugEventCode as hex since
14271 that's how it's usually documented.
14273 2013-02-28 Yao Qi <yao@codesourcery.com>
14275 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
14278 2013-02-27 Jiong Wang <jiwang@tilera.com>
14280 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
14281 (reg-tilegx32.c): New rule.
14282 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
14283 * linux-tile-low.c (tile_arch_setup): New function. Invoke
14284 different register info initializer according to elf class.
14285 (init_registers_tilgx32): New function. The tilegx32 register info
14287 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
14288 (tile_store_gregset): Likewise.
14290 2013-02-27 Yao Qi <yao@codesourcery.com>
14292 * server.c (process_point_options): Print debug message when
14293 debug_threads is true.
14295 2013-02-26 Yao Qi <yao@codesourcery.com>
14297 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
14299 2013-02-19 Pedro Alves <palves@redhat.com>
14300 Kai Tietz <ktietz@redhat.com>
14304 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
14305 instead of strtoul to extract address from packet.
14306 (process_serial_event) <'z'>: Likewise.
14308 2013-02-18 Yao Qi <yao@codesourcery.com>
14310 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
14312 2013-02-14 Pedro Alves <palves@redhat.com>
14316 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
14317 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
14319 2013-02-14 Pedro Alves <palves@redhat.com>
14321 * tracepoint.c (cmd_qtdpsrc): Use savestring.
14323 2013-02-14 Pedro Alves <palves@redhat.com>
14325 * tracepoint.c (save_string): Delete.
14326 (add_tracepoint_action): Use savestring instead of save_string.
14328 2013-02-12 Pedro Alves <palves@redhat.com>
14330 * linux-xtensa-low.c: Ditto.
14331 * xtensa-xtregs.c: Ditto.
14333 2013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14335 * thread-db.c (thread_db_get_tls_address): NULL pointer check
14338 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14340 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
14341 aarch64_num_wp_regs and aarch64_num_bp_regs to
14342 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
14344 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14346 * linux-aarch64-low.c (ps_get_thread_area): Replace
14347 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
14349 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
14350 Marcus Shawcroft <marcus.shawcroft@arm.com>
14351 Nigel Stephens <nigel.stephens@arm.com>
14352 Yufeng Zhang <yufeng.zhang@arm.com>
14354 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
14355 (aarch64.c, aarch64-without-fpu.c): New targets.
14356 * configure.srv (aarch64*-*-linux*): New.
14357 * linux-aarch64-low.c: New file.
14359 2013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
14361 * linux-low.c (handle_extended_wait, linux_create_inferior)
14362 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
14363 (dequeue_one_deferred_signal, linux_resume_one_thread)
14364 (fetch_register, linux_write_memory, linux_enable_event_reporting)
14365 (linux_tracefork_grandchild, linux_test_for_tracefork)
14366 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
14367 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
14368 where the argument is 0.
14370 2013-01-25 Yao Qi <yao@codesourcery.com>
14372 * event-loop.c: Include "queue.h".
14373 (gdb_event_p): New typedef.
14374 (struct gdb_event) <next_event>: Remove.
14375 (event_queue): Change to QUEUE(gdb_event_p).
14376 (async_queue_event): Remove.
14377 (gdb_event_xfree): New.
14378 (initialize_event_loop): New.
14379 (process_event): Use API from QUEUE.
14380 (wait_for_event): Likewise.
14381 * server.c (main): Call initialize_event_loop.
14382 * server.h (initialize_event_loop): Declare.
14384 2013-01-18 Yao Qi <yao@codesourcery.com>
14386 * ax.h (struct eval_agent_expr_context): New.
14387 (gdb_eval_agent_expr): Update declaration.
14388 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
14389 TFRAME. Add new argument CTX.
14390 * server.h (struct eval_agent_expr_context): Declare.
14391 (agent_mem_read, agent_tsv_read): Update declaration.
14392 (agent_mem_read_string): Likewise.
14393 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
14394 (add_traceframe_block): Add new argument TPOINT.
14395 Increase TPOINT->traceframe_usage.
14396 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
14397 eval_tracepoint_agent_expr.
14398 (condition_true_at_tracepoint): Likewise.
14399 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
14400 (agent_mem_read_string, agent_tsv_read): Likewise.
14402 2013-01-16 Yao Qi <yao@codesourcery.com>
14404 * linux-low.c (linux_resume_one_lwp): Don't check
14405 'lwp->bp_reinsert != 0'.
14407 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14408 Pedro Alves <palves@redhat.com>
14410 * lynx-low.c (ptrace_request_to_str): Define a temporary
14411 macro and use it to simplify this function's implementation.
14413 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14415 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
14418 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14420 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
14422 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14424 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
14426 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14428 * lynx-low.c (lynx_resume): Use the resume_info parameter
14429 to determine the ptid for the lynx_ptrace call, unless
14430 it is equal to minus_one_ptid, in which case we use the
14431 ptid of the current_inferior.
14432 (lynx_wait_1): After having received a thread create/exit
14433 event, resume the inferior's execution using the signaling
14434 thread's ptid, rather than the old ptid.
14436 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14438 * lynx-low.c (lynx_resume): Delete variable ret.
14440 2013-01-01 Joel Brobecker <brobecker@adacore.com>
14442 * gdbreplay.c (gdbreplay_version): Update copyright year.
14443 * server.c (gdbserver_version): Likewise.
14445 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14447 * lynx-low.c (lynx_wait_1): Add debug trace before adding
14450 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14452 * lynx-low.c (ptrace_request_to_str): Add handling for
14453 PTRACE_GETTRACESIG.
14455 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14457 * lynx-low.c (lynx_attach): Delete variable new_process.
14459 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14461 * lynx-low.c (lynx_create_inferior): Delete variable
14464 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14466 * lynx-low.c (ptrace_request_to_str): Do not handle
14467 PTRACE_GETTHREADLIST if this macro does not exist.
14469 2012-12-15 Yao Qi <yao@codesourcery.com>
14471 * Makefile.in (OBS): Add notif.o.
14472 * notif.c, notif.h: New.
14473 * server.c: Include "notif.h".
14474 (struct vstop_notif) <next>: Remove.
14476 (queue_stop_reply): Update.
14477 (push_event, send_next_stop_reply): Remove.
14478 (discard_queued_stop_replies): Update.
14479 (notif_stop): New variable.
14480 (handle_v_stopped): Remove.
14481 (handle_v_requests): Don't call handle_v_stopped. Call
14482 handle_ack_notif instead.
14483 (queue_stop_reply_callback): Call notif_event_enque instead
14484 of queue_stop_reply.
14485 (handle_status): Don't call send_next_stop_reply, call
14486 notif_write_event instead.
14487 (kill_inferior_callback): Likewise.
14488 (detach_or_kill_inferior_callback): Likewise.
14489 (main): Call initialize_notif.
14490 (process_serial_event): Call QUEUE_is_empty.
14491 (handle_target_event): Call notif_push instead of push event.
14492 * server.h (push_event): Remove declaration.
14494 2012-12-10 Tom Tromey <tromey@redhat.com>
14496 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
14497 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
14500 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
14501 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
14502 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
14503 (amd64-linux-ipa.o, ax.o): Rewrite.
14504 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
14505 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
14506 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
14507 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
14508 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
14509 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
14510 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
14511 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
14512 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
14513 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
14514 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
14515 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
14516 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
14517 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
14518 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
14519 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
14520 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
14521 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
14522 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
14523 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
14524 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
14525 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
14526 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
14527 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
14528 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
14529 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
14530 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
14531 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
14532 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
14533 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
14534 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
14535 (reg-tilegx.o): Remove.
14536 (all_object_files): New macro.
14537 Include .deps files.
14538 * aclocal.m4, configure: Rebuild.
14539 * acinclude.m4: Include depstand.m4, lead-dot.m4.
14540 * configure.ac: Invoke ZW_CREATE_DEPDIR,
14541 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
14543 2012-12-05 Tom Tromey <tromey@redhat.com>
14546 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
14548 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
14550 * configure.ac: Check for linux/perf_event.h.
14551 * config.in: Regenerated.
14552 * configure: Regenerated.
14554 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
14556 * hostio.c (handle_readlink): Decrease buffer size
14557 parameter passed to readlink by one byte.
14559 2012-11-26 Yao Qi <yao@codesourcery.com>
14561 * configure.ac (build_warnings): Append '-Wempty-body'.
14562 * configure: Regenerated.
14563 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
14566 2012-11-15 Pierre Muller <muller@sourceware.org>
14568 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
14569 * config.in: Regenerate.
14570 * configure: Regenerate.
14571 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
14572 Use "gdb_wait.h" header instead of <sys/wait.h> header.
14573 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14574 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
14576 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
14577 instead of <sys/wait.h> header.
14578 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14580 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
14582 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
14583 (various make rules): Remove -DGDBSERVER
14585 2012-11-09 Yao Qi <yao@codesourcery.com>
14587 * spu-low.c (current_ptid): Move it to ..
14588 * gdbthread.h: ... here. New.
14589 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
14590 * server.c (myresume, process_serial_event): Likewise.
14591 * thread-db.c (thread_db_find_new_threads): Likewise.
14592 * tracepoint.c (run_inferior_command): Likewise.
14594 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
14596 * server.c (handle_search_memory_1): Include access length in
14599 2012-09-05 Michael Brandt <michael.brandt@axis.com>
14601 * linux-crisv32-low.c: Fix compile errors.
14603 2012-09-04 Yao Qi <yao@codesourcery.com>
14605 * tracepoint.c (cmd_qtsv): Adjust debug message.
14606 Don't check CUR_TPOINT.
14608 2012-08-28 Yao Qi <yao@codesourcery.com>
14610 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
14611 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
14612 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
14613 Remove declarations of xmalloc, xreallloc, xstrdup and
14615 * Makefile.in (libiberty_h): New.
14616 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
14617 (linux-bfin-low.o): Append dependency 'libiberty.h'.
14619 2012-08-23 Yao Qi <yao@codesourcery.com>
14621 * server.h: Remove declaration of 'xsnprintf'.
14623 2012-08-22 Keith Seitz <keiths@redhat.com>
14625 * server.h: Include build-gnulib-gbserver/config.h.
14626 * gdbreplay.c: Likewise.
14628 2012-08-08 Doug Evans <dje@google.com>
14630 * Makefile.in (SFILES): Add gdb_vecs.c.
14631 (OBS): Add gdb_vecs.o.
14632 (gdb_vecs_h, host_defs_h): New variables.
14633 (thread-db.o): Add $(gdb_vecs_h) dependency.
14634 (gdb_vecs.o): New rule.
14635 * thread-db.c: #include "gdb_vecs.h".
14636 (thread_db_load_search): Use a vector to iterate over path elements.
14637 Handle text appearing after "$pdir".
14639 * configure.ac: Add check for strstr.
14640 * config.in: Regenerate.
14641 * configure: Regenerate.
14643 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
14645 * hostio.c (handle_pread): If pread fails, fall back to attempting
14647 (handle_pwrite): Likewise for pwrite.
14649 2012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
14651 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
14652 between unsupported TYPE and unimplementable ADDR/LEN combination.
14653 (arm_insert_point): Act on new return value.
14655 2012-07-31 Pedro Alves <palves@redhat.com>
14657 * server.c (process_point_options): Only skip tokens if we find
14658 one that is unrecognized. Don't treat 'X' specially while
14659 skipping unrecognized tokens.
14661 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
14663 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
14664 to 4-byte-align HW breakpoint addresses for Thumb.
14666 2012-07-27 Yao Qi <yao@codesourcery.com>
14670 * server.h: Declare gdb_agent_about_to_close.
14671 * target.c (kill_inferior): Include "agent.h".
14672 New. Send command 'kill'.
14673 * target.h (kill_inferior): Removed macro.
14674 * tracepoint.c (gdb_agent_about_to_close): New.
14675 (gdb_agent_helper_thread): Handle command 'close'.
14676 Wait endlessly until the inferior stops.
14677 Install gdb_agent_remove_socket to atexit hook.
14678 (agent_socket_name): New static variable.
14679 (gdb_agent_socket_init): Replace local variable 'name' with
14680 'agent_socket_name'.
14681 (gdb_agent_remove_socket): New.
14683 2012-07-27 Yao Qi <yao@codesourcery.com>
14685 * server.c (process_point_options): Stop at 'X' when parsing.
14687 2012-07-19 Michael Eager <eager@eagercon.com>
14689 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
14691 * linux-x86-low.c (x86_insert_point, x86_remove_point):
14692 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
14693 hardware breakpoint.
14695 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14697 * gdbserver/linux-low.c (initialize_low): Call
14698 linux_ptrace_init_warnings.
14700 2012-07-02 Doug Evans <dje@google.com>
14702 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
14705 2012-07-02 Stan Shebs <stan@codesourcery.com>
14707 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
14708 (ax.o): Add it to build rule.
14710 (OBS): Add format.o.
14711 (IPA_OBS): Add format.o.
14712 * server.c (handle_query): Claim support for breakpoint commands.
14713 (process_point_options): Add command case.
14714 (process_serial_event): Leave running if there are printfs in
14716 * mem-break.h (any_persistent_commands): Declare.
14717 (add_breakpoint_commands): Declare.
14718 (gdb_no_commands_at_breakpoint): Declare.
14719 (run_breakpoint_commands): Declare.
14720 * mem-break.c (struct point_command_list): New struct.
14721 (struct breakpoint): New field command_list.
14722 (any_persistent_commands): New function.
14723 (add_commands_to_breakpoint): New function.
14724 (add_breakpoint_commands): New function.
14725 (gdb_no_commands_at_breakpoint): New function.
14726 (run_breakpoint_commands): New function.
14727 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
14729 * ax.c: Include format.h.
14730 (ax_printf): New function.
14731 (gdb_eval_agent_expr): Add printf opcode.
14733 2012-06-13 Yao Qi <yao@codesourcery.com>
14735 * server.c (start_inferior): Remove duplicated writes to fields
14736 'last_resume_kind' and 'last_status' of 'current_inferior'.
14738 2012-06-12 Yao Qi <yao@codesourcery.com>
14739 Pedro Alves <palves@redhat.com>
14741 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
14743 * server.c (handle_v_cont): Extend comment.
14745 2012-06-11 Yao Qi <yao@codesourcery.com>
14747 * linux-low.c (linux_attach): Add 'static'.
14749 2012-06-06 Yao Qi <yao@codesourcery.com>
14751 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
14753 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
14755 Fix gcc -flto compilation warning.
14756 * server.c (main): Make variable multi_mode and attach volatile.
14758 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14760 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
14761 if the platform doesn't know about it.
14763 2012-05-30 Jeff Kenton <jkenton@tilera.com>
14765 * Makefile.in (SFILES): Add linux-tile-low.c.
14766 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
14767 * configure.srv: Handle tilegx-*-linux*.
14768 * linux-tile-low.c: New file.
14770 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
14772 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
14774 2012-05-24 Pedro Alves <palves@redhat.com>
14778 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
14780 2012-05-24 Pedro Alves <palves@redhat.com>
14784 Replace target_signal with gdb_signal throughout.
14786 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
14788 * linux-low.c (linux_store_registers): Avoid the copying sequence
14789 when no data has been retrieved by ptrace.
14791 2012-05-22 Will Deacon <will.deacon@arm.com>
14793 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
14794 Include asm/ptrace.h.
14795 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
14798 2012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
14800 * linux-low.c (linux_store_registers): Don't re-retrieve data
14801 with ptrace that has already been obtained from /proc. Always
14802 copy any data retrieved with ptrace to the buffer supplied.
14804 2012-05-11 Yao Qi <yao@codesourcery.com>
14805 Pedro Alves <palves@redhat.com>
14807 * linux-low.c (enum stopping_threads_kind): New.
14808 (stopping_threads): Change type to `enum stopping_threads_kind'.
14809 (handle_extended_wait): If stopping and suspending threads, leave
14810 the new_lwp suspended too.
14811 (linux_wait_for_event): Adjust.
14812 (stop_all_lwps): Set `stopping_threads' to
14813 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
14814 whether we're suspending threads or just stopping them. Assert no
14817 2012-04-29 Yao Qi <yao@codesourcery.com>
14819 * server.h: Move some code to ...
14820 * gdbthread.h: ... here. New.
14821 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
14822 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
14823 (nto-low.o, win32-low.o): Likewise.
14824 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
14825 * regcache.c, remote-utils.c, server.c: Likewise.
14826 * target.c, tracepoint.c, win32-low.c: Likewise.
14828 2012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14830 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
14831 (PTRACE_ARG4_TYPE): Likewise.
14832 (PTRACE_XFER_TYPE): Likewise.
14833 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
14834 ptrace to PTRACE_ARG3_TYPE.
14835 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
14836 (PTRACE_ARG4_TYPE): Likewise.
14837 (PTRACE_XFER_TYPE): Likewise.
14838 (linux_detach_one_lwp): Cast fourth argument of
14839 ptrace to long then PTRACE_ARG4_TYPE.
14840 (regsets_fetch_inferior_registers): Cast third argument of
14841 ptrace to long then PTRACE_ARG3_TYPE.
14842 (regsets_store_inferior_registers): Likewise.
14844 2012-04-20 Pedro Alves <palves@redhat.com>
14846 * configure: Regenerate.
14848 2012-04-19 Pedro Alves <palves@redhat.com>
14850 * Makefile.in (GNULIB_BUILDDIR): New.
14851 (LIBGNU, INCGNU, GNULIB_H): Adjust.
14852 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
14853 (all, install-only, uninstall, clean-info, all-lib, clean): No
14854 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
14855 (maintainer-clean realclean distclean): Use subdir_do.
14857 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
14858 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
14859 * acinclude.m4: Include acx_configure_dir.m4.
14860 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
14861 calls. Call AC_PROG_RANLIB. Configure gnulib using
14864 (GNULIB_STDINT_H): Adjust.
14865 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
14866 * gdbreplay.c: Include build-gnulib/config.h.
14867 * server.h: Likewise.
14868 * aclocal.m4: Regenerate.
14869 * config.in: Regenerate.
14870 * configure: Regenerate.
14872 2012-04-19 Pedro Alves <palves@redhat.com>
14874 * Makefile.in (LIBGNU, INCGNU): Adjust.
14875 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
14876 (all, install-only, uninstall, clean-info, all-lib, clean)
14877 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
14878 * configure.ac: Adjust AC_OUTPUT output.
14879 * aclocal.m4: Regenerate.
14880 * configure: Regenerate.
14882 2012-04-19 Pedro Alves <palves@redhat.com>
14884 * Makefile.in (generated_files): New.
14885 (server_h): Remove the explicit dependency on config.h, and depend
14886 on $generated_files.
14888 2012-04-19 Pedro Alves <palves@redhat.com>
14890 * Makefile.in (INCGNU): Add -Ignulib.
14892 2012-04-19 Pedro Alves <palves@redhat.com>
14894 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
14895 (INCGNU): ... this, and spell out -I here.
14896 (GNULIB_LIB): Rename to ...
14897 (LIBGNU): ... this.
14898 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
14900 2012-04-19 Pedro Alves <palves@redhat.com>
14902 * config.in: Regenerate.
14904 2012-04-19 Pedro Alves <palves@redhat.com>
14906 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
14907 * server.h (memmem): Remove declaration.
14908 * config.in: Regenerate.
14909 * configure: Regenerate.
14911 2012-04-19 Yao Qi <yao@codesourcery.com>
14913 * Makefile.in (SFILES): Add common/vec.c.
14917 2012-04-19 Yao Qi <yao@codesourcery.com>
14919 * remote-utils.c (prepare_resume_reply): Replace with macro
14920 target_core_of_thread.
14921 * server.c (handle_qxfer_threads_proper): Likewise.
14922 * target.h (traget_core_of_thread): New macro.
14924 2012-04-18 Pedro Alves <palves@redhat.com>
14926 * aclocal.m4: Regenerate.
14927 * configure: Regenerate.
14929 2012-04-16 Yao Qi <yao@codesourcery.com>
14931 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
14932 duplicated on address.
14934 2012-04-16 Yao Qi <yao@codesourcery.com>
14936 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
14937 (struct tracepoint_action_ops) <send>: New field.
14938 (m_tracepoint_action_send, r_tracepoint_action_send): New.
14939 (agent_expr_send, x_tracepoint_action_send): New.
14940 (l_tracepoint_action_send): New.
14941 (cmd_qtdp): Download and install tracepoint
14942 according to `use_agent'.
14943 (run_inferior_command): Add one more parameter `len'.
14945 (tracepoint_send_agent): New.
14946 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
14948 2012-04-16 Yao Qi <yao@codesourcery.com>
14950 * tracepoint.c (download_tracepoints): Moved to ...
14951 (cmd_qtstart): ... here.
14953 2012-04-14 Yao Qi <yao@codesourcery.com>
14955 * tracepoint.c: Include inttypes.h.
14956 (struct collect_memory_action): Use sized types.
14957 (struct tracepoint): Likewise.
14958 (cmd_qtdp, stop_tracing): Update print specifiers.
14959 (cmd_qtp, response_tracepoint): Likewise.
14960 (collect_data_at_tracepoint): Likewise.
14961 (collect_data_at_step): Likewise.
14963 2012-04-14 Yao Qi <yao@codesourcery.com>
14965 Import gnulib module inttypes.
14966 * aclocal.m4, config.in, configure: Regenerated.
14968 2012-04-14 Yao Qi <yao@codesourcery.com>
14970 * Makefile.in (maintainer-clean, realclean, distclean): Remove
14971 Makefile and config.status at last.
14973 2012-04-13 Yao Qi <yao@codesourcery.com>
14975 * tracepoint.c: Include stdint.h unconditionally.
14977 2012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14979 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
14980 on BFD_HAVE_SYS_PROCFS_TYPE.
14981 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
14982 * configure: Regenerate.
14983 * config.in: Likewise.
14985 2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
14987 * Makefile.in (clean): Also remove x32.c x32-linux.c
14988 x32-avx.c x32-avx-linux.c.
14989 (x32.o): New target.
14991 (x32-linux.o): Likewise.
14992 (x32-linux.c): Likewise.
14993 (x32-avx.o): Likewise.
14994 (x32-avx.c): Likewise.
14995 (x32-avx-linux.o): Likewise.
14996 (x32-avx-linux.c): Likewise.
14998 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
14999 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
15000 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
15001 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
15002 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
15003 i386/x32-avx-linux.xml.
15005 * linux-x86-low.c (init_registers_x32_linux): New prototype.
15006 (init_registers_x32_avx_linux): Likwise.
15007 (x86_linux_update_xmltarget): Call init_registers_x32_linux
15008 or init_registers_x32_avx_linux if linux_is_elf64 is false.
15010 2012-04-13 Pedro Alves <palves@redhat.com>
15012 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
15013 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
15014 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
15015 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
15018 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15020 * linux-x86-low.c (compat_x32_clock_t): New.
15021 (compat_x32_siginfo_t): Likewise.
15022 (compat_x32_siginfo_from_siginfo): Likewise.
15023 (siginfo_from_compat_x32_siginfo): Likewise.
15024 (linux_is_elf64): Likewise.
15025 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
15026 and siginfo_from_compat_x32_siginfo for x32.
15027 (x86_arch_setup): Set linux_is_elf64.
15029 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15032 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
15034 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
15035 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
15036 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
15037 compatible with process.
15039 2012-04-12 Yao Qi <yao@codesourcery.com>
15041 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
15042 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
15043 (install-only, install-info, clean): Handle sub dir gnulib.
15044 (all-lib, am--refresh): New targets.
15045 (memmem.o): Remove target.
15046 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
15047 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
15048 (AC_REPLACE_FUNCS): Remove memmem.
15049 Invoke gl_INIT and AM_INIT_AUTOMAKE.
15050 (AC_OUTPUT): Generate Makefile in gnulib/.
15051 * aclocal.m4, config.in, configure: Regenerated.
15053 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
15055 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
15057 2012-04-05 Pedro Alves <palves@redhat.com>
15059 -Werror=strict-aliasing
15061 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
15064 2012-04-04 Pedro Alves <palves@redhat.com>
15066 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
15067 (sparc_store_gregset_from_stack, sparc_store_gregset)
15068 (sparc_breakpoint_at): Fix formatting.
15070 2012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15072 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
15074 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
15075 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
15076 * config.in: Regenerate.
15077 * configure: Likewise.
15079 2012-03-29 Pedro Alves <palves@redhat.com>
15081 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
15082 Correct ptrace arguments.
15084 2012-03-28 Pedro Alves <palves@redhat.com>
15086 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
15087 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
15088 (IA64_FR1_REGNUM): New defines.
15089 (ia64_fetch_register): New.
15090 (the_low_target): Install it.
15091 * linux-low.h (struct linux_target_ops) <fetch_register>: New
15093 * linux-low.c (linux_fetch_registers): Try the
15094 the_low_target.fetch_register hook first.
15096 * linux-arm-low.c (the_low_target): Adjust.
15097 * linux-bfin-low.c (the_low_target): Adjust.
15098 * linux-cris-low.c (the_low_target): Adjust.
15099 * linux-crisv32-low.c (the_low_target): Adjust.
15100 * linux-m32r-low.c (the_low_target): Adjust.
15101 * linux-m68k-low.c (the_low_target): Adjust.
15102 * linux-mips-low.c (the_low_target): Adjust.
15103 * linux-ppc-low.c (the_low_target): Adjust.
15104 * linux-s390-low.c (the_low_target): Adjust.
15105 * linux-sh-low.c (the_low_target): Adjust.
15106 * linux-sparc-low.c (the_low_target): Adjust.
15107 * linux-tic6x-low.c (the_low_target): Adjust.
15108 * linux-x86-low.c (the_low_target): Adjust.
15109 * linux-xtensa-low.c (the_low_target): Adjust.
15111 2012-03-26 Pedro Alves <palves@redhat.com>
15113 * server.c (handle_qxfer_libraries): Don't bail early if
15114 the_target->qxfer_libraries_svr4 is not NULL.
15116 2012-03-26 Pedro Alves <palves@redhat.com>
15118 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
15120 2012-03-23 Pedro Alves <palves@redhat.com>
15122 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
15123 "library-list-svr4" element's start tag when the the DSO list is
15126 2012-03-23 Pedro Alves <palves@redhat.com>
15128 * linux-low.c (read_one_ptr): Read the inferior's pointer through
15129 a variable whose type size is the same as the inferior's pointer
15132 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
15134 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
15136 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
15137 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
15138 * linux-low.h: Include <signal.h>.
15139 (struct siginfo): Remove forward declaration.
15140 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
15143 2012-03-21 Mike Frysinger <vapier@gentoo.org>
15145 * .gitignore: Ignore more files.
15147 2012-03-19 Pedro Alves <palves@redhat.com>
15148 Jan Kratochvil <jan.kratochvil@redhat.com>
15150 * server.c (cont_thread, general_thread): Add describing comments.
15151 (start_inferior): Clear `cont_thread'.
15152 (handle_v_cont): Don't set `cont_thread' if resuming all threads
15155 2012-03-15 Yao Qi <yao@codesourcery.com>
15157 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
15159 (cmd_qtdp): ... here.
15161 2012-03-15 Yao Qi <yao@codesourcery.com>
15163 * tracepoint.c (struct tracepoint_action_ops): New.
15164 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
15165 (m_tracepoint_action_download): New.
15166 (r_tracepoint_action_download): New.
15167 (x_tracepoint_action_download): New.
15168 (l_tracepoint_action_download): New.
15169 (add_tracepoint_action): Install `action->ops' according type.
15170 (download_tracepoint_1): Move code `download' function pointer
15171 of various tracepoint_action_ops.
15173 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15175 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
15176 linux_ptrace_attach_warnings.
15178 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15180 * Makefile.in (linux-ptrace.o): New.
15181 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
15182 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
15183 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
15184 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
15185 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
15187 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
15189 2012-03-08 Yao Qi <yao@codesourcery.com>
15190 Pedro Alves <palves@redhat.com>
15192 Fix PR server/13392.
15193 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
15194 offset of JMP insn.
15195 * tracepoint.c (remove_tracepoint): New.
15196 (cmd_qtdp): Call remove_tracepoint when failed to install.
15198 2012-03-07 Pedro Alves <palves@redhat.com>
15200 * linux-low.c (get_detach_signal): New.
15201 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
15202 Pass on pending signals to PTRACE_DETACH. Check the result of the
15204 * server.c (program_signals, program_signals_p): New.
15205 (handle_general_set): Handle QProgramSignals.
15206 * server.h (program_signals, program_signals_p): Declare.
15208 2012-03-05 Pedro Alves <palves@redhat.com>
15209 Jan Kratochvil <jan.kratochvil@redhat.com>
15211 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
15214 2012-03-03 Yao Qi <yao@codesourcery.com>
15216 * tracepoint.c (tracepoint_look_up_symbols): Update call to
15217 agent_look_up_symbols.
15219 2012-03-03 Yao Qi <yao@codesourcery.com>
15221 * Makefile.in (linux-low.o): Keep dependence on agent.h.
15222 (linux-x86-low.o): Likewise.
15223 * server.h: Remove in_process_agent_loaded.
15224 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
15228 2012-03-03 Yao Qi <yao@codesourcery.com>
15230 * tracepoint.c (gdb_agent_capability): New global.
15231 (in_process_agent_loaded_ust): Renamed to
15232 `in_process_agent_supports_ust'.
15234 (in_process_agent_supports_ust): Call agent_capability_check.
15235 (clear_installed_tracepoints): Assert that agent supports
15238 2012-03-03 Yao Qi <yao@codesourcery.com>
15240 * linux-low.c (linux_supports_agent): New.
15241 (linux_target_ops): Initialize field `supports_agent' with
15242 linux_supports_agent.
15243 * target.h (struct target_ops) <supports_agent>: New.
15244 (target_supports_agent): New macro.
15245 * server.c (handle_general_set): Handle packet 'QAgent'.
15246 (handle_query): Send `QAgent+'.
15247 * Makefile.in (server.o): Depends on agent.h.
15249 2012-03-03 Yao Qi <yao@codesourcery.com>
15251 * Makefile.in (OBS): Add agent.o.
15252 Add new rule for agent.o.
15253 Track dependence of tracepoint.c on agent.h.
15254 * tracepoint.c (run_inferior_command_1):
15255 (run_inferior_command): Call agent_run_command.
15256 (gdb_ust_connect_sync_socket): Deleted. Move it to
15258 (resume_thread, stop_thread): Likewise.
15259 (gdb_ust_socket_init): Renamed to ...
15260 (gdb_agent_socket_init): ... New.
15261 (gdb_ust_thread): Renamed to ...
15262 (gdb_agent_helper_thread): ... New.
15263 (gdb_ust_init): Move some code to ...
15264 (gdb_agent_init): ... here. New.
15265 [HAVE_UST]: Call gdb_ust_init.
15266 (initialize_tracepoint_ftlib): Call gdb_agent_init.
15267 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
15268 * config.in, configure: Regenerated.
15270 2012-03-02 Pedro Alves <palves@redhat.com>
15272 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
15273 * linux-low.c (struct simple_pid_list): New.
15274 (stopped_pids): New a struct simple_pid_list pointer.
15275 (add_to_pid_list, pull_pid_from_list): New.
15276 (handle_extended_wait): Don't assume the first signal new children
15277 report is SIGSTOP. Adjust call to pull_pid_from_list.
15278 (linux_wait_for_lwp): Adjust.
15280 2012-03-02 Yao Qi <yao@codesourcery.com>
15282 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
15285 2012-03-02 Yao Qi <yao@codesourcery.com>
15287 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
15288 `stop_pc' and `tpoint'. Update caller.
15290 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
15292 * linux-low.h (linux_target_ops): Add regset_bitmap member.
15293 * linux-low.c (use_linux_regsets): New macro.
15294 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
15295 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
15296 (linux_register_in_regsets): New function.
15297 (usr_fetch_inferior_registers): Skip registers covered by
15299 (usr_store_inferior_registers): Likewise.
15300 (usr_fetch_inferior_registers): New macro.
15301 (usr_store_inferior_registers): Likewise.
15302 (linux_fetch_registers): Handle mixed regset/non-regset targets.
15303 (linux_store_registers): Likewise.
15304 * linux-mips-low.c (init_registers_mips_dsp_linux): New
15306 (init_registers_mips64_dsp_linux): Likewise.
15307 (init_registers_mips_linux): New macro.
15308 (init_registers_mips_dsp_linux): Likewise.
15309 (mips_dsp_num_regs): Likewise.
15310 (DSP_BASE, DSP_CONTROL): New fallback macros.
15311 (mips_base_regs): New macro.
15312 (mips_regmap): Use it. Fix the size.
15313 (mips_dsp_regmap): New variable.
15314 (mips_dsp_regset_bitmap): Likewise.
15315 (mips_arch_setup): New function.
15316 (mips_cannot_fetch_register): Use the_low_target.regmap rather
15318 (mips_cannot_store_register): Likewise.
15319 (the_low_target): Update .arch_setup, .num_regs and .regmap
15320 initializers. Add .regset_bitmap initializer.
15321 * linux-arm-low.c (the_low_target): Add .regset_bitmap
15323 * linux-bfin-low.c (the_low_target): Likewise.
15324 * linux-cris-low.c (the_low_target): Likewise.
15325 * linux-crisv32-low.c (the_low_target): Likewise.
15326 * linux-ia64-low.c (the_low_target): Likewise.
15327 * linux-m32r-low.c (the_low_target): Likewise.
15328 * linux-m68k-low.c (the_low_target): Likewise.
15329 * linux-ppc-low.c (the_low_target): Likewise.
15330 * linux-s390-low.c (the_low_target): Likewise.
15331 * linux-sh-low.c (the_low_target): Likewise.
15332 * linux-sparc-low.c (the_low_target): Likewise.
15333 * linux-tic6x-low.c (the_low_target): Likewise.
15334 * linux-x86-low.c (the_low_target): Likewise.
15335 * linux-xtensa-low.c (the_low_target): Likewise.
15336 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
15337 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
15338 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
15340 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
15341 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
15343 2012-02-29 Yao Qi <yao@codesourcery.com>
15344 Pedro Alves <palves@redhat.com>
15346 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
15347 `step_over_finished' is true.
15349 2012-02-27 Pedro Alves <palves@redhat.com>
15351 * linux-low.c (pid_is_stopped): Delete, moved to common/.
15352 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
15354 2012-02-27 Pedro Alves <palves@redhat.com>
15357 * linux-low.c (pid_is_stopped): New.
15358 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
15360 2012-02-25 Luis Machado <lgustavo@codesourcery.com>
15362 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
15365 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
15367 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
15369 2012-02-24 Luis Machado <lgustavo@codesourcery>
15371 * server.c (handle_query): Advertise support for target-side
15372 breakpoint condition evaluation.
15373 (process_point_options): New function.
15374 (process_serial_event): When inserting a breakpoint, check for
15375 a target-side condition that should be evaluated.
15377 * mem-break.c: Include regcache.h and ax.h.
15378 (point_cond_list_t): New data structure.
15379 (breakpoint) <cond_list>: New field.
15380 (find_gdb_breakpoint_at): Make non-static.
15381 (delete_gdb_breakpoint_at): Clear any target-side
15383 (clear_gdb_breakpoint_conditions): New function.
15384 (add_condition_to_breakpoint): Likewise.
15385 (add_breakpoint_condition): Likewise.
15386 (gdb_condition_true_at_breakpoint): Likewise.
15387 (gdb_breakpoint_here): Return result directly instead
15388 of going through a local variable.
15390 * mem-break.h (find_gdb_breakpoint_at): New prototype.
15391 (clear_gdb_breakpoint_conditions): Likewise.
15392 (add_breakpoint_condition): Likewise.
15393 (gdb_condition_true_at_breakpoint): Likewise.
15395 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
15396 (need_step_over_p): Take target-side breakpoint condition into
15399 2012-02-24 Luis Machado <lgustavo@codesourcery>
15401 * server.h: Include tracepoint.h.
15402 (agent_mem_read, agent_get_trace_state_variable_value,
15403 agent_set_trace_state_variable_value,
15404 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
15405 get_set_tsv_func_addr): New prototypes.
15407 * ax.h: New include file.
15408 * ax.c: New source file.
15410 * tracepoint.c: Include ax.h.
15411 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
15412 agent_expr, eval_result_type): Move to ax.h.
15413 (parse_agent_expr): Rename to ...
15414 (gdb_parse_agent_expr): ... this, make it non-static and move
15416 (unparse_agent_expr) Rename to ...
15417 (gdb_unparse_agent_expr): ... this, make it non-static and move
15419 (eval_agent_expr): Rename to ...
15420 (eval_tracepoint_agent_expr): ... this.
15421 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
15422 forward declarations.
15423 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
15424 (agent_get_trace_state_variable_value): New function.
15425 (agent_set_trace_state_variable_value): New function.
15426 (cmd_qtdp): Call gdb_parse_agent_expr (...).
15427 (response_tracepoint): Call gdb_unparse_agent_expr (...).
15428 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
15429 (condition_true_at_tracepoint): Likewise.
15430 (parse_agent_expr): Rename to ...
15431 (gdb_parse_agent_expr): ... this and move to ax.c.
15432 (unparse_agent_expr): Rename to ...
15433 (gdb_unparse_agent_expr): ... this and move to ax.c.
15434 (gdb_agent_op_name): Move to ax.c.
15435 (eval_agent_expr): Rename to ...
15436 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
15438 (eval_tracepoint_agent_expr): New function.
15439 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
15441 (current_insn_ptr, emit_error, struct bytecode_address): Move to
15443 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
15444 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
15445 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
15446 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
15447 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
15448 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
15449 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
15450 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
15451 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
15452 (compile_bytecodes): Remove forward declaration.
15453 (is_goto_target): Move to ax.c.
15454 (compile_bytecodes): Move to ax.c and call
15455 agent_get_trace_state_variable_value (...) and
15456 agent_set_trace_state_variable_value (...).
15458 * Makefile.in: Update ax.c and IPA dependencies.
15460 2012-02-24 Pedro Alves <palves@redhat.com>
15462 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
15463 (cmd_bigqtbuffer_circular): ... this. Only handle
15464 'QTBuffer:circular:'.
15465 (handle_tracepoint_general_set): Adjust.
15467 2012-02-16 Yao Qi <yao@codesourcery.com>
15469 * inferiors.c: Move code to ...
15470 * dll.c: .... here. New.
15471 * server.h: Declare clear_dlls.
15472 * Makefile.in (SFILES): Add dll.c.
15476 2012-02-11 Yao Qi <yao@codesourcery.com>
15478 * server.c: (handle_monitor_command): Add a new parameter
15480 (handle_query): Update caller.
15482 2012-02-09 Joel Brobecker <brobecker@adacore.com>
15484 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
15485 * configure, config.in: Regenerate.
15486 * hostio.c: Provide an alternate implementation if HAVE_READLINK
15489 2012-02-02 Pedro Alves <palves@redhat.com>
15491 Try SIGKILL first, then PTRACE_KILL.
15492 * linux-low.c (linux_kill_one_lwp): New.
15493 (linux_kill_one_lwp): Rename to ...
15494 (kill_one_lwp_callback): ... this. Use the new
15495 linux_kill_one_lwp.
15497 2012-02-02 Pedro Alves <palves@redhat.com>
15499 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
15502 2012-01-27 Pedro Alves <palves@redhat.com>
15504 * linux-low.c (linux_child_pid_to_exec_file): Delete.
15505 (elf_64_file_p): Make static.
15506 (linux_pid_exe_is_elf_64_file): New.
15507 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
15508 Delete declarations.
15509 (linux_pid_exe_is_elf_64_file): Declare.
15510 * linux-x86-low.c (x86_arch_setup): Use
15511 linux_pid_exe_is_elf_64_file.
15513 2012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
15515 * linux-low.c (linux_wait_for_event_1): Rename to ...
15516 (linux_wait_for_event): ... here and merge it with former
15517 linux_wait_for_event - new variable wait_ptid, use it.
15518 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
15520 2012-01-23 Pedro Alves <palves@redhat.com>
15522 * server.c (main): Avoid yet another case of infinite loop while
15523 detaching/killing after a longjmp.
15525 2012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15528 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
15530 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
15532 * hostio.c (handle_readlink): New function.
15533 (handle_vFile): Call it to handle "vFile:readlink" packets.
15535 2012-01-20 Pedro Alves <palves@redhat.com>
15536 Ulrich Weigand <ulrich.weigand@linaro.org>
15538 * server.c (handle_v_requests): Only support vAttach and vRun to
15539 start multiple processes when in extended protocol mode.
15541 2012-01-17 Pedro Alves <palves@redhat.com>
15543 * tracepoint.c (initialize_tracepoint): Use mmap instead of
15544 memalign plus mprotect to allocate the scratch buffer.
15546 2012-01-13 Pedro Alves <palves@redhat.com>
15548 * server.c (attach_inferior): Clear `cont_thread'.
15550 2012-01-13 Pedro Alves <palves@redhat.com>
15552 * server.c (main): Avoid infinite loop while detaching/killing
15555 2012-01-09 Doug Evans <dje@google.com>
15557 * server.c (start_inferior): Set last_ptid in --wrapper case.
15559 2012-01-06 Yao Qi <yao@codesourcery.com>
15561 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
15563 [IN_PROCESS_AGENT] (debug_agent): New global variable.
15565 2012-01-04 Yao Qi <yao@codesourcery.com>
15567 * tracepoint.c (cmd_qtdp): Print debug message
15568 for static tracepoint.
15570 2012-01-04 Yao Qi <yao@codesourcery.com>
15572 * tracepoint.c (trace_vdebug): Differentiate debug message
15573 between gdbserver and IPA.
15575 2012-01-03 Yao Qi <yao@codesourcery.com>
15577 * tracepoint.c (tracepoint_was_hit): Don't collect for
15580 2012-01-02 Joel Brobecker <brobecker@adacore.com>
15582 * terminal.h: Reformat copyright header.
15584 2012-01-02 Joel Brobecker <brobecker@adacore.com>
15586 * server.c (gdbserver_version): Update copyright year.
15587 * gdbreplay.c (gdbreplay_version): Likewise.
15589 2011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
15591 * linux-low.c (linux_create_inferior): Put empty if clause for write.
15594 2011-12-18 Hui Zhu <teawater@gmail.com>
15595 * linux-low.c (linux_create_inferior): Save return value to ret.
15597 2011-12-18 Hui Zhu <teawater@gmail.com>
15599 * linux-low.c (linux_create_inferior): Save return value to ret.
15601 2011-12-16 Doug Evans <dje@google.com>
15603 * linux-low.c (linux_create_inferior): If stdio connection,
15604 redirect stdin from /dev/null, stdout to stderr.
15605 * remote-utils.c (remote_is_stdio): New static global.
15606 (remote_connection_is_stdio): New function.
15607 (remote_prepare): Handle stdio connection.
15608 (remote_open): Ditto.
15609 (remote_close): Don't close stdin for stdio connections.
15610 (read_prim,write_prim): New functions. Replace all calls to
15611 read/write to these.
15612 * server.c (main): Watch for "-" argument. Move call to
15613 remote_prepare before start_inferior.
15614 * server.h (STDIO_CONNECTION_NAME): New macro.
15615 (remote_connection_is_stdio): Declare.
15617 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
15618 in debugging output.
15620 2011-12-15 Yao Qi <yao@codesourcery.com>
15622 * tracepoint.c: Include sys/syscall.h.
15623 (gdb_ust_thread): Remove preprocessor conditional.
15625 2011-12-14 Pedro Alves <pedro@codesourcery.com>
15627 * linux-low.c (linux_detach_one_lwp): Call
15628 the_low_target.prepare_to_resume before detaching.
15630 2011-12-14 Yao Qi <yao@codesourcery.com>
15632 * tracepoint.c (gdb_ust_thread): Don't ignore return value
15635 2011-12-14 Yao Qi <yao@codesourcery.com>
15637 * i386-low.c (i386_low_stopped_data_address): Initialize local
15638 variable `control'.
15640 2011-12-13 Pedro Alves <pedro@codesourcery.com>
15644 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
15645 DR_CONTROL unless necessary. Extend comments.
15646 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
15647 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
15649 2011-12-13 Yao Qi <yao@codesourcery.com>
15651 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
15653 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
15655 2011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
15657 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
15658 Print new debug message for such case.
15660 2011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
15662 Fix overlapping memcpy.
15663 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
15664 the read_inferior_memory transfer.
15665 (delete_fast_tracepoint_jump): New variable buf. Use it for the
15666 write_inferior_memory transfer.
15667 (set_fast_tracepoint_jump): New variable buf. Use it for the
15668 read_inferior_memory and write_inferior_memory transfers.
15669 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
15670 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
15671 Use it for the write_inferior_memory transfer.
15672 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
15675 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15677 * linux-low.c (fetch_register, store_register): Make code
15678 consistent, fix formatting.
15680 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15682 * linux-low.c (usr_store_inferior_registers): Factor out code
15683 to handle individual registers into...
15684 (store_register): ... this new function.
15686 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
15688 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
15689 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
15690 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
15691 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
15692 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
15693 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
15694 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
15695 (srv_xmlfiles): Add new XML files.
15697 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
15699 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
15700 (init_registers_s390_linux32v1): Add prototype.
15701 (init_registers_s390_linux32v2): Likewise.
15702 (init_registers_s390_linux64v1): Likewise.
15703 (init_registers_s390_linux64v2): Likewise.
15704 (init_registers_s390x_linux64v1): Likewise.
15705 (init_registers_s390x_linux64v2): Likewise.
15706 (s390_num_regs): Increment to 52.
15707 (s390_regmap): Add orig_r2 register.
15708 (s390_num_regs_3264): Increment to 68.
15709 (s390_regmap_3264): Add orig_r2 register.
15710 (s390_collect_ptrace_register): Handle orig_r2 register.
15711 (s390_supply_ptrace_register): Likewise.
15712 (s390_fill_last_break): New function.
15713 (s390_store_last_break): Likewise.
15714 (s390_fill_system_call): New function.
15715 (s390_store_system_call): Likewise.
15716 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
15718 (s390_check_regset): New function.
15719 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
15720 NT_S390_SYSTEM_CALL regsets and use appropriate description.
15721 Update target_regsets for available register sets.
15723 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
15724 Jan Kratochvil <jan.kratochvil@redhat.com>
15726 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
15727 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
15729 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
15730 * linux-low.h (struct process_info_private): New member r_debug.
15731 * server.c (handle_qxfer_libraries): Call
15732 the_target->qxfer_libraries_svr4.
15733 (handle_qxfer_libraries_svr4): New function.
15734 (qxfer_packets): New entry "libraries-svr4".
15735 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
15736 * target.h (struct target_ops): New member qxfer_libraries_svr4.
15737 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
15738 PACKET_qXfer_libraries_svr4.
15740 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
15742 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
15743 PSW address/mask between 8-byte and 16-byte formats.
15744 (s390_supply_ptrace_register): Likewise.
15745 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
15746 basic addressing mode bit.
15748 2011-11-24 Stan Shebs <stan@codesourcery.com>
15750 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
15752 2011-11-17 Stan Shebs <stan@codesourcery.com>
15754 * tracepoint.c (struct tracepoint): New field traceframe_usage.
15755 (tracing_start_time): New global.
15756 (tracing_stop_time): New global.
15757 (tracing_user_name): New global.
15758 (tracing_notes): New global.
15759 (tracing_stop_note): New global.
15760 (cmd_qtstart): Set traceframe_usage, start_time.
15761 (stop_tracing): Set stop_time.
15762 (cmd_qtstatus): Report additional status.
15763 (cmd_qtp): New function.
15764 (handle_tracepoint_query): Call it.
15765 (cmd_qtnotes): New function.
15766 (handle_tracepoint_general_set): Call it.
15767 (get_timestamp): Rename from tsv_get_timestamp.
15769 2011-11-14 Stan Shebs <stan@codesourcery.com>
15770 Kwok Cheung Yeung <kcy@codesourcery.com>
15772 * linux-x86-low.c (small_jump_insn): New.
15773 (i386_install_fast_tracepoint_jump_pad): Add arguments for
15774 trampoline and error message, build a trampoline and issue a small
15775 jump instruction to it.
15776 (x86_install_fast_tracepoint_jump_pad): Add arguments for
15777 trampoline and error message.
15778 (x86_get_min_fast_tracepoint_insn_len): New.
15779 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
15780 * linux-low.h (struct linux_target_ops): Add arguments to
15781 install_fast_tracepoint_jump_pad operation, add new operation.
15782 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
15784 (linux_get_min_fast_tracepoint_insn_len): New function.
15785 (linux_target_op): Add new operation.
15786 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
15787 (gdb_trampoline_buffer_end): Ditto.
15788 (gdb_trampoline_buffer_error): Ditto.
15789 (struct ipa_sym_addresses): Add fields for new IPA variables.
15790 (symbol_list): Add entries for new IPA variables.
15791 (struct tracepoint): Add fields to hold the address range of the
15792 trampoline used by the tracepoint.
15793 (trampoline_buffer_head): New static variable.
15794 (trampoline_buffer_tail): Ditto.
15795 (claim_trampoline_space): New function.
15796 (have_fast_tracepoint_trampoline_buffer): New function.
15797 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
15799 (install_fast_tracepoint): Ditto, also add error buffer argument.
15800 (cmd_qtminftpilen): New function.
15801 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
15802 (fast_tracepoint_from_trampoline_address): New function.
15803 (fast_tracepoint_collecting): Handle trampoline as part of jump
15805 (set_trampoline_buffer_space): New function.
15806 (initialize_tracepoint): Initialize new IPA variables.
15807 * target.h (struct target_ops): Add arguments to
15808 install_fast_tracepoint_jump_pad operation, add new
15809 get_min_fast_tracepoint_insn_len operation.
15810 (target_get_min_fast_tracepoint_insn_len): New.
15811 (install_fast_tracepoint_jump_pad): Add arguments.
15812 * server.h (IPA_BUFSIZ): Define.
15813 * linux-i386-ipa.c: Include extra header files.
15814 (initialize_fast_tracepoint_trampoline_buffer): New function.
15815 (initialize_low_tracepoint): Call it.
15816 * server.h (set_trampoline_buffer_space): Declare.
15817 (claim_trampoline_space): Ditto.
15818 (have_fast_tracepoint_trampoline_buffer): Ditto.
15820 2011-11-14 Yao Qi <yao@codesourcery.com>
15822 * server.c (handle_query): Handle InstallInTrace for qSupported.
15823 * tracepoint.c (add_tracepoint): Sort list.
15824 (install_tracepoint, download_tracepoint): New.
15825 (cmd_qtdp): Call them to install and download tracepoints.
15826 (sort_tracepoints): Removed.
15827 (cmd_qtstart): Update.
15829 2011-11-14 Yao Qi <yao@codesourcery.com>
15831 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
15832 * mem-break.h: Declare.
15833 * tracepoint.c (cmd_qtstart): Move some code to ...
15834 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
15836 (download_tracepoints): Move some code to ...
15837 (download_tracepoint_1): ... here. New.
15839 2011-11-08 Yao Qi <yao@codesourcery.com>
15841 * remote-utils.c (relocate_instruction): A comment fix.
15843 2011-11-07 Joel Brobecker <brobecker@adacore.com>
15845 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
15846 (i386_dr_low_get_control, i386_dr_low_get_status): Use
15847 dr_status_mirror and dr_control_mirror from debug_reg_state.
15848 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
15849 (i386_initial_stuff): Remove use of deleted globals.
15850 (i386_get_thread_context, i386_set_thread_context,
15851 i386_thread_added): Use dr_status_mirror and dr_control_mirror
15852 from debug_reg_state.
15854 2011-11-05 Yao Qi <yao@codesourcery.com>
15856 * tracepoint.c (gdb_collect): Loop over tracepoints of same
15857 address as TPOINT's.
15859 2011-11-02 Stan Shebs <stan@codesourcery.com>
15861 * tracepoint.c (agent_mem_read_string): New function.
15862 (eval_agent_expr): Call it for tracenz.
15863 * server.c (handle_query): Report support for tracenz.
15865 2011-11-02 Yao Qi <yao@codesourcery.com>
15867 * tracepoint.c (cmd_qtstart): Remove unused local variables.
15869 2011-11-02 Yao Qi <yao@codesourcery.com>
15871 * target.h: Fix a typo in comment.
15873 2011-10-31 Pedro Alves <pedro@codesourcery.com>
15875 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
15876 clobber the breakpoints' shadows with fast tracepoint jumps.
15877 * mem-break.h (check_mem_write): Add `myaddr' parameter.
15878 * target.c (write_inferior_memory): Also pass MYADDR down to
15881 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
15883 * configure.ac: Check support for personality routine.
15884 * configure: Regenerate.
15885 * config.in: Likewise.
15886 * linux-low.c: Include <sys/personality.h>.
15887 Define ADDR_NO_RANDOMIZE if necessary.
15888 (linux_create_inferior): Disable address space randomization when
15889 forking inferior, if requested.
15890 (linux_supports_disable_randomization): New function.
15891 (linux_target_ops): Install it.
15892 * server.h (disable_randomization): Declare.
15893 * server.c (disable_randomization): New global variable.
15894 (handle_general_set): Handle QDisableRandomization.
15895 (handle_query): Likewise for qSupported.
15896 (main): Support --disable-randomization and --no-disable-randomization
15897 command line arguments.
15898 * target.h (struct target_ops): Add supports_disable_randomization.
15899 (target_supports_disable_randomization): New macro.
15901 2011-09-29 Mike Frysinger <vapier@gentoo.org>
15903 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
15905 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
15906 [!PT_GETDSBT] (target_loadmap): New definition.
15907 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
15908 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
15909 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
15910 and PT_GETDSBT to LINUX_LOADMAP.
15911 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
15912 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
15914 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
15916 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
15917 (arm_linux_hwbp_cap): New static variable.
15918 (arm_linux_get_hwbp_cap): Replace by ...
15919 (arm_linux_init_hwbp_cap): ... this new function.
15920 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
15921 (arm_linux_get_hw_watchpoint_count): Likewise.
15922 (arm_linux_get_hw_watchpoint_max_length): Likewise.
15923 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
15924 (arm_prepare_to_resume): Use perror_with_name instead of error.
15926 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
15928 * linux-arm-low.c: Include <signal.h>.
15929 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
15930 (struct arm_linux_hwbp_cap): New data type.
15931 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
15932 (struct arm_linux_hw_breakpoint): New data type.
15933 (MAX_BPTS, MAX_WPTS): Define.
15934 (struct arch_process_info, struct arch_lwp_info): New data types.
15935 (arm_linux_get_hwbp_cap): New function.
15936 (arm_linux_get_hw_breakpoint_count): Likewise.
15937 (arm_linux_get_hw_watchpoint_count): Likewise.
15938 (arm_linux_get_hw_watchpoint_max_length): Likewise.
15939 (arm_hwbp_control_initialize): Likewise.
15940 (arm_hwbp_control_is_enabled): Likewise.
15941 (arm_hwbp_control_is_initialized): Likewise.
15942 (arm_hwbp_control_disable): Likewise.
15943 (arm_linux_hw_breakpoint_equal): Likewise.
15944 (arm_linux_hw_point_initialize): Likewise.
15945 (struct update_registers_data): New data structure.
15946 (update_registers_callback: New function.
15947 (arm_insert_point): Likewise.
15948 (arm_remove_point): Likewise.
15949 (arm_stopped_by_watchpoint): Likewise.
15950 (arm_stopped_data_address): Likewise.
15951 (arm_new_process): Likewise.
15952 (arm_new_thread): Likewise.
15953 (arm_prepare_to_resume): Likewise.
15954 (the_low_target): Register arm_insert_point, arm_remove_point,
15955 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
15956 arm_new_thread, and arm_prepare_to_resume.
15958 2011-09-15 Stan Shebs <stan@codesourcery.com>
15960 * server.h (struct emit_ops): Add compare-goto fields.
15961 * tracepoint.c (gdb_agent_op_sizes): New table.
15962 (emit_eq_goto): New function.
15963 (emit_ne_goto): New function.
15964 (emit_lt_goto): New function.
15965 (emit_le_goto): New function.
15966 (emit_gt_goto): New function.
15967 (emit_ge_goto): New function.
15968 (is_goto_target): New function.
15969 (compile_bytecodes): Recognize special cases of compare-goto
15970 combinations and call specialized emitters for them.
15971 * linux-x86-low.c (amd64_emit_eq_goto): New function.
15972 (amd64_emit_ne_goto): New function.
15973 (amd64_emit_lt_goto): New function.
15974 (amd64_emit_le_goto): New function.
15975 (amd64_emit_gt_goto): New function.
15976 (amd64_emit_ge_goto): New function.
15977 (amd64_emit_ops): Add the new functions.
15978 (i386_emit_eq_goto): New function.
15979 (i386_emit_ne_goto): New function.
15980 (i386_emit_lt_goto): New function.
15981 (i386_emit_le_goto): New function.
15982 (i386_emit_gt_goto): New function.
15983 (i386_emit_ge_goto): New function.
15984 (i386_emit_ops): Add the new functions.
15986 2011-09-08 Stan Shebs <stan@codesourcery.com>
15988 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
15989 (i386_emit_epilogue): Restore %ebx.
15991 2011-08-31 Jie Zhang <jzhang918@gmail.com>
15993 * server.c (step_thread): Remove definition.
15994 (process_serial_event): Don't handle Hs.
15995 * server.h (step_thread): Remove declaration.
15996 * target.c (set_desired_inferior): Remove use of step_thread.
15998 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
16000 * linux-low.c: Include linux-procfs.h.
16001 (linux_attach_lwp_1): Update comments.
16002 (linux_attach): Scan for existing threads when attaching to a
16003 process that is the tgid.
16004 * Makefile.in: Update dependencies.
16006 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
16008 * configure.srv: Add linux-procfs.o dependencies.
16010 2011-08-14 Yao Qi <yao@codesourcery.com>
16012 * target.h (struct target_ops): Fix indent.
16013 * win32-low.c (win32_target_ops): Fix comment.
16015 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
16016 Yao Qi <yao@codesourcery.com>
16018 * Makefile.in (clean): Remove tic6x-*.c files.
16019 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
16020 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
16021 (tic6x-c64xp-linux.c): Likewise.
16022 * configure.srv: Add support for tic6x-*-uclinux.
16023 * linux-tic6x-low.c: New.
16024 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
16026 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
16027 Yao Qi <yao@codesourcery.com>
16029 * target.h (struct target_ops): Add read_loadmap.
16030 * linux-low.c (struct target_loadseg): New type.
16031 (struct target_loadmap): New type.
16032 (linux_read_loadmap): New function.
16033 (linux_target_ops): Add linux_read_loadmap.
16034 * server.c (handle_query): Support qXfer:fdpic:read packet.
16035 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
16038 2011-08-05 Eli Zaretskii <eliz@gnu.org>
16040 * win32-low.c: Include <stdint.h>.
16042 2011-07-22 Pedro Alves <pedro@codesourcery.com>
16044 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
16045 to the inferior here.
16046 (i386_remove_aligned_watchpoint): Ditto.
16047 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
16048 fit part of the watchpoint in the debug registers.
16049 (i386_update_inferior_debug_regs): New.
16050 (i386_low_insert_watchpoint): Work on a local mirror of the debug
16051 registers, and only update the inferior on success.
16052 (i386_low_remove_watchpoint): Ditto.
16054 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
16056 * linux-low.c (compare_ints, unique, list_threads, show_process,
16057 linux_core_of_thread): Delete.
16058 (linux_target_ops): Change linux_core_of_thread to
16059 linux_common_core_of_thread.
16060 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
16061 * utils.c (malloc_failure): Change type of argument.
16062 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
16063 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
16064 common/linux-osdata.c, common/ptid.c and common/buffer.c.
16065 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
16066 (IPA_OBJS): Add common-utils-ipa.o.
16067 (ptid_h, linux_osdata_h): New macros.
16068 (server_h): Add common/common-utils.h, common/xml-utils.h,
16069 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
16071 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
16072 ptid.o, buffer.o): New rules.
16073 (linux-low.o): Add common/linux-osdata.h as a dependency.
16074 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
16075 * configure.ac: Add AC_HEADER_DIRENT check.
16076 * config.in: Regenerate.
16077 * configure: Regenerate.
16078 * remote-utils.c (xml_escape_text): Delete.
16079 (buffer_grow, buffer_free, buffer_init, buffer_finish,
16080 buffer_xml_printf): Move to common/buffer.c.
16081 * server.c (main): Remove call to initialize_inferiors.
16082 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
16083 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
16084 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
16085 internal_error, gdb_assert, gdb_assert_fail): Delete.
16086 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
16087 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
16089 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
16090 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
16091 initialize_inferiors): Delete.
16093 2011-07-20 Pedro Alves <pedro@codesourcery.com>
16095 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
16098 2011-05-31 Pedro Alves <pedro@codesourcery.com>
16100 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
16102 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
16104 2011-05-26 Yao Qi <yao@codesourcery.com>
16106 * Makefile.in (thread-db.o): Track dependence to
16107 common/gdb_thread_db.h.
16108 * thread-db.c: include gdb_thread_db.h from right place.
16110 2011-05-16 Adrian Cornish <gnu@bluedreamer.com>
16112 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
16113 __FILE__ and __LINE__ to internal_error.
16115 2011-05-13 Doug Evans <dje@google.com>
16117 * thread-db.c (try_thread_db_load_from_sdir): New function.
16118 (try_thread_db_load_from_dir): New function.
16119 (thread_db_load_search): Handle $sdir, ignore $pdir.
16120 Remove trying of system directories if search of
16121 libthread-db-search-path fails, that is now done via $sdir.
16123 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
16125 * server.c (handle_query): Add EnableDisableTracepoints to the list
16126 of supported features.
16127 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
16129 (cmd_qtenable_disable): New.
16130 (cmd_qtstart): Install tracepoints even if disabled.
16131 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
16132 receiving a QTEnable or QTDisable packet.
16133 (gdb_collect): Skip data collection if fast tracepoint is disabled.
16134 (ust_marker_to_static_tracepoint): Do not ignore disabled static
16136 (gdb_probe): Skip data collection if static tracepoint is disabled.
16138 2011-05-10 Doug Evans <dje@google.com>
16140 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
16142 2011-05-04 Doug Evans <dje@google.com>
16144 * linux-low.c (linux_join): Skip process lookup.
16145 * spu-low.c (spu_join): Ditto.
16146 * server.c (join_inferiors_callback): Delete.
16147 (process_serial_event): For 'D' packet (detach) call join_inferior
16150 2011-05-04 Joseph Myers <joseph@codesourcery.com>
16152 * README: Don't mention xscale*-*-linux*.
16153 * configure.srv (xscale*-*-linux*): Don't handle target.
16155 2011-04-27 Nathan Froyd <froydnj@codesourcery.com>
16157 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
16159 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
16160 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
16161 (i386_emit_void_call_2): Likewise.
16163 2011-04-26 Yao Qi <yao@codesourcery.com>
16165 * linux-low.c: Move common macros to linux-ptrace.h.
16166 Include linux-ptrace.h.
16167 * Makefile.in (linux_ptrace_h): New.
16168 (linux-low.o): Depends on linux-ptrace.h.
16170 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
16172 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
16173 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
16174 (remote_prepare): New function with most of the TCP code from ...
16175 (remote_open): ... here. Detect PORT here unconditionally. Move also
16176 setting transport_is_reliable.
16177 * server.c (run_once): New variable.
16178 (gdbserver_usage): Document it.
16179 (main): Set run_once for `--once'. Call remote_prepare. Exit after
16180 the first run if RUN_ONCE.
16181 * server.h (run_once, remote_prepare): New declarations.
16183 2011-04-19 Tom Tromey <tromey@redhat.com>
16185 * win32-low.c (handle_load_dll): Remove duplicate "the".
16187 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
16189 Remove support for old Cygwin 1.5 versions.
16190 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
16191 function to avoid warning.
16192 (win32_add_one_solib): Use cygwin_conv_path function to avoid
16195 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
16197 * gdbserver/server.h (Macro _): Define it if not available.
16199 2011-03-14 Michael Snyder <msnyder@vmware.com>
16201 * hostio.c (handle_close): Remove unnecessary null test.
16203 2011-03-10 Joel Brobecker <brobecker@adacore.com>
16205 * Makefile.in (maintainer-clean realclean distclean): Remove
16206 "make ... subdir_do" command.
16208 2011-03-10 Michael Snyder <msnyder@vmware.com>
16210 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
16212 * server.c (handle_v_run): Free alloced buffer on early return.
16214 2011-03-09 Yao Qi <yao@codesourcery.com>
16217 2011-03-04 Yao Qi <yao@codesourcery.com>
16219 * Makefile.in: Remove GNU make feature --directory.
16221 2011-03-05 Yao Qi <yao@codesourcery.com>
16223 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16224 (subdir_do): New make target. Copied from gdb/Makefile.
16225 (maintainer-clean, realclean, distclean, clean): Call corresponding
16226 make targets in common/Makefile.
16228 2011-02-11 Yao Qi <yao@codesourcery.com>
16230 * configure.ac: Call AC_PROG_RANLIB.
16231 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16232 * configure: Regenerate.
16234 2011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
16236 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
16238 2011-03-06 Yao Qi <yao@codesourcery.com>
16240 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
16242 2011-03-05 Yao Qi <yao@codesourcery.com>
16244 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16245 (subdir_do): New make target. Copied from gdb/Makefile.
16246 (maintainer-clean, realclean, distclean, clean): Call corresponding
16247 make targets in common/Makefile.
16249 2011-03-04 Yao Qi <yao@codesourcery.com>
16251 * Makefile.in: Remove GNU make feature --directory.
16253 2011-03-04 Michael Snyder <msnyder@vmware.com>
16255 * server.c (queue_stop_reply): Call xmalloc not malloc.
16257 2011-03-02 Michael Snyder <msnyder@vmware.com>
16259 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
16261 2011-02-28 Michael Snyder <msnyder@vmware.com>
16263 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
16264 (cmd_qtframe): Ditto.
16265 (cmd_qtbuffer): Ditto.
16266 (cmd_bigqtbuffer): Ditto.
16268 * utils.c (decimal2str): Initialize 'width' to nine, then
16269 don't mess with it.
16271 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
16273 * hostio.c (require_data): Free *data, not data.
16275 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
16277 * hostio.c (require_data): Use free, not xfree.
16279 2011-02-27 Michael Snyder <msnyder@vmware.com>
16281 * server.c (handle_query): Discard unused value.
16283 * hostio.c (require_data): Free malloc memory before returning
16286 2011-02-26 Michael Snyder <msnyder@vmware.com>
16288 * linux-low.c (list_threads): Call closedir for dirent.
16290 2011-02-27 Michael Snyder <msnyder@vmware.com>
16292 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
16293 a case statement falls through.
16295 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
16297 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
16300 2011-02-26 Michael Snyder <msnyder@vmware.com>
16302 * utils.c (decimal2str): Eliminate dead code and dead param.
16303 (pulongest): Drop dead param from call to decimal2str.
16306 2011-02-24 Joel Brobecker <brobecker@adacore.com>
16308 Revert the following patch (not approved yet):
16309 2011-02-21 Hui Zhu <teawater@gmail.com>
16310 * tracepoint.c (tp_printf): New function.
16311 (eval_agent_expr): Handle gdb_agent_op_printf.
16313 2011-02-21 Hui Zhu <teawater@gmail.com>
16315 * tracepoint.c (tp_printf): New function.
16316 (eval_agent_expr): Handle gdb_agent_op_printf.
16318 2011-02-18 Tom Tromey <tromey@redhat.com>
16320 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
16321 (tracepoint.o): Likewise.
16322 * tracepoint.c (enum gdb_agent_op): Use ax.def.
16323 (gdb_agent_op_names): Likewise.
16325 2011-02-18 Tom Tromey <tromey@redhat.com>
16327 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
16328 gdb_agent_op_rot>: New constants.
16329 (gdb_agent_op_names): Add pick and roll.
16330 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
16333 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
16335 * aclocal.m4: Regenerated with aclocal-1.11.1.
16337 2011-02-14 Pedro Alves <pedro@codesourcery.com>
16339 * server.c (handle_qxfer_traceframe_info): New.
16340 (qxfer_packets): Register "traceframe-info".
16341 (handle_query): Report support for qXfer:traceframe-info:read+.
16342 * tracepoint.c (match_blocktype): New.
16343 (traceframe_find_block_type): Rename to ...
16344 (traceframe_walk_blocks): ... this. Add callback filter argument,
16346 (traceframe_find_block_type): New, reimplemented on top of
16347 traceframe_walk_blocks.
16348 (build_traceframe_info_xml): New.
16349 (traceframe_read_info): New.
16350 * server.h (traceframe_read_info): Declare.
16352 2011-02-11 Yao Qi <yao@codesourcery.com>
16354 * configure.ac: Call AC_PROG_RANLIB.
16355 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16356 * configure: Regenerate.
16358 2011-02-07 Pedro Alves <pedro@codesourcery.com>
16360 * server.c (gdb_read_memory): Change return semantics to allow
16362 (handle_search_memory_1): Adjust.
16363 (process_serial_event) <'m' packet>: Handle partial transfers.
16364 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
16366 2011-01-28 Pedro Alves <pedro@codesourcery.com>
16368 * regcache.c (init_register_cache): Initialize
16369 regcache->register_status.
16370 (free_register_cache): Release regcache->register_status.
16371 (regcache_cpy): Copy register_status.
16372 (registers_to_string): Print 'x's for unavailable registers.
16373 (supply_register): Mark the register's status valid or
16374 unavailable, depending on whether a buffer was passed in or not.
16375 (supply_register_zeroed): New.
16376 (supply_regblock): Mark the registers' status valid or
16377 unavailable, depending on whether a buffer was passed in or not.
16378 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
16379 (struct regcache): New `register_status' field.
16380 (supply_register_zeroed): Declare.
16381 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
16382 supply_register_zeroed, rather than passing a NULL buffer to
16384 * tracepoint.c (fetch_traceframe_registers): Update comment.
16386 2011-01-28 Pedro Alves <pedro@codesourcery.com>
16388 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
16391 2011-01-25 Pedro Alves <pedro@codesourcery.com>
16393 * server.h (decode_xfer_write): Change prototype.
16394 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
16395 and don't extract the annex here.
16396 * server.c (decode_xfer_read): Remove `annex' parameter,
16397 and don't extract the annex here.
16398 (decode_xfer): New.
16399 (struct qxfer): New.
16400 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
16401 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
16402 (handle_qxfer_statictrace): New functions, abstracted out from
16403 handle_query, and made to use the struct qxfer interface.
16404 (handle_threads_qxfer_proper): Rename to ...
16405 (handle_qxfer_threads_proper): ... this.
16406 (handle_threads_qxfer): Rename to ...
16407 (handle_qxfer_threads): ... this. Adjust.
16408 (qxfer_packets): New array.
16409 (handle_qxfer): New function.
16410 (handle_query): Use handle_qxfer.
16412 2011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
16414 * gdbreplay.c: Shorten lines of >= 80 columns.
16415 * linux-low.c: Ditto.
16416 * linux-ppc-low.c: Ditto.
16417 * linux-s390-low.c: Ditto.
16418 * linux-sparc-low.c: Ditto.
16419 * linux-x86-low.c: Ditto.
16420 * linux-xtensa-low.c: Ditto.
16421 * mem-break.c: Ditto.
16422 * nto-low.c: Ditto.
16423 * regcache.h: Ditto.
16424 * remote-utils.c: Ditto.
16427 * thread-db.c: Ditto.
16428 * tracepoint.c: Ditto.
16430 * win32-low.h: Ditto.
16432 2011-01-05 Joel Brobecker <brobecker@adacore.com>
16434 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
16437 2011-01-01 Joel Brobecker <brobecker@adacore.com>
16439 * server.c (gdbserver_version): Update copyright year in version
16441 * gdbreplay.c (gdbreplay_version): Ditto.
16443 2010-12-29 Jie Zhang <jie.zhang@analog.com>
16445 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
16446 * linux-bfin-low.c: New file.
16447 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
16448 PT_DATA_ADDR for BFIN targets.
16449 * Makefile.in (SFILES): Add linux-bfin-low.c.
16450 (clean): Remove reg-bfin.c.
16451 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
16452 * README: Mention supported Blackfin targets.
16454 2010-12-23 Mike Frysinger <vapier@gentoo.org>
16456 * .gitignore: New file.
16458 2010-11-16 Mike Frysinger <vapier@gentoo.org>
16460 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
16462 2010-10-22 Jie Zhang <jie@codesourcery.com>
16464 * Makefile.in: Add FLAGS_TO_PASS variable.
16465 (install): Remove dependency of install-only and recursively
16466 invoke make for install-only.
16468 2010-10-04 Doug Evans <dje@google.com>
16470 * Makefile.in (uninstall): Use $(DESTDIR).
16472 2010-09-24 Pedro Alves <pedro@codesourcery.com>
16476 * linux-x86-low.c (compat_siginfo_from_siginfo)
16477 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
16478 si_code is < 0. Check for si_code == SI_TIMER before checking for
16481 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16483 * lynx-i386-low.c: New file.
16484 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
16486 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16488 * lynx-low.c (ptrace_request_to_str): Remove handling for
16489 request values that have been removed in LynxOS 5.x.
16491 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16493 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
16496 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
16498 * configure.ac: Add --enable-inprocess-agent option.
16499 * configure: Rebuilt.
16501 2010-09-06 Yao Qi <yao@codesourcery.com>
16503 * linux-low.c (linux_kill): Remove unused variable.
16504 (linux_stabilize_threads): Likewise.
16505 * server.c (start_inferior): Likewise.
16506 (queue_stop_reply_callback): Likewise.
16507 * tracepoint.c (do_action_at_tracepoint): Likewise.
16509 2010-09-06 Yao Qi <yao@codesourcery.com>
16511 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
16514 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16516 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
16518 2010-09-06 Pedro Alves <pedro@codesourcery.com>
16520 * Makefile.in (install-only): Replace $IPA_DEPFILES with
16523 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16525 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
16526 gdbserver/lynx-ppc-low.c: New files.
16527 * Makefile.in (lynx_low_h): New variable.
16528 (lynx-low.o, lynx-ppc-low.o): New rules.
16529 * configure.ac: On LynxOS, link with -lnetinet.
16530 * configure.srv: Add handling of powerpc-*-lynxos* targets.
16531 * configure: regenerate.
16533 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16535 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
16536 * configure.ac: Add check for vasprintf and vsnprintf.
16537 * configure, config.in: Regenerate.
16538 * server.h (vasprintf, vsnprintf): Add conditional declarations.
16540 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16542 * gdbreplay.c: Move include of alloca.h up, next to include of
16544 * server.h: Add include of malloc.h.
16545 * mem-break.c: Remove include of malloc.h.
16546 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
16548 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16550 * Makefile.in (memmem.o): Build with -Wno-error.
16552 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16554 * utils.c (xsnprintf): Make non-static.
16555 * server.h: Add xsnprintf declaration.
16556 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
16557 replace calls to snprintf by calls to xsnprintf throughout.
16559 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16561 * configure.ac: Add configure check for alloca.
16562 * configure, config.in: Regenerate.
16563 * server.h: Include alloca.h if it exists.
16564 * gdbreplay.c: Include alloca.h if it exists.
16566 2010-08-28 Pedro Alves <pedro@codesourcery.com>
16568 * linux-low.c (__SIGRTMIN): Define if not already defined.
16569 (linux_create_inferior): Check for __ANDROID__ rather than
16571 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
16572 are already deferred.
16573 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
16574 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
16575 stopped and already has a pending signal to report.
16576 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
16577 a pending signal to report or is moving out of a jump pad.
16578 (linux_init_signals): Check for __ANDROID__ rather than
16581 2010-08-28 Pedro Alves <pedro@codesourcery.com>
16583 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
16584 debug_threads check. Avoid a linear search when not doing debug
16587 2010-08-27 Pedro Alves <pedro@codesourcery.com>
16589 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
16590 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
16591 (struct file_handler) <fd>: Change type to gdb_fildes_t.
16592 (process_event): Change local fd's type to gdb_fildes_t.
16593 (create_file_handler): Adjust prototype.
16594 (delete_file_handler): Adjust prototype.
16595 (handle_file_event): Adjust prototype. Use pfildes.
16596 (create_file_event): Adjsut prototype.
16597 * remote-utils.c (remote_desc, listen_desc): Change type to
16599 * server.h: New gdb_fildes_t typedef.
16600 [USE_WIN32API]: Include winsock2.h.
16601 (delete_file_handler, add_file_handler): Adjust prototypes.
16602 (pfildes): Declare.
16603 * utils.c (pfildes): New.
16605 2010-08-27 Pedro Alves <pedro@codesourcery.com>
16607 * configure.ac (build_warnings): Add -Wno-char-subscripts.
16608 * configure: Regenerate.
16610 2010-08-27 Pedro Alves <pedro@codesourcery.com>
16612 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
16613 (linux_done_accessing_memory): ... this.
16614 (linux_target_ops): Adjust.
16615 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
16616 * nto-low.c (nto_target_ops): Adjust comment.
16617 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
16618 * spu-low.c (spu_target_ops): Adjust comment.
16619 * target.h (target_ops): Rename unprepare_to_access_memory field
16620 to done_accessing_memory.
16621 (unprepare_to_access_memory): Rename to ...
16622 (done_accessing_memory): ... this.
16624 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16626 * linux-low.c (linux_prepare_to_access_memory): New.
16627 (linux_unprepare_to_access_memory): New.
16628 (linux_target_ops): Install them.
16629 * server.c (read_memory): Rename to ...
16630 (gdb_read_memory): ... this. Use
16631 prepare_to_access_memory/prepare_to_access_memory.
16632 (write_memory): Rename to ...
16633 (gdb_write_memory): ... this. Use
16634 prepare_to_access_memory/prepare_to_access_memory.
16635 (handle_search_memory_1): Adjust.
16636 (process_serial_event): Adjust.
16637 * target.h (struct target_ops): New fields
16638 prepare_to_access_memory and unprepare_to_access_memory.
16639 (prepare_to_access_memory, unprepare_to_access_memory): New.
16640 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
16641 prepare_to_access_memory/prepare_to_access_memory.
16642 * nto-low.c (nto_target_ops): Adjust.
16643 * spu-low.c (spu_target_ops): Adjust.
16644 * win32-low.c (win32_target_ops): Adjust.
16646 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16648 * Makefile.in (WARN_CFLAGS): Get it from configure.
16649 (WERROR_CFLAGS): New.
16650 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
16651 * configure.ac: Introduce --enable-werror, which adds -Werror to
16652 the compiler command line. Enabled by default. Disable with
16653 --disable-werror. Add -Wdeclaration-after-statement
16654 Wpointer-arith and -Wformat-nonliteral to warning flags.
16655 * configure: Regenerate.
16657 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16659 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
16661 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16663 * gdbreplay.c (remote_error): New.
16665 (expect): Use gdbchar. Check for error reading from GDB.
16666 Clarify sync error output.
16667 (play): Check for errors writing to GDB.
16668 * linux-low.c (sigchld_handler): Really ignore `write' errors.
16669 * remote-utils.c (getpkt): Check for errors writing to the remote
16672 2010-08-25 Pedro Alves <pedro@codesourcery.com>
16674 * linux-low.c (linux_wait_1): Move non-debugging code out of
16675 `debug_threads' control.
16677 2010-08-25 Pedro Alves <pedro@codesourcery.com>
16679 * linux-low.c (linux_wait_1): Don't set last_status here.
16680 * server.c (push_event, queue_stop_reply_callback): Assert we're
16681 not pushing a TARGET_WAITKIND_IGNORE event.
16682 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
16683 (myresume, handle_target_event): Set the thread's last_resume_kind
16684 and last_status from the target returned status.
16686 2010-08-25 Pedro Alves <pedro@codesourcery.com>
16690 * linux-x86-low.c (update_debug_registers_callback): New.
16691 (i386_dr_low_set_addr): Use it.
16692 (i386_dr_low_get_addr): New.
16693 (i386_dr_low_set_control): Use update_debug_registers_callback.
16694 (i386_dr_low_get_control): New.
16695 (i386_dr_low_get_status): Adjust.
16696 * linux-low.c (linux_stop_lwp): New.
16697 * linux-low.h (linux_stop_lwp): Declare.
16699 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
16700 argument instead of a i386_debug_reg_state.
16701 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
16702 a i386_debug_reg_state.
16703 (i386_insert_aligned_watchpoint): Adjust.
16704 (i386_remove_aligned_watchpoint): Adjust.
16705 (i386_low_stopped_data_address): Read the debug registers from the
16706 inferior instead of from the mirrors.
16707 * i386-low.h (struct i386_debug_reg_state): Extend comment.
16708 (i386_dr_low_get_addr): Declare.
16709 (i386_dr_low_get_control): Declare.
16710 (i386_dr_low_get_status): Change prototype.
16712 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
16713 (i386_dr_low_get_addr): New.
16714 (i386_dr_low_get_control): New.
16715 (i386_dr_low_get_status): Adjust prototype. Return
16717 (i386_initial_stuff): Clear dr_status_mirror and
16719 (i386_get_thread_context): Adjust.
16720 (i386_set_thread_context): Adjust.
16721 (i386_thread_added): Adjust.
16723 2010-08-24 Pedro Alves <pedro@codesourcery.com>
16725 * linux-low.h (linux_thread_area): Delete declaration.
16727 2010-08-11 Thomas Schwinge <thomas@codesourcery.com>
16729 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
16730 after its termination.
16732 2010-08-09 Pedro Alves <pedro@codesourcery.com>
16734 * linux-low.c (gdb_wants_lwp_stopped): Delete.
16735 (gdb_wants_all_stopped): Delete.
16736 (linux_wait_1): Don't call them.
16737 * server.c (handle_v_cont): Tag all threads as want-stopped.
16738 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
16739 stopped as "client-wants-stopped".
16741 2010-07-31 Pedro Alves <pedro@codesourcery.com>
16743 * Makefile.in (signals_h): New.
16744 (server_h): Depend on it.
16745 (server.o): Don't depend on $(signals_def).
16746 (signals.o): Depend on $(signals_def).
16748 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
16750 * Makefile.in (signals_def): New.
16751 (server_h): Append include/gdb/signals.h and signals_def.
16752 (server.o): Append signals_def.
16754 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
16756 * server.c (handle_target_event): Use target_signal_to_host for
16757 resume_info.sig initialization.
16758 * target.h (struct thread_resume) <sig>: New comment.
16760 2010-07-20 Ozkan Sezer <sezeroz@gmail.com>
16762 * server.c (handle_query): strcpy() the returned string from paddress()
16763 instead of sprintf().
16764 * utils.c (paddress): Return phex_nz().
16766 2010-07-07 Joel Brobecker <brobecker@adacore.com>
16768 * server.c (handle_v_cont): Call mourn_inferior if process
16770 (myresume): Likewise.
16772 2010-07-01 Pedro Alves <pedro@codesourcery.com>
16774 Static tracepoints, and integration with UST.
16776 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
16777 * mem-break.c (uninsert_all_breakpoints)
16778 (reinsert_all_breakpoints): New.
16779 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
16780 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
16781 (gdb_agent_ust_loaded, helper_thread_id)
16782 (gdb_agent_helper_thread_id): New macros.
16783 (struct ipa_sym_addresses): Add addr_ust_loaded,
16784 addr_helper_thread_id, addr_cmd_buf.
16785 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
16786 (in_process_agent_loaded_ust): New.
16787 (write_e_ust_not_loaded): New.
16788 (maybe_write_ipa_ust_not_loaded): New.
16789 (struct collect_static_trace_data_action): New.
16790 (enum tracepoint_type) <static_tracepoint>: New.
16791 (struct tracepoint) <handle>: Mention static tracepoints.
16792 (struct static_tracepoint_ctx): New.
16793 (CMD_BUF_SIZE): New.
16794 (add_tracepoint_action): Handle static tracepoint actions.
16795 (unprobe_marker_at): New.
16796 (clear_installed_tracepoints): Handle static tracepoints.
16797 (cmd_qtdp): Handle static tracepoints.
16798 (probe_marker_at): New.
16799 (cmd_qtstart): Handle static tracepoints.
16800 (response_tracepoint): Handle static tracepoints.
16801 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
16802 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
16803 (get_context_regcache): Handle static tracepoints.
16804 (do_action_at_tracepoint): Handle static tracepoint actions.
16805 (traceframe_find_block_type): Handle static trace data blocks.
16806 (traceframe_read_sdata): New.
16807 (download_tracepoints): Download static tracepoint actions.
16808 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
16809 (GDB_PROBE_NAME): New.
16811 (GET_UST_SYM): New.
16814 (ust_marker_to_static_tracepoint): New.
16816 (collect_ust_data_at_tracepoint): New.
16817 (gdb_ust_probe): New.
16818 (UNIX_PATH_MAX, SOCK_DIR): New.
16819 (gdb_ust_connect_sync_socket): New.
16820 (resume_thread, stop_thread): New.
16821 (run_inferior_command): New.
16822 (init_named_socket): New.
16823 (gdb_ust_socket_init): New.
16824 (cstr_to_hexstr): New.
16826 (first_marker, next_marker): New.
16827 (response_ust_marker): New.
16828 (cmd_qtfstm, cmd_qtsstm): New.
16829 (unprobe_marker_at, probe_marker_at): New.
16830 (cmd_qtstmat, gdb_ust_thread): New.
16831 (gdb_ust_init): New.
16832 (initialize_tracepoint_ftlib): Call gdb_ust_init.
16833 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
16834 (ST_REGENTRY): New.
16835 (x86_64_st_collect_regmap): New.
16836 (X86_64_NUM_ST_COLLECT_GREGS): New.
16837 (AMD64_RIP_REGNUM): New.
16838 (supply_static_tracepoint_registers): New.
16839 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
16840 (ST_REGENTRY): New.
16841 (i386_st_collect_regmap): New.
16842 (i386_NUM_ST_COLLECT_GREGS): New.
16843 (supply_static_tracepoint_registers): New.
16844 * server.c (handle_query): Handle qXfer:statictrace:read.
16845 <qSupported>: Report support for StaticTracepoints, and
16846 qXfer:statictrace:read features.
16847 * server.h (traceframe_read_sdata)
16848 (supply_static_tracepoint_registers): Declare.
16849 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
16850 (unpack_varlen_hex): Include in IPA build.
16851 * Makefile.in (ustlibs, ustinc): New.
16852 (IPA_OBJS): Add remote-utils-ipa.o.
16853 ($(IPA_LIB)): Link -ldl and -lpthread.
16855 (IPAGENT_CFLAGS): Add UST_CFLAGS.
16856 * config.in, configure: Regenerate.
16858 2010-06-20 Ian Lance Taylor <iant@google.com>
16859 Pedro Alves <pedro@codesourcery.com>
16861 * linux-x86-low.c (always_true): Delete.
16862 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
16863 trying to fool the compiler with always_true.
16865 2010-06-20 Pedro Alves <pedro@codesourcery.com>
16867 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
16868 conditions in gdbserver.
16870 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
16872 * spu-low.c (spu_read_memory): Wrap around local store limit.
16873 (spu_write_memory): Likewise.
16875 2010-06-15 Pedro Alves <pedro@codesourcery.com>
16877 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
16878 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
16880 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
16882 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
16883 uses with LONGEST uses.
16885 2010-06-14 Stan Shebs <stan@codesourcery.com>
16886 Pedro Alves <pedro@codesourcery.com>
16890 * linux-x86-low.c: Include limits.h.
16892 (always_true): New.
16895 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
16896 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
16897 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
16898 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
16899 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
16900 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
16901 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
16902 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
16903 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
16904 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
16905 (amd64_emit_void_call_2): New.
16906 (amd64_emit_ops): New.
16907 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
16908 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
16909 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
16910 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
16911 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
16912 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
16913 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
16914 (i386_emit_call, i386_emit_reg, i386_emit_pop)
16915 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
16916 (i386_emit_stack_adjust, i386_emit_int_call_1)
16917 (i386_emit_void_call_2): New.
16918 (i386_emit_ops): New.
16919 (x86_emit_ops): New.
16920 (the_low_target): Install x86_emit_ops.
16921 * server.h (struct emit_ops): New.
16922 (get_raw_reg_func_addr): Declare.
16923 (current_insn_ptr, emit_error): Declare.
16924 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
16925 (set_trace_state_variable_value): New defines.
16926 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
16927 addr_get_trace_state_variable_value and
16928 addr_set_trace_state_variable_value.
16929 (symbol_list): New fields for get_raw_reg,
16930 get_trace_state_variable_value and set_trace_state_variable_value.
16931 (condfn): New typedef.
16932 (struct tracepoint): New field `compiled_cond'.
16933 (do_action_at_tracepoint): Clear compiled_cond.
16934 (get_trace_state_variable_value, set_trace_state_variable_value):
16936 (condition_true_at_tracepoint): If there's a compiled condition,
16938 (current_insn_ptr, emit_error): New globals.
16939 (struct bytecode_address): New.
16940 (get_raw_reg_func_addr): New.
16941 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
16942 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
16943 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
16944 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
16945 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
16946 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
16947 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
16948 (compile_tracepoint_condition, compile_bytecodes): New.
16949 * target.h (emit_ops): Forward declare.
16950 (struct target_ops): New field emit_ops.
16951 (target_emit_ops): New.
16952 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
16953 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
16954 * linux-low.c (linux_emit_ops): New.
16955 (linux_target_ops): Install it.
16956 * linux-low.h (struct linux_target_ops): New field emit_ops.
16958 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
16960 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
16961 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
16963 2010-06-01 Pedro Alves <pedro@codesourcery.com>
16964 Stan Shebs <stan@codesourcery.com>
16966 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
16967 (all): Depend on $(extra_libraries).
16968 (install-only): Install the IPA.
16969 (IPA_OBJS, IPA_LIB): New.
16970 (clean): Remove the IPA lib.
16971 (IPAGENT_CFLAGS): New.
16972 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
16973 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
16974 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
16975 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
16976 * configure.ac: Check for atomic builtins support in the compiler.
16977 (IPA_DEPFILES, extra_libraries): Define.
16978 * configure.srv (ipa_obj): Add description.
16979 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
16980 (i[34567]86-*-linux*): Set ipa_obj.
16981 (x86_64-*-linux*): Set ipa_obj.
16982 * linux-low.c (stabilizing_threads): New.
16983 (supports_fast_tracepoints): New.
16984 (linux_detach): Stabilize threads before detaching.
16985 (handle_tracepoints): Handle internal tracing breakpoints. Assert
16986 the lwp is either not stabilizing, or is moving out of a jump pad.
16987 (linux_fast_tracepoint_collecting): New.
16988 (maybe_move_out_of_jump_pad): New.
16989 (enqueue_one_deferred_signal): New.
16990 (dequeue_one_deferred_signal): New.
16991 (linux_wait_for_event_1): If moving out of a jump pad, defer
16992 pending signals to later.
16993 (linux_stabilize_threads): New.
16994 (linux_wait_1): Check if threads need moving out of jump pads, and
16996 (stuck_in_jump_pad_callback): New.
16997 (move_out_of_jump_pad_callback): New.
16998 (lwp_running): New.
16999 (linux_resume_one_lwp): Handle moving out of jump pads.
17000 (linux_set_resume_request): Dequeue deferred signals.
17001 (need_step_over_p): Also step over fast tracepoint jumps.
17002 (start_step_over): Also uninsert fast tracepoint jumps.
17003 (finish_step_over): Also reinsert fast tracepoint jumps.
17004 (linux_install_fast_tracepoint_jump): New.
17005 (linux_target_ops): Install linux_stabilize_threads and
17006 linux_install_fast_tracepoint_jump_pad.
17007 * linux-low.h (linux_target_ops) <get_thread_area,
17008 install_fast_tracepoint_jump_pad>: New fields.
17009 (struct lwp_info) <collecting_fast_tracepoint,
17010 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
17011 (linux_get_thread_area): Declare.
17012 * linux-x86-low.c (jump_insn): New.
17013 (x86_get_thread_area): New.
17014 (append_insns): New.
17015 (push_opcode): New.
17016 (amd64_install_fast_tracepoint_jump_pad): New.
17017 (i386_install_fast_tracepoint_jump_pad): New.
17018 (x86_install_fast_tracepoint_jump_pad): New.
17019 (the_low_target): Install x86_get_thread_area and
17020 x86_install_fast_tracepoint_jump_pad.
17021 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
17022 (struct fast_tracepoint_jump): New.
17023 (fast_tracepoint_jump_insn): New.
17024 (fast_tracepoint_jump_shadow): New.
17025 (find_fast_tracepoint_jump_at): New.
17026 (fast_tracepoint_jump_here): New.
17027 (delete_fast_tracepoint_jump): New.
17028 (set_fast_tracepoint_jump): New.
17029 (uninsert_fast_tracepoint_jumps_at): New.
17030 (reinsert_fast_tracepoint_jumps_at): New.
17031 (set_breakpoint_at): Use write_inferior_memory.
17032 (uninsert_raw_breakpoint): Use write_inferior_memory.
17033 (check_mem_read): Mask out fast tracepoint jumps.
17034 (check_mem_write): Mask out fast tracepoint jumps.
17035 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
17036 (set_fast_tracepoint_jump): Declare.
17037 (delete_fast_tracepoint_jump)
17038 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
17039 (reinsert_fast_tracepoint_jumps_at): Declare.
17040 * regcache.c: Don't compile many functions when building the
17041 in-process agent library.
17042 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
17043 the register buffer in the heap.
17044 (free_register_cache): If the register buffer isn't owned by the
17045 regcache, don't free it.
17046 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
17047 pre-existing register caches.
17048 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
17050 (convert_ascii_to_int): : Constify `from' parameter type.
17051 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
17052 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
17053 the needed buffer in-place.
17054 (relocate_instruction): New.
17055 * server.c (handle_query) <qSymbols>: If the target supports
17056 tracepoints, give it a chance of looking up symbols. Report
17057 support for fast tracepoints.
17058 (handle_status): Stabilize threads.
17059 (process_serial_event): Adjust.
17060 * server.h (struct fast_tracepoint_jump): Forward declare.
17061 (struct process_info) <fast_tracepoint_jumps>: New field.
17062 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
17063 (decode_X_packet, decode_M_packet): Adjust.
17064 (relocate_instruction): Declare.
17065 (in_process_agent_loaded): Declare.
17066 (tracepoint_look_up_symbols): Declare.
17067 (struct fast_tpoint_collect_status): Declare.
17068 (fast_tracepoint_collecting): Declare.
17069 (force_unlock_trace_buffer): Declare.
17070 (handle_tracepoint_bkpts): Declare.
17071 (initialize_low_tracepoint)
17072 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
17073 * target.h (struct target_ops) <stabilize_threads,
17074 install_fast_tracepoint_jump_pad>: New fields.
17075 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
17076 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
17077 [HAVE_STDINT_H]: Include stdint.h.
17078 (trace_debug_1): Rename to ...
17079 (trace_vdebug): ... this.
17080 (trace_debug): Rename to ...
17081 (trace_debug_1): ... this. Add `level' parameter.
17082 (trace_debug): New.
17083 (ATTR_USED, ATTR_NOINLINE): New.
17084 (IP_AGENT_EXPORT): New.
17085 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
17086 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
17087 (about_to_request_buffer_space, trace_buffer_is_full)
17088 (stopping_tracepoint, expr_eval_result, error_tracepoint)
17089 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
17090 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
17091 (traceframe_write_count, traceframes_created)
17092 (trace_state_variables)
17093 New renaming defines.
17094 (struct ipa_sym_addresses): New.
17095 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
17096 (symbol_list): New.
17097 (ipa_sym_addrs): New.
17098 (all_tracepoint_symbols_looked_up): New.
17099 (in_process_agent_loaded): New.
17100 (write_e_ipa_not_loaded): New.
17101 (maybe_write_ipa_not_loaded): New.
17102 (tracepoint_look_up_symbols): New.
17103 (debug_threads) [IN_PROCESS_AGENT]: New.
17104 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
17105 (UNKNOWN_SIDE_EFFECTS): New.
17106 (stop_tracing): New.
17107 (flush_trace_buffer): New.
17108 (stop_tracing_bkpt): New.
17109 (flush_trace_buffer_bkpt): New.
17110 (read_inferior_integer): New.
17111 (read_inferior_uinteger): New.
17112 (read_inferior_data_pointer): New.
17113 (write_inferior_data_pointer): New.
17114 (write_inferior_integer): New.
17115 (write_inferior_uinteger): New.
17116 (struct collect_static_trace_data_action): Delete.
17117 (enum tracepoint_type): New.
17118 (struct tracepoint) <type>: New field `type'.
17119 <actions_str, step_actions, step_actions_str>: Only include in
17121 <orig_size, obj_addr_on_target, adjusted_insn_addr>
17122 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
17123 (tracepoints): Use IP_AGENT_EXPORT.
17124 (last_tracepoint): Don't include in the IPA.
17125 (stopping_tracepoint): Use IP_AGENT_EXPORT.
17126 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
17127 (alloced_trace_state_variables): New.
17128 (trace_state_variables): Use IP_AGENT_EXPORT.
17129 (traceframe_t): Delete unused variable.
17130 (circular_trace_buffer): Don't include in the IPA.
17131 (trace_buffer_start): Delete.
17132 (struct trace_buffer_control): New.
17133 (trace_buffer_free): Delete.
17134 (struct ipa_trace_buffer_control): New.
17135 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
17136 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
17138 (trace_buffer_ctrl): New.
17139 (TRACE_BUFFER_CTRL_CURR): New.
17140 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
17141 Reimplement as macros.
17142 (trace_buffer_wrap): Delete.
17143 (traceframe_write_count, traceframe_read_count)
17144 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
17145 (struct tracepoint_hit_ctx) <type>: New field.
17146 (struct fast_tracepoint_ctx): New.
17147 (memory_barrier): New.
17149 (record_tracepoint_error): Update atomically in the IPA.
17150 (clear_inferior_trace_buffer): New.
17151 (about_to_request_buffer_space): New.
17152 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
17153 updating the same buffer.
17154 (add_tracepoint): Default the tracepoint's type to trap
17155 tracepoint, and orig_size to -1.
17156 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
17157 internal variables.
17158 (create_trace_state_variable): New parameter `gdb'. Handle it.
17159 (clear_installed_tracepoints): Clear fast tracepoint jumps.
17160 (cmd_qtdp): Handle fast tracepoints.
17161 (cmd_qtdv): Adjust.
17162 (max_jump_pad_size): New.
17163 (gdb_jump_pad_head): New.
17164 (get_jump_space_head): New.
17165 (claim_jump_space): New.
17166 (sort_tracepoints): New.
17167 (MAX_JUMP_SIZE): New.
17168 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
17170 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
17171 support. Upload fast traceframes, and delete internal IPA
17173 (stop_tracing_handler): New.
17174 (flush_trace_buffer_handler): New.
17175 (cmd_qtstop): Upload fast tracepoints.
17176 (response_tracepoint): Handle fast tracepoints.
17177 (tracepoint_finished_step): Upload fast traceframes. Set the
17178 tracepoint hit context's tracepoint type.
17179 (handle_tracepoint_bkpts): New.
17180 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
17181 type. Add comment about fast tracepoints.
17182 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
17183 non-existing action_str field.
17184 (get_context_regcache): Handle fast tracepoints.
17185 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
17187 (fast_tracepoint_from_jump_pad_address): New.
17188 (fast_tracepoint_from_ipa_tpoint_address): New.
17189 (collecting_t): New.
17190 (force_unlock_trace_buffer): New.
17191 (fast_tracepoint_collecting): New.
17193 (gdb_collect): New.
17194 (write_inferior_data_ptr): New.
17195 (target_tp_heap): New.
17196 (target_malloc): New.
17197 (download_agent_expr): New.
17199 (download_tracepoints): New.
17200 (download_trace_state_variables): New.
17201 (upload_fast_traceframes): New.
17202 (IPA_FIRST_TRACEFRAME): New.
17203 (IPA_NEXT_TRACEFRAME_1): New.
17204 (IPA_NEXT_TRACEFRAME): New.
17205 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
17206 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
17207 (gdb_jump_pad_buffer_end): New.
17208 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
17209 (initialize_tracepoint): Adjust.
17210 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
17211 buffer. Initialize the low module.
17212 * utils.c (PREFIX, TOOLNAME): New.
17213 (malloc_failure): Use PREFIX.
17214 (error): In the IPA, an error causes an exit.
17215 (fatal, warning): Use PREFIX.
17216 (internal_error): Use TOOLNAME.
17217 (NUMCELLS): Increase to 10.
17218 * configure, config.in: Regenerate.
17220 2010-06-01 Pedro Alves <pedro@codesourcery.com>
17222 * server.c (handle_query) <qSupported>: Do two passes over the
17223 qSupported string to avoid nesting strtok.
17225 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17227 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
17229 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
17230 -Wl,--dynamic-list.
17231 * configure: Regenerate.
17232 * proc-service.list: New.
17234 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17236 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
17239 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
17241 * gdbreplay.c (remote_open): Check error return from socket() call by
17242 its equality to -1 not by it being negative.
17243 * remote-utils.c (remote_open): Likewise.
17245 2010-05-23 Pedro Alves <pedro@codesourcery.com>
17247 * config.h: Regenerate.
17249 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17251 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
17252 doesn't provide PTRACE_GET_THREAD_AREA.
17254 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17256 * linux-m68k-low.c: Include <asm/ptrace.h>
17257 (ps_get_thread_area): Implement.
17259 2010-05-03 Doug Evans <dje@google.com>
17261 * event-loop.c (struct callback_event): New struct.
17262 (callback_list): New global.
17263 (append_callback_event, delete_callback_event): New functions.
17264 (process_callback): New function.
17265 (start_event_loop): Call it.
17266 * remote-utils.c (NOT_SCHEDULED): Define.
17267 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
17268 moved out of readchar.
17269 (readchar): Rewrite. Call reschedule before returning.
17270 (reset_readchar): New function.
17271 (remote_close): Call it.
17272 (process_remaining, reschedule): New functions.
17273 * server.h (callback_handler_func): New typedef.
17274 (append_callback_event, delete_callback_event): Declare.
17276 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17278 * proc-service.c (ps_pglobal_lookup): Use
17279 thread_db_look_up_one_symbol.
17280 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
17281 parameter. Use it instead of all_symbols_looked_up.
17282 * server.h (struct process_info) <all_symbols_looked_up>: Delete
17284 (all_symbols_looked_up): Don't declare.
17285 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
17286 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
17288 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
17289 Set all_symbols_looked_up here.
17290 (thread_db_look_up_one_symbol): New.
17291 (thread_db_get_tls_address): Adjust.
17292 (thread_db_load_search, try_thread_db_load_1): Always allocate the
17293 thread_db object on the heap, and tentatively set it in the
17295 (thread_db_init): Don't set all_symbols_looked_up here.
17296 * linux-low.h (thread_db_look_up_one_symbol): Declare.
17298 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17300 * linux-low.c (linux_kill, linux_detach): Adjust.
17301 (status_pending_p_callback): Remove redundant statement. Check
17302 for !TARGET_WAITIKIND_IGNORE, instead of
17303 TARGET_WAITKIND_STOPPED.
17304 (handle_tracepoints): Make sure LWP is locked. Adjust.
17305 (linux_wait_for_event_1): Adjust.
17306 (linux_cancel_breakpoints): New.
17307 (unsuspend_one_lwp): New.
17308 (unsuspend_all_lwps): New.
17309 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
17310 (send_sigstop_callback): Change return type to int, add new
17311 `except' parameter and handle it.
17312 (suspend_and_send_sigstop_callback): New.
17313 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
17314 pass them down. If SUSPEND, also increment the lwp's suspend
17316 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
17317 (need_step_over_p): Don't consider suspended LWPs.
17318 (start_step_over): Adjust.
17319 (proceed_one_lwp): Change return type to int, add new `except'
17320 parameter and handle it.
17321 (unsuspend_and_proceed_one_lwp): New.
17322 (proceed_all_lwps): Use find_inferior instead of
17324 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
17325 also decrement the suspend count of LWPs. Pass `except' down,
17326 instead of hacking its suspend count.
17327 (linux_pause_all): Add `freeze' parameter. Adjust.
17328 (linux_unpause_all): New.
17329 (linux_target_ops): Install linux_unpause_all.
17330 * server.c (handle_status): Adjust.
17331 * target.h (struct target_ops): New fields `unpause_all' and
17332 `cancel_breakpoints'. Add new parameter to `pause_all'.
17333 (pause_all): Add new `freeze' parameter.
17334 (unpause_all): New.
17335 (cancel_breakpoints): New.
17336 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
17337 cancel breakpoints.
17338 (cmd_qtstart): Pause threads.
17339 (stop_tracing): Pause threads, and cancel breakpoints.
17340 * win32-low.c (win32_target_ops): Adjust.
17342 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17344 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
17345 the inferior right away from here...
17346 (linux_wait_1): ... to here, and adjust to check the thread's
17347 last_resume_kind instead of the lwp's step or stop_expected flags.
17349 2010-05-02 Pedro Alves <pedro@codesourcery.com>
17351 * README: Use consistent `GDB' and `GDBserver' spellings.
17353 2010-05-02 Pedro Alves <pedro@codesourcery.com>
17355 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
17356 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
17357 (linux_detach_one_lwp): Assume the lwp is stopped.
17358 (any_thread_of): Delete.
17359 (linux_detach): Stop all lwps here. Don't blindly delete all
17361 (delete_lwp_callback): New.
17362 (linux_mourn): Delete all lwps of the process that is gone.
17363 (linux_wait_1): Don't delete the last lwp of the process here.
17364 * mem-break.h (mark_breakpoints_out): Declare.
17365 * mem-break.c (mark_breakpoints_out): New.
17366 (free_all_breakpoints): Use it.
17367 * server.c (handle_target_event): If the process is gone, mark
17369 * thread-db.c (struct thread_db) <create_bp>: New field.
17370 (thread_db_enable_reporting): Fix prototype. Store a thread event
17371 breakpoint reference in the thread_db struct.
17372 (thread_db_load_search): Clear the thread_db object.
17373 (try_thread_db_load_1): Ditto.
17374 (switch_to_process): New.
17375 (disable_thread_event_reporting): Use it.
17376 (remove_thread_event_breakpoints): New.
17377 (thread_db_detach, thread_db_mourn): Use it.
17379 2010-05-01 Pedro Alves <pedro@codesourcery.com>
17381 * linux-low.c (linux_enable_event_reporting): New.
17382 (linux_wait_for_event_1, handle_extended_wait): Use it.
17384 2010-04-30 Pedro Alves <pedro@codesourcery.com>
17386 * linux-low.c (linux_kill_one_lwp, linux_kill)
17387 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
17388 (send_sigstop): Take an lwp_info as parameter instead. Queue a
17389 SIGSTOP even if the LWP is stopped.
17390 (send_sigstop_callback): New.
17391 (stop_all_lwps): Use send_sigstop_callback instead.
17392 (linux_resume_one_thread): Adjust.
17393 (proceed_one_lwp): Still proceed an LWP that the client has
17394 requested to stop, if we haven't reported it as stopped yet. Make
17395 sure that LWPs the client want stopped, have a pending SIGSTOP.
17397 2010-04-26 Doug Evans <dje@google.com>
17399 * server.c (handle_general_set): Make static.
17401 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
17402 Print received char after testing for error/eof instead of before.
17403 (input_interrupt): Tweak comment.
17405 2010-04-23 Doug Evans <dje@google.com>
17407 * server.c (start_inferior): Print inferior argv if --debug.
17409 2010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
17411 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
17412 * nto-x86-low.c: Include server.h
17414 2010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
17416 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
17417 be consistent with other sources of this directory.
17418 (init_registers_amd64): Correct name of source file of this function
17421 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17423 * configure.srv (x86_64-*-mingw*): New configuration for Windows
17424 64-bit executables.
17426 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17428 * win32-i386-low.c: Add 64-bit support.
17429 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
17430 (init_registers_amd64): Declare.
17431 (mappings): Add 64-bit version of array.
17432 (init_windows_x86): New function.
17433 (the_low_target): Change init_arch field to init_windows_x86.
17435 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17437 * win32-low.c: Adapt to support also 64-bit architecture.
17438 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
17439 (get_image_name): Use SIZE_T type for local variable `done'.
17440 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
17441 (toolhelp_get_dll_name): Idem.
17442 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
17443 Use uintptr_t typecast to avoid warning.
17444 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
17445 (handle_exception): Use phex_nz to avoid warning.
17446 (win32_wait): Remove unused local variable `process'.
17448 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17450 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
17453 2010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
17455 * configure.ac: Use `ws2_32' library for srv_mingw.
17456 * configure: Regenerate.
17457 * gdbreplay.c: Include winsock2.h instead of winsock.h.
17458 * remote-utils.c: Likewise.
17460 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
17462 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
17463 if __x86_64__ is defined.
17465 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17467 * configure: Regenerate.
17469 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17471 * server.c (handle_query): Handle 'qGetTIBAddr' query.
17472 * target.h (target_ops): New get_tib_address field.
17473 * win32-low.h (win32_thread_info): Add thread_local_base field.
17474 * win32-low.c (child_add_thread): Add tlb argument.
17475 Set thread_local_base field to TLB.
17476 (get_child_debug_event): Adapt to child_add_thread change.
17477 (win32_get_tib_address): New function.
17478 (win32_target_ops): Set get_tib_address field to
17479 win32_get_tib_address.
17480 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
17482 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17484 * linux-low.c (linux_mourn): Also remove the process.
17485 * server.c (handle_target_event): Don't remove the process here.
17486 * nto-low.c (nto_mourn): New.
17487 (nto_target_ops): Install it.
17488 * spu-low.c (spu_mourn): New.
17489 (spu_target_ops): Install it.
17490 * win32-low.c (win32_mourn): New.
17491 (win32_target_ops): Install it.
17493 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17495 * server.h (buffer_xml_printf): Remove redundant `;'.
17497 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17499 * regcache.c (set_register_cache): Invalidate regcaches before
17500 changing the register cache layout.
17501 (regcache_invalidate_one): Allow a NULL regcache.
17502 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
17503 regcaches before changing the register cache layout or the target
17506 2010-04-12 H.J. Lu <hongjiu.lu@intel.com>
17508 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
17509 variable warning on Linux/x86-64.
17511 2010-04-11 Pedro Alves <pedro@codesourcery.com>
17513 GDBserver disconnected tracing support.
17515 * linux-low.c (linux_remove_process): Delete.
17516 (add_lwp): Don't set last_resume_kind here.
17517 (linux_kill): Use `mourn'.
17518 (linux_detach): Use `thread_db_detach', and `mourn'.
17519 (linux_mourn): New.
17520 (linux_attach_lwp_1): Adjust comment.
17521 (linux_attach): last_resume_kind moved the thread_info; adjust.
17522 (status_pending_p_callback): Adjust.
17523 (linux_wait_for_event_1): Adjust.
17524 (count_events_callback, select_singlestep_lwp_callback)
17525 (select_event_lwp_callback, cancel_breakpoints_callback)
17526 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
17527 (proceed_one_lwp): Adjust.
17528 (linux_async): Add debug output.
17529 (linux_thread_stopped): New.
17530 (linux_pause_all): New.
17531 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
17533 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
17534 (thread_db_free): Delete declaration.
17535 (thread_db_detach, thread_db_mourn): Declare.
17536 * thread-db.c (thread_db_init): Use thread_db_mourn.
17537 (thread_db_free): Delete, split in two.
17538 (disable_thread_event_reporting): New.
17539 (thread_db_detach): New.
17540 (thread_db_mourn): New.
17542 * server.h (struct thread_info) <last_resume_kind>: New field.
17543 <attached>: Add comment.
17544 <gdb_detached>: New field.
17545 (handler_func): Change return type to int.
17546 (handle_serial_event, handle_target_event): Ditto.
17547 (gdb_connected): Declare.
17549 (disconnected_tracing): Declare.
17550 (stop_tracing): Declare.
17552 * server.c (handle_query) <qSupported>: Report support for
17553 disconnected tracing.
17554 (queue_stop_reply_callback): Account for running threads.
17555 (gdb_wants_thread_stopped): New.
17556 (gdb_wants_all_threads_stopped): New.
17557 (gdb_reattached_process): New.
17558 (handle_status): Clear the `gdb_detached' flag of all processes.
17559 In all-stop, stop all threads.
17560 (main): Be sure to leave tfind mode. Handle disconnected tracing.
17561 (process_serial_event): If the remote connection breaks, or if an
17562 exit was forced with "monitor exit", force an event loop exit.
17563 Handle disconnected tracing on detach.
17564 (handle_serial_event): Adjust.
17565 (handle_target_event): If GDB isn't connected, forward events back
17566 to the inferior, unless the last process exited, in which case,
17567 exit gdbserver. Adjust interface.
17569 * remote-utils.c (remote_open): Don't block in accept. Instead
17570 register an event loop source on the listen socket file
17571 descriptor. Refactor bits into ...
17572 (listen_desc): ... this new global.
17573 (gdb_connected): ... this new function.
17574 (enable_async_notification): ... this new function.
17575 (handle_accept_event): ... this new function.
17576 (remote_close): Clear remote_desc.
17578 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
17580 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
17582 (mourn_inferior): Define.
17583 (target_process_qsupported): Avoid the dangling else problem.
17584 (thread_stopped): Define.
17585 (pause_all): Define.
17586 (target_waitstatus_to_string): Declare.
17587 * target.c (target_waitstatus_to_string): New.
17589 * tracepoint.c (tracing): Make extern.
17590 (disconnected_tracing): New.
17591 (stop_tracing): Make extern. Handle tracing stops due to GDB
17593 (cmd_qtdisconnected): New.
17594 (cmd_qtstatus): Report disconnected tracing status in trace reply.
17595 (handle_tracepoint_general_set): Handle QTDisconnected.
17597 * event-loop.c (event_handler_func): Change return type to int.
17598 (process_event): Bail out if the event handler wants the event
17600 (handle_file_event): Ditto.
17601 (start_event_loop): Bail out if the event handler wants the event
17604 * nto-low.c (nto_target_ops): Adjust.
17605 * spu-low.c (spu_wait): Don't remove the process here.
17606 (spu_target_ops): Adjust.
17607 * win32-low.c (win32_wait): Don't remove the process here.
17608 (win32_target_ops): Adjust.
17610 2010-04-11 Pedro Alves <pedro@codesourcery.com>
17612 * regcache.c (realloc_register_cache): Invalidate inferior's
17613 regcache before recreating it.
17615 2010-04-09 Pedro Alves <pedro@codesourcery.com>
17617 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
17619 2010-04-09 Stan Shebs <stan@codesourcery.com>
17620 Pedro Alves <pedro@codesourcery.com>
17622 * server.h (LONGEST): New.
17623 (struct thread_info) <while_stepping>: New field.
17624 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
17626 (initialize_tracepoint, handle_tracepoint_general_set)
17627 (handle_tracepoint_query, tracepoint_finished_step)
17628 (tracepoint_was_hit, release_while_stepping_state_list):
17629 (current_traceframe): Declare.
17630 * server.c (handle_general_set): Handle tracepoint packets.
17631 (read_memory): New.
17632 (write_memory): New.
17633 (handle_search_memory_1): Use read_memory.
17634 (handle_query): Report support for conditional tracepoints, trace
17635 state variables, and tracepoint sources. Handle tracepoint
17637 (main): Initialize the tracepoints module.
17638 (process_serial_event): Handle traceframe reads/writes.
17640 * linux-low.c (handle_tracepoints): New.
17641 (linux_wait_1): Call it.
17642 (linux_resume_one_lwp): Handle while-stepping.
17643 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
17644 (linux_target_ops): Install them.
17645 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
17647 * linux-x86-low.c (x86_supports_tracepoints): New.
17648 (the_low_target). Install it.
17650 * mem-break.h (delete_breakpoint): Declare.
17651 * mem-break.c (delete_breakpoint): Make external.
17653 * target.h (struct target_ops): Add `supports_tracepoints',
17654 `read_pc', and `write_pc' fields.
17655 (target_supports_tracepoints): Define.
17656 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
17659 * regcache.h (struct regcache) <registers_owned>: New field.
17660 (init_register_cache, regcache_cpy): Declare.
17661 (regcache_read_pc, regcache_write_pc): Declare.
17662 (register_cache_size): Declare.
17663 (supply_regblock): Declare.
17664 * regcache.c (init_register_cache): New.
17665 (new_register_cache): Use it.
17666 (regcache_cpy): New.
17667 (register_cache_size): New.
17668 (supply_regblock): New.
17669 (regcache_read_pc, regcache_write_pc): New.
17671 * tracepoint.c: New.
17673 * Makefile.in (OBS): Add tracepoint.o.
17674 (tracepoint.o): New rule.
17676 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
17678 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
17680 (i386-mmx.c): Likewise.
17681 (i386-mmx-linux.o): Likewise.
17682 (i386-mmx-linux.c): Likewise.
17684 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
17685 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
17686 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
17687 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
17689 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
17690 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
17691 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
17693 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
17695 * Makefile.in (clean): Updated.
17697 (i386-avx.c): Likewise.
17698 (i386-avx-linux.o): Likewise.
17699 (i386-avx-linux.c): Likewise.
17700 (amd64-avx.o): Likewise.
17701 (amd64-avx.c): Likewise.
17702 (amd64-avx-linux.o): Likewise.
17703 (amd64-avx-linux.c): Likewise.
17705 * configure.srv (srv_i386_regobj): Add i386-avx.o.
17706 (srv_i386_linux_regobj): Add i386-avx-linux.o.
17707 (srv_amd64_regobj): Add amd64-avx.o.
17708 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
17709 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
17710 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
17711 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
17712 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
17713 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
17714 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
17716 * i387-fp.c: Include "i386-xstate.h".
17718 (i387_cache_to_xsave): Likewise.
17719 (i387_xsave_to_cache): Likewise.
17720 (x86_xcr0): Likewise.
17722 * i387-fp.h (i387_cache_to_xsave): Likewise.
17723 (i387_xsave_to_cache): Likewise.
17724 (x86_xcr0): Likewise.
17726 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
17727 * linux-crisv32-low.c (target_regsets): Likewise.
17728 * linux-m68k-low.c (target_regsets): Likewise.
17729 * linux-mips-low.c (target_regsets): Likewise.
17730 * linux-ppc-low.c (target_regsets): Likewise.
17731 * linux-s390-low.c (target_regsets): Likewise.
17732 * linux-sh-low.c (target_regsets): Likewise.
17733 * linux-sparc-low.c (target_regsets): Likewise.
17734 * linux-xtensa-low.c (target_regsets): Likewise.
17736 * linux-low.c: Include <sys/uio.h>.
17737 (regsets_fetch_inferior_registers): Support nt_type.
17738 (regsets_store_inferior_registers): Likewise.
17739 (linux_process_qsupported): New.
17740 (linux_target_ops): Add linux_process_qsupported.
17742 * linux-low.h (regset_info): Add nt_type.
17743 (linux_target_ops): Add process_qsupported.
17745 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
17747 (init_registers_i386_avx_linux): New.
17748 (init_registers_amd64_avx_linux): Likewise.
17749 (xmltarget_i386_linux_no_xml): Likewise.
17750 (xmltarget_amd64_linux_no_xml): Likewise.
17751 (PTRACE_GETREGSET): Likewise.
17752 (PTRACE_SETREGSET): Likewise.
17753 (x86_fill_xstateregset): Likewise.
17754 (x86_store_xstateregset): Likewise.
17755 (use_xml): Likewise.
17756 (x86_linux_update_xmltarget): Likewise.
17757 (x86_linux_process_qsupported): Likewise.
17758 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
17759 (x86_arch_setup): Don't call init_registers_amd64_linux nor
17760 init_registers_i386_linux here. Call
17761 x86_linux_update_xmltarget.
17762 (the_low_target): Add x86_linux_process_qsupported.
17764 * server.c (handle_query): Call target_process_qsupported.
17766 * target.h (target_ops): Add process_qsupported.
17767 (target_process_qsupported): New.
17769 2010-04-03 Pedro Alves <pedro@codesourcery.com>
17771 * inferiors.c (add_thread): Set last_status kind to
17772 TARGET_WAITKIND_IGNORE.
17773 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
17774 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
17775 (linux_wait_1): Move `thread' local definition to block that uses
17776 it. Don't NULL initialize `event_child'.
17777 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
17778 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
17779 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
17781 2010-04-01 Pedro Alves <pedro@codesourcery.com>
17783 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
17784 an extended waitstatus, or by a watchpoint.
17785 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
17786 thread was stepping or has been stopped by a watchpoint.
17788 2010-04-01 Pedro Alves <pedro@codesourcery.com>
17790 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
17791 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
17792 of another, then delete the previous, and validate all
17794 (validate_inserted_breakpoint): New.
17795 (delete_disabled_breakpoints): New.
17796 (validate_breakpoints): New.
17797 (check_mem_read): Validate breakpoints before trusting their
17798 shadow. Delete disabled breakpoints.
17799 (check_mem_write): Validate breakpoints before trusting they
17800 should be inserted. Delete disabled breakpoints.
17801 * mem-break.h (validate_breakpoints):
17802 * server.c (handle_query): Validate breakpoints when we see a
17805 2010-04-01 Pedro Alves <pedro@codesourcery.com>
17807 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
17808 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
17809 if we could tell there's a GDB breakpoint at stop_pc.
17810 (need_step_over_p): Don't do a step over if we find a GDB
17811 breakpoint at the resume PC.
17813 * mem-break.c (struct raw_breakpoint): New.
17814 (enum bkpt_type): New type `gdb_breakpoint'.
17815 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
17816 fields. New field `raw'.
17817 (find_raw_breakpoint_at): New.
17818 (set_raw_breakpoint_at): Handle refcounting. Create a raw
17819 breakpoint instead.
17820 (set_breakpoint_at): Adjust.
17821 (delete_raw_breakpoint): New.
17822 (release_breakpoint): New.
17823 (delete_breakpoint): Rename to...
17824 (delete_breakpoint_1): ... this. Add proc parameter. Use
17825 release_breakpoint. Return ENOENT.
17826 (delete_breakpoint): Reimplement.
17827 (find_breakpoint_at): Delete.
17828 (find_gdb_breakpoint_at): New.
17829 (delete_breakpoint_at): Delete.
17830 (set_gdb_breakpoint_at): New.
17831 (delete_gdb_breakpoint_at): New.
17832 (gdb_breakpoint_here): New.
17833 (set_reinsert_breakpoint): Use release_breakpoint.
17834 (uninsert_breakpoint): Rename to ...
17835 (uninsert_raw_breakpoint): ... this.
17836 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
17837 (reinsert_raw_breakpoint): Change parameter type to
17839 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
17841 (check_breakpoints): Adjust. Use release_breakpoint.
17842 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
17843 (breakpoint_inserted_here): Ditto.
17844 (check_mem_read): Adjust to iterate over raw breakpoints instead.
17845 Don't trust the breakpoint's shadow if it is not inserted.
17846 (check_mem_write): Adjust to iterate over raw breakpoints instead.
17847 (delete_all_breakpoints): Adjust.
17848 (free_all_breakpoints): Mark all breakpoints as uninserted, and
17849 use delete_breakpoint_1.
17851 * mem-break.h (breakpoints_supported): Delete declaration.
17852 (set_gdb_breakpoint_at): Declare.
17853 (gdb_breakpoint_here): Declare.
17854 (delete_breakpoint_at): Delete.
17855 (delete_gdb_breakpoint_at): Declare.
17857 * server.h (struct raw_breakpoint): Forward declare.
17858 (struct process_info): New field `raw_breakpoints'.
17860 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
17863 2010-03-24 Pedro Alves <pedro@codesourcery.com>
17865 * linux-low.c (status_pending_p_callback): Fix comment.
17866 (linux_wait_for_event_1): Move most of the internal breakpoint
17867 handling from here...
17868 (linux_wait_1): ... to here.
17869 (count_events_callback): New.
17870 (select_singlestep_lwp_callback): New.
17871 (select_event_lwp_callback): New.
17872 (cancel_breakpoints_callback): New.
17873 (select_event_lwp): New.
17874 (linux_wait_1): Simplify internal breakpoint handling. Give equal
17875 priority to all LWPs that have had events that should be reported
17876 to the client. Cancel breakpoints when about to reporting the
17877 event to the client, not while stopping lwps. No longer cancel
17878 finished single-steps here.
17879 (cancel_finished_single_step): Delete.
17880 (cancel_finished_single_steps): Delete.
17882 2010-03-24 Pedro Alves <pedro@codesourcery.com>
17884 * mem-break.c (enum bkpt_type): New.
17885 (struct breakpoint): New field `type'.
17886 (set_breakpoint_at): Change return type to struct breakpoint
17887 pointer. Set type to `other_breakpoint' by default.
17888 (delete_breakpoint): Rewrite, supporting more than one breakpoint
17889 in the breakpoint list.
17890 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
17891 (reinsert_breakpoint): Rename to ...
17892 (reinsert_raw_breakpoint): ... this.
17893 (reinsert_breakpoints_at): Adjust.
17894 * mem-break.h (struct breakpoint): Declare.
17895 (set_breakpoint_at): Change return type to struct breakpoint
17898 2010-03-24 Pedro Alves <pedro@codesourcery.com>
17900 * server.c (handle_query): Assign, not compare.
17902 2010-03-24 Pedro Alves <pedro@codesourcery.com>
17904 Teach linux gdbserver to step-over-breakpoints.
17906 * linux-low.c (can_hardware_single_step): New.
17907 (supports_breakpoints): New.
17908 (handle_extended_wait): If stopping threads, read the stop pc of
17909 the new cloned LWP.
17911 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
17912 low target doesn't support retrieving the PC.
17913 (add_lwp): Set last_resume_kind to resume_continue.
17914 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
17915 (linux_attach): Don't clear stop_expected. Set the lwp's
17916 last_resume_kind to resume_stop.
17917 (linux_detach_one_lwp): Don't check for removed breakpoints.
17918 (check_removed_breakpoint): Delete.
17919 (status_pending_p): Rename to ...
17920 (status_pending_p_callback): ... this. Don't check for removed
17921 breakpoints. Don't consider threads that are stopped from GDB's
17923 (linux_wait_for_lwp): Always read the stop_pc here.
17924 (cancel_breakpoint): New.
17925 (step_over_bkpt): New global.
17926 (linux_wait_for_event_1): Implement stepping over breakpoints.
17927 (gdb_wants_lwp_stopped): New.
17928 (gdb_wants_all_stopped): New.
17929 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
17930 single-step traps here. Store the thread's last reported target
17932 (send_sigstop): Don't clear stop_expected. Always set it,
17934 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
17935 (cancel_finished_single_step): New.
17936 (cancel_finished_single_steps): New.
17937 (wait_for_sigstop): Don't cancel finished single-step traps here.
17938 (linux_resume_one_lwp): Don't check for removed breakpoints.
17939 Don't set `step' on non-hardware step archs.
17940 (linux_set_resume_request): Ignore resume_stop requests if already
17941 stopping or stopped. Set the lwp's last_resume_kind.
17942 (resume_status_pending_p): Don't check for removed breakpoints.
17943 (need_step_over_p): New.
17944 (start_step_over): New.
17945 (finish_step_over): New.
17946 (linux_resume_one_thread): Always queue a sigstop for resume_stop
17947 requests. Clear the thread's last reported target waitstatus.
17948 Don't use the `suspended' flag. Don't consider pending breakpoints.
17949 (linux_resume): Start a step-over if necessary.
17950 (proceed_one_lwp): New.
17951 (proceed_all_lwps): New.
17952 (unstop_all_lwps): New.
17953 * linux-low.h (struct lwp_info): Rewrite comment for the
17954 `suspended' flag. Add the `stop_pc' field. Delete the
17955 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
17956 Add `'last_resume_kind' and `need_step_over' fields.
17957 * inferiors.c (struct thread_info): Delete, moved elsewhere.
17958 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
17959 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
17960 (set_raw_breakpoint_at): New.
17961 (set_breakpoint_at): Rewrite to use it.
17962 (reinsert_breakpoint_handler): Delete.
17963 (set_reinsert_breakpoint): New.
17964 (reinsert_breakpoint_by_bp): Delete.
17965 (delete_reinsert_breakpoints): New.
17966 (uninsert_breakpoint): Rewrite.
17967 (uninsert_breakpoints_at): New.
17968 (reinsert_breakpoint): Rewrite.
17969 (reinsert_breakpoints_at): New.
17970 (check_breakpoints): Rewrite.
17971 (breakpoint_here): New.
17972 (breakpoint_inserted_here): New.
17973 (check_mem_read): Adjust.
17974 * mem-break.h (breakpoints_supported, breakpoint_here)
17975 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
17976 (reinsert_breakpoint_by_bp): Delete declaration.
17977 (delete_reinsert_breakpoints): Declare.
17978 (reinsert_breakpoint): Delete declaration.
17979 (reinsert_breakpoints_at): Declare.
17980 (uninsert_breakpoint): Delete declaration.
17981 (uninsert_breakpoints_at): Declare.
17982 (check_breakpoints): Adjust prototype.
17983 * server.h: Adjust include order.
17984 (struct thread_info): Declare here. Add a `last_status' field.
17986 2010-03-23 Michael Snyder <msnyder@vmware.com>
17988 * server.c (crc32): New function.
17989 (handle_query): Add handling for 'qCRC:' request.
17991 2010-03-23 Pedro Alves <pedro@codesourcery.com>
17993 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
17994 lwp had been stopped by a watchpoint.
17996 2010-03-16 Pedro Alves <pedro@codesourcery.com>
17998 * server.h (internal_error): Declare.
17999 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
18000 * utils.c (internal_error): New function.
18002 2010-03-15 Andreas Schwab <schwab@redhat.com>
18004 * configure.srv: Fix typo setting srv_regobj.
18006 2010-03-15 Pedro Alves <pedro@codesourcery.com>
18008 * linux-low.c (fetch_register): Avoid passing a non string literal
18010 (usr_store_inferior_registers): Ditto.
18012 2010-03-14 Pedro Alves <pedro@codesourcery.com>
18014 * linux-low.c (linux_write_memory): Bail out early if peeking
18017 2010-03-14 Pedro Alves <pedro@codesourcery.com>
18019 * linux-low.h (struct lwp_info): New fields
18020 `stopped_by_watchpoint' and `stopped_data_address'.
18021 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
18022 here, and cache them in the lwp object.
18023 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
18025 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
18027 (linux_stopped_by_watchpoint): Rewrite.
18028 (linux_stopped_data_address): Rewrite.
18030 2010-03-06 Simo Melenius <simo.melenius@iki.fi>
18032 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
18033 switching the current inferior, not before.
18035 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
18037 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
18038 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
18039 i386-linux.c and amd64-linux.c.
18040 (reg-i386.o): Removed.
18041 (reg-i386.c): Likewise.
18042 (reg-i386-linux.o): Likewise.
18043 (reg-i386-linux.c): Likewise.
18044 (reg-x86-64.o): Likewise.
18045 (reg-x86-64.c): Likewise.
18046 (reg-x86-64-linux.o): Likewise.
18047 (reg-x86-64-linux.c): Likewise.
18049 (i386.c): Likewise.
18050 (i386-linux.o): Likewise.
18051 (i386-linux.c): Likewise.
18052 (amd64.o): Likewise.
18053 (amd64.c): Likewise.
18054 (amd64-linux.o): Likewise.
18055 (amd64-linux.c): Likewise.
18057 * configure.srv (srv_i386_regobj): New.
18058 (srv_i386_linux_regobj): Likewise.
18059 (srv_amd64_regobj): Likewise.
18060 (srv_amd64_linux_regobj): Likewise.
18061 (srv_i386_32bit_xmlfiles): Likewise.
18062 (srv_i386_64bit_xmlfiles): Likewise.
18063 (srv_i386_xmlfiles): Likewise.
18064 (srv_amd64_xmlfiles): Likewise.
18065 (srv_i386_linux_xmlfiles): Likewise.
18066 (srv_amd64_linux_xmlfiles): Likewise.
18067 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
18068 srv_xmlfiles to $srv_i386_xmlfiles.
18069 (i[34567]86-*-mingw32ce*): Likewise.
18070 (i[34567]86-*-mingw*): Likewise.
18071 (i[34567]86-*-nto*): Likewise.
18072 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
18073 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
18074 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
18075 (x86_64-*-linux*): Likewise.
18077 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
18078 (init_registers_amd64_linux): New.
18079 (x86_arch_setup): Replace init_registers_x86_64_linux with
18080 init_registers_amd64_linux.
18082 2010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
18084 * configure.ac: Check for libdl. If it is not available link against
18085 static libthread_db.
18086 * configure: Regenerate.
18088 2010-02-22 Pedro Alves <pedro@codesourcery.com>
18092 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
18093 handing a read watchpoint.
18094 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
18096 2010-02-12 Doug Evans <dje@google.com>
18098 * linux-low.c (linux_supports_tracefork_flag): Document.
18099 (linux_look_up_symbols): Add comment.
18101 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
18103 * regcache.c (supply_register): Clear regcache if buf is NULL.
18105 2010-02-02 Nicolas Roche <roche@sourceware.org>
18106 Joel Brobecker <brobecker@adacore.com>
18108 * inferiors.c (find_inferior): Add function documentation.
18109 (unloaded_dll): Handle the case where the unloaded dll has not
18110 been previously registered in the dll list.
18112 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
18114 * linux-arm-low.c (thumb_breakpoint_len): Delete.
18115 (thumb2_breakpoint): New.
18116 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
18118 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18120 * linux-low.c (get_stop_pc): Check for SIGTRAP.
18121 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
18124 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18126 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
18128 2010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
18130 * linux-s390-low.c (s390_collect_ptrace_register)
18131 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
18133 2010-01-21 Doug Evans <dje@google.com>
18135 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
18136 (PTRACE_ARG4_TYPE): New macro.
18137 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
18138 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
18139 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
18140 (usr_store_inferior_registers): Ditto.
18141 (linux_read_memory, linux_write_memory): Ditto.
18142 (linux_test_for_tracefork): Ditto.
18144 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
18145 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
18147 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18149 * proc-service.c (ps_lgetregs): Don't refetch registers from the
18152 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18154 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
18155 prototype to take a regcache. Adjust.
18157 2010-01-20 Pedro Alves <pedro@codesourcery.com>
18159 * regcache.h (struct thread_info): Forward declare.
18160 (struct regcache): New.
18161 (new_register_cache): Adjust prototype.
18162 (get_thread_regcache): Declare.
18163 (free_register_cache): Adjust prototype.
18164 (registers_to_string, registers_from_string): Ditto.
18165 (supply_register, supply_register_by_name, collect_register)
18166 (collect_register_as_string, collect_register_by_name): Ditto.
18167 * regcache.c (struct inferior_regcache_data): Delete.
18168 (get_regcache): Rename to ...
18169 (get_thread_regcache): ... this. Adjust. Switch inferior before
18170 fetching registers.
18171 (regcache_invalidate_one): Adjust.
18172 (regcache_invalidate): Fix prototype.
18173 (new_register_cache): Return the new register cache.
18174 (free_register_cache): Change prototype.
18175 (realloc_register_cache): Adjust.
18176 (registers_to_string): Change prototype to take a regcache. Adjust.
18177 (registers_from_string): Ditto.
18178 (register_data): Ditto.
18179 (supply_register): Ditto.
18180 (supply_register_by_name): Ditto.
18181 (collect_register): Ditto.
18182 (collect_register_as_string): Ditto.
18183 (collect_register_by_name): Ditto.
18184 * server.c (process_serial_event): Adjust.
18185 * linux-low.h (regset_fill_func, regset_store_func): Change
18187 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
18189 * linux-low.c (get_stop_pc): Adjust.
18190 (check_removed_breakpoint): Adjust.
18191 (linux_wait_for_event): Adjust.
18192 (linux_resume_one_lwp): Adjust.
18193 (fetch_register): Add regcache parameter. Adjust.
18194 (usr_store_inferior_registers): Ditto.
18195 (regsets_fetch_inferior_registers): Ditto.
18196 (regsets_store_inferior_registers): Ditto.
18197 (linux_fetch_registers, linux_store_registers): Ditto.
18198 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
18200 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
18202 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
18203 prototype to take a regcache.
18204 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
18205 * remote-utils.c (convert_ascii_to_int, outreg)
18206 (prepare_resume_reply): Change prototype to take a regcache.
18208 * target.h (struct target_ops) <fetch_registers, store_registers>:
18209 Change prototype to take a regcache.
18210 (fetch_inferior_registers, store_inferior_registers): Change
18211 prototype to take a regcache. Adjust.
18212 * proc-service.c (ps_lgetregs): Adjust.
18213 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
18214 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
18215 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
18216 take a regcache. Adjust.
18217 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
18218 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
18219 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
18220 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
18221 * linux-cris-low.c (cris_get_pc, cris_set_pc)
18222 (cris_cannot_fetch_register):
18223 (cris_breakpoint_at): Change prototype to take a regcache.
18225 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
18226 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
18227 to take a regcache. Adjust.
18228 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
18230 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
18231 take a regcache. Adjust.
18232 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
18233 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
18234 (m68k_set_pc): Change prototype to take a regcache. Adjust.
18235 * linux-mips-low.c (mips_get_pc):
18236 (mips_set_pc): Change prototype to take a regcache. Adjust.
18237 (mips_reinsert_addr): Adjust.
18238 (mips_collect_register): Change prototype to take a regcache.
18240 (mips_supply_register):
18241 (mips_collect_register_32bit, mips_supply_register_32bit)
18242 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
18243 (mips_store_fpregset): Ditto.
18244 * linux-ppc-low.c (ppc_supply_ptrace_register)
18245 (ppc_supply_ptrace_register): Ditto.
18246 (parse_spufs_run): Adjust.
18247 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
18248 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
18249 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
18250 take a regcache. Adjust.
18251 * linux-s390-low.c (s390_collect_ptrace_register)
18252 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
18253 (s390_set_pc): Change prototype to take a regcache. Adjust.
18254 (s390_arch_setup): Adjust.
18255 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
18256 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
18257 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
18258 (sparc_fill_gregset, sparc_store_gregset_from_stack)
18259 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
18261 (sparc_breakpoint_at): Adjust.
18262 * linux-xtensa-low.c (xtensa_fill_gregset):
18263 (xtensa_store_gregset):
18264 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
18265 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
18266 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
18267 prototype to take a regcache. Adjust.
18268 * win32-arm-low.c (arm_fetch_inferior_register)
18269 (arm_store_inferior_register): Change prototype to take a
18271 * win32-i386-low.c (i386_fetch_inferior_register)
18272 (i386_store_inferior_register): Change prototype to take a
18274 * win32-low.c (child_fetch_inferior_registers)
18275 (child_store_inferior_registers): Change prototype to take a
18277 (win32_wait): Adjust.
18278 (win32_fetch_inferior_registers): Change prototype to take a
18280 (win32_store_inferior_registers): Adjust.
18281 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
18282 store_inferior_register>: Change prototype to take a regcache.
18284 2010-01-20 Doug Evans <dje@google.com>
18286 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
18288 (linux_wait_for_event1, linux_init_signals): Ditto.
18289 (W_STOPCODE): Provide definition if missing.
18291 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
18293 * linux-low.c (linux_core_of_thread): New.
18294 (compare_ints, show_process, list_threads): New.
18295 (linux_qxfer_osdata): Report threads and cores.
18296 (linux_target_op): Register linux_core_of_thread.
18297 * remote-utils.c (prepare_resume_reply): Report the core.
18298 (buffer_xml_printf): Support %d specifier.
18299 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
18301 (handle_query): Handle qXfer:threads. Announce availability
18303 * target.h (struct target_ops): New field core_of_thread.
18305 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
18307 * Makefile.in (clean): Remove new generated files.
18308 (reg-s390.o, reg-s390.c): Remove rules.
18309 (reg-s390x.o, reg-s390x.c): Likewise.
18310 (s390-linux32.o, s390-linux32.c): Add rules.
18311 (s390-linux64.o, s390-linux64.c): Likewise.
18312 (s390x-linux64.o, s390x-linux64.c): Likewise.
18313 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
18314 * linux-s390-low.c: Include <elf.h>.
18315 (HWCAP_S390_HIGH_GPRS): Define if undefined.
18316 (init_registers_s390): Remove prototype.
18317 (init_registers_s390x): Likewise.
18318 (init_registers_s390_linux32): Add prototype.
18319 (init_registers_s390_linux64): Likewise.
18320 (init_registers_s390x_linux64): Likewise.
18321 (s390_num_regs_3264): New define.
18322 (s390_regmap_3264): New global variable.
18323 (s390_cannot_fetch_register): Remove obsolete check.
18324 (s390_cannot_store_register): Likewise.
18325 (s390_collect_ptrace_register): Handle upper/lower register halves.
18326 (s390_supply_ptrace_register): Likewise.
18327 (s390_fill_gregset): Update to register number changes.
18328 (s390_get_hwcap): New routine.
18329 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
18330 Install appropriate regmap and register set.
18332 2010-01-01 Joel Brobecker <brobecker@adacore.com>
18334 * server.c (gdbserver_version): Update copyright year to 2010.
18335 * gdbreplay.c (gdbreplay_version): Likewise.
18337 2009-12-28 Doug Evans <dje@google.com>
18339 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
18340 elf/external.h. Include <elf.h> instead but only if necessary.
18342 2009-12-28 Pedro Alves <pedro@codesourcery.com>
18344 * linux-low.c (linux_remove_process): Remove `detaching'
18345 parameter. Don't release/detach from thread_db here.
18346 (linux_kill): Release/detach from thread_db here, ...
18347 (linux_detach): ... and here, before actually detaching.
18348 (linux_wait_1): ... and here, when a process exits.
18349 * thread-db.c (any_thread_of): New.
18350 (thread_db_free): Switch the current inferior to a thread of the
18353 2009-12-21 Doug Evans <dje@google.com>
18355 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
18357 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
18358 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
18359 warning ifndef __NR_tkill. Move setting of errno there too.
18360 Delete unnecessary resetting of errno after syscall.
18361 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
18363 * configure.ac: Check for dladdr.
18364 * config.in: Regenerate.
18365 * configure: Regenerate.
18366 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
18367 (try_thread_db_load): Update.
18369 * linux-low.c (my_waitpid): Delete unnecessary prototype.
18371 2009-12-18 Doug Evans <dje@google.com>
18373 * event-loop.c: Include unistd.h if it exists.
18375 * linux-low.c (my_waitpid): Move definition away from being in
18376 between linux_tracefork_child/linux_test_for_tracefork.
18378 * gdb_proc_service.h (psaddr_t): Fix type.
18379 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
18380 signature to match glibc.
18382 2009-12-16 Doug Evans <dje@google.com>
18384 * linux-low.c (linux_read_memory): Fix argument to read.
18386 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18388 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
18389 events, don't leave current_inferior pointing at null.
18391 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18393 * win32-low.c (LOG): Delete.
18394 (OUTMSG): Output to stderr.
18395 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
18396 on compile time LOG macro.
18397 (win32_wait): Fix debug output.
18399 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18401 * win32-low.c (win32_add_one_solib): If the dll name is
18402 "ntdll.dll", prepend the system directory to the dll path.
18404 2009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
18406 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
18408 2009-11-17 Nathan Sidwell <nathan@codesourcery.com>
18409 Vladimir Prus <vladimir@codesourcery.com>
18411 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
18412 * configure.ac: Check for __mcoldfire__ and set
18413 gdb_cv_m68k_is_coldfire.
18414 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
18415 reg-cf.o and reg-m68k.o.
18416 * configure: Regenerated.
18418 2009-11-16 Pedro Alves <pedro@codesourcery.com>
18420 * linux-low.c (linux_remove_process): Add `detaching' parameter.
18421 Pass it to thread_db_free.
18422 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
18423 proper `detaching' argument to linux_remove_process.
18424 * linux-low.h (thread_db_free): Add `detaching' parameter.
18425 * thread-db.c (thread_db_init): Pass false as `detaching' argument
18427 (thread_db_free): Add `detaching' parameter. Only
18428 call td_ta_clear_event if detaching from process.
18430 2009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
18432 * thread-db.c (thread_db_free): Fix typo.
18434 2009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
18437 * thread-db.c (thread_db_free): Call td_ta_clear_event.
18439 2009-11-03 Nathan Sidwell <nathan@codesourcery.com>
18441 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
18442 with an i686 compiler.
18443 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
18445 * configure: Rebuilt.
18447 2009-10-29 Sandra Loosemore <sandra@codesourcery.com>
18451 * server.c (handle_search_memory_1): Correct read_addr initialization
18452 in loop for searching subsequent chunks.
18454 2009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
18456 * configure.ac: New --with-libthread-db option.
18457 * thread-db.c: Allow direct dependence on libthread_db.
18458 (thread_db_free): Adjust.
18459 * config.in: Regenerate.
18460 * configure: Likewise.
18462 2009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
18465 * thread-db.c (attach_thread): New function.
18466 (maybe_attach_thread): Return success/failure.
18467 (find_new_threads_callback): Adjust.
18468 (thread_db_find_new_threads): Loop until no new threads.
18470 2009-10-13 Pedro Alves <pedro@codesourcery.com>
18472 * proc-service.c (ps_lgetregs): Formatting.
18474 2009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
18476 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
18477 * configure.ac: Adjust.
18478 * linux-low.h (struct process_info_private): Move members to struct
18480 (thread_db_free, thread_db_handle_monitor_command): New prototype.
18481 * linux-low.c (linux_remove_process): Adjust.
18482 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
18483 * server.c (handle_query): Move code ...
18484 (handle_monitor_command): ... here. New function.
18485 * target.h (struct target_ops): New member.
18486 * thread-db.c (struct thread_db): New.
18487 (libthread_db_search_path): New variable.
18488 (thread_db_create_event, thread_db_enable_reporting)
18489 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
18490 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
18491 (try_thread_db_load_1, dladdr_to_soname): New functions.
18492 (try_thread_db_load, thread_db_load_search): New functions.
18493 (thread_db_init): Search for libthread_db.
18494 (thread_db_free): New function.
18495 (thread_db_handle_monitor_command): Likewise.
18496 * config.in: Regenerate.
18497 * configure: Regenerate.
18499 2009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
18501 * spu-low.c (spu_kill): Wait for inferior to terminate.
18502 Call clear_inferiors.
18503 (spu_detach): Call clear_inferiors.
18505 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18507 * aclocal.m4: Regenerate.
18508 * config.in: Likewise.
18509 * configure: Likewise.
18511 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18513 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
18514 (parse_spufs_run): New function.
18515 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
18516 (ppc_breakpoint_at): Handle SPU breakpoints.
18518 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18520 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
18521 (SPUFS_MAGIC): Define.
18522 (spu_enumerate_spu_ids): New function.
18523 (linux_qxfer_spu): New function.
18524 (linux_target_ops): Install linux_qxfer_spu.
18526 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18528 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
18529 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
18530 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
18531 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
18532 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
18533 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
18534 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
18535 (init_registers_powerpc_cell32l): Add prototype.
18536 (init_registers_powerpc_cell64l): Likewise.
18537 (ppc_arch_setup): Detect Cell/B.E. architecture.
18539 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18541 * Makefile.in (datarootdir): New variable.
18543 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18545 * linux-low.c (linux_write_memory): Update debugging output.
18546 * Makefile.in (clean): Add new descriptions.
18547 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
18548 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
18549 * configure.srv: Add new files for arm*-*-linux*.
18550 * linux-arm-low.c: Add new declarations.
18551 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
18552 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
18553 (HWCAP_VFPv3D16): New.
18554 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
18555 instead of __IWMMXT__.
18556 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
18557 (arm_arch_setup): New.
18558 (target_regsets): Remove #ifdef. Add VFP regset.
18559 (the_low_target): Use arm_arch_setup.
18561 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18563 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
18564 the main thread again.
18566 2009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
18568 Adding Neutrino gdbserver.
18569 * configure: Regenerated.
18570 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
18571 * configure.srv (i[34567]86-*-nto*): New target.
18572 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
18573 * remote-utils.c [__QNX__]: Include sys/iomgr.h
18574 (nto_comctrl) [__QNX__]: New function.
18575 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
18577 2009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
18579 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
18582 2009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
18583 Pedro Alves <pedro@codesourcery.com>
18585 * win32-i386-low.c (i386_get_thread_context): Handle systems that
18586 don't support CONTEXT_EXTENDED_REGISTERS.
18587 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
18588 (the_low_target): Install them.
18589 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
18590 failing with ERROR_PIPE_NOT_CONNECTED.
18592 2009-06-30 Doug Evans <dje@google.com>
18593 Pierre Muller <muller@ics.u-strasbg.fr>
18595 Add h/w watchpoint support to x86-linux, win32-i386.
18596 * Makefile.in (SFILES): Add i386-low.c
18597 (i386_low_h): Define.
18598 (i386-low.o): Add dependencies.
18599 (linux-x86-low.o): Add i386-low.h dependency.
18600 (win32-i386-low.o): Ditto.
18601 * i386-low.c: New file.
18602 * i386-low.h: New file.
18603 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
18604 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
18605 * linux-low.c (linux_add_process): Initialize arch_private.
18606 (linux_remove_process): Free arch_private.
18607 (add_lwp): Initialize arch_private.
18608 (delete_lwp): Free arch_private.
18609 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
18611 * linux-low.h (process_info_private): New member arch_private.
18612 (lwp_info): New member arch_private.
18613 (linux_target_ops): New members new_process, new_thread,
18615 (ptid_of): New macro.
18616 * linux-x86-low.c: Include stddef.h, i386-low.h.
18617 (arch_process_info): New struct.
18618 (arch_lwp_info): New struct.
18619 (x86_linux_dr_get, x86_linux_dr_set): New functions.
18620 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18621 (i386_dr_low_get_status): New function.
18622 (x86_insert_point, x86_remove_point): New functions.
18623 (x86_stopped_by_watchpoint): New function.
18624 (x86_stopped_data_address): New function.
18625 (x86_linux_new_process, x86_linux_new_thread): New functions.
18626 (x86_linux_prepare_to_resume): New function.
18627 (the_low_target): Add entries for insert_point, remove_point,
18628 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
18630 * server.c (debug_hw_points): New global.
18631 (monitor_show_help): Document set debug-hw-points.
18632 (handle_query): Process "set debug-hw-points".
18633 * server.h (debug_hw_points): Declare.
18634 (paddress): Declare.
18635 * utils.c (NUMCELLS, CELLSIZE): New macros.
18636 (get_sell, xsnprintf, paddress): New functions.
18637 * win32-arm-low.c (the_low_target): Add entries for insert_point,
18638 remove_point, stopped_by_watchpoint, stopped_data_address.
18639 * win32-i386-low.c: Include i386-low.h.
18640 (debug_reg_state): Replaces dr.
18641 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18642 (i386_dr_low_get_status): New function.
18643 (i386_insert_point, i386_remove_point): New functions.
18644 (i386_stopped_by_watchpoint): New function.
18645 (i386_stopped_data_address): New function.
18646 (i386_initial_stuff): Update.
18647 (get_thread_context,set_thread_context,i386_thread_added): Update.
18648 (the_low_target): Add entries for insert_point,
18649 remove_point, stopped_by_watchpoint, stopped_data_address.
18650 * win32-low.c (win32_insert_watchpoint): New function.
18651 (win32_remove_watchpoint): New function.
18652 (win32_stopped_by_watchpoint): New function.
18653 (win32_stopped_data_address): New function.
18654 (win32_target_ops): Add entries for insert_watchpoint,
18655 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
18656 * win32-low.h (win32_target_ops): New members insert_point,
18657 remove_point, stopped_by_watchpoint, stopped_data_address.
18659 2009-06-25 Pedro Alves <pedro@codesourcery.com>
18661 * server.c (process_serial_event): Re-return unsupported, not
18662 error, if the type isn't recognized. Re-allow supporting only
18663 insert or remove packets. Also call require_running for
18664 breakpoints. Add missing break statement to default case. Tidy.
18665 * target.h (struct target_ops): Rename insert_watchpoint to
18666 insert_point, and remove_watchpoint to remove_point.
18668 * linux-low.h (struct linux_target_ops): Likewise.
18669 * linux-low.c (linux_insert_watchpoint): Rename to ...
18670 (linux_insert_point): ... this. Adjust.
18671 (linux_remove_watchpoint): Rename to ...
18672 (linux_remove_point): ... this. Adjust.
18673 (linux_target_ops): Adjust.
18674 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
18675 (cris_insert_point): ... this.
18676 (cris_remove_watchpoint): Rename to ...
18677 (cris_remove_point): ... this.
18678 (the_low_target): Adjust.
18680 2009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
18682 * server.c (handle_v_kill): Pass signal_pid to
18683 kill_inferior if multi_process is zero.
18685 2009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
18687 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
18688 * target.h (target_ops): Comment for *_watchpoint to make it clear
18689 the functions can get types '0' and '1'.
18691 2009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
18693 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
18694 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
18695 * regcache.c (get_regcache): Likewise.
18696 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
18697 * win32-low.c (child_fetch_inferior_registers): Remove check for
18700 2009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
18701 Pedro Alves <pedro@codesourcery.com>
18703 * target.h (struct target_ops) <supports_multi_process>: New
18705 (target_supports_multi_process): New.
18706 * server.c (handle_query): Even if GDB reports support, only
18707 enable multi-process if the target also supports it. Report
18708 multi-process support only if the target backend supports it.
18709 * linux-low.c (linux_supports_multi_process): New function.
18710 (linux_target_ops): Install it as target_supports_multi_process
18713 2009-05-24 Doug Evans <dje@google.com>
18715 Global renaming of find_thread_pid to find_thread_ptid.
18716 * server.h (find_thread_ptid): Renamed from find_thread_pid.
18717 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
18718 All callers updated.
18720 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
18721 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
18724 * linux-low.c (get_stop_pc): Print pc if debug_threads.
18725 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
18726 (linux_resume_one_lwp): Ditto.
18728 2009-05-23 Doug Evans <dje@google.com>
18730 * linux-low.c (linux_resume_one_lwp): Change type of first arg
18731 from struct inferior_list_entry * to struct lwp_info *.
18732 All callers updated.
18734 2009-05-13 Doug Evans <dje@google.com>
18736 * linux-x86-low.c: Don't include assert.h.
18737 (x86_siginfo_fixup): Use fatal, not assert.
18738 (x86_arch_setup): Fix comment.
18740 2009-05-12 Doug Evans <dje@google.com>
18742 Biarch support for i386/amd64 gdbserver.
18743 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
18744 Add linux-x86-low.c.
18745 (linux-i386-low.o, linux-x86-64-low.o): Delete.
18746 (linux-x86-low.o): Add.
18747 * linux-x86-64-low.c: Delete.
18748 * linux-i386-low.c: Delete.
18749 * linux-x86-low.c: New file.
18750 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
18752 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
18754 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
18755 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
18756 (linux_child_pid_to_exec_file): New function.
18757 (elf_64_header_p, elf_64_file_p): New functions.
18758 (siginfo_fixup): New function.
18759 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
18760 give target a chance to convert layout.
18761 * linux-low.h (linux_target_ops): New member siginfo_fixup.
18762 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
18764 2009-05-07 Doug Evans <dje@google.com>
18766 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
18767 (regsets_store_inferior_registers): Ditto.
18769 2009-05-06 Pedro Alves <pedro@codesourcery.com>
18773 * linux-low.c (must_set_ptrace_flags): Delete.
18774 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
18776 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
18777 `lwp->must_set_ptrace_flags' instead.
18778 (linux_wait_for_event_1): Set ptrace options here.
18779 (linux_wait_1): ... not here.
18781 2009-04-30 Doug Evans <dje@google.com>
18783 * inferiors.c (started_inferior_callback): New function.
18784 (attached_inferior_callback): New function.
18785 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
18786 * server.c (print_started_pid, print_attached_pid): New functions.
18787 (detach_or_kill_for_exit): New function.
18788 (main): Call it instead of for_each_inferior (kill_inferior_callback).
18789 * server.h (have_started_inferiors_p): Declare.
18790 (have_attached_inferiors_p): Declare.
18792 * inferiors.c (remove_process): Fix memory leak, free process.
18793 * linux-low.c (linux_remove_process): New function.
18794 (linux_kill): Call it instead of remove_process.
18795 (linux_detach, linux_wait_1): Ditto.
18797 2009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
18799 * configure.srv: Add x86 Windows CE target.
18801 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
18803 * inferiors.c (get_thread_process): Make global.
18804 * server.h (get_thread_process): Add prototype.
18805 * thread-db.c (find_one_thread): Use get_thread_process
18806 instead of current_process.
18807 (thread_db_get_tls_address): Do not crash if called when
18808 thread layer is not yet initialized.
18810 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
18812 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
18813 * spu-low.c (current_tid): Rename to ...
18814 (current_ptid): ... this.
18815 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
18816 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
18817 ptid_get_lwp (current_ptid) instead of current_tid.
18818 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
18819 instead of current_tid. Use find_process_pid to verify pid
18820 argument is valid. Pass proper argument to remove_process.
18821 (spu_thread_alive): Compare current_ptid instead of current_tid.
18822 (spu_resume): Likewise.
18824 2009-04-02 Pedro Alves <pedro@codesourcery.com>
18826 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
18829 2009-04-01 Pedro Alves <pedro@codesourcery.com>
18831 Implement the multiprocess extensions, and add linux multiprocess
18834 * server.h (ULONGEST): Declare.
18835 (struct ptid, ptid_t): New.
18836 (minus_one_ptid, null_ptid): Declare.
18837 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
18838 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
18839 (struct inferior_list_entry): Change `id' type from unsigned from
18841 (struct sym_cache, struct breakpoint, struct
18842 process_info_private): Forward declare.
18843 (struct process_info): Declare.
18844 (current_process): Declare.
18845 (all_processes): Declare.
18846 (initialize_inferiors): Declare.
18847 (add_thread): Adjust to use ptid_t.
18848 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
18849 (add_process, remove_process, find_thread_pid): Declare.
18850 (find_inferior_id): Adjust to use ptid_t.
18851 (cont_thread, general_thread, step_thread): Change type to ptid_t.
18852 (multi_process): Declare.
18853 (push_event): Adjust to use ptid_t.
18854 (read_ptid, write_ptid): Declare.
18855 (prepare_resume_reply): Adjust to use ptid_t.
18856 (clear_symbol_cache): Declare.
18857 * inferiors.c (all_processes): New.
18858 (null_ptid, minus_one_ptid): New.
18859 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
18860 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
18861 (add_thread): Change unsigned long to ptid. Remove gdb_id
18863 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
18864 (gdb_id_to_thread): Rename to ...
18865 (find_thread_pid): ... this. Change unsigned long to ptid.
18866 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
18867 (loaded_dll, pull_pid_from_list): Adjust.
18868 (add_process, remove_process, find_process_pid)
18869 (get_thread_process, current_process, initialize_inferiors): New.
18870 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
18871 (struct target_waitstatus) <related_pid>: Ditto.
18872 (struct target_ops) <kill, detach>: Add `pid' argument. Change
18873 return type to int.
18874 (struct target_ops) <join>: Add `pid' argument.
18875 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
18876 (struct target_ops) <wait>: Add `ptid' field. Change return type
18878 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
18879 (mywait): Add `ptid' argument. Change return type to ptid_t.
18880 (target_pid_to_str): Declare.
18881 * target.c (set_desired_inferior): Adjust to use ptids.
18882 (mywait): Add new `ptid' argument. Adjust.
18883 (target_pid_to_str): New.
18884 * mem-break.h (free_all_breakpoints): Declare.
18885 * mem-break.c (breakpoints): Delelete.
18886 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
18887 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
18888 to use per-process breakpoint list.
18889 (free_all_breakpoints): New.
18890 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
18891 (symbol_cache, all_symbols_looked_up): Delete.
18893 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
18895 (prepare_resume_reply): Change ptid argument's type from unsigned
18896 long to ptid_t. Adjust. Implement W;process and X;process.
18897 (free_sym_cache, clear_symbol_cache): New.
18898 (look_up_one_symbol): Adjust to per-process symbol cache. *
18899 * server.c (cont_thread, general_thread, step_thread): Change type
18901 (attached): Delete.
18902 (multi_process): New.
18903 (last_ptid): Change type to ptid_t.
18904 (struct vstop_notif) <ptid>: Change type to ptid_t.
18905 (queue_stop_reply, push_event): Change `ptid' argument's type to
18907 (discard_queued_stop_replies): Add `pid' argument.
18908 (start_inferior): Adjust to use ptids. Adjust to mywait interface
18909 changes. Don't reference the `attached' global.
18910 (attach_inferior): Adjust to mywait interface changes.
18911 (handle_query): Adjust to use ptids. Parse GDB's qSupported
18912 features. Handle and report "multiprocess+". Handle
18914 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
18916 (handle_v_kill): New.
18917 (handle_v_stopped): Adjust to use target_pid_to_str.
18918 (handle_v_requests): Allow multiple attaches and runs when
18919 multiprocess extensions are in effect. Handle "vKill".
18920 (myresume): Adjust to use ptids.
18921 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
18922 (handle_status): Adjust to discard_queued_stop_replies interface
18924 (first_thread_of, kill_inferior_callback)
18925 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
18926 (main): Call initialize_inferiors. Adjust to use ptids, killing
18927 and detaching from all inferiors. Handle multiprocess packet
18929 * linux-low.h: Include gdb_proc_service.h.
18930 (struct process_info_private): New.
18931 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
18932 <lwpid_of>: Use ptid_get_lwp.
18933 (get_lwp_thread): Adjust.
18934 (struct lwp_info): Add `dead' member.
18935 (find_lwp_pid): Declare.
18936 * linux-low.c (thread_db_active): Delete.
18937 (new_inferior): Adjust comment.
18938 (inferior_pid): Delete.
18939 (linux_add_process): New.
18940 (handle_extended_wait): Adjust.
18941 (add_lwp): Change unsigned long to ptid.
18942 (linux_create_inferior): Add process to processes table. Adjust
18943 to use ptids. Don't set new_inferior here.
18944 (linux_attach_lwp): Rename to ...
18945 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
18946 it. Adjust to use ptids.
18947 (linux_attach_lwp): New.
18948 (linux_attach): Add process to processes table. Don't set
18950 (struct counter): New.
18951 (second_thread_of_pid_p, last_thread_of_process_p): New.
18952 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
18953 multiple processes.
18954 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
18955 processes. Remove process from process table.
18956 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
18957 to multiple processes.
18958 (any_thread_of): New.
18959 (linux_detach): Add `pid' argument, and handle it. Remove process
18960 from processes table.
18961 (linux_join): Add `pid' argument. Handle it.
18962 (linux_thread_alive): Change unsighed long argument to ptid_t.
18963 Consider dead lwps as not being alive.
18964 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
18965 threads we're not interested in.
18966 (same_lwp, find_lwp_pid): New.
18967 (linux_wait_for_lwp): Change `pid' argument's type from int to
18969 (linux_wait_for_event): Rename to ...
18970 (linux_wait_for_event_1): ... this. Change `pid' argument's type
18971 from int to ptid_t. Adjust.
18972 (linux_wait_for_event): New.
18973 (linux_wait_1): Add `ptid' argument. Change return type to
18974 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
18975 that exit from the process table.
18976 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
18978 (mark_lwp_dead): New.
18979 (wait_for_sigstop): Adjust to use ptids. If a process exits while
18980 stopping all threads, mark its main lwp as dead.
18981 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
18983 (fetch_register, usr_store_inferior_registers)
18984 (regsets_fetch_inferior_registers)
18985 (regsets_store_inferior_registers, linux_read_memory)
18986 (linux_write_memory): Inline `inferior_pid'.
18987 (linux_look_up_symbols): Adjust to use per-process
18988 `thread_db_active'.
18989 (linux_request_interrupt): Adjust to use ptids.
18990 (linux_read_auxv): Inline `inferior_pid'.
18991 (initialize_low): Don't reference thread_db_active.
18992 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
18993 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
18994 (ps_getpid): Return the pid of the current inferior.
18995 * thread-db.c (proc_handle, thread_agent): Delete.
18996 (thread_db_create_event, thread_db_enable_reporting): Adjust to
18998 (find_one_thread): Change argument type to ptid_t. Adjust to
19000 (maybe_attach_thread): Adjust to per-process data and ptids.
19001 (thread_db_find_new_threads): Ditto.
19002 (thread_db_init): Ditto.
19003 * spu-low.c (spu_create_inferior, spu_attach): Add process to
19004 processes table. Adjust to use ptids.
19005 (spu_kill, spu_detach): Adjust interface. Remove process from
19007 (spu_join, spu_thread_alive): Adjust interface.
19008 (spu_wait): Adjust interface. Remove process from processes
19009 table. Adjust to use ptids.
19010 * win32-low.c (current_inferior_tid): Delete.
19011 (current_inferior_ptid): New.
19012 (debug_event_ptid): New.
19013 (thread_rec): Take a ptid. Adjust.
19014 (child_add_thread): Add `pid' argument. Adjust to use ptids.
19015 (child_delete_thread): Ditto.
19016 (do_initial_child_stuff): Add `attached' argument. Add process to
19018 (child_fetch_inferior_registers, child_store_inferior_registers):
19020 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
19021 (win32_attach): Pass 1 to do_initial_child_stuff.
19022 (win32_kill): Adjust interface. Remove process from processes
19024 (win32_detach): Ditto.
19025 (win32_join): Adjust interface.
19026 (win32_thread_alive): Take a ptid.
19027 (win32_resume): Adjust to use ptids.
19028 (get_child_debug_event): Ditto.
19029 (win32_wait): Adjust interface. Remove exiting process from
19032 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19034 Non-stop mode support.
19036 * server.h (non_stop): Declare.
19037 (gdb_client_data, handler_func): Declare.
19038 (delete_file_handler, add_file_handler, start_event_loop):
19040 (handle_serial_event, handle_target_event, push_event)
19041 (putpkt_notif): Declare.
19042 * target.h (enum resume_kind): New.
19043 (struct thread_resume): Replace `step' field by `kind' field.
19044 (TARGET_WNOHANG): Define.
19045 (struct target_ops) <wait>: Add `options' argument.
19046 <supports_non_stop, async, start_non_stop>: New fields.
19047 (target_supports_non_stop, target_async): New.
19048 (start_non_stop): Declare.
19049 (mywait): Add `options' argument.
19050 * target.c (mywait): Add `options' argument. Print child exit
19051 notifications here.
19052 (start_non_stop): New.
19053 * server.c (non_stop, own_buf, mem_buf): New globals.
19054 (struct vstop_notif): New.
19055 (notif_queue): New global.
19056 (queue_stop_reply, push_event, discard_queued_stop_replies)
19057 (send_next_stop_reply): New.
19058 (start_inferior): Adjust to use resume_kind. Adjust to mywait
19060 (attach_inferior): In non-stop mode, don't wait for the target
19062 (handle_general_set): Handle QNonStop.
19063 (handle_query): When handling qC, return the current general
19064 thread, instead of the first thread of the list.
19065 (handle_query): If the backend supports non-stop mode, include
19066 QNonStop+ in the qSupported query response.
19067 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
19069 (handle_v_attach, handle_v_run): Handle non-stop mode.
19070 (handle_v_stopped): New.
19071 (handle_v_requests): Report support for vCont;t. Handle vStopped.
19072 (myresume): Adjust to use resume_kind. Handle non-stop.
19073 (queue_stop_reply_callback): New.
19074 (handle_status): Handle non-stop mode.
19075 (main): Clear non_stop flag on reconnection. Use the event-loop.
19076 Refactor serial protocol handling from here ...
19077 (process_serial_event): ... to this new function. When GDB
19078 selects any thread, select one here. In non-stop mode, wait until
19079 GDB acks all pending events before exiting.
19080 (handle_serial_event, handle_target_event): New.
19081 * remote-utils.c (remote_open): Install remote_desc in the event
19083 (remote_close): Remove remote_desc from the event loop.
19084 (putpkt_binary): Rename to...
19085 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
19086 (putpkt_binary): New as wrapper around putpkt_binary_1.
19087 (putpkt_notif): New.
19088 (prepare_resume_reply): In non-stop mode, don't change the
19090 * event-loop.c: New.
19091 * Makefile.in (OBJ): Add event-loop.o.
19092 (event-loop.o): New rule.
19094 * linux-low.h (pid_of): Moved here.
19096 (get_lwp_thread): Use lwpid_of.
19097 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
19098 * linux-low.c (pid_of): Delete.
19099 (inferior_pid): Use lwpid_of.
19100 (linux_event_pipe): New.
19101 (target_is_async_p): New.
19103 (handle_extended_wait): Use lwpid_of.
19104 (add_lwp): Don't set lwpid field.
19105 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
19106 (linux_kill_one_lwp): If killing a running lwp, stop it first.
19107 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
19108 (linux_detach_one_lwp): If detaching from a running lwp, stop it
19109 first. Adjust to linux_wait_for_event interface changes. Use
19111 (linux_detach): Don't delete the main lwp here.
19112 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
19113 (status_pending_p): Don't consider explicitly suspended lwps.
19114 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
19115 pointer. Add OPTIONS argument. Change return type to int. Use
19116 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
19117 (linux_wait_for_event): Take an integer pid instead of a lwp_info
19118 pointer. Add status pointer argument. Return a pid instead of a
19119 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
19120 changes. In non-stop mode, don't switch to a random thread.
19121 (linux_wait): Rename to...
19122 (linux_wait_1): ... this. Add target_options argument, and handle
19123 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
19124 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
19125 clean exit and signal exit code. Don't stop all threads in
19126 non-stop mode. In all-stop mode, only stop all threads when
19127 reporting a stop to GDB. Handle explicit thread stop requests.
19128 (async_file_flush, async_file_mark): New.
19130 (send_sigstop): Use lwpid_of.
19131 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
19132 interface changes. In non-stop mode, don't switch to a random
19134 (linux_resume_one_lwp): Use lwpid_of.
19135 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
19136 (linux_resume_one_thread): ... this. Handle resume_stop. In
19137 non-stop mode, don't look for pending flag in all threads.
19138 (resume_status_pending_p): Don't consider explicitly suspended
19140 (my_waitpid): Reimplement. Emulate __WALL.
19141 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19143 (sigchld_handler, linux_supports_non_stop, linux_async)
19144 (linux_start_non_stop): New.
19145 (linux_target_ops): Register linux_supports_non_stop, linux_async
19146 and linux_start_non_stop.
19147 (initialize_low): Install SIGCHLD handler.
19148 * thread-db.c (thread_db_create_event, find_one_thread)
19149 (thread_db_get_tls_address): Use lwpid_of.
19150 * win32-low.c (win32_detach): Adjust to use resume_kind.
19151 (win32_wait): Add `options' argument.
19152 * spu-low.c (spu_resume): Adjust to use resume_kind.
19153 (spu_wait): Add `options' argument.
19155 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19157 Decouple target code from remote protocol.
19159 * target.h (enum target_waitkind): New.
19160 (struct target_waitstatus): New.
19161 (struct target_ops) <wait>: Return an unsigned long. Take a
19162 target_waitstatus pointer instead of a char pointer.
19163 (mywait): Likewise.
19164 * target.c (mywait): Change prototype to return an unsigned long.
19165 Take a target_waitstatus pointer instead of a char pointer. Adjust.
19166 * server.h (thread_from_wait, old_thread_from_wait): Delete
19168 (prepare_resume_reply): Change prototype to take a
19170 * server.c (thread_from_wait, old_thread_from_wait): Delete.
19171 (last_status, last_ptid): New.
19172 (start_inferior): Remove "statusptr" argument. Adjust. Return a
19173 pid instead of a signal.
19174 (attach_inferior): Remove "status" and "signal" parameters.
19176 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
19178 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
19179 (handle_v_requests, myresume): Remove "status" and "signal"
19180 parameters. Adjust.
19181 (handle_status): New.
19182 (main): Delete local `status'. Adjust.
19183 * remote-utils.c: Include target.h.
19184 (prepare_resume_reply): Change prototype to take a
19185 target_waitstatus. Adjust.
19187 * linux-low.c (linux_wait): Adjust to new target_ops->wait
19189 * spu-low.c (spu_wait): Adjust.
19190 * win32-low.c (enum target_waitkind, struct target_waitstatus):
19192 (win32_wait): Adjust.
19194 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19196 * target.h (struct thread_resume): Delete leave_stopped member.
19197 (struct target_ops): Add a `n' argument to the `resume' callback.
19198 * server.c (start_inferior): Adjust.
19199 (handle_v_cont, myresume): Adjust.
19200 * linux-low.c (check_removed_breakpoint): Adjust to resume
19201 interface change, and to removed leave_stopped field.
19202 (resume_ptr): Delete.
19203 (struct thread_resume_array): New.
19204 (linux_set_resume_request): Add new `arg' parameter. Adjust to
19205 resume interface change.
19206 (linux_continue_one_thread, linux_queue_one_thread)
19207 (resume_status_pending_p): Check if the resume field is NULL
19208 instead of checking the leave_stopped member.
19209 (linux_resume): Adjust to the target resume interface change.
19210 * spu-low.c (spu_resume): Adjust to the target resume interface
19212 * win32-low.c (win32_detach, win32_resume): Ditto.
19214 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19216 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
19218 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
19220 (linux_continue_one_thread): Only preserve the stepping flag if
19221 there's a pending breakpoint.
19223 2009-03-31 Pedro Alves <pedro@codesourcery.com>
19225 * server.c (main): After the inferior having exited, call
19226 remote_close before exiting gdbserver.
19228 2009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
19230 Fix size of FPSCR in Power 7 processors.
19231 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
19232 (PPC_FEATURE_HAS_DFP): New #define.
19233 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
19236 2009-03-23 Pedro Alves <pedro@codesourcery.com>
19238 * server.c (handle_query) Whitespace and formatting.
19240 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19242 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
19243 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
19244 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
19245 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
19246 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
19247 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
19248 Makefile.in, configure.ac: Fix whitespace throughout.
19249 * configure: Regenerate.
19251 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19253 * inferiors.c (find_inferior): Make it safe for the callback
19254 function to delete the currently iterated inferior.
19256 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19258 * Makefile.in (linuw_low_h): Move higher.
19259 (thread-db.o): Depend on $(linux_low_h).
19261 2009-03-17 Pedro Alves <pedro@codesourcery.com>
19263 Rename "process" to "lwp" throughout.
19265 * linux-low.c (all_processes): Rename to...
19266 (all_lwps): ... this.
19267 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
19268 (add_process): Rename to ...
19269 (add_lwp): ... this. Adjust.
19270 (linux_create_inferior): Adjust.
19271 (linux_attach_lwp): Adjust.
19272 (linux_attach): Adjust.
19273 (linux_kill_one_process): Rename to ...
19274 (linux_kill_one_lwp): ... this. Adjust.
19275 (linux_kill): Adjust.
19276 (linux_detach_one_process): Rename to ...
19277 (linux_detach_one_lwp): ... this. Adjust.
19278 (linux_detach): Adjust.
19279 (check_removed_breakpoint): Adjust.
19280 (status_pending_p): Adjust.
19281 (linux_wait_for_process): Rename to ...
19282 (linux_wait_for_lwp): ... this. Adjust.
19283 (linux_wait_for_event): Adjust.
19284 (send_sigstop): Adjust.
19285 (wait_for_sigstop): Adjust.
19286 (stop_all_processes): Rename to ...
19287 (stop_all_lwps): ... this.
19288 (linux_resume_one_process): Rename to ...
19289 (linux_resume_one_lwp): ... this. Adjust.
19290 (linux_set_resume_request, linux_continue_one_thread)
19291 (linux_queue_one_thread, resume_status_pending_p)
19292 (usr_store_inferior_registers, regsets_store_inferior_registers)
19293 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19295 * linux-low.h (get_process): Rename to ...
19296 (get_lwp): ... this. Adjust.
19297 (get_thread_process): Rename to ...
19298 (get_thread_lwp): ... this. Adjust.
19299 (get_process_thread): Rename to ...
19300 (get_lwp_thread): ... this. Adjust.
19301 (struct process_info): Rename to ...
19302 (struct lwp_info): ... this.
19303 (all_processes): Rename to ...
19304 (all_lwps): ... this.
19305 * proc-service.c (ps_lgetregs): Adjust.
19306 * thread-db.c (thread_db_create_event, find_one_thread)
19307 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
19309 2009-03-14 Pedro Alves <pedro@codesourcery.com>
19311 * server.c (handle_query): Handle "qAttached".
19313 2009-03-13 Nathan Sidwell <nathan@codesourcery.com>
19315 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
19316 GPLv3, update license URL.
19318 2009-03-01 Doug Evans <dje@google.com>
19320 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
19321 (server_h): Add gdb_signals.h.
19322 (signals.o): Update.
19323 * server.h (target_signal_from_host,target_signal_to_host_p)
19324 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
19326 2009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
19328 * remote-utils.c (getpkt): Also generate remote-debug
19329 information if noack_mode is set.
19331 2009-02-06 Pedro Alves <pedro@codesourcery.com>
19333 * server.c (handle_query): Report qXfer:siginfo:read and
19334 qXfer:siginfo:write as supported and handle them.
19335 * target.h (struct target_ops) <qxfer_siginfo>: New field.
19336 * linux-low.c (linux_xfer_siginfo): New.
19337 (linux_target_ops): Set it.
19339 2009-01-26 Pedro Alves <pedro@codesourcery.com>
19341 * server.c (gdbserver_usage): Mention --remote-debug.
19342 (main): Accept '--remote-debug' switch.
19344 2009-01-18 Doug Evans <dje@google.com>
19346 * regcache.c (new_register_cache): No need to check result of xcalloc.
19347 * server.c (handle_search_memory): Back out calls to xmalloc,
19348 result is checked and error is returned to user upon failure.
19349 (handle_query): Ditto. Add more checks for result of malloc.
19350 (handle_v_cont): Check result of malloc, report error back to
19352 (handle_v_run): Ditto. Call freeargv.
19353 * server.h (freeargv): Declare.
19354 * utils.c (freeargv): New fn.
19356 2009-01-15 Doug Evans <dje@google.com>
19358 * gdbreplay.c (perror_with_name): Make arg const char *.
19359 * server.h (target_signal_to_name): Make return type const char *.
19360 * thread-db.c (thread_db_err_str): Make return type const char *.
19361 * utils.c (perror_with_name): Make arg const char *.
19363 2009-01-14 Pedro Alves <pedro@codesourcery.com>
19365 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
19366 when handling a EXIT_PROCESS_DEBUG_EVENT.
19368 2009-01-06 Joel Brobecker <brobecker@adacore.com>
19370 * gdbreplay.c (gdbreplay_version): Update copyright year.
19371 * server.c (gdbserver_version): Likewise.
19373 2009-01-05 Doug Evans <dje@google.com>
19375 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
19376 (handle_extended_wait): Improve comment.
19378 2008-12-13 Doug Evans <dje@google.com>
19380 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
19381 * server.h (ATTR_MALLOC): New macro.
19382 (xmalloc,xcalloc,xstrdup): Declare.
19383 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
19384 * inferiors.c: Ditto.
19385 * linux-low.c: Ditto.
19386 * mem-break.c: Ditto.
19387 * regcache.c: Ditto.
19388 * remote-utils.c: Ditto.
19391 * win32-low.c: Ditto.
19393 2008-12-12 Doug Evans <dje@google.com>
19395 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
19396 in debugging printf.
19398 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
19400 2008-12-09 Doug Evans <dje@google.com>
19402 * linux-low.h (struct process_info): Delete member tid, unused.
19403 * thread-db.c (find_one_thread): Update.
19404 (maybe_attach_thread): Update.
19406 2008-12-02 Pedro Alves <pedro@codesourcery.com>
19408 * target.h (struct target_ops): Add qxfer_osdata member.
19409 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
19411 (linux_qxfer_osdata): New functions.
19412 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
19414 * server.c (handle_query): Handle "qXfer:osdata:read:".
19415 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
19416 (buffer_xml_printf): New functions.
19417 * server.h (struct buffer): New.
19418 (buffer_grow_str, buffer_grow_str0): New macros.
19419 (buffer_grow, buffer_free, buffer_init, buffer_finish)
19420 (buffer_xml_printf): Declare.
19422 2008-11-24 Doug Evans <dje@google.com>
19424 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
19426 2008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
19428 * server.c (handle_v_run): Always use the supplied argument list.
19430 2008-11-19 Bob Wilson <bob.wilson@acm.org>
19432 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
19433 (xtensa_regmap_table): Add entry for scompare1.
19435 2008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
19437 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
19438 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
19439 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
19440 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
19441 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
19442 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
19443 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
19444 XML target descriptions.
19445 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
19446 when inferior is running on an ISA 2.05 or later processor. Add
19447 special case to return offset for full 64-bit slot of FPSCR when
19450 2008-11-14 Daniel Gutson <dgutson@codesourcery.com>
19452 * Makefile.in (SFILES, clean): Added sparc64 files.
19453 (reg-sparc64.o, reg-sparc64.c): New.
19454 * configure.srv (sparc*-*-linux*): New configuration.
19455 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
19456 syscall arguments for SPARC.
19457 (regsets_store_inferior_registers): Likewise.
19458 * linux-sparc-low.c: New file.
19460 2008-10-21 Doug Evans <dje@google.com>
19462 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
19463 (READLINE_DIR,READLINE_DEP): Delete.
19464 (INTERNAL_CFLAGS): Update.
19465 (LINTFLAGS): Update.
19467 2008-10-10 Pedro Alves <pedro@codesourcery.com>
19469 * server.c (handle_v_run): If GDB didn't specify an argv, use the
19470 whole argv from the last run, not just argv[0].
19472 2008-09-08 Pedro Alves <pedro@codesourcery.com>
19474 * regcache.c (new_register_cache): Return NULL if the register
19475 cache size isn't known yet.
19476 (free_register_cache): Avoid dereferencing a NULL regcache.
19478 2008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
19480 * configure.srv: Merge MIPS and MIPS64.
19482 2008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
19484 * Makefile.in (uninstall): Apply $(EXEEXT) too.
19486 2008-08-18 Luis Machado <luisgpm@br.ibm.com>
19488 * Makefile.in: Add required vsx dependencies.
19490 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
19491 Declare init_registers_powerpc_vsx32l.
19492 Declare init_registers_powerpc_vsx64l.
19493 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
19494 (ppc_arch_setup): Check for VSX in hwcap.
19495 (ppc_fill_vsxregset): New function.
19496 (ppc_store_vsxregset): New function.
19497 Add new VSX entry in regset_info target_regsets.
19499 * configure.srv: Add new VSX dependencies.
19501 2008-08-12 Pedro Alves <pedro@codesourcery.com>
19503 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
19504 (remote_open): Set or clear transport_is_reliable.
19505 (putpkt_binary): Don't expect acks in noack mode.
19506 (getpkt): Don't send ack/nac in noack mode.
19507 * server.c (handle_general_set): Handle QStartNoAckMode.
19508 (handle_query): If connected by tcp pass QStartNoAckMode+ in
19510 (main): Reset noack_mode on every connection.
19511 * server.h (noack_mode): Declare.
19513 2008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19515 * Makefile.in (GDBREPLAY_OBS): New variable.
19516 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
19518 2008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
19519 Daniel Jacobowitz <dan@codesourcery.com>
19521 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
19522 (usr_store_inferior_registers): Likewise.
19523 (regsets_store_inferior_registers): Likewise.
19525 2008-07-31 Rolf Jansen <rj@surtec.com>
19526 Pedro Alves <pedro@codesourcery.com>
19528 * configure.ac: Check for memmem declaration.
19529 * server.c [HAVE_MALLOC_H]: Include malloc.h.
19530 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
19531 (disable_packet_qfThreadInfo): Unconditionally compile.
19532 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
19533 * configure, config.in: Regenerate.
19535 2008-07-28 Doug Kwan <dougkwan@google.com>
19537 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
19538 (linux_write_memory): Remove declaration of errno.
19540 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
19542 * linux-low.c (handle_extended_wait): Do not use "status"
19543 variable uninitialized.
19545 2008-07-07 Pedro Alves <pedro@codesourcery.com>
19547 * server.c (handle_v_attach): Inhibit reporting dll changes.
19549 2008-06-27 Pedro Alves <pedro@codesourcery.com>
19551 * remote-utils.c (prepare_resume_reply): If requested, don't
19552 output "thread:TID" in the T stop reply.
19554 * server.c (disable_packet_vCont, disable_packet_Tthread)
19555 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
19556 (handle_query): If requested, disable support for qC, qfThreadInfo
19558 (handle_v_requests): If requested, disable support for vCont.
19559 (gdbserver_show_disableable): New.
19560 (main): Handle --disable-packet and --disable-packet=LIST.
19562 * server.h (disable_packet_vCont, disable_packet_Tthread)
19563 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
19565 2008-06-20 Carlos O'Donell <carlos@codesourcery.com>
19567 * server.c (gdbserver_usage): Mention --version.
19569 2008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
19571 * Makefile.in (gdbreplay.o): New rule.
19573 2008-06-06 Joseph Myers <joseph@codesourcery.com>
19575 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
19576 message, not gdbserver.
19578 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
19579 Nathan Sidwell <nathan@codesourcery.com>
19580 Joseph Myers <joseph@codesourcery.com>
19582 * acinclude.m4: Include ../../config/acx.m4.
19583 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
19584 * configure, config.in: Regenerate.
19585 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
19586 * server.c (gdbserver_version): Print PKGVERSION.
19587 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
19588 (main): Adjust gdbserver_usage calls.
19589 * gdbreplay.c (version, host_name): Add declarations.
19590 (gdbreplay_version, gdbreplay_usage): New.
19591 (main): Accept --version and --help options.
19593 2008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
19595 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
19596 (arm_breakpoint_at): Handle Thumb.
19597 (the_low_target): Add comment.
19599 2008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
19601 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
19603 2008-05-09 Doug Evans <dje@google.com>
19605 * server.h (decode_search_memory_packet): Declare.
19606 * remote-utils.c (decode_search_memory_packet): New fn.
19607 * server.c (handle_search_memory_1): New fn.
19608 (handle_search_memory): New fn.
19609 (handle_query): Process qSearch:memory packets.
19611 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
19613 * regcache.c (registers_length): Remove.
19614 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
19615 full register packet.
19616 * regcache.h (registers_length): Remove prototype.
19617 * server.h (PBUFSIZ): Define to 16384.
19619 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
19621 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
19622 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
19623 powerpc-64l.o, and powerpc-altivec64l.o.
19624 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
19625 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
19626 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
19627 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
19628 rs6000/power-linux.xml, and rs6000/power64-linux.xml
19631 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
19632 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
19633 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
19634 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
19635 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
19636 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
19637 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
19638 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
19639 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
19640 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
19643 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
19644 (init_registers_powerpc_32l): ... this new prototype.
19645 (init_registers_powerpc_32): Remove, replace by ...
19646 (init_registers_powerpc_altivec32l): ... this new prototype.
19647 (init_registers_powerpc_e500): Remove, replace by ...
19648 (init_registers_powerpc_e500l): ... this new prototype.
19649 (init_registers_ppc64): Remove, replace by ...
19650 (init_registers_powerpc_64l): ... this new prototype.
19651 (init_registers_powerpc_64): Remove, replace by ...
19652 (init_registers_powerpc_altivec64l): ... this new prototype.
19653 (ppc_num_regs): Set to 73.
19654 (PT_ORIG_R3, PT_TRAP): Define if necessary.
19655 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
19656 (ppc_cannot_store_register): Handle orig_r3 and trap.
19657 (ppc_arch_setup): Update init_registers_... calls.
19658 (ppc_fill_gregset): Handle orig_r3 and trap.
19660 * inferiors.c (clear_inferiors): Reset current_inferior.
19662 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
19664 * acinclude.m4: Add override.m4.
19665 * configure: Regenerate.
19667 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19669 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
19670 initial call to init_register_ppc64.
19672 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19674 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
19675 single powerpc*-*-linux* case.
19676 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
19678 2008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
19680 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
19681 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
19683 * linux-ppc-low.c: Include <elf.h>.
19684 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
19685 (ppc_hwcap): New global variable.
19686 (ppc_regmap): Remove __SPE__ #ifdef sections.
19687 (ppc_regmap_e500): New global variable.
19688 (ppc_cannot_store_register): Update __SPE__ special case.
19689 (ppc_get_hwcap): New function.
19690 (ppc_arch_setup): Use it to determine whether inferior supports
19691 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
19692 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
19693 Do not access registers if target does not support AltiVec.
19694 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
19695 Do not access registers if target does not support SPE.
19696 (target_regsets): Unconditionally include AltiVec and SPE regsets.
19698 2008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
19700 * linux-low.c (disabled_regsets, num_regsets): New.
19701 (use_regsets_p): Delete.
19702 (linux_wait_for_process): Clear disabled_regsets.
19703 (regsets_fetch_inferior_registers): Check and set it.
19704 (regsets_store_inferior_registers): Likewise.
19705 (linux_fetch_registers, linux_store_registers): Do not use
19707 (initialize_low): Allocate disabled_regsets.
19709 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
19711 * Makefile.in (LIBOBJS): New.
19712 (OBS): Use LIBOBJS.
19713 (memmem.o): New rule.
19714 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
19715 * configure: Regenerated.
19717 2008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
19719 * server.c (handle_query): Never return "unsupported" for
19720 qXfer:features:read queries.
19722 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
19724 * server.c (get_features_xml): Fix inverted condition.
19725 (handle_query): Always support qXfer:feature:read.
19727 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
19729 * server.c (wrapper_argv): New.
19730 (start_inferior): Handle wrapper_argv. If set, expect an extra
19732 (gdbserver_usage): Document --wrapper.
19733 (main): Parse --wrapper.
19735 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19737 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
19738 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
19739 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
19740 (ppc_set_pc): Likewise.
19741 (ppc_arch_setup): New function.
19742 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
19743 of collect_register.
19744 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
19746 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19748 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
19749 instead of linux-ppc64-low.o.
19750 * linux-ppc64-low.c: Remove file.
19751 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
19752 (linux-ppc64-low.o): Remove rule.
19754 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
19755 (init_registers_powerpc_64): Likewise.
19756 (ppc_regmap): Conditionally define depending on __powerpc64__.
19757 (ppc_cannot_store_register): Do not special-case "fpscr" when
19758 compiled on __powerpc64__.
19759 (ppc_collect_ptrace_register): New function.
19760 (ppc_supply_ptrace_register): New function.
19761 (ppc_breakpoint): Change type to "unsigned int".
19762 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
19763 (the_low_target): Conditionally provide initializers for the
19764 arch_setup member depending on __powerpc64__. Install
19765 collect_ptrace_register and supply_ptrace_register members.
19767 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19769 * regcache.h (gdbserver_xmltarget): Add extern declaration.
19770 * server.c (gdbserver_xmltarget): Define.
19771 (get_features_xml): Use it to replace "target.xml" and arch_string.
19773 * configure.srv: Remove srv_xmltarget. Add XML files that were
19774 mentioned there to srv_xmlfiles instead. Remove conditional tests
19775 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
19776 srv_xmlfiles and srv_regobj to include all possible choices.
19777 * configure.ac (srv_xmltarget): Remove.
19778 (srv_xmlfiles): Do not add "target.xml".
19779 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
19780 checks for supplementary target information.
19781 * configure: Regenerate.
19782 * Makefile.in (XML_TARGET): Remove.
19783 (target.xml): Remove rule.
19784 (clean): Do not clean up target.xml.
19785 (.PRECIOUS): Do not mention target.xml.
19787 * target.h (struct target_ops): Remove arch_string member.
19788 * linux-low.c (linux_arch_string): Remove.
19789 (linux_target_ops): Remove arch_string initializer.
19790 * linux-low.h (struct linux_target_ops): Remove arch_string member.
19791 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
19792 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
19793 * spu-low.c (spu_arch_string): Remove.
19794 (spu_target_ops): Remove arch_string initializer.
19795 * win32-low.c (win32_arch_string): Remove.
19796 (win32_target_ops): Remove arch_string initializer.
19797 * win32-low.h (struct win32_target_ops): Remove arch_string member.
19798 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
19799 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
19801 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19803 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
19804 by collect_ptrace_register and supply_ptrace_register hooks.
19805 * linux-low.c (fetch_register): Use supply_ptrace_register callback
19806 instead of checking for the_low_target.left_pad_xfer.
19807 (usr_store_inferior_registers): Use collect_ptrace_register callback
19808 instead of checking for the_low_target.left_pad_xfer.
19810 * linux-s390-low.c (s390_collect_ptrace_register): New function.
19811 (s390_supply_ptrace_register): Likewise.
19812 (s390_fill_gregset): Call s390_collect_ptrace_register.
19813 (the_low_target): Update.
19815 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
19816 (ppc_supply_ptrace_register): Likewise.
19817 (the_low_target): Update.
19819 * linux-i386-low.c (the_low_target): Update.
19820 * linux-x86-64-low.c (the_low_target): Update.
19822 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19824 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
19825 reg-s390.o and reg-s390x.o.
19827 * linux-low.c (new_inferior): New global variable.
19828 (linux_create_inferior, linux_attach): Set it.
19829 (linux_wait_for_process): Call the_low_target.arch_setup after the
19830 target has stopped for the first time.
19831 (initialize_low): Do not call the_low_target.arch_setup.
19833 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
19834 (s390_set_pc): Likewise.
19835 (s390_arch_setup): New function.
19836 (the_low_target): Use s390_arch_setup as arch_setup routine.
19838 * regcache.c (realloc_register_cache): New function.
19839 (set_register_cache): Call it for each existing regcache.
19841 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19843 * server.h (init_registers): Remove prototype.
19845 * linux-low.h (struct linux_target_ops): Add arch_setup field.
19846 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
19847 instead of init_registers ().
19848 * linux-arm-low.c (init_registers_arm): Add prototype.
19849 (init_registers_arm_with_iwmmxt): Likewise.
19850 (the_low_target): Add initializer for arch_setup field.
19851 * linux-cris-low.c (init_registers_cris): Add prototype.
19852 (the_low_target): Add initializer for arch_setup field.
19853 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
19854 (the_low_target): Add initializer for arch_setup field.
19855 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
19856 (the_low_target): Add initializer for arch_setup field.
19857 * linux-ia64-low.c (init_registers_ia64): Add prototype.
19858 (the_low_target): Add initializer for arch_setup field.
19859 * linux-m32r-low.c (init_registers_m32r): Add prototype.
19860 (the_low_target): Add initializer for arch_setup field.
19861 * linux-m68k-low.c (init_registers_m68k): Add prototype.
19862 (the_low_target): Add initializer for arch_setup field.
19863 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
19864 (init_registers_mips64_linux): Likewise.
19865 (the_low_target): Add initializer for arch_setup field.
19866 * linux-ppc-low.c (init_registers_ppc): Add prototype.
19867 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
19868 (the_low_target): Add initializer for arch_setup field.
19869 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
19870 (init_registers_powerpc_64): Likewise.
19871 (the_low_target): Add initializer for arch_setup field.
19872 * linux-s390-low.c (init_registers_s390): Add prototype.
19873 (init_registers_s390x): Likewise.
19874 (the_low_target): Add initializer for arch_setup field.
19875 * linux-sh-low.c (init_registers_sh): Add prototype.
19876 (the_low_target): Add initializer for arch_setup field.
19877 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
19878 (the_low_target): Add initializer for arch_setup field.
19879 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
19880 (the_low_target): Add initializer for arch_setup field.
19882 * win32-low.h (struct win32_target_ops): Add arch_setup field.
19883 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
19884 instead of init_registers ().
19885 * win32-arm-low.c (init_registers_arm): Add prototype.
19886 (the_low_target): Add initializer for arch_setup field.
19887 * win32-i386-low.c (init_registers_i386): Add prototype.
19888 (the_low_target): Add initializer for arch_setup field.
19890 * spu-low.c (init_registers_spu): Add prototype.
19891 (initialize_low): Call initialie_registers_spu () instead of
19892 initialize_registers ().
19894 2008-02-19 Pedro Alves <pedro@codesourcery.com>
19896 * server.c (handle_v_requests): When handling the vRun and vAttach
19897 packets, if already debugging a process, don't kill it. Return an
19900 2008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
19902 * server.c (handle_query): Correct length check.
19904 2008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
19906 * win32-low.c (do_initial_child_stuff): Add process handle
19907 parameter. Set current_process_handle and current_process_id from the
19908 parameters. Clear globals.
19909 (win32_create_inferior): Don't set current_process_handle and
19910 current_process_id here. Instead pass them on the call to
19911 do_initial_child_stuff.
19912 (win32_attach): Likewise.
19913 (win32_clear_inferiors): New.
19914 (win32_kill): Don't close the current process handle or the
19915 current thread handle here. Instead call win32_clear_inferiors.
19916 (win32_detach): Don't open a new handle to the process. Call
19917 win32_clear_inferiors.
19918 (win32_join): Don't rely on current_process_handle; open a new
19919 handle using the process id.
19920 (win32_wait): Call win32_clear_inferiors when the inferior process
19923 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
19925 * server.c (monitor_show_help): Add "exit".
19927 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
19929 * Makefile.in (SFILES): Add linux-xtensa-low.c.
19930 (clean): Add reg-xtensa.c.
19931 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
19932 * configure.srv (xtensa*-*-linux*) New target.
19933 * linux-xtensa-low.c: New.
19934 * xtensa-xtregs.c: New.
19936 2008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
19938 * hostio.c: Don't include errno.h.
19939 (errno_to_fileio_errno): Move to hostio-errno.
19940 * hostio.c: (hostio_error): Remove the error parameter. Defer the
19941 error number outputting to the target->hostio_last_error callback.
19942 (hostio_packet_error): Use FILEIO_EINVAL directly.
19943 (handle_open, handle_pread, hostio_error, handle_unlink): Update
19944 calls to hostio_error.
19945 * hostio-errno.c: New.
19946 * server.h (hostio_last_error_from_errno): Declare.
19947 * target.h (target_ops): Add hostio_last_error member.
19948 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
19949 as hostio_last_error handler.
19950 * spu-low.c (spu_target_ops): Likewise.
19951 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
19952 (wince_hostio_last_error): New functions.
19953 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
19954 as hostio_last_error handler.
19955 (win32_target_ops) [!_WIN32_WCE]: Register
19956 hostio_last_error_from_errno as hostio_last_error handler.
19957 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
19958 (hostio-errno.o): New rule.
19959 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
19960 * configure.srv (srv_hostio_err_objs): New variable. Default to
19962 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
19963 * configure: Regenerate.
19965 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
19967 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
19968 (linux_kill, linux_detach): Clean up the process list.
19969 * remote-utils.c (remote_open): Improve port number parsing.
19970 (putpkt_binary, input_interrupt): Only send interrupts if the target
19972 * server.c (extended_protocol): Make static.
19973 (attached): Define earlier.
19974 (exit_requested, response_needed, program_argv): New variables.
19975 (target_running): New.
19976 (start_inferior): Clear attached here.
19977 (attach_inferior): Set attached here.
19978 (require_running): Define.
19979 (handle_query): Use require_running and target_running. Implement
19981 (handle_v_attach, handle_v_run): New.
19982 (handle_v_requests): Use require_running. Handle vAttach and vRun.
19983 (gdbserver_usage): Update.
19984 (main): Redo argument parsing. Handle --debug and --multi. Handle
19985 --attach along with other options or after the port. Save
19986 program_argv. Support no initial program. Resynchronize
19987 communication with GDB after an error. Handle "monitor exit".
19988 Use require_running and target_running. Always allow the extended
19989 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
19990 restart in extended mode.
19991 * README: Refer to the GDB manual. Update --attach usage.
19993 2007-12-20 Andreas Schwab <schwab@suse.de>
19995 * linux-low.c (STACK_SIZE): Define.
19996 (linux_tracefork_child): Use it. Use __clone2 on ia64.
19997 (linux_test_for_tracefork): Likewise.
19999 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
20001 * linux-low.c (linux_wait_for_event): Update messages. Do not
20002 reinsert auto-delete breakpoints.
20003 * mem-break.c (struct breakpoint): Change return type of handler to
20005 (set_breakpoint_at): Update handler type.
20006 (reinsert_breakpoint_handler): Return 1 instead of calling
20008 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
20010 (check_breakpoints): Delete auto-delete breakpoints and return 2.
20011 * mem-break.h (set_breakpoint_at): Update handler type.
20012 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
20013 * win32-low.c (auto_delete_breakpoint): New.
20014 (get_child_debug_event): Use it.
20016 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
20018 * configure.ac: Check for pread and pwrite.
20019 * hostio.c (handle_pread): Fall back to lseek and read.
20020 (handle_pwrite): Fall back to lseek and write.
20021 * config.in, configure: Regenerated.
20023 2007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
20025 * server.c (myresume): Add own_buf argument.
20026 (main): Update calls.
20028 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
20030 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
20031 * remote-utils.c (remote_open): Do not call disable_async_io.
20032 (block_async_io): Delete.
20033 (unblock_async_io): Make static.
20034 (initialize_async_io): New.
20035 * server.c (handle_v_cont): Handle async I/O here.
20036 (myresume): Likewise. Move other common resume tasks here...
20037 (main): ... from here. Call initialize_async_io. Disable async
20038 I/O before the main loop.
20039 * server.h (initialize_async_io): Declare.
20040 (block_async_io, unblock_async_io): Delete prototypes.
20041 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
20043 2007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
20045 * remote-utils.c (readchar): Allow binary data in received messages.
20047 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20049 * win32-low.c (attaching): New global.
20050 (win32_create_inferior): Clear the `attaching' global.
20051 (win32_attach): Set the `attaching' global.
20052 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
20053 attaching. Only set a breakpoint at the entry point if not
20056 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20058 * server.c (main): Don't report dll events on the initial
20059 connection on attaches.
20061 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20063 * server.c (main): Relax numerical bases supported for the pid of
20064 the --attach command line argument.
20066 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20068 * win32-low.c (win32_attach): Call OpenProcess before
20069 DebugActiveProcess, not after. Add last error output to error
20072 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20074 * win32-low.c (win32_get_thread_context)
20075 (win32_set_thread_context): New functions.
20076 (thread_rec): Use win32_get_thread_context.
20077 (continue_one_thread, win32_resume): Use win32_set_thread_context.
20078 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
20081 2007-12-03 Leo Zayas
20082 Pedro Alves <pedro_alves@portugalmail.pt>
20084 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
20086 (child_add_thread): Minor cleanup.
20087 (child_continue): Resume artificially suspended threads before
20088 calling ContinueDebugEvent.
20089 (suspend_one_thread): New.
20090 (fake_breakpoint_event): New.
20091 (get_child_debug_event): Change return type to int. Check here if
20092 gdb sent an interrupt request. If a soft interrupt was requested,
20093 fake a breakpoint event. Return 0 if there is no event to handle,
20095 (win32_wait): Don't check here if gdb sent an interrupt request.
20096 Ensure there is a valid event to handle.
20097 (win32_request_interrupt): Add soft interruption method as last
20100 2007-12-03 Leo Zayas
20101 Pedro Alves <pedro_alves@portugalmail.pt>
20103 * win32-low.h (win32_thread_info): Add descriptions to the
20104 structure members. Replace `suspend_count' counter by a
20106 * win32-low.c (thread_rec): Update condition of when to get the
20107 context from the inferior. Rely on ContextFlags being set if it
20108 has already been retrieved. Only suspend the inferior thread if
20109 we haven't already. Warn if that fails.
20110 (continue_one_thread): s/suspend_count/suspended/. Only call
20111 ResumeThread once. Warn if that fails.
20113 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20115 * win32-low.c (win32_wait): Don't read from the inferior when it
20116 has already exited.
20118 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20120 * Makefile.in (win32_low_h): New variable.
20121 (win32-low.o): Add dependency on $(win32_low_h).
20122 (win32-arm-low.o, win32-i386-low.o): New rules.
20124 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20126 * hostio.c: Correct copyright year.
20128 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20130 * Makefile.in (OBS): Add hostio.o.
20131 (hostio.o): New rule.
20132 * server.h (handle_vFile): Declare.
20133 * hostio.c: New file.
20134 * server.c (handle_v_requests): Take packet_len and new_packet_len
20135 for binary packets. Call handle_vFile.
20136 (main): Update call to handle_v_requests.
20138 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
20140 * linux-low.c: Include <sched.h>.
20142 2007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
20144 * linux-low.c (linux_tracefork_grandchild): New.
20145 (linux_tracefork_child): Use clone.
20146 (linux_test_for_tracefork): Use clone; allocate and free a stack.
20148 2007-10-31 Joel Brobecker <brobecker@adacore.com>
20150 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
20152 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
20154 * linux-low.c (handle_extended_wait): Handle unexpected signals.
20156 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
20158 * inferiors.c (change_inferior_id): Delete.
20159 (add_pid_to_list, pull_pid_from_list): New.
20160 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
20161 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
20162 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
20163 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
20164 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
20165 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
20166 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
20167 (using_threads): Always set to 1.
20168 (handle_extended_wait): New.
20169 (add_process): Do not set TID.
20170 (linux_create_inferior): Set must_set_ptrace_flags.
20171 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
20172 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
20173 (linux_thread_alive): Rename TID argument to LWPID.
20174 (linux_wait_for_process): Handle unknown processes. Do not use TID.
20175 (linux_wait_for_event): Do not use TID or check using_threads. Update
20176 call to dead_thread_notify. Call handle_extended_wait.
20177 (linux_create_inferior): Use PTRACE_SETOPTIONS.
20178 (send_sigstop): Delete sigstop_sent.
20179 (wait_for_sigstop): Avoid TID.
20180 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
20181 (linux_test_for_tracefork): New.
20182 (linux_lookup_signals): Use thread_db_active and
20183 linux_supports_tracefork_flag.
20184 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
20185 * linux-low.h (get_process_thread): Avoid TID.
20186 (struct process_ifo): Move thread_known and tid to the end. Remove
20188 (linux_attach_lwp, thread_db_init): Update prototypes.
20189 * server.h (change_inferior_id): Delete prototype.
20190 (add_pid_to_list, pull_pid_from_list): New prototypes.
20191 * thread-db.c (thread_db_use_events): New.
20192 (find_first_thread): Rename to...
20193 (find_one_thread): ...this. Update callers and messages. Do not
20194 call fatal. Check thread_db_use_events. Do not call
20195 change_inferior_id or new_thread_notify.
20196 (maybe_attach_thread): Update. Do not call new_thread_notify.
20197 (thread_db_init): Set thread_db_use_events. Check use_events.
20198 * utils.c (fatal, warning): Correct message prefix.
20200 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
20202 * Makefile.in (clean): Remove new files.
20203 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
20204 (powerpc-64.o, powerpc-64.c): New rules.
20205 * configure.srv: Use alternate register sets for powerpc64-*-linux*
20206 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
20208 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
20210 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
20211 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
20212 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
20213 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
20214 (target_regsets): Add AltiVec and SPE register sets.
20215 * configure.ac: Check for AltiVec and SPE.
20216 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
20217 (ppc_fill_vrregset, ppc_store_vrregset): New.
20218 (target_regsets): Add AltiVec register set.
20219 * configure: Regenerated.
20221 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
20223 * linux-low.c (O_LARGEFILE): Define.
20224 (linux_read_memory): Use /proc/PID/mem.
20225 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
20226 * configure, config.in: Regenerated.
20228 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20230 * linux-low.c (linux_wait_for_event): Do not pass signals while
20233 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20235 * win32-low.c (create_process): New.
20236 (win32_create_inferior): Use create_process instead of
20237 CreateProcess. If create_process failed retry appending an ".exe"
20238 suffix. Store the GetLastError result immediatelly after
20239 create_process calls and use it on the call to error.
20241 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20243 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
20245 2007-08-23 Joel Brobecker <brobecker@adacore.com>
20247 * configure.ac: Switch license to GPLv3.
20249 2007-08-01 Michael Snyder <msnyder@access-company.com>
20251 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
20253 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
20255 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
20257 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
20258 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
20259 CloseToolhelp32Snapshot.
20260 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
20261 CloseToolhelp32Snapshot.
20263 2007-07-27 Michael Snyder <michael.snyder@access-company.com>
20265 * server.c (main): Check for inferior exit before main loop.
20267 2007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
20269 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
20270 instead of on tmp_desc.
20272 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
20273 Daniel Jacobowitz <dan@codesourcery.com>
20275 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
20276 (add_thread): Minor cleanups.
20277 (clear_inferiors): Move lower in the file. Clear the DLL
20279 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
20280 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
20281 (xml_escape_text): New.
20282 * server.c (handle_query): Handle qXfer:libraries:read. Report it
20284 (handle_v_cont): Report errors.
20285 (gdbserver_version): Update.
20286 (main): Correct size of own_buf. Do not report initial DLL events.
20287 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
20288 (unloaded_dll, xml_escape_text): New.
20289 * win32-low.c (enum target_waitkind): Update comments.
20290 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
20291 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
20292 (win32_EnumProcessModules, win32_GetModuleInformation)
20293 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
20294 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
20295 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
20296 (win32_Module32First, win32_Module32Next, load_toolhelp)
20297 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
20298 (get_child_debug_event): Handle DLL events.
20299 (win32_wait): Likewise.
20301 2007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20303 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
20304 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
20306 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20308 * win32-low.c (handle_output_debug_string): Ignore event if not
20311 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20313 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
20315 2007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
20317 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
20319 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
20321 * inferiors.c (change_inferior_id): Add comment.
20322 * linux-low.c (check_removed_breakpoint): Add an early
20323 prototype. Improve debug output.
20324 (linux_attach): Doc update.
20325 (linux_detach_one_process, linux_detach): Clean up before releasing
20327 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
20328 * linux-low.h (struct process_info): Doc improvement.
20329 * mem-break.c (delete_all_breakpoints): New.
20330 * mem-break.h (delete_all_breakpoints): New prototype.
20331 * thread-db.c (find_first_thread): New.
20332 (thread_db_create_event): Call it instead of
20333 thread_db_find_new_threads. Clean up unused variables.
20334 (maybe_attach_thread): Remove first thread handling.
20335 (thread_db_find_new_threads): Use find_first_thread.
20336 (thread_db_get_tls_address): Likewise.
20338 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
20340 * thread-db.c (thread_db_find_new_threads): Add prototype.
20341 (thread_db_create_event): Check for the main thread before adding
20343 (maybe_attach_thread): Only enable event reporting if TID == 0.
20344 (thread_db_get_tls_address): Check for new threads.
20346 2007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
20348 * linux-low.c (linux_create_inferior): Try execv before execvp.
20349 * spu-low.c (spu_create_inferior): Likewise.
20351 2007-06-13 Mike Frysinger <vapier@gentoo.org>
20353 * linux-low.c (linux_create_inferior): Change execv to execvp.
20354 * spu-low.c (spu_create_inferior): Likewies.
20356 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
20358 * Makefile.in (clean): Clean new files instead of deleted ones.
20359 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
20360 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
20362 * configure.srv: Specify XML files and new regformats for MIPS and
20364 * linux-mips-low.c (mips_num_regs): Set to only used registers.
20365 (mips_regmap): Do not fetch $0. Remove unused registers. Add
20366 an entry for the restart register.
20367 (mips_cannot_fetch_register, mips_cannot_store_register)
20368 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
20369 register names to match the XML descriptions.
20370 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
20371 restart register instead of $0.
20373 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20374 Markus Deuling <deuling@de.ibm.com>
20376 * remote-utils.c (decode_xfer_write): New function.
20377 * server.h (decode_xfer_write): Add prototype.
20378 * server.c (handle_query): Add PACKET_LEN argument. Support
20379 qXfer:spu:read and qXfer:spu:write packets.
20380 (main): Pass packet_len to handle_query.
20381 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
20382 * target.h (target_ops): Add qxfer_spu.
20384 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20386 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
20387 accessing non-seekable spufs files.
20389 2007-05-16 Markus Deuling <deuling@de.ibm.com>
20391 * server.c (handle_query): Add reply for qC packet.
20393 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20394 Leo Zayas <lerele@champenstudios@com>
20396 * server.h (check_remote_input_interrupt_request): New function.
20397 * remote_utils.c (INVALID_DESCRIPTOR): New define.
20398 (remote_desc): Initialize with INVALID_DESCRIPTOR.
20399 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
20400 (check_remote_input_interrupt_request): New function.
20401 * server.h (check_remote_input_interrupt_request): Declare.
20402 * win32-low.c (winapi_DebugBreakProcess,
20403 winapi_GenerateConsoleCtrlEvent): New typedefs.
20404 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
20406 (win32_wait): Check for remote interrupt request
20407 with check_remote_input_interrupt_request.
20408 (win32_request_interrupt): New function.
20409 (win32_target_op): Set request_interrupt to win32_request_interrupt.
20411 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20413 * win32-low.c (debug_registers_changed,
20414 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
20415 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
20416 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
20417 (thread_rec): Get context using the low target.
20418 (child_add_thread): Call thread_added on the low target,
20419 which does the same thing.
20421 (do_initial_child_stuff): Remove debug registers references.
20422 Set context using the low target. Resume threads after
20423 setting the contexts.
20424 (child_continue): Remove dead variable. Remove debug
20425 registers references.
20426 (child_fetch_inferior_registers): Go through the low target.
20427 (do_child_store_inferior_registers): Remove.
20428 (child_store_inferior_registers): Go through the low target.
20429 (win32_resume): Remove debug registers references.
20430 Set context using the low target.
20431 (handle_exception): Change return type to void. Don't record
20432 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
20433 first chance exception.
20434 (get_child_debug_event): Change return type to void. Remove
20435 goto loop. Always return after waiting for debug event.
20436 (win32_wait): Convert to switch statement. Handle spurious
20439 * win32-i386-low.c (debug_registers_changed,
20440 debug_registers_used): New.
20441 (initial_stuff): Rename to ...
20442 (i386_initial_stuff): ... this. Clear debug registers
20444 (store_debug_registers): Delete.
20445 (i386_get_thread_context): New.
20446 (load_debug_registers): Delete.
20447 (i386_set_thread_context): New.
20448 (i386_thread_added): New.
20449 (single_step): Rename to ...
20450 (i386_single_step): ... this.
20451 (do_fetch_inferior_registers): Rename to ...
20452 (i386_fetch_inferior_register): ... this.
20453 (i386_store_inferior_register): New.
20454 (the_low_target): Adapt to new interface.
20456 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
20457 (arm_get_thread_context): New.
20458 (arm_set_thread_context): New.
20460 (do_fetch_inferior_registers): Rename to ...
20461 (arm_fetch_inferior_register): ... this.
20462 (arm_store_inferior_register): New.
20463 (arm_wince_breakpoint): Reimplement as unsigned long.
20464 (arm_wince_breakpoint_len): Define.
20465 (the_low_target): Adapt to new interface.
20467 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
20468 load_debug_registers. Add get_thread_context, set_thread_context,
20469 thread_added and store_inferior_register. Rename
20470 fetch_inferior_registers to fetch_inferior_register.
20471 (regptr): Remove declaration.
20473 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20475 * linux-low.c (linux_detach): Change return type to int. Return 0.
20476 * spu-low.c (spu_detach): Likewise.
20478 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20480 * target.h (target_ops): Change return type of detach to int.
20482 (join_inferior): New.
20483 * server.c (main): Don't skip detach support on mingw32.
20484 If the inferior doesn't support detaching return error.
20485 Call join_inferior instead of using waitpid.
20486 * linux-low.c (linux_join): New.
20487 (linux_target_op): Add linux_join.
20488 * spu-low.c (spu_join): New.
20489 (spu_target_ops): Add spu_join.
20490 * win32-low.c (win32_detach): Adapt to new interface.
20491 Reopen current_process_handle before detaching. Issue a child
20492 resume before detaching.
20494 (win32_target_op): Add win32_join.
20496 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20498 * win32-low.c (win32-attach): Fix return value.
20499 * target.h (target_ops): Describe ATTACH return values.
20501 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20503 * win32-low.c (GETPROCADDRESS): Define.
20504 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
20505 (winapi_DebugSetProcessKillOnExit): Likewise.
20506 (win32_create_inferior): Force usage of ansi CreateProcessA.
20507 (win32_attach): Use GETPROCADDRESS.
20508 (win32_detach): Likewise.
20510 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20512 * win32-low.c (win32_wait): Don't use WSTOPSIG.
20514 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
20516 * win32-low.c: Commit leftover changes from 2007-03-29.
20518 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20520 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
20521 fields short instead of int. Add explicit padding.
20522 (i387_cache_to_fsave): Remove unnecessary casts.
20523 (i387_fsave_to_cache): Doc fix.
20524 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
20526 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20528 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
20529 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
20531 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20533 * configure.srv (arm*-*-mingw32ce*): Move near the other
20536 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20538 * configure.ac: Add errno checking.
20539 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
20540 sys/file.h and malloc.h.
20541 (AC_CHECK_DECLS): Add perror.
20542 (srv_mingwce): Handle.
20543 * configure.srv (i[34567]86-*-cygwin*): Add
20544 win32-i386-low.o to srv_tgtobj.
20545 (i[34567]86-*-mingw*): Likewise.
20546 (arm*-*-mingw32ce*): Add case.
20547 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20548 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
20549 [__MINGW32CE__] (strerror): New function.
20550 [__MINGW32CE__] (errno): Define to GetLastError.
20551 [__MINGW32CE__] (COUNTOF): New macro.
20552 (remote_open): Remove extra close call.
20553 * mem-break.c (delete_breakpoint_at): New function.
20554 * mem-break.h (delete_breakpoint_at): Declare.
20555 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20556 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
20557 [USE_WIN32API] (read, write): Add char* casts.
20558 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
20559 * server.h: Include wincecompat.h on Windows CE.
20560 [HAVE_ERRNO_H]: Check.
20561 (perror): Declare if not declared.
20562 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
20563 (perror_with_name): Remove errno declaration.
20564 * wincecompat.h: New.
20565 * wincecompat.c: New.
20566 * win32-low.h: New.
20567 * win32-arm-low.c: New.
20568 * win32-i386-low.c: New.
20569 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
20570 (OUTMSG2): Make it safe.
20572 (COUNTOF): New macro.
20573 (NUM_REGS): Get it from the low target.
20574 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
20575 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
20576 (thread_rec): Let low target handle debug registers.
20577 (child_add_thread): Likewise.
20578 (child_init_thread_list): Likewise.
20579 (continue_one_thread): Likewise.
20581 (do_child_fetch_inferior_registers): Move to ...
20582 * win32-i386-low.c: ... here, and rename to ...
20583 (do_fetch_inferior_registers): ... this.
20584 * win32-low.c (child_fetch_inferior_registers):
20585 Go through the low target.
20586 (do_child_store_inferior_registers): Use regptr.
20587 (strwinerror): New function.
20588 (win32_create_inferior): Handle Windows CE.
20589 Use strwinerror instead of strerror on Windows error
20590 codes. Add program to the error output.
20591 Don't close the main thread handle on Windows CE.
20592 (win32_attach): Use coredll.dll on Windows CE.
20593 (win32_kill): Close current process and current
20595 (win32_detach): Use coredll.dll on Windows CE.
20596 (win32_resume): Let low target handle debug registers, and
20598 (handle_exception): Add/Remove initial breakpoint. Avoid
20599 non-existant WSTOPSIG on Windows CE.
20600 (win32_read_inferior_memory): Cast to remove warning.
20601 (win32_arch_string): Go through the low target.
20602 (initialize_low): Call set_breakpoint_data with the low
20603 target's breakpoint.
20604 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
20605 FOP_REGNUM, mappings): Move to ...
20606 * win32-i386-low.c: ... here.
20607 * win32-low.c (win32_thread_info): Move to ...
20608 * win32-low.h: ... here.
20609 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
20610 win32-arm-low.c and wincecompat.c.
20611 (all:): Add $EXEEXT.
20612 (install-only:): Likewise.
20613 (gdbserver:): Likewise.
20614 (gdbreplay:): Likewise.
20615 * config.in: Regenerate.
20616 * configure: Regenerate.
20618 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20620 * win32-low.c: Rename typedef thread_info to
20621 win32_thread_info throughout.
20623 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20625 * win32-i386-low.c: Rename to ...
20626 * win32-low.c: ... this.
20627 * configure.srv: Replace win32-i386-low.o with win32-low.o.
20628 * Makefile.in: Likewise.
20630 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
20632 * remote-utils.c (monitor_output): Constify msg parameter.
20633 * server.h (monitor_output): Likewise.
20634 * win32-i386-low.c (handle_output_debug_string): New.
20635 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
20636 handle_output_debug_string.
20637 (get_child_debug_event): Likewise.
20639 2007-03-27 Mat Hostetter <mat@lcs.mit.edu>
20641 * server.c (main): Correct strtoul check.
20643 2007-03-27 Jon Ringle <jon@ringle.org>
20645 * linux-low.c: Check __ARCH_HAS_MMU__ also.
20647 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
20649 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
20651 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
20653 * terminal.h: Check HAVE_SGTTY_H.
20655 2007-02-27 Mat Hostetter <mat@lcs.mit.edu>
20657 * remote-utils.c (remote_open): Print out the assigned port number.
20659 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
20661 * remote-utils.c (monitor_output): New function.
20662 * server.c (debug_threads): Define here.
20663 (monitor_show_help): New function.
20664 (handle_query): Handle qRcmd.
20665 (main): Do not handle 'd' packet.
20666 * server.h (debug_threads, remote_debug, monitor_output): Declare.
20667 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
20670 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20672 * Makefile.in (EXEEXT): New.
20673 (clean): Use $(EXEEXT).
20675 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20677 * target.h (target_ops): Rename send_signal to request_interrupt,
20678 and remove enum target_signal parameter.
20679 * linux-low.c (linux_request_interrupt): Rename from
20680 linux_send_signal, and always send SIGINT.
20681 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
20682 and always send SIGINT.
20683 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
20685 (input_interrupt): Likewise.
20687 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20689 * server.c (get_features_xml): Check if target implemented
20691 * win32-i386-low.c (win32_arch_string): New.
20692 (win32_target_ops): Add win32_arch_string as arch_string member.
20694 2007-02-22 Markus Deuling <deuling@de.ibm.com>
20696 * spu-low.c (spu_arch_string): New.
20697 (spu_target_ops): Add spu_arch_string.
20699 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
20701 * remote-utils.c: Remove HAVE_TERMINAL_H check.
20702 * configure.ac: Do not check for terminal.h.
20703 * configure, config.in: Regenerated.
20705 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
20707 * Makefile.in (OBS): Add $(XML_BUILTIN).
20708 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
20710 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
20711 (arm-with-iwmmxt.c): New.
20712 * config.in, configure: Regenerate.
20713 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
20714 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
20715 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
20716 (arm*-*-linux*): Add iWMMXt and regset support.
20717 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
20718 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
20719 (arm_store_wmmxregset, target_regsets): New.
20720 * server.c (get_features_xml): Take annex argument. Check builtin
20722 (handle_query): Handle multiple annexes.
20724 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20726 * remote-utils.c [USE_WIN32API] (read, write): Define.
20727 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
20730 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
20732 * linux-i386-low.c (the_low_target): Set arch_string.
20733 * linux-x86-64-low.c (the_low_target): Likewise.
20734 * linux-low.c (linux_arch_string): New.
20735 (linux_target_ops): Add it.
20736 * linux-low.h (struct linux_target_ops): Add arch_string.
20737 * server.c (write_qxfer_response): Use const void * for DATA.
20738 (get_features_xml): New.
20739 (handle_query): Handle qXfer:features:read. Report it for qSupported.
20740 * target.h (struct target_ops): Add arch_string method.
20742 2007-01-03 Denis Pilat <denis.pilat@st.com>
20743 Daniel Jacobowitz <dan@codesourcery.com>
20745 * linux-low.c (linux_kill): Handle being called with no threads.
20746 * win32-i386-low.c (win32_kill): Likewise.
20747 (get_child_debug_event): Clear current_process_handle.
20749 2006-12-30 Denis PILAT <denis.pilat@st.com>
20750 Daniel Jacobowitz <dan@codesourcery.com>
20752 * remote-utils.c (remote_open): Check the type of specified
20753 serial port devices before opening them.
20754 * server.c (main): Kill the inferior if an error occurs during
20755 the first remote_open.
20757 2006-12-05 Markus Deuling <deuling@de.ibm.com>
20759 * README: Update supported targets.
20761 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
20763 * Makefile.in (clean): Remove reg-mips64.c.
20764 (reg-mips64.c, reg-mips64.o): New rules.
20765 * configure.srv: Handle mips64. Include regset support for mips.
20766 * linux-mips-low.c (union mips_register): New.
20767 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
20768 (mips_breakpoint, mips_breakpoint_at): Use int.
20769 (mips_collect_register, mips_supply_register)
20770 (mips_collect_register_32bit, mips_supply_register_32bit)
20771 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
20772 (mips_store_fpregset, target_regsets): New.
20773 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
20775 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
20777 * configure.srv: Add target "spu*-*-*".
20778 * Makefile.in (clean): Remove reg-spu.c.
20779 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
20780 * spu-low.c: New file.
20782 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
20784 * configure.ac: Correct td_thr_tls_get_addr test.
20785 * configure: Regenerated.
20787 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
20789 * linux-low.c (linux_wait_for_event): Reformat. Use the
20790 pass_signals array.
20791 * remote-utils.c (decode_address_to_semicolon): New.
20792 * server.c (pass_signals, handle_general_set): New.
20793 (handle_query): Mention QPassSignals for qSupported.
20794 (main): Call handle_general_set.
20795 * server.h (pass_signals, decode_address_to_semicolon): New.
20797 2006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
20799 * server.c (handle_query): Correct error handling for read_auxv.
20801 2005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
20803 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
20804 and srv_linux_thread_db to yes.
20805 * linux-s390-low.c (s390_fill_gregset): New function.
20806 (target_regsets): Define data structure.
20808 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
20810 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
20811 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
20812 * config.in, configure: Regenerated.
20813 * inferiors.c (gdb_id_to_thread): New function.
20814 (gdb_id_to_thread_id): Use it.
20815 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
20816 * linux-low.h (struct process_info): Add th member.
20817 (thread_db_get_tls_address): New prototype.
20818 * remote-utils.c (decode_address): Make non-static.
20819 * server.c (handle_query): Handle qGetTLSAddr.
20820 * server.h (gdb_id_to_thread, decode_address): New prototypes.
20821 * target.h (struct target_ops): Add get_tls_address.
20822 * thread-db.c (maybe_attach_thread): Save the thread handle.
20823 (thread_db_get_tls_address): New.
20825 2006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
20827 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
20828 (linux_resume_one_process): Take a siginfo_t *. Update all
20829 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
20830 (struct pending_signals): Add a siginfo_t.
20831 (linux_wait_for_process): Always set last_status.
20832 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
20833 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
20834 * linux-low.h (struct process_info): Add last_status.
20836 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
20838 * remote-utils.c (try_rle): New function.
20839 (putpkt_binary): Use it.
20841 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
20843 * Makefile.in (clean): Clean reg-x86-64-linux.c.
20844 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
20845 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
20846 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
20847 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
20850 2006-08-08 Richard Sandiford <richard@codesourcery.com>
20852 * server.c (terminal_fd): New variable.
20853 (old_foreground_pgrp): Likewise.
20854 (restore_old_foreground_pgrp): New function.
20855 (start_inferior): Record the terminal file descriptor in terminal_fd
20856 and its original foreground group in old_foreground_pgrp. Register
20857 restore_old_foreground_pgrp with atexit().
20859 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
20861 * server.c (handle_query): Correct qPart to qXfer.
20863 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
20865 * configure.ac: Check for more headers which are missing on
20866 Windows. Automatically supply -lwsock32 and USE_WIN32API.
20867 * configure.srv: Add Cygwin and mingw32.
20868 * remote-utils.c: Don't include headers unconditionally which
20869 are missing on mingw32. Include <winsock.h> for mingw32.
20870 (remote_open): Adjust for mingw32 support. Flush
20871 standard error after writing to it.
20872 (remote_close, putpkt_binary, input_interrupt, block_async_io)
20873 (unblock_async_io, enable_async_io, disable_async_io)
20874 (readchar, getpkt): Update for Winsock support.
20875 (prepare_resume_reply): Expect a protocol signal number.
20876 * server.c: Disable <sys/wait.h> on mingw32.
20877 (start_inferior): Adjust for mingw32 support. Flush
20878 standard error after writing to it.
20879 (attach_inferior): Likewise. Use protocol signal
20881 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
20883 * win32-i386-low.c: New file.
20884 * Makefile.in (XM_CLIBS): Set.
20885 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
20886 (win32-i386-low.o): New dependency rule.
20887 * linux-low.c (linux_wait): Use target signal numbers.
20888 * target.h (struct target_ops): Doc fix.
20889 * server.h (target_signal_to_name): New prototype.
20890 * gdbreplay.c: Don't include headers unconditionally which
20891 are missing on mingw32. Include <winsock.h> for mingw32.
20892 (remote_close, remote_open): Adjust for Winsock support.
20893 * configure, config.in: Regenerated.
20895 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20897 * server.c (decode_xfer_read, write_qxfer_response): New.
20898 (handle_query): Take a packet length argument. Handle
20899 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
20900 the qSupported response.
20901 (main): Update call to handle_query.
20903 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
20905 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
20906 (putpkt_binary): Renamed from putpkt and adjusted for binary
20908 (putpkt): New wrapper for putpkt_binary.
20909 (readchar): Don't mask off the high bit.
20910 (decode_X_packet): New function.
20911 * server.c (main): Call putpkt_binary if a handler sets the packet
20912 length. Save the length of the incoming packet. Handle 'X'.
20913 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
20915 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
20917 * server.c (handle_query): Handle qSupported.
20919 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
20921 * remote-utils.c (all_symbols_looked_up): New variable.
20922 (look_up_one_symbol): Check it.
20923 * server.h (look_up_one_symbol): New declaration.
20924 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
20926 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
20928 * Makefile.in (linux-arm-low.o): Update dependencies.
20929 * linux-arm-low.c: Include "gdb_proc_service.h".
20930 (PTRACE_GET_THREAD_AREA): Define.
20931 (ps_get_thread_area): New function.
20933 2006-05-09 Nathan Sidwell <nathan@codesourcery.com>
20935 * configure.srv (m68k*-*-uclinux*): New target.
20936 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
20937 (linux_resume_one_process): Remove extraneous cast.
20938 (linux_read_offsets): New.
20939 (linux_target_op): Add linux_read_offsets on mmuless systems.
20940 * server.c (handle_query): Add qOffsets logic.
20941 * target.h (struct target_ops): Add read_offsets.
20943 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
20945 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
20946 (PTRACE_GET_THREAD_AREA): Define.
20947 (ps_get_thread_area): New function.
20948 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
20949 (linux-x86-64-low.o): Update.
20951 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
20953 * configure.ac: Remove checks for prfpregset_t.
20954 * gdb_proc_service.h: New file.
20955 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
20956 new "gdb_proc_service.h".
20957 * proc-service.c: Likewise.
20958 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
20959 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
20960 * Makefile.in (gdb_proc_service_h): Updated.
20961 * configure, config.in: Regenerated.
20963 2006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
20965 * remote-utils.c (prepare_resume_reply): Move declaration
20966 of gdb_id_from_wait to the top of the block.
20968 2006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
20970 * linux-low.c (regsets_store_inferior_registers): Read the regset
20971 from the target before filling it.
20973 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
20975 * server.c (attach_inferior): Return SIGTRAP for a successful
20978 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
20980 * Makefile.in (OBS): Add version.o.
20981 (STAGESTUFF): Delete.
20982 (version.o): Add dependencies.
20983 (version.c): Replace rule.
20984 (clean): Remove version.c.
20985 * server.c (gdbserver_version): New.
20986 (gdbserver_usage): Use printf.
20987 (main): Handle --version and --help.
20988 * server.h (version, host_name): Add declarations.
20990 2005-12-23 Eli Zaretskii <eliz@gnu.org>
21002 * linux-x86-64-low.c:
21004 * linux-s390-low.c:
21005 * linux-ppc64-low.c:
21007 * linux-mips-low.c:
21008 * linux-m68k-low.c:
21009 * linux-m32r-low.c:
21012 * linux-ia64-low.c:
21013 * linux-i386-low.c:
21014 * linux-crisv32-low.c:
21026 * gdbserver.1: Add (C) after Copyright. Update the FSF
21029 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
21031 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
21032 (arm_breakpoint_at): Recognize both breakpoints.
21033 (the_low_target): Use the correct breakpoint instruction.
21035 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
21037 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
21038 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
21039 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
21040 (the_low_target): Update.
21042 2005-10-25 Andreas Schwab <schwab@suse.de>
21044 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
21046 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
21047 (ia64_num_regs): Reduce to 462.
21049 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
21051 * acinclude.m4: Correct quoting.
21052 * aclocal.m4: Regenerated.
21054 Suggested by SZOKOVACS Robert <szo@ies.hu>:
21055 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
21056 (thread_db_init): Call thread_db_err_str.
21057 * configure.ac: Check for TD_VERSION.
21058 * config.in, configure: Regenerated.
21060 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21062 * server.h (error, fatal, warning): Add ATTR_FORMAT.
21064 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21066 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
21067 is not available. Define HAVE_PTRACE_GETREGS if it is.
21068 * config.in, configure: Regenerated.
21069 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
21070 * linux-i386-low.c, linux-m68k-low.c: Update to use
21071 HAVE_PTRACE_GETREGS.
21072 * linux-low.c (regsets_fetch_inferior_registers)
21073 (regsets_store_inferior_registers): Only return 0 if we processed
21075 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
21076 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
21078 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21080 * inferiors.c (struct thread_info): Add gdb_id.
21081 (add_thread): Add gdb_id argument.
21082 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
21083 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
21084 calls to add_thread.
21085 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
21086 * server.c (handle_query): Use thread_to_gdb_id.
21087 (handle_v_cont, main): Use gdb_id_to_thread_id.
21088 * server.h (add_thread): Update prototype.
21089 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
21092 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21094 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
21095 left-padded registers.
21096 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
21097 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
21099 2005-07-01 Steve Ellcey <sje@cup.hp.com>
21101 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
21102 * configure: Regenerate.
21103 * config.in: Regenerate.
21104 * server.h (NEED_DECLARATION_STRERROR):
21105 Replace with !HAVE_DECL_STRERROR.
21107 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
21109 * linux-low.c (linux_wait, linux_send_signal): Don't test
21110 an unsigned long variable for > 0 if it could be MAX_ULONG.
21111 * server.c (myresume): Likewise.
21112 * target.c (set_desired_inferior): Likewise.
21114 2005-06-13 Mark Kettenis <kettenis@gnu.org>
21116 * configure.ac: Simplify and improve check for socklen_t.
21117 * configure, config.in: Regenerate.
21119 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
21121 * acconfig.h: Remove.
21122 * configure.ac: Add a test for socklen_t. Use three-argument
21123 AC_DEFINE throughout.
21124 * config.in: Regenerated using autoheader 2.59.
21125 * configure: Regenerated.
21127 * gdbreplay.c (socklen_t): Provide a default.
21128 (remote_open): Use socklen_t.
21129 * remote-utils.c (socklen_t): Provide a default.
21130 (remote_open): Use socklen_t.
21131 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
21134 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
21136 * linux-low.c (linux_read_memory, linux_write_memory)
21137 (linux_read_auxv): Likewise.
21138 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
21139 (check_mem_write): Likewise.
21140 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
21142 * regcache.c (struct inferior_rgcache_data, registers_to_string)
21143 (registers_from_string, register_data): Likewise.
21144 * server.c (handle_query, main): Likewise.
21145 * server.h (convert_ascii_to_int, convert_int_to_ascii)
21146 (decode_M_packet): Likewise.
21147 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
21148 * target.h (struct target_ops): Update read_memory, write_memory,
21150 (read_inferior_memory, write_inferior_memory): Update.
21151 * linux-low.h (struct linux_target_ops): Change type of breakpoint
21152 to unsigned char *.
21153 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
21154 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
21155 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
21156 linux-s390-low.c, linux-sh-low.c: Update for changes in
21157 read_inferior_memory and the_low_target->breakpoint.
21159 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
21161 * Makefile.in (SFILES): Add linux-ppc64-low.c.
21162 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
21163 * configure.srv: Add powerpc64-*-linux*.
21164 * linux-ppc64-low.c: New file.
21166 2005-05-23 Orjan Friberg <orjanf@axis.com>
21168 * linux-cris-low.c: New file with support for CRIS.
21169 * linux-crisv32-low.c: Ditto for CRISv32.
21170 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
21171 (clean): Add reg-cris.c and reg-crisv32.c.
21172 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
21173 reg-crisv32.o, and reg-crisv32.c to make rules.
21174 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
21175 recognized targets.
21177 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
21179 * linux-low.c (fetch_register): Ensure buffer size is a multiple
21180 of sizeof (PTRACE_XFER_TYPE).
21181 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
21183 2005-05-12 Orjan Friberg <orjanf@axis.com>
21185 * target.h (struct target_ops): Add insert_watchpoint,
21186 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
21187 pointers for hardware watchpoint support.
21188 * linux-low.h (struct linux_target_ops): Ditto.
21189 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
21190 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
21191 to linux_target_ops.
21192 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
21194 * server.c (main): Recognize 'Z' and 'z' packets.
21196 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
21198 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
21199 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
21200 (the_low_target): Add new members.
21202 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21204 * proc-service.c (ps_lgetregs): Search all_processes instead of
21207 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21209 * server.c (start_inferior): Change return type to int.
21210 (attach_inferior): Change sigptr to int *.
21211 (handle_v_cont, handle_v_requests): Change signal to int *.
21212 (main): Change signal to int.
21214 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
21216 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
21217 * configure.srv: Add m32r*-*-linux*.
21218 * linux-m32r-low.c: New file.
21220 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
21222 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
21224 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21226 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
21227 Take unsigned long arguments for PIDs.
21228 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
21229 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
21230 (wait_for_sigstop, linux_resume_one_process)
21231 (regsets_fetch_inferior_registers, linux_send_signal)
21232 (linux_read_auxv): Likewise. Update the types of variables holding
21233 PIDs. Update format string specifiers.
21234 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
21235 * remote-utils.c (prepare_resume_reply): Likewise.
21236 * server.c (cont_thread, general_thread, step_thread)
21237 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
21239 (handle_query): Update format specifiers.
21240 (handle_v_cont, main): Use strtoul for thread IDs.
21241 * server.h (struct inferior_list_entry): Use unsigned long for ID.
21242 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
21243 (general_thread, step_thread, thread_from_wait)
21244 (old_thread_from_wait): Update.
21245 * target.h (struct thread_resume): Use unsigned long for THREAD.
21246 (struct target_ops): Use unsigned long for arguments to attach and
21249 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
21251 * acinclude.m4: Include bfd/bfd.m4 directly.
21252 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
21253 <agriffis@toolchain.org>.
21254 * aclocal.m4, configure: Regenerated.
21256 2005-01-07 Andrew Cagney <cagney@gnu.org>
21258 * configure.ac: Rename configure.in, require autoconf 2.59.
21259 * configure: Re-generate.
21261 2004-12-08 Daniel Jacobowitz <dan@debian.org>
21263 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
21264 LIBS when finished.
21265 * aclocal.m4: Regenerated.
21266 * configure: Regenerated.
21268 2004-11-21 Andreas Schwab <schwab@suse.de>
21270 * linux-m68k-low.c (m68k_num_gregs): Define.
21271 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
21272 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
21273 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
21274 (m68k_breakpoint_at): New. Add to the_low_target.
21276 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
21277 srv_linux_thread_db to yes.
21279 2004-10-20 Joel Brobecker <brobecker@gnat.com>
21281 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
21282 (ARCH_SET_FS): Likewise.
21283 (ARCH_GET_FS): Likewise.
21284 (ARCH_GET_GS): Likewise.
21286 2004-10-16 Daniel Jacobowitz <dan@debian.org>
21288 * linux-i386-low.c (ps_get_thread_area): New.
21289 * linux-x86-64-low.c (ps_get_thread_area): New.
21290 * linux-low.c: Include <sys/syscall.h>.
21291 (linux_kill_one_process): Don't kill the first thread here.
21292 (linux_kill): Kill the first thread here.
21293 (kill_lwp): New function.
21294 (send_sigstop, linux_send_signal): Use it.
21295 * proc-service.c: Clean up #ifdefs.
21296 (fpregset_info): Delete.
21297 (ps_lgetregs): Update and enable implementation.
21298 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
21300 * remote-utils.c (struct sym_cache, symbol_cache): New.
21301 (input_interrupt): Print a clearer message.
21302 (async_io_enabled): New variable.
21303 (enable_async_io, disable_async_io): Use it. Update comments.
21304 (look_up_one_symbol): Use the symbol cache.
21305 * thread-db.c (thread_db_look_up_symbols): New function.
21306 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
21308 2004-10-16 Daniel Jacobowitz <dan@debian.org>
21310 * configure.in: Test for -rdynamic.
21311 * configure: Regenerated.
21312 * Makefile (INTERNAL_LDFLAGS): New.
21313 (gdbserver, gdbreplay): Use it.
21315 2004-09-02 Andrew Cagney <cagney@gnu.org>
21317 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
21319 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
21321 * linux-low.c (linux_wait): Clear all_processes list also.
21323 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
21325 * linux-low.c: Include <errno.h>. Remove extern declaration of
21328 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
21330 * gdbreplay.c, server.h, utils.c: Update copyright years.
21332 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21334 * server.c (main): Print child status or termination signal from
21335 variable 'signal', not 'sig'.
21337 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21339 * linux-low.c (linux_read_memory): Change return type to
21340 int. Check for and return error from ptrace().
21341 * target.c (read_inferior_memory): Change return type to int. Pass
21342 back return status from the_target->read_memory().
21343 * target.h (struct target_ops): Adapt *read_memory() prototype.
21345 (read_inferior_memory): Adapt prototype.
21346 * server.c (main): Return an error packet if
21347 read_inferior_memory() returns an error.
21349 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
21351 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
21352 Unify with other clean targets.
21354 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21356 * server.c (handle_v_cont): Call set_desired_inferior.
21358 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21360 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
21362 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21364 * linux-low.c (linux_wait): Unblock async I/O.
21365 (linux_resume): Block and enable async I/O.
21366 * remote-utils.c (block_async_io, unblock_async_io): New functions.
21367 * server.h (block_async_io, unblock_async_io): Add prototypes.
21369 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21371 * remote-utils.c (remote_open): Print a status notice after
21372 opening a TCP port.
21373 * server.c (attach_inferior): Print a status notice after
21376 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21378 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
21380 2004-02-26 Daniel Jacobowitz <drow@mvista.com>
21382 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
21384 * server.c, target.h: Update copyright years.
21386 2004-02-25 Roland McGrath <roland@redhat.com>
21388 * target.h (struct target_ops): New member `read_auxv'.
21389 * server.c (handle_query): Handle qPart:auxv:read: query using that.
21390 * linux-low.c (linux_read_auxv): New function.
21391 (linux_target_ops): Initialize `read_auxv' member to that.
21393 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21395 Committed by Jim Blandy <jimb@redhat.com>.
21397 * linux-s390-low.c (s390_num_regs): Update.
21398 (s390_regmap): Remove control registers. Use __s390x__ predefine
21399 instead of GPR_SIZE to distiguish s390 and s390x targets.
21401 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
21403 * linux-low.c: Update copyright year.
21404 (check_removed_breakpoint): Clear pending_is_breakpoint.
21405 (linux_set_resume_request, linux_queue_one_thread)
21406 (resume_status_pending_p): New functions.
21407 (linux_continue_one_thread): Use process->resume.
21408 (linux_resume): Only resume threads if there are no pending events.
21409 * linux-low.h (struct process_info): Add resume request
21412 2004-01-30 Daniel Jacobowitz <drow@mvista.com>
21414 * regcache.c (new_register_cache): Clear the allocated register
21415 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
21417 2003-10-13 Daniel Jacobowitz <drow@mvista.com>
21419 * linux-low.c (linux_resume): Take a struct thread_resume *
21421 (linux_wait): Update call.
21422 (resume_ptr): New static variable.
21423 (linux_continue_one_thread): Renamed from
21424 linux_continue_one_process. Use resume_ptr.
21425 (linux_resume): Use linux_continue_one_thread.
21426 * server.c (handle_v_cont, handle_v_requests): New functions.
21427 (myresume): New function.
21428 (main): Handle 'v' case.
21429 * target.h (struct thread_resume): New type.
21430 (struct target_ops): Change argument of "resume" to struct
21432 (myresume): Delete macro.
21434 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
21436 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
21437 (uninstall): Support DESTDIR.
21439 Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
21441 * configure.srv: Add xscale*linux copy of arm*linux entry.
21443 2003-07-24 Daniel Jacobowitz <drow@mvista.com>
21445 * linux-arm-low.c (arm_reinsert_addr): New function.
21446 (the_low_target): Add arm_reinsert_addr.
21448 2003-07-08 Mark Kettenis <kettenis@gnu.org>
21450 * mem-break.c: Remove whitespace at end of file.
21452 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
21454 * configure.in: Check whether we need to prototype strerror.
21455 * server.h: Optionally prototype strerror.
21456 * gdbreplay.c (perror_with_name): Use strerror.
21457 * linux-low.c (linux_attach_lwp): Use strerror.
21458 * utils.c (perror_with_name): Use strerror.
21459 * config.in, configure: Regenerated.
21461 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
21463 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
21464 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
21466 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
21468 * Makefile.in (SFILES): Update.
21469 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
21470 low-sun3.c: Remove files.
21472 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
21474 * linux-low.c: Move comment to linux_thread_alive where it belonged.
21475 (linux_detach_one_process, linux_detach): New functions.
21476 (linux_target_ops): Add linux_detach.
21477 * server.c (main): Handle 'D' packet.
21478 * target.h (struct target_ops): Add "detach" member.
21479 (detach_inferior): Define.
21481 2003-06-13 Mark Kettenis <kettenis@gnu.org>
21483 From Kelley Cook <kelleycook@wideopenwest.com>:
21484 * configure.srv: Accept i[34567]86 variants.
21486 2003-06-05 Daniel Jacobowitz <drow@mvista.com>
21488 * linux-low.c (linux_wait_for_event): Correct comment typos.
21489 (linux_resume_one_process): Call check_removed_breakpoint.
21490 (linux_send_signal): New function.
21491 (linux_target_ops): Add linux_send_signal.
21492 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
21494 * target.h (struct target_ops): Add send_signal.
21496 2003-05-29 Jim Blandy <jimb@redhat.com>
21498 * linux-low.c (usr_store_inferior_registers): Transfer buf in
21499 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
21500 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
21501 away part of the register's value.
21503 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
21505 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
21506 (linux_wait_for_event, linux_init_signals): Likewise.
21508 2003-03-17 Daniel Jacobowitz <drow@mvista.com>
21510 * configure.in: Check for stdlib.h.
21511 * configure: Regenerated.
21512 * config.in: Regenerated.
21514 2003-01-04 Andreas Schwab <schwab@suse.de>
21516 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
21518 2003-01-02 Andrew Cagney <ac131313@redhat.com>
21520 * Makefile.in: Remove obsolete code.
21522 2002-11-20 Daniel Jacobowitz <drow@mvista.com>
21524 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
21525 defined(PT_FPR0_HI).
21527 2002-11-17 Stuart Hughes <seh@zee2.com>
21529 * linux-arm-low.c (arm_num_regs): Increase.
21530 (arm_regmap): Include status register.
21532 2002-11-17 Daniel Jacobowitz <drow@mvista.com>
21534 * linux-low.c (register_addr): Remove incorrect -1 check.
21536 2002-08-29 Daniel Jacobowitz <drow@mvista.com>
21538 * linux-low.c (linux_create_inferior): Call setpgid. Return
21540 (unstopped_p, linux_signal_pid): Remove.
21541 (linux_target_ops): Remove linux_signal_pid.
21542 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
21543 global instead of target method.
21544 * target.h (struct target_ops): Remove signal_pid. Update comment
21545 for create_inferior.
21546 * server.c (signal_pid): New variable.
21547 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
21548 gdbserver. Set the child to be the foreground process group.
21549 (attach_inferior): Set signal_pid.
21551 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
21553 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
21555 2002-08-20 Jim Blandy <jimb@redhat.com>
21557 * Makefile.in (LDFLAGS): Allow the configure script to establish a
21560 2002-08-01 Andrew Cagney <cagney@redhat.com>
21562 * Makefile.in: Make chill references obsolete.
21564 2002-07-24 Kevin Buettner <kevinb@redhat.com>
21566 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
21567 * configure: Regenerate.
21568 * config.in: Regenerate.
21570 2002-07-09 David O'Brien <obrien@FreeBSD.org>
21572 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
21573 (perror_with_name, remote_close, remote_open, expect, play): Static.
21575 2002-07-04 Michal Ludvig <mludvig@suse.cz>
21577 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
21578 byte offsets instead of an array of indexes.
21579 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
21581 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
21583 * regcache.c: Add comment.
21585 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
21587 * thread-db.c: New file.
21588 * proc-service.c: New file.
21589 * acinclude.m4: New file.
21590 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
21591 proc-service.o, and thread-db.o.
21592 (linux-low.o): Add USE_THREAD_DB.
21593 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
21594 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
21595 * aclocal.m4: Regenerated.
21596 * config.in: Regenerated.
21597 * configure: Regenerated.
21598 * configure.in: Check for proc_service.h, sys/procfs.h,
21599 thread_db.h, and linux/elf.h headrs.
21600 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
21601 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
21602 Check for -lthread_db and thread support.
21603 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
21604 PowerPC, and SuperH.
21605 * i387-fp.c: Constify arguments.
21606 * i387-fp.h: Likewise.
21607 * inferiors.c: (struct thread_info): Renamed from
21608 `struct inferior_info'. Remove PID member. Use generic inferior
21609 list header. All uses updated.
21610 (inferiors, signal_pid): Removed.
21611 (all_threads): New variable.
21612 (get_thread): Define.
21613 (add_inferior_to_list): New function.
21614 (for_each_inferior): New function.
21615 (change_inferior_id): New function.
21616 (add_inferior): Removed.
21617 (remove_inferior): New function.
21618 (add_thread): New function.
21619 (free_one_thread): New function.
21620 (remove_thread): New function.
21621 (clear_inferiors): Use for_each_inferior and free_one_thread.
21622 (find_inferior): New function.
21623 (find_inferior_id): New function.
21624 (inferior_target_data): Update argument type.
21625 (set_inferior_target_data): Likewise.
21626 (inferior_regcache_data): Likewise.
21627 (set_inferior_regcache_data): Likewise.
21628 * linux-low.c (linux_bp_reinsert): Remove.
21629 (all_processes, stopping_threads, using_thrads)
21630 (struct pending_signals, debug_threads, pid_of): New.
21631 (inferior_pid): Replace with macro.
21632 (struct inferior_linux_data): Remove.
21633 (get_stop_pc, add_process): New functions.
21634 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
21635 Use add_process and add_thread.
21636 (linux_attach_lwp): New function, based on old linux_attach. Use
21637 add_process and add_thread. Set stop_expected for new threads.
21638 (linux_attach): New function.
21639 (linux_kill_one_process): New function.
21640 (linux_kill): Kill all LWPs.
21641 (linux_thread_alive): Use find_inferior_id.
21642 (check_removed_breakpoints, status_pending_p): New functions.
21643 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
21644 Update. Use WNOHANG. Wait for cloned processes also. Update process
21645 struct for the found process.
21646 (linux_wait_for_event): New function.
21647 (linux_wait): Use it. Support LWPs.
21648 (send_sigstop, wait_for_sigstop, stop_all_processes)
21649 (linux_resume_one_process, linux_continue_one_process): New functions.
21650 (linux_resume): Support LWPs.
21651 (REGISTER_RAW_SIZE): Remove.
21652 (fetch_register): Use register_size instead. Call supply_register.
21653 (usr_store_inferior_registers): Likewise. Call collect_register.
21654 Fix recursive case.
21655 (regsets_fetch_inferior_registers): Improve error message.
21656 (regsets_store_inferior_registers): Add debugging.
21657 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
21658 (unstopped_p, linux_signal_pid): New functions.
21659 (linux_target_ops): Add linux_signal_pid.
21660 (linux_init_signals): New function.
21661 (initialize_low): Call it. Initialize using_threads.
21662 * regcache.c (inferior_regcache_data): Add valid
21664 (get_regcache): Fetch registers lazily. Add fetch argument
21665 and update all callers.
21666 (regcache_invalidate_one, regcache_invalidate): New
21668 (new_register_cache): Renamed from create_register_cache.
21669 Return the new regcache.
21670 (free_register_cache): Change argument to a void *.
21671 (registers_to_string, registers_from_string): Call get_regcache
21672 with fetch flag set.
21673 (register_data): Make static. Pass fetch flag to get_regcache.
21674 (supply_register): Call get_regcache with fetch flag clear.
21675 (collect_register): Call get_regcache with fetch flag set.
21676 (collect_register_as_string): New function.
21677 * regcache.h: Update.
21678 * remote-utils.c (putpkt): Flush after debug output and use
21680 Handle input interrupts while waiting for an ACK.
21681 (input_interrupt): Use signal_pid method.
21682 (getpkt): Flush after debug output and use stderr.
21683 (outreg): Use collect_register_as_string.
21684 (new_thread_notify, dead_thread_notify): New functions.
21685 (prepare_resume_reply): Check using_threads. Set thread_from_wait
21686 and general_thread.
21687 (look_up_one_symbol): Flush after debug output.
21688 * server.c (step_thread, server_waiting): New variables.
21689 (start_inferior): Don't use signal_pid. Update call to mywait.
21690 (attach_inferior): Update call to mywait.
21691 (handle_query): Handle qfThreadInfo and qsThreadInfo.
21692 (main): Don't fetch/store registers explicitly. Use
21693 set_desired_inferior. Support proposed ``Hs'' packet. Update
21695 * server.h: Update.
21696 (struct inferior_list, struct_inferior_list_entry): New.
21697 * target.c (set_desired_inferior): New.
21698 (write_inferior_memory): Constify.
21699 (mywait): New function.
21700 * target.h: Update.
21701 (struct target_ops): New signal_pid method.
21702 (mywait): Removed macro, added prototype.
21704 * linux-low.h (regset_func): Removed.
21705 (regset_fill_func, regset_store_func): New.
21706 (enum regset_type): New.
21707 (struct regset_info): Add type field. Use new operation types.
21708 (struct linux_target_ops): stop_pc renamed to get_pc.
21709 Add decr_pc_after_break and breakpoint_at.
21710 (get_process, get_thread_proess, get_process_thread)
21711 (strut process_info, all_processes, linux_attach_lwp)
21712 (thread_db_init): New.
21714 * linux-arm-low.c (arm_get_pc, arm_set_pc,
21715 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
21716 (the_low_target): Add new members.
21717 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
21718 (i386_store_fpxregset): Constify.
21719 (target_regsets): Add new kind identifier.
21720 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
21721 (i386_set_pc): Add debugging.
21722 (i386_breakpoint_at): New function.
21723 (the_low_target): Add new members.
21724 * linux-mips-low.c (mips_get_pc, mips_set_pc)
21725 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
21726 (mips_breakpoint_at): New.
21727 (the_low_target): Add new members.
21728 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
21729 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
21730 (the_low_target): Add new members.
21731 * linux-sh-low.c (sh_get_pc, sh_set_pc)
21732 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
21733 (the_low_target): Add new members.
21734 * linux-x86-64-low.c (target_regsets): Add new kind
21737 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
21739 From Martin Pool <mbp@samba.org>:
21740 * server.c (gdbserver_usage): New function.
21743 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
21745 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
21746 stop_at -> stop_pc.
21748 2002-05-04 Andrew Cagney <ac131313@redhat.com>
21750 * Makefile.in: Remove obsolete code.
21752 2002-04-24 Michal Ludvig <mludvig@suse.cz>
21754 * linux-low.c (regsets_fetch_inferior_registers),
21755 (regsets_store_inferior_registers): Removed cast to int from
21757 * regcache.h: Added declaration of struct inferior_info.
21759 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
21761 * inferiors.c (struct inferior_info): Add regcache_data.
21762 (add_inferior): Call create_register_cache.
21763 (clear_inferiors): Call free_register_cache.
21764 (inferior_regcache_data, set_inferior_regcache_data): New functions.
21765 * regcache.c (struct inferior_regcache_data): New.
21766 (registers): Remove.
21767 (get_regcache): New function.
21768 (create_register_cache, free_register_cache): New functions.
21769 (set_register_cache): Don't initialize the register cache here.
21770 (registers_to_string, registers_from_string, register_data): Call
21772 * regcache.h: Add prototypes.
21773 * server.h: Likewise.
21775 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
21777 * mem-break.c: New file.
21778 * mem-break.h: New file.
21779 * Makefile.in: Add mem-break.o rule; update server.h
21781 * inferiors.c (struct inferior_info): Add target_data
21783 (clear_inferiors): Free target_data member if set.
21784 (inferior_target_data, set_inferior_target_data): New functions.
21785 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
21786 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
21787 * linux-low.c (linux_bp_reinsert): New variable.
21788 (struct inferior_linux_data): New.
21789 (linux_create_inferior): Use set_inferior_target_data.
21790 (linux_attach): Likewise. Call add_inferior.
21791 (linux_wait_for_one_inferior): New function.
21792 (linux_wait): Call it.
21793 (linux_write_memory): Add const.
21794 (initialize_low): Call set_breakpoint_data.
21795 * linux-low.h (struct linux_target_ops): Add breakpoint
21797 * server.c (attach_inferior): Remove extra add_inferior
21799 * server.h: Include mem-break.h. Update inferior.c
21801 * target.c (read_inferior_memory)
21802 (write_inferior_memory): New functions.
21803 * target.h (read_inferior_memory)
21804 (write_inferior_memory): Change macros to prototypes.
21805 (struct target_ops): Update comments. Add const to write_memory
21808 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
21810 * linux-low.c (usr_store_inferior_registers): Support
21811 registers which are allowed to fail to store.
21812 * linux-low.h (linux_target_ops): Likewise.
21813 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
21814 (ppc_cannot_store_register): FPSCR may not be storable.
21816 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
21818 * server.h: Include <string.h> if HAVE_STRING_H.
21819 * ChangeLog: Correct paths in last ChangeLog entry.
21821 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
21823 * linux-low.h: Remove obsolete prototypes.
21824 (struct linux_target_ops): New.
21825 (extern the_low_target): New.
21826 * linux-low.c (num_regs, regmap): Remove declarations.
21827 (register_addr): Use the_low_target explicitly.
21828 (fetch_register): Likewise.
21829 (usr_fetch_inferior_registers): Likewise.
21830 (usr_store_inferior_registers): Likewise.
21831 * linux-arm-low.c (num_regs): Remove.
21832 (arm_num_regs): Define.
21833 (arm_regmap): Renamed from regmap, made static.
21834 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
21836 (arm_cannot_store_register): Renamed from cannot_store_register,
21838 (the_low_target): New.
21839 * linux-i386-low.c (num_regs): Remove.
21840 (i386_num_regs): Define.
21841 (i386_regmap): Renamed from regmap, made static.
21842 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
21844 (i386_cannot_store_register): Renamed from cannot_store_register,
21846 (the_low_target): New.
21847 * linux-ia64-low.c (num_regs): Remove.
21848 (ia64_num_regs): Define.
21849 (ia64_regmap): Renamed from regmap, made static.
21850 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
21852 (ia64_cannot_store_register): Renamed from cannot_store_register,
21854 (the_low_target): New.
21855 * linux-m68k-low.c (num_regs): Remove.
21856 (m68k_num_regs): Define.
21857 (m68k_regmap): Renamed from regmap, made static.
21858 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
21860 (m68k_cannot_store_register): Renamed from cannot_store_register,
21862 (the_low_target): New.
21863 * linux-mips-low.c (num_regs): Remove.
21864 (mips_num_regs): Define.
21865 (mips_regmap): Renamed from regmap, made static.
21866 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
21868 (mips_cannot_store_register): Renamed from cannot_store_register,
21870 (the_low_target): New.
21871 * linux-ppc-low.c (num_regs): Remove.
21872 (ppc_num_regs): Define.
21873 (ppc_regmap): Renamed from regmap, made static.
21874 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
21876 (ppc_cannot_store_register): Renamed from cannot_store_register,
21878 (the_low_target): New.
21879 * linux-s390-low.c (num_regs): Remove.
21880 (s390_num_regs): Define.
21881 (s390_regmap): Renamed from regmap, made static.
21882 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
21884 (s390_cannot_store_register): Renamed from cannot_store_register,
21886 (the_low_target): New.
21887 * linux-sh-low.c (num_regs): Remove.
21888 (sh_num_regs): Define.
21889 (sh_regmap): Renamed from regmap, made static.
21890 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
21892 (sh_cannot_store_register): Renamed from cannot_store_register,
21894 (the_low_target): New.
21895 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
21896 (the_low_target): New.
21898 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
21900 * Makefile.in: Add stamp-h target.
21901 * configure.in: Create stamp-h.
21902 * configure: Regenerated.
21904 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
21906 * inferiors.c: New file.
21907 * target.c: New file.
21908 * target.h: New file.
21909 * Makefile.in: Add target.o and inferiors.o. Update
21911 * linux-low.c (inferior_pid): New static variable,
21912 moved from server.c.
21913 (linux_create_inferior): Renamed from create_inferior.
21914 Call add_inferior. Return 0 on success instead of a PID.
21915 (linux_attach): Renamed from myattach.
21916 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
21917 (linux_thread_alive): Renamed from mythread_alive.
21918 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
21920 (linux_resume): Renamed from myresume. Add missing ``return 0''.
21921 (regsets_store_inferior_registers): Correct error message.
21922 Add missing ``return 0''.
21923 (linux_fetch_registers): Renamed from fetch_inferior_registers.
21924 (linux_store_registers): Renamed from store_inferior_registers.
21925 (linux_read_memory): Renamed from read_inferior_memory.
21926 (linux_write_memory): Renamed from write_inferior_memory.
21927 (linux_target_ops): New structure.
21928 (initialize_low): Call set_target_ops ().
21929 * remote-utils.c (unhexify): New function.
21930 (hexify): New function.
21931 (input_interrupt): Send signals to ``signal_pid''.
21932 * server.c (inferior_pid): Remove.
21933 (start_inferior): Update create_inferior call.
21934 (attach_inferior): Call add_inferior.
21935 (handle_query): New function.
21936 (main): Call handle_query for `q' packets.
21937 * server.h: Include "target.h". Remove obsolete prototypes.
21938 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
21940 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
21942 * Makefile.in: Add WARN_CFLAGS. Update configury
21944 * configure.in: Check for <string.h>
21945 * configure: Regenerate.
21946 * config.in: Regenerate.
21947 * gdbreplay.c: Include needed system headers.
21948 (remote_open): Remove strchr prototype.
21949 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
21950 * regcache.c (supply_register): Change buf argument to const void *.
21951 (supply_register_by_name): Likewise.
21952 (collect_register): Change buf argument to void *.
21953 (collect_register_by_name): Likewise.
21954 * regcache.h: Add missing prototypes.
21955 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
21956 * server.c (handle_query): New function.
21957 (attached): New static variable, moved out of main.
21958 (main): Quiet longjmp clobber warnings.
21959 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
21960 * utils.c (error): Remove NORETURN.