1 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3 Turn the 'supports_range_stepping' linux target op into a method
4 of linux_process_target.
6 * linux-low.h (struct linux_target_ops): Remove the op.
7 (class linux_process_target) <low_supports_range_stepping>: Declare.
8 * linux-low.cc (linux_process_target::low_supports_range_stepping):
10 (linux_process_target::supports_range_stepping): Update the call
12 * linux-x86-low.cc (class x86_target)
13 <low_supports_range_stepping>: Declare.
14 (x86_supports_range_stepping): Turn into...
15 (x86_target::low_supports_range_stepping): ...this.
16 (the_low_target): Remove the op field.
17 * linux-aarch64-low.cc (class aarch64_target)
18 <low_supports_range_stepping>: Declare.
19 (aarch64_supports_range_stepping): Turn into...
20 (aarch64_target::low_supports_range_stepping): ...this.
21 (the_low_target): Remove the op field.
22 * linux-arm-low.cc (the_low_target): Remove the op field.
23 * linux-bfin-low.cc (the_low_target): Ditto.
24 * linux-crisv32-low.cc (the_low_target): Ditto.
25 * linux-m32r-low.cc (the_low_target): Ditto.
26 * linux-m68k-low.cc (the_low_target): Ditto.
27 * linux-ppc-low.cc (the_low_target): Ditto.
28 * linux-s390-low.cc (the_low_target): Ditto.
29 * linux-sh-low.cc (the_low_target): Ditto.
30 * linux-tic6x-low.cc (the_low_target): Ditto.
31 * linux-tile-low.cc (the_low_target): Ditto.
32 * linux-xtensa-low.cc (the_low_target): Ditto.
34 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
36 Remove the 'emit_ops' linux target ops and let the concrete
37 linux target define the op by overriding the declaration of
38 process_stratum_target.
40 * linux-low.h (struct linux_target_ops): Remove the op.
41 (class linux_process_target) <emit_ops>: Remove.
42 * linux-low.cc (linux_process_target::emit_ops): Remove.
43 * linux-x86-low.cc (class x86_target) <emit_ops>: Declare.
44 (x86_emit_ops): Turn into...
45 (x86_target::emit_ops): ...this.
46 (the_low_target): Remove the op field.
47 * linux-aarch64-low.cc (class aarch64_target) <emit_ops>: Declare.
48 (aarch64_emit_ops): Turn into...
49 (aarch64_target::emit_ops): ...this.
50 (the_low_target): Remove the op field.
51 * linux-ppc-low.cc (class ppc_target) <emit_ops>: Declare.
52 (ppc_emit_ops): Turn into...
53 (ppc_target::emit_ops): ...this.
54 (the_low_target): Remove the op field.
55 * linux-s390-low.cc (class s390_target) <emit_ops>: Declare.
56 (s390_emit_ops): Turn into...
57 (s390_target::emit_ops): ...this.
58 (the_low_target): Remove the op field.
59 * linux-arm-low.cc (the_low_target): Remove the op field.
60 * linux-bfin-low.cc (the_low_target): Ditto.
61 * linux-crisv32-low.cc (the_low_target): Ditto.
62 * linux-m32r-low.cc (the_low_target): Ditto.
63 * linux-m68k-low.cc (the_low_target): Ditto.
64 * linux-sh-low.cc (the_low_target): Ditto.
65 * linux-tic6x-low.cc (the_low_target): Ditto.
66 * linux-tile-low.cc (the_low_target): Ditto.
67 * linux-xtensa-low.cc (the_low_target): Ditto.
69 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
71 Remove the 'install_fast_tracepoint_jump_pad' and
72 'get_min_fast_tracepoint_insn_len' linux target ops to let the
73 concrete linux target define the ops by overriding the declarations
74 of process_stratum_target.
76 * linux-low.h (struct linux_target_ops): Remove the ops.
77 (class linux_process_target) <supports_fast_tracepoints>
78 <install_fast_tracepoint_jump_pad>
79 <get_min_fast_tracepoint_insn_len>: Remove.
80 * linux-low.cc (linux_process_target::supports_fast_tracepoints)
81 (linux_process_target::install_fast_tracepoint_jump_pad)
82 (linux_process_target::get_min_fast_tracepoint_insn_len): Remove.
83 * linux-x86-low.cc (class x86_target) <supports_fast_tracepoints>
84 <install_fast_tracepoint_jump_pad>
85 <get_min_fast_tracepoint_insn_len>: Declare.
86 (x86_target::supports_fast_tracepoints): Define.
87 (x86_install_fast_tracepoint_jump_pad): Turn into...
88 (x86_target::install_fast_tracepoint_jump_pad): ...this.
89 (x86_get_min_fast_tracepoint_insn_len): Turn into...
90 (x86_target::get_min_fast_tracepoint_insn_len): ...this.
91 (the_low_target): Remove the op fields.
92 * linux-aarch64-low.cc (class aarch64_target)
93 <supports_fast_tracepoints>
94 <install_fast_tracepoint_jump_pad>
95 <get_min_fast_tracepoint_insn_len>: Declare.
96 (aarch64_target::supports_fast_tracepoints): Define.
97 (aarch64_install_fast_tracepoint_jump_pad): Turn into...
98 (aarch64_target::install_fast_tracepoint_jump_pad): ...this.
99 (aarch64_get_min_fast_tracepoint_insn_len): Turn into...
100 (aarch64_target::get_min_fast_tracepoint_insn_len): ...this.
101 (the_low_target): Remove the op fields.
102 * linux-ppc-low.cc (class ppc_target) <supports_fast_tracepoints>
103 <install_fast_tracepoint_jump_pad>
104 <get_min_fast_tracepoint_insn_len>: Declare.
105 (ppc_target::supports_fast_tracepoints): Define.
106 (ppc_install_fast_tracepoint_jump_pad): Turn into...
107 (ppc_target::install_fast_tracepoint_jump_pad): ...this.
108 (ppc_get_min_fast_tracepoint_insn_len): Turn into...
109 (ppc_target::get_min_fast_tracepoint_insn_len): ...this.
110 (the_low_target): Remove the op fields.
111 * linux-s390-low.cc (class s390_target) <supports_fast_tracepoints>
112 <install_fast_tracepoint_jump_pad>
113 <get_min_fast_tracepoint_insn_len>: Declare.
114 (s390_target::supports_fast_tracepoints): Define.
115 (s390_install_fast_tracepoint_jump_pad): Turn into...
116 (s390_target::install_fast_tracepoint_jump_pad): ...this.
117 (s390_get_min_fast_tracepoint_insn_len): Turn into...
118 (s390_target::get_min_fast_tracepoint_insn_len): ...this.
119 (the_low_target): Remove the op fields.
120 * linux-arm-low.cc (the_low_target): Remove the op fields.
121 * linux-bfin-low.cc (the_low_target): Ditto.
122 * linux-crisv32-low.cc (the_low_target): Ditto.
123 * linux-m32r-low.cc (the_low_target): Ditto.
124 * linux-m68k-low.cc (the_low_target): Ditto.
125 * linux-sh-low.cc (the_low_target): Ditto.
126 * linux-tic6x-low.cc (the_low_target): Ditto.
127 * linux-tile-low.cc (the_low_target): Ditto.
128 * linux-xtensa-low.cc (the_low_target): Ditto.
130 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
132 Turn the 'get_thread_area' linux target op into a method of
133 process_stratum_target.
135 * linux-low.h (struct linux_target_ops): Remove the op.
136 (class linux_process_target) <stuck_in_jump_pad>
137 <linux_fast_tracepoint_collecting>
138 <low_get_thread_area>: Declare.
139 * linux-low.cc (supports_fast_tracepoints): Remove.
140 (linux_fast_tracepoint_collecting): Turn into...
141 (linux_process_target::linux_fast_tracepoint_collecting): ...this.
142 (linux_process_target::low_get_thread_area): Define.
143 (stuck_in_jump_pad_callback): Turn into...
144 (linux_process_target::stuck_in_jump_pad): ...this.
146 Update the caller below.
148 (linux_process_target::stabilize_threads)
150 * linux-x86-low.cc (class x86_target) <low_get_thread_area>:
152 (x86_get_thread_area): Turn into...
153 (x86_target::low_get_thread_area): ...this.
154 (the_low_target): Remove the op field.
155 * linux-aarch64-low.cc (class aarch64_target) <low_get_thread_area>:
157 (aarch64_get_thread_area): Turn into...
158 (aarch64_target::low_get_thread_area): ...this.
159 (the_low_target): Remove the op field.
160 * linux-ppc-low.cc (class ppc_target) <low_get_thread_area>:
162 (ppc_get_thread_area): Turn into...
163 (ppc_target::low_get_thread_area): ...this.
164 (the_low_target): Remove the op field.
165 * linux-s390-low.cc (class s390_target) <low_get_thread_area>:
167 (s390_get_thread_area): Turn into...
168 (s390_target::low_get_thread_area): ...this.
169 (the_low_target): Remove the op field.
170 * linux-arm-low.cc (the_low_target): Remove the op field.
171 * linux-bfin-low.cc (the_low_target): Ditto.
172 * linux-crisv32-low.cc (the_low_target): Ditto.
173 * linux-m32r-low.cc (the_low_target): Ditto.
174 * linux-m68k-low.cc (the_low_target): Ditto.
175 * linux-sh-low.cc (the_low_target): Ditto.
176 * linux-tic6x-low.cc (the_low_target): Ditto.
177 * linux-tile-low.cc (the_low_target): Ditto.
178 * linux-xtensa-low.cc (the_low_target): Ditto.
180 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
182 Remote the 'supports_tracepoints' linux target op and let the
183 concrete linux target define it by overriding the op declared in
184 process_stratum_target.
186 * linux-low.h (struct linux_target_ops): Remove the op.
187 (class linux_process_target) <supports_tracepoints>: Remove.
188 * linux-low.cc (linux_process_target::supports_tracepoints): Remove.
189 * linux-x86-low.cc (class x86_target) <supports_tracepoints>:
191 (x86_supports_tracepoints): Turn into...
192 (x86_target::supports_tracepoints): ...this.
193 (the_low_target): Remove the op field.
194 * linux-aarch64-low.cc (class aarch64_target)
195 <supports_tracepoints>: Declare.
196 (aarch64_supports_tracepoints): Turn into...
197 (aarch64_target::supports_tracepoints): ...this.
198 (the_low_target): Remove the op field.
199 * linux-ppc-low.cc (class ppc_target) <supports_tracepoints>:
201 (ppc_supports_tracepoints): Turn into...
202 (ppc_target::supports_tracepoints): ...this.
203 (the_low_target): Remove the op field.
204 * linux-s390-low.cc (class s390_target) <supports_tracepoints>:
206 (s390_supports_tracepoints): Turn into...
207 (s390_target::supports_tracepoints): ...this.
208 (the_low_target): Remove the op field.
209 * linux-arm-low.cc (the_low_target): Remove the op field.
210 * linux-bfin-low.cc (the_low_target): Ditto.
211 * linux-crisv32-low.cc (the_low_target): Ditto.
212 * linux-m32r-low.cc (the_low_target): Ditto.
213 * linux-m68k-low.cc (the_low_target): Ditto.
214 * linux-sh-low.cc (the_low_target): Ditto.
215 * linux-tic6x-low.cc (the_low_target): Ditto.
216 * linux-tile-low.cc (the_low_target): Ditto.
217 * linux-xtensa-low.cc (the_low_target): Ditto.
219 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
221 Remove the 'process_qsupported' linux target op and let a concrete
222 linux target define the op by overriding the op declaration in
223 process_stratum_target.
225 * linux-low.h (struct linux_target_ops): Remove the op.
226 (class linux_process_target) <process_qsupported>: Remove.
227 * linux-low.cc (linux_process_target::process_qsupported): Remove.
228 * linux-x86-low.cc (class x86_target) <process_qsupported>: Declare.
229 (x86_linux_process_qsupported): Turn into...
230 (x86_target::process_qsupported): ...this.
231 (the_low_target): Remove the op field.
232 * linux-aarch64-low.cc (the_low_target): Remove the op
234 * linux-arm-low.cc (the_low_target): Ditto.
235 * linux-bfin-low.cc (the_low_target): Ditto.
236 * linux-crisv32-low.cc (the_low_target): Ditto.
237 * linux-m32r-low.cc (the_low_target): Ditto.
238 * linux-m68k-low.cc (the_low_target): Ditto.
239 * linux-ppc-low.cc (the_low_target): Ditto.
240 * linux-s390-low.cc (the_low_target): Ditto.
241 * linux-sh-low.cc (the_low_target): Ditto.
242 * linux-tic6x-low.cc (the_low_target): Ditto.
243 * linux-tile-low.cc (the_low_target): Ditto.
244 * linux-xtensa-low.cc (the_low_target): Ditto.
246 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
248 Turn the 'prepare_to_resume' linux target op into a method of
249 linux_process_target.
251 * linux-low.h (struct linux_target_ops): Remove the op.
252 (class linux_process_target) <low_prepare_to_resume>: Declare.
253 * linux-low.cc (linux_process_target::low_prepare_to_resume):
256 Update the callers below:
258 (linux_process_target::resume_one_lwp_throw)
259 (linux_process_target::low_prepare_to_resume)
261 * linux-x86-low.cc (class x86_target) <low_prepare_to_resume>:
263 (x86_target::low_prepare_to_resume): Define.
264 (the_low_target): Remove the op field.
265 * linux-aarch64-low.cc (class aarch64_target)
266 <low_prepare_to_resume>: Declare.
267 (aarch64_target::low_prepare_to_resume): Define.
268 (the_low_target): Remove the op field.
269 * linux-arm-low.cc (class arm_target) <low_prepare_to_resume>:
271 (arm_prepare_to_resume): Turn into...
272 (arm_target::low_prepare_to_resume): ...this.
273 (the_low_target): Remove the op field.
274 * linux-mips-low.cc (class mips_target) <low_prepare_to_resume>:
276 (mips_linux_prepare_to_resume): Turn into...
277 (mips_target::low_prepare_to_resume): ...this.
278 (the_low_target): Remove the op field.
279 * linux-bfin-low.cc (the_low_target): Remove the op field.
280 * linux-crisv32-low.cc (the_low_target): Ditto.
281 * linux-m32r-low.cc (the_low_target): Ditto.
282 * linux-m68k-low.cc (the_low_target): Ditto.
283 * linux-ppc-low.cc (the_low_target): Ditto.
284 * linux-s390-low.cc (the_low_target): Ditto.
285 * linux-sh-low.cc (the_low_target): Ditto.
286 * linux-tic6x-low.cc (the_low_target): Ditto.
287 * linux-tile-low.cc (the_low_target): Ditto.
288 * linux-xtensa-low.cc (the_low_target): Ditto.
290 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
292 Turn the 'new_process', 'delete_process', 'new_thread',
293 'delete_thread', and 'new_fork' linux target ops into methods
294 of linux_process_target.
296 * linux-low.h (struct linux_target_ops): Remove the ops.
297 (class linux_process_target) <add_linux_process>
302 <check_zombie_leaders>
308 <low_new_fork>: Declare.
309 * linux-low.cc (delete_lwp): Turn into...
310 (linux_process_target::delete_lwp): ...this.
311 (linux_process_target::low_delete_thread): Define.
312 (linux_add_process): Turn into...
313 (linux_process_target::add_linux_process): ...this.
314 (linux_process_target::low_new_process): Define.
315 (linux_process_target::low_delete_process): Define.
316 (linux_process_target::low_new_fork): Define.
317 (add_lwp): Turn into...
318 (linux_process_target::add_lwp): ...this.
319 (linux_process_target::low_new_thread): Define.
320 (linux_attach_lwp): Turn into...
321 (linux_process_target::attach_lwp): ...this.
322 (linux_detach_one_lwp): Turn into...
323 (linux_process_target::detach_one_lwp): ...this.
324 (linux_detach_lwp_callback): Remove and inline...
325 (linux_process_target::detach): ...here.
326 (check_zombie_leaders): Turn into...
327 (linux_process_target::check_zombie_leaders): ...this.
328 (filter_exit_event): Turn into...
329 (linux_process_target::filter_exit_event): ...this.
331 Update the callers below.
333 (linux_process_target::handle_extended_wait)
334 (linux_process_target::create_inferior)
335 (attach_proc_task_lwp_callback)
336 (linux_process_target::attach)
337 (linux_process_target::detach)
338 (linux_process_target::mourn)
339 * thread-db.cc (attach_thread)
341 * linux-x86-low.cc (class x86_target) <low_new_process>
345 <low_new_fork>: Declare.
346 (x86_linux_new_process): Turn into...
347 (x86_target::low_new_process): ...this.
348 (x86_linux_delete_process): Turn into...
349 (x86_target::low_delete_process): ...this.
350 (x86_target::low_new_thread): Define.
351 (x86_target::low_delete_thread): Define.
352 (x86_linux_new_fork): Turn into...
353 (x86_target::low_new_fork): ...this.
354 (the_low_target): Remove the op fields.
355 * linux-aarch64-low.cc (class aarch64_target) <low_new_process>
359 <low_new_fork>: Declare.
360 (aarch64_linux_new_process): Turn into...
361 (aarch64_target::low_new_process): ...this.
362 (aarch64_linux_delete_process): Turn into...
363 (aarch64_target::low_delete_process): ...this.
364 (aarch64_target::low_new_thread): Define.
365 (aarch64_target::low_delete_thread): Define.
366 (aarch64_linux_new_fork): Turn into...
367 (aarch64_target::low_new_fork): ...this.
368 (the_low_target): Remove the op fields.
369 * linux-arm-low.cc (class arm_target) <low_new_process>
373 <low_new_fork>: Declare.
374 (arm_new_process): Turn into...
375 (arm_target::low_new_process): ...this.
376 (arm_delete_process): Turn into...
377 (arm_target::low_delete_process): ...this.
378 (arm_new_thread): Turn into...
379 (arm_target::low_new_thread): ...this.
380 (arm_delete_thread): Turn into...
381 (arm_target::low_delete_thread): ...this.
382 (arm_new_fork): Turn into...
383 (arm_target::low_new_fork): ...this.
384 (the_low_target): Remove the op fields.
385 * linux-mips-low.cc (class mips_target) <low_new_process>
389 <low_new_fork>: Declare.
390 (mips_linux_new_process): Turn into...
391 (mips_target::low_new_process): ...this.
392 (mips_linux_delete_process): Turn into...
393 (mips_target::low_delete_process): ...this.
394 (mips_linux_new_thread): Turn into...
395 (mips_target::low_new_thread): ...this.
396 (mips_linux_delete_thread): Turn into...
397 (mips_target::low_delete_thread): ...this.
398 (mips_linux_new_fork): Turn into...
399 (mips_target::low_new_fork): ...this.
400 (the_low_target): Remove the op fields.
401 * linux-bfin-low.cc (the_low_target): Remove the op fields.
402 * linux-crisv32-low.cc (the_low_target): Ditto.
403 * linux-m32r-low.cc (the_low_target): Ditto.
404 * linux-m68k-low.cc (the_low_target): Ditto.
405 * linux-ppc-low.cc (the_low_target): Ditto.
406 * linux-s390-low.cc (the_low_target): Ditto.
407 * linux-sh-low.cc (the_low_target): Ditto.
408 * linux-tic6x-low.cc (the_low_target): Ditto.
409 * linux-tile-low.cc (the_low_target): Ditto.
410 * linux-xtensa-low.cc (the_low_target): Ditto.
412 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
414 Turn the 'siginfo_fixup' linux target op into a method of
415 linux_process_target.
417 * linux-low.h (struct linux_target_ops): Remove the op.
418 (class linux_process_target) <siginfo_fixup>
419 <low_siginfo_fixup>: Declare.
420 * linux-low.cc (siginfo_fixup): Turn into...
421 (linux_process_target::siginfo_fixup): ...this.
422 (linux_process_target::low_siginfo_fixup): Define.
423 * linux-x86-low.cc (class x86_target) <low_siginfo_fixup>: Declare.
424 (x86_siginfo_fixup): Turn into...
425 (x86_target::low_siginfo_fixup): ...this.
426 (the_low_target): Remove the op field.
427 * linux-aarch64-low.cc (class aarch64_target):
428 <low_siginfo_fixup>: Declare.
429 (aarch64_linux_siginfo_fixup): Turn into...
430 (aarch64_target::low_siginfo_fixup): ...this.
431 (the_low_target): Remove the op field.
432 * linux-arm-low.cc (the_low_target): Remove the op field.
433 * linux-bfin-low.cc (the_low_target): Ditto.
434 * linux-crisv32-low.cc (the_low_target): Ditto.
435 * linux-m32r-low.cc (the_low_target): Ditto.
436 * linux-m68k-low.cc (the_low_target): Ditto.
437 * linux-mips-low.cc (the_low_target): Ditto.
438 * linux-ppc-low.cc (the_low_target): Ditto.
439 * linux-s390-low.cc (the_low_target): Ditto.
440 * linux-sh-low.cc (the_low_target): Ditto.
441 * linux-tic6x-low.cc (the_low_target): Ditto.
442 * linux-tile-low.cc (the_low_target): Ditto.
443 * linux-xtensa-low.cc (the_low_target): Ditto.
445 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
447 Turn the 'collect_ptrace_register' and 'supply_ptrace_register'
448 linux target ops into methods of linux_process_target.
450 * linux-low.h (struct linux_target_ops): Remove the ops.
451 (class linux_process_target) <low_collect_ptrace_register>
452 <low_store_ptrace_register>: Declare.
453 * linux-low.cc (linux_process_target::low_collect_ptrace_register)
454 (linux_process_target::low_supply_ptrace_register): Define.
456 Update the callers below.
458 (linux_process_target::fetch_register)
459 (linux_process_target::store_register)
461 * linux-x86-low.cc (the_low_target): Remove the op fields.
462 * linux-aarch64-low.cc (the_low_target): Ditto.
463 * linux-arm-low.cc (the_low_target): Ditto.
464 * linux-bfin-low.cc (the_low_target): Ditto.
465 * linux-crisv32-low.cc (the_low_target): Ditto.
466 * linux-m32r-low.cc (the_low_target): Ditto.
467 * linux-m68k-low.cc (the_low_target): Ditto.
468 * linux-sh-low.cc (the_low_target): Ditto.
469 * linux-sparc-low.cc (the_low_target): Ditto.
470 * linux-tic6x-low.cc (the_low_target): Ditto.
471 * linux-tile-low.cc (the_low_target): Ditto.
472 * linux-xtensa-low.cc (the_low_target): Ditto.
473 * linux-mips-low.cc (class mips_target)
474 <low_collect_ptrace_register>
475 <low_supply_ptrace_register>: Declare.
476 (mips_collect_ptrace_register): Turn into ...
477 (mips_target::low_collect_ptrace_register): ...this.
478 (mips_supply_ptrace_register): Turn into...
479 (mips_target::low_supply_ptrace_register): ...this.
480 (the_low_target): Remove the op fields.
481 * linux-ppc-low.cc (class ppc_target)
482 <low_collect_ptrace_register>
483 <low_supply_ptrace_register>: Declare.
484 (ppc_collect_ptrace_register): Turn into ...
485 (ppc_target::low_collect_ptrace_register): ...this.
486 (ppc_supply_ptrace_register): Turn into ...
487 (ppc_target::low_supply_ptrace_register): ...this.
488 (ppc_fill_gregset): Update for the calls to
489 low_collect_ptrace_register.
490 (the_low_target): Remove the op fields.
491 * linux-s390-low.cc (class s390_target)
492 <low_collect_ptrace_register>
493 <low_supply_ptrace_register>: Declare.
494 (s390_collect_ptrace_register): Turn into ...
495 (s390_target::low_collect_ptrace_register): ...this.
496 (s390_supply_ptrace_register): Turn into ...
497 (s390_target::low_supply_ptrace_register): ...this.
498 (s390_fill_gregset): Update for the calls to
499 low_collect_ptrace_register.
500 (the_low_target): Remove the op fields.
502 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
504 Turn the 'stopped_by_watchpoint' and 'stopped_data_address' linux
505 target ops into methods of linux_process_target.
507 * linux-low.h (struct linux_target_ops): Remove the ops.
508 (class linux_process_target) <check_stopped_by_watchpoint>
509 <low_stopped_by_watchpoint>
510 <low_stopped_data_address>: Declare.
511 * linux-low.cc (check_stopped_by_watchpoint): Turn into...
512 (linux_process_target::check_stopped_by_watchpoint): ...this.
513 (linux_process_target::low_stopped_by_watchpoint): Define.
514 (linux_process_target::low_stopped_data_address): Define.
515 * linux-x86-low.cc (class x86_target) <low_stopped_by_watchpoint>
516 <low_stopped_data_address>: Declare.
517 (x86_stopped_by_watchpoint): Turn into...
518 (x86_target::low_stopped_by_watchpoint): ...this.
519 (x86_stopped_data_address): Turn into...
520 (x86_target::low_stopped_data_address): ...this.
521 (the_low_target): Remove the op fields.
522 * linux-aarch64-low.cc (class aarch64_target)
523 <low_stopped_by_watchpoint>
524 <low_stopped_data_address>: Declare.
525 (aarch64_stopped_by_watchpoint): Turn into...
526 (aarch64_target::low_stopped_by_watchpoint): ...this.
527 (aarch64_stopped_data_address): Turn into...
528 (aarch64_target::low_stopped_data_address): ...this.
529 (the_low_target): Remove the op fields.
530 * linux-arm-low.cc (class arm_target) <low_stopped_by_watchpoint>
531 <low_stopped_data_address>: Declare.
532 (arm_stopped_by_watchpoint): Turn into...
533 (arm_target::low_stopped_by_watchpoint): ...this.
534 (arm_stopped_data_address): Turn into...
535 (arm_target::low_stopped_data_address): ...this.
536 (the_low_target): Remove the op fields.
537 * linux-crisv32-low.cc (class crisv32_target)
538 <low_stopped_by_watchpoint>
539 <low_stopped_data_address>: Declare.
540 (cris_stopped_by_watchpoint): Turn into...
541 (crisv32_target::low_stopped_by_watchpoint): ...this.
542 (cris_stopped_data_address): Turn into...
543 (crisv32_target::low_stopped_data_address): ...this.
544 (the_low_target): Remove the op fields.
545 * linux-mips-low.cc (class mips_target) <low_stopped_by_watchpoint>
546 <low_stopped_data_address>: Declare.
547 (mips_stopped_by_watchpoint): Turn into...
548 (mips_target::low_stopped_by_watchpoint): ...this.
549 (mips_stopped_data_address): Turn into...
550 (mips_target::low_stopped_data_address): ...this.
551 (the_low_target): Remove the op fields.
552 * linux-bfin-low.cc (the_low_target): Remove the op fields.
553 * linux-m32r-low.cc (the_low_target): Ditto.
554 * linux-m68k-low.cc (the_low_target): Ditto.
555 * linux-ppc-low.cc (the_low_target): Ditto.
556 * linux-s390-low.cc (the_low_target): Ditto.
557 * linux-sh-low.cc (the_low_target): Ditto.
558 * linux-sparc-low.cc (the_low_target): Ditto.
559 * linux-tic6x-low.cc (the_low_target): Ditto.
560 * linux-tile-low.cc (the_low_target): Ditto.
561 * linux-xtensa-low.cc (the_low_target): Ditto.
563 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
565 Turn the 'insert_point' and 'remove_point' linux target ops into
566 methods of linux_process_target.
568 * linux-low.h (struct linux_target_ops): Remove the ops.
569 (class linux_process_target) <low_insert_point>
570 <low_remove_point>: Declare.
571 * linux-low.cc (linux_process_target::low_insert_point)
572 (linux_process_target::low_remove_point): Define.
573 (linux_process_target::insert_point)
574 (linux_process_target::remove_point): Update for calls to
575 low_insert_point and low_remove_point.
576 * linux-x86-low.cc (class x86_target) <low_insert_point>
577 <low_remove_point>: Declare.
578 (x86_insert_point): Turn into...
579 (x86_target::low_insert_point): ...this.
580 (x86_remove_point): Turn into...
581 (x86_target::low_remove_point): ...this.
582 (the_low_target): Remove the op fields.
583 * linux-aarch64-low.cc (class aarch64_target) <low_insert_point>
584 <low_remove_point>: Declare.
585 (aarch64_insert_point): Turn into...
586 (aarch64_target::low_insert_point): ...this.
587 (aarch64_remove_point): Turn into...
588 (aarch64_target::low_remove_point): ...this.
589 (the_low_target): Remove the op fields.
590 * linux-arm-low.cc (class arm_target) <low_insert_point>
591 <low_remove_point>: Declare.
592 (arm_insert_point): Turn into...
593 (arm_target::low_insert_point): ...this.
594 (arm_remove_point): Turn into...
595 (arm_target::low_remove_point): ...this.
596 (the_low_target): Remove the op fields.
597 * linux-crisv32-low.cc (class crisv32_target) <low_insert_point>
598 <low_remove_point>: Declare.
599 (crisv32_insert_point): Turn into...
600 (crisv32_target::low_insert_point): ...this.
601 (crisv32_remove_point): Turn into...
602 (crisv32_target::low_remove_point): ...this.
603 (the_low_target): Remove the op fields.
604 * linux-mips-low.cc (class mips_target) <low_insert_point>
605 <low_remove_point>: Declare.
606 (mips_insert_point): Turn into...
607 (mips_target::low_insert_point): ...this.
608 (mips_remove_point): Turn into...
609 (mips_target::low_remove_point): ...this.
610 (the_low_target): Remove the op fields.
611 * linux-ppc-low.cc (class ppc_target) <low_insert_point>
612 <low_remove_point>: Declare.
613 (ppc_insert_point): Turn into...
614 (ppc_target::low_insert_point): ...this.
615 (ppc_remove_point): Turn into...
616 (ppc_target::low_remove_point): ...this.
617 (the_low_target): Remove the op fields.
618 * linux-bfin-low.cc (the_low_target): Remove the op fields.
619 * linux-m32r-low.cc (the_low_target): Ditto.
620 * linux-m68k-low.cc (the_low_target): Ditto.
621 * linux-s390-low.cc (the_low_target): Ditto.
622 * linux-sh-low.cc (the_low_target): Ditto.
623 * linux-sparc-low.cc (the_low_target): Ditto.
624 * linux-tic6x-low.cc (the_low_target): Ditto.
625 * linux-tile-low.cc (the_low_target): Ditto.
626 * linux-xtensa-low.cc (the_low_target): Ditto.
628 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
630 Remove the 'supports_z_point_type' linux target op and let the
631 concrete linux target define it by overriding the op declared in
632 process_stratum_target.
634 * linux-low.cc (linux_process_target::supports_z_point_type):
636 * linux-low.h (struct linux_target_ops): Remove the op.
637 (class linux_process_target) <supports_z_point_type>: Remove.
638 * linux-x86-low.cc (class x86_target) <supports_z_point_type>:
640 (x86_supports_z_point_type): Turn into...
641 (x86_target::supports_z_point_type): ...this.
642 (the_low_target): Remove the op field.
643 * linux-aarch64-low.cc (class aarch64_target)
644 <supports_z_point_type>: Declare.
645 (aarch64_supports_z_point_type): Turn into...
646 (aarch64_target::supports_z_point_type): ...this.
647 (the_low_target): Remove the op field.
648 * linux-arm-low.cc (class arm_target) <supports_z_point_type>:
650 (arm_supports_z_point_type): Turn into...
651 (arm_target::supports_z_point_type): ...this.
652 (the_low_target): Remove the op field.
653 * linux-crisv32-low.cc (class crisv32_target)
654 <supports_z_point_type>: Declare.
655 (cris_supports_z_point_type): Turn into...
656 (crisv32_target::supports_z_point_type): ...this.
657 (the_low_target): Remove the op field.
658 * linux-mips-low.cc (class mips_target) <supports_z_point_type>:
660 (mips_supports_z_point_type): Turn into...
661 (mips_target::supports_z_point_type): ...this.
662 (the_low_target): Remove the op field.
663 * linux-ppc-low.cc (class ppc_target) <supports_z_point_type>:
665 (ppc_supports_z_point_type): Turn into...
666 (ppc_target::supports_z_point_type): ...this.
667 (the_low_target): Remove the op field.
668 * linux-s390-low.cc (class s390_target) <supports_z_point_type>:
670 (s390_supports_z_point_type): Turn into...
671 (s390_target::supports_z_point_type): ...this.
672 (the_low_target): Remove the op field.
673 * linux-bfin-low.cc (the_low_target): Remove the op field.
674 * linux-m32r-low.cc (the_low_target): Ditto.
675 * linux-m68k-low.cc (the_low_target): Ditto.
676 * linux-sh-low.cc (the_low_target): Ditto.
677 * linux-sparc-low.cc (the_low_target): Ditto.
678 * linux-tic6x-low.cc (the_low_target): Ditto.
679 * linux-tile-low.cc (the_low_target): Ditto.
680 * linux-xtensa-low.cc (the_low_target): Ditto.
682 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
684 Turn the 'breakpoint_at' linux target op into a method of
685 linux_process_target.
687 * linux-low.h (struct linux_target_ops): Remove the op.
688 (class linux_process_target) <low_breakpoint_at>: Declare.
690 Update the callers below:
692 * linux-low.cc (linux_process_target::save_stop_reason)
693 (linux_process_target::thread_still_has_status_pending)
694 (linux_process_target::wait_1)
696 * linux-x86-low.cc (class x86_target)
697 <low_breakpoint_at>: Declare.
698 (x86_breakpoint_at): Turn into...
699 (x86_target::low_breakpoint_at): ...this.
700 (the_low_target): Remove the op field.
701 * linux-aarch64-low.cc (class aarch64_target)
702 <low_breakpoint_at>: Declare.
703 (aarch64_breakpoint_at): Turn into...
704 (aarch64_target::low_breakpoint_at): ...this.
705 (the_low_target): Remove the op field.
706 * linux-arm-low.cc (class arm_target)
707 <low_breakpoint_at>: Declare.
708 (arm_target::low_breakpoint_at): Define.
709 (the_low_target): Remove the op field.
710 * linux-bfin-low.cc (class bfin_target)
711 <low_breakpoint_at>: Declare.
712 (bfin_breakpoint_at): Turn into...
713 (bfin_target::low_breakpoint_at): ...this.
714 (the_low_target): Remove the op field.
715 * linux-cris-low.cc (class cris_target)
716 <low_breakpoint_at>: Declare.
717 (cris_breakpoint_at): Turn into...
718 (cris_target::low_breakpoint_at): ...this.
719 (the_low_target): Remove the op field.
720 * linux-crisv32-low.cc (class crisv32_target)
721 <low_breakpoint_at>: Declare.
722 (crisv32_breakpoint_at): Turn into...
723 (crisv32_target::low_breakpoint_at): ...this.
724 (the_low_target): Remove the op field.
725 * linux-ia64-low.cc (class ia64_target)
726 <low_breakpoint_at>: Declare.
727 (ia64_target::low_breakpoint_at): Define.
728 * linux-m32r-low.cc (class m32r_target)
729 <low_breakpoint_at>: Declare.
730 (m32r_breakpoint_at): Turn into...
731 (m32r_target::low_breakpoint_at): ...this.
732 (the_low_target): Remove the op field.
733 * linux-m68k-low.cc (class m68k_target)
734 <low_breakpoint_at>: Declare.
735 (m68k_breakpoint_at): Turn into...
736 (m68k_target::low_breakpoint_at): ...this.
737 (the_low_target): Remove the op field.
738 * linux-mips-low.cc (class mips_target)
739 <low_breakpoint_at>: Declare.
740 (mips_breakpoint_at): Turn into...
741 (mips_target::low_breakpoint_at): ...this.
742 (the_low_target): Remove the op field.
743 * linux-nios2-low.cc (class nios2_target)
744 <low_breakpoint_at>: Declare.
745 (nios2_breakpoint_at): Turn into...
746 (nios2_target::low_breakpoint_at): ...this.
747 (the_low_target): Remove the op field.
748 * linux-ppc-low.cc (class ppc_target)
749 <low_breakpoint_at>: Declare.
750 (ppc_breakpoint_at): Turn into...
751 (ppc_target::low_breakpoint_at): ...this.
752 (the_low_target): Remove the op field.
753 * linux-riscv-low.cc (class riscv_target)
754 <low_breakpoint_at>: Declare.
755 (riscv_breakpoint_at): Turn into...
756 (riscv_target::low_breakpoint_at): ...this.
757 (the_low_target): Remove the op field.
758 * linux-s390-low.cc (class s390_target)
759 <low_breakpoint_at>: Declare.
760 (s390_breakpoint_at): Turn into...
761 (s390_target::low_breakpoint_at): ...this.
762 (the_low_target): Remove the op field.
763 * linux-sh-low.cc (class sh_target)
764 <low_breakpoint_at>: Declare.
765 (sh_breakpoint_at): Turn into...
766 (sh_target::low_breakpoint_at): ...this.
767 (the_low_target): Remove the op field.
768 * linux-sparc-low.cc (class sparc_target)
769 <low_breakpoint_at>: Declare.
770 (sparc_breakpoint_at): Turn into...
771 (sparc_target::low_breakpoint_at): ...this.
772 (the_low_target): Remove the op field.
773 * linux-tic6x-low.cc (class tic6x_target)
774 <low_breakpoint_at>: Declare.
775 (tic6x_breakpoint_at): Turn into...
776 (tic6x_target::low_breakpoint_at): ...this.
777 (the_low_target): Remove the op field.
778 * linux-tile-low.cc (class tile_target)
779 <low_breakpoint_at>: Declare.
780 (tile_breakpoint_at): Turn into...
781 (tile_target::low_breakpoint_at): ...this.
782 (the_low_target): Remove the op field.
783 * linux-xtensa-low.cc (class xtensa_target)
784 <low_breakpoint_at>: Declare.
785 (xtensa_breakpoint_at): Turn into...
786 (xtensa_target::low_breakpoint_at): ...this.
787 (the_low_target): Remove the op field.
789 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
791 Turn the 'decr_pc_after_break' linux_target_ops field into
792 a method of linux_process_target.
794 * linux-low.h (struct linux_target_ops)
795 <decr_pc_after_break>: Remove.
796 (class linux_process_target) <low_decr_pc_after_break>: New method
798 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
799 New method implementation.
801 Update the users below.
803 (linux_process_target::save_stop_reason)
804 (linux_process_target::wait_1)
805 * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
807 (x86_target::low_decr_pc_after_break): New method implementation.
808 (the_low_target): Remove the field.
809 * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
811 (bfin_target::low_decr_pc_after_break): New method implementation.
812 (the_low_target): Remove the field.
813 * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
815 (m68k_target::low_decr_pc_after_break): New method implementation.
816 (the_low_target): Remove the field.
817 * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
819 (s390_target::low_decr_pc_after_break): New method implementation.
820 (the_low_target): Remove the field.
821 * linux-aarch64-low.cc (the_low_target): Remove the field.
822 * linux-arm-low.cc (the_low_target): Remove the field.
823 * linux-cris-low.cc (the_low_target): Remove the field.
824 * linux-crisv32-low.cc (the_low_target): Remove the field.
825 * linux-m32r-low.cc (the_low_target): Remove the field.
826 * linux-mips-low.cc (the_low_target): Remove the field.
827 * linux-nios2-low.cc (the_low_target): Remove the field.
828 * linux-ppc-low.cc (the_low_target): Remove the field.
829 * linux-riscv-low.cc (the_low_target): Remove the field.
830 * linux-sh-low.cc (the_low_target): Remove the field.
831 * linux-sparc-low.cc (the_low_target): Remove the field.
832 * linux-tic6x-low.cc (the_low_target): Remove the field.
833 * linux-tile-low.cc (the_low_target): Remove the field.
834 * linux-xtensa-low.cc (the_low_target): Remove the field.
836 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
838 Remove the 'supports_software_single_step' linux target op and let
839 the concrete linux target define it by overriding the op in
840 process_stratum_target.
841 Turn the 'get_next_pcs' linux target op into a method of
842 linux_process_target.
844 * linux-low.h (struct linux_target_ops): Remove the ops.
845 (class linux_process_target) <supports_software_single_step>:
847 <low_get_next_pcs>: Declare.
848 * linux-low.cc (can_software_single_step): Remove.
849 (linux_process_target::low_get_next_pcs): Define.
850 (linux_process_target::supports_software_single_step): Remove.
852 Update the callers below.
854 (linux_process_target::handle_extended_wait)
855 (linux_process_target::wait_1)
856 (linux_process_target::install_software_single_step_breakpoints)
857 (linux_process_target::single_step)
858 (linux_process_target::thread_needs_step_over)
859 (linux_process_target::proceed_one_lwp)
860 (linux_process_target::supports_range_stepping)
862 * linux-x86-low.cc (the_low_target): Remove the op field.
863 * linux-aarch64-low.cc (the_low_target): Ditto.
864 * linux-bfin-low.cc (the_low_target): Ditto.
865 * linux-cris-low.cc (the_low_target): Ditto.
866 * linux-crisv32-low.cc (the_low_target): Ditto.
867 * linux-m32r-low.cc (the_low_target): Ditto.
868 * linux-m68k-low.cc (the_low_target): Ditto.
869 * linux-mips-low.cc (the_low_target): Ditto.
870 * linux-nios2-low.cc (the_low_target): Ditto.
871 * linux-ppc-low.cc (the_low_target): Ditto.
872 * linux-riscv-low.cc (the_low_target): Ditto.
873 * linux-s390-low.cc (the_low_target): Ditto.
874 * linux-sh-low.cc (the_low_target): Ditto.
875 * linux-sparc-low.cc (the_low_target): Ditto.
876 * linux-tic6x-low.cc (the_low_target): Ditto.
877 * linux-tile-low.cc (the_low_target): Ditto.
878 * linux-xtensa-low.cc (the_low_target): Ditto.
879 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
880 <supports_software_single_step>: Declare.
881 (arm_target::supports_software_single_step): Define.
882 (arm_gdbserver_get_next_pcs): Turn into...
883 (arm_target::low_get_next_pcs): ...this.
884 (the_low_target): Remove the op field.
886 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
888 Remove the 'sw_breakpoint_from_kind' linux target op, and let
889 the concrete linux target define it by overriding the op
890 in process_stratum_target.
892 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
894 * linux-low.h (struct linux_target_ops): Remove the op.
895 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
896 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
898 (x86_sw_breakpoint_from_kind): Turn into...
899 (x86_target::sw_breakpoint_from_kind): ...this.
900 (the_low_target): Remove the op field.
901 * linux-aarch64-low.cc (class aarch64_target)
902 <sw_breakpoint_from_kind>: Declare.
903 (aarch64_sw_breakpoint_from_kind): Turn into...
904 (aarch64_target::sw_breakpoint_from_kind): ...this.
905 (the_low_target): Remove the op field.
906 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
908 (arm_target::sw_breakpoint_from_kind): Define.
909 (the_low_target): Remove the op field.
910 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
912 (bfin_sw_breakpoint_from_kind): Turn into...
913 (bfin_target::sw_breakpoint_from_kind): ...this.
914 (the_low_target): Remove the op field.
915 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
917 (cris_sw_breakpoint_from_kind): Turn into...
918 (cris_target::sw_breakpoint_from_kind): ...this.
919 (the_low_target): Remove the op field.
920 * linux-crisv32-low.cc (class crisv32_target)
921 <sw_breakpoint_from_kind>: Declare.
922 (cris_sw_breakpoint_from_kind): Turn into...
923 (crisv32_target::sw_breakpoint_from_kind): ...this.
924 (the_low_target): Remove the op field.
925 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
927 (ia64_target::sw_breakpoint_from_kind): Define.
928 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
930 (m32r_sw_breakpoint_from_kind): Turn into...
931 (m32r_target::sw_breakpoint_from_kind): ...this.
932 (the_low_target): Remove the op field.
933 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
935 (m68k_sw_breakpoint_from_kind): Turn into...
936 (m68k_target::sw_breakpoint_from_kind): ...this.
937 (the_low_target): Remove the op field.
938 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
940 (mips_sw_breakpoint_from_kind): Turn into...
941 (mips_target::sw_breakpoint_from_kind): ...this.
942 (the_low_target): Remove the op field.
943 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
945 (nios2_sw_breakpoint_from_kind): Turn into...
946 (nios2_target::sw_breakpoint_from_kind): ...this.
947 (the_low_target): Remove the op field.
948 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
950 (ppc_sw_breakpoint_from_kind): Turn into...
951 (ppc_target::sw_breakpoint_from_kind): ...this.
952 (the_low_target): Remove the op field.
953 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
955 (riscv_sw_breakpoint_from_kind): Turn into...
956 (riscv_target::sw_breakpoint_from_kind): ...this.
957 (the_low_target): Remove the op field.
958 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
960 (s390_sw_breakpoint_from_kind): Turn into...
961 (s390_target::sw_breakpoint_from_kind): ...this.
962 (the_low_target): Remove the op field.
963 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
965 (sh_sw_breakpoint_from_kind): Turn into...
966 (sh_target::sw_breakpoint_from_kind): ...this.
967 (the_low_target): Remove the op field.
968 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
970 (sparc_sw_breakpoint_from_kind): Turn into...
971 (sparc_target::sw_breakpoint_from_kind): ...this.
972 (the_low_target): Remove the op field.
973 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
975 (tic6x_sw_breakpoint_from_kind): Turn into...
976 (tic6x_target::sw_breakpoint_from_kind): ...this.
977 (the_low_target): Remove the op field.
978 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
980 (tile_sw_breakpoint_from_kind): Turn into...
981 (tile_target::sw_breakpoint_from_kind): ...this.
982 (the_low_target): Remove the op field.
983 * linux-xtensa-low.cc (class xtensa_target)
984 <sw_breakpoint_from_kind>: Declare.
985 (xtensa_sw_breakpoint_from_kind): Turn into...
986 (xtensa_target::sw_breakpoint_from_kind): ...this.
987 (the_low_target): Remove the op field.
989 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
991 Remove the 'breakpoint_kind_from_pc' and
992 'breakpoint_kind_from_current_state' linux target ops, and let the
993 concrete linux target define them by overriding the ops of
994 process_stratum_target.
996 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
998 (linux_process_target::breakpoint_kind_from_current_state): Remove.
999 * linux-low.h (struct linux_target_ops): Remove ops.
1000 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
1001 <breakpoint_kind_from_current_state>: Remove.
1002 * linux-x86-low.cc (the_low_target): Remove the op fields.
1003 * linux-bfin-low.cc (the_low_target): Ditto.
1004 * linux-cris-low.cc (the_low_target): Ditto.
1005 * linux-crisv32-low.cc (the_low_target): Ditto.
1006 * linux-m32r-low.cc (the_low_target): Ditto.
1007 * linux-m68k-low.cc (the_low_target): Ditto.
1008 * linux-mips-low.cc (the_low_target): Ditto.
1009 * linux-nios2-low.cc (the_low_target): Ditto.
1010 * linux-ppc-low.cc (the_low_target): Ditto.
1011 * linux-s390-low.cc (the_low_target): Ditto.
1012 * linux-sh-low.cc (the_low_target): Ditto.
1013 * linux-sparc-low.cc (the_low_target): Ditto.
1014 * linux-tic6x-low.cc (the_low_target): Ditto.
1015 * linux-tile-low.cc (the_low_target): Ditto.
1016 * linux-xtensa-low.cc (the_low_target): Ditto.
1017 * linux-aarch64-low.cc (class aarch64_target)
1018 <breakpoint_kind_from_pc>
1019 <breakpoint_kind_from_current_state>: Declare.
1020 (aarch64_breakpoint_kind_from_pc): Turn into...
1021 (aarch64_target::breakpoint_kind_from_pc): ...this.
1022 (aarch64_breakpoint_kind_from_current_state): Turn into...
1023 (aarch64_target::breakpoint_kind_from_current_state): ...this.
1024 (the_low_target): Remove the op fields.
1025 * linux-arm-low.cc (class arm_target):
1026 <breakpoint_kind_from_pc>
1027 <breakpoint_kind_from_current_state>: Declare.
1028 (arm_target::breakpoint_kind_from_pc): Define.
1029 (arm_target::breakpoint_kind_from_current_state): Define.
1030 (the_low_target): Remove the op fields.
1031 * linux-riscv-low.cc (class riscv_target):
1032 <breakpoint_kind_from_pc>: Declare.
1033 (riscv_breakpoint_kind_from_pc): Turn into...
1034 (riscv_target::breakpoint_kind_from_pc): ...this.
1035 (the_low_target): Remove the op fields.
1037 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1039 Turn the 'get_pc' and 'set_pc' linux target ops into methods
1040 of linux_process_target.
1042 * linux-low.h (struct linux_target_ops): Remove the ops.
1043 (class linux_process_target) <low_supports_breakpoints>
1045 <low_set_pc>: Declare.
1046 * linux-low.cc (supports_breakpoints): Turn into...
1047 (linux_process_target::low_supports_breakpoints): ...this.
1048 (linux_process_target::low_get_pc): Define.
1049 (linux_process_target::low_set_pc): Define.
1051 Update the callers below.
1053 (linux_process_target::get_pc)
1054 (linux_process_target::save_stop_reason)
1055 (linux_process_target::maybe_move_out_of_jump_pad)
1056 (linux_process_target::wait_1)
1057 (linux_process_target::resume_one_lwp_throw)
1058 (linux_process_target::resume)
1059 (linux_process_target::proceed_all_lwps)
1060 (linux_process_target::read_pc)
1061 (linux_process_target::write_pc)
1063 * linux-x86-low.cc (class linux_process_target)
1064 <low_supports_breakpoints>
1066 <low_set_pc>: Declare.
1067 (x86_target::low_supports_breakpoints): Define.
1068 (x86_get_pc): Turn into...
1069 (x86_target::low_get_pc): ...this.
1070 (x86_set_pc): Turn into...
1071 (x86_target::low_set_pc): ...this.
1072 (the_low_target): Remove the op fields.
1073 * linux-arm-low.cc (class arm_target)
1074 <low_supports_breakpoints>
1076 <low_set_pc>: Declare.
1077 (arm_target::low_supports_breakpoints)
1078 (arm_target::low_get_pc)
1079 (arm_target::low_set_pc): Define.
1080 (the_low_target): Remove the op fields.
1081 * linux-bfin-low.cc (class bfin_target)
1082 <low_supports_breakpoints>
1084 <low_set_pc>: Declare.
1085 (bfin_target::low_supports_breakpoints)
1086 (bfin_target::low_get_pc)
1087 (bfin_target::low_set_pc): Define.
1088 (the_low_target): Remove the op fields.
1089 * linux-cris-low.cc (class cris_target)
1090 <low_supports_breakpoints>
1092 <low_set_pc>: Declare.
1093 (cris_target::low_supports_breakpoints)
1094 (cris_target::low_get_pc)
1095 (cris_target::low_set_pc): Define.
1096 (the_low_target): Remove the op fields.
1097 * linux-crisv32-low.cc (class crisv32_target)
1098 <low_supports_breakpoints>
1100 <low_set_pc>: Declare.
1101 (crisv32_target::low_supports_breakpoints)
1102 (crisv32_target::low_get_pc)
1103 (crisv32_target::low_set_pc): Define.
1104 (the_low_target): Remove the op fields.
1105 * linux-m32r-low.cc (class m32r_target)
1106 <low_supports_breakpoints>
1108 <low_set_pc>: Declare.
1109 (m32r_target::low_supports_breakpoints)
1110 (m32r_target::low_get_pc)
1111 (m32r_target::low_set_pc): Define.
1112 (the_low_target): Remove the op fields.
1113 * linux-m68k-low.cc (class m68k_target)
1114 <low_supports_breakpoints>
1116 <low_set_pc>: Declare.
1117 (m68k_target::low_supports_breakpoints)
1118 (m68k_target::low_get_pc)
1119 (m68k_target::low_set_pc): Define.
1120 (the_low_target): Remove the op fields.
1121 * linux-nios2-low.cc (class nios2_target)
1122 <low_supports_breakpoints>
1124 <low_set_pc>: Declare.
1125 (nios2_target::low_supports_breakpoints)
1126 (nios2_target::low_get_pc)
1127 (nios2_target::low_set_pc): Define.
1128 (the_low_target): Remove the op fields.
1129 * linux-sh-low.cc (class sh_target)
1130 <low_supports_breakpoints>
1132 <low_set_pc>: Declare.
1133 (sh_target::low_supports_breakpoints)
1134 (sh_target::low_get_pc)
1135 (sh_target::low_set_pc): Define.
1136 (the_low_target): Remove the op fields.
1137 * linux-xtensa-low.cc (class xtensa_target)
1138 <low_supports_breakpoints>
1140 <low_set_pc>: Declare.
1141 (xtensa_target::low_supports_breakpoints)
1142 (xtensa_target::low_get_pc)
1143 (xtensa_target::low_set_pc): Define.
1144 (the_low_target): Remove the op fields.
1145 * linux-sparc-low.cc (class sparc_target)
1146 <low_supports_breakpoints>
1147 <low_get_pc>: Declare.
1148 (sparc_target::low_supports_breakpoints)
1149 (sparc_target::low_get_pc): Define.
1150 (the_low_target): Remove the op fields.
1151 * linux-tile-low.cc (class tile_target)
1152 <low_supports_breakpoints>
1154 <low_set_pc>: Declare.
1155 (tile_target::low_supports_breakpoints)
1156 (tile_target::low_get_pc)
1157 (tile_target::low_set_pc): Define.
1158 (the_low_target): Remove the op fields.
1159 * linux-aarch64-low.cc (class aarch64_target)
1160 <low_supports_breakpoints>
1162 <low_set_pc>: Declare.
1163 (aarch64_target::low_supports_breakpoints): Define.
1164 (aarch64_get_pc): Turn into...
1165 (aarch64_target::low_get_pc): ...this.
1166 (aarch64_set_pc): Turn into...
1167 (aarch64_target::low_set_pc): ...this.
1168 (the_low_target): Remove the op fields.
1169 * linux-mips-low.cc (class mips_target)
1170 <low_supports_breakpoints>
1172 <low_set_pc>: Declare.
1173 (mips_target::low_supports_breakpoints): Define.
1174 (mips_get_pc): Turn into...
1175 (mips_target::low_get_pc): ...this.
1176 (mips_set_pc): Turn into...
1177 (mips_target::low_set_pc): ...this.
1178 (the_low_target): Remove the op fields.
1179 * linux-ppc-low.cc (class ppc_target)
1180 <low_supports_breakpoints>
1182 <low_set_pc>: Declare.
1183 (ppc_target::low_supports_breakpoints): Define.
1184 (ppc_get_pc): Turn into...
1185 (ppc_target::low_get_pc): ...this.
1186 (ppc_set_pc): Turn into...
1187 (ppc_target::low_set_pc): ...this.
1188 (the_low_target): Remove the op fields.
1189 * linux-riscv-low.cc (class riscv_target)
1190 <low_supports_breakpoints>
1192 <low_set_pc>: Declare.
1193 (riscv_target::low_supports_breakpoints): Define.
1194 (riscv_get_pc): Turn into...
1195 (riscv_target::low_get_pc): ...this.
1196 (riscv_set_pc): Turn into...
1197 (riscv_target::low_set_pc): ...this.
1198 (the_low_target): Remove the op fields.
1199 * linux-s390-low.cc (class s390_target)
1200 <low_supports_breakpoints>
1202 <low_set_pc>: Declare.
1203 (s390_target::low_supports_breakpoints): Define.
1204 (s390_get_pc): Turn into...
1205 (s390_target::low_get_pc): ...this.
1206 (s390_set_pc): Turn into...
1207 (s390_target::low_set_pc): ...this.
1208 (the_low_target): Remove the op fields.
1209 * linux-tic6x-low.cc (class tic6x_target)
1210 <low_supports_breakpoints>
1212 <low_set_pc>: Declare.
1213 (tic6x_target::low_supports_breakpoints): Define.
1214 (tic6x_get_pc): Turn into...
1215 (tic6x_target::low_get_pc): ...this.
1216 (tic6x_set_pc): Turn into...
1217 (tic6x_target::low_set_pc): ...this.
1218 (the_low_target): Remove the op fields.
1220 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1222 Turn some more static methods in linux-low into private methods
1223 of linux_process_target.
1225 * linux-low.cc (get_pc): Turn into...
1226 (linux_process_target::get_pc): ...this.
1227 (save_stop_reason): Turn into...
1228 (linux_process_target::save_stop_reason): ...this.
1229 (thread_still_has_status_pending_p): Turn into...
1230 (linux_process_target::thread_still_has_status_pending): ...this.
1231 (status_pending_p_callback): Turn into...
1232 (linux_process_target::status_pending_p_callback): ...this.
1233 (resume_stopped_resumed_lwps): Turn into...
1234 (linux_process_target::resume_stopped_resumed_lwps): ...this.
1235 (install_software_single_step_breakpoints): Turn into...
1236 (linux_process_target::install_software_single_step_breakpoints):
1238 (single_step): Turn into...
1239 (linux_process_target::single_step): ...this.
1240 (linux_resume_one_lwp_throw): Turn into...
1241 (linux_process_target::resume_one_lwp_throw): ...this.
1242 (linux_resume_one_lwp): Turn into...
1243 (linux_process_target::resume_one_lwp): ...this.
1244 (resume_status_pending_p): Turn into...
1245 (linux_process_target::resume_status_pending): ...this.
1246 (need_step_over_p): Turn into...
1247 (linux_process_target::thread_needs_step_over): ...this.
1248 (linux_resume_one_thread): Turn into...
1249 (linux_process_target::resume_one_thread): ...this.
1250 (proceed_one_lwp): Turn into...
1251 (linux_process_target::proceed_one_lwp): ...this.
1252 (unsuspend_and_proceed_one_lwp): Turn into...
1253 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
1255 Update the calls/references to the above functions below.
1257 (linux_process_target::handle_extended_wait)
1258 (linux_process_target::filter_event)
1259 (linux_process_target::wait_for_event_filtered)
1260 (linux_process_target::wait_1)
1261 (linux_process_target::move_out_of_jump_pad)
1262 (linux_process_target::start_step_over)
1263 (linux_process_target::resume)
1264 (linux_process_target::proceed_all_lwps)
1265 (regsets_store_inferior_registers)
1266 (linux_process_target::store_register)
1268 * linux-low.h (class linux_process_target)
1271 <thread_still_has_status_pending>
1272 <status_pending_p_callback>
1273 <resume_stopped_resumed_lwps>
1274 <install_software_single_step_breakpoints>
1276 <resume_one_lwp_throw>
1278 <resume_status_pending>
1279 <thread_needs_step_over>
1282 <unsuspend_and_proceed_one_lwp>: Declare.
1284 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1286 Turn the 'fetch_register' linux target op into a method of
1287 linux_process_target.
1289 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
1290 (class linux_process_target) <low_fetch_register>: Declare.
1291 * linux-x86-low.cc (the_low_target)
1292 * linux-aarch64-low.cc (the_low_target)
1293 * linux-arm-low.cc (the_low_target)
1294 * linux-bfin-low.cc (the_low_target)
1295 * linux-cris-low.cc (the_low_target)
1296 * linux-crisv32-low.cc (the_low_target)
1297 * linux-m32r-low.cc (the_low_target)
1298 * linux-m68k-low.cc (the_low_target)
1299 * linux-nios2-low.cc (the_low_target)
1300 * linux-ppc-low.cc (the_low_target)
1301 * linux-s390-low.cc (the_low_target)
1302 * linux-sh-low.cc (the_low_target)
1303 * linux-sparc-low.cc (the_low_target)
1304 * linux-tic6x-low.cc (the_low_target)
1305 * linux-tile-low.cc (the_low_target)
1306 * linux-xtensa-low.cc (the_low_target): Remove the op field.
1307 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
1309 (ia64_fetch_register): Turn into...
1310 (ia64_target::low_fetch_register): ...this.
1311 (the_low_target): Remove the op field.
1312 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
1314 (mips_fetch_register): Turn into...
1315 (mips_target::low_fetch_register): ...this.
1316 (the_low_target): Remove the op field.
1317 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
1319 (riscv_fetch_register): Turn into...
1320 (riscv_target::low_fetch_register): ...this.
1321 (the_low_target): Remove the op field.
1323 Update the callers below.
1325 * linux-low.cc (linux_process_target::fetch_registers)
1326 (linux_process_target::low_fetch_register)
1328 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1330 Turn the 'cannot_fetch_register' and 'cannot_store_register'
1331 linux target ops into methods of linux_process_target.
1333 * linux-low.h (struct linux_target_ops): Remove the low target ops.
1334 (class linux_process_target) <fetch_register>
1336 <usr_fetch_inferior_registers>
1337 <usr_store_inferior_registers>
1338 <low_cannot_fetch_register>
1339 <low_cannot_fetch_register> Declare.
1340 * linux-low.cc (fetch_register): Turn into...
1341 (linux_process_target::fetch_register): ...this.
1342 (store_register): Turn into ...
1343 (linux_process_target::store_register): ...this.
1344 (usr_fetch_inferior_registers): Turn into...
1345 (linux_process_target::usr_fetch_inferior_registers): ...this.
1346 (usr_store_inferior_registers): Turn into...
1347 (linux_process_target::usr_store_inferior_registers): ...this.
1348 * linux-x86-low.cc (class x86_target)
1349 <low_cannot_fetch_register>
1350 <low_cannot_store_register>: Declare.
1351 (x86_cannot_store_register): Turn into...
1352 (x86_target::low_cannot_store_register): ...this.
1353 (x86_cannot_fetch_register): Turn into...
1354 (x86_target::low_cannot_fetch_register): ...this.
1355 (the_low_target): Remove the target op fields.
1356 * linux-aarch64-low.cc (class aarch64_target)
1357 <low_cannot_fetch_register>
1358 <low_cannot_store_register>: Declare.
1359 (aarch64_target::low_cannot_fetch_register)
1360 (aarch64_target::low_cannot_store_register): Define.
1361 (the_low_target): Remove the op fields.
1362 * linux-arm-low.cc (class arm_target)
1363 <low_cannot_fetch_register>
1364 <low_cannot_store_register>: Declare.
1365 (arm_cannot_fetch_register): Turn into...
1366 (arm_target::low_cannot_fetch_register): ...this.
1367 (arm_cannot_store_register): Turn into...
1368 (arm_target::low_cannot_store_register): ...this.
1369 (the_low_target): Remove the op fields.
1370 * linux-bfin-low.cc (class bfin_target)
1371 <low_cannot_fetch_register>
1372 <low_cannot_store_register>: Declare.
1373 (bfin_cannot_fetch_register): Turn into...
1374 (bfin_target::low_cannot_fetch_register): ...this.
1375 (bfin_cannot_store_register): Turn into...
1376 (bfin_target::low_cannot_store_register): ...this.
1377 (the_low_target): Remove the op fields.
1378 * linux-cris-low.cc (class cris_target)
1379 <low_cannot_fetch_register>
1380 <low_cannot_store_register>: Declare.
1381 (cris_cannot_fetch_register): Turn into...
1382 (cris_target::low_cannot_fetch_register): ...this.
1383 (cris_cannot_store_register): Turn into...
1384 (cris_target::low_cannot_store_register): ...this.
1385 (the_low_target): Remove the op fields.
1386 * linux-crisv32-low.cc (class crisv32_target)
1387 <low_cannot_fetch_register>
1388 <low_cannot_store_register>: Declare.
1389 (crisv32_target::low_cannot_fetch_register)
1390 (crisv32_target::low_cannot_store_register): Define.
1391 (the_low_target): Remove the op fields.
1392 * linux-ia64-low.cc (class ia64_target)
1393 <low_cannot_fetch_register>
1394 <low_cannot_store_register>: Declare.
1395 (ia64_cannot_fetch_register): Turn into...
1396 (ia64_target::low_cannot_fetch_register): ...this.
1397 (ia64_cannot_store_register): Turn into...
1398 (ia64_target::low_cannot_store_register): ...this.
1399 (the_low_target): Remove the op fields.
1400 * linux-m32r-low.cc (class m32r_target)
1401 <low_cannot_fetch_register>
1402 <low_cannot_store_register>: Declare.
1403 (m32r_cannot_fetch_register): Turn into...
1404 (m32r_target::low_cannot_fetch_register): ...this.
1405 (m32r_cannot_store_register): Turn into...
1406 (m32r_target::low_cannot_store_register): ...this.
1407 (the_low_target): Remove the op fields.
1408 * linux-m68k-low.cc (class m68k_target)
1409 <low_cannot_fetch_register>
1410 <low_cannot_store_register>: Declare.
1411 (m68k_cannot_fetch_register): Turn into...
1412 (m68k_target::low_cannot_fetch_register): ...this.
1413 (m68k_cannot_store_register): Turn into...
1414 (m68k_target::low_cannot_store_register): ...this.
1415 (the_low_target): Remove the op fields.
1416 * linux-mips-low.cc (class mips_target)
1417 <low_cannot_fetch_register>
1418 <low_cannot_store_register>: Declare.
1419 (mips_cannot_fetch_register): Turn into...
1420 (mips_target::low_cannot_fetch_register): ...this.
1421 (mips_cannot_store_register): Turn into...
1422 (mips_target::low_cannot_store_register): ...this.
1423 (get_usrregs_info): Inline at the call sites in
1424 low_cannot_fetch_register and low_cannot_store_register,
1426 (the_low_target): Remove the op fields.
1427 * linux-nios2-low.cc (class nios2_target)
1428 <low_cannot_fetch_register>
1429 <low_cannot_store_register>: Declare.
1430 (nios2_cannot_fetch_register): Turn into...
1431 (nios2_target::low_cannot_fetch_register): ...this.
1432 (nios2_cannot_store_register): Turn into...
1433 (nios2_target::low_cannot_store_register): ...this.
1434 (the_low_target): Remove the op fields.
1435 * linux-ppc-low.cc (class ppc_target)
1436 <low_cannot_fetch_register>
1437 <low_cannot_store_register>: Declare.
1438 (ppc_cannot_fetch_register): Turn into...
1439 (ppc_target::low_cannot_fetch_register): ...this.
1440 (ppc_cannot_store_register): Turn into...
1441 (ppc_target::low_cannot_store_register): ...this.
1442 (the_low_target): Remove the op fields.
1443 * linux-riscv-low.cc (class riscv_target)
1444 <low_cannot_fetch_register>
1445 <low_cannot_store_register>: Declare.
1446 (riscv_target::low_cannot_fetch_register)
1447 (riscv_target::low_cannot_store_register): Define.
1448 (the_low_target): Remove the op fields.
1449 * linux-s390-low.cc (class s390_target)
1450 <low_cannot_fetch_register>
1451 <low_cannot_store_register>: Declare.
1452 (s390_cannot_fetch_register): Turn into...
1453 (s390_target::low_cannot_fetch_register): ...this.
1454 (s390_cannot_store_register): Turn into...
1455 (s390_target::low_cannot_store_register): ...this.
1456 (the_low_target): Remove the op fields.
1457 * linux-sh-low.cc (class sh_target)
1458 <low_cannot_fetch_register>
1459 <low_cannot_store_register>: Declare.
1460 (sh_cannot_fetch_register): Turn into...
1461 (sh_target::low_cannot_fetch_register): ...this.
1462 (sh_cannot_store_register): Turn into...
1463 (sh_target::low_cannot_store_register): ...this.
1464 (the_low_target): Remove the op fields.
1465 * linux-sparc-low.cc (class sparc_target)
1466 <low_cannot_fetch_register>
1467 <low_cannot_store_register>: Declare.
1468 (sparc_cannot_fetch_register): Turn into...
1469 (sparc_target::low_cannot_fetch_register): ...this.
1470 (sparc_cannot_store_register): Turn into...
1471 (sparc_target::low_cannot_store_register): ...this.
1472 (the_low_target): Remove the op fields.
1473 * linux-tic6x-low.cc (class tic6x_target)
1474 <low_cannot_fetch_register>
1475 <low_cannot_store_register>: Declare.
1476 (tic6x_cannot_fetch_register): Turn into...
1477 (tic6x_target::low_cannot_fetch_register): ...this.
1478 (tic6x_cannot_store_register): Turn into...
1479 (tic6x_target::low_cannot_store_register): ...this.
1480 (the_low_target): Remove the op fields.
1481 * linux-tile-low.cc (class tile_target)
1482 <low_cannot_fetch_register>
1483 <low_cannot_store_register>: Declare.
1484 (tile_cannot_fetch_register): Turn into...
1485 (tile_target::low_cannot_fetch_register): ...this.
1486 (tile_cannot_store_register): Turn into...
1487 (tile_target::low_cannot_store_register): ...this.
1488 (the_low_target): Remove the op fields.
1489 * linux-xtensa-low.cc (class xtensa_target)
1490 <low_cannot_fetch_register>
1491 <low_cannot_store_register>: Declare.
1492 (xtensa_target::low_cannot_fetch_register)
1493 (xtensa_target::low_cannot_store_register): Define.
1494 (the_low_target): Remove the op fields.
1496 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1498 Turn the 'regs_info' linux target op into a method of
1499 linux_process_target.
1501 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
1502 (class linux_process_target) <get_regs_info>: Define.
1504 Update the callers below.
1506 * linux-low.cc (linux_process_target::fetch_registers)
1507 (linux_process_target::store_registers)
1508 * proc-service.cc (gregset_info)
1510 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
1511 (x86_linux_regs_info): Turn into ...
1512 (x86_target::get_regs_info): ...this.
1513 (the_low_target): Remove the op field.
1514 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
1516 (aarch64_regs_info): Turn into ...
1517 (aarch64_target::get_regs_info): ...this.
1518 (the_low_target): Remove the op field.
1519 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
1520 (arm_regs_info): Turn into ...
1521 (arm_target::get_regs_info): ...this.
1522 (the_low_target): Remove the op field.
1523 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
1524 (bfin_regs_info): Turn into ...
1525 (bfin_target::get_regs_info): ...this.
1526 (the_low_target): Remove the op field.
1527 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
1528 (cris_regs_info): Turn into ...
1529 (cris_target::get_regs_info): ...this.
1530 (the_low_target): Remove the op field.
1531 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
1533 (crisv32_regs_info): Turn into ...
1534 (crisv32_target::get_regs_info): ...this.
1535 (the_low_target): Remove the op field.
1536 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
1537 (ia64_regs_info): Turn into ...
1538 (ia64_target::get_regs_info): ...this.
1539 (the_low_target): Remove the op field.
1540 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
1541 (m32r_regs_info): Turn into ...
1542 (m32r_target::get_regs_info): ...this.
1543 (the_low_target): Remove the op field.
1544 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
1545 (m68k_regs_info): Turn into ...
1546 (m68k_target::get_regs_info): ...this.
1547 (the_low_target): Remove the op field.
1548 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
1549 (mips_regs_info): Turn into ...
1550 (mips_target::get_regs_info): ...this.
1551 (the_low_target): Remove the op field.
1552 (get_usrregs_info): Update the call to the op.
1553 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
1554 (nios2_regs_info): Turn into ...
1555 (nios2_target::get_regs_info): ...this.
1556 (the_low_target): Remove the op field.
1557 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
1558 (ppc_regs_info): Turn into ...
1559 (ppc_target::get_regs_info): ...this.
1560 (the_low_target): Remove the op field.
1561 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
1562 (riscv_regs_info): Turn into ...
1563 (riscv_target::get_regs_info): ...this.
1564 (the_low_target): Remove the op field.
1565 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
1566 (s390_regs_info): Turn into ...
1567 (s390_target::get_regs_info): ...this.
1568 (the_low_target): Remove the op field.
1569 (s390_collect_ptrace_register)
1570 (s390_supply_ptrace_register)
1571 (s390_fill_gregset): Update the call to the op.
1572 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
1573 (sh_regs_info): Turn into ...
1574 (sh_target::get_regs_info): ...this.
1575 (the_low_target): Remove the op field.
1576 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
1577 (sparc_regs_info): Turn into ...
1578 (sparc_target::get_regs_info): ...this.
1579 (the_low_target): Remove the op field.
1580 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
1581 (tic6x_regs_info): Turn into ...
1582 (tic6x_target::get_regs_info): ...this.
1583 (the_low_target): Remove the op field.
1584 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
1585 (tile_regs_info): Turn into ...
1586 (tile_target::get_regs_info): ...this.
1587 (the_low_target): Remove the op field.
1588 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
1590 (xtensa_regs_info): Turn into ...
1591 (xtensa_target::get_regs_info): ...this.
1592 (the_low_target): Remove the op field.
1594 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1596 Turn the 'arch_setup' linux target op into a method of
1597 linux_process_target.
1599 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
1600 (class linux_process_target) <arch_setup_thread>
1601 <low_arch_setup>: New declarations.
1602 * linux-low.cc (linux_arch_setup): Delete.
1603 (linux_arch_setup_thread): Turn into...
1604 (linux_process_target::arch_setup_thread): ... this.
1606 Update the callers below.
1608 (linux_process_target::handle_extended_wait)
1609 (linux_process_target::post_create_inferior)
1610 (linux_process_target::filter_event)
1612 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
1614 (x86_linux_update_xmltarget): Turn into...
1615 (x86_target::update_xmltarget): ...this.
1616 (x86_linux_process_qsupported): Update the call to
1617 x86_linux_update_xmltarget.
1618 (x86_arch_setup): Turn into ...
1619 (x86_target::low_arch_setup): ...this.
1620 (the_low_target): Remove the op field.
1621 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
1623 (aarch64_arch_setup): Turn into ...
1624 (aarch64_target::low_arch_setup): ...this.
1625 (the_low_target): Remove the op field.
1626 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
1628 (arm_arch_setup): Turn into ...
1629 (arm_target::low_arch_setup): ...this.
1630 (the_low_target): Remove the op field.
1631 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
1633 (bfin_arch_setup): Turn into ...
1634 (bfin_target::low_arch_setup): ...this.
1635 (the_low_target): Remove the op field.
1636 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
1638 (cris_arch_setup): Turn into ...
1639 (cris_target::low_arch_setup): ...this.
1640 (the_low_target): Remove the op field.
1641 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
1643 (crisv32_arch_setup): Turn into ...
1644 (crisv32_target::low_arch_setup): ...this.
1645 (the_low_target): Remove the op field.
1646 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
1648 (ia64_arch_setup): Turn into ...
1649 (ia64_target::low_arch_setup): ...this.
1650 (the_low_target): Remove the op field.
1651 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
1653 (m32r_arch_setup): Turn into ...
1654 (m32r_target::low_arch_setup): ...this.
1655 (the_low_target): Remove the op field.
1656 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
1658 (m68k_arch_setup): Turn into ...
1659 (m68k_target::low_arch_setup): ...this.
1660 (the_low_target): Remove the op field.
1661 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
1663 (mips_arch_setup): Turn into ...
1664 (mips_target::low_arch_setup): ...this.
1665 (the_low_target): Remove the op field.
1666 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
1668 (nios2_arch_setup): Turn into ...
1669 (nios2_target::low_arch_setup): ...this.
1670 (the_low_target): Remove the op field.
1671 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
1673 (ppc_arch_setup): Turn into ...
1674 (ppc_target::low_arch_setup): ...this.
1675 (the_low_target): Remove the op field.
1676 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
1678 (riscv_arch_setup): Turn into ...
1679 (riscv_target::low_arch_setup): ...this.
1680 (the_low_target): Remove the op field.
1681 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
1683 (s390_arch_setup): Turn into ...
1684 (s390_target::low_arch_setup): ...this.
1685 (the_low_target): Remove the op field.
1686 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
1688 (sh_arch_setup): Turn into ...
1689 (sh_target::low_arch_setup): ...this.
1690 (the_low_target): Remove the op field.
1691 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
1693 (sparc_arch_setup): Turn into ...
1694 (sparc_target::low_arch_setup): ...this.
1695 (the_low_target): Remove the op field.
1696 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
1698 (tic6x_arch_setup): Turn into ...
1699 (tic6x_target::low_arch_setup): ...this.
1700 (the_low_target): Remove the op field.
1701 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
1703 (tile_arch_setup): Turn into ...
1704 (tile_target::low_arch_setup): ...this.
1705 (the_low_target): Remove the op field.
1706 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
1708 (xtensa_arch_setup): Turn into ...
1709 (xtensa_target::low_arch_setup): ...this.
1710 (the_low_target): Remove the op field.
1712 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1714 * linux-low.h (the_linux_target): New extern declaration.
1715 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
1717 (the_linux_target): Remove.
1718 * linux-x86-low.cc (class x86_target): New class.
1719 (the_x86_target): New static object.
1720 (the_linux_target): Define as pointer to the_x86_target.
1721 * linux-aarch64-low.cc (class aarch64_target): New class.
1722 (the_aarch64_target): New static object.
1723 (the_linux_target): Define as pointer to the_aarch64_target.
1724 * linux-arm-low.cc (class arm_target): New class.
1725 (the_arm_target): New static object.
1726 (the_linux_target): Define as pointer to the_arm_target.
1727 * linux-bfin-low.cc (class bfin_target): New class.
1728 (the_bfin_target): New static object.
1729 (the_linux_target): Define as pointer to the_bfin_target.
1730 * linux-cris-low.cc (class cris_target): New class.
1731 (the_cris_target): New static object.
1732 (the_linux_target): Define as pointer to the_cris_target.
1733 * linux-crisv32-low.cc (class crisv32_target): New class.
1734 (the_crisv32_target): New static object.
1735 (the_linux_target): Define as pointer to the_crisv32_target.
1736 * linux-ia64-low.cc (class ia64_target): New class.
1737 (the_ia64_target): New static object.
1738 (the_linux_target): Define as pointer to the_ia64_target.
1739 * linux-m32r-low.cc (class m32r_target): New class.
1740 (the_m32r_target): New static object.
1741 (the_linux_target): Define as pointer to the_m32r_target.
1742 * linux-m68k-low.cc (class m68k_target): New class.
1743 (the_m68k_target): New static object.
1744 (the_linux_target): Define as pointer to the_m68k_target.
1745 * linux-mips-low.cc (class mips_target): New class.
1746 (the_mips_target): New static object.
1747 (the_linux_target): Define as pointer to the_mips_target.
1748 * linux-nios2-low.cc (class nios2_target): New class.
1749 (the_nios2_target): New static object.
1750 (the_linux_target): Define as pointer to the_nios2_target.
1751 * linux-ppc-low.cc (class ppc_target): New class.
1752 (the_ppc_target): New static object.
1753 (the_linux_target): Define as pointer to the_ppc_target.
1754 * linux-riscv-low.cc (class riscv_target): New class.
1755 (the_riscv_target): New static object.
1756 (the_linux_target): Define as pointer to the_riscv_target.
1757 * linux-s390-low.cc (class s390_target): New class.
1758 (the_s390_target): New static object.
1759 (the_linux_target): Define as pointer to the_s390_target.
1760 * linux-sh-low.cc (class sh_target): New class.
1761 (the_sh_target): New static object.
1762 (the_linux_target): Define as pointer to the_sh_target.
1763 * linux-sparc-low.cc (class sparc_target): New class.
1764 (the_sparc_target): New static object.
1765 (the_linux_target): Define as pointer to the_sparc_target.
1766 * linux-tic6x-low.cc (class tic6x_target): New class.
1767 (the_tic6x_target): New static object.
1768 (the_linux_target): Define as pointer to the_tic6x_target.
1769 * linux-tile-low.cc (class tile_target): New class.
1770 (the_tile_target): New static object.
1771 (the_linux_target): Define as pointer to the_tile_target.
1772 * linux-xtensa-low.cc (class xtensa_target): New class.
1773 (the_xtensa_target): New static object.
1774 (the_linux_target): Define as pointer to the_xtensa_target.
1776 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1778 Turn some static functions in linux-low.cc into private methods of
1779 linux_process_target.
1781 * linux-low.cc (handle_extended_wait): Turn into ...
1782 (linux_process_target::handle_extended_wait): ...this. Call
1783 'mourn' on 'this' object instead of 'the_target'.
1784 (maybe_move_out_of_jump_pad): Turn into...
1785 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
1786 (linux_low_filter_event): Turn into...
1787 (linux_process_target::filter_event): ...this.
1788 (linux_wait_for_event_filtered): Turn into...
1789 (linux_process_target::wait_for_event_filtered): ...this.
1790 (linux_wait_for_event): Turn into...
1791 (linux_process_target::wait_for_event): ...this.
1792 (linux_wait_1): Turn into...
1793 (linux_process_target::wait_1): ...this.
1794 (wait_for_sigstop): Turn into...
1795 (linux_process_target::wait_for_sigstop): ...this.
1796 (move_out_of_jump_pad_callback): Turn into...
1797 (linux_process_target::move_out_of_jump_pad): ...this.
1798 (stop_all_lwps): Turn into...
1799 (linux_process_target::stop_all_lwps): ...this.
1800 (start_step_over): Turn into...
1801 (linux_process_target::start_step_over): ...this.
1802 (complete_ongoing_step_over): Turn into...
1803 (linux_process_target::complete_ongoing_step_over): ...this.
1804 (proceed_all_lwps): Turn into...
1805 (linux_process_target::proceed_all_lwps): ...this.
1806 (unstop_all_lwps): Turn into...
1807 (linux_process_target::unstop_all_lwps): ...this.
1809 * linux-low.h (class linux_process_target)
1810 <handle_extended_wait>
1811 <maybe_move_out_of_jump_pad>
1813 <wait_for_event_filtered>
1817 <move_out_of_jump_pad>
1820 <complete_ongoing_step_over>
1822 <unstop_all_lwps>: Declare.
1824 Update the callers below.
1826 * linux-low.cc (linux_process_target::attach): Update.
1827 (linux_process_target::stabilize_threads): Ditto.
1828 (linux_process_target::wait): Ditto.
1830 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1832 * linux-low.h (struct linux_target_ops): Update the comment for
1833 'cannot_store_register' to return 0 or 1.
1834 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
1837 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
1839 * config.in: Re-generate.
1840 * configure: Re-generate.
1842 2020-03-17 Kamil Rytarowski <n54@gmx.com>
1844 * regcache.cc (find_register_by_number): Update.
1845 * tdesc.cc (init_target_desc): Likewise.
1846 * tdesc.h (target_desc::reg_defs): Likewise.
1848 2020-03-12 Tom Tromey <tom@tromey.com>
1850 * configure: Rebuild.
1851 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
1852 (WIN32APILIBS): New subst.
1853 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
1855 (gdbsupport/%.o): Remove target.
1856 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
1857 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
1858 (WIN32APILIBS): New variable.
1859 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
1860 (gdbreplay$(EXEEXT)): Likewise.
1862 2020-03-12 Tom Tromey <tom@tromey.com>
1864 * config.in, configure: Rebuild.
1865 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
1866 * acinclude.m4: Include gettext-sister.m4.
1867 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
1869 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
1870 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
1872 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
1874 * acinclude.m4: Update path to selftest.m4.
1876 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
1878 * configure.ac: Don't source bfd/development.sh, move
1879 GDB_AC_COMMON higher.
1880 * configure: Re-generate.
1882 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
1884 * configure: Re-generate.
1886 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
1888 * configure: Re-generate.
1890 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
1892 * .dir-locals.el: New file.
1894 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1896 * .gitattributes: New file.
1898 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
1900 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
1901 reply into an S reply.
1902 * server.cc (disable_packet_T): New global.
1903 (captured_main): Set new global when appropriate.
1904 * server.h (disable_packet_T): Declare.
1906 2020-02-21 Tom Tromey <tom@tromey.com>
1908 * Makefile.in (mostlyclean): New target.
1910 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1912 * target.h (struct process_stratum_target): Remove.
1913 (class process_target): Rename to ...
1914 (class process_stratum_target): ... this.
1915 * linux-low.h (class linux_process_target): Derive from
1916 'process_stratum_target'.
1917 * linux-low.cc (linux_target_ops): Remove.
1918 (initialize_low): Set the_target to the singleton instance of
1919 linux_process_target.
1920 * lynx-low.h (class lynx_process_target): Derive from
1921 'process_stratum_target'.
1922 * lynx-low.cc (lynx_target_ops): Remove.
1923 (initialize_low): Set the_target to the singleton instance of
1924 lynx_process_target.
1925 * nto-low.h (class nto_process_target): Derive from
1926 'process_stratum_target'.
1927 * nto-low.cc (nto_target_ops): Remove.
1928 (initialize_low): Set the_target to the singleton instance of
1930 * win32-low.h (class win32_process_target): Derive from
1931 'process_stratum_target'.
1932 * win32-low.cc (win32_target_ops): Remove.
1933 (initialize_low): Set the_target to the singleton instance of
1934 win32_process_target.
1936 Replace 'the_target->pt' with 'the_target' in the uses below.
1938 * hostio.cc (hostio_error)
1943 * linux-aarch32-low.cc (arm_breakpoint_at)
1944 * linux-aarch64-low.cc (aarch64_breakpoint_at)
1945 * linux-arm-low.cc (arm_sigreturn_next_pc)
1947 (arm_get_syscall_trapinfo)
1948 * linux-cris-low.cc (cris_breakpoint_at)
1949 * linux-crisv32-low.cc (cris_breakpoint_at)
1950 * linux-low.cc (handle_extended_wait)
1953 (linux_process_target::breakpoint_kind_from_pc)
1955 * linux-m32r-low.cc (m32r_breakpoint_at)
1956 * linux-mips-low.cc (mips_breakpoint_at)
1957 * linux-nios2-low.cc (nios2_breakpoint_at)
1958 * linux-ppc-low.cc (ppc_breakpoint_at)
1959 * linux-s390-low.cc (s390_get_hwcap)
1960 * linux-sh-low.cc (sh_breakpoint_at)
1961 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
1962 (sparc_store_gregset_from_stack)
1963 (sparc_breakpoint_at)
1964 * linux-tic6x-low.cc (tic6x_breakpoint_at)
1965 * linux-tile-low.cc (tile_breakpoint_at)
1966 * linux-x86-low.cc (x86_breakpoint_at)
1967 * linux-xtensa-low.cc (xtensa_breakpoint_at)
1968 * mem-break.cc (bp_size)
1970 (insert_memory_breakpoint)
1971 (set_raw_breakpoint_at)
1972 (delete_raw_breakpoint)
1974 (uninsert_raw_breakpoint)
1975 (reinsert_raw_breakpoint)
1976 (validate_inserted_breakpoint)
1977 * regcache.cc (regcache_read_pc)
1979 * remote-utils.cc (putpkt_binary_1)
1982 (prepare_resume_reply)
1983 * server.cc (handle_general_set)
1986 (handle_qxfer_exec_file)
1987 (handle_qxfer_libraries_svr4)
1988 (handle_qxfer_osdata)
1989 (handle_qxfer_siginfo)
1990 (handle_qxfer_fdpic)
1994 (queue_stop_reply_callback)
1996 * target.cc (prepare_to_access_memory)
1997 (done_accessing_memory)
1998 (read_inferior_memory)
1999 (target_write_memory)
2000 (target_stop_and_wait)
2002 (target_mourn_inferior)
2003 (target_continue_no_signal)
2005 (target_supports_multi_process)
2008 (target_create_inferior)
2009 (target_post_create_inferior)
2011 (target_supports_fork_events)
2012 (target_supports_vfork_events)
2013 (target_supports_exec_events)
2014 (target_handle_new_gdb_connection)
2017 (fetch_inferior_registers)
2018 (store_inferior_registers)
2020 (target_supports_non_stop)
2022 (target_process_qsupported)
2023 (target_supports_catch_syscall)
2024 (target_get_ipa_tdesc_idx)
2025 (target_supports_tracepoints)
2026 (target_supports_fast_tracepoints)
2027 (target_get_min_fast_tracepoint_insn_len)
2028 (target_thread_stopped)
2030 (target_unpause_all)
2031 (target_stabilize_threads)
2032 (target_install_fast_tracepoint_jump_pad)
2034 (target_supports_disable_randomization)
2035 (target_supports_agent)
2036 (target_enable_btrace)
2037 (target_disable_btrace)
2038 (target_read_btrace)
2039 (target_read_btrace_conf)
2040 (target_supports_range_stepping)
2041 (target_supports_stopped_by_sw_breakpoint)
2042 (target_stopped_by_sw_breakpoint)
2043 (target_supports_stopped_by_hw_breakpoint)
2044 (target_supports_hardware_single_step)
2045 (target_stopped_by_hw_breakpoint)
2046 (target_breakpoint_kind_from_pc)
2047 (target_breakpoint_kind_from_current_state)
2048 (target_supports_software_single_step)
2049 (target_core_of_thread)
2050 (target_thread_name)
2051 (target_thread_handle)
2052 * win32-low.cc (do_initial_child_stuff)
2054 Rename target op default definitions listed below.
2056 * target.cc (process_target::post_create_inferior): Rename as ...
2057 (process_stratum_target::post_create_inferior): ... this.
2058 (process_target::prepare_to_access_memory): Rename as ...
2059 (process_stratum_target::prepare_to_access_memory): ... this.
2060 (process_target::done_accessing_memory): Rename as ...
2061 (process_stratum_target::done_accessing_memory): ... this.
2062 (process_target::look_up_symbols): Rename as ...
2063 (process_stratum_target::look_up_symbols): ... this.
2064 (process_target::supports_read_auxv): Rename as ...
2065 (process_stratum_target::supports_read_auxv): ... this.
2066 (process_target::read_auxv): Rename as ...
2067 (process_stratum_target::read_auxv): ... this.
2068 (process_target::supports_z_point_type): Rename as ...
2069 (process_stratum_target::supports_z_point_type): ... this.
2070 (process_target::insert_point): Rename as ...
2071 (process_stratum_target::insert_point): ... this.
2072 (process_target::remove_point): Rename as ...
2073 (process_stratum_target::remove_point): ... this.
2074 (process_target::stopped_by_sw_breakpoint): Rename as ...
2075 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
2076 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
2077 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
2078 (process_target::stopped_by_hw_breakpoint): Rename as ...
2079 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
2080 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
2081 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
2082 (process_target::supports_hardware_single_step): Rename as ...
2083 (process_stratum_target::supports_hardware_single_step): ... this.
2084 (process_target::stopped_by_watchpoint): Rename as ...
2085 (process_stratum_target::stopped_by_watchpoint): ... this.
2086 (process_target::stopped_data_address): Rename as ...
2087 (process_stratum_target::stopped_data_address): ... this.
2088 (process_target::supports_read_offsets): Rename as ...
2089 (process_stratum_target::supports_read_offsets): ... this.
2090 (process_target::read_offsets): Rename as ...
2091 (process_stratum_target::read_offsets): ... this.
2092 (process_target::supports_get_tls_address): Rename as ...
2093 (process_stratum_target::supports_get_tls_address): ... this.
2094 (process_target::get_tls_address): Rename as ...
2095 (process_stratum_target::get_tls_address): ... this.
2096 (process_target::hostio_last_error): Rename as ...
2097 (process_stratum_target::hostio_last_error): ... this.
2098 (process_target::supports_qxfer_osdata): Rename as ...
2099 (process_stratum_target::supports_qxfer_osdata): ... this.
2100 (process_target::qxfer_osdata): Rename as ...
2101 (process_stratum_target::qxfer_osdata): ... this.
2102 (process_target::supports_qxfer_siginfo): Rename as ...
2103 (process_stratum_target::supports_qxfer_siginfo): ... this.
2104 (process_target::qxfer_siginfo): Rename as ...
2105 (process_stratum_target::qxfer_siginfo): ... this.
2106 (process_target::supports_non_stop): Rename as ...
2107 (process_stratum_target::supports_non_stop): ... this.
2108 (process_target::async): Rename as ...
2109 (process_stratum_target::async): ... this.
2110 (process_target::start_non_stop): Rename as ...
2111 (process_stratum_target::start_non_stop): ... this.
2112 (process_target::supports_multi_process): Rename as ...
2113 (process_stratum_target::supports_multi_process): ... this.
2114 (process_target::supports_fork_events): Rename as ...
2115 (process_stratum_target::supports_fork_events): ... this.
2116 (process_target::supports_vfork_events): Rename as ...
2117 (process_stratum_target::supports_vfork_events): ... this.
2118 (process_target::supports_exec_events): Rename as ...
2119 (process_stratum_target::supports_exec_events): ... this.
2120 (process_target::handle_new_gdb_connection): Rename as ...
2121 (process_stratum_target::handle_new_gdb_connection): ... this.
2122 (process_target::handle_monitor_command): Rename as ...
2123 (process_stratum_target::handle_monitor_command): ... this.
2124 (process_target::core_of_thread): Rename as ...
2125 (process_stratum_target::core_of_thread): ... this.
2126 (process_target::supports_read_loadmap): Rename as ...
2127 (process_stratum_target::supports_read_loadmap): ... this.
2128 (process_target::read_loadmap): Rename as ...
2129 (process_stratum_target::read_loadmap): ... this.
2130 (process_target::process_qsupported): Rename as ...
2131 (process_stratum_target::process_qsupported): ... this.
2132 (process_target::supports_tracepoints): Rename as ...
2133 (process_stratum_target::supports_tracepoints): ... this.
2134 (process_target::read_pc): Rename as ...
2135 (process_stratum_target::read_pc): ... this.
2136 (process_target::write_pc): Rename as ...
2137 (process_stratum_target::write_pc): ... this.
2138 (process_target::supports_thread_stopped): Rename as ...
2139 (process_stratum_target::supports_thread_stopped): ... this.
2140 (process_target::thread_stopped): Rename as ...
2141 (process_stratum_target::thread_stopped): ... this.
2142 (process_target::supports_get_tib_address): Rename as ...
2143 (process_stratum_target::supports_get_tib_address): ... this.
2144 (process_target::get_tib_address): Rename as ...
2145 (process_stratum_target::get_tib_address): ... this.
2146 (process_target::pause_all): Rename as ...
2147 (process_stratum_target::pause_all): ... this.
2148 (process_target::unpause_all): Rename as ...
2149 (process_stratum_target::unpause_all): ... this.
2150 (process_target::stabilize_threads): Rename as ...
2151 (process_stratum_target::stabilize_threads): ... this.
2152 (process_target::supports_fast_tracepoints): Rename as ...
2153 (process_stratum_target::supports_fast_tracepoints): ... this.
2154 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
2155 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
2156 (process_target::emit_ops): Rename as ...
2157 (process_stratum_target::emit_ops): ... this.
2158 (process_target::supports_disable_randomization): Rename as ...
2159 (process_stratum_target::supports_disable_randomization): ... this.
2160 (process_target::supports_qxfer_libraries_svr4): Rename as ...
2161 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
2162 (process_target::qxfer_libraries_svr4): Rename as ...
2163 (process_stratum_target::qxfer_libraries_svr4): ... this.
2164 (process_target::supports_agent): Rename as ...
2165 (process_stratum_target::supports_agent): ... this.
2166 (process_target::enable_btrace): Rename as ...
2167 (process_stratum_target::enable_btrace): ... this.
2168 (process_target::disable_btrace): Rename as ...
2169 (process_stratum_target::disable_btrace): ... this.
2170 (process_target::read_btrace): Rename as ...
2171 (process_stratum_target::read_btrace): ... this.
2172 (process_target::read_btrace_conf): Rename as ...
2173 (process_stratum_target::read_btrace_conf): ... this.
2174 (process_target::supports_range_stepping): Rename as ...
2175 (process_stratum_target::supports_range_stepping): ... this.
2176 (process_target::supports_pid_to_exec_file): Rename as ...
2177 (process_stratum_target::supports_pid_to_exec_file): ... this.
2178 (process_target::pid_to_exec_file): Rename as ...
2179 (process_stratum_target::pid_to_exec_file): ... this.
2180 (process_target::supports_multifs): Rename as ...
2181 (process_stratum_target::supports_multifs): ... this.
2182 (process_target::multifs_open): Rename as ...
2183 (process_stratum_target::multifs_open): ... this.
2184 (process_target::multifs_unlink): Rename as ...
2185 (process_stratum_target::multifs_unlink): ... this.
2186 (process_target::multifs_readlink): Rename as ...
2187 (process_stratum_target::multifs_readlink): ... this.
2188 (process_target::breakpoint_kind_from_pc): Rename as ...
2189 (process_stratum_target::breakpoint_kind_from_pc): ... this.
2190 (process_target::breakpoint_kind_from_current_state): Rename as ...
2191 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
2192 (process_target::thread_name): Rename as ...
2193 (process_stratum_target::thread_name): ... this.
2194 (process_target::thread_handle): Rename as ...
2195 (process_stratum_target::thread_handle): ... this.
2196 (process_target::supports_software_single_step): Rename as ...
2197 (process_stratum_target::supports_software_single_step): ... this.
2198 (process_target::supports_catch_syscall): Rename as ...
2199 (process_stratum_target::supports_catch_syscall): ... this.
2200 (process_target::get_ipa_tdesc_idx): Rename as ...
2201 (process_stratum_target::get_ipa_tdesc_idx): ... this.
2203 2020-02-20 Pedro Alves <palves@redhat.com>
2205 * target.cc (set_target_ops): Simply copy the given target pointer
2206 instead of creating a copy of the pointed object.
2208 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2210 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
2213 * target.h (struct process_stratum_target): Remove the target op.
2214 (class process_target): Add the target op.
2215 (target_get_ipa_tdesc_idx): Update the macro.
2216 * target.cc (process_target::get_ipa_tdesc_idx): Define.
2218 Update the derived classes and callers below.
2220 * linux-low.cc (linux_target_ops): Update.
2221 (linux_get_ipa_tdesc_idx): Turn into ...
2222 (linux_process_target::get_ipa_tdesc_idx): ... this.
2223 * linux-low.h (class linux_process_target): Update.
2224 * lynx-low.cc (lynx_target_ops): Update.
2225 * nto-low.cc (nto_target_ops): Update.
2226 * win32-low.cc (win32_target_ops): Update.
2228 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2230 Turn process_stratum_target's supports_catch_syscall op into a
2231 method of process_target.
2233 * target.h (struct process_stratum_target): Remove the target op.
2234 (class process_target): Add the target op.
2235 (target_supports_catch_syscall): Update the macro.
2236 * target.cc (process_target::supports_catch_syscall): Define.
2238 Update the derived classes and callers below.
2240 * linux-low.cc (linux_target_ops): Update.
2241 (linux_supports_catch_syscall): Turn into ...
2242 (linux_process_target::supports_catch_syscall): ... this.
2243 * linux-low.h (class linux_process_target): Update.
2244 * lynx-low.cc (lynx_target_ops): Update.
2245 * nto-low.cc (nto_target_ops): Update.
2246 * win32-low.cc (win32_target_ops): Update.
2248 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2250 Turn process_stratum_target's supports_software_single_step op
2251 into a method of process_target.
2253 * target.h (struct process_stratum_target): Remove the target op.
2254 (class process_target): Add the target op.
2255 (target_supports_software_single_step): Update the macro.
2256 * target.cc (process_target::supports_software_single_step): Define.
2258 Update the derived classes and callers below.
2260 * linux-low.cc (linux_target_ops): Update.
2261 (linux_supports_software_single_step): Turn into ...
2262 (linux_process_target::supports_software_single_step): ... this.
2263 * linux-low.h (class linux_process_target): Update.
2264 * lynx-low.cc (lynx_target_ops): Update.
2265 * nto-low.cc (nto_target_ops): Update.
2266 * win32-low.cc (win32_target_ops): Update.
2268 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2270 Turn process_stratum_target's thread_name and thread_handle ops
2271 into methods of process_target.
2273 * target.h (struct process_stratum_target): Remove the target ops.
2274 (class process_target): Add the target ops.
2275 (target_thread_name): Update the macro.
2276 (target_thread_handle): Update the macro.
2277 * target.cc (process_target::thread_name): Define.
2278 (process_target::thread_handle): Define.
2280 Update the derived classes and callers below.
2282 * linux-low.cc (linux_target_ops): Update.
2283 (linux_process_target::thread_name): Define.
2284 (linux_process_target::thread_handle): Define.
2285 * linux-low.h (class linux_process_target): Update.
2286 * lynx-low.cc (lynx_target_ops): Update.
2287 * nto-low.cc (nto_target_ops): Update.
2288 * win32-low.cc (win32_target_ops): Update.
2290 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2292 Turn process_stratum_target's breakpoint_kind_from_pc,
2293 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
2294 ops into methods of process_target.
2296 * target.h (struct process_stratum_target): Remove the target op.
2297 (class process_target): Add the target op.
2298 (target_breakpoint_kind_from_pc): Update the macro.
2299 (target_breakpoint_kind_from_current_state): Update the macro.
2300 (default_breakpoint_kind_from_pc): Remove declaration.
2301 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
2302 (process_target::breakpoint_kind_from_pc): ... this.
2303 (process_target::breakpoint_kind_from_current_state): Define.
2305 Update the derived classes and callers below.
2307 * mem-break.cc (bp_size): Update.
2308 (bp_opcode): Update.
2309 * linux-low.cc (linux_target_ops): Update.
2310 (linux_wait_1): Update.
2311 (linux_breakpoint_kind_from_pc): Turn into ...
2312 (linux_process_target::breakpoint_kind_from_pc): ... this.
2313 (linux_sw_breakpoint_from_kind): Turn into ...
2314 (linux_process_target::sw_breakpoint_from_kind): ... this.
2315 (linux_breakpoint_kind_from_current_state): Turn into ...
2316 (linux_process_target::breakpoint_kind_from_current_state): ... this.
2317 * linux-low.h (class linux_process_target): Update.
2318 * lynx-low.cc (lynx_target_ops): Update.
2319 (lynx_process_target::sw_breakpoint_from_kind): Define.
2320 * lynx-low.h (class lynx_process_target): Update.
2321 * nto-low.cc (nto_target_ops): Update.
2322 (nto_sw_breakpoint_from_kind): Turn into ...
2323 (nto_process_target::sw_breakpoint_from_kind): ... this.
2324 * nto-low.h (class nto_process_target): Update.
2325 * win32-low.cc (win32_target_ops): Update.
2326 (win32_sw_breakpoint_from_kind): Turn into ...
2327 (win32_process_target::sw_breakpoint_from_kind): ... this.
2328 * win32-low.h (class win32_process_target): Update.
2330 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2332 Turn process_stratum_target's multifs_open, multifs_readlink,
2333 multifs_unlink ops into methods of process_target.
2335 * target.h (struct process_stratum_target): Remove the target ops.
2336 (class process_target): Add the target ops. Also add
2338 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
2340 (process_target::supports_multifs): Define.
2341 (process_target::multifs_open): Define.
2342 (process_target::multifs_readlink): Define.
2343 (process_target::multifs_unlink): Define.
2345 Update the derived classes and callers below.
2347 * hostio.cc (handle_setfs): Update.
2348 (handle_open): Update.
2349 (handle_unlink): Update.
2350 (handle_readlink): Update.
2351 * linux-low.cc (linux_target_ops): Update.
2352 (linux_process_target::supports_multifs): Define.
2353 (linux_process_target::multifs_open): Define.
2354 (linux_process_target::multifs_readlink): Define.
2355 (linux_process_target::multifs_unlink): Define.
2356 * linux-low.h (class linux_process_target): Update.
2357 * lynx-low.cc (lynx_target_ops): Update.
2358 * nto-low.cc (nto_target_ops): Update.
2359 * win32-low.cc (win32_target_ops): Update.
2361 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2363 Turn process_stratum_target's pid_to_exec_file op into a method
2366 * target.h (struct process_stratum_target): Remove the target op.
2367 (class process_target): Add the target op. Also add
2368 'supports_pid_to_exec_file'.
2369 * target.cc (process_target::pid_to_exec_file): Define.
2370 (process_target::supports_pid_to_exec_file): Define.
2372 Update the derived classes and callers below.
2374 * server.cc (handle_qxfer_exec_file): Update.
2375 (handle_query): Update.
2376 * linux-low.cc (linux_target_ops): Update.
2377 (linux_process_target::supports_pid_to_exec_file): Define.
2378 (linux_process_target::pid_to_exec_file): Define.
2379 * linux-low.h (class linux_process_target): Update.
2380 * lynx-low.cc (lynx_target_ops): Update.
2381 * nto-low.cc (nto_target_ops): Update.
2382 * win32-low.cc (win32_target_ops): Update.
2384 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2386 Turn process_stratum_target's supports_range_stepping op into a
2387 method of process_target.
2389 * target.h (struct process_stratum_target): Remove the target op.
2390 (class process_target): Add the target op.
2391 (target_supports_range_stepping): Update the macro.
2392 * target.cc (process_target::supports_range_stepping): Define.
2394 Update the derived classes and callers below.
2396 * linux-low.cc (linux_target_ops): Update.
2397 (linux_supports_range_stepping): Turn into ...
2398 (linux_process_target::supports_range_stepping): ... this.
2399 * linux-low.h (class linux_process_target): Update.
2400 * lynx-low.cc (lynx_target_ops): Update.
2401 * nto-low.cc (nto_target_ops): Update.
2402 * win32-low.cc (win32_target_ops): Update.
2404 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2406 Turn process_stratum_target's btrace-related ops (enable_btrace,
2407 disable_btrace, read_btrace, read_btrace_conf) into methods of
2410 * target.h (struct process_stratum_target): Remove the target ops.
2411 (class process_target): Add the target ops.
2412 (target_enable_btrace): Update.
2413 (target_disable_btrace): Update.
2414 (target_read_btrace): Update.
2415 (target_read_btrace_conf): Update.
2416 * target.cc (process_target::enable_btrace): Define.
2417 (process_target::disable_btrace): Define.
2418 (process_target::read_btrace): Define.
2419 (process_target::read_btrace_conf): Define.
2421 Update the derived classes and callers below.
2423 * linux-low.cc (linux_target_ops): Update.
2424 (linux_process_target:enable_btrace): Define as a wrapper around
2425 linux_enable_btrace.
2426 (linux_low_disable_btrace): Turn into ...
2427 (linux_process_target::disable_btrace): ... this.
2428 (linux_low_read_btrace): Turn into ...
2429 (linux_process_target::read_btrace): ... this.
2430 (linux_low_btrace_conf): Turn into ...
2431 (linux_process_target::read_btrace_conf): ... this.
2432 * linux-low.h (class linux_process_target): Update.
2433 * lynx-low.cc (lynx_target_ops): Update.
2434 * nto-low.cc (nto_target_ops): Update.
2435 * win32-low.cc (win32_target_ops): Update.
2437 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2439 Turn process_stratum_target's supports_agent op into a method of
2442 * target.h (struct process_stratum_target): Remove the target op.
2443 (class process_target): Add the target op.
2444 (target_supports_agent): Update the macro.
2445 * target.cc (process_target::supports_agent): Define.
2447 Update the derived classes and callers below.
2449 * linux-low.cc (linux_target_ops): Update.
2450 (linux_supports_agent): Turn into ...
2451 (linux_process_target::supports_agent): ... this.
2452 * linux-low.h (class linux_process_target): Update.
2453 * lynx-low.cc (lynx_target_ops): Update.
2454 * nto-low.cc (nto_target_ops): Update.
2455 * win32-low.cc (win32_target_ops): Update.
2457 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2459 Turn process_stratum_target's qxfer_libraries_svr4 op into a
2460 method of process_target.
2462 * target.h (struct process_stratum_target): Remove the target op.
2463 (class process_target): Add the target op. Also add
2464 'supports_qxfer_libraries_svr4'.
2465 * target.cc (process_target::qxfer_libraries_svr4): Define.
2466 (process_target::supports_qxfer_libraries_svr4): Define.
2468 Update the derived classes and callers below.
2470 * server.cc (handle_qxfer_libraries_svr4): Update.
2471 (handle_query): Update.
2472 * linux-low.cc (linux_target_ops): Update.
2473 (linux_process_target::supports_qxfer_libraries_svr4): Define.
2474 (linux_qxfer_libraries_svr4): Turn into ...
2475 (linux_process_target::qxfer_libraries_svr4): ... this.
2476 * linux-low.h (class linux_process_target): Update.
2477 * lynx-low.cc (lynx_target_ops): Update.
2478 * nto-low.cc (nto_target_ops): Update.
2479 * win32-low.cc (win32_target_ops): Update.
2481 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2483 Turn process_stratum_target's supports_disable_randomization op
2484 into a method of process_target.
2486 * target.h (struct process_stratum_target): Remove the target op.
2487 (class process_target): Add the target op.
2488 (target_supports_disable_randomization): Update the macro.
2489 * target.cc (process_target::supports_disable_randomization): Define.
2491 Update the derived classes and callers below.
2493 * linux-low.cc (linux_target_ops): Update.
2494 (linux_supports_disable_randomization): Turn into ...
2495 (linux_process_target::supports_disable_randomization): ... this.
2496 * linux-low.h (class linux_process_target): Update.
2497 * lynx-low.cc (lynx_target_ops): Update.
2498 * nto-low.cc (nto_target_ops): Update.
2499 * win32-low.cc (win32_target_ops): Update.
2501 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2503 Turn process_stratum_target's emit_ops op into a method of
2506 * target.h (struct process_stratum_target): Remove the target op.
2507 (class process_target): Add the target op.
2508 (target_emit_ops): Update the macro.
2509 * target.cc (process_target::emit_ops): Define.
2511 Update the derived classes and callers below.
2513 * linux-low.cc (linux_target_ops): Update.
2514 (linux_emit_ops): Turn into ...
2515 (linux_process_target::emit_ops): ... this.
2516 * linux-low.h (class linux_process_target): Update.
2517 * lynx-low.cc (lynx_target_ops): Update.
2518 * nto-low.cc (nto_target_ops): Update.
2519 * win32-low.cc (win32_target_ops): Update.
2521 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2523 Turn process_stratum_target's install_fast_tracepoint_jump_pad
2524 and get_min_fast_tracepoint_insn_len ops into methods of
2527 * target.h (struct process_stratum_target): Remove the target ops.
2528 (class process_target): Add the target ops. Also add
2529 'supports_fast_tracepoints'.
2530 (target_supports_fast_tracepoints): Update the macro.
2531 (target_get_min_fast_tracepoint_insn_len): Update the macro.
2532 (install_fast_tracepoint_jump_pad): Update and rename the macro
2534 (target_install_fast_tracepoint_jump_pad): ... this.
2535 * target.cc (process_target::supports_fast_tracepoints): Define.
2536 (process_target::install_fast_tracepoint_jump_pad): Define.
2537 (process_target::get_min_fast_tracepoint_insn_len): Define.
2539 Update the derived classes and callers below.
2541 * tracepoint.cc (install_fast_tracepoint): Update.
2542 * linux-low.cc (linux_target_ops): Update.
2543 (linux_process_target::supports_fast_tracepoints): Define.
2544 (linux_install_fast_tracepoint_jump_pad): Turn into ...
2545 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
2546 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
2547 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
2548 * linux-low.h (class linux_process_target): Update.
2549 * lynx-low.cc (lynx_target_ops): Update.
2550 * nto-low.cc (nto_target_ops): Update.
2551 * win32-low.cc (win32_target_ops): Update.
2553 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2555 Turn process_stratum_target's stabilize_threads op into a
2556 method of process_target.
2558 * target.h (struct process_stratum_target): Remove the target op.
2559 (class process_target): Add the target op.
2560 (target_stabilize_threads): Update the macro.
2561 * target.cc (process_target::stabilize_threads): Define.
2563 Update the derived classes and callers below.
2565 * server.cc (handle_status): Update.
2566 * tracepoint.cc (cmd_qtdp): Update.
2567 (cmd_qtstart): Update.
2568 * linux-low.cc (linux_target_ops): Update.
2569 (linux_stabilize_threads): Turn into ...
2570 (linux_process_target::stabilize_threads): ... this.
2571 (linux_wait_1): Update.
2572 * linux-low.h (class linux_process_target): Update.
2573 * lynx-low.cc (lynx_target_ops): Update.
2574 * nto-low.cc (nto_target_ops): Update.
2575 * win32-low.cc (win32_target_ops): Update.
2577 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2579 Turn process_stratum_target's pause_all and unpause_all ops
2580 into methods of process_target.
2582 * target.h (struct process_stratum_target): Remove the target ops.
2583 (class process_target): Add the target ops.
2584 (pause_all): Update the macro and rename to...
2585 (target_pause_all): ... this.
2586 (unpause_all): Update the macro and rename to...
2587 (target_unpause_all): ... this.
2588 * target.cc (process_target::pause_all): Define.
2589 (process_target::unpause_all): Define.
2591 Update the derived classes and callers below.
2593 * server.cc (handle_status): Update.
2594 * tracepoint.cc (clear_installed_tracepoints): Update.
2596 (cmd_qtstart): Update.
2597 (stop_tracing): Update.
2598 (cmd_qtstatus): Update.
2599 (upload_fast_traceframes): Update.
2600 (run_inferior_command): Update.
2601 * linux-low.cc (linux_target_ops): Update.
2602 (linux_pause_all): Turn into ...
2603 (linux_process_target::pause_all): ... this.
2604 (linux_unpause_all): Turn into ...
2605 (linux_process_target::unpause_all): ... this.
2606 (linux_process_target::prepare_to_access_memory): Update.
2607 (linux_process_target::done_accessing_memory): Update.
2608 * linux-low.h (class linux_process_target): Update.
2609 * lynx-low.cc (lynx_target_ops): Update.
2610 * nto-low.cc (nto_target_ops): Update.
2611 * win32-low.cc (win32_target_ops): Update.
2613 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2615 Turn process_stratum_target's get_tib_address op into a method of
2618 * target.h (struct process_stratum_target): Remove the target op.
2619 (class process_target): Add the target op. Also add
2620 'supports_get_tib_address'.
2621 * target.cc (process_target::get_tib_address): Define.
2622 (process_target::supports_get_tib_address): Define.
2624 Update the derived classes and callers below.
2626 * server.cc (handle_query): Update.
2627 * linux-low.cc (win32_target_ops): Update.
2628 * lynx-low.cc (lynx_target_ops): Update.
2629 * nto-low.cc (nto_target_ops): Update.
2630 * win32-low.cc (win32_target_ops): Update.
2631 (win32_process_target::supports_get_tib_address): Define.
2632 (win32_get_tib_address): Turn into ...
2633 (win32_process_target::get_tib_address): ... this.
2634 * win32-low.h (class win32_process_target): Update.
2636 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2638 Turn process_stratum_target's thread_stopped op into a method of
2641 * target.h (struct process_stratum_target): Remove the target op.
2642 (class process_target): Add the target op. Also add
2643 'supports_thread_stopped'.
2644 (target_thread_stopped): Update the macro.
2645 * target.cc (process_target::thread_stopped): Define.
2646 (process_target::supports_thread_stopped): Define.
2647 (prepare_to_access_memory): Update.
2649 Update the derived classes and callers below.
2651 * server.cc (queue_stop_reply_callback): Update.
2652 * linux-low.cc (linux_target_ops): Update.
2653 (linux_process_target::supports_thread_stopped): Define.
2654 (linux_thread_stopped): Turn into ...
2655 (linux_process_target::thread_stopped): ... this.
2656 * linux-low.h (class linux_process_target): Update.
2657 * lynx-low.cc (lynx_target_ops): Update.
2658 * nto-low.cc (nto_target_ops): Update.
2659 * win32-low.cc (win32_target_ops): Update.
2661 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2663 Turn process_stratum_target's read_pc and write_pc ops into
2664 methods of process_target.
2666 * target.h (struct process_stratum_target): Remove the target ops.
2667 (class process_target): Add the target ops.
2668 * target.cc (process_target::read_pc): Define.
2669 (process_target::write_pc): Define.
2671 Update the derived classes and callers below.
2673 * regcache.cc (regcache_read_pc): Update.
2674 (regcache_write_pc): Update.
2675 * linux-low.cc (linux_target_ops): Update.
2676 (linux_read_pc): Turn into ...
2677 (linux_process_target::read_pc): ... this.
2678 (linux_write_pc): Turn into ...
2679 (linux_process_target::write_pc): ... this.
2680 * linux-low.h (class linux_process_target): Update.
2681 * lynx-low.cc (lynx_target_ops): Update.
2682 * nto-low.cc (nto_target_ops): Update.
2683 * win32-low.cc (win32_target_ops): Update.
2685 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2687 Turn process_stratum_target's supports_tracepoints op into a
2688 method of process_target.
2690 * target.h (struct process_stratum_target): Remove the target op.
2691 (class process_target): Add the target op.
2692 (target_supports_tracepoints): Update the macro.
2693 * target.cc (process_target::supports_tracepoints): Define.
2695 Update the derived classes and callers below.
2697 * linux-low.cc (linux_target_ops): Update.
2698 (linux_supports_tracepoints): Turn into ...
2699 (linux_process_target::supports_tracepoints): ... this.
2700 * linux-low.h (class linux_process_target): Update.
2701 * lynx-low.cc (lynx_target_ops): Update.
2702 * nto-low.cc (nto_target_ops): Update.
2703 * win32-low.cc (win32_target_ops): Update.
2705 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2707 Turn process_stratum_target's process_qsupported op into a method
2710 * target.h (struct process_stratum_target): Remove the target op.
2711 (class process_target): Add the target op.
2712 (target_process_qsupported): Update the macro.
2713 * target.cc (process_target::process_qsupported): Define.
2715 Update the derived classes and callers below.
2717 * linux-low.cc (linux_target_ops): Update.
2718 (linux_process_qsupported): Turn into ...
2719 (linux_process_target::process_qsupported): ... this.
2720 * linux-low.h (class linux_process_target): Update.
2721 * lynx-low.cc (lynx_target_ops): Update.
2722 * nto-low.cc (nto_target_ops): Update.
2723 * win32-low.cc (win32_target_ops): Update.
2725 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2727 Turn process_stratum_target's read_loadmap op into a method of
2730 * target.h (struct process_stratum_target): Remove the target op.
2731 (class process_target): Add the target op. Also add
2732 'supports_read_loadmap'.
2733 * target.cc (process_target::read_loadmap): Define.
2734 (process_target::supports_read_loadmap): Define.
2736 Update the derived classes and callers below.
2738 * server.cc (handle_qxfer_fdpic): Update.
2739 (handle_query): Update.
2740 * linux-low.cc (linux_target_ops): Update.
2741 (linux_process_target::supports_read_loadmap): Define.
2742 (linux_read_loadmap): Turn into ...
2743 (linux_process_target::read_loadmap): ... this.
2744 * linux-low.h (class linux_process_target): Update.
2745 * lynx-low.cc (lynx_target_ops): Update.
2746 * nto-low.cc (nto_target_ops): Update.
2747 * win32-low.cc (win32_target_ops): Update.
2749 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2751 Turn process_stratum_target's core_of_thread op into a method of
2754 * target.h (struct process_stratum_target): Remove the target op.
2755 (class process_target): Add the target op.
2756 (target_core_of_thread): Update the macro.
2757 * target.cc (process_target::core_of_thread): Define.
2759 Update the derived classes and callers below.
2761 * linux-low.cc (linux_target_ops): Update.
2762 (linux_process_target::core_of_thread): Define.
2763 * linux-low.h (class linux_process_target): Update.
2764 * lynx-low.cc (lynx_target_ops): Update.
2765 * nto-low.cc (nto_target_ops): Update.
2766 * win32-low.cc (win32_target_ops): Update.
2768 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2770 Turn process_stratum_target's handle_monitor_command op into a
2771 method of process_target.
2773 * target.h (struct process_stratum_target): Remove the target op.
2774 (class process_target): Add the target op.
2775 (target_handle_monitor_command): Update the macro.
2776 * target.cc (process_target::handle_monitor_command): Define.
2778 Update the derived classes and callers below.
2780 * server.cc (handle_query): Update.
2781 * linux-low.cc (linux_target_ops): Update.
2782 (linux_process_target::handle_monitor_command): Define.
2783 * linux-low.h (class linux_process_target): Update.
2784 * lynx-low.cc (lynx_target_ops): Update.
2785 * nto-low.cc (nto_target_ops): Update.
2786 * win32-low.cc (win32_target_ops): Update.
2788 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2790 Turn process_stratum_target's handle_new_gdb_connection op into a
2791 method of process_target.
2793 * target.h (struct process_stratum_target): Remove the target op.
2794 (class process_target): Add the target op.
2795 (target_handle_new_gdb_connection): Update the macro.
2796 * target.cc (process_target::handle_new_gdb_connection): Define.
2798 Update the derived classes and callers below.
2800 * linux-low.cc (linux_target_ops): Update.
2801 (linux_handle_new_gdb_connection): Turn into ...
2802 (linux_process_target::handle_new_gdb_connection): ... this.
2803 * linux-low.h (class linux_process_target): Update.
2804 * lynx-low.cc (lynx_target_ops): Update.
2805 * nto-low.cc (nto_target_ops): Update.
2806 * win32-low.cc (win32_target_ops): Update.
2808 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2810 Turn process_stratum_target's supports_fork_events,
2811 supports_vfork_events, and supports_exec_events ops into methods
2814 * target.h (struct process_stratum_target): Remove the target ops.
2815 (class process_target): Add the target ops.
2816 (target_supports_fork_events): Update the macro.
2817 (target_supports_vfork_events): Update the macro.
2818 (target_supports_exec_events): Update the macro.
2819 * target.cc (process_target::supports_fork_events): Define.
2820 (process_target::supports_vfork_events): Define.
2821 (process_target::supports_exec_events): Define.
2823 Update the derived classes and callers below.
2825 * linux-low.cc (linux_target_ops): Update.
2826 (linux_supports_fork_events): Turn into ...
2827 (linux_process_target::supports_fork_events): ... this.
2828 (linux_supports_vfork_events): Turn into ...
2829 (linux_process_target::supports_vfork_events): ... this.
2830 (linux_supports_exec_events): Turn into ...
2831 (linux_process_target::supports_exec_events): ... this.
2832 * linux-low.h (class linux_process_target): Update.
2833 * lynx-low.cc (lynx_target_ops): Update.
2834 * nto-low.cc (nto_target_ops): Update.
2835 * win32-low.cc (win32_target_ops): Update.
2837 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2839 Turn process_stratum_target's supports_multi_process op into a
2840 method of process_target.
2842 * target.h (struct process_stratum_target): Remove the target op.
2843 (class process_target): Add the target op.
2844 * target.cc (process_target::supports_multi_process): Define.
2845 (target_supports_multi_process): Update.
2847 Update the derived classes and callers below.
2849 * linux-low.cc (linux_target_ops): Update.
2850 (linux_supports_multi_process): Turn into ...
2851 (linux_process_target::supports_multi_process): ... this.
2852 * linux-low.h (class linux_process_target): Update.
2853 * lynx-low.cc (lynx_target_ops): Update.
2854 * nto-low.cc (nto_target_ops): Update.
2855 * win32-low.cc (win32_target_ops): Update.
2857 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2859 Turn process_stratum_target's supports_non_stop, async, and
2860 start_non_stop ops into methods of process_target.
2862 * target.h (struct process_stratum_target): Remove the target ops.
2863 (class process_target): Add the target ops.
2864 (target_supports_non_stop): Update the macro.
2865 (target_async): Update the macro.
2866 (start_non_stop): Remove declaration.
2867 * target.cc (process_target::supports_non_stop): Define.
2868 (process_target::async): Define.
2869 (process_target::start_non_stop): Define.
2870 (start_non_stop): Remove.
2872 Update the derived classes and callers below.
2874 * server.cc (handle_qxfer_siginfo): Update.
2875 (handle_query): Update.
2876 * linux-low.cc (linux_target_ops): Update.
2877 (linux_supports_non_stop): Turn into ...
2878 (linux_process_target::supports_non_stop): ... this.
2879 (linux_async): Turn into ...
2880 (linux_process_target::async): ... this.
2881 (linux_start_non_stop): Turn into ...
2882 (linux_process_target::start_non_stop): ... this.
2883 * linux-low.h (class linux_process_target): Update.
2884 * lynx-low.cc (lynx_target_ops): Update.
2885 * nto-low.cc (nto_target_ops): Update.
2886 (nto_supports_non_stop): Remove; rely on the default behavior
2888 * win32-low.cc (win32_target_ops): Update.
2890 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2892 Turn process_stratum_target's qxfer_siginfo op into a method of
2895 * target.h (struct process_stratum_target): Remove the target op.
2896 (class process_target): Add the target op. Also add
2897 'supports_qxfer_siginfo'.
2898 * target.cc (process_target::qxfer_siginfo): Define.
2899 (process_target::supports_qxfer_siginfo): Define.
2901 Update the derived classes and callers below.
2903 * server.cc (handle_qxfer_siginfo): Update.
2904 (handle_query): Update.
2905 * linux-low.cc (linux_target_ops): Update.
2906 (linux_process_target::supports_qxfer_siginfo): Define.
2907 (linux_xfer_siginfo): Turn into ...
2908 (linux_process_target::qxfer_siginfo): ... this.
2909 * linux-low.h (class linux_process_target): Update.
2910 * lynx-low.cc (lynx_target_ops): Update.
2911 * nto-low.cc (nto_target_ops): Update.
2912 * win32-low.cc (win32_target_ops): Update.
2914 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2916 Turn process_stratum_target's qxfer_osdata op into a method of
2919 * target.h (struct process_stratum_target): Remove the target op.
2920 (class process_target): Add the target op. Also add
2921 'supports_qxfer_osdata'.
2922 * target.cc (process_target::qxfer_osdata): Define.
2923 (process_target::supports_qxfer_osdata): Define.
2925 Update the derived classes and callers below.
2927 * server.cc (handle_qxfer_osdata): Update.
2928 (handle_query): Update.
2929 * linux-low.cc (linux_target_ops): Update.
2930 (linux_process_target::supports_qxfer_osdata): Define.
2931 (linux_qxfer_osdata): Turn into ...
2932 (linux_process_target::qxfer_osdata): ... this.
2933 * linux-low.h (class linux_process_target): Update.
2934 * lynx-low.cc (lynx_target_ops): Update.
2935 * nto-low.cc (nto_target_ops): Update.
2936 * win32-low.cc (win32_target_ops): Update.
2938 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2940 Turn process_stratum_target's hostio_last_error op into a
2941 method of process_target.
2943 * target.h (struct process_stratum_target): Remove the target op.
2944 (class process_target): Add the target op.
2945 * target.cc: Add "hostio.h" to includes.
2946 (process_target::hostio_last_error): Define.
2948 Update the derived classes and callers below.
2950 * hostio.cc (hostio_error): Update.
2951 * linux-low.cc: Remove "hostio.h" from includes.
2952 (linux_target_ops): Update.
2953 * lynx-low.cc (lynx_target_ops): Update.
2954 * nto-low.cc (nto_target_ops): Update.
2955 * win32-low.h (class win32_process_target): Update.
2956 * win32-low.cc (win32_target_ops): Update.
2957 (wince_hostio_last_error): Turn into ...
2958 (win32_process_target::hostio_last_error): ... this.
2960 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2962 Turn process_stratum_target's get_tls_address op into a method of
2965 * target.h (struct process_stratum_target): Remove the target op.
2966 (class process_target): Add the target op. Also add
2967 'supports_get_tls_address'.
2968 * target.cc (process_target::get_tls_address): Define.
2969 (process_target::supports_get_tls_address): Define.
2971 Update the derived classes and callers below.
2973 * server.cc (handle_query): Update.
2974 * linux-low.cc (linux_target_ops): Update.
2975 (linux_process_target::supports_get_tls_address): Define.
2976 (linux_process_target::get_tls_address): Define.
2977 * linux-low.h (class linux_process_target): Update.
2978 * lynx-low.cc (lynx_target_ops): Update.
2979 * nto-low.cc (nto_target_ops): Update.
2980 * win32-low.cc (win32_target_ops): Update.
2982 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2984 Turn process_stratum_target's read_offsets op into a method of
2987 * target.h (struct process_stratum_target): Remove the target op.
2988 (class process_target): Add the target op. Also add
2989 'supports_read_offsets'.
2990 * target.cc (process_target::read_offsets): Define.
2991 (process_target::supports_read_offsets): Define.
2993 Update the derived classes and callers below.
2995 * server.cc (handle_query): Update.
2996 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
2997 (linux_target_ops): Update.
2998 (linux_process_target::supports_read_offsets): Define.
2999 (linux_read_offsets): Turn into ...
3000 (linux_process_target::read_offsets): ... this.
3001 * linux-low.h (class linux_process_target): Update.
3002 * lynx-low.cc (lynx_target_ops): Update.
3003 * nto-low.cc (nto_target_ops): Update.
3004 * win32-low.cc (win32_target_ops): Update.
3006 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3008 Turn process_stratum_target's stopped_by_watchpoint and
3009 stopped_data_address ops into methods of process_target.
3011 * target.h (struct process_stratum_target): Remove the target ops.
3012 (class process_target): Add the target ops.
3013 * target.cc (process_target::stopped_by_watchpoint): Define.
3014 (process_target::stopped_data_address): Define.
3016 Update the derived classes and callers below.
3018 * remote-utils.cc (prepare_resume_reply): Update.
3019 * linux-low.cc (linux_target_ops): Update.
3020 (linux_stopped_by_watchpoint): Turn into ...
3021 (linux_process_target::stopped_by_watchpoint): ... this.
3022 (linux_stopped_data_address): Turn into ...
3023 (linux_process_target::stopped_data_address): ... this.
3024 * linux-low.h (class linux_process_target): Update.
3025 * lynx-low.cc (lynx_target_ops): Update.
3026 * nto-low.cc (nto_target_ops): Update.
3027 (nto_stopped_by_watchpoint): Turn into ...
3028 (nto_process_target::stopped_by_watchpoint): ... this.
3029 (nto_stopped_data_address): Turn into ...
3030 (nto_process_target::stopped_data_address): ... this.
3031 * nto-low.h (class nto_process_target): Update.
3032 * win32-low.cc (win32_target_ops): Update.
3033 (win32_stopped_by_watchpoint): Turn into ...
3034 (win32_process_target::stopped_by_watchpoint): ... this.
3035 (win32_stopped_data_address): Turn into ...
3036 (win32_process_target::stopped_data_address): ... this.
3037 * win32-low.h (class win32_process_target): Update.
3039 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3041 Turn process_stratum_target's supports_hardware_single_step op into
3042 a method of process_target.
3044 * target.h (struct process_stratum_target): Remove the target op.
3045 (class process_target): Add the target op.
3046 (target_supports_hardware_single_step): Update the macro.
3047 (target_can_do_hardware_single_step): Remove declaration.
3048 * target.cc (process_target::supports_hardware_single_step): Define.
3049 (target_can_do_hardware_single_step): Remove.
3051 Update the derived classes and callers below.
3053 * linux-low.h (class linux_process_target): Update.
3054 * linux-low.cc (linux_target_ops): Update.
3055 (linux_supports_hardware_single_step): Turn into ...
3056 (linux_process_target::supports_hardware_single_step): ... this.
3057 * lynx-low.h (class lynx_process_target): Update.
3058 * lynx-low.cc (lynx_target_ops): Update.
3059 (lynx_process_target::supports_hardware_single_step): Define.
3060 * nto-low.h (class nto_process_target): Update.
3061 * nto-low.cc (nto_target_ops): Update.
3062 (nto_process_target::supports_hardware_single_step): Define.
3063 * win32-low.h (class win32_process_target): Update.
3064 * win32-low.cc (win32_target_ops): Update.
3065 (win32_process_target::supports_hardware_single_step): Define.
3067 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3069 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
3070 ops into methods of process_target.
3072 * target.h (struct process_stratum_target): Remove the target ops.
3073 (class process_target): Add the target ops.
3074 (target_stopped_by_hw_breakpoint): Update the macro.
3075 (target_supports_stopped_by_hw_breakpoint): Update the macro.
3076 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
3077 (process_target::supports_stopped_by_hw_breakpoint): Define.
3079 Update the derived classes and callers below.
3081 * linux-low.cc (linux_target_ops): Update.
3082 (linux_stopped_by_hw_breakpoint): Turn into ...
3083 (linux_process_target::stopped_by_hw_breakpoint): ... this.
3084 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
3085 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
3086 * linux-low.h (class linux_process_target): Update.
3087 * lynx-low.cc (lynx_target_ops): Update.
3088 * nto-low.cc (nto_target_ops): Update.
3089 * win32-low.cc (win32_target_ops): Update.
3091 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3093 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
3094 ops into methods of process_target.
3096 * target.h (struct process_stratum_target): Remove the target ops.
3097 (class process_target): Add the target ops.
3098 (target_stopped_by_sw_breakpoint): Update the macro.
3099 (target_supports_stopped_by_sw_breakpoint): Update the macro.
3100 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
3101 (process_target::supports_stopped_by_sw_breakpoint): Define.
3103 Update the derived classes and callers below.
3105 * linux-low.cc (linux_target_ops): Update.
3106 (linux_stopped_by_sw_breakpoint): Turn into ...
3107 (linux_process_target::stopped_by_sw_breakpoint): ... this.
3108 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
3109 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
3110 * linux-low.h (class linux_process_target): Update.
3111 * lynx-low.cc (lynx_target_ops): Update.
3112 * nto-low.cc (nto_target_ops): Update.
3113 * win32-low.cc (win32_target_ops): Update.
3115 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3117 Turn process_stratum_target's insert_point and remove_point ops
3118 into methods of process_target.
3120 * target.h (struct process_stratum_target): Remove the target ops.
3121 (class process_target): Add the target ops.
3122 * target.cc (process_target::insert_point): Define.
3123 (process_target::remove_point): Define.
3125 Update the derived classes and callers below.
3127 * mem-break.cc (set_raw_breakpoint_at): Update.
3128 (delete_raw_breakpoint): Update.
3129 (uninsert_raw_breakpoint): Update.
3130 (reinsert_raw_breakpoint): Update.
3131 * linux-low.cc (linux_target_ops): Update.
3132 (linux_insert_point): Turn into ...
3133 (linux_process_target::insert_point): ... this.
3134 (linux_remove_point): Turn into ...
3135 (linux_process_target::remove_point): ... this.
3136 * linux-low.h (class linux_process_target): Update.
3137 * lynx-low.cc (lynx_target_ops): Update.
3138 * nto-low.cc (nto_target_ops): Update.
3139 (nto_insert_point): Turn into ...
3140 (nto_process_target::insert_point): ... this.
3141 (nto_remove_point): Turn into ...
3142 (nto_process_target::remove_point): ... this.
3143 * nto-low.h (class nto_process_target): Update.
3144 * win32-low.cc (win32_target_ops): Update.
3145 (win32_insert_point): Turn into ...
3146 (win32_process_target::insert_point): ... this.
3147 (win32_remove_point): Turn into ...
3148 (win32_process_target::remove_point): ... this.
3149 * win32-low.h (class win32_process_target): Update.
3151 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3153 Turn process_stratum_target's supports_z_point_type op into a
3154 method of process_target.
3156 * target.h (struct process_stratum_target): Remove the target op.
3157 (class process_target): Add the target op.
3158 * target.cc (process_target::supports_z_point_type): Define.
3160 Update the derived classes and callers below.
3162 * mem-break.cc (z_type_supported): Update.
3163 * linux-low.cc (linux_target_ops): Update.
3164 (linux_supports_z_point_type): Turn into ...
3165 (linux_process_target::supports_z_point_type): ... this.
3166 * linux-low.h (class linux_process_target): Update.
3167 * lynx-low.cc (lynx_target_ops): Update.
3168 * nto-low.cc (nto_target_ops): Update.
3169 (nto_supports_z_point_type): Turn into ...
3170 (nto_process_target::supports_z_point_type): ... this.
3171 * nto-low.h (class nto_process_target): Update.
3172 * win32-low.cc (win32_target_ops): Update.
3173 (win32_supports_z_point_type): Turn into ...
3174 (win32_process_target::supports_z_point_type): ... this.
3175 * win32-low.h (class win32_process_target): Update.
3177 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3179 Turn process_stratum_target's read_auxv op into a method of
3182 * target.h (class process_stratum_target): Remove the target op.
3183 (struct process_target): Add the target op. Also add
3184 'supports_read_auxv'.
3185 * target.cc (process_target::read_auxv): Define.
3186 (process_target::supports_read_auxv): Define.
3188 Update the derived classes and callers below.
3190 * server.cc (handle_qxfer_auxv): Update.
3191 (handle_query): Update.
3192 * linux-low.cc (linux_target_ops): Update.
3193 (linux_process_target::supports_read_auxv): Define.
3194 (linux_read_auxv): Turn into ...
3195 (linux_process_target::read_auxv): ... this.
3196 * linux-low.h (class linux_process_target): Update.
3197 * lynx-low.cc (lynx_target_ops): Update.
3198 * nto-low.cc (nto_target_ops): Update.
3199 (nto_process_target::supports_read_auxv): Define.
3200 (nto_read_auxv): Turn into ...
3201 (nto_process_target::read_auxv): ... this.
3202 * nto-low.h (class nto_process_target): Update.
3203 * win32-low.cc (win32_target_ops): Update.
3205 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3207 Turn process_stratum_target's request_interrupt op into a method of
3210 * target.h (struct process_stratum_target): Remove the target op.
3211 (class process_target): Add the target op.
3213 Update the derived classes and callers below.
3215 * remote-utils.cc (putpkt_binary_1): Update.
3216 (input_interrupt): Update.
3218 * server.cc (handle_v_requests): Update.
3219 * linux-low.cc (linux_target_ops): Update.
3220 (linux_request_interrupt): Turn into ...
3221 (linux_process_target::request_interrupt): ... this.
3222 * linux-low.h (class linux_process_target): Update.
3223 * lynx-low.cc (lynx_target_ops): Update.
3224 (lynx_request_interrupt): Turn into ...
3225 (lynx_process_target::request_interrupt): ... this.
3226 * lynx-low.h (class lynx_process_target): Update.
3227 * nto-low.cc (nto_target_ops): Update.
3228 (nto_request_interrupt): Turn into ...
3229 (nto_process_target::request_interrupt): ... this.
3230 * nto-low.h (class nto_process_target): Update.
3231 * win32-low.cc (win32_target_ops): Update.
3232 (win32_request_interrupt): Turn into ...
3233 (win32_process_target::request_interrupt): ... this.
3234 * win32-low.h (class win32_process_target): Update.
3236 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3238 Turn process_stratum_target's look_up_symbols op into a method of
3241 * target.h (struct process_stratum_target): Remove the target op.
3242 (class process_target): Add the target op.
3243 * target.cc (process_target::look_up_symbols): Define.
3245 Update the derived classes and callers below.
3247 * server.cc (handle_query): Update.
3248 * linux-low.cc (linux_target_ops): Update.
3249 (linux_look_up_symbols): Turn into ...
3250 (linux_process_target::look_up_symbols): ... this.
3251 * linux-low.h (class linux_process_target): Update.
3252 * lynx-low.cc (lynx_target_ops): Update.
3253 * nto-low.cc (nto_target_ops): Update.
3254 * win32-low.cc (win32_target_ops): Update.
3256 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3258 Turn process_stratum_target's read_memory and write_memory
3259 ops into methods of process_target.
3261 * target.h (struct process_stratum_target): Remove the target ops.
3262 (class process_target): Add the target ops.
3264 Update the derived classes and callers below.
3266 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
3267 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
3268 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
3269 (arm_get_syscall_trapinfo): Update.
3270 * linux-cris-low.cc (cris_breakpoint_at): Update.
3271 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
3272 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
3273 * linux-mips-low.cc (mips_breakpoint_at): Update.
3274 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
3275 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
3276 * linux-sh-low.cc (sh_breakpoint_at): Update.
3277 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
3278 (sparc_store_gregset_from_stack): Update.
3279 (sparc_breakpoint_at): Update.
3280 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
3281 * linux-tile-low.cc (tile_breakpoint_at): Update.
3282 * linux-x86-low.cc (x86_breakpoint_at): Update.
3283 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
3284 * mem-brea.cc (insert_memory_breakpoint): Update.
3285 (validate_inserted_breakpoint): Update.
3286 * target.cc (read_inferior_memory): Update.
3287 (target_write_memory): Update.
3288 * linux-low.cc (linux_target_ops): Update.
3289 (linux_read_memory): Make a wrapper around the read_memory target
3291 (linux_process_target::read_memory): Rename from linux_read_memory.
3292 (linux_write_memory): Turn into ...
3293 (linux_process_target::write_memory): ... this.
3294 * linux-low.h (class linux_process_target): Update.
3295 * lynx-low.cc (lynx_target_ops): Update.
3296 (lynx_read_memory): Turn into ...
3297 (lynx_process_target::read_memory): ... this.
3298 (lynx_write_memory): Turn into ...
3299 (lynx_process_target::write_memory): ... this.
3300 * lynx-low.h (class lynx_process_target): Update.
3301 * nto-low.cc (nto_target_ops): Update.
3302 (nto_read_memory): Turn into ...
3303 (nto_process_target::read_memory): ... this.
3304 (nto_write_memory): Turn into ...
3305 (nto_process_target::write_memory): ... this.
3306 * nto-low.h (class nto_process_target): Update.
3307 * win32-low.cc (win32_target_ops): Update.
3308 (win32_read_inferior_memory): Turn into ...
3309 (win32_process_target::read_memory): ... this.
3310 (win32_write_inferior_memory): Turn into ...
3311 (win32_process_target::write_memory): ... this.
3312 * win32-low.h (class win32_process_target): Update.
3314 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3316 Turn process_stratum_target's prepare_to_access_memory and
3317 done_accessing_memory ops into methods of process_target.
3319 * target.h (struct process_stratum_target): Remove the target ops.
3320 (class process_target): Add the target ops.
3321 * target.cc (process_target::prepare_to_access_memory): Define.
3322 (process_target::done_accessing_memory): Define.
3323 (prepare_to_access_memory): Update.
3324 (done_accessing_memory): Update.
3326 Update the derived classes and callers below.
3328 * linux-low.cc (linux_target_ops): Update.
3329 (linux_prepare_to_access_memory): Turn into ...
3330 (linux_process_target::prepare_to_access_memory): ... this.
3331 (linux_done_accessing_memory): Turn into ...
3332 (linux_process_target::done_accessing_memory): ... this.
3333 * linux-low.h (class linux_process_target): Update.
3334 * lynx-low.cc (lynx_target_ops): Update.
3335 * nto-low.cc (nto_target_ops): Update.
3336 * win32-low.cc (win32_target_ops): Update.
3338 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3340 Turn process_stratum_target's fetch_registers and store_registers
3341 ops into methods of process_target.
3343 * target.h (struct process_stratum_target): Remove the target ops.
3344 (class process_target): Add the target ops.
3345 (fetch_inferior_registers): Update the macro.
3346 (store_inferior_registers): Update the macro.
3348 Update the derived classes and callers below.
3350 * linux-low.cc (linux_target_ops): Update.
3351 (linux_fetch_registers): Turn into ...
3352 (linux_process_target::fetch_registers): ... this.
3353 (linux_store_registers): Turn into ...
3354 (linux_process_target::store_registers): ... this.
3355 * linux-low.h (class linux_process_target): Update.
3356 * lynx-low.cc (lynx_target_ops): Update.
3357 (lynx_fetch_registers): Turn into ...
3358 (lynx_process_target::fetch_registers): ... this.
3359 (lynx_store_registers): Turn into ...
3360 (lynx_process_target::store_registers): ... this.
3361 * lynx-low.h (class lynx_process_target): Update.
3362 * nto-low.cc (nto_target_ops): Update.
3363 (nto_fetch_registers): Turn into ...
3364 (nto_process_target::fetch_registers): ... this.
3365 (nto_store_registers): Turn into ...
3366 (nto_process_target::store_registers): ... this.
3367 * nto-low.h (class nto_process_target): Update.
3368 * win32-low.cc (win32_target_ops): Update.
3369 (win32_fetch_inferior_registers): Turn into ...
3370 (win32_process_target::fetch_registers): ... this.
3371 (win32_store_inferior_registers): Turn into ...
3372 (win32_process_target::store_registers): ... this.
3373 * win32-low.h (class win32_process_target): Update.
3375 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3377 Turn process_stratum_target's wait op into a method of
3380 * target.h (struct process_stratum_target): Remove the target op.
3381 (class process_target): Add the target op.
3383 Update the derived classes and callers below.
3385 * target.cc (target_wait): Update.
3386 * linux-low.cc (linux_target_ops): Update.
3387 (linux_wait): Turn into ...
3388 (linux_process_target::wait): ... this.
3389 * linux-low.h (class linux_process_target): Update.
3390 * lynx-low.cc (lynx_target_ops): Update.
3391 (lynx_wait): Turn into ...
3392 (lynx_process_target::wait): ... this.
3393 * lynx-low.h (class lynx_process_target): Update.
3394 * nto-low.cc (nto_target_ops): Update.
3395 (nto_wait): Turn into ...
3396 (nto_process_target::wait): ... this.
3397 * nto-low.h (class nto_process_target): Update.
3398 * win32-low.cc (win32_target_ops): Update.
3399 (win32_wait): Turn into ...
3400 (win32_process_target::wait): ... this.
3401 (do_initial_child_stuff): Update.
3402 * win32-low.h (class win32_process_target): Update.
3404 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3406 Turn process_stratum_target's resume op into a method of
3409 * target.h (struct process_stratum_target): Remove the target op.
3410 (class process_target): Add the target op.
3412 Update the derived classes and callers below.
3414 * server.cc (resume): Update.
3415 * target.cc (target_stop_and_wait): Update.
3416 (target_continue_no_signal): Update.
3417 (target_continue): Update.
3418 * linux-low.cc (linux_target_ops): Update.
3419 (linux_resume): Turn into ...
3420 (linux_process_target::resume): ... this.
3421 * linux-low.h (class linux_process_target): Update.
3422 * lynx-low.cc (lynx_target_ops): Update.
3423 (lynx_resume): Turn into ...
3424 (lynx_process_target::resume): ... this.
3425 * lynx-low.h (class lynx_process_target): Update.
3426 * nto-low.cc (nto_target_ops): Update.
3427 (nto_resume): Turn into ...
3428 (nto_process_target::resume): ... this.
3429 * nto-low.h (class nto_process_target): Update.
3430 * win32-low.cc (win32_target_ops): Update.
3431 (win32_resume): Turn into ...
3432 (win32_process_target::resume): ... this.
3433 (win32_process_target::detach): Update.
3434 (do_initial_child_stuff): Update.
3435 * win32-low.h (class win32_process_target): Update.
3437 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3439 Turn process_stratum_target's thread_alive op into a method of
3442 * target.h (struct process_stratum_target): Remove the target op.
3443 (class process_target): Add the target op.
3444 (mythread_alive): Update the macro.
3446 Update the derived classes and callers below.
3448 * linux-low.cc (linux_target_ops): Update.
3449 (linux_thread_alive): Turn into ...
3450 (linux_process_target::thread_alive): ... this.
3451 (wait_for_sigstop): Update.
3452 * linux-low.h (class linux_process_target): Update.
3453 * lynx-low.cc (lynx_target_ops): Update.
3454 (lynx_thread_alive): Turn into ...
3455 (lynx_process_target::thread_alive): ... this.
3456 * lynx-low.h (class lynx_process_target): Update.
3457 * nto-low.cc (nto_target_ops): Update.
3458 (nto_thread_alive): Turn into ...
3459 (nto_process_target::thread_alive): ... this.
3460 * nto-low.h (class nto_process_target): Update.
3461 * win32-low.cc (win32_target_ops): Update.
3462 (win32_thread_alive): Turn into ...
3463 (win32_process_target::thread_alive): ... this.
3464 * win32-low.h (class win32_process_target): Update.
3466 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3468 Turn process_stratum_target's join op into a method of
3471 * target.h (struct process_stratum_target): Remove the target op.
3472 (class process_target): Add the target op.
3473 (join_inferior): Update the macro.
3475 Update the derived classes and callers below.
3477 * linux-low.cc (linux_target_ops): Update.
3478 (linux_join): Turn into ...
3479 (linux_process_target::join): ... this.
3480 * linux-low.h (class linux_process_target): Update.
3481 * lynx-low.cc (lynx_target_ops): Update.
3482 (lynx_join): Turn into ...
3483 (lynx_process_target::join): ... this.
3484 * lynx-low.h (class lynx_process_target): Update.
3485 * nto-low.cc (nto_target_ops): Update.
3486 (nto_process_target::join): Define.
3487 * nto-low.h (class nto_process_target): Update.
3488 * win32-low.cc (win32_target_ops): Update.
3489 (win32_join): Turn into ...
3490 (win32_process_target::join): ... this.
3491 * win32-low.h (class win32_process_target): Update.
3493 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3495 Turn process_stratum_target's mourn op into a method of
3498 * target.h (struct process_stratum_target): Remove the target op.
3499 (class process_target): Add the target op.
3501 Update the derived classes and callers below.
3503 * target.cc (target_mourn_inferior): Update.
3504 * linux-low.cc (linux_target_ops): Update.
3505 (linux_mourn): Turn into ...
3506 (linux_process_target::mourn): ... this.
3507 (handle_extended_wait): Update.
3508 (linux_process_target::kill): Update.
3509 (linux_process_target::detach): Update.
3510 * linux-low.h (class linux_process_target): Update.
3511 * lynx-low.cc (lynx_target_ops): Update.
3512 (lynx_mourn): Turn into ...
3513 (lynx_process_target::mourn): ... this.
3514 * lynx-low.h (class lynx_process_target): Update.
3515 * nto-low.cc (nto_target_ops): Update.
3516 (nto_mourn): Turn into ...
3517 (nto_process_target::mourn): ... this.
3518 * nto-low.h (class nto_process_target): Update.
3519 * win32-low.cc (win32_target_ops): Update.
3520 (win32_mourn): Turn into ...
3521 (win32_process_target::mourn): ... this.
3522 * win32-low.h (class win32_process_target): Update.
3524 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3526 Turn process_stratum_target's detach op into a method of
3529 * target.h (struct process_stratum_target): Remove the target op.
3530 (class process_target): Add the target op.
3531 (detach_inferior): Update the macro.
3533 Update the derived classes and callers below.
3535 * linux-low.cc (linux_target_ops): Update.
3536 (linux_detach): Turn into ...
3537 (linux_process_target::detach): ... this.
3538 * linux-low.h (class linux_process_target): Update.
3539 * lynx-low.cc (lynx_target_ops): Update.
3540 (lynx_detach): Turn into ...
3541 (lynx_process_target::detach): ... this.
3542 * lynx-low.h (class lynx_process_target): Update.
3543 * nto-low.cc (nto_target_ops): Update.
3544 (nto_detach): Turn into ...
3545 (nto_process_target::detach): ... this.
3546 * nto-low.h (class nto_process_target): Update.
3547 * win32-low.cc (win32_target_ops): Update.
3548 (win32_detach): Turn into ...
3549 (win32_process_target::detach): ... this.
3550 * win32-low.h (class win32_process_target): Update.
3552 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3554 Turn process_stratum_target's kill op into a method of
3557 * target.h (struct process_stratum_target): Remove the target op.
3558 (class process_target): Add the target op.
3560 Update the derived classes and callers below.
3562 * target.cc (kill_inferior): Update.
3563 * linux-low.cc (linux_target_ops): Update.
3564 (linux_kill): Turn into ...
3565 (linux_process_target::kill): ... this.
3566 * linux-low.h (class linux_process_target): Update.
3567 * lynx-low.cc (lynx_target_ops): Update.
3568 (lynx_kill): Turn into ...
3569 (lynx_process_target::kill): ... this.
3570 * lynx-low.h (class lynx_process_target): Update.
3571 * nto-low.cc (nto_target_ops): Update.
3572 (nto_kill): Turn into ...
3573 (nto_process_target::kill): ... this.
3574 * nto-low.h (class nto_process_target): Update.
3575 * win32-low.cc (win32_target_ops): Update.
3576 (win32_kill): Turn into ...
3577 (win32_process_target::kill): ... this.
3578 * win32-low.h (class win32_process_target): Update.
3580 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3582 Turn process_stratum_target's attach op into a method of
3585 * target.h (struct process_stratum_target): Remove the target op.
3586 (class process_target): Add the target op.
3587 (myattach): Update the macro.
3589 Update the derived classes and callers below.
3591 * linux-low.cc (linux_target_ops): Update.
3592 (linux_attach): Turn into ...
3593 (linux_process_target::attach): ... this.
3594 * linux-low.h (class linux_process_target): Update.
3595 * lynx-low.cc (lynx_target_ops): Update.
3596 (lynx_attach): Turn into ...
3597 (lynx_process_target::attach): ... this.
3598 * lynx-low.h (class lynx_process_target): Update.
3599 * nto-low.cc (nto_target_ops): Update.
3600 (nto_attach): Turn into ...
3601 (nto_process_target::attach): ... this.
3602 * nto-low.h (class nto_process_target): Update.
3603 * win32-low.cc (win32_target_ops): Update.
3604 (win32_attach): Turn into ...
3605 (win32_process_target::attach): ... this.
3606 * win32-low.h (class win32_process_target): Update.
3608 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3610 Turn process_stratum_target's post_create_inferior op into a method
3613 * target.h (struct process_stratum_target): Remove the target op.
3614 (class process_target): Add the target op.
3615 (target_post_create_inferior): Update the macro.
3616 * target.cc (process_target::post_create_inferior): Define.
3618 Update the derived classes and callers below.
3620 * linux-low.cc (linux_target_ops): Update.
3621 (linux_post_create_inferior): Turn into ...
3622 (linux_process_target::post_create_inferior): ... this.
3623 * linux-low.h (class linux_process_target): Update.
3624 * lynx-low.cc (lynx_target_ops): Update.
3625 * nto-low.cc (nto_target_ops): Update.
3626 * win32-low.cc (win32_target_ops): Update.
3628 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3630 Turn process_stratum_target's create_inferior op into a method of
3633 * target.h (struct process_stratum_target): Remove the target op.
3634 (class process_target): Add the target op.
3635 (create_inferior): Rename the macro to ...
3636 (target_create_inferior): ... this.
3638 Update the derived classes and callers below.
3640 * server.cc (handle_v_run): Update.
3641 (captured_main): Update.
3642 (process_serial_event): Update.
3643 * linux-low.cc (linux_target_ops): Update.
3644 (linux_create_inferior): Turn into ...
3645 (linux_process_target::create_inferior): ... this.
3646 * linux-low.h (class linux_process_target): Update.
3647 * lynx-low.cc (lynx_target_ops): Update.
3648 (lynx_create_inferior): Turn into ...
3649 (lynx_process_target::create_inferior): ... this.
3650 * lynx-low.h (class lynx_process_target): Update.
3651 * nto-low.cc (nto_target_ops): Update.
3652 (nto_create_inferior): Turn into ...
3653 (nto_process_target::create_inferior): ... this.
3654 * nto-low.h (class nto_process_target): Update.
3655 * win32-low.cc (win32_target_ops): Update.
3656 (win32_create_inferior): Turn into ...
3657 (win32_process_target::create_inferior): ... this.
3658 * win32-low.h (class win32_process_target): Update.
3660 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3662 * target.h (class process_target): New class definition.
3663 (struct process_stratum_target) <pt>: New field with type
3665 * linux-low.h (class linux_process_target): Define as a derived
3666 class of 'process_target'.
3667 * linux-low.cc (linux_target_ops): Add a linux_process_target*
3669 * lynx-low.h (class lynx_process_target): Define as a derived
3670 class of 'process_target'.
3671 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
3673 * nto-low.h (class nto_process_target): Define as a derived
3674 class of 'process_target'.
3675 * nto-low.cc (nto_target_ops): Add an nto_process_target*
3677 * win32-low.h (class win32_process_target): Define as a derived
3678 class of 'process_target'.
3679 * win32-low.cc (win32_target_ops): Add a win32_process_target*
3682 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
3684 * configure: Regenerate.
3686 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
3687 Andrew Burgess <andrew.burgess@embecosm.com>
3689 * linux-riscv-low.cc: New file.
3690 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
3691 and nat/riscv-linux-tdesc.c.
3692 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
3693 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
3696 2020-02-14 Tom Tromey <tom@tromey.com>
3698 * acinclude.m4: Don't include acx_configure_dir.m4.
3699 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
3700 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
3701 (all, install-only, uninstall, clean-info, clean)
3702 (maintainer-clean): Don't recurse.
3703 (subdir_do, all-lib): Remove.
3704 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
3706 (generated_files): Update.
3707 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
3708 * configure: Rebuild.
3709 * configure.ac: Don't configure gnulib or libiberty.
3712 2020-02-14 Eli Zaretskii <eliz@gnu.org>
3714 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
3715 preparing the command line for CreateProcess.
3716 (win32_create_inferior): Reflect the program name in debugging
3717 output that shows the process and its command line.
3719 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
3721 * Makefile.in: Rename source files from .c to .cc.
3722 * %.c: Rename to %.cc.
3723 * configure.ac: Rename server.c to server.cc.
3724 * configure: Re-generate.
3726 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
3728 * Makefile.in: Rename gdbsupport source files from .c to .cc.
3730 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
3732 * win32-low.c (win32_create_inferior): Set signal_pid.
3734 2020-02-12 Maciej W. Rozycki <macro@wdc.com>
3735 Pedro Alves <palves@redhat.com>
3737 Skip building gdbserver in a cross-configuration.
3738 * configure.srv: Set $gdbserver_host depending on whether $target
3739 is $host. Use $gdbserver_host instead of $host.
3741 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
3743 * configure: Re-generate.
3745 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
3747 * configure: Re-generate.
3749 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
3751 * acinclude.m4: Update warning.m4 path.
3753 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
3755 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
3756 (handle_exception): Set siginfo_er.
3757 (win32_xfer_siginfo): New function.
3759 2020-02-07 Tom Tromey <tom@tromey.com>
3760 Pedro Alves <palves@redhat.com>
3762 * README: Update build documentation.
3763 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
3765 * configure.ac: Update paths.
3766 * configure: Rebuild.
3767 * acinclude.m4: Update paths.
3768 * Makefile.in: Update include paths.
3769 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
3770 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
3771 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
3772 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
3773 (%-generated.c): Update paths.
3774 * Move entire directory from ../gdb/gdbserver.
3776 2020-01-29 Maciej W. Rozycki <macro@wdc.com>
3778 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
3780 2020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3782 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
3783 assignment instead of srv_linux_obj.
3785 2020-01-28 Hannes Domani <ssbssa@yahoo.de>
3787 * server.c (handle_qxfer_libraries): Write segment-address with
3790 2020-01-24 Hannes Domani <ssbssa@yahoo.de>
3792 * Makefile.in (install-strip): New target.
3793 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
3794 * aclocal.m4: Regenerate.
3795 * configure: Regenerate.
3796 * configure.ac: Add AM_PROG_INSTALL_STRIP.
3798 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
3800 * Makefile.in (SFILES): Adjust paths to point to real files.
3801 (OBS): Move waitstatus.o to target/waitstatus.o.
3802 (TAGS): Transform paths appropriately.
3804 (nat/%.o): ... this pattern rule.
3806 (target/%.o): ... this pattern rule.
3807 * configure.srv: Adjust paths throughout to include nat/ prefix
3808 with the revant files.
3809 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
3810 * configure: Regenerate.
3812 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
3814 * Makefile.in (TAGS): Remove config files from the recipe.
3816 2020-01-14 Tom Tromey <tom@tromey.com>
3818 * configure: Rebuild.
3819 * configure.ac: Remove any checks that were added to common.m4.
3820 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
3823 2020-01-14 Tom Tromey <tom@tromey.com>
3825 * server.h: Include config.h.
3826 * gdbreplay.c: Include config.h.
3827 * configure: Rebuild.
3828 * configure.ac: Don't source common.host.
3829 * acinclude.m4: Update path.
3830 * Makefile.in (INCSUPPORT): New variable.
3831 (INCLUDE_CFLAGS): Add INCSUPPORT.
3832 (SFILES): Update paths.
3833 (version-generated.c): Update path to create-version.sh.
3834 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
3836 2020-01-14 Tom Tromey <tom@tromey.com>
3838 * configure.ac (LIBS): Use WIN32APILIBS.
3839 (USE_WIN32API): Don't define.
3840 * configure: Rebuild.
3842 2020-01-14 Tom Tromey <tom@tromey.com>
3844 * configure: Rebuild.
3846 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
3848 * Makefile.in (%-generated.c): Remove rule for files from
3851 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
3853 * configure: Re-generate.
3855 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
3857 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
3859 * tracepoint.c (stop_tracing, flush_trace_buffer,
3860 about_to_request_buffer_space, get_trace_state_variable_value,
3861 set_trace_state_variable_value, gdb_collect): Add declaration.
3863 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
3865 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
3866 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
3867 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
3868 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
3869 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
3872 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
3874 * inferiors.c: Include gdbsupport/common-inferior.h.
3876 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
3878 * hostio-errno.c: Include hostio.h.
3880 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
3882 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
3885 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3887 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
3888 * linux-arm-tdesc.h: Include arch/arm.h.
3890 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3892 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
3894 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3896 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
3897 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
3899 2020-01-10 Pedro Alves <palves@redhat.com>
3901 * fork-child.c (post_fork_inferior): Pass target down to
3903 * inferiors.c (switch_to_thread): Add process_stratum_target
3905 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
3906 * nto-low.c (nto_target_ops): Now a process_stratum_target.
3907 * linux-low.c (linux_target_ops): Now a process_stratum_target.
3908 * remote-utils.c (prepare_resume_reply): Pass the target to
3910 * target.c (the_target): Now a process_stratum_target.
3911 (done_accessing_memory): Pass the target to switch_to_thread.
3912 (set_target_ops): Ajust to use process_stratum_target.
3913 * target.h (struct target_ops): Rename to ...
3914 (struct process_stratum_target): ... this.
3915 (the_target, set_target_ops): Adjust.
3916 (prepare_to_access_memory): Adjust comment.
3917 * win32-low.c (child_xfer_memory): Adjust to use
3918 process_stratum_target.
3919 (win32_target_ops): Now a process_stratum_target.
3921 2020-01-06 Eli Zaretskii <eliz@gnu.org>
3922 Pedro Alves <palves@redhat.com>
3924 * win32-low.c (get_child_debug_event): Extract the fatal exception
3925 from the exit status and convert to the equivalent Posix signal
3927 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
3928 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
3930 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
3932 * Makefile.in: Use INSTALL_PROGRAM_ENV.
3934 2020-01-01 Joel Brobecker <brobecker@adacore.com>
3936 * server.c (gdbserver_version): Change copyright year to 2020.
3937 * gdbreplay.c (gdbreplay_version): Likewise.
3939 2019-12-19 Christian Biesinger <cbiesinger@google.com>
3941 * configure: Regenerate.
3942 * configure.ac: Quote variable arguments of test.
3944 2019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
3946 * Makefile.in: Fix build with GNU Make 3.81
3948 2019-12-16 Tom Tromey <tromey@adacore.com>
3950 * server.c (get_exec_file): Constify result.
3952 2019-12-10 Christian Biesinger <cbiesinger@google.com>
3954 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
3955 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
3956 * config.in: Regenerate.
3957 * configure: Regenerate.
3958 * configure.ac: Don't check for strerror.
3959 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
3960 Call safe_strerror instead of strerror.
3961 * server.h (strerror): Remove this now-unnecessary declaration.
3962 * tracepoint.c (init_named_socket): Call safe_strerror instead of
3964 (gdb_agent_helper_thread): Likewise.
3965 * utils.c (perror_with_name): Likewise.
3967 2019-11-26 Tom Tromey <tom@tromey.com>
3969 * configure, config.in: Rebuild.
3971 2019-11-26 Tom Tromey <tom@tromey.com>
3973 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
3974 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
3976 * configure, config.in: Rebuild.
3978 2019-11-26 Tom Tromey <tom@tromey.com>
3980 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
3981 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
3982 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
3983 * acinclude.m4: Include ax_pthread.m4.
3984 * config.in, configure: Rebuild.
3986 2019-11-26 Christian Biesinger <cbiesinger@google.com>
3988 * debug.c (debug_set_output): Call safe_strerror instead of
3990 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
3991 (linux_kill_one_lwp): Likewise.
3992 (linux_detach_one_lwp): Likewise.
3993 (linux_wait_for_event_filtered): Likewise.
3994 (store_register): Likewise.
3995 * lynx-low.c (lynx_attach): Likewise.
3996 * mem-break.c (insert_memory_breakpoint): Likewise.
3997 (remove_memory_breakpoint): Likewise.
3998 (delete_fast_tracepoint_jump): Likewise.
3999 (set_fast_tracepoint_jump): Likewise.
4000 (uninsert_fast_tracepoint_jumps_at): Likewise.
4001 (reinsert_fast_tracepoint_jumps_at): Likewise.
4002 * nto-low.c (nto_xfer_memory): Likewise.
4003 (nto_resume): Likewise.
4005 2019-11-20 Luis Machado <luis.machado@linaro.org>
4007 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
4008 instead of register count.
4009 * tdesc.c (tdesc_contains_feature): New function.
4010 * tdesc.h (tdesc_contains_feature): New prototype.
4012 2019-11-15 Christian Biesinger <cbiesinger@google.com>
4014 * Makefile.in: Add safe-strerror.c.
4015 * configure: Regenerate.
4016 * configure.ac: Don't source common.host.
4018 2019-11-15 Christian Biesinger <cbiesinger@google.com>
4020 * config.in: Regenerate.
4021 * configure: Regenerate.
4023 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
4025 * ax.c (ax_printf): Handle size_t_arg.
4027 2019-11-06 Christian Biesinger <cbiesinger@google.com>
4029 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
4030 * mi/mi-main.c (output_cores): Likewise.
4031 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
4032 (linux_xfer_osdata_modules): Likewise.
4033 * remote.c (register_remote_support_xml): Likewise.
4034 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
4035 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
4037 2019-11-01 Christian Biesinger <cbiesinger@google.com>
4039 * configure: Regenerate.
4040 * configure.ac: Remove check for strerror_r.
4042 2019-10-31 Christian Biesinger <cbiesinger@google.com>
4044 * config.in: Regenerate.
4045 * configure: Regenerate.
4046 * configure.ac: Also check for strerror_r.
4048 2019-10-31 Christian Biesinger <cbiesinger@google.com>
4050 * ax.h (debug_agent): Remove duplicate declaration.
4052 2019-10-26 Tom de Vries <tdevries@suse.de>
4054 * linux-aarch64-low.c: Fix typos in comments.
4055 * linux-arm-low.c: Same.
4056 * linux-low.c: Same.
4057 * linux-ppc-low.c: Same.
4058 * proc-service.c: Same.
4061 * tracepoint.c: Same.
4062 * win32-low.c: Same.
4064 2019-10-25 Tom Tromey <tromey@adacore.com>
4066 * utils.c (xstrdup): Remove.
4068 2019-10-23 Tom Tromey <tom@tromey.com>
4070 * configure, config.in: Rebuild.
4072 2019-10-23 Tom Tromey <tom@tromey.com>
4074 * configure: Rebuild.
4075 * acinclude.m4: Use m4_include, not sinclude.
4077 2019-10-17 Tom Tromey <tromey@adacore.com>
4079 * configure: Rebuild.
4080 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
4081 in AC_CONFIG_FILES invocation.
4082 * Makefile.in (stamp-h, Makefile): Use new-style config.status
4085 2019-10-16 Christian Biesinger <cbiesinger@google.com>
4087 * server.c: Include xml-builtin.h.
4088 (get_xml_features): Don't declare xml_builtins here.
4090 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4092 * Makefile.in: Remove references to vec-ipa.o.
4094 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4096 * Makefile.in: Remove references to vec.c.
4098 2019-10-02 Christian Biesinger <cbiesinger@google.com>
4100 * server.c (server_waiting): Change to bool.
4101 (extended_protocol): Likewise.
4102 (response_needed): Likewise.
4103 (exit_requested): Likewise.
4104 (run_once): Likewise.
4105 (report_no_resumed): Likewise.
4106 (non_stop): Likewise.
4107 (disable_packet_vCont): Likewise.
4108 (disable_packet_Tthread): Likewise.
4109 (disable_packet_qC): Likewise.
4110 (disable_packet_qfThreadInfo): Likewise.
4111 (handle_general_set): Update.
4112 (handle_detach): Update.
4113 (handle_monitor_command): Update.
4114 (handle_query): Update.
4115 (captured_main): Update.
4116 (process_serial_event): Update.
4117 * server.h (server_waiting): Change to bool.
4118 (disable_packet_vCont): Likewise.
4119 (disable_packet_Tthread): Likewise.
4120 (disable_packet_qC): Likewise.
4121 (disable_packet_qfThreadInfo): Likewise.
4122 (run_once): Likewise.
4123 (non_stop): Likewise.
4124 * target.c (target_stop_and_wait): Update.
4126 2019-10-02 Tom Tromey <tromey@adacore.com>
4128 * Makefile.in (SFILES): Add common-inferior.c.
4129 (OBS): Add common-inferior.o.
4130 * server.c (startup_with_shell): Don't define.
4132 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
4134 * linux-low.c (linux_low_read_btrace): Update for change to
4137 2019-09-20 Christian Biesinger <cbiesinger@google.com>
4139 * debug.c (debug_threads): Remove comment in favor of the header.
4140 * debug.h (using_threads): Add declaration.
4141 (debug_threads): Add comment.
4142 * linux-aarch64-low.c: Include debug.h and remove declaration of
4144 * nto-low.c: Likewise.
4145 * remote-utils.c: Likewise.
4146 * thread-db.c: Likewise.
4148 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
4150 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
4151 and powerpc-cell64l-ipa.o.
4152 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
4153 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
4154 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
4157 * spu-low.c: Remove file.
4159 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
4160 (parse_spufs_run): Remove.
4161 (ppc_get_pc): Remove Cell/B.E. support.
4162 (ppc_set_pc): Likewise.
4163 (ppc_breakpoint_at): Likewise.
4164 (ppc_arch_setup): Likewise.
4165 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
4166 tdesc_powerpc_cell32l.
4167 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
4168 or init_registers_powerpc_cell32l.
4169 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
4170 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
4171 or init_registers_powerpc_cell32l.
4172 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
4173 (init_registers_powerpc_cell32l): Remove prototype.
4174 (init_registers_powerpc_cell64l): Likewise.
4176 * target.h (struct target_ops): Remove qxfer_spu member.
4177 * server.c (handle_qxfer_spu): Remove.
4178 (qxfer_packets): Remove entry for "spu".
4179 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
4180 * linux-low.c (SPUFS_MAGIC): Remove.
4181 (spu_enumerate_spu_ids): Remove.
4182 (linux_qxfer_spu): Remove.
4183 (linux_target_ops): Remove qxfer_spu member.
4184 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
4185 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
4186 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
4188 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4190 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
4191 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
4192 * config.in: Regenerate.
4193 * configure: Regenerate.
4195 2019-08-15 Tom Tromey <tromey@adacore.com>
4197 * target.c (target_write_memory): Use gdb::byte_vector.
4199 2019-08-15 Tom Tromey <tromey@adacore.com>
4201 * tracepoint.c (write_inferior_data_pointer)
4202 (write_inferior_integer, write_inferior_int8)
4203 (write_inferior_uinteger, m_tracepoint_action_download)
4204 (r_tracepoint_action_download, x_tracepoint_action_download)
4205 (l_tracepoint_action_download, clear_inferior_trace_buffer)
4206 (download_agent_expr, download_tracepoint_1)
4207 (download_trace_state_variables, upload_fast_traceframes): Update.
4208 * server.c (gdb_write_memory): Update.
4209 * remote-utils.c (relocate_instruction): Update.
4210 * proc-service.c (ps_pdwrite): Update.
4211 * mem-break.c (remove_memory_breakpoint)
4212 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
4213 (uninsert_fast_tracepoint_jumps_at)
4214 (reinsert_fast_tracepoint_jumps_at): Update.
4215 * linux-x86-low.c (append_insns)
4216 (i386_install_fast_tracepoint_jump_pad)
4217 (amd64_write_goto_address, i386_write_goto_address): Update.
4218 * linux-s390-low.c (append_insns, s390_write_goto_address):
4220 * linux-ppc-low.c (ppc_relocate_instruction)
4221 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
4222 (ppc_write_goto_address): Update.
4223 * linux-aarch64-low.c (append_insns): Update.
4224 * target.h (struct target_ops): Update.
4225 (write_inferior_memory): Don't declare.
4226 * target.c (target_write_memory): Rename from
4227 write_inferior_memory. Remove old target_write_memory.
4229 2019-08-15 Tom Tromey <tromey@adacore.com>
4231 * target.c (write_inferior_memory): Use std::vector.
4233 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
4236 * configure.ac: Drop enable-libmcheck support.
4237 * configure, config.in: Rebuild.
4238 * acinclude.m4: Don't include it.
4240 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4242 * configure.srv: Remove Arm xml files.
4244 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4246 * configure.srv: Add new files. Remove xml generated files.
4247 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
4249 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
4250 * linux-aarch32-tdesc.c: New file.
4251 * linux-aarch32-tdesc.h: New file.
4252 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
4253 * linux-arm-low.c (init_registers_arm, tdesc_arm)
4254 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
4255 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
4256 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
4257 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
4258 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
4259 (arm_read_description): Call arm_linux_read_description.
4260 (initialize_low_arch): Don't init registers.
4261 * linux-arm-tdesc.c: New file.
4262 * linux-arm-tdesc.h: New file.
4264 2019-07-10 Alan Hayward <alan.hayward@arm.com>
4266 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
4267 Move counter inside for.
4268 (arm_read_description): Check ptrace earlier.
4269 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
4271 2019-07-09 Tom Tromey <tom@tromey.com>
4273 * configure: Rebuild.
4274 * configure.ac: Change common to gdbsupport.
4275 * acinclude.m4: Change common to gdbsupport.
4276 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
4277 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
4278 common to gdbsupport.
4279 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
4280 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
4281 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
4282 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
4283 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
4284 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
4285 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
4286 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
4287 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
4288 common to gdbsupport.
4290 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4292 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
4294 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
4296 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4298 * configure.srv: Remove legacy xml.
4299 * linux-aarch64-low.c (initialize_low_arch): Remove
4300 initialize_low_tdesc call.
4301 * linux-aarch64-tdesc-selftest.c: Remove file.
4302 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
4303 * linux-x86-low.c (initialize_low_arch): Remove
4304 initialize_low_tdesc call.
4305 * linux-x86-tdesc-selftest.c: Remove file.
4306 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
4308 2019-06-20 Tom de Vries <tdevries@suse.de>
4310 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
4311 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
4313 2019-06-19 Tom de Vries <tdevries@suse.de>
4315 * debug.h (debug_write): Change return type to ssize_t.
4316 * debug.c (debug_write): Same.
4318 2019-06-14 Tom Tromey <tom@tromey.com>
4320 * configure.ac: Use new path to gnulib.
4321 * configure: Rebuild.
4322 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
4325 2019-06-11 Tom Tromey <tom@tromey.com>
4327 * Makefile.in (SFILES): Add alloc.c.
4329 (IPA_OBJS): Add alloc-ipa.o.
4330 (alloc-ipa.o): New target.
4331 (%.o: ../%.c): New pattern rule.
4333 2019-06-10 Tom Tromey <tromey@adacore.com>
4335 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
4336 end warning with a newline.
4337 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
4339 * thread-db.c (attach_thread): Don't end warning with a newline.
4340 (thread_db_notice_clone): Likewise.
4341 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
4343 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
4344 end warning with a newline.
4346 2019-06-04 Pedro Alves <palves@redhat.com>
4348 * server.c (captured_main): Use make_unique_xstrdup.
4350 2019-06-02 Tom Tromey <tom@tromey.com>
4352 * gdbreplay.c (fromhex): Remove.
4353 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
4355 2019-05-29 Tom Tromey <tromey@adacore.com>
4357 * configure: Rebuild.
4359 2019-05-06 Kevin Buettner <kevinb@redhat.com>
4361 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
4362 sign extension code on 32-bit builds.
4364 2019-05-03 Eli Zaretskii <eliz@gnu.org>
4367 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
4369 2019-04-19 Tom Tromey <tom@tromey.com>
4371 * server.c (struct vstop_notif): Derive from notif_event.
4373 (queue_stop_reply): Update.
4374 (remove_all_on_match_ptid): Change type. Rewrite.
4375 (discard_queued_stop_replies): Rewrite.
4376 (in_queued_stop_replies_ptid): Change type.
4377 (in_queued_stop_replies): Rewrite.
4378 (notif_stop): Update.
4379 (queue_stop_reply_callback): Update.
4380 (captured_main): Don't call initialize_notif.
4381 (push_stop_notification): Update.
4382 * notif.c (notif_write_event, handle_notif_ack)
4383 (notif_event_enque, notif_push): Update.
4384 (notif_event_xfree, initialize_notif): Remove.
4385 * notif.h (struct notif_event): Include <list>, not
4387 (struct notif_server) <queue>: Now a std::list.
4388 (notif_event_p): Remove typedef.
4389 (initialize_notif): Don't declare.
4390 (struct notif_event): Add virtual destructor.
4392 2019-04-17 Alan Hayward <alan.hayward@arm.com>
4394 * ax.c (ax_vdebug): Call debug_printf.
4395 * debug.c (debug_write): New function.
4396 * debug.h (debug_write): New declaration.
4397 * linux-low.c (sigchld_handler): Call debug_write.
4399 2019-04-17 Alan Hayward <alan.hayward@arm.com>
4401 * debug.c (debug_set_output): New function.
4402 (debug_vprintf): Send output to debug_file.
4403 (debug_flush): Likewise.
4404 * debug.h (debug_set_output): New declaration.
4405 * server.c (handle_monitor_command): Add debug-file option.
4406 (captured_main): Likewise.
4408 2019-04-17 Alan Hayward <alan.hayward@arm.com>
4410 * debug.c (remote_debug): Add definition.
4411 * debug.h (remote_debug): Add declaration.
4412 * hostio.c (remote_debug): Remove declaration.
4413 * remote-utils.c (struct ui_file): Likewise.
4414 (remote_debug): Likewise.
4415 * remote-utils.h (remote_debug): Likewise,
4416 * server.c (remote_debug): Remove definition.
4418 2019-04-10 Kevin Buettner <kevinb@redhat.com>
4420 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
4421 when using a 64-bit gdbserver.
4423 2019-04-09 Tom Tromey <tromey@adacore.com>
4425 * linux-low.c (select_event_lwp): Use find_thread_in_random.
4427 2019-04-08 Tom Tromey <tom@tromey.com>
4429 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
4431 (linux_resume_one_lwp): Likewise.
4433 2019-04-08 Tom Tromey <tom@tromey.com>
4435 * gdbreplay.c: Update.
4436 * linux-low.c: Update.
4439 2019-04-08 Tom Tromey <tom@tromey.com>
4441 * server.c: Use C++ exception handling.
4442 * linux-low.c: Use C++ exception handling.
4443 * gdbreplay.c: Use C++ exception handling.
4445 2019-04-08 Tom Tromey <tom@tromey.com>
4447 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
4448 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
4449 (captured_main, main): Update.
4450 * gdbreplay.c (main): Update.
4452 2019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4454 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
4455 value in argument pointer, return 1 if the entry is found and 0
4456 otherwise. Move comment.
4457 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
4458 * linux-low.h (linux_get_auxv): Declare.
4459 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
4461 2019-04-05 Tom Tromey <tromey@adacore.com>
4463 * server.c (gdbserver_usage): Use upper-case for metasyntactic
4466 2019-03-28 Alan Hayward <alan.hayward@arm.com>
4468 * linux-low.c (AT_HWCAP2): Add define if not already included.
4470 2019-03-26 Alan Hayward <alan.hayward@arm.com>
4472 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
4473 (aarch64_arch_setup): Call linux_get_hwcap.
4474 * linux-arm-low.c (arm_get_hwcap): Remove function.
4475 (arm_read_description): Call linux_get_hwcap.
4476 * linux-low.c (linux_get_auxv): New function.
4477 (linux_get_hwcap): Likewise.
4478 (linux_get_hwcap2): Likewise.
4479 * linux-low.h (linux_get_hwcap): New declaration.
4480 (linux_get_hwcap2): Likewise.
4481 * linux-ppc-low.c (ppc_get_auxv): Remove function.
4482 (ppc_arch_setup): Call linux_get_hwcap.
4483 * linux-s390-low.c (s390_get_hwcap): Remove function.
4484 (s390_arch_setup): Call linux_get_hwcap.
4486 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4487 Jiong Wang <jiong.wang@arm.com>
4489 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
4490 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
4492 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
4494 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4495 Jiong Wang <jiong.wang@arm.com>
4497 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
4498 (aarch64_get_hwcap): New function.
4499 (aarch64_arch_setup): Read APIA hwcap.
4501 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4502 Jiong Wang <jiong.wang@arm.com>
4504 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
4505 (initialize_low_tracepoint): Likewise.
4506 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
4507 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
4508 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
4509 (aarch64_linux_read_description): Likewise.
4510 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
4512 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4514 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
4515 i386_create_target_description for 'segments' parameter.
4516 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
4517 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
4518 * win32-i386-low.c (i386_arch_setup): Likewise.
4520 2019-03-12 Tom Tromey <tromey@adacore.com>
4522 * linux-low.c (iterate_over_lwps): Update.
4524 2019-03-06 Tom Tromey <tom@tromey.com>
4526 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
4527 (captured_main): Use SCOPE_EXIT.
4529 2019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
4531 * configure.srv: Use '$enable_unittest' instead of '$development'
4532 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
4535 2019-02-27 Tom Tromey <tromey@adacore.com>
4537 * gdbreplay.c (logchar): Handle \r\n.
4539 2019-02-07 Alan Hayward <alan.hayward@arm.com>
4541 * linux-low.c (linux_attach): Add process before lwp.
4542 * server.c (attach_inferior): Check if already attached.
4544 2019-02-07 Tom Tromey <tom@tromey.com>
4546 * x86-tdesc.h: Rename include guard.
4547 * x86-low.h: Add include guard.
4548 * wincecompat.h: Rename include guard.
4549 * win32-low.h: Add include guard.
4550 * utils.h: Rename include guard.
4551 * tracepoint.h: Rename include guard.
4552 * tdesc.h: Rename include guard.
4553 * target.h: Rename include guard.
4554 * server.h: Rename include guard.
4555 * remote-utils.h: Rename include guard.
4556 * regcache.h: Rename include guard.
4557 * nto-low.h: Rename include guard.
4558 * notif.h: Add include guard.
4559 * mem-break.h: Rename include guard.
4560 * lynx-low.h: Add include guard.
4561 * linux-x86-tdesc.h: Add include guard.
4562 * linux-s390-tdesc.h: Add include guard.
4563 * linux-ppc-tdesc-init.h: Add include guard.
4564 * linux-low.h: Add include guard.
4565 * linux-aarch64-tdesc.h: Add include guard.
4566 * linux-aarch32-low.h: Add include guard.
4567 * inferiors.h: Rename include guard.
4568 * i387-fp.h: Rename include guard.
4569 * hostio.h: Rename include guard.
4570 * gdbthread.h: Rename include guard.
4571 * gdb_proc_service.h: Rename include guard.
4572 * event-loop.h: Rename include guard.
4573 * dll.h: Rename include guard.
4574 * debug.h: Rename include guard.
4575 * ax.h: Rename include guard.
4577 2018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
4580 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
4581 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
4583 2019-01-25 Tom Tromey <tom@tromey.com>
4585 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
4587 2019-01-25 Tom Tromey <tom@tromey.com>
4589 * win32-low.c: Fix common/ includes.
4590 * win32-i386-low.c: Fix common/ includes.
4591 * tracepoint.c: Fix common/ includes.
4592 * thread-db.c: Fix common/ includes.
4593 * target.h: Fix common/ includes.
4594 * symbol.c: Fix common/ includes.
4595 * spu-low.c: Fix common/ includes.
4596 * server.h: Fix common/ includes.
4597 * server.c: Fix common/ includes.
4598 * remote-utils.c: Fix common/ includes.
4599 * regcache.h: Fix common/ includes.
4600 * regcache.c: Fix common/ includes.
4601 * nto-x86-low.c: Fix common/ includes.
4602 * notif.h: Fix common/ includes.
4603 * mem-break.h: Fix common/ includes.
4604 * lynx-low.c: Fix common/ includes.
4605 * lynx-i386-low.c: Fix common/ includes.
4606 * linux-x86-tdesc-selftest.c: Fix common/ includes.
4607 * linux-x86-low.c: Fix common/ includes.
4608 * linux-low.c: Fix common/ includes.
4609 * inferiors.h: Fix common/ includes.
4610 * i387-fp.c: Fix common/ includes.
4611 * hostio.c: Fix common/ includes.
4612 * hostio-errno.c: Fix common/ includes.
4613 * gdbthread.h: Fix common/ includes.
4614 * gdbreplay.c: Fix common/ includes.
4615 * fork-child.c: Fix common/ includes.
4616 * event-loop.c: Fix common/ includes.
4618 (enum gdb_agent_op): Fix common/ includes.
4620 2019-01-21 Tom Tromey <tom@tromey.com>
4622 * tracepoint.c: Fix includes.
4623 * remote-utils.c: Fix includes.
4624 * linux-x86-low.c: Fix includes.
4626 2019-01-01 Joel Brobecker <brobecker@adacore.com>
4628 * gdbreplay.c (gdbreplay_version): Update copyright year in
4630 * server.c (gdbserver_version): Likewise.
4632 2018-12-05 Alan Hayward <alan.hayward@arm.com>
4634 * linux-low.c (add_lwp): Switch ordering.
4636 2018-11-29 Tom Tromey <tom@tromey.com>
4638 * win32-low.c (win32_join): Take pid, not process.
4639 * target.h (struct target_ops) <join>: Change argument type.
4640 (join_inferior): Change argument name.
4641 * spu-low.c (spu_join): Take pid, not process.
4642 * server.c (handle_detach): Preserve pid before destroying
4644 * lynx-low.c (lynx_join): Take pid, not process.
4645 * linux-low.c (linux_join): Take pid, not process.
4647 2018-11-23 Alan Hayward <alan.hayward@arm.com>
4649 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
4650 (aarch64_cannot_fetch_register): Likewise.
4651 (struct linux_target_ops): Update references.
4653 2018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4655 * linux-ppc-low.c: Include nat/linux-ptrace.h.
4657 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4659 * configure.srv (ipa_ppc_linux_regobj): Add
4660 powerpc-isa207-htm-vsx32l-ipa.o and
4661 powerpc-isa207-htm-vsx64l-ipa.o.
4662 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
4663 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
4664 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
4665 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
4666 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
4667 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
4668 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
4669 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
4670 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
4671 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
4672 (init_registers_powerpc_isa207_htm_vsx32l)
4673 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
4674 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
4675 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
4676 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
4677 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
4678 (ppc_store_tm_ctarregset): New functions.
4679 (ppc_regsets): Add entries for HTM regsets.
4680 (ppc_arch_setup): Set htm in features struct when needed. Set
4681 sizes for the HTM regsets.
4682 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
4683 (initialize_low_arch): Call
4684 init_registers_powerpc_isa207_htm_vsx32l and
4685 init_registers_powerpc_isa207_htm_vsx64l.
4686 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
4687 PPC_TDESC_ISA207_HTM_VSX.
4688 (initialize_low_tracepoint): Call
4689 init_registers_powerpc_isa207_htm_vsx32l and
4690 init_registers_powerpc_isa207_htm_vsx64l.
4692 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4694 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
4695 rs6000/power-linux-pmu.xml to srv_xmlfiles.
4696 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
4697 (ppc_store_pmuregset): New functions.
4698 (ppc_regsets): Add entries for ebb and pmu regsets.
4699 (ppc_arch_setup): Set isa207 in features struct if the ebb and
4700 pmu regsets are available. Set sizes for these regsets.
4702 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4704 * configure.srv (ipa_ppc_linux_regobj): Add
4705 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
4706 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
4707 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
4708 rs6000/powerpc-isa207-vsx32l.xml, and
4709 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
4710 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
4711 <PPC_TDESC_ISA207_VSX>: New enum value.
4712 (init_registers_powerpc_isa207_vsx32l): Declare.
4713 (init_registers_powerpc_isa207_vsx64l): Declare.
4714 * linux-ppc-low.c (ppc_fill_tarregset): New function.
4715 (ppc_store_tarregset): New function.
4716 (ppc_regsets): Add entry for the TAR regset.
4717 (ppc_arch_setup): Set isa207 in features struct when needed. Set
4718 size for the TAR regsets.
4719 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
4720 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
4721 and init_registers_powerpc_isa207_vsx64l.
4722 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
4723 (initialize_low_tracepoint): Call
4724 init_registers_powerpc_isa207_vsx32l and
4725 init_registers_powerpc_isa207_vsx64l.
4727 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4728 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4730 * configure.srv (ipa_ppc_linux_regobj): Add
4731 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
4732 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
4733 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
4734 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
4735 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
4736 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
4737 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
4738 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
4739 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
4740 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
4741 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
4742 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
4743 (ppc_hwcap): Add comment.
4744 (ppc_hwcap2): New global.
4745 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
4746 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
4747 (ppc_regsets): Add entries for the DSCR and PPR regsets.
4748 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
4749 when needed. Set sizes for the the DSCR and PPR regsets.
4750 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
4751 (initialize_low_arch): Call
4752 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
4753 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
4754 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
4755 PPC_TDESC_ISA205_PPR_DSCR_VSX.
4756 (initialize_low_tracepoint): Call
4757 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
4758 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
4760 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4762 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
4764 2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
4765 Simon Marchi <simark@simark.ca>
4767 * acinclude.m4: Include "../selftest.m4".
4768 * configure: Regenerate.
4769 * configure.ac: Use "GDB_AC_SELFTEST".
4770 * configure.srv: Use "$enable_unittests" instead of
4771 "$development" when checking whether unit tests have been
4773 * server.c (captured_main): Update message informing that
4774 selftests have been disabled.
4776 2018-10-04 Tom Tromey <tom@tromey.com>
4778 * configure: Rebuild.
4780 2018-10-04 Tom Tromey <tom@tromey.com>
4782 * server.c (handle_status): Rename inner "thread".
4783 (process_serial_event): Declare "res" in 'm' case.
4784 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
4785 (iterate_over_lwps): Rename inner "thread".
4786 (linux_qxfer_libraries_svr4): Rename inner "len".
4787 * gdbthread.h (find_thread_in_random): Rename inner "thread".
4789 2018-10-01 Gary Benson <gbenson@redhat.com>
4791 * gdb_proc_service.h: Moved common code to
4792 common/gdb_proc_service.h.
4794 2018-10-01 Gary Benson <gbenson@redhat.com>
4796 * gdb_proc_service.h: Synchronize comments and whitespace with
4797 GDB's version of this file.
4799 2018-09-25 Tom Tromey <tom@tromey.com>
4801 * configure: Rebuild.
4802 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
4804 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
4806 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
4807 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
4808 ($(IPA_LIB)): Sort IPA_OBJS.
4810 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
4812 * Makefile.in: Remove references to $(ADD_DEPS).
4814 2018-09-16 Tom Tromey <tom@tromey.com>
4816 * remote-utils.c (remote_open): Use GNU style for metasyntactic
4818 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
4821 2018-09-05 Tom Tromey <tom@tromey.com>
4823 * configure: Rebuild.
4825 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
4828 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
4830 2018-08-27 Tom Tromey <tom@tromey.com>
4833 * configure: Rebuild.
4835 2018-08-27 Tom Tromey <tom@tromey.com>
4837 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
4838 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
4839 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
4840 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
4841 (s390x_emit_stack_adjust): Add casts to unsigned char.
4843 2018-08-22 Simon Marchi <simon.marchi@ericsson.com>
4847 * server.h (struct client_state) <disable_randomization>:
4850 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4852 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
4854 (mips_supply_ptrace_register): Likewise.
4856 2018-07-22 Tom Tromey <tom@tromey.com>
4858 * configure: Rebuild.
4860 2018-07-22 Tom Tromey <tom@tromey.com>
4862 * win32-low.c (win32_create_inferior): Remove unused variables.
4863 * gdbreplay.c (remote_open): Remove unused variable.
4864 * remote-utils.c (remote_prepare): Remove unused variable.
4865 * x86-tdesc.h (X86_TDESC_H): Define.
4866 (amd64_expedite_regs): Define conditionally.
4867 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
4868 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
4869 * remote-utils.c (readchar): Remove unused variable.
4871 2018-07-13 Pedro Alves <palves@redhat.com>
4873 * linux-low.c (linux_kill): Change parameter to process_info
4874 pointer instead of pid. Adjust.
4875 * lynx-low.c (lynx_kill): Likewise.
4876 * nto-low.c (nto_kill): Likewise.
4877 * spu-low.c (spu_kill): Likewise.
4878 * win32-low.c (win32_kill): Likewise.
4879 * server.c (handle_v_kill, kill_inferior_callback)
4880 (detach_or_kill_for_exit): Adjust.
4881 * target.c (kill_inferior): Change parameter to process_info
4882 pointer instead of pid. Adjust.
4883 * target.h (struct target_ops) <kill>: Change parameter to
4884 process_info pointer instead of pid. Adjust all implementations
4886 (kill_inferior): Likewise.
4888 2018-07-13 Pedro Alves <palves@redhat.com>
4890 * linux-low.c (linux_detach, linux_join): Change parameter to
4891 process_info pointer instead of pid. Adjust.
4892 * lynx-low.c (lynx_detach, lynx_join): Likewise.
4893 * nto-low.c (nto_detach): Likewise.
4894 * spu-low.c (spu_detach, spu_join): Likewise.
4895 * win32-low.c (win32_detach, win32_join): Likewise.
4896 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
4897 * target.h (struct target_ops) <detach, join>: Change parameter to
4898 process_info pointer instead of pid. Adjust all implementations
4900 (detach_inferior, join_inferior): Rename 'pid' parameter to
4903 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
4904 Jan Kratochvil <jan.kratochvil@redhat.com>
4905 Paul Fertser <fercerpav@gmail.com>
4906 Tsutomu Seki <sekiriki@gmail.com>
4908 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
4909 (OBS): Add 'common/netstuff.o'.
4910 (GDBREPLAY_OBS): Likewise.
4911 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
4912 (remote_open): Implement support for IPv6
4914 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
4916 (handle_accept_event): Accept connections from IPv6 sources.
4917 (remote_prepare): Handle IPv6-style hostnames; implement
4918 support for IPv6 connections.
4919 (remote_open): Implement support for printing connections from
4922 2018-07-11 Pedro Alves <palves@redhat.com>
4925 * mem-break.c (any_persistent_commands): Add process_info
4926 parameter and use it instead of relying on the current process.
4927 Change return type to bool.
4928 * mem-break.h (any_persistent_commands): Add process_info
4929 parameter and change return type to bool.
4930 * server.c (handle_detach): Remove require_running_or_return call.
4931 Look up the process_info for the process we're about to detach.
4932 If not found, return back error to GDB. Adjust
4933 any_persistent_commands call to pass down a process pointer.
4935 2018-07-11 Pedro Alves <palves@redhat.com>
4937 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
4938 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
4939 instead of collect_register_by_name.
4940 * regcache.c (regcache_raw_get_unsigned_by_name): New.
4941 * regcache.h (regcache_raw_get_unsigned_by_name): New.
4943 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
4944 Pedro Alves <palves@redhat.com>
4946 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
4948 2018-07-03 Tom Tromey <tom@tromey.com>
4950 * linux-low.c: Update.
4951 * lynx-low.c: Update.
4952 * mem-break.c: Update.
4953 * nto-low.c: Update.
4954 * remote-utils.c: Update.
4956 * spu-low.c: Update.
4958 * win32-low.c: Update.
4960 2018-07-03 Tom Tromey <tom@tromey.com>
4964 2018-07-03 Tom Tromey <tom@tromey.com>
4966 * linux-low.c: Update.
4968 2018-07-03 Tom Tromey <tom@tromey.com>
4972 2018-07-03 Tom Tromey <tom@tromey.com>
4974 * linux-low.c: Update.
4975 * linux-mips-low.c: Update.
4976 * lynx-low.c: Update.
4977 * nto-low.c: Update.
4978 * remote-utils.c: Update.
4980 * spu-low.c: Update.
4982 * thread-db.c: Update.
4984 2018-07-03 Tom Tromey <tom@tromey.com>
4986 * linux-low.c: Update.
4987 * linux-mips-low.c: Update.
4988 * lynx-low.c: Update.
4989 * mem-break.c: Update.
4990 * nto-low.c: Update.
4991 * remote-utils.c: Update.
4993 * spu-low.c: Update.
4995 * tracepoint.c: Update.
4997 2018-07-03 Tom Tromey <tom@tromey.com>
4999 * linux-low.c: Update.
5000 * linux-ppc-low.c: Update.
5001 * linux-x86-low.c: Update.
5002 * proc-service.c: Update.
5004 * spu-low.c: Update.
5005 * thread-db.c: Update.
5006 * win32-low.c: Update.
5008 2018-07-03 Tom Tromey <tom@tromey.com>
5010 * linux-low.c: Update.
5011 * lynx-low.c: Update.
5012 * nto-low.c: Update.
5013 * remote-utils.c: Update.
5014 * spu-low.c: Update.
5015 * thread-db.c: Update.
5016 * win32-low.c: Update.
5018 2018-06-29 Joel Brobecker <brobecker@adacore.com>
5020 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
5021 parameter in call to 'amd64_create_target_description'.
5023 2018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5025 * x86-tdesc.h: Remove executable permission flag.
5027 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5029 * configure.ac: Remove AC_PREREQ, add missing quoting.
5030 * configure: Re-generate.
5031 * config.in: Re-generate.
5032 * aclocal.m4: Re-generate.
5034 2018-06-18 Simon Marchi <simon.marchi@ericsson.com>
5036 * tracepoint.h (current_traceframe): Remove declaration.
5038 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5040 * linux-aarch64-low.c (is_sve_tdesc): New function.
5041 (aarch64_sve_regs_copy_to_regcache): Likewise.
5042 (aarch64_sve_regs_copy_from_regcache): Likewise.
5043 (aarch64_regs_info): Add SVE checks.
5044 (initialize_low_arch): Initialize SVE.
5046 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5048 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
5050 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5052 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
5053 (initialize_low_tracepoint): Likewise
5054 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
5055 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
5057 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
5059 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
5061 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5063 * server.h (PBUFSIZ): Increase size
5065 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5067 * regcache.c (regcache::raw_compare): New function.
5068 * regcache.h (regcache::raw_compare): New declaration.
5070 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5072 * regcache.c (new_register_cache): Use new.
5073 (free_register_cache): Use delete.
5074 (register_data): Use const.
5075 (supply_register): Move body inside regcache.
5076 (regcache::raw_supply): New override function.
5077 (collect_register): Move body inside regcache.
5078 (regcache::raw_collect): New override function.
5079 (regcache::get_register_status): New override function.
5080 * regcache.h (struct regcache): Inherit from reg_buffer_common.
5082 2018-06-09 Tom Tromey <tom@tromey.com>
5084 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
5086 (event_queue): Use std::queue.
5087 (gdb_event_xfree): Remove.
5088 (initialize_event_loop, process_event, wait_for_event): Update.
5090 2018-06-08 Stan Cox <scox@redhat.com>
5092 * win32-low.c (win32_create_inferior): last_ptid and last_status
5093 moved to client_state.
5095 2018-06-08 Pedro Alves <palves@redhat.com>
5097 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
5098 common/common-exceptions.o, common/common-utils.o,
5099 common/errors.o, common/print-utils.o and utils.o.
5100 * gdbreplay.c: Include "common-defs.h" instead of the two
5101 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
5102 string.h or alloca.h.
5103 (perror_with_name): Delete.
5104 (remote_open): Use xstrdup instead of strdup.
5105 (main): Rename to ...
5106 (captured_main): ... this.
5109 2018-06-08 Tom Tromey <tom@tromey.com>
5111 * linux-low.c (linux_low_read_btrace): Update.
5113 2018-06-04 Stan Cox <scox@redhat.com>
5115 * server.h (struct client_state): New.
5116 * server.c (cont_thread, general_thread, multi_process)
5117 (report_fork_events, report_vfork_events, report_exec_events)
5118 (report_thread_events, swbreak_feature, hwbreak_feature)
5119 (vCont_supported, disable_randomization, pass_signals)
5120 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
5121 Moved to client_state.
5122 * remote-utils.c (remote_debug, noack_mode)
5123 (transport_is_reliable): Moved to client_state.
5124 * tracepoint.c (current_traceframe): Moved to client_state.
5127 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
5128 linux-low.c, remote-utils.h, target.c: Use client_state.
5130 2018-05-31 Alan Hayward <alan.hayward@arm.com>
5132 * configure.srv: Add new c/h file.
5134 2018-05-31 Alan Hayward <alan.hayward@arm.com>
5136 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
5139 2018-05-25 Maciej W. Rozycki <macro@mips.com>
5141 * gdb.arch/mips-fpregset-core.exp: New test.
5142 * gdb.arch/mips-fpregset-core.c: New test source.
5144 2018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
5147 * hostio.c (require_int): Do not report overflow for integers
5148 between 0xfffffff and 0x7fffffff.
5150 2018-05-22 Maciej W. Rozycki <macro@mips.com>
5152 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
5153 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
5154 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
5156 (the_low_target): Wire them.
5158 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5160 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
5161 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
5162 mode. Call collect_register_by_name with vscr using
5163 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
5164 (ppc_store_vrregset): Add and set vscr_offset variable as in
5165 ppc_fill_vrregset. Call supply_register_by_name with vscr using
5168 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5170 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
5171 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
5172 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
5174 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5176 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
5177 (ppc_store_vsxregset): Likewise.
5178 (ppc_fill_vrregset): Likewise.
5179 (ppc_store_vrregset): Likewise.
5180 (ppc_fill_evrregset): Likewise.
5181 (ppc_store_evrregset): Likewise.
5182 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
5183 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
5186 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5188 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
5189 wordsize of the inferior. Call ppc_linux_target_wordsize.
5191 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5193 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
5194 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
5195 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
5196 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
5197 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
5198 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
5199 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
5200 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
5201 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
5202 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
5203 (tdesc_powerpc_e500l): Remove.
5204 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
5205 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
5206 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
5207 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
5209 (ppc_arch_setup): Remove target description matching code. Fill a
5210 ppc_linux_features struct and call ppc_linux_match_description
5213 2018-05-22 Maciej W. Rozycki <macro@mips.com>
5215 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
5216 width of the requested register exceeds the width of the
5218 (mips_cannot_store_register): Likewise.
5220 2018-05-21 Maciej W. Rozycki <macro@mips.com>
5222 * linux-mips-low.c (mips_fetch_register): New function. Update
5224 (mips_store_gregset): Supply 0 rather than $restart for $zero.
5225 (the_low_target): Wire `mips_fetch_register'.
5227 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5229 * lynx-i386-low.c (LYNXOS_178): New macro.
5230 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
5231 the layout on LynxOS-178.
5232 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
5233 handle floating point registers that are not supported by
5236 2018-05-10 Tom Tromey <tom@tromey.com>
5238 * configure: Rebuild.
5240 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5243 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
5244 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
5245 Use it to set the expedite_regs field in the given tdesc.
5246 * x86-tdesc.h: New file.
5247 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
5248 Adjust following the addition of the new expedite_regs parameter
5249 to init_target_desc.
5250 * linux-tic6x-low.c (tic6x_read_description): Likewise.
5251 * linux-x86-tdesc.c: #include "x86-tdesc.h".
5252 (i386_linux_read_description, amd64_linux_read_description):
5253 Adjust following the addition of the new expedite_regs parameter
5254 to init_target_desc.
5255 * lynx-i386-low.c: #include "x86-tdesc.h".
5256 (lynx_i386_arch_setup): Adjust following the addition of the new
5257 expedite_regs parameter to init_target_desc.
5258 * nto-x86-low.c: #include "x86-tdesc.h".
5259 (nto_x86_arch_setup): Adjust following the addition of the new
5260 expedite_regs parameter to init_target_desc.
5261 * win32-i386-low.c: #include "x86-tdesc.h".
5262 (i386_arch_setup): Adjust following the addition of the new
5263 expedite_regs parameter to init_target_desc.
5265 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5268 * win32-low.c (win32_create_inferior): Add call to my_wait
5269 setting last_status global.
5271 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5274 * win32-low.c (create_process): Only call gdb_tilde_expand if
5275 inferior_cwd is not NULL.
5277 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
5279 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
5280 registers to the cache if their values have changed.
5281 (i387_xsave_to_cache): Provide default values for x87 control
5282 registers when these features are available, but disabled.
5283 * regcache.c (supply_register_by_name_zeroed): New function.
5284 * regcache.h (supply_register_by_name_zeroed): Declare new
5287 2018-05-07 Tom Tromey <tom@tromey.com>
5289 * configure: Rebuild.
5291 2018-05-04 Tom Tromey <tom@tromey.com>
5293 * configure: Rebuild.
5295 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5296 Pedro Alves <palves@redhat.com>
5298 * linux-aarch64-low.c (aarch64_stopped_data_address):
5301 2018-04-27 Tom Tromey <tom@tromey.com>
5303 * configure: Rebuild.
5305 2018-04-23 Tom Tromey <tom@tromey.com>
5307 * configure: Rebuild.
5309 2018-04-19 Simon Marchi <simon.marchi@ericsson.com>
5311 * Makefile.in (depcomp): Add "..".
5312 (all_deps_files): New and use it.
5314 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5316 * configure.srv (aarch64*-*-linux*): Don't include xml.
5317 (i[34567]86-*-cygwin*): Likewise.
5318 (i[34567]86-*-linux*): Likewise.
5319 (i[34567]86-*-lynxos*): Likewise.
5320 (i[34567]86-*-mingw32ce*): Likewise.
5321 (i[34567]86-*-mingw*): Likewise.
5322 (i[34567]86-*-nto*): Likewise.
5323 (tic6x-*-uclinux): Likewise.
5324 (x86_64-*-linux*): Likewise.
5325 (x86_64-*-mingw*): Likewise.
5326 (x86_64-*-cygwin*): Likewise.
5328 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5330 * tdesc.c: Remove xml parameter.
5332 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5334 * server.c (get_features_xml): Remove cast.
5335 * tdesc.c (void target_desc::accept): Fill in function.
5336 (tdesc_get_features_xml): Remove old xml creation.
5337 (print_xml_feature::visit_pre): Add xml vistor.
5338 * tdesc.h (struct target_desc): Make xmltarget mutable.
5339 (tdesc_get_features_xml): Remove declaration.
5341 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5343 * tdesc.c (tdesc_architecture_name): Add new function.
5344 (tdesc_osabi_name): Likewise.
5345 (tdesc_get_features_xml): Use new functions.
5347 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5349 * tdesc.c (tdesc_create_flags): Remove.
5350 (tdesc_add_flag): Likewise.
5351 (tdesc_named_type): Likewise.
5352 (tdesc_create_union): Likewise.
5353 (tdesc_create_struct): Likewise.
5354 (tdesc_create_vector): Likewise.
5355 (tdesc_add_bitfield): Likewise.
5356 (tdesc_add_field): Likewise.
5357 (tdesc_set_struct_size): Likewise.
5359 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5361 * tdesc.c (~target_desc): Remove implictly deleted items.
5362 (init_target_desc): Iterate all features.
5363 (tdesc_get_features_xml): Use vector.
5364 (tdesc_create_feature): Create feature.
5365 * tdesc.h (tdesc_feature) Remove
5366 (target_desc): Add features.
5368 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5370 * Makefile.in: Add common/tdesc.c
5371 * tdesc.c (init_target_desc): init all reg_defs from register
5373 (tdesc_create_reg): Create tdesc_reg.
5374 * tdesc.h (tdesc_feature): Add register vector.
5376 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
5378 * tdesc.h (struct target_desc) <features>: Change type to
5379 std::vector<std::string>.
5380 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
5382 (tdesc_get_features_xml): Likewise.
5383 (tdesc_create_feature): Likewise.
5385 2018-03-26 Alan Hayward <alan.hayward@arm.com>
5387 * regcache.c (find_register_by_number): Return a ref.
5388 (find_regno): Use references.
5389 (register_size): Likewise.
5390 (register_data): Likewise.
5391 * tdesc.c (target_desc::~target_desc): Remove free calls.
5392 (target_desc::operator==): Use std::vector compare.
5393 (init_target_desc): Use reference.
5394 (tdesc_create_reg): Use reg constructors.
5395 * tdesc.h (struct target_desc): Replace pointer with object.
5397 2018-03-23 Alan Hayward <alan.hayward@arm.com>
5399 * regcache.c (find_register_by_number): Make static.
5400 (find_regno): Use find_register_by_number
5401 * regcache.h (struct reg): Remove declaration.
5403 2018-03-23 Alan Hayward <alan.hayward@arm.com>
5405 * tdesc.c (target_desc::~target_desc): Move to here.
5406 (target_desc::operator==): Likewise.
5407 * tdesc.h (target_desc::~target_desc): Move from here.
5408 (target_desc::operator==): Likewise.
5410 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
5412 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
5414 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5416 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
5418 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
5419 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
5420 and init_registers_s390_gs_linux64.
5422 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5424 * linux-s390-low.c (s390_fill_gs): Remove function.
5425 (s390_fill_gsbc): Remove function.
5426 (s390_regsets): Set fill functions for the guarded storage regsets
5429 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5431 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
5432 the word size. Add comment.
5433 (s390_get_wordsize): New function.
5434 (s390_arch_setup): No longer select a temporary tdesc to fetch the
5435 pswm with it. Instead, use s390_get_wordsize to determine the
5436 word size first and derive the correct tdesc from that directly.
5438 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
5440 * Makefile.in: Include silent-rules.mk.
5441 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
5442 (COMPILE): Add ECHO_CXX.
5443 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5444 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5445 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
5446 (version-generated.c): Add ECHO_GEN.
5447 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
5448 (IPAGENT_COMPILE): Add ECHO_CXX.
5449 (%-generated.c): Add ECHO_REGDAT.
5451 2018-03-14 Tom Tromey <tom@tromey.com>
5454 * ax.c (ax_printf): Special case for NULL.
5456 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5458 * linux-low.c (linux_qxfer_libraries_svr4): Use
5459 xml_escape_text_append.
5461 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5463 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
5465 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5467 * server.c (handle_general_set): Remove unnecessary xstrdup.
5469 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5471 * server.c (parse_debug_format_options): Adjust to
5472 delim_string_to_char_ptr_vec changes.
5473 * thread-db.c (thread_db_load_search): Adjust to
5474 dirnames_to_char_ptr_vec changes.
5476 2018-03-01 Markus Metzger <markus.t.metzger@intel.com>
5478 * target.h (target_enable_btrace, target_disable_btrace)
5479 (target_read_btrace, target_read_btrace_conf): Turn macro into
5480 inline function. Throw error if target method is not defined.
5481 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
5482 check for btrace target method. Be prepared to handle exceptions
5483 from btrace target methods.
5485 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5487 * server.c (captured_main): Change order of error message printed
5488 when the current working directory cannot be found.
5490 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5492 * server.c: Include "filenames.h" and "pathstuff.h".
5493 (program_name): Delete variable.
5494 (program_path): New anonymous class.
5495 (get_exec_wrapper): Use "program_path" instead of
5497 (handle_v_run): Likewise.
5498 (captured_main): Likewise.
5499 (process_serial_event): Likewise.
5501 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5503 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
5504 (OBJS): Add "pathstuff.o".
5505 * server.c (current_directory): New global variable.
5506 (captured_main): Initialize "current_directory".
5508 2018-02-26 Alan Hayward <alan.hayward@arm.com>
5510 * tdesc.c: Use common/tdesc.h.
5511 * tdesc.h: Likewise.
5513 2018-02-20 Alan Hayward <alan.hayward@arm.com>
5514 Simon Marchi <simon.marchi@ericsson.com>
5516 * Makefile.in: Switch order of make rules.
5518 2018-02-19 Alan Hayward <alan.hayward@arm.com>
5520 * Makefile.in: Add common directory in build.
5521 * configure.ac: Add common reference.
5522 * configure: Regenerate.
5524 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
5526 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
5527 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
5528 * spu-low.c (spu_target_ops): Likewise.
5529 * win32-low.c (win32_target_ops): Likewise.
5530 * server.c (supported_btrace_packets): Report packets unconditionally.
5531 * target.h (target_ops) <supports_btrace>: Remove.
5532 (target_supports_btrace): Remove.
5534 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
5536 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
5537 (handle_btrace_disable): Change return type to void. Use exceptions
5539 (handle_btrace_general_set): Catch exception and copy message to
5542 2018-02-08 Tom Tromey <tom@tromey.com>
5544 * linux-low.c (install_software_single_step_breakpoints): Use
5545 make_scoped_restore.
5546 * inferiors.c (make_cleanup_restore_current_thread): Remove.
5547 (do_restore_current_thread_cleanup): Remove.
5548 * gdbthread.h (make_cleanup_restore_current_thread): Don't
5551 2018-02-08 Tom Tromey <tom@tromey.com>
5553 * mem-break.c (set_raw_breakpoint_at): Use
5554 gdb::unique_xmalloc_ptr.
5556 2018-01-30 Pedro Alves <palves@redhat.com>
5559 * target.c (target_terminal::terminal_state): Rename to ...
5560 (target_terminal::m_terminal_state): ... this.
5562 2018-01-19 James Clarke <jrtc27@jrtc27.com>
5564 * linux-low.c (handle_extended_wait): Surround call to
5565 thread_db_notice_clone with #ifdef USE_THREAD_DB.
5567 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
5569 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
5570 linux_ptrace_attach_fail_reason_string now returning an
5572 (linux_attach): Likewise.
5573 * thread-db.c (attach_thread): Likewise.
5575 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
5578 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
5579 checking for fs_base/gs_base fields in struct user_regs_struct.
5580 * configure: Regenerate.
5582 2018-01-16 Yao Qi <yao.qi@linaro.org>
5585 * linux-low.c (fetch_register): Call supply_register instead of
5588 2018-01-08 Yao Qi <yao.qi@linaro.org>
5589 Simon Marchi <simon.marchi@ericsson.com>
5591 * Makefile.in (OBS): Remove selftest.o.
5592 * configure.ac: Set srv_selftest_objs if $development is true.
5593 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
5594 * configure: Re-generated.
5595 * server.c (captured_main): Wrap variable selftest_filter with
5598 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
5600 * server.c (parse_debug_format_options): Return std::string.
5601 (handle_monitor_command, captured_main): Adjust.
5603 2018-01-05 Pedro Alves <palves@redhat.com>
5606 * server.c (captured_main): Pass quiet=false to
5607 save_original_signals_state.
5609 2018-01-01 Joel Brobecker <brobecker@adacore.com>
5611 * gdbreplay.c (gdbreplay_version): Update copyright year in
5613 * server.c (gdbserver_version): Likewise.
5615 2017-12-08 Tom Tromey <tom@tromey.com>
5617 * ax.c (ax_printf): Update.
5619 2017-12-07 Yao Qi <yao.qi@linaro.org>
5621 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
5622 aarch64_linux_read_description.
5623 * linux-amd64-ipa.c (idx2mask): New array.
5624 (get_ipa_tdesc): Move idx2mask out.
5625 (initialize_low_tracepoint): Initialize target descriptions.
5626 * linux-i386-ipa.c (idx2mask): New array.
5627 (get_ipa_tdesc): Move idx2mask out.
5628 (initialize_low_tracepoint): Initialize target descriptions.
5630 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
5632 * tdesc.c (struct tdesc_type): Change return type.
5633 (tdesc_add_flag): Change parameter type.
5634 (tdesc_add_bitfield): Likewise.
5635 (tdesc_add_field): Likewise.
5636 (tdesc_set_struct_size): Likewise.
5638 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
5640 * regcache.c (registers_to_string): Remove unused variable.
5642 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5644 * inferiors.c (for_each_inferior_with_data): Remove.
5645 * inferiors.h (for_each_inferior_with_data): Remove.
5646 * server.c (handle_qxfer_threads_worker): Change parameter type.
5647 (handle_qxfer_threads_proper): Use for_each_thread.
5649 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5651 * inferiors.c (for_each_inferior): Remove.
5652 (clear_inferiors): Use for_each_thread.
5653 * inferiors.h (for_each_inferior): Remove.
5654 * linux-low.c (linux_wait_for_event_filtered): Use
5656 (linux_stabilize_threads): Likewise.
5657 * regcache.c (regcache_release): Likewise.
5658 * server.c (gdb_wants_all_threads_stopped): Likewise.
5659 (clear_pending_status_callback): Remove.
5660 (handle_status): Use for_each_thread.
5661 (captured_main): Likewise.
5662 * win32-low.c (child_init_thread_list): Likewise.
5663 (win32_clear_inferiors): Likewise.
5664 (fake_breakpoint_event): Likewise.
5666 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5668 * inferiors.h (find_inferior): Remove.
5669 * inferiors.c (find_inferior): Remove.
5671 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5673 * linux-low.c (resume_status_pending_p): Update comment.
5674 (need_step_over_p): Update comment.
5676 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5678 * linux-low.c (proceed_one_lwp): Return void, change parameter
5680 (unsuspend_and_proceed_one_lwp): Likewise.
5681 (proceed_all_lwps): Use for_each_thread.
5682 (unstop_all_lwps): Likewise.
5684 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5686 * linux-low.c (linux_resume_one_thread): Return void, take
5688 (linux_resume): Use for_each_thread.
5690 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5692 * linux-low.c (send_sigstop_callback): Return void, change
5693 parameter type. Rename to...
5694 (send_sigstop): ... this.
5695 (suspend_and_send_sigstop_callback): Return void, change parameter
5697 (suspend_and_send_sigstop): ... this.
5698 (stop_all_lwps): Use for_each_thread.
5700 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5702 * linux-low.c (lwp_running): Return bool, remove unused
5704 (linux_stabilize_threads): Use find_thread.
5706 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5708 * linux-low.c (select_singlestep_lwp_callback): Remove.
5709 (count_events_callback): Remove.
5710 (select_event_lwp_callback): Remove.
5711 (select_event_lwp): Use find_thread/for_each_thread.
5713 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5715 * linux-low.c (not_stopped_callback): Return bool, take filter
5717 (linux_wait_for_event_filtered): Use find_thread.
5718 (linux_wait_1): Likewise.
5720 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5722 * linux-low.c (same_lwp): Remove.
5723 (find_lwp_pid): Use find_thread.
5725 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5727 * linux-low.c (delete_lwp_callback): Remove.
5728 (linux_mourn): Use for_each_thread.
5730 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5732 * linux-low.c (linux_detach_lwp_callback): Return void, remove
5733 args parameter, don't check for pid.
5734 (linux_detach): Use for_each_thread.
5736 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5738 * linux-low.c (struct counter): Remove.
5739 (second_thread_of_pid_p): Remove.
5740 (last_thread_of_process_p): Use find_thread.
5742 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5744 * inferiors.c (find_inferior_in_random): Remove.
5745 * inferiors.h (find_inferior_in_random): Remove.
5746 * linux-low.c (status_pending_p_callback): Return bool, accept
5747 parameter ptid directly.
5748 (linux_wait_for_event_filtered): Use find_thread_in_random.
5749 (linux_wait_1): Likewise.
5751 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5753 * inferiors.c (find_inferior_id): Remove.
5754 (find_thread_ptid): Move implemention from find_inferior_id to
5756 * inferiors.h (find_inferior_id): Remove.
5757 * server.c (handle_status): Use find_thread_ptid.
5758 (process_serial_event): Likewise.
5759 * thread-db.c (find_one_thread): Likewise.
5760 (thread_db_thread_handle): Likewise.
5761 * win32-low.c (thread_rec): Likewise.
5762 (child_delete_thread): Likewise.
5763 (win32_thread_alive): Likewise.
5764 (get_child_debug_event): Likewise.
5766 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5768 * linux-mips-low.c (update_watch_registers_callback): Return
5769 void, remove pid_p parameter, don't check for pid.
5770 (mips_insert_point, mips_remove_point): Use for_each_thread.
5772 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5774 * lynx.low (lynx_delete_thread_callback): Remove.
5775 (lynx_mourn): Use for_each_thread.
5777 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5779 * regcache.c (regcache_invalidate_one): Remove.
5780 (regcache_invalidate_pid): use for_each_thread.
5782 2017-11-26 Tom Tromey <tom@tromey.com>
5784 * linux-low.c (linux_create_inferior): Update.
5786 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
5788 * spu-low.c (spu_create_inferior): Fix typo in argument name.
5790 2017-11-24 Alan Hayward <alan.hayward@arm.com>
5792 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
5793 * linux-aarch64-low.c (initialize_low_arch): Call init func.
5794 * linux-aarch64-tdesc-selftest.c: New file.
5795 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
5797 2017-11-24 Alan Hayward <alan.hayward@arm.com>
5799 * configure.srv: Add new file.
5800 * linux-aarch64-low.c (initialize_low_arch): Call init func.
5801 * linux-aarch64-tdesc-selftest.c: New file.
5802 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
5804 2017-11-24 Alan Hayward <alan.hayward@arm.com>
5806 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
5807 * linux-aarch64-low.c (initialize_low_arch): Remove init.
5808 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
5810 2017-11-24 Alan Hayward <alan.hayward@arm.com>
5812 * configure.srv: Add new files.
5813 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
5814 aarch64_linux_read_description.
5815 * linux-aarch64-low.c (aarch64_linux_read_description):
5816 Merge with aarch64_arch_setup.
5817 (aarch64_arch_setup): Call aarch64_linux_read_description.
5818 * linux-aarch64-tdesc.c: New file.
5819 * linux-aarch64-tdesc.h: New file.
5821 2017-11-24 Yao Qi <yao.qi@linaro.org>
5823 * configure.srv: Set $srv_regobj for tic6x-linux.
5824 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
5825 (tic6x_read_description): Move some code to tic6x_arch_setup.
5826 (tic6x_tdesc_test): New function.
5827 (initialize_low_arch): Call selftests::register_test.
5829 2017-11-22 Yao Qi <yao.qi@linaro.org>
5831 * remote-utils.c (prepare_resume_reply): Use memcpy.
5833 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5835 * linux-low.c (kill_one_lwp_callback): Return void, take
5836 argument directly, don't filter on pid.
5837 (linux_kill): Use for_each_thread.
5839 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5841 * linux-low.c (need_step_over_p): Return bool, remove dummy
5843 (linux_resume, proceed_all_lwps): Use find_thread.
5845 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5847 * linux-low.c (resume_status_pending_p): Return bool, remove
5849 (linux_resume): Use find_thread.
5851 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5853 * linux-low.c (struct thread_resume_array): Remove.
5854 (linux_set_resume_request): Return void, take arguments
5856 (linux_resume): Use for_each_thread.
5858 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5860 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
5861 return bool, remove data argument.
5862 (linux_stabilize_threads): Use find_thread.
5864 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5866 * linux-low.c (unsuspend_one_lwp): Remove.
5867 (unsuspend_all_lwps): Use for_each_thread, inline code from
5870 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5872 * gdbthread.h (find_thread): Add overload with ptid_t filter.
5873 * linux-low.c (struct iterate_over_lwps_args): Remove.
5874 (iterate_over_lwps_filter): Remove.
5875 (iterate_over_lwps): Use find_thread.
5877 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5879 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
5880 (linux_handle_new_gdb_connection): Use for_each_thread, inline
5881 code from reset_lwp_ptrace_options_callback.
5883 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5885 * linux-arm-low.c (struct update_registers_data): Remove.
5886 (update_registers_callback): Return void, take arguments
5887 directly, don't check thread's pid.
5888 (arm_insert_point, arm_remove_point): Use for_each_thread.
5890 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5892 * win32-low.c (continue_one_thread): Return void, take argument
5894 (child_continue): Use for_each_thread.
5896 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5898 * win32-i386-low.c (update_debug_registers_callback): Rename
5900 (update_debug_registers): ... this, return void, remove pid_p arg.
5901 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
5903 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
5905 * inferiors.h (struct process_info): Add constructor, initialize
5907 <syscalls_to_catch>: Change type to std::vector<int>.
5908 * inferiors.c (add_process): Allocate process_info with new.
5909 (remove_process): Free process_info with delete.
5910 * linux-low.c (handle_extended_wait): Adjust.
5911 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
5912 * server.c (handle_general_set): Adjust.
5914 2017-11-16 Pedro Alves <palves@redhat.com>
5916 * remote-utils.c (remote_close): Block SIGIO signals instead of
5917 uninstalling the SIGIO handler.
5919 2017-11-16 Alan Hayward <alan.hayward@arm.com>
5921 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
5923 2017-11-16 Yao Qi <yao.qi@linaro.org>
5925 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
5926 (tic6x_store_gregset): Likewise.
5927 (tic6x_usrregs_info): Move it up.
5929 2017-11-15 Alan Hayward <alan.hayward@arm.com>
5931 * Makefile.in: Update arch rules.
5932 * configure.srv: Explicitly mark arch/ files.
5934 2017-11-13 Andreas Schwab <schwab@suse.de>
5936 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
5938 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
5940 2017-11-06 Pedro Alves <palves@redhat.com>
5942 * config.in, configure: Regenerate.
5944 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
5946 * target.c (struct thread_search): Remove.
5947 (thread_search_callback): Remove.
5948 (prepare_to_access_memory): Use for_each_thread instead of
5949 find_inferior. Inline code from thread_search_callback.
5951 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
5953 * server.c (struct visit_actioned_threads_data): Remove.
5954 (visit_actioned_threads): Change prototype to take arguments
5956 (resume): Use find_thread instead of find_inferior.
5958 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
5960 * server.c (queue_stop_reply_callback): Change prototype, return
5962 (find_status_pending_thread_callback): Remove.
5963 (handle_status): Replace find_inferior with find_thread and
5966 2017-10-25 Alan Hayward <alan.hayward@arm.com>
5968 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
5970 (aarch64_store_gregset): Likewise.
5971 (aarch64_fill_fpregset): Likewise.
5972 (aarch64_store_fpregset): Likewise.
5974 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
5976 * gdbthread.h (find_thread, for_each_thread): New functions.
5977 * inferiors.c (thread_of_pid): Remove.
5978 (find_any_thread_of_pid): Use find_thread.
5979 * linux-low.c (num_lwps): Use for_each_thread.
5981 2017-10-17 Yao Qi <yao.qi@linaro.org>
5983 * Makefile.in: Remove one rule.
5984 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
5986 2017-10-17 Yao Qi <yao.qi@linaro.org>
5988 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
5989 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
5991 2017-10-17 Yao Qi <yao.qi@linaro.org>
5993 * configure.srv: Rename arm.o with arch/arm.o.
5995 2017-10-17 Yao Qi <yao.qi@linaro.org>
5997 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
5998 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
5999 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
6000 (arch-i386.o, arch-amd64.o): Remove rules.
6001 (arch/%.o): New rule.
6002 Update POSTCOMPILE and COMPILE.pre.
6003 * configure.ac: Invoke AC_CONFIG_COMMANDS.
6004 * configure: Re-generated.
6005 * configure.srv: Replace arch-i386.o with arch/i386.o.
6006 Replace arch-amd64.o with arch/amd64.o.
6008 2017-10-16 Yao Qi <yao.qi@linaro.org>
6010 * configure: Regenerated.
6012 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6014 * inferiors.h: (struct inferior_list): Remove.
6015 (struct inferior_list_entry); Remove.
6016 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
6017 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
6018 get_first_inferior): Remove.
6019 (for_each_inferior, for_each_inferior_with_data, find_inferior,
6020 find_inferior_id, find_inferior_in_random): Change signature.
6021 * inferiors.c (all_threads): Change type to
6022 std::list<thread_info *>.
6023 (get_thread): Remove macro.
6024 (find_inferior, find_inferior_id): Change signature, implement
6026 (find_inferior_in_random): Change signature, implement using
6027 find_thread_in_random.
6028 (for_each_inferior, for_each_inferior_with_data): Change
6029 signature, implement using for_each_thread.
6030 (add_inferior_to_list, remove_inferior): Remove.
6031 (add_thread, get_first_thread, thread_of_pid,
6032 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
6033 (get_first_inferior, one_inferior_p, clear_inferior_list):
6035 (clear_inferiors, get_thread_process): Update.
6036 * gdbthread.h: Include <list>.
6037 (struct thread_info) <entry>: Remove field.
6039 (all_threads): Change type to std::list<thread_info *>.
6040 (get_first_inferior): Add doc.
6041 (find_thread, for_each_thread, find_thread_in_random): New
6043 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
6044 * linux-arm-low.c (update_registers_callback): Update.
6045 * linux-low.c (second_thread_of_pid_p): Update.
6046 (kill_one_lwp_callback, linux_detach_lwp_callback,
6047 delete_lwp_callback, status_pending_p_callback, same_lwp,
6048 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
6049 iterate_over_lwps, not_stopped_callback,
6050 resume_stopped_resumed_lwps, count_events_callback,
6051 select_singlestep_lwp_callback, select_event_lwp_callback,
6052 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
6053 suspend_and_send_sigstop_callback, wait_for_sigstop,
6054 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
6055 lwp_running, linux_set_resume_request, resume_status_pending_p,
6056 need_step_over_p, start_step_over, linux_resume_one_thread,
6057 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
6058 reset_lwp_ptrace_options_callback): Update.
6059 * linux-mips-low.c (update_watch_registers_callback): Update.
6060 * regcache.c (regcache_invalidate_one, regcache_invalidate):
6062 (free_register_cache_thread_one): Remove.
6063 (regcache_release): Update.
6064 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
6065 handle_qxfer_threads_worker): Update.
6066 (handle_query): Update, use list iterator.
6067 (visit_actioned_threads, handle_pending_status,
6068 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
6069 clear_pending_status_callback, set_pending_status_callback,
6070 find_status_pending_thread_callback, handle_status,
6071 process_serial_event): Update.
6072 * target.c (thread_search_callback): Update.
6073 * thread-db.c (thread_db_get_tls_address): Update.
6074 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
6076 * win32-i386-low.c (update_debug_registers_callback): Update.
6077 * win32-low.c (delete_thread_info, child_delete_thread,
6078 continue_one_thread, suspend_one_thread,
6079 get_child_debug_event): Adjust.
6081 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6083 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
6084 * inferiors.h: Include <list>.
6085 (struct process_info) <entry>: Remove field.
6087 (pid_of): Change macro to function.
6088 (ptid_of, lwpid_of): Remove macro.
6089 (all_processes): Change type to std::list<process_info *>.
6090 (ALL_PROCESSES): Remove macro.
6091 (for_each_process, find_process): New function.
6092 * inferiors.c (all_processes): Change type to
6093 std::list<process_info *>.
6094 (find_thread_process): Adjust.
6095 (add_process): Likewise.
6096 (remove_process): Likewise.
6097 (find_process_pid): Likewise.
6098 (get_first_process): Likewise.
6099 (started_inferior_callback): Remove.
6100 (have_started_inferiors_p): Adjust.
6101 (attached_inferior_callback): Remove.
6102 (have_attached_inferiors_p): Adjust.
6103 * linux-low.c (check_zombie_leaders): Likewise.
6104 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
6105 (x86_linux_update_xmltarget): Adjust.
6106 * server.c (handle_query): Likewise.
6107 (gdb_reattached_process): Remove.
6108 (handle_status): Adjust.
6109 (kill_inferior_callback): Likewise.
6110 (detach_or_kill_inferior): Remove.
6111 (print_started_pid): Likewise.
6112 (print_attached_pid): Likewise.
6113 (detach_or_kill_for_exit): Update.
6114 (process_serial_event): Likewise.
6115 * linux-arm-low.c (arm_new_fork): Likewise.
6117 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6119 * dll.h: Include <list>.
6120 (struct dll_info): Add constructor.
6121 <entry>: Remove field.
6122 (all_dlls): Change type to std::list<dll_info>.
6123 * dll.c: Include <algorithm>.
6124 (get_dll): Remove macro.
6125 (all_dlls): Change type to std::list<dll_info *>.
6126 (free_one_dll): Remove.
6127 (match_dll): Likewise.
6128 (loaded_dll): Adjust.
6129 (unloaded_dll): Adjust to all_dlls type change, use
6130 std::find_if. Inline code from match_dll.
6131 (clear_dlls): Adjust to all_dlls type change.
6132 * server.c (emit_dll_description): Remove.
6133 (handle_qxfer_libraries): Adjust to all_dlls type change,
6134 integrate emit_dll_description's functionality.
6136 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6138 * linux-low.h (struct linux_target_ops) <delete_process>: New
6140 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
6141 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
6142 (struct linux_target_ops): Add delete_process callback.
6143 * linux-arm-low.c (arm_delete_process): New.
6144 (struct linux_target_ops): Add delete_process callback.
6145 * linux-bfin-low.c (struct linux_target_ops): Likewise.
6146 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
6147 * linux-m32r-low.c (struct linux_target_ops): Likewise.
6148 * linux-mips-low.c (mips_linux_delete_process): New.
6149 (struct linux_target_ops): Add delete_process callback.
6150 * linux-ppc-low.c (struct linux_target_ops): Likewise.
6151 * linux-s390-low.c (struct linux_target_ops): Likewise.
6152 * linux-sh-low.c (struct linux_target_ops): Likewise.
6153 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
6154 * linux-tile-low.c (struct linux_target_ops): Likewise.
6155 * linux-x86-low.c (x86_linux_delete_process): New.
6156 (struct linux_target_ops): Add delete_process callback.
6157 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
6159 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6161 * linux-aarch64-low.c (the_low_target): Add thread delete
6163 * linux-arm-low.c (arm_delete_thread): New function.
6164 (the_low_target): Add thread delete callback.
6165 * linux-bfin-low.c (the_low_target): Likewise.
6166 * linux-crisv32-low.c (the_low_target): Likewise.
6167 * linux-low.c (delete_lwp): Invoke delete_thread callback if
6169 * linux-low.h (struct linux_target_ops) <delete_thread>: New
6171 * linux-m32r-low.c (the_low_target): Add thread delete callback.
6172 * linux-mips-low.c (mips_linux_delete_thread): New function.
6173 (the_low_target): Add thread delete callback.
6174 * linux-ppc-low.c (the_low_target): Likewise.
6175 * linux-s390-low.c (the_low_target): Likewise.
6176 * linux-sh-low.c (the_low_target): Likewise.
6177 * linux-tic6x-low.c (the_low_target): Likewise.
6178 * linux-tile-low.c (the_low_target): Likewise.
6179 * linux-x86-low.c (the_low_target): Likewise.
6180 * linux-xtensa-low.c (the_low_target): Likewise.
6182 2017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
6184 * win32-low.c: Include "common-inferior.h".
6186 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6188 * inferiors.c (set_inferior_cwd): New function.
6189 * server.c (handle_general_set): Handle QSetWorkingDir packet.
6190 (handle_query): Inform that QSetWorkingDir is supported.
6191 * win32-low.c (create_process): Pass the inferior's cwd to
6194 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6196 * inferiors.c (current_inferior_cwd): New global variable.
6197 (get_inferior_cwd): New function.
6198 * inferiors.h (struct process_info) <cwd>: New field.
6200 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6202 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
6203 (OBS): Add gdb_tilde_expand.o.
6205 2017-10-02 Simon Marchi <simon.marchi@ericsson.com>
6207 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
6208 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
6210 2017-09-29 Pedro Alves <palves@redhat.com>
6212 * ax.c (gdb_parse_agent_expr): Constify.
6213 * ax.h (gdb_parse_agent_expr): Constify.
6214 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
6216 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
6217 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
6218 * remote-utils.h (read_ptid): Constify.
6219 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
6220 (process_point_options, process_serial_event): Constify.
6221 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
6222 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
6223 (cmd_qtbuffer): Constify.
6225 2017-09-29 Pedro Alves <palves@redhat.com>
6227 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
6230 2017-09-29 Pedro Alves <palves@redhat.com>
6232 * linux-low.c (handle_extended_wait): Pass parent thread instead
6233 of process to thread_db_notice_clone.
6234 * linux-low.h (thread_db_notice_clone): Replace parent process
6235 parameter with parent thread parameter.
6236 * thread-db.c (find_one_thread): Add comment.
6237 (thread_db_notice_clone): Replace parent process parameter with
6238 parent thread parameter. Temporarily switch to the parent thread.
6240 2017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
6242 * gdbthread.h: Include "common-gdbthread.h".
6243 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
6244 "if" when validating the ptid.
6245 * remote-utils.c: Include "gdbthread.h".
6246 (prepare_resume_reply): Use "switch_to_thread".
6247 * target.c (done_accessing_memory): Likewise.
6249 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6251 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
6252 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
6253 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
6254 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
6255 s390x-gs-linux64-ipa.o to ipa_obj.
6256 * linux-s390-low.c (HWCAP_S390_GS): New define.
6257 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
6259 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
6260 (s390_arch_setup): Check for guarded-storage support and choose
6262 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
6263 init_registers_s390x_gs_linux64.
6264 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
6266 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
6267 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
6269 2017-09-22 Simon Marchi <simon.marchi@ericsson.com>
6271 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
6273 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6275 * linux-low.h (struct lwp_info): Add new field, thread_handle.
6276 (thread_db_thread_handle): Declare.
6277 * linux-low.c (linux_target_ops): Initialize thread_handle.
6278 * server.c (handle_qxfer_threads_worker): Add support for
6280 * target.h (struct target_ops): Add new function pointer,
6282 (target_thread_handle): Define.
6283 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
6285 (thread_db_thread_handle): New function.
6287 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6289 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
6290 * linux-low.h (thread_db_notice_clone): Declare.
6291 * thread-db.c (thread_db_notice_clone): New function.
6293 2017-09-21 Pedro Alves <palves@redhat.com>
6295 * server.c (gdb_read_memory, handle_status, process_serial_event)
6296 (handle_serial_event, handle_target_event): Adjust to
6297 set_desired_thread prototype change.
6298 * target.c (set_desired_thread): Remove 'use_general' parameter
6300 * target.h (set_desired_thread): Remove 'use_general' parameter.
6302 2017-09-20 Tom Tromey <tom@tromey.com>
6304 * target.c (target_terminal::terminal_state): Define.
6305 (target_terminal::init): Rename from target_terminal_init.
6306 (target_terminal::inferior): Rename from
6307 target_terminal_inferior.
6308 (target_terminal::ours): Rename from target_terminal_ours.
6309 (target_terminal::ours_for_output, target_terminal::info): New.
6311 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6313 * server.c (accumulate_file_name_length): Remove.
6314 (emit_dll_description): Adjust to std::string change.
6315 (handle_qxfer_libraries): Use std::string to hold document.
6317 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6319 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
6320 return type of xml_escape_text.
6321 * server.c (emit_dll_description): Likewise.
6323 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6325 * server.c (captured_main): Accept argument for --selftest.
6326 Update run_tests call.
6327 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
6328 when registering selftests.
6330 2017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
6332 * regcache.c (get_thread_regcache): Update code to use "std::vector"
6333 instead of "VEC" for "target_desc.reg_defs".
6334 (regcache_cpy): Likewise.
6335 (registers_to_string): Likewise.
6336 (registers_from_string): Likewise.
6337 (find_regno): Likewise.
6338 (supply_regblock): Likewise.
6339 (regcache_raw_read_unsigned): Likewise.
6340 * tdesc.c (init_target_desc): Likewise.
6341 (tdesc_create_reg): Likewise.
6342 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
6343 (struct target_desc) <reg_defs>: Convert to "std::vector".
6344 (target_desc): Do not initialize "reg_defs".
6345 (~target_desc): Update code to use "std::vector" instead of "VEC"
6346 for "target_desc.reg_defs".
6347 (operator==): Likewise.
6349 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6351 * inferiors.h (thread_to_gdb_id): Remove.
6352 * inferiors.c (thread_to_gdb_id): Remove.
6353 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
6354 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
6355 lynx_store_registers, lynx_read_memory, lynx_write_memory):
6357 * nto-low.c (nto_fetch_registers, nto_store_registers,
6358 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
6360 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6362 * inferiors.h (gdb_id_to_thread_id): Remove.
6363 * inferiors.c (gdb_id_to_thread_id): Remove.
6364 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
6365 removal. Move pid declaration closer to where it's used.
6367 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6369 * server.c (handle_detach): New function.
6370 (process_serial_event): Move code out, call handle_detach.
6372 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6374 * server.c (require_running): Rename to ...
6375 (require_running_or_return): ... this ...
6376 (require_running_or_break): ... and this.
6377 (handle_query, process_serial_event): Adjust.
6379 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6381 * linux-low.c (linux_set_resume_request): Remove unused
6384 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6386 * server.c (first_thread_of): Remove.
6387 (process_serial_event): Replace usage of first_thread_of with
6388 find_any_thread_of_pid.
6389 * tracepoint.c (same_process_p): Remove.
6390 (gdb_agent_about_to_close): Replace usage of same_process_p with
6391 find_any_thread_of_pid.
6392 * linux-x86-low.c (same_process_callback): Remove.
6393 (x86_arch_setup_process_callback): Replace usage of
6394 same_process_callback with find_any_thread_of_pid.
6395 * thread-db.c (any_thread_of): Remove.
6396 (switch_to_process): Replace usage of any_thread_of with
6397 find_any_thread_of_pid.
6398 * inferiors.c (thread_pid_matches_callback): Remove.
6399 (find_thread_process): Adjust to use find_any_thread_of_pid.
6401 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6403 * regcache.c (get_thread_regcache): Guard calls to "memset"
6406 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6408 * linux-low.c (handle_extended_wait): Use
6409 "allocate_target_description" instead of "XNEW".
6410 * linux-x86-low.c (initialize_low_arch): Likewise.
6412 2017-09-05 Yao Qi <yao.qi@linaro.org>
6414 * configure.srv (srv_i386_regobj): Remove.
6415 (srv_amd64_regobj): Remove.
6416 (srv_regobj): Set it to "" for x86 non-linux targets.
6417 * linux-x86-tdesc.c (i386_linux_read_description):
6418 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
6419 (init_registers_i386): Remove the declaration.
6420 (tdesc_i386): Remove the declaration.
6421 (lynx_i386_arch_setup): Call i386_create_target_description.
6422 * nto-x86-low.c: Likewise.
6423 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
6424 [!__x86_64__]: include arch/i386.h.
6425 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
6427 2017-09-05 Yao Qi <yao.qi@linaro.org>
6429 * configure.srv (srv_amd64_linux_xmlfiles): Remove
6430 i386/amd64-XXX-linux from it.
6432 2017-09-05 Yao Qi <yao.qi@linaro.org>
6434 * configure.srv: Empty srv_amd64_linux_regobj if $development is
6436 (ipa_amd64_linux_regobj): Remove.
6437 (ipa_x32_linux_regobj): Remove.
6439 2017-09-05 Yao Qi <yao.qi@linaro.org>
6441 * Makefile.in (arch-amd64.o): New rule.
6442 * configure.srv: Append arch-amd64.o.
6443 * linux-amd64-ipa.c: Include common/x86-xstate.h.
6444 (get_ipa_tdesc): Call amd64_linux_read_description.
6445 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
6446 and init_registers_amd64_XXX.
6447 * linux-x86-low.c (x86_linux_read_description): Call
6448 amd64_linux_read_description.
6449 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
6450 (initialize_low_arch): Don't call init_registers_x32_XXX and
6451 init_registers_amd64_XXX.
6452 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
6453 and tdesc_amd64_XXX.
6454 [__x86_64__] (amd64_tdesc_test): New function.
6455 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
6456 and init_registers_amd64_XXX.
6457 * linux-x86-tdesc.c: Include arch/amd64.h.
6458 (xcr0_to_tdesc_idx): New function.
6459 (i386_linux_read_description): New function.
6460 (amd64_get_ipa_tdesc_idx): New function.
6461 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
6462 (amd64_get_ipa_tdesc): Declare.
6464 2017-09-05 Yao Qi <yao.qi@linaro.org>
6466 * configure.srv (srv_i386_linux_xmlfiles): Remove
6467 i386/i386-XXX-linux.xml from it.
6469 2017-09-05 Yao Qi <yao.qi@linaro.org>
6471 * configure.srv: Set srv_i386_linux_regobj empty if $development
6473 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
6474 initialize_low_tdesc.
6475 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
6476 with #if initialize_low_tdesc.
6477 * linux-x86-tdesc-selftest.c: New file.
6478 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
6480 2017-09-05 Yao Qi <yao.qi@linaro.org>
6482 * Makefile.in (arch-i386.o): New rule.
6483 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
6484 (x86_64-*-linux*): Likewise.
6485 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
6486 include arch/i386.h.
6487 (i386_linux_read_description): Remove code and call
6488 i386_create_target_description.
6489 * tdesc.c (allocate_target_description): New function.
6490 * tdesc.h (set_tdesc_architecture): Remove declaration.
6491 (set_tdesc_osabi): Likewise.
6493 2017-09-05 Yao Qi <yao.qi@linaro.org>
6495 * linux-x86-tdesc.c: Don't include <inttypes.h>.
6496 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
6497 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
6499 * server.c (get_features_xml): Call tdesc_get_features_xml.
6500 * tdesc.c (set_tdesc_architecture): New function.
6501 (set_tdesc_osabi): New function.
6502 (tdesc_get_features_xml): New function.
6503 (tdesc_create_feature): Add an argument.
6504 * tdesc.h (struct target_desc) <features>: New field.
6505 <arch, osabi>: New field.
6506 (~target_desc): xfree features, arch, and osabi.
6507 (target_desc::oerator==): Don't compare .xmltarget.
6508 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
6509 (set_tdesc_osabi): Likewise.
6510 (tdesc_get_features_xml): Likewise.
6512 2017-09-05 Yao Qi <yao.qi@linaro.org>
6514 * linux-x86-tdesc.c: Include selftest.h.
6515 (i386_tdesc_test): New function.
6516 (initialize_low_tdesc): Call selftests::register_test.
6517 * tdesc.h: Include regdef.h.
6518 (target_desc): Override operator == and !=.
6520 2017-09-05 Yao Qi <yao.qi@linaro.org>
6522 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
6523 (ipa_obj): Likewise.
6524 * linux-i386-ipa.c: Include common/x86-xstate.h
6525 (get_ipa_tdesc): Call i386_linux_read_description.
6526 (initialize_low_tracepoint): Don't call init_registers_XXX
6527 functions, call initialize_low_tdesc instead.
6528 * linux-x86-low.c (x86_linux_read_description): Call
6529 i386_linux_read_description.
6530 (initialize_low_arch): Don't call init_registers_i386_XXX
6531 functions, call initialize_low_tdesc.
6532 * linux-x86-tdesc.c: New file.
6533 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
6534 (i386_get_ipa_tdesc_idx): Declare.
6535 (i386_get_ipa_tdesc): Declare.
6536 (initialize_low_tdesc): Declare.
6538 2017-09-05 Yao Qi <yao.qi@linaro.org>
6540 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
6543 2017-09-05 Yao Qi <yao.qi@linaro.org>
6545 * Makefile.in (IPA_OBJS): Add vec-ipa.o
6546 * regcache.c (get_thread_regcache): Use VEC_length.
6547 (init_register_cache): Likewise.
6548 (regcache_cpy): Likewise.
6549 (registers_to_string): Iterate reg_defs via VEC_iterate.
6550 (find_regno): Likewise.
6551 (find_register_by_number): Use VEC_index.
6552 (register_size): Call find_register_by_number.
6553 (register_data): Call find_register_by_number.
6554 (supply_regblock): Use VEC_length.
6555 (regcache_raw_read_unsigned): Likewise.
6556 * tdesc.c (init_target_desc): Iterate reg_defs via
6558 (default_description): Update initializer.
6559 (copy_target_description): Don't update field num_registers.
6560 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
6561 <num_registers>: Remove.
6563 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
6565 * Makefile.in (.SECONDARY): Define target.
6567 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
6569 * linux-low.c (linux_wait_1): Adjust.
6570 * server.c (queue_stop_reply_callback): Adjust.
6572 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
6574 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
6575 QEnvironmentUnset and QEnvironmentReset packets.
6576 (handle_query): Inform remote that QEnvironmentHexEncoded,
6577 QEnvironmentUnset and QEnvironmentReset are supported.
6579 2017-08-25 Simon Marchi <simon.marchi@ericsson.com>
6581 * inferiors.h (inferior_target_data): Rename to ...
6582 (thread_target_data): ... this.
6583 (inferior_regcache_data): Rename to ...
6584 (thread_regcache_data): ... this.
6585 (set_inferior_regcache_data): Rename to ...
6586 (set_thread_regcache_data): ... this.
6587 * inferiors.c (inferior_target_data): Rename to ...
6588 (thread_target_data): ... this.
6589 (inferior_regcache_data): Rename to ...
6590 (thread_regcache_data): ... this.
6591 (set_inferior_regcache_data): Rename to ...
6592 (set_thread_regcache_data): ... this.
6593 (free_one_thread): Update.
6594 * linux-low.h (get_thread_lwp): Update.
6595 * regcache.c (get_thread_regcache): Update.
6596 (regcache_invalidate_thread): Update.
6597 (free_register_cache_thread): Update.
6598 * win32-i386-low.c (update_debug_registers_callback): Update.
6599 (win32_get_current_dr): Update.
6600 * win32-low.c (thread_rec): Update.
6601 (delete_thread_info): Update.
6602 (continue_one_thread): Update.
6603 (suspend_one_thread): Update.
6605 2017-08-24 Simon Marchi <simon.marchi@ericsson.com>
6607 * inferiors.c (set_inferior_target_data): Remove.
6608 * inferiors.h (set_inferior_target_data): Remove.
6610 2017-08-18 Yao Qi <yao.qi@linaro.org>
6612 * Makefile.in (OBS): Add selftest.o.
6613 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
6614 * configure, config.in: Re-generated.
6615 * server.c: Include common/sefltest.h.
6616 (captured_main): Handle option --selftest.
6618 2017-08-09 Yao Qi <yao.qi@linaro.org>
6620 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
6621 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
6622 i386-avx-mpx.o and i386-mmx.o.
6623 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
6624 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
6625 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
6626 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
6627 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
6628 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
6629 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
6630 i386/amd64-avx-mpx.xml.
6632 2017-08-09 Yao Qi <yao.qi@linaro.org>
6634 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
6635 and x32-avx-avx512.o.
6636 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
6637 i386/x32-avx-avx512.xml.
6639 2017-07-26 Simon Marchi <simon.marchi@ericsson.com>
6641 * tracepoint.h (enum class fast_tpoint_collect_result): New
6643 (fast_tracepoint_collecting): Change return type to
6644 fast_tpoint_collect_result.
6645 * tracepoint.c (fast_tracepoint_collecting): Likewise.
6646 * linux-low.h: Include tracepoint.h.
6647 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
6648 fast_tpoint_collect_result.
6649 * linux-low.c (handle_tracepoints): Adjust.
6650 (linux_fast_tracepoint_collecting): Change return type to
6651 fast_tpoint_collect_result.
6652 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
6653 linux_wait_1, stuck_in_jump_pad_callback,
6654 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
6655 proceed_one_lwp): Adjust to type change.
6657 2017-07-10 Yao Qi <yao.qi@linaro.org>
6659 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
6661 2017-06-29 Yao Qi <yao.qi@linaro.org>
6663 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
6665 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
6667 2017-06-20 Simon Marchi <simon.marchi@ericsson.com>
6669 * Makefile.in (IPA_OBJS): Sort and format one item per line.
6671 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
6673 * linux-low.c (linux_create_inferior): Adjust code to access the
6674 environment information via 'gdb_environ' class.
6675 * lynx-low.c (lynx_create_inferior): Likewise.
6676 * server.c (our_environ): Make it an instance of 'gdb_environ'.
6677 (get_environ): Return a pointer to 'our_environ'.
6678 (captured_main): Initialize 'our_environ'.
6679 * server.h (get_environ): Adjust prototype.
6680 * spu-low.c (spu_create_inferior): Adjust code to access the
6681 environment information via 'gdb_environ' class.
6683 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6685 * linux-low.c (linux_read_memory, linux_write_memory): Remove
6686 usage of "register" keyword.
6688 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6690 * configure: Re-generate.
6692 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6694 * configure: Re-generate.
6696 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6698 * Makefile.in (COMPILE.pre): Add "-x c++".
6700 2017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
6702 * fork-child.c: Conditionally include <signal.h>.
6704 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6706 * server.c (handle_general_set): Handle new packet
6707 "QStartupWithShell".
6708 (handle_query): Add "QStartupWithShell" to the list of supported
6710 (gdbserver_usage): Add help text explaining the
6711 new "--startup-with-shell" and "--no-startup-with-shell" CLI
6713 (captured_main): Recognize and act upon the presence of the new
6716 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6717 Pedro Alves <palves@redhat.com>
6719 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
6720 * configure: Regenerate.
6721 * configure.srv (srv_linux_obj): Add "fork-child.o" and
6723 (i[34567]86-*-lynxos*): Likewise.
6724 (spu*-*-*): Likewise.
6725 * fork-child.c: New file.
6726 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
6728 (linux_ptrace_fun): New function.
6729 (linux_create_inferior): Adjust function prototype to reflect
6730 change on "target.h". Adjust function code to use
6732 (linux_request_interrupt): Delete "signal_pid".
6733 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
6734 (lynx_ptrace_fun): New function.
6735 (lynx_create_inferior): Adjust function prototype to reflect
6736 change on "target.h". Adjust function code to use
6738 * nto-low.c (nto_create_inferior): Adjust function prototype and
6739 code to reflect change on "target.h". Update comments.
6740 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
6741 "common-terminal.h" and "environ.h".
6742 (terminal_fd): Moved to fork-child.c.
6743 (old_foreground_pgrp): Likewise.
6744 (restore_old_foreground_pgrp): Likewise.
6745 (last_status): Make it global.
6746 (last_ptid): Likewise.
6747 (our_environ): New variable.
6748 (startup_with_shell): Likewise.
6749 (program_name): Likewise.
6750 (program_argv): Rename to...
6751 (program_args): ...this.
6752 (wrapper_argv): New variable.
6753 (start_inferior): Delete function.
6754 (get_exec_wrapper): New function.
6755 (get_exec_file): Likewise.
6756 (get_environ): Likewise.
6757 (prefork_hook): Likewise.
6758 (post_fork_inferior): Likewise.
6759 (postfork_hook): Likewise.
6760 (postfork_child_hook): Likewise.
6761 (handle_v_run): Update code to deal with arguments coming from the
6762 remote host. Update calls from "start_inferior" to
6764 (captured_main): Likewise. Initialize environment variable. Call
6766 * server.h (post_fork_inferior): New prototype.
6767 (get_environ): Likewise.
6768 (last_status): Declare.
6769 (last_ptid): Likewise.
6770 (signal_pid): Likewise.
6771 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
6772 (spu_ptrace_fun): New function.
6773 (spu_create_inferior): Adjust function prototype to reflect change
6774 on "target.h". Adjust function code to use "fork_inferior".
6775 * target.c (target_terminal_init): New function.
6776 (target_terminal_inferior): Likewise.
6777 (target_terminal_ours): Likewise.
6778 * target.h: Include <vector>.
6779 (struct target_ops) <create_inferior>: Update prototype.
6780 (create_inferior): Update macro.
6781 * utils.c (gdb_flush_out_err): New function.
6782 * win32-low.c (win32_create_inferior): Adjust function prototype
6783 and code to reflect change on "target.h".
6785 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6787 * inferiors.c (switch_to_thread): New function.
6789 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6791 * Makefile.in (SFILE): Add "common/job-control.c".
6792 (OBS): Add "job-control.o".
6794 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
6796 * Makefile: Remove "@host_makefile_frag@".
6798 2017-05-05 Pedro Alves <palves@redhat.com>
6800 * configure: Regenerate.
6802 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
6804 * configure: Regenerate.
6806 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
6808 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
6809 software_single_step change of return type to
6810 std::vector<CORE_ADDR>.
6811 * linux-low.c (install_software_single_step_breakpoints):
6813 * linux-low.h (install_software_single_step_breakpoints):
6816 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
6818 * remote-utils.c: Include "gdb_termios.h" instead of
6820 * terminal.h: Delete file.
6822 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
6824 * server.c: Include <vector>.
6825 <program_argv, wrapper_argv>: Convert to std::vector.
6826 (start_inferior): Rewrite function to use C++.
6827 (handle_v_run): Likewise. Update code that calculates the argv
6828 based on the vRun packet; use C++.
6829 (captured_main): Likewise.
6831 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
6833 * server.c (handle_v_cont): Initialize thread_resume::thread
6836 2017-04-05 Pedro Alves <palves@redhat.com>
6838 * configure: Regenerate.
6840 2017-04-05 Pedro Alves <palves@redhat.com>
6842 * gdbreplay.c (sync_error): Constify.
6843 * linux-x86-low.c (push_opcode): Constify.
6845 2017-04-05 Pedro Alves <palves@redhat.com>
6847 * win32-low.c (get_child_debug_event)
6848 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
6849 Report TARGET_WAITKIND_SPURIOUS instead.
6851 2017-04-05 Pedro Alves <palves@redhat.com>
6853 * remote-utils.c (remote_prepare, remote_open): Constify.
6854 * remote-utils.h (remote_prepare, remote_open): Constify.
6855 * server.c (captured_main): Constify 'port' handling.
6857 2017-04-04 Simon Marchi <simon.marchi@ericsson.com>
6859 * Makefile.in (clean): Clear .deps.
6861 2017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
6863 * .gitignore: Remove generated files, replace with wildcard.
6864 * (clean): Replace removal of generated files with wildcard.
6865 (version.c): Replace with...
6866 (version-generated.c): ...this.
6867 (xml-builtin.c): Replace with...
6868 (xml-builtin-generated.c): ...this.
6869 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
6870 (%.c: *regformats*): Replace with...
6871 (%-generated.c: *regformats*): ...this.
6873 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
6875 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
6876 (xtensa_fill_gregset): Call collect_register_by_name for
6878 (xtensa_store_gregset): Call supply_register_by_name for
6881 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
6883 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
6884 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
6885 (xtensa_store_gregset): Call supply_register for all registers in
6886 a0_regnum..a0_regnum + C0_NREGS range.
6888 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
6890 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
6891 (ax-ipa.o: ax.c): Remove.
6892 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
6893 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
6894 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
6895 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
6896 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
6898 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
6900 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
6901 (print-utils-ipa.o: ../common/print-utils.c): Remove.
6902 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
6903 (errors-ipa.o: ../common/errors.c): Remove.
6904 (format-ipa.o: ../common/format.c): Remove.
6905 (common-utils-ipa.o: ../common/common-utils.c): Remove.
6907 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
6909 * Makefile.in (%-ipa.o: %.c): New rule.
6910 (tracepoint-ipa.o: tracepoint.c): Remove.
6911 (utils-ipa.o: utils.c): Remove.
6912 (remote-utils-ipa.o: remote-utils.c): Remove.
6913 (regcache-ipa.o: regcache.c): Remove.
6914 (i386-linux-ipa.o: i386-linux.c): Remove.
6915 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
6916 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
6917 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
6918 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
6919 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
6920 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
6921 (amd64-linux-ipa.o: amd64-linux.c): Remove.
6922 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
6923 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
6924 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
6925 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
6926 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
6927 (aarch64-ipa.o: aarch64.c): Remove.
6928 (s390-linux32-ipa.o: s390-linux32.c): Remove.
6929 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
6930 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
6931 (s390-linux64-ipa.o: s390-linux64.c): Remove.
6932 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
6933 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
6934 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
6935 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
6936 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
6937 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
6938 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
6939 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
6940 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
6941 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
6942 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
6943 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
6944 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
6945 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
6946 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
6947 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
6948 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
6949 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
6950 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
6951 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
6952 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
6953 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
6954 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
6955 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
6956 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
6957 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
6958 (tdesc-ipa.o: tdesc.c): Remove.
6959 (x32-linux-ipa.o: x32-linux.c): Remove.
6960 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
6961 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
6963 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
6965 * Makefile.in (%.o: ../arch/%.c): New rule.
6966 (arm.o: ../arch/arm.c): Remove.
6967 (arm-linux.o: ../arch/arm-linux.c): Remove.
6968 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
6969 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
6971 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
6973 * Makefile.in (%.o: ../nat/%.c): New rule.
6974 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
6975 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
6976 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
6977 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
6978 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
6979 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
6980 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
6981 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
6982 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
6983 (linux-personality.o: ../nat/linux-personality.c): Remove.
6984 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
6985 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
6986 (x86-linux.o: ../nat/x86-linux.c): Remove.
6987 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
6988 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
6990 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
6992 * Makefile.in (%.o: ../common/%.c): New rule.
6993 (signals.o: ../common/signals.c): Remove.
6994 (print-utils.o: ../common/print-utils.c): Remove.
6995 (rsp-low.o: ../common/rsp-low.c): Remove.
6996 (common-utils.o: ../common/common-utils.c): Remove.
6997 (posix-strerror.o: ../common/posix-strerror.c): Remove.
6998 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
6999 (vec.o: ../common/vec.c): Remove.
7000 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
7001 (xml-utils.o: ../common/xml-utils.c): Remove.
7002 (ptid.o: ../common/ptid.c): Remove.
7003 (buffer.o: ../common/buffer.c): Remove.
7004 (format.o: ../common/format.c): Remove.
7005 (filestuff.o: ../common/filestuff.c): Remove.
7006 (agent.o: ../common/agent.c): Remove.
7007 (errors.o: ../common/errors.c): Remove.
7008 (environ.o: ../common/environ.c): Remove.
7009 (common-debug.o: ../common/common-debug.c): Remove.
7010 (cleanups.o: ../common/cleanups.c): Remove.
7011 (common-exceptions.o: ../common/common-exceptions.c): Remove.
7012 (fileio.o: ../common/fileio.c): Remove.
7013 (common-regcache.o: ../common/common-regcache.c): Remove.
7014 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
7015 (new-op.o: ../common/new-op.c): Remove.
7016 (btrace-common.o: ../common/btrace-common.c): Remove.
7018 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7020 * Makefile.in (%.o: ../target/%.c): New rule.
7021 (waitstatus.o: ../target/waitstatus.c): Remove.
7023 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7026 (%.c: ../regformats/%.dat,
7027 (%.c: ../regformats/arm/%.dat,
7028 (%.c: ../regformats/i386/%.dat,
7029 (%.c: ../regformats/rs6000/%.dat): New rules.
7030 (aarch64.c): Remove.
7031 (reg-arm.c): Remove.
7032 (arm-with-iwmmxt.c): Remove.
7033 (arm-with-vfpv2.c): Remove.
7034 (arm-with-vfpv3.c): Remove.
7035 (arm-with-neon.c): Remove.
7036 (reg-bfin.c): Remove.
7037 (reg-cris.c): Remove.
7038 (reg-crisv32.c): Remove.
7040 (i386-linux.c): Remove.
7041 (i386-avx.c): Remove.
7042 (i386-avx-linux.c): Remove.
7043 (i386-avx-avx512.c): Remove.
7044 (i386-avx-avx512-linux.c): Remove.
7045 (i386-mpx.c): Remove.
7046 (i386-mpx-linux.c): Remove.
7047 (i386-avx-mpx-avx512-pku.c): Remove.
7048 (i386-avx-mpx-avx512-pku-linux.c): Remove.
7049 (i386-avx-mpx.c): Remove.
7050 (i386-avx-mpx-linux.c): Remove.
7051 (i386-mmx.c): Remove.
7052 (i386-mmx-linux.c): Remove.
7053 (reg-ia64.c): Remove.
7054 (reg-m32r.c): Remove.
7055 (reg-m68k.c): Remove.
7057 (mips-linux.c): Remove.
7058 (mips-dsp-linux.c): Remove.
7059 (mips64-linux.c): Remove.
7060 (mips64-dsp-linux.c): Remove.
7061 (nios2-linux.c): Remove.
7062 (powerpc-32.c): Remove.
7063 (powerpc-32l.c): Remove.
7064 (powerpc-altivec32l.c): Remove.
7065 (powerpc-cell32l.c): Remove.
7066 (powerpc-vsx32l.c): Remove.
7067 (powerpc-isa205-32l.c): Remove.
7068 (powerpc-isa205-altivec32l.c): Remove.
7069 (powerpc-isa205-vsx32l.c): Remove.
7070 (powerpc-e500l.c): Remove.
7071 (powerpc-64l.c): Remove.
7072 (powerpc-altivec64l.c): Remove.
7073 (powerpc-cell64l.c): Remove.
7074 (powerpc-vsx64l.c): Remove.
7075 (powerpc-isa205-64l.c): Remove.
7076 (powerpc-isa205-altivec64l.c): Remove.
7077 (powerpc-isa205-vsx64l.c): Remove.
7078 (s390-linux32.c): Remove.
7079 (s390-linux32v1.c): Remove.
7080 (s390-linux32v2.c): Remove.
7081 (s390-linux64.c): Remove.
7082 (s390-linux64v1.c): Remove.
7083 (s390-linux64v2.c): Remove.
7084 (s390-te-linux64.c): Remove.
7085 (s390-vx-linux64.c): Remove.
7086 (s390-tevx-linux64.c): Remove.
7087 (s390x-linux64.c): Remove.
7088 (s390x-linux64v1.c): Remove.
7089 (s390x-linux64v2.c): Remove.
7090 (s390x-te-linux64.c): Remove.
7091 (s390x-vx-linux64.c): Remove.
7092 (s390x-tevx-linux64.c): Remove.
7093 (tic6x-c64xp-linux.c): Remove.
7094 (tic6x-c64x-linux.c): Remove.
7095 (tic6x-c62x-linux.c): Remove.
7097 (reg-sparc64.c): Remove.
7098 (reg-spu.c): Remove.
7100 (amd64-linux.c): Remove.
7101 (amd64-avx.c): Remove.
7102 (amd64-avx-linux.c): Remove.
7103 (amd64-avx-avx512.c): Remove.
7104 (amd64-avx-avx512-linux.c): Remove.
7105 (amd64-mpx.c): Remove.
7106 (amd64-mpx-linux.c): Remove.
7107 (amd64-avx-mpx-avx512-pku.c): Remove.
7108 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
7109 (amd64-avx-mpx.c): Remove.
7110 (amd64-avx-mpx-linux.c): Remove.
7112 (x32-linux.c): Remove.
7113 (x32-avx.c): Remove.
7114 (x32-avx-linux.c): Remove.
7115 (x32-avx-avx512.c): Remove.
7116 (x32-avx-avx512-linux.c): Remove.
7117 (reg-xtensa.c): Remove.
7118 (reg-tilegx.c): Remove.
7119 (reg-tilegx32.c): Remove.
7121 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
7123 * Makefile.in (SFILES): Add "common/environ.c".
7124 (OBJS): Add "common/environ.h".
7126 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7128 * configure.ac: Check if the fs_base and gs_base members of
7129 `struct user_regs_struct' exist.
7130 * config.in: Regenerated.
7131 * configure: Likewise.
7133 2017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
7135 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
7137 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
7138 (get_next_pcs_syscall_next_pc): Likewise.
7140 2016-12-23 Luis Machado <lgustavo@codesourcery.com>
7142 * win32-i386-low.c: Fix incorrect reference to a couple source files.
7143 * nto-x86-low.c: Likewise.
7145 2016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
7147 * Makefile.in: Include disable-implicit-rules.mk.
7149 2016-11-23 Pedro Alves <palves@redhat.com>
7151 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
7152 (debug_vprintf): Use std::chrono::steady_clock instead of
7153 gettimeofday. Use '.' instead of ':'.
7154 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
7155 (get_timestamp): Use std::chrono::steady_clock instead of
7158 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7160 * Makefile.in: Fix whitespace formatting.
7162 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7164 * Makefile.in (SFILES, OBS): Flatten list and order
7167 2016-11-23 Pedro Alves <palves@redhat.com>
7169 * event-loop.c (handle_file_event): Use warning.
7170 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
7171 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
7174 2016-11-23 Pedro Alves <palves@redhat.com>
7176 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
7178 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
7179 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
7180 debug_printf and debug_flush for debug output.
7181 * server.c (handle_general_set): Likewise.
7182 * thread-db.c (try_thread_db_load): Use debug_printf for debug
7185 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7187 * Makefile.in (.c.o): Replace rule with ...
7188 (%.o: %.c): ... this one.
7190 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7192 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
7193 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
7195 * configure.ac: Remove checks for the make program.
7196 * configure: Re-generate.
7198 2016-10-28 Pedro Alves <palves@redhat.com>
7200 * Makefile.in (CXX_DIALECT): Get from configure.
7201 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
7202 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
7203 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
7204 * config.in: Regenerate.
7205 * configure: Regenerate.
7207 2016-10-27 Yao Qi <yao.qi@linaro.org>
7209 * linux-low.c (linux_supports_range_stepping): Return true if
7210 can_software_single_step return true.
7212 2016-10-27 Yao Qi <yao.qi@linaro.org>
7214 * inferiors.c (find_inferior_in_random): New function.
7215 * inferiors.h (find_inferior_in_random): Declare.
7216 * linux-low.c (linux_wait_for_event_filtered): Call
7217 find_inferior_in_random instead of find_inferior.
7219 2016-10-27 Yao Qi <yao.qi@linaro.org>
7221 * linux-low.c (linux_wait_1): If single-step breakpoints are
7222 inserted, remove them.
7224 2016-10-26 Pedro Alves <palves@redhat.com>
7226 * linux-low.c (handle_extended_wait): Link parent/child fork
7228 (linux_wait_1): Unlink them.
7229 (linux_set_resume_request): Ignore resume requests for
7230 already-resumed and unhandled fork child threads.
7231 * linux-low.h (struct lwp_info) <fork_relative>: New field.
7232 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
7234 (handle_v_requests) <vCont>: Don't call require_running.
7235 * server.h (in_queued_stop_replies): New declaration.
7237 2016-10-24 Yao Qi <yao.qi@linaro.org>
7240 * linux-aarch64-low.c (append_insns): Cast the return value to
7243 2016-10-10 Yao Qi <yao.qi@linaro.org>
7245 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
7247 2016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
7249 * target.c (target_supports_multi_process): New function, moved
7251 * target.h (target_supports_multi_process): ... here. Remove
7254 2016-10-05 Tom Tromey <tom@tromey.com>
7257 * tracepoint.c (handle_tracepoint_bkpts): Check
7258 ipa_error_tracepoint, not ipa_stopping_tracepoint.
7260 2016-10-05 Yao Qi <yao.qi@linaro.org>
7262 * configure.srv: Update the path of arm-*.xml files.
7264 2016-10-05 Terry Guo <terry.guo@arm.com>
7265 Yao Qi <yao.qi@linaro.org>
7267 * Makefile.in: Adjust the path of rules.
7268 * configure.srv: Update the path of xml files.
7269 * regformats/arm-with-iwmmxt.dat: Regenerated.
7270 * regformats/arm-with-neon.dat: Likewise.
7271 * regformats/arm-with-vfpv2.dat: Likewise.
7272 * regformats/arm-with-vfpv3.dat Likewise.
7274 2016-09-30 Yao Qi <yao.qi@linaro.org>
7277 * target.c (target_stop_and_wait): Don't call
7278 target_continue_no_signal, use resume_stop instead.
7280 2016-09-26 Yao Qi <yao.qi@linaro.org>
7282 * linux-low.c (linux_wait_1): Call debug_exit.
7284 2016-09-23 Pedro Alves <palves@redhat.com>
7286 * Makefile.in (SFILES): Add common/new-op.c.
7287 (OBS): Add common/new-op.o.
7288 (new-op.o): New rule.
7290 2016-09-21 Simon Marchi <simon.marchi@ericsson.com>
7292 * .gitinore: Ignore more files.
7294 2016-09-21 Yao Qi <yao.qi@linaro.org>
7296 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
7299 2016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
7301 * server.c (start_inferior): Call target_mourn_inferior instead of
7302 mourn_inferior; pass ptid_t argument to it.
7304 (handle_target_event): Likewise.
7305 * target.c (target_mourn_inferior): New function.
7306 * target.h (mourn_inferior): Delete macro.
7308 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
7310 * linux-low.c (lwp_is_stepping): New function.
7312 2016-09-06 Carl Love <cel@us.ibm.com>
7314 * server.c (start_inferior): Fixed comment, requested comment change
7315 didn't get updated correctly. Removed reference to ptrace () call as
7316 it is only true on Linux systems.
7318 2016-09-06 Carl Love <cel@us.ibm.com>
7320 * server.c (start_inferior): Do not call
7321 function target_post_create_inferior () if the
7322 inferior process has already exited.
7324 2016-09-05 Pedro Alves <palves@redhat.com>
7326 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
7327 (COMPILE.pre, CC_LD): Use CXX directly.
7328 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
7329 * acinclude.m4: Don't include build-with-cxx.m4.
7330 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
7331 * configure: Regenerate.
7333 2016-09-02 Akash Trehan <akash.trehan123@gmail.com>
7336 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
7337 call writing data to own_buf.
7339 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7341 * target.c (mywait): Call target_wait instead of
7343 (target_wait): New function.
7345 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7347 * server.c (start_inferior): New variable 'ptid'. Replace calls
7348 to the_target->resume by target_continue{,_no_signal}, depending
7350 * target.c (target_stop_and_wait): Call target_continue_no_signal
7351 instead of the_target->resume.
7352 (target_continue): New function.
7354 2016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
7356 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
7358 2016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7361 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
7363 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
7364 * linux-arm-low.c (ps_get_thread_area): Likewise.
7365 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
7366 * linux-m68k-low.c (ps_get_thread_area): Likewise.
7367 * linux-mips-low.c (ps_get_thread_area): Likewise.
7368 * linux-nios2-low.c (ps_get_thread_area): Likewise.
7369 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
7370 * linux-x86-low.c (ps_get_thread_area): Likewise.
7371 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
7373 2016-08-19 Pedro Alves <palves@redhat.com>
7375 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
7377 2016-08-19 Pedro Alves <palves@redhat.com>
7379 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
7380 comment. Use memcpy instead of casting through unsigned long.
7382 2016-08-19 Pedro Alves <palves@redhat.com>
7384 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
7385 allocating around 0x80000000.
7387 2016-08-19 Pedro Alves <palves@redhat.com>
7390 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
7391 (x32-avx512-linux-ipa.o): New rules.
7392 * configure.ac (x86_64-*-linux*): New x32 check.
7393 * configure.srv (ipa_x32_linux_regobj): New.
7394 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
7395 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
7397 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
7399 * configure: Regenerate.
7401 2016-08-09 Pedro Alves <palves@redhat.com>
7404 * Makefile.in (OBS): Add signals-state-save-restore.o.
7405 (signals-state-save-restore.o): New rule.
7406 * config.in: Regenerate.
7407 * configure: Regenerate.
7408 * linux-low.c: Include "signals-state-save-restore.h".
7409 (linux_create_inferior): Call
7410 restore_original_signals_state.
7411 * server.c: Include "dispositions-save-restore.h".
7412 (captured_main): Call save_original_signals_state.
7414 2016-08-05 Pedro Alves <palves@redhat.com>
7416 * configure: Regenerate.
7418 2016-08-04 Yao Qi <yao.qi@linaro.org>
7420 * linux-low.c (regsets_fetch_inferior_registers): Check
7421 errno is ESRCH or not.
7423 2016-08-02 Yao Qi <yao.qi@linaro.org>
7425 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
7426 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
7427 (thread_db_load_search): Update.
7428 (try_thread_db_load_1): Don't look for td_ta_event_addr,
7429 td_ta_set_event and td_ta_event_getmsg.
7431 2016-07-26 Pedro Alves <palves@redhat.com>
7434 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
7435 of unsigned long for 64-bit registers and use uint32_t instead of
7436 unsigned int for 32-bit registers.
7438 2016-07-26 Pedro Alves <palves@redhat.com>
7440 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
7443 2016-07-21 Tom Tromey <tom@tromey.com>
7445 * configure: Rebuild.
7447 2016-07-21 Yao Qi <yao.qi@linaro.org>
7449 * mem-break.c (find_gdb_breakpoint): Cast bp to
7450 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
7452 2016-07-21 Yao Qi <yao.qi@linaro.org>
7454 * server.c (handle_v_requests): Support s and S actions
7455 if target_supports_software_single_step return true.
7457 2016-07-21 Yao Qi <yao.qi@linaro.org>
7459 * linux-low.c (resume_stopped_resumed_lwps): If resume request
7460 is resume_step, call maybe_hw_step.
7461 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
7463 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
7465 (proceed_one_lwp): If resume request is resume_step, install
7466 reinsert breakpoints and call maybe_hw_step.
7468 2016-07-21 Yao Qi <yao.qi@linaro.org>
7470 * linux-low.c (proceed_one_lwp): Declare.
7471 (linux_resume_one_thread): Remove local variable 'step'.
7472 Lift code enqueue signal. Call proceed_one_lwp instead of
7473 linux_resume_one_lwp.
7475 2016-07-21 Yao Qi <yao.qi@linaro.org>
7477 * linux-low.c (linux_resume_one_thread): Call
7478 enqueue_pending_signal.
7480 2016-07-21 Yao Qi <yao.qi@linaro.org>
7482 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
7483 * inferiors.c (do_restore_current_thread_cleanup): New function.
7484 (make_cleanup_restore_current_thread): Likewise.
7485 * linux-low.c (install_software_single_step_breakpoints): Call
7486 make_cleanup_restore_current_thread. Switch current_thread to
7489 2016-07-21 Yao Qi <yao.qi@linaro.org>
7491 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
7492 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
7493 (clone_one_breakpoint): Likewise.
7494 (delete_reinsert_breakpoints): Change parameter to thread.
7496 (has_reinsert_breakpoints): Likewise.
7497 (uninsert_reinsert_breakpoints): Likewise.
7498 (reinsert_reinsert_breakpoints): Likewise.
7499 * mem-break.h (set_reinsert_breakpoint): Update declaration.
7500 (delete_reinsert_breakpoints): Likewise.
7501 (reinsert_reinsert_breakpoints): Likewise.
7502 (uninsert_reinsert_breakpoints): Likewise.
7503 (has_reinsert_breakpoints): Likewise.
7505 2016-07-21 Yao Qi <yao.qi@linaro.org>
7507 * inferiors.c (get_thread_process): Make parameter const.
7508 * inferiors.h (get_thread_process): Update declaration.
7509 * mem-break.c (clone_all_breakpoints): Remove all parameters.
7510 Add new parameters child_thread and parent_thread. Callers
7512 * mem-break.h (clone_all_breakpoints): Update declaration.
7514 2016-07-21 Yao Qi <yao.qi@linaro.org>
7516 * mem-break.c (struct breakpoint) <cond_list>: Remove.
7517 <command_list, handler>: Remove.
7518 (struct gdb_breakpoint): New.
7519 (struct other_breakpoint): New.
7520 (struct reinsert_breakpoint): New.
7521 (is_gdb_breakpoint): New function.
7522 (any_persistent_commands): Update command_list if
7523 is_gdb_breakpoint returns true.
7524 (set_breakpoint): Create breakpoints according to their types.
7525 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
7526 (set_gdb_breakpoint_1): Likewise.
7527 (set_gdb_breakpoint): Likewise.
7528 (clear_breakpoint_conditions): Change parameter type to
7529 'struct gdb_breakpoint *'.
7530 (clear_breakpoint_commands): Likewise.
7531 (clear_breakpoint_conditions_and_commands): Likewise.
7532 (add_condition_to_breakpoint): Likewise.
7533 (add_breakpoint_condition): Likewise.
7534 (add_commands_to_breakpoint): Likewise.
7535 (check_breakpoints): Check other_breakpoint.
7536 (clone_one_breakpoint): Clone breakpopint according to its type.
7537 * mem-break.h (struct gdb_breakpoint): Declare.
7538 (set_gdb_breakpoint): Update declaration.
7539 (clear_breakpoint_conditions_and_commands): Likewise.
7540 (add_breakpoint_condition): Likewise.
7541 (add_breakpoint_commands): Likewise.
7542 * server.c (process_point_options): Change parameter type to
7543 'struct gdb_breakpoint *'.
7545 2016-07-21 Yao Qi <yao.qi@linaro.org>
7547 * mem-break.c (set_breakpoint_at): Rename it to ...
7548 (set_breakpoint_type_at): ... it.
7549 (set_breakpoint_at): Call set_breakpoint_type_at.
7550 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
7551 * mem-break.h (set_breakpoint_at): Update comments.
7553 2016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
7555 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
7557 (nios2_store_gregset): Likewise.
7559 2016-07-01 Pedro Alves <palves@redhat.com>
7560 Antoine Tremblay <antoine.tremblay@ericsson.com>
7562 * linux-low.c: Change interface to take the target lwp_info
7563 pointer directly and return void. Handle detaching from a zombie
7565 (linux_detach_lwp_callback): New function.
7566 (linux_detach): Detach from the leader thread after detaching from
7569 2016-06-28 Yao Qi <yao.qi@linaro.org>
7571 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
7572 for variable new_offset.
7573 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
7574 (aarch64_ftrace_insn_reloc_cb): Likewise.
7575 (aarch64_ftrace_insn_reloc_tb): Likewise.
7576 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
7577 PRIx64 instead of PRIx32.
7579 2016-06-28 Yao Qi <yao.qi@linaro.org>
7581 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
7582 (the_low_target): Install arm_get_syscall_trapinfo.
7584 2016-06-28 Yao Qi <yao.qi@linaro.org>
7586 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
7588 (the_low_target): Install aarch64_get_syscall_trapinfo.
7590 2016-06-28 Yao Qi <yao.qi@linaro.org>
7592 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
7594 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
7595 Remove parameter sysno.
7596 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
7599 2016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7601 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
7602 (s390_emit_ne_goto): Likewise.
7603 (s390_emit_lt_goto): Likewise.
7604 (s390_emit_le_goto): Likewise.
7605 (s390_emit_gt_goto): Likewise.
7606 (s390_emit_ge_goto): Likewise.
7607 (s390x_emit_eq_goto): Likewise.
7608 (s390x_emit_ne_goto): Likewise.
7609 (s390x_emit_lt_goto): Likewise.
7610 (s390x_emit_le_goto): Likewise.
7611 (s390x_emit_gt_goto): Likewise.
7612 (s390x_emit_ge_goto): Likewise.
7613 (s390_emit_ops_impl): Mark variable static.
7614 (s390x_emit_ops): Likewise.
7616 2016-06-17 Yao Qi <yao.qi@linaro.org>
7618 * linux-low.c (handle_extended_wait): Call
7619 uninsert_reinsert_breakpoints for the parent process. Remove
7620 reinsert breakpoints from the child process. Reinsert them to
7621 the parent process when vfork is done.
7622 * mem-break.c (uninsert_reinsert_breakpoints): New function.
7623 (reinsert_reinsert_breakpoints): New function.
7624 * mem-break.h (uninsert_reinsert_breakpoints): Declare
7625 (reinsert_reinsert_breakpoints): Declare.
7627 2016-06-17 Yao Qi <yao.qi@linaro.org>
7629 * linux-low.c (handle_extended_wait): If the parent is doing
7630 step-over, remove the reinsert breakpoints from the forked child.
7632 2016-06-17 Yao Qi <yao.qi@linaro.org>
7634 * linux-low.c (unsuspend_all_lwps): Declare.
7635 (linux_low_filter_event): If thread exited, call finish_step_over.
7636 If step-over is finished, unsuspend other threads.
7638 2016-06-17 Yao Qi <yao.qi@linaro.org>
7640 * linux-low.c (linux_resume_one_lwp_throw): Assert
7641 has_reinsert_breakpoints returns false.
7642 * mem-break.c (delete_disabled_breakpoints): Assert
7643 bp type isn't reinsert_breakpoint.
7645 2016-06-17 Yao Qi <yao.qi@linaro.org>
7647 * linux-low.c (maybe_hw_step): New function.
7648 (linux_resume_one_lwp_throw): Call maybe_hw_step.
7649 (finish_step_over): Switch current_thread to lwp temporarily,
7650 and assert has_reinsert_breakpoints returns true.
7651 (proceed_one_lwp): Call maybe_hw_step.
7652 * mem-break.c (has_reinsert_breakpoints): New function.
7653 * mem-break.h (has_reinsert_breakpoints): Declare.
7655 2016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
7657 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
7659 2016-05-17 Yao Qi <yao.qi@linaro.org>
7661 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
7662 instead of find_inferior.
7664 2016-05-05 Yao Qi <yao.qi@linaro.org>
7666 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
7667 Initialize res to zero.
7669 2016-05-05 Yao Qi <yao.qi@linaro.org>
7671 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
7674 2016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7676 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
7677 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
7678 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
7680 2016-04-28 Par Olsson <par.olsson@windriver.com>
7681 Simon Marchi <simon.marchi@ericsson.com>
7683 * tracepoint.c (write_inferior_int8): New function.
7684 (cmd_qtenable_disable): Write enable flag using
7685 write_inferior_int8.
7687 2016-04-25 Yao Qi <yao.qi@linaro.org>
7689 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
7690 (need_step_over_p): Return zero if the LWP has pending signals
7691 can be delivered on software single step target.
7693 2016-04-25 Yao Qi <yao.qi@linaro.org>
7695 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
7696 return instead of error.
7698 2016-04-22 Yao Qi <yao.qi@linaro.org>
7700 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
7703 2016-04-22 Yao Qi <yao.qi@linaro.org>
7705 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
7706 signal when stepping over breakpoint with software single
7709 2016-04-21 Pedro Alves <palves@redhat.com>
7711 * linux-s390-low.c (s390_collect_ptrace_register)
7712 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
7714 (s390_check_regset): Use void * instead of gdb_byte *.
7716 2016-04-20 Pedro Alves <palves@redhat.com>
7718 * configure: Renegerate.
7720 2016-04-20 Yao Qi <yao.qi@linaro.org>
7722 * linux-aarch32-low.c: Include "arch/arm-linux.h".
7723 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
7725 (arm_store_gregset): Likewise.
7727 2016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
7729 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
7730 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
7731 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
7732 (amd64-avx-mpx-linux.c): New rules.
7733 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
7734 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
7735 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
7736 (srv_amd64_regobj): Add amd64-avx-mpx.o.
7737 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
7738 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
7739 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
7740 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
7741 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
7742 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
7743 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
7744 * linux-x86-low.c (x86_linux_read_description): Add case for
7745 X86_XSTATE_AVX_MPX_MASK.
7746 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
7747 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
7748 init_registers_i386_avx_mpx_linux.
7749 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
7750 (initialize_low_tracepoint): Call
7751 init_registers_i386_avx_mpx_linux.
7752 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
7753 (initialize_low_tracepoint): Call
7754 init_registers_amd64_avx_mpx_linux.
7755 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
7756 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
7757 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
7760 2016-04-18 Pedro Alves <palves@redhat.com>
7762 * configure: Regenerate.
7764 2016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
7766 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
7767 (aarch64_emit_sub): Likewise.
7769 2016-04-12 Pedro Alves <palves@redhat.com>
7771 * utils.c (prepare_to_throw_exception): Delete.
7773 2016-04-05 Simon Marchi <simon.marchi@ericsson.com>
7775 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
7777 2016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
7779 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
7781 2016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
7783 * linux-aarch64-ipa.c: Add <elf.h> include.
7784 * linux-ppc-ipa.c: Add <elf.h> include.
7785 * linux-s390-ipa.c: Add <elf.h> include.
7787 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
7789 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
7790 (get_raw_reg_ptr): Likewise.
7791 (get_trace_state_variable_value_ptr): Likewise.
7792 (set_trace_state_variable_value_ptr): Likewise.
7793 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
7796 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
7797 Marcin Kościelnicki <koriakin@0x04.net>
7800 * linux-ppc-low.c (emit_insns): New function.
7801 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
7802 (ppc_emit_prologue): New function.
7803 (ppc_emit_epilogue): New function.
7804 (ppc_emit_add): New function.
7805 (ppc_emit_sub): New function.
7806 (ppc_emit_mul): New function.
7807 (ppc_emit_lsh): New function.
7808 (ppc_emit_rsh_signed): New function.
7809 (ppc_emit_rsh_unsigned): New function.
7810 (ppc_emit_ext): New function.
7811 (ppc_emit_zero_ext): New function.
7812 (ppc_emit_log_not): New function.
7813 (ppc_emit_bit_and): New function.
7814 (ppc_emit_bit_or): New function.
7815 (ppc_emit_bit_xor): New function.
7816 (ppc_emit_bit_not): New function.
7817 (ppc_emit_equal): New function.
7818 (ppc_emit_less_signed): New function.
7819 (ppc_emit_less_unsigned): New function.
7820 (ppc_emit_ref): New function.
7821 (ppc_emit_const): New function.
7822 (ppc_emit_reg): New function.
7823 (ppc_emit_pop): New function.
7824 (ppc_emit_stack_flush): New function.
7825 (ppc_emit_swap): New function.
7826 (ppc_emit_stack_adjust): New function.
7827 (ppc_emit_call): New function.
7828 (ppc_emit_int_call_1): New function.
7829 (ppc_emit_void_call_2): New function.
7830 (ppc_emit_if_goto): New function.
7831 (ppc_emit_goto): New function.
7832 (ppc_emit_eq_goto): New function.
7833 (ppc_emit_ne_goto): New function.
7834 (ppc_emit_lt_goto): New function.
7835 (ppc_emit_le_goto): New function.
7836 (ppc_emit_gt_goto): New function.
7837 (ppc_emit_ge_goto): New function.
7838 (ppc_write_goto_address): New function.
7839 (ppc_emit_ops_impl): New static variable.
7840 (ppc64v1_emit_prologue): New function.
7841 (ppc64v2_emit_prologue): New function.
7842 (ppc64_emit_epilogue): New function.
7843 (ppc64_emit_add): New function.
7844 (ppc64_emit_sub): New function.
7845 (ppc64_emit_mul): New function.
7846 (ppc64_emit_lsh): New function.
7847 (ppc64_emit_rsh_signed): New function.
7848 (ppc64_emit_rsh_unsigned): New function.
7849 (ppc64_emit_ext): New function.
7850 (ppc64_emit_zero_ext): New function.
7851 (ppc64_emit_log_not): New function.
7852 (ppc64_emit_bit_and): New function.
7853 (ppc64_emit_bit_or): New function.
7854 (ppc64_emit_bit_xor): New function.
7855 (ppc64_emit_bit_not): New function.
7856 (ppc64_emit_equal): New function.
7857 (ppc64_emit_less_signed): New function.
7858 (ppc64_emit_less_unsigned): New function.
7859 (ppc64_emit_ref): New function.
7860 (ppc64_emit_const): New function.
7861 (ppc64v1_emit_reg): New function.
7862 (ppc64v2_emit_reg): New function.
7863 (ppc64_emit_pop): New function.
7864 (ppc64_emit_stack_flush): New function.
7865 (ppc64_emit_swap): New function.
7866 (ppc64v1_emit_call): New function.
7867 (ppc64v2_emit_call): New function.
7868 (ppc64v1_emit_int_call_1): New function.
7869 (ppc64v2_emit_int_call_1): New function.
7870 (ppc64v1_emit_void_call_2): New function.
7871 (ppc64v2_emit_void_call_2): New function.
7872 (ppc64_emit_if_goto): New function.
7873 (ppc64_emit_eq_goto): New function.
7874 (ppc64_emit_ne_goto): New function.
7875 (ppc64_emit_lt_goto): New function.
7876 (ppc64_emit_le_goto): New function.
7877 (ppc64_emit_gt_goto): New function.
7878 (ppc64_emit_ge_goto): New function.
7879 (ppc64v1_emit_ops_impl): New static variable.
7880 (ppc64v2_emit_ops_impl): New static variable.
7881 (ppc_emit_ops): New function.
7882 (linux_low_target): Wire in ppc_emit_ops.
7884 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
7885 Marcin Kościelnicki <koriakin@0x04.net>
7888 * Makefile.in: Add powerpc-*-ipa.o
7889 * configure.srv: Add ipa_obj for powerpc*-linux.
7890 * linux-ppc-ipa.c: New file.
7891 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
7893 (PPC_FIELD): New macro.
7894 (PPC_SEXT): New macro.
7895 (PPC_OP6): New macro.
7896 (PPC_BO): New macro.
7897 (PPC_LI): New macro.
7898 (PPC_BD): New macro.
7899 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
7900 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
7901 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
7902 (ppc_get_thread_area): New function.
7903 (is_elfv2_inferior): New function.
7904 (gen_ds_form): New function.
7905 (GEN_STD): New macro.
7906 (GEN_STDU): New macro.
7907 (GEN_LD): New macro.
7908 (GEN_LDU): New macro.
7909 (gen_d_form): New function.
7910 (GEN_ADDI): New macro.
7911 (GEN_ADDIS): New macro.
7912 (GEN_LI): New macro.
7913 (GEN_LIS): New macro.
7914 (GEN_ORI): New macro.
7915 (GEN_ORIS): New macro.
7916 (GEN_LWZ): New macro.
7917 (GEN_STW): New macro.
7918 (GEN_STWU): New macro.
7919 (gen_xfx_form): New function.
7920 (GEN_MFSPR): New macro.
7921 (GEN_MTSPR): New macro.
7922 (GEN_MFCR): New macro.
7923 (GEN_MTCR): New macro.
7924 (GEN_SYNC): New macro.
7925 (GEN_LWSYNC): New macro.
7926 (gen_x_form): New function.
7927 (GEN_OR): New macro.
7928 (GEN_MR): New macro.
7929 (GEN_LWARX): New macro.
7930 (GEN_STWCX): New macro.
7931 (GEN_CMPW): New macro.
7932 (gen_md_form): New function.
7933 (GEN_RLDICL): New macro.
7934 (GEN_RLDICR): New macro.
7935 (gen_i_form): New function.
7937 (GEN_BL): New macro.
7938 (gen_b_form): New function.
7939 (GEN_BNE): New macro.
7940 (GEN_LOAD): New macro.
7941 (GEN_STORE): New macro.
7942 (gen_limm): New function.
7943 (gen_atomic_xchg): New function.
7944 (gen_call): New function.
7945 (ppc_relocate_instruction): New function.
7946 (ppc_install_fast_tracepoint_jump_pad): New function.
7947 (ppc_get_min_fast_tracepoint_insn_len): New function.
7948 (ppc_get_ipa_tdesc_idx): New function.
7949 (the_low_target): Wire in the new functions.
7950 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
7952 * linux-ppc-tdesc.h: New file.
7954 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
7956 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
7957 (alloc_jump_pad_buffer): New function.
7958 * linux-amd64-ipa.c: Add <sys/mman.h> include.
7959 (alloc_jump_pad_buffer): New function.
7960 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
7961 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
7962 (alloc_jump_pad_buffer): New function.
7963 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
7964 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
7965 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
7966 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
7968 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
7970 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
7971 * linux-amd64-ipa.c: Likewise.
7972 * linux-i386-ipa.c: Likewise.
7973 * linux-s390-ipa.c: Likewise.
7974 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
7975 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
7976 set_trace_state_variable_value_ptr.
7977 (struct ipa_sym_addresses): Likewise.
7978 (symbol_list): Likewise.
7979 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
7980 accessing gdb_collect directly.
7981 (gdb_collect_ptr_type): New typedef.
7982 (get_raw_reg_ptr_type): New typedef.
7983 (get_trace_state_variable_value_ptr_type): New typedef.
7984 (set_trace_state_variable_value_ptr_type): New typedef.
7985 (gdb_collect_ptr): New global.
7986 (get_raw_reg_ptr): New global.
7987 (get_trace_state_variable_value_ptr): New global.
7988 (set_trace_state_variable_value_ptr): New global.
7989 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
7990 accessing get_raw_reg directly.
7991 (get_get_tsv_func_addr): Likewise for
7992 get_trace_state_variable_value_ptr.
7993 (get_set_tsv_func_addr): Likewise for
7994 set_trace_state_variable_value_ptr.
7995 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
7997 2016-03-30 Simon Marchi <simon.marchi@ericsson.com>
7999 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
8001 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8003 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
8005 (relocate_instruction): Remove own_buf.
8006 * server.c (own_buf): Make global.
8007 (handle_v_requests): Make global.
8008 * server.h (own_buf): New declaration.
8009 (handle_v_requests): New prototype.
8011 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8014 * linux-s390-low.c (add_insns): New function.
8015 (s390_emit_prologue): New function.
8016 (s390_emit_epilogue): New function.
8017 (s390_emit_add): New function.
8018 (s390_emit_sub): New function.
8019 (s390_emit_mul): New function.
8020 (s390_emit_lsh): New function.
8021 (s390_emit_rsh_signed): New function.
8022 (s390_emit_rsh_unsigned): New function.
8023 (s390_emit_ext): New function.
8024 (s390_emit_log_not): New function.
8025 (s390_emit_bit_and): New function.
8026 (s390_emit_bit_or): New function.
8027 (s390_emit_bit_xor): New function.
8028 (s390_emit_bit_not): New function.
8029 (s390_emit_equal): New function.
8030 (s390_emit_less_signed): New function.
8031 (s390_emit_less_unsigned): New function.
8032 (s390_emit_ref): New function.
8033 (s390_emit_if_goto): New function.
8034 (s390_emit_goto): New function.
8035 (s390_write_goto_address): New function.
8036 (s390_emit_litpool): New function.
8037 (s390_emit_const): New function.
8038 (s390_emit_call): New function.
8039 (s390_emit_reg): New function.
8040 (s390_emit_pop): New function.
8041 (s390_emit_stack_flush): New function.
8042 (s390_emit_zero_ext): New function.
8043 (s390_emit_swap): New function.
8044 (s390_emit_stack_adjust): New function.
8045 (s390_emit_set_r2): New function.
8046 (s390_emit_int_call_1): New function.
8047 (s390_emit_void_call_2): New function.
8048 (s390_emit_eq_goto): New function.
8049 (s390_emit_ne_goto): New function.
8050 (s390_emit_lt_goto): New function.
8051 (s390_emit_le_goto): New function.
8052 (s390_emit_gt_goto): New function.
8053 (s390_emit_ge_goto): New function.
8054 (s390x_emit_prologue): New function.
8055 (s390x_emit_epilogue): New function.
8056 (s390x_emit_add): New function.
8057 (s390x_emit_sub): New function.
8058 (s390x_emit_mul): New function.
8059 (s390x_emit_lsh): New function.
8060 (s390x_emit_rsh_signed): New function.
8061 (s390x_emit_rsh_unsigned): New function.
8062 (s390x_emit_ext): New function.
8063 (s390x_emit_log_not): New function.
8064 (s390x_emit_bit_and): New function.
8065 (s390x_emit_bit_or): New function.
8066 (s390x_emit_bit_xor): New function.
8067 (s390x_emit_bit_not): New function.
8068 (s390x_emit_equal): New function.
8069 (s390x_emit_less_signed): New function.
8070 (s390x_emit_less_unsigned): New function.
8071 (s390x_emit_ref): New function.
8072 (s390x_emit_if_goto): New function.
8073 (s390x_emit_const): New function.
8074 (s390x_emit_call): New function.
8075 (s390x_emit_reg): New function.
8076 (s390x_emit_pop): New function.
8077 (s390x_emit_stack_flush): New function.
8078 (s390x_emit_zero_ext): New function.
8079 (s390x_emit_swap): New function.
8080 (s390x_emit_stack_adjust): New function.
8081 (s390x_emit_int_call_1): New function.
8082 (s390x_emit_void_call_2): New function.
8083 (s390x_emit_eq_goto): New function.
8084 (s390x_emit_ne_goto): New function.
8085 (s390x_emit_lt_goto): New function.
8086 (s390x_emit_le_goto): New function.
8087 (s390x_emit_gt_goto): New function.
8088 (s390x_emit_ge_goto): New function.
8089 (s390_emit_ops): New function.
8090 (struct linux_target_ops): Fill in emit_ops hook.
8092 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8095 * Makefile.in: Add s390 IPA files.
8096 * configure.srv: Build IPA for s390.
8097 * linux-s390-ipa.c: New file.
8098 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
8099 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
8100 (tdesc_s390_linux32): Likewise.
8101 (init_registers_s390_linux32v1): Likewise.
8102 (tdesc_s390_linux32v1): Likewise.
8103 (init_registers_s390_linux32v2): Likewise.
8104 (tdesc_s390_linux32v2): Likewise.
8105 (init_registers_s390_linux64): Likewise.
8106 (tdesc_s390_linux64): Likewise.
8107 (init_registers_s390_linux64v1): Likewise.
8108 (tdesc_s390_linux64v1): Likewise.
8109 (init_registers_s390_linux64v2): Likewise.
8110 (tdesc_s390_linux64v2): Likewise.
8111 (init_registers_s390_te_linux64): Likewise.
8112 (tdesc_s390_te_linux64): Likewise.
8113 (init_registers_s390_vx_linux64): Likewise.
8114 (tdesc_s390_vx_linux64): Likewise.
8115 (init_registers_s390_tevx_linux64): Likewise.
8116 (tdesc_s390_tevx_linux64): Likewise.
8117 (init_registers_s390x_linux64): Likewise.
8118 (tdesc_s390x_linux64): Likewise.
8119 (init_registers_s390x_linux64v1): Likewise.
8120 (tdesc_s390x_linux64v1): Likewise.
8121 (init_registers_s390x_linux64v2): Likewise.
8122 (tdesc_s390x_linux64v2): Likewise.
8123 (init_registers_s390x_te_linux64): Likewise.
8124 (tdesc_s390x_te_linux64): Likewise.
8125 (init_registers_s390x_vx_linux64): Likewise.
8126 (tdesc_s390x_vx_linux64): Likewise.
8127 (init_registers_s390x_tevx_linux64): Likewise.
8128 (tdesc_s390x_tevx_linux64): Likewise.
8129 (have_hwcap_s390_vx): New static variable.
8130 (s390_arch_setup): Fill have_hwcap_s390_vx.
8131 (s390_get_thread_area): New function.
8132 (s390_ft_entry_gpr_esa): New const.
8133 (s390_ft_entry_gpr_zarch): New const.
8134 (s390_ft_entry_misc): New const.
8135 (s390_ft_entry_fr): New const.
8136 (s390_ft_entry_vr): New const.
8137 (s390_ft_main_31): New const.
8138 (s390_ft_main_64): New const.
8139 (s390_ft_exit_fr): New const.
8140 (s390_ft_exit_vr): New const.
8141 (s390_ft_exit_misc): New const.
8142 (s390_ft_exit_gpr_esa): New const.
8143 (s390_ft_exit_gpr_zarch): New const.
8144 (append_insns): New function.
8145 (s390_relocate_instruction): New function.
8146 (s390_install_fast_tracepoint_jump_pad): New function.
8147 (s390_get_min_fast_tracepoint_insn_len): New function.
8148 (s390_get_ipa_tdesc_idx): New function.
8149 (struct linux_target_ops): Wire in the above functions.
8150 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
8151 * linux-s390-tdesc.h: New file.
8153 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8155 * linux-s390-low.c (s390_supports_tracepoints): New function.
8156 (struct linux_target_ops): Fill supports_tracepoints hook.
8158 2016-03-18 Yao Qi <yao.qi@linaro.org>
8160 * linux-low.c (lwp_signal_can_be_delivered): New function.
8161 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
8163 2016-03-18 Yao Qi <yao.qi@linaro.org>
8165 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
8166 0 if signal is enqueued. Remove 'signal' from one debugging
8167 message. Move one debugging message to some lines below.
8168 Remove code setting 'signal' to 0.
8170 2016-03-18 Yao Qi <yao.qi@linaro.org>
8172 * linux-low.c (linux_low_filter_event): Remove redundant
8173 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
8175 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
8177 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
8178 (struct linux_target_ops): Wire in the above.
8180 2016-03-03 Yao Qi <yao.qi@linaro.org>
8182 * linux-low.c: Update comments to start_step_over.
8184 2016-03-03 Yao Qi <yao.qi@linaro.org>
8187 * linux-low.c (handle_extended_wait): Set child suspended
8188 if event_lwp->bp_reinsert isn't zero.
8190 2016-03-02 Yao Qi <yao.qi@linaro.org>
8192 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
8193 enqueue_pending_signal.
8195 2016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
8197 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
8200 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8202 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
8203 (s390_regmap_3264) [!__s390x__]: New global.
8204 (s390_collect_ptrace_register): Skip map entries containing -1.
8205 (s390_supply_ptrace_register): Ditto.
8206 (s390_fill_gprs_high): New function.
8207 (s390_store_gprs_high): New function.
8208 (s390_regsets): Add NT_S390_HIGH_GPRS.
8209 (s390_get_hwcap): Enable on 31-bit.
8210 (have_hwcap_s390_high_gprs): Enable on 31-bit.
8211 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
8212 Detect NT_S390_HIGH_GPRS.
8213 (s390_usrregs_info_3264): Enable on 31-bit.
8214 (s390_regs_info): Enable regs_info_3264 on 31-bit.
8215 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
8217 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8220 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
8221 * configure.srv: Ditto.
8222 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
8223 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
8224 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
8225 (init_registers_amd64_linux): Remove prototype.
8226 (tdesc_amd64_linux): Remove declaration.
8227 (get_ipa_tdesc): New function.
8228 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8229 initialize remaining tdescs.
8230 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
8231 (init_registers_i386_linux): Remove prototype.
8232 (tdesc_i386_linux): Remove declaration.
8233 (get_ipa_tdesc): New function.
8234 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8235 initialize remaining tdescs.
8236 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
8237 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
8238 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
8239 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
8240 (x86_get_ipa_tdesc_idx): New function.
8241 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
8242 * linux-x86-tdesc.h: New file.
8243 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
8244 (target_get_ipa_tdesc_idx): New macro.
8245 * tracepoint.c (ipa_tdesc_idx): New macro.
8246 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
8247 (symbol_list): Add ipa_tdesc_idx.
8248 (cmd_qtstart): Write ipa_tdesc_idx in the target.
8249 (ipa_tdesc): Remove.
8250 (ipa_tdesc_idx): New variable.
8251 (get_context_regcache): Use get_ipa_tdesc.
8252 (gdb_collect): Ditto.
8254 * tracepoint.h (get_ipa_tdesc): New prototype.
8255 (ipa_tdesc): Remove.
8257 2016-02-24 Pedro Alves <palves@redhat.com>
8259 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
8260 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
8261 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
8262 Factor out common code between the USE_SIGTRAP_SIGINFO and
8263 !USE_SIGTRAP_SIGINFO blocks.
8264 (linux_low_filter_event): Call save_stop_reason instead of
8265 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
8267 (linux_wait_1): Update comments.
8269 2016-02-24 Wei-cheng Wang <cole945@gmail.com>
8271 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
8272 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
8273 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
8274 ppc_insert_point, ppc_remove_point.
8276 2016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
8278 * linux-s390-low.c (s390_supports_z_point_type): New function.
8279 (struct linux_target_ops): Wire s390_supports_z_point_type in.
8281 2016-02-16 Yao Qi <yao.qi@linaro.org>
8283 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
8284 PC. Get pc from regcache_read_pc.
8286 2016-02-12 Yao Qi <yao.qi@linaro.org>
8288 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
8289 or linux_get_pc_32bit.
8290 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
8292 2016-02-12 Yao Qi <yao.qi@linaro.org>
8294 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
8295 arm_linux_get_next_pcs_fixup.
8297 2016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
8299 * tracepoint.c (x_tracepoint_action_download): Change
8300 write_inferior_data_ptr to write_inferior_data_pointer.
8301 (cmd_qtstart): Likewise.
8302 (write_inferior_data_ptr): Remove.
8303 (download_agent_expr): Change write_inferior_data_ptr to
8304 write_inferior_data_pointer.
8305 (download_tracepoint_1): Likewise.
8306 (download_tracepoint): Likewise.
8307 (download_trace_state_variables): Likewise.
8309 2016-02-11 Wei-cheng Wang <cole945@gmail.com>
8310 Marcin Kościelnicki <koriakin@0x04.net>
8312 * tracepoint.c (struct tracepoint_action_ops): Remove.
8313 (struct tracepoint_action): Remove ops.
8314 (m_tracepoint_action_download, r_tracepoint_action_download)
8315 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
8316 size and offset accordingly.
8317 (m_tracepoint_action_ops, r_tracepoint_action_ops)
8318 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
8319 (tracepoint_action_send, tracepoint_action_download): New functions.
8320 Helpers for trace action handlers.
8321 (add_tracepoint_action): Remove setup actions ops.
8322 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
8324 2016-02-10 Yao Qi <yao.qi@linaro.org>
8326 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
8328 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8330 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
8332 * configure: Regenerate.
8334 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8336 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
8337 void * to gdb_byte *.
8338 * linux-low.c (siginfo_fixup): Likewise.
8339 (linux_xfer_siginfo): Likewise.
8340 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
8342 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
8344 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
8346 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
8348 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
8350 * linux-x86-low.c [__x86_64__]: Include
8351 "nat/amd64-linux-siginfo.h".
8352 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
8353 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
8354 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
8355 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
8356 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
8357 (cpt_si_fd, si_timerid, si_overrun): Move from
8358 nat/amd64-linux-siginfo.c.
8359 * Makefile.in (amd64-linux-siginfo.o:): New rule.
8361 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
8363 * server.c (skip_to_semicolon): Remove.
8364 (process_point_options): Use strchrnul instead of
8367 2016-01-26 Yao Qi <yao.qi@linaro.org>
8369 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
8370 * linux-low.c (install_software_single_step_breakpoints): Don't
8371 call regcache_read_pc.
8372 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
8375 2016-01-26 Yao Qi <yao.qi@linaro.org>
8377 * linux-low.c (install_software_single_step_breakpoints): Call
8378 regcache_read_pc instead of get_pc.
8380 2016-01-26 Yao Qi <yao.qi@linaro.org>
8382 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
8383 (unblock_async_io): Rename to ...
8384 (block_unblock_async_io): ... it. New function.
8385 (enable_async_io): Don't install SIGIO handler. Unblock it
8387 (disable_async_io): Don't ignore SIGIO. Block it instead.
8388 (initialize_async_io): Install SIGIO handler. Don't call
8391 2016-01-26 Yao Qi <yao.qi@linaro.org>
8393 * remote-utils.c (getpkt): If the buffer isn't empty, and the
8394 first character is '\003', call *the_target->request_interrupt.
8396 2016-01-25 Yao Qi <yao.qi@linaro.org>
8398 * remote-utils.c (new_thread_notify): Remove.
8399 (dead_thread_notify): Likewise.
8400 * remote-utils.h (new_thread_notify): Remove declaration.
8401 (dead_thread_notify): Likewise.
8403 2016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
8405 * gdb.trace/pending.exp: Fix expected message on continue.
8407 2016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
8409 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
8410 it works properly on big-endian machines where sizeof (CORE_ADDR)
8413 2016-01-21 Pedro Alves <palves@redhat.com>
8415 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
8416 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
8417 * configure: Regenerate.
8419 2016-01-21 Yao Qi <yao.qi@linaro.org>
8421 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
8422 is_thumb and set it according to CPSR saved on the stack.
8423 (get_next_pcs_syscall_next_pc): Pass is_thumb to
8424 arm_sigreturn_next_pc.
8426 2016-01-18 Yao Qi <yao.qi@linaro.org>
8428 * linux-low.c (linux_set_pc_64bit): New function.
8429 (linux_get_pc_64bit): New function.
8430 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
8432 * linux-sparc-low.c (debug_threads): Remove declaration.
8433 (sparc_get_pc): Remove.
8434 (the_low_target): Use linux_get_pc_64bit instead of
8436 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
8437 (the_low_target): Use linux_get_pc_64bit and
8440 2016-01-18 Yao Qi <yao.qi@linaro.org>
8442 * linux-arm-low.c (debug_threads): Remove declaration.
8443 (arm_get_pc, arm_set_pc): Remove.
8444 (the_low_target): Use linux_get_pc_32bit and
8446 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
8447 (the_low_target): Use linux_get_pc_32bit and
8449 * linux-cris-low.c (debug_threads): Remove declaration.
8450 (cris_get_pc, cris_set_pc,): Remove.
8451 (the_low_target): Use linux_get_pc_32bit and
8453 * linux-crisv32-low.c (debug_threads): Remove declaration.
8454 (cris_get_pc, cris_set_pc): Remove.
8455 (the_low_target): Use linux_get_pc_32bit and
8457 * linux-low.c: Include inttypes.h.
8458 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
8459 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
8460 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
8461 (the_low_target): Use linux_get_pc_32bit and
8463 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
8464 (the_low_target): Use linux_get_pc_32bit and
8466 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
8467 (the_low_target): Use linux_get_pc_32bit and
8469 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
8470 (the_low_target): Use linux_get_pc_32bit and
8472 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
8473 (the_low_target): Use linux_get_pc_32bit and
8476 2016-01-18 Gary Benson <gbenson@redhat.com>
8478 * configure.ac (AC_FUNC_FORK): New check.
8479 * config.in: Regenerate.
8480 * configure: Likewise.
8482 2016-01-14 Yao Qi <yao.qi@linaro.org>
8484 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
8485 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
8486 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
8487 arm_get_next_pcs_ctor.
8489 2016-01-12 Josh Stone <jistone@redhat.com>
8490 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8492 * inferiors.h: Include "gdb_vecs.h".
8493 (struct process_info): Add syscalls_to_catch.
8494 * inferiors.c (remove_process): Free syscalls_to_catch.
8495 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
8496 syscall_return stops.
8497 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
8498 * server.c (handle_general_set): Handle QCatchSyscalls.
8499 (handle_query): Report support for QCatchSyscalls.
8500 * target.h (struct target_ops): Add supports_catch_syscall.
8501 (target_supports_catch_syscall): New macro.
8502 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
8503 (struct lwp_info): Add syscall_state.
8504 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
8505 Maintain syscall_state and syscalls_to_catch across exec.
8506 (get_syscall_trapinfo): New function, proxy to the_low_target.
8507 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
8508 (linux_low_filter_event): Toggle syscall_state entry/return for
8509 syscall traps, and set it ignored for all others.
8510 (gdb_catching_syscalls_p): New function.
8511 (gdb_catch_this_syscall_p): New function.
8512 (linux_wait_1): Handle SYSCALL_SIGTRAP.
8513 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
8514 (linux_supports_catch_syscall): New function.
8515 (linux_target_ops): Install it.
8516 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
8517 (the_low_target): Install it.
8519 2016-01-12 Mike Frysinger <vapier@gentoo.org>
8521 * acinclude.m4: Include new ../warning.m4 file.
8522 * configure: Regenerated.
8523 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
8525 2016-01-12 Mike Frysinger <vapier@gentoo.org>
8527 * ax.c (is_goto_target): Mark static.
8528 * linux-low.c (register_addr): Likewise.
8529 (linux_fetch_registers, linux_store_registers): Likewise.
8530 * mem-break.c (any_persistent_commands): Fix old prototype.
8531 (add_commands_to_breakpoint): Mark static.
8532 * regcache.c (find_register_by_name): Delete unused func.
8533 * remote-utils.c (hex_or_minus_one): Mark static.
8534 * server.c (monitor_show_help): Mark static.
8535 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
8536 handle_v_requests): Likewise.
8538 2016-01-12 Pedro Alves <palves@redhat.com>
8540 Remove use of the registered trademark symbol throughout.
8542 2016-01-08 Yao Qi <yao.qi@linaro.org>
8544 * remote-utils.c (getpkt): If c is '\003', call target hook
8547 2016-01-06 Yao Qi <yao.qi@linaro.org>
8549 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
8550 linux-aarch32-low.c.
8551 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8552 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
8553 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8554 (thumb2_breakpoint): Declare.
8555 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
8556 linux-aarch32-low.h.
8557 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8558 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
8559 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8561 2016-01-01 Joel Brobecker <brobecker@adacore.com>
8563 * gdbreplay.c (gdbreplay_version): Change copyright year in
8565 * server.c (gdbserver_version): Likewise.
8567 2015-12-28 Patrick Palka <patrick@parcs.ath.cx>
8569 * server.c (crc32_table): Delete.
8570 (crc32): Use libiberty's xcrc32 function.
8572 2015-12-22 Joel Brobecker <brobecker@adacore.com>
8574 * lynx-low.c (lynx_delete_thread_callback): New function.
8575 (lynx_mourn): Properly delete our process and all of its
8576 threads. Remove call to clear_inferiors.
8578 2015-12-22 Joel Brobecker <brobecker@adacore.com>
8580 * target.c (thread_search_callback): Add check that
8581 the thread_stopped target callback is not NULL before
8584 2015-12-21 Yao Qi <yao.qi@linaro.org>
8586 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
8589 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8591 * server.c (handle_query): Call target_supports_software_single_step.
8593 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8595 * linux-low.c (single_step): New function.
8596 (linux_resume_one_lwp_throw): Call single_step.
8597 (start_step_over): Likewise.
8599 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8601 * Makefile.in (SFILES): Append arch/arm-linux.c,
8602 arch/arm-get-next-pcs.c.
8603 (arm-linux.o): New rule.
8604 (arm-get-next-pcs.o): New rule.
8605 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
8607 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
8608 to linux-aarch32-low.c.
8609 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8610 (arm_breakpoint_len, thumb_breakpoint): Likewise.
8611 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
8612 (thumb2_breakpoint_len): Likewise.
8613 (arm_is_thumb_mode): Make non-static.
8614 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
8615 from linux-aarch32-low.c.
8616 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8617 (arm_breakpoint_len, thumb_breakpoint): Likewise.
8618 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
8619 (thumb2_breakpoint_len): Likewise.
8620 (arm_is_thumb_mode): New declaration.
8621 * linux-arm-low.c: Include arch/arm-linux.h
8622 aarch/arm-get-next-pcs.h, sys/syscall.h.
8623 (get_next_pcs_ops): New struct.
8624 (get_next_pcs_addr_bits_remove): New function.
8625 (get_next_pcs_is_thumb): New function.
8626 (get_next_pcs_read_memory_unsigned_integer): Likewise.
8627 (arm_sigreturn_next_pc): Likewise.
8628 (get_next_pcs_syscall_next_pc): Likewise.
8629 (arm_gdbserver_get_next_pcs): Likewise.
8630 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
8632 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
8633 * server.h: Include gdb_vecs.h.
8635 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8637 * Makefile.in (SFILES): Append common/common-regcache.c.
8638 (OBS): Append common-regcache.o.
8639 (common-regcache.o): New rule.
8640 * regcache.c (init_register_cache): Initialize cache to
8642 (regcache_raw_read_unsigned): New function.
8643 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
8644 register_status enum.
8646 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8648 * linux-aarch64-low.c (the_low_targets): Rename
8649 breakpoint_reinsert_addr to get_next_pcs.
8650 * linux-arm-low.c (the_low_targets): Likewise.
8651 * linux-bfin-low.c (the_low_targets): Likewise.
8652 * linux-cris-low.c (the_low_targets): Likewise.
8653 * linux-crisv32-low.c (the_low_targets): Likewise.
8654 * linux-low.c (can_software_single_step): Likewise.
8655 (install_software_single_step_breakpoints): New function.
8656 (start_step_over): Use install_software_single_step_breakpoints.
8657 * linux-low.h: New CORE_ADDR vector.
8658 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
8660 * linux-mips-low.c (the_low_targets): Likewise.
8661 * linux-nios2-low.c (the_low_targets): Likewise.
8662 * linux-sparc-low.c (the_low_targets): Likewise.
8664 2015-12-17 Pedro Alves <palves@redhat.com>
8666 * linux-low.c (linux_kill_one_lwp): Remove references to
8668 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
8670 (linux_init_signals): Delete.
8671 (initialize_low): Adjust.
8672 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
8674 2015-12-16 Pedro Alves <palves@redhat.com>
8676 * configure.ac (compiler warning flags): When testing a
8677 -Wno-foo option, check whether -Wfoo works instead.
8678 * configure: Regenerate.
8680 2015-12-11 Don Breazeal <donb@codesourcery.com>
8682 * server.c (process_serial_event): Don't exit from gdbserver
8683 in remote mode if there are still active inferiors.
8685 2015-12-11 Yao Qi <yao.qi@linaro.org>
8687 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
8688 arm_breakpoint_at if the process is 32-bit.
8690 2015-12-11 Yao Qi <yao.qi@linaro.org>
8692 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
8695 2015-12-07 Yao Qi <yao.qi@linaro.org>
8697 * configure.srv: Append arm.o to srv_tgtobj for
8698 aarch64*-*-linux* target.
8699 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
8700 from linux-arm-low.c.
8701 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8702 (arm_breakpoint_len, thumb_breakpoint): Likewise.
8703 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
8704 (thumb2_breakpoint_len): Likewise.
8705 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
8706 (arm_breakpoint_kinds): Likewise.
8707 (arm_breakpoint_kind_from_pc): Likewise.
8708 (arm_sw_breakpoint_from_kind): Likewise.
8709 (arm_breakpoint_kind_from_current_state): Likewise.
8710 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
8711 (arm_sw_breakpoint_from_kind): Declare.
8712 (arm_breakpoint_kind_from_current_state): Declare.
8713 (arm_breakpoint_at): Declare.
8714 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
8715 arm_sw_breakpoint_from_kind if process is 32-bit.
8716 (aarch64_breakpoint_kind_from_pc): New function.
8717 (aarch64_breakpoint_kind_from_current_state): New function.
8718 (the_low_target): Initialize fields breakpoint_kind_from_pc
8719 and breakpoint_kind_from_current_state.
8720 * linux-arm-low.c (arm_breakpoint_kinds): Move to
8721 linux-aarch32-low.c.
8722 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
8723 (arm_breakpoint, arm_breakpoint_len): Likewise.
8724 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
8725 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8726 (arm_is_thumb_mode): Likewise.
8727 (arm_breakpoint_at): Likewise.
8728 (arm_breakpoint_kind_from_pc): Likewise.
8729 (arm_sw_breakpoint_from_kind): Likewise.
8730 (arm_breakpoint_kind_from_current_state): Likewise.
8733 2015-08-04 Yao Qi <yao.qi@linaro.org>
8735 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
8736 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
8737 * server.c (extended_protocol): Remove "static".
8738 * server.h (extended_protocol): Declare it.
8740 2015-12-04 Josh Stone <jistone@redhat.com>
8742 * target.h (struct target_ops) <arch_setup>: Rename to ...
8743 (struct target_ops) <post_create_inferior>: ... this.
8744 (target_arch_setup): Rename to ...
8745 (target_post_create_inferior): ... this, calling post_create_inferior.
8746 * server.c (start_inferior): Update target_arch_setup calls to
8747 target_post_create_inferior.
8748 * linux-low.c (linux_low_ptrace_options): Forward declare.
8749 (linux_arch_setup): Update its comment for general use.
8750 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
8751 (struct linux_target_ops): Use linux_post_create_inferior.
8752 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
8753 to post_create_inferior.
8754 * nto-low.c (struct nto_target_ops): Likewise.
8755 * spu-low.c (struct spu_target_ops): Likewise.
8756 * win32-low.c (struct win32_target_ops): Likewise.
8758 2015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
8760 * linux-arm-low.c: Remove duplicate arch/arm.h include.
8762 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
8764 * linux-arm-low.c (arm_reinsert_addr): Remove function.
8765 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
8766 * linux-cris-low.c (cris_reinsert_addr> Remove function.
8767 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
8768 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
8769 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
8770 * linux-mips-low.c (mips_reinsert_addr): Remove function.
8771 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
8772 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
8773 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
8774 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
8775 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
8777 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
8779 * linux-low.c (linux_look_up_symbols): Don't call
8780 linux_supports_traceclone.
8781 * linux-low.h (thread_db_init): Remove use_events argument.
8782 * thread-db.c (thread_db_use_event): Remove global variable.
8783 (struct thread_db) <td_thr_event_enable_p>: Remove field.
8784 (struct thread_db) <td_create_bp>: Remove field.
8785 (thread_db_create_event): Remove function.
8786 (thread_db_enable_reporting): Likewise.
8787 (find_one_thread): Don't check for thread_db_use_events.
8788 (attach_thread): Likewise.
8789 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
8790 (try_thread_db_load_1): Don't check for thread_db_use_events.
8791 (thread_db_init): Remove use_events argument and thread events
8793 (remove_thread_event_breakpoints): Remove function.
8794 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
8796 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
8798 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
8800 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8801 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
8802 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8803 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
8804 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
8806 * linux-crisv32-low.c (cris_supports_hardware_single_step):
8808 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8809 * linux-low.c (can_hardware_single_step): Use
8810 supports_hardware_single_step.
8811 (can_software_single_step): New function.
8812 (start_step_over): Call can_software_single_step.
8813 (linux_supports_hardware_single_step): New function.
8814 (struct target_ops) <supports_software_single_step>: Initialize.
8815 * linux-low.h (struct linux_target_ops)
8816 <supports_hardware_single_step>: Initialize.
8817 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
8818 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8819 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
8820 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
8821 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
8822 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8823 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
8824 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8825 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
8826 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
8828 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
8829 (struct linux_target_ops) <tile_supports_hardware_single_step>:
8831 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
8832 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8833 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
8835 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8836 * target.h (struct target_ops): <supports_software_single_step>:
8838 (target_supports_software_single_step): New macro.
8840 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
8842 * linux-low.c (linux_wait_1): Fix pc advance condition.
8843 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
8844 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
8846 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
8848 * linux-arm-low.c (arm_is_thumb_mode): New function.
8849 (arm_breakpoint_at): Use arm_is_thumb_mode.
8850 (arm_breakpoint_kind_from_current_state): New function.
8851 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
8853 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
8854 (linux_breakpoint_kind_from_current_state): New function.
8855 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
8856 * linux-low.h (struct linux_target_ops)
8857 <breakpoint_kind_from_current_state>: New field.
8858 * target.h (struct target_ops): Likewise.
8859 (target_breakpoint_kind_from_current_state): New macro.
8861 2015-11-30 Pedro Alves <palves@redhat.com>
8863 * linux-low.c (linux_resume): Wake up the event loop before
8866 2015-11-30 Pedro Alves <palves@redhat.com>
8868 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
8870 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
8872 * target.c (struct thread_search): New structure.
8873 (thread_search_callback): New function.
8874 (prev_general_thread): New global.
8875 (prepare_to_access_memory, done_accessing_memory): New functions.
8876 * target.h (prepare_to_access_memory, done_accessing_memory):
8877 Replace macros with function declarations.
8879 2015-11-30 Pedro Alves <palves@redhat.com>
8882 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
8883 report TARGET_WAITKIND_NO_RESUMED.
8884 * remote-utils.c (prepare_resume_reply): Handle
8885 TARGET_WAITKIND_NO_RESUMED.
8886 * server.c (report_no_resumed): New global.
8887 (handle_query) <qSupported>: Handle "no-resumed+". Report
8888 "no-resumed+" support.
8889 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
8890 return error if the client doesn't support no-resumed events.
8891 (push_stop_notification): New function.
8892 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
8893 events if the client supports them.
8895 2015-11-30 Pedro Alves <palves@redhat.com>
8897 * linux-low.c (thread_still_has_status_pending_p): Don't check
8899 (lwp_resumed): New function.
8900 (status_pending_p_callback): Return early if the LWP is not
8901 supposed to be resumed.
8903 2015-11-30 Pedro Alves <palves@redhat.com>
8905 * linux-low.c (handle_extended_wait): Assert that the LWP's
8906 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
8907 thread create events, leave the new child's status pending.
8908 (linux_low_filter_event): If GDB wants to hear about thread exit
8909 events, leave the LWP marked dead and don't delete it.
8910 (linux_wait_for_event_filtered): Don't check for thread exit.
8911 (filter_exit_event): New function.
8912 (linux_wait_1): Use it, when returning an exit event.
8913 (linux_resume_one_lwp_throw): Assert that the LWP's
8914 waitstatus is TARGET_WAITKIND_IGNORE.
8915 * remote-utils.c (prepare_resume_reply): Handle
8916 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
8917 * server.c (report_thread_events): New global.
8918 (handle_general_set): Handle QThreadEvents.
8919 (handle_query) <qSupported>: Handle and report QThreadEvents+;
8920 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
8921 TARGET_WAITKIND_THREAD_EXITED.
8922 * server.h (report_thread_events): Declare.
8924 2015-11-30 Pedro Alves <palves@redhat.com>
8926 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
8927 the thread's last_resume_kind was resume_stop.
8929 2015-11-30 Pedro Alves <palves@redhat.com>
8931 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
8934 2015-11-30 Pedro Alves <palves@redhat.com>
8936 * server.c (handle_v_requests): Handle vCtrlC.
8938 2015-11-30 Pedro Alves <palves@redhat.com>
8940 * gdbthread.h (find_any_thread_of_pid): Declare.
8941 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
8943 * server.c (handle_query): If current_thread is NULL, look for
8944 another thread of the selected process.
8946 2015-11-26 Daniel Colascione <dancol@dancol.org>
8947 Simon Marchi <simon.marchi@ericsson.com>
8949 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
8950 * server.c (handle_qxfer_threads_worker): Refactor to include thread
8952 * target.h (struct target_ops) <thread_name>: New field.
8953 (target_thread_name): New macro.
8955 2015-11-23 Joel Brobecker <brobecker@adacore.com>
8957 * regcache.h (regcache_invalidate_pid): Add declaration.
8958 * regcache.c (regcache_invalidate_pid): New function, extracted
8959 from regcache_invalidate.
8960 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
8961 Add trivial documentation comment.
8962 * lynx-low.c: Use regcache_invalidate_pid instead of
8963 regcache_invalidate.
8965 2015-11-23 Joel Brobecker <brobecker@adacore.com>
8967 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
8968 and Elf64_auxv_t if the target is Android.
8970 2015-11-22 Doug Evans <xdje42@gmail.com>
8972 * target.h: #include <sys/types.h>.
8974 2015-11-19 Pedro Alves <palves@redhat.com>
8976 * linux-low.c (linux_process_qsupported): Change prototype.
8978 * linux-low.h (struct linux_target_ops) <process_qsupported>:
8980 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
8981 and adjust to loop over all features.
8982 * server.c (handle_query) <qSupported>: Adjust to call
8983 target_process_qsupported once, passing it a vector of unprocessed
8985 * target.h (struct target_ops) <process_qsupported>: Change
8987 (target_process_qsupported): Adjust.
8989 2015-11-19 Pedro Alves <palves@redhat.com>
8991 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
8993 * configure: Regenerate.
8995 2015-11-19 Pedro Alves <palves@redhat.com>
8997 * configure: Regenerate.
8999 2015-11-19 Yao Qi <yao.qi@linaro.org>
9001 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
9004 2015-11-19 Yao Qi <yao.qi@linaro.org>
9006 * linux-aarch64-low.c (enum aarch64_operand_type): New.
9007 (struct aarch64_operand): Move enum out.
9009 2015-11-19 Yao Qi <yao.qi@linaro.org>
9011 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
9012 struct user_fpsimd_state *.
9013 (aarch64_store_fpregset): Likewise.
9015 2015-11-19 Yao Qi <yao.qi@linaro.org>
9017 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
9018 struct user_pt_regs *.
9019 (aarch64_store_gregset): Likewise.
9021 2015-11-18 Pedro Alves <palves@redhat.com>
9023 * Makefile.in (all_object_files): Add $IPA_OBJS.
9025 2015-11-17 Pedro Alves <palves@redhat.com>
9027 * win32-low.c (win32_resume): Use gdb_signal_from_host,
9028 GDB_SIGNAL_0 and gdb_signal_to_string.
9030 2015-11-17 Pedro Alves <palves@redhat.com>
9032 * win32-low.c (handle_output_debug_string): Remove parameter.
9033 (win32_kill): Remove our_status local and adjust call to
9034 handle_output_debug_string.
9035 (get_child_debug_event): Adjust call to
9036 handle_output_debug_string.
9038 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9040 * linux-mips-low.c (mips_fill_gregset): Add cast.
9041 (mips_store_gregset): Likewise.
9042 (mips_fill_fpregset): Likewise.
9043 (mips_store_fpregset): Likewise.
9045 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9047 * linux-mips-low.c (mips_add_watchpoint): Rename private to
9050 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9052 * linux-mips-low.c (mips_linux_new_thread): Change type of
9053 watch_type to enum target_hw_bp_type.
9055 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9057 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
9058 Change return type to arm_hwbp_type.
9060 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9062 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
9063 (arm_store_gregset): Likewise.
9064 * linux-arm-low.c (arm_get_hwcap): Likewise.
9065 (arm_read_description): Likewise.
9067 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9069 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
9071 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9073 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
9074 (ppc_fill_vsxregset): Likewise.
9075 (ppc_store_vsxregset): Likewise.
9076 (ppc_fill_vrregset): Likewise.
9077 (ppc_store_vrregset): Likewise.
9078 (ppc_fill_evrregset): Likewise.
9079 (ppc_store_evrregset): Likewise.
9081 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9083 * linux-ppc-low.c (ppc_usrregs_info): Remove
9084 forward-declaration.
9085 (ppc_arch_setup): Move lower in file.
9087 2015-10-30 Simon Marchi <simon.marchi@ericsson.com>
9089 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
9090 (ps_pdwrite): Likewise.
9092 2015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
9094 * linux-arm-low.c (arm_new_thread): Move pointer dereference
9095 to after assert checks.
9097 2015-10-29 Simon Marchi <simon.marchi@ericsson.com>
9099 * proc-service.c (ps_pdread): Add/adjust casts.
9100 (ps_pdwrite): Add/adjust casts.
9102 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9104 * server.c (handle_search_memory_1): Cast return value of
9107 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9109 * server.c (write_qxfer_response): Change type of data to
9112 2015-10-29 Pedro Alves <palves@redhat.com>
9114 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
9116 2015-10-29 Pedro Alves <palves@redhat.com>
9118 * tracepoint.c (clear_installed_tracepoints): Add casts.
9120 2015-10-29 Pedro Alves <palves@redhat.com>
9122 * server.c (handle_v_cont, process_serial_event): Add enum
9123 gdb_signal casts to signal parsing code.
9125 2015-10-29 Pedro Alves <palves@redhat.com>
9127 * linux-low.h (NULL_REGSET): Define.
9128 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9129 * linux-arm-low.c (arm_regsets): Likewise.
9130 * linux-crisv32-low.c (cris_regsets): Likewise.
9131 * linux-m68k-low.c (m68k_regsets): Likewise.
9132 * linux-mips-low.c (mips_regsets): Likewise.
9133 * linux-nios2-low.c (nios2_regsets): Likewise.
9134 * linux-ppc-low.c (ppc_regsets): Likewise.
9135 * linux-s390-low.c (s390_regsets): Likewise.
9136 * linux-sh-low.c (sh_regsets): Likewise.
9137 * linux-sparc-low.c (sparc_regsets): Likewise.
9138 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9139 * linux-tile-low.c (tile_regsets): Likewise.
9140 * linux-x86-low.c (x86_regsets): Likewise.
9141 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9143 2015-10-29 Pedro Alves <palves@redhat.com>
9145 * linux-low.h (NULL_REGSET): Define.
9146 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9147 * linux-arm-low.c (arm_regsets): Likewise.
9148 * linux-crisv32-low.c (cris_regsets): Likewise.
9149 * linux-m68k-low.c (m68k_regsets): Likewise.
9150 * linux-mips-low.c (mips_regsets): Likewise.
9151 * linux-nios2-low.c (nios2_regsets): Likewise.
9152 * linux-ppc-low.c (ppc_regsets): Likewise.
9153 * linux-s390-low.c (s390_regsets): Likewise.
9154 * linux-sh-low.c (sh_regsets): Likewise.
9155 * linux-sparc-low.c (sparc_regsets): Likewise.
9156 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9157 * linux-tile-low.c (tile_regsets): Likewise.
9158 * linux-x86-low.c (x86_regsets): Likewise.
9159 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9161 2015-10-26 Doug Evans <dje@google.com>
9163 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
9165 2015-10-26 Doug Evans <dje@google.com>
9167 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
9169 2015-10-26 Doug Evans <dje@google.com>
9171 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
9173 (attach_thread, find_new_threads_callback): Ditto.
9175 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9177 * mem-break.h (set_breakpoint_data): Remove.
9179 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9181 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
9182 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9183 (initialize_low): Remove set_breakpoint_data call.
9184 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
9185 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
9186 (initialize_low): Remove set_breakpoint_data call.
9187 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
9188 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9189 (initialize_low): Remove set_breakpoint_data call.
9191 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9193 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
9194 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
9195 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
9196 * target.h (target_breakpoint_kind_from_pc): New macro.
9198 2015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
9200 * linux-low.c (default_breakpoint_kind_from_pc): New function.
9201 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
9202 the default breakpoint kind.
9204 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9206 * linux-arm-low.c (arm_supports_z_point_type): Add software
9209 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9211 * linux-arm-low.c: Refactor breakpoint definitions.
9212 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
9213 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
9215 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9217 * Makefile.in: Add arm.c/o.
9218 * configure.srv: Likewise.
9219 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
9220 (arm_breakpoint_kind_from_pc): New function.
9221 (arm_sw_breakpoint_from_kind): Return proper kind.
9222 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
9224 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9226 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
9228 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
9229 (struct raw_breakpoint) <size>: Remove.
9230 (struct raw_breakpoint) <kind>: Add.
9231 (bp_size): New function.
9232 (bp_opcode): Likewise.
9233 (find_raw_breakpoint_at): Adjust for kind.
9234 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
9235 (remove_memory_breakpoint): Adjust for kind call bp_size.
9236 (set_raw_breakpoint_at): Adjust for kind.
9237 (set_breakpoint): Likewise.
9238 (set_breakpoint_at): Call breakpoint_kind_from_pc.
9239 (delete_raw_breakpoint): Adjust for kind.
9240 (delete_breakpoint): Likewise.
9241 (find_gdb_breakpoint): Likewise.
9242 (set_gdb_breakpoint_1): Likewise.
9243 (set_gdb_breakpoint): Likewise.
9244 (delete_gdb_breakpoint_1): Likewise.
9245 (delete_gdb_breakpoint): Likewise.
9246 (uninsert_raw_breakpoint): Likewise.
9247 (reinsert_raw_breakpoint): Likewise.
9248 (set_breakpoint_data): Remove.
9249 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
9250 (check_mem_read): Adjust for kind call bp_size.
9251 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
9252 (clone_one_breakpoint): Adjust for kind.
9253 * mem-break.h (set_gdb_breakpoint): Likewise.
9254 (delete_gdb_breakpoint): Likewise.
9255 * server.c (process_serial_event): Likewise.
9257 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9259 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
9260 (struct linux_target_ops) <breakpoint>: Remove.
9261 (struct linux_target_ops) <breakpoint_len>: Remove.
9262 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9263 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9264 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
9265 (arm_sw_breakpoint_from_kind): New function.
9266 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
9267 (struct linux_target_ops) <breakpoint>: Remove.
9268 (struct linux_target_ops) <breakpoint_len>: Remove.
9269 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9270 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9271 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
9272 (struct linux_target_ops) <breakpoint>: Remove.
9273 (struct linux_target_ops) <breakpoint_len>: Remove.
9274 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9275 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9276 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
9277 (struct linux_target_ops) <breakpoint>: Remove.
9278 (struct linux_target_ops) <breakpoint_len>: Remove.
9279 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9280 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9281 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
9282 and sw_breakpoint_from_kind to increment the pc.
9283 (linux_breakpoint_kind_from_pc): New function.
9284 (linux_sw_breakpoint_from_kind): New function.
9285 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
9286 (initialize_low): Call breakpoint_kind_from_pc and
9287 sw_breakpoint_from_kind to replace breakpoint_data/len.
9288 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
9290 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
9291 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
9292 (struct linux_target_ops) <breakpoint>: Remove.
9293 (struct linux_target_ops) <breakpoint_len>: Remove.
9294 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9295 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9296 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
9297 (struct linux_target_ops) <breakpoint>: Remove.
9298 (struct linux_target_ops) <breakpoint_len>: Remove.
9299 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9300 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9301 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
9302 (struct linux_target_ops) <breakpoint>: Remove.
9303 (struct linux_target_ops) <breakpoint_len>: Remove.
9304 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9305 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9306 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
9307 (struct linux_target_ops) <breakpoint>: Remove.
9308 (struct linux_target_ops) <breakpoint_len>: Remove.
9309 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9310 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9311 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
9312 (struct linux_target_ops) <breakpoint>: Remove.
9313 (struct linux_target_ops) <breakpoint_len>: Remove.
9314 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9315 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9316 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
9317 (struct linux_target_ops) <breakpoint>: Remove.
9318 (struct linux_target_ops) <breakpoint_len>: Remove.
9319 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9320 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9321 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
9322 (struct linux_target_ops) <breakpoint>: Remove.
9323 (struct linux_target_ops) <breakpoint_len>: Remove.
9324 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9325 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9326 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
9327 (struct linux_target_ops) <breakpoint>: Remove.
9328 (struct linux_target_ops) <breakpoint_len>: Remove.
9329 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9330 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9331 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
9332 (struct linux_target_ops) <breakpoint>: Remove.
9333 (struct linux_target_ops) <breakpoint_len>: Remove.
9334 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9335 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9336 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
9337 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
9338 (struct linux_target_ops) <breakpoint>: Remove.
9339 (struct linux_target_ops) <breakpoint_len>: Remove.
9340 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9341 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9342 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
9343 (struct linux_target_ops) <breakpoint>: Remove.
9344 (struct linux_target_ops) <breakpoint_len>: Remove.
9345 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9346 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9348 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9350 * linux-cris-low.c (cris_get_pc): Remove void arg.
9352 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9354 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
9357 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9359 * inferiors.c (thread_pid_matches_callback): New function.
9360 (find_thread_process): New function.
9361 (remove_thread): Reset current_thread.
9362 (remove_process): Assert threads have been removed first.
9364 2015-10-15 Yao Qi <yao.qi@linaro.org>
9366 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
9368 (aarch64_remove_point): Likewise.
9369 * regcache.c (regcache_register_size): New function.
9371 2015-10-12 Yao Qi <yao.qi@linaro.org>
9373 * linux-aarch64-low.c: Update all callers as emit_load_store
9374 is renamed to aarch64_emit_load_store.
9376 2015-10-12 Yao Qi <yao.qi@linaro.org>
9378 * linux-aarch64-low.c: Update all callers of function renaming
9379 from emit_insn to aarch64_emit_insn.
9381 2015-10-12 Yao Qi <yao.qi@linaro.org>
9383 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
9384 arch/aarch64-insn.h.
9385 (struct aarch64_memory_operand): Likewise.
9387 (emit_insn): Move to arch/aarch64-insn.c.
9388 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
9389 (emit_load_store): Move to arch/aarch64-insn.c.
9390 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
9391 (can_encode_int32): Remove.
9393 2015-10-12 Yao Qi <yao.qi@linaro.org>
9395 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
9396 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
9397 (aarch64_relocate_instruction): Likewise.
9398 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
9399 (struct aarch64_insn_visitor): Likewise.
9401 2015-10-12 Yao Qi <yao.qi@linaro.org>
9403 * linux-aarch64-low.c (struct aarch64_insn_data): New.
9404 (struct aarch64_insn_visitor): New.
9405 (struct aarch64_insn_relocation_data): New.
9406 (aarch64_ftrace_insn_reloc_b): New function.
9407 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
9408 (aarch64_ftrace_insn_reloc_cb): Likewise.
9409 (aarch64_ftrace_insn_reloc_tb): Likewise.
9410 (aarch64_ftrace_insn_reloc_adr): Likewise.
9411 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
9412 (aarch64_ftrace_insn_reloc_others): Likewise.
9414 (aarch64_relocate_instruction): Use visitor.
9416 2015-10-12 Yao Qi <yao.qi@linaro.org>
9418 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
9419 int. Add argument buf.
9420 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
9421 aarch64_relocate_instruction.
9423 2015-10-12 Yao Qi <yao.qi@linaro.org>
9425 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
9426 argument insn. Remove local variable insn. Don't call
9428 (aarch64_install_fast_tracepoint_jump_pad): Call
9431 2015-09-30 Yao Qi <yao.qi@linaro.org>
9433 * linux-aarch64-low.c (emit_movk): Shorten a long line.
9434 (emit_load_store_pair): Likewise.
9436 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9438 * dll.c (match_dll): Add cast(s).
9439 (unloaded_dll): Likewise.
9440 * linux-low.c (second_thread_of_pid_p): Likewise.
9441 (delete_lwp_callback): Likewise.
9442 (count_events_callback): Likewise.
9443 (select_event_lwp_callback): Likewise.
9444 (linux_set_resume_request): Likewise.
9445 * server.c (accumulate_file_name_length): Likewise.
9446 (emit_dll_description): Likewise.
9447 (handle_qxfer_threads_worker): Likewise.
9448 (visit_actioned_threads): Likewise.
9449 * thread-db.c (any_thread_of): Likewise.
9450 * tracepoint.c (same_process_p): Likewise.
9451 (match_blocktype): Likewise.
9452 (build_traceframe_info_xml): Likewise.
9454 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9456 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
9458 (gdb_unparse_agent_expr): Likewise.
9459 * hostio.c (require_data): Likewise.
9460 (handle_pread): Likewise.
9461 * linux-low.c (disable_regset): Likewise.
9462 (fetch_register): Likewise.
9463 (store_register): Likewise.
9464 (get_dynamic): Likewise.
9465 (linux_qxfer_libraries_svr4): Likewise.
9466 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
9467 (set_fast_tracepoint_jump): Likewise.
9468 (uninsert_fast_tracepoint_jumps_at): Likewise.
9469 (reinsert_fast_tracepoint_jumps_at): Likewise.
9470 (validate_inserted_breakpoint): Likewise.
9471 (clone_agent_expr): Likewise.
9472 * regcache.c (init_register_cache): Likewise.
9473 * remote-utils.c (putpkt_binary_1): Likewise.
9474 (decode_M_packet): Likewise.
9475 (decode_X_packet): Likewise.
9476 (look_up_one_symbol): Likewise.
9477 (relocate_instruction): Likewise.
9478 (monitor_output): Likewise.
9479 * server.c (handle_search_memory): Likewise.
9480 (handle_qxfer_exec_file): Likewise.
9481 (handle_qxfer_libraries): Likewise.
9482 (handle_qxfer): Likewise.
9483 (handle_query): Likewise.
9484 (handle_v_cont): Likewise.
9485 (handle_v_run): Likewise.
9486 (captured_main): Likewise.
9487 * target.c (write_inferior_memory): Likewise.
9488 * thread-db.c (try_thread_db_load_from_dir): Likewise.
9489 * tracepoint.c (init_trace_buffer): Likewise.
9490 (add_tracepoint_action): Likewise.
9491 (add_traceframe): Likewise.
9492 (add_traceframe_block): Likewise.
9493 (cmd_qtdpsrc): Likewise.
9494 (cmd_qtdv): Likewise.
9495 (cmd_qtstatus): Likewise.
9496 (response_source): Likewise.
9497 (response_tsv): Likewise.
9498 (cmd_qtnotes): Likewise.
9499 (gdb_collect): Likewise.
9500 (initialize_tracepoint): Likewise.
9502 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9504 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
9505 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
9506 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
9508 (enum aarch64_condition_codes): New enum.
9509 (w0): New static global.
9512 (struct aarch64_memory_operand) <type>: New
9513 MEMORY_OPERAND_POSTINDEX type.
9514 (postindex_memory_operand): New helper function.
9515 (emit_ret): New function.
9516 (emit_load_store_pair): New function, factored out of emit_stp
9517 with support for MEMORY_OPERAND_POSTINDEX.
9518 (emit_stp): Rewrite using emit_load_store_pair.
9519 (emit_ldp): New function.
9520 (emit_load_store): Likewise.
9521 (emit_ldr): Mention post-index instruction in comment.
9522 (emit_ldrh): New function.
9523 (emit_ldrb): New function.
9524 (emit_ldrsw): Mention post-index instruction in comment.
9525 (emit_str): Likewise.
9526 (emit_subs): New function.
9527 (emit_cmp): Likewise.
9528 (emit_and): Likewise.
9529 (emit_orr): Likewise.
9530 (emit_orn): Likewise.
9531 (emit_eor): Likewise.
9532 (emit_mvn): Likewise.
9533 (emit_lslv): Likewise.
9534 (emit_lsrv): Likewise.
9535 (emit_asrv): Likewise.
9536 (emit_mul): Likewise.
9537 (emit_sbfm): Likewise.
9538 (emit_sbfx): Likewise.
9539 (emit_ubfm): Likewise.
9540 (emit_ubfx): Likewise.
9541 (emit_csinc): Likewise.
9542 (emit_cset): Likewise.
9543 (emit_nop): Likewise.
9544 (emit_ops_insns): New helper function.
9545 (emit_pop): Likewise.
9546 (emit_push): Likewise.
9547 (aarch64_emit_prologue): New function.
9548 (aarch64_emit_epilogue): Likewise.
9549 (aarch64_emit_add): Likewise.
9550 (aarch64_emit_sub): Likewise.
9551 (aarch64_emit_mul): Likewise.
9552 (aarch64_emit_lsh): Likewise.
9553 (aarch64_emit_rsh_signed): Likewise.
9554 (aarch64_emit_rsh_unsigned): Likewise.
9555 (aarch64_emit_ext): Likewise.
9556 (aarch64_emit_log_not): Likewise.
9557 (aarch64_emit_bit_and): Likewise.
9558 (aarch64_emit_bit_or): Likewise.
9559 (aarch64_emit_bit_xor): Likewise.
9560 (aarch64_emit_bit_not): Likewise.
9561 (aarch64_emit_equal): Likewise.
9562 (aarch64_emit_less_signed): Likewise.
9563 (aarch64_emit_less_unsigned): Likewise.
9564 (aarch64_emit_ref): Likewise.
9565 (aarch64_emit_if_goto): Likewise.
9566 (aarch64_emit_goto): Likewise.
9567 (aarch64_write_goto_address): Likewise.
9568 (aarch64_emit_const): Likewise.
9569 (aarch64_emit_call): Likewise.
9570 (aarch64_emit_reg): Likewise.
9571 (aarch64_emit_pop): Likewise.
9572 (aarch64_emit_stack_flush): Likewise.
9573 (aarch64_emit_zero_ext): Likewise.
9574 (aarch64_emit_swap): Likewise.
9575 (aarch64_emit_stack_adjust): Likewise.
9576 (aarch64_emit_int_call_1): Likewise.
9577 (aarch64_emit_void_call_2): Likewise.
9578 (aarch64_emit_eq_goto): Likewise.
9579 (aarch64_emit_ne_goto): Likewise.
9580 (aarch64_emit_lt_goto): Likewise.
9581 (aarch64_emit_le_goto): Likewise.
9582 (aarch64_emit_gt_goto): Likewise.
9583 (aarch64_emit_ge_got): Likewise.
9584 (aarch64_emit_ops_impl): New static global variable.
9585 (aarch64_emit_ops): New target function, return
9586 &aarch64_emit_ops_impl.
9587 (struct linux_target_ops): Install it.
9589 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9591 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
9592 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
9594 * linux-aarch64-ipa.c: New file.
9595 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
9597 (aarch64_get_thread_area): New target method.
9598 (extract_signed_bitfield): New helper function.
9599 (aarch64_decode_ldr_literal): New function.
9600 (enum aarch64_opcodes): New enum.
9601 (struct aarch64_register): New struct.
9602 (struct aarch64_operand): New struct.
9603 (x0): New static global.
9612 (aarch64_register): New helper function.
9613 (register_operand): Likewise.
9614 (immediate_operand): Likewise.
9615 (struct aarch64_memory_operand): New struct.
9616 (offset_memory_operand): New helper function.
9617 (preindex_memory_operand): Likewise.
9618 (enum aarch64_system_control_registers): New enum.
9619 (ENCODE): New macro.
9620 (emit_insn): New helper function.
9621 (emit_b): New function.
9622 (emit_bcond): Likewise.
9623 (emit_cb): Likewise.
9624 (emit_tb): Likewise.
9625 (emit_blr): Likewise.
9626 (emit_stp): Likewise.
9627 (emit_ldp_q_offset): Likewise.
9628 (emit_stp_q_offset): Likewise.
9629 (emit_load_store): Likewise.
9630 (emit_ldr): Likewise.
9631 (emit_ldrsw): Likewise.
9632 (emit_str): Likewise.
9633 (emit_ldaxr): Likewise.
9634 (emit_stxr): Likewise.
9635 (emit_stlr): Likewise.
9636 (emit_data_processing_reg): Likewise.
9637 (emit_data_processing): Likewise.
9638 (emit_add): Likewise.
9639 (emit_sub): Likewise.
9640 (emit_mov): Likewise.
9641 (emit_movk): Likewise.
9642 (emit_mov_addr): Likewise.
9643 (emit_mrs): Likewise.
9644 (emit_msr): Likewise.
9645 (emit_sevl): Likewise.
9646 (emit_wfe): Likewise.
9647 (append_insns): Likewise.
9648 (can_encode_int32_in): New helper function.
9649 (aarch64_relocate_instruction): New function.
9650 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
9651 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
9652 (struct linux_target_ops): Install aarch64_get_thread_area,
9653 aarch64_install_fast_tracepoint_jump_pad and
9654 aarch64_get_min_fast_tracepoint_insn_len.
9656 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9658 * Makefile.in (aarch64-insn.o): New rule.
9659 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
9661 2015-09-21 Yao Qi <yao.qi@linaro.org>
9663 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
9665 2015-09-21 Yao Qi <yao.qi@linaro.org>
9667 * tracepoint.c (max_jump_pad_size): Remove.
9669 2015-09-18 Yao Qi <yao.qi@linaro.org>
9671 * linux-aarch64-low.c: Don't include sys/uio.h.
9672 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
9674 2015-09-16 Wei-cheng Wang <cole945@gmail.com>
9676 * tracepoint.c (eval_result_type): Change prototype.
9677 (condition_true_at_tracepoint): Fix argument to compiled_cond.
9679 2015-09-15 Pedro Alves <palves@redhat.com>
9681 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
9682 Check whether to report exec events instead of checking whether
9683 multiprocess is enabled.
9685 2015-09-15 Pedro Alves <palves@redhat.com>
9688 * remote-utils.c (prepare_resume_reply): Merge
9689 TARGET_WAITKIND_VFORK_DONE switch case with the
9690 TARGET_WAITKIND_FORKED case.
9692 2015-09-15 Yao Qi <yao.qi@linaro.org>
9694 * server.c (handle_query): Check string comparison using
9695 "else if" instead of "if".
9697 2015-09-15 Yao Qi <yao.qi@linaro.org>
9699 * server.c (vCont_supported): New global variable.
9700 (handle_query): Set vCont_supported to 1 if "vContSupported+"
9701 matches. Append ";vContSupported+" to own_buf.
9702 (handle_v_requests): Append ";s;S" to own_buf if target supports
9703 hardware single step or vCont_supported is false.
9704 (capture_main): Set vCont_supported to zero.
9706 2015-09-15 Yao Qi <yao.qi@linaro.org>
9708 * linux-low.c (linux_supports_conditional_breakpoints): Rename
9710 (linux_supports_hardware_single_step): ... New function.
9711 (linux_target_ops): Update.
9712 * lynx-low.c (lynx_target_ops): Set field
9713 supports_hardware_single_step to target_can_do_hardware_single_step.
9714 * nto-low.c (nto_target_ops): Likewise.
9715 * spu-low.c (spu_target_ops): Likewise.
9716 * win32-low.c (win32_target_ops): Likewise.
9717 * target.c (target_can_do_hardware_single_step): New function.
9718 * target.h (struct target_ops) <supports_conditional_breakpoints>:
9719 Remove. <supports_hardware_single_step>: New field.
9720 (target_supports_conditional_breakpoints): Remove.
9721 (target_supports_hardware_single_step): New macro.
9722 (target_can_do_hardware_single_step): Declare.
9723 * server.c (handle_query): Use target_supports_hardware_single_step
9724 instead of target_supports_conditional_breakpoints.
9726 2015-09-15 Yao Qi <yao.qi@linaro.org>
9728 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
9730 (struct linux_target_ops the_low_target): Install
9731 aarch64_linux_siginfo_fixup.
9733 2015-09-11 Don Breazeal <donb@codesourcery.com>
9734 Luis Machado <lgustavo@codesourcery.com>
9736 * linux-low.c (linux_mourn): Static declaration.
9737 (linux_arch_setup): Move in front of
9738 handle_extended_wait.
9739 (linux_arch_setup_thread): New function.
9740 (handle_extended_wait): Handle exec events. Call
9741 linux_arch_setup_thread. Make event_lwp argument a
9742 pointer-to-a-pointer.
9743 (check_zombie_leaders): Do not check stopped threads.
9744 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
9745 (linux_low_filter_event): Add lwp and thread for exec'ing
9746 non-leader thread if leader thread has been deleted.
9747 Refactor code into linux_arch_setup_thread and call it.
9748 Pass child lwp pointer by reference to handle_extended_wait.
9749 (linux_wait_for_event_filtered): Update comment.
9750 (linux_wait_1): Prevent clobbering exec event status.
9751 (linux_supports_exec_events): New function.
9752 (linux_target_ops) <supports_exec_events>: Initialize new member.
9753 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
9755 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
9756 * server.c (report_exec_events): New global variable.
9757 (handle_query): Handle qSupported query for exec-events feature.
9758 (captured_main): Initialize report_exec_events.
9759 * server.h (report_exec_events): Declare new global variable.
9760 * target.h (struct target_ops) <supports_exec_events>: New
9762 (target_supports_exec_events): New macro.
9763 * win32-low.c (win32_target_ops) <supports_exec_events>:
9764 Initialize new member.
9766 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
9768 * linux-low.c (linux_low_enable_btrace): Remove.
9769 (linux_target_ops): Replace linux_low_enable_btrace with
9770 linux_enable_btrace.
9772 2015-09-03 Yao Qi <yao.qi@linaro.org>
9774 * linux-aarch64-low.c (aarch64_insert_point): Call
9775 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
9778 2015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9780 * linux-low.c (check_stopped_by_breakpoint): Use
9781 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
9783 2015-08-27 Pedro Alves <palves@redhat.com>
9785 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
9787 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
9789 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
9790 the XNEW-family equivalent.
9791 (compile_bytecodes): Likewise.
9792 * dll.c (loaded_dll): Likewise.
9793 * event-loop.c (append_callback_event): Likewise.
9794 (create_file_handler): Likewise.
9795 (create_file_event): Likewise.
9796 * hostio.c (handle_open): Likewise.
9797 * inferiors.c (add_thread): Likewise.
9798 (add_process): Likewise.
9799 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
9800 * linux-arm-low.c (arm_new_process): Likewise.
9801 (arm_new_thread): Likewise.
9802 * linux-low.c (add_to_pid_list): Likewise.
9803 (linux_add_process): Likewise.
9804 (handle_extended_wait): Likewise.
9805 (add_lwp): Likewise.
9806 (enqueue_one_deferred_signal): Likewise.
9807 (enqueue_pending_signal): Likewise.
9808 (linux_resume_one_lwp_throw): Likewise.
9809 (linux_resume_one_thread): Likewise.
9810 (linux_read_memory): Likewise.
9811 (linux_write_memory): Likewise.
9812 * linux-mips-low.c (mips_linux_new_process): Likewise.
9813 (mips_linux_new_thread): Likewise.
9814 (mips_add_watchpoint): Likewise.
9815 * linux-x86-low.c (initialize_low_arch): Likewise.
9816 * lynx-low.c (lynx_add_process): Likewise.
9817 * mem-break.c (set_raw_breakpoint_at): Likewise.
9818 (set_breakpoint): Likewise.
9819 (add_condition_to_breakpoint): Likewise.
9820 (add_commands_to_breakpoint): Likewise.
9821 (clone_agent_expr): Likewise.
9822 (clone_one_breakpoint): Likewise.
9823 * regcache.c (new_register_cache): Likewise.
9824 * remote-utils.c (look_up_one_symbol): Likewise.
9825 * server.c (queue_stop_reply): Likewise.
9826 (start_inferior): Likewise.
9827 (queue_stop_reply_callback): Likewise.
9828 (handle_target_event): Likewise.
9829 * spu-low.c (fetch_ppc_memory): Likewise.
9830 (store_ppc_memory): Likewise.
9831 * target.c (set_target_ops): Likewise.
9832 * thread-db.c (thread_db_load_search): Likewise.
9833 (try_thread_db_load_1): Likewise.
9834 * tracepoint.c (add_tracepoint): Likewise.
9835 (add_tracepoint_action): Likewise.
9836 (create_trace_state_variable): Likewise.
9837 (cmd_qtdpsrc): Likewise.
9838 (cmd_qtro): Likewise.
9839 (add_while_stepping_state): Likewise.
9840 * win32-low.c (child_add_thread): Likewise.
9841 (get_image_name): Likewise.
9843 2015-08-25 Yao Qi <yao.qi@linaro.org>
9845 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
9847 2015-08-25 Yao Qi <yao.qi@linaro.org>
9849 * Makefile.in (aarch64-linux.o): New rule.
9850 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
9852 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
9853 (aarch64_init_debug_reg_state): Make it extern.
9854 (aarch64_linux_prepare_to_resume): Remove.
9856 2015-08-25 Yao Qi <yao.qi@linaro.org>
9858 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
9859 lwp_arch_private_info and ptid_of_lwp.
9861 2015-08-25 Yao Qi <yao.qi@linaro.org>
9863 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
9864 Find proc_info by find_process_pid. All callers updated.
9866 2015-08-25 Yao Qi <yao.qi@linaro.org>
9868 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
9870 (debug_reg_change_callback): Remove.
9871 (aarch64_notify_debug_reg_change): Remove.
9873 2015-08-25 Yao Qi <yao.qi@linaro.org>
9875 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
9876 Call current_lwp_ptid.
9878 2015-08-25 Yao Qi <yao.qi@linaro.org>
9880 * linux-aarch64-low.c (debug_reg_change_callback): Use
9883 2015-08-25 Yao Qi <yao.qi@linaro.org>
9885 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
9887 2015-08-25 Yao Qi <yao.qi@linaro.org>
9889 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
9891 2015-08-25 Yao Qi <yao.qi@linaro.org>
9893 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
9896 2015-08-25 Yao Qi <yao.qi@linaro.org>
9898 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
9900 (debug_reg_change_callback): Remove argument entry and add argument
9901 lwp. Remove local variable thread. Don't print thread id in the
9902 debugging output. Don't check whether pid of thread equals to pid.
9903 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
9904 iterate_over_lwps instead find_inferior.
9906 2015-08-24 Pedro Alves <palves@redhat.com>
9908 * inferiors.c (get_first_process): New function.
9909 * inferiors.h (get_first_process): New declaration.
9910 * remote-utils.c (read_ptid): Default to the first process in the
9911 list, instead of to the current thread's process.
9913 2015-08-24 Pedro Alves <palves@redhat.com>
9915 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
9916 * event-loop.c: Likewise.
9917 * remote-utils.c: Likewise.
9918 * tracepoint.c: Likewise.
9920 2015-08-24 Pedro Alves <palves@redhat.com>
9922 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
9925 2015-08-21 Pedro Alves <palves@redhat.com>
9927 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
9928 instead of literal 1.
9930 2015-08-21 Pedro Alves <palves@redhat.com>
9932 * tdesc.c (default_description): Explicitly zero-initialize.
9934 2015-08-21 Pedro Alves <palves@redhat.com>
9937 * inferiors.c (remove_thread): Discard any pending stop reply for
9939 * server.c (remove_all_on_match_pid): Rename to ...
9940 (remove_all_on_match_ptid): ... this. Work with a filter ptid
9942 (discard_queued_stop_replies): Change parameter to a ptid. Now
9944 (handle_v_kill, kill_inferior_callback, captured_main)
9945 (process_serial_event): Adjust.
9946 * server.h (discard_queued_stop_replies): Declare.
9948 2015-08-21 Pedro Alves <palves@redhat.com>
9950 * linux-low.c (wait_for_sigstop): Always switch to no thread
9951 selected if the previously current thread dies.
9952 * lynx-low.c (lynx_request_interrupt): Use the first thread's
9953 process instead of the current thread's.
9954 * remote-utils.c (input_interrupt): Don't check if there's no
9956 * server.c (gdb_read_memory, gdb_write_memory): If setting the
9957 current thread to the general thread fails, error out.
9958 (handle_qxfer_auxv, handle_qxfer_libraries)
9959 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
9960 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
9961 (handle_query): Check if there's a thread selected instead of
9962 checking whether there's any thread in the thread list.
9963 (handle_qxfer_threads, handle_qxfer_btrace)
9964 (handle_qxfer_btrace_conf): Don't error out early if there's no
9965 thread in the thread list.
9966 (handle_v_cont, myresume): Don't set the current thread to the
9968 (process_serial_event) <Hg handling>: Also set thread_id if the
9969 previous general thread is still alive.
9970 (process_serial_event) <g/G handling>: If setting the current
9971 thread to the general thread fails, error out.
9972 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
9973 thread's lwp instead of the current thread's.
9974 * target.c (set_desired_thread): If the desired thread was not
9975 found, leave the current thread pointing to NULL. Return an int
9976 (boolean) indicating success.
9977 * target.h (set_desired_thread): Change return type to int.
9979 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
9981 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
9982 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
9984 (ps_get_thread_area): New function.
9986 2015-08-19 Gary Benson <gbenson@redhat.com>
9988 * hostio.c (handle_pread): Do not attempt to read more data
9989 than hostio_reply_with_data can fit in a packet.
9991 2015-08-18 Joel Brobecker <brobecker@adacore.com>
9993 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
9995 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
9997 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
9999 2015-08-06 Pedro Alves <palves@redhat.com>
10001 * tracepoint.c (expr_eval_result): Now an int.
10003 2015-08-06 Pedro Alves <palves@redhat.com>
10005 * gdbthread.h (struct regcache): Forward declare.
10006 (struct thread_info) <regcache_data>: Now a struct regcache
10008 * inferiors.c (inferior_regcache_data)
10009 (set_inferior_regcache_data): Now work with struct regcache
10011 * inferiors.h (struct regcache): Forward declare.
10012 (inferior_regcache_data, set_inferior_regcache_data): Now work
10013 with struct regcache pointers.
10014 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
10015 (free_register_cache_thread): Remove struct regcache pointer
10018 2015-08-06 Pedro Alves <palves@redhat.com>
10020 * server.c (captured_main): On error, print the exception message
10021 to stderr, and if run_once is set, throw a quit.
10023 2015-08-06 Pedro Alves <palves@redhat.com>
10025 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
10026 the current thread.
10028 2015-08-06 Pedro Alves <palves@redhat.com>
10030 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
10031 reading beyond the passed in buffer length.
10033 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
10035 * tracepoint.c (symbol_list) <required>: Remove.
10037 2015-08-06 Pedro Alves <palves@redhat.com>
10039 * linux-low.c (handle_extended_wait): Set the fork child's suspend
10040 count if stopping and suspending threads.
10041 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
10042 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
10043 (linux_detach): Complete an ongoing step-over.
10044 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
10046 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
10047 (linux_wait_1): If passing a signal to the inferior after
10048 finishing a step-over, unsuspend and re-resume all lwps. If we
10049 see a single-step event but the thread should be continuing, don't
10050 pass the trap to gdb.
10051 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
10052 internal_error instead of gdb_assert.
10053 (enqueue_pending_signal): New function.
10054 (check_ptrace_stopped_lwp_gone): Add debug output.
10055 (start_step_over): Use internal_error instead of gdb_assert.
10056 (complete_ongoing_step_over): New function.
10057 (linux_resume_one_thread): Don't resume a suspended thread.
10058 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
10061 2015-08-06 Pedro Alves <palves@redhat.com>
10063 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
10064 (linux_thread_alive): Use lwp_is_marked_dead.
10065 (extended_event_reported): Delete.
10066 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
10067 instead of extended_event_reported.
10068 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
10070 (lwp_is_marked_dead): New function.
10071 (lwp_running): Use lwp_is_marked_dead.
10072 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
10075 2015-08-06 Pedro Alves <palves@redhat.com>
10077 * linux-low.c (linux_wait_1): Move fork event output out of the
10078 !report_to_gdb check. Pass event_child->waitstatus to
10079 target_waitstatus_to_string instead of ourstatus.
10081 2015-08-04 Yao Qi <yao.qi@linaro.org>
10083 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
10084 if current_thread is 32 bit.
10086 2015-08-04 Yao Qi <yao.qi@linaro.org>
10088 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
10089 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
10090 * server.c (extended_protocol): Remove "static".
10091 * server.h (extended_protocol): Declare it.
10093 2015-08-04 Yao Qi <yao.qi@linaro.org>
10095 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
10096 both aarch64 and aarch32.
10097 (aarch64_set_pc): Likewise.
10099 2015-08-04 Yao Qi <yao.qi@linaro.org>
10101 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
10102 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
10103 arm-with-neon.xml to srv_xmlfiles.
10104 * linux-aarch64-low.c: Include linux-aarch32-low.h.
10105 (is_64bit_tdesc): New function.
10106 (aarch64_linux_read_description): New function.
10107 (aarch64_arch_setup): Call aarch64_linux_read_description.
10108 (regs_info): Rename to regs_info_aarch64.
10109 (aarch64_regs_info): Return right regs_info.
10110 (initialize_low_arch): Call initialize_low_arch_aarch32.
10112 2015-08-04 Yao Qi <yao.qi@linaro.org>
10114 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
10115 * linux-aarch32-low.c: New file.
10116 * linux-aarch32-low.h: New file.
10117 * linux-arm-low.c (arm_fill_gregset): Move it to
10118 linux-aarch32-low.c.
10119 (arm_store_gregset): Likewise.
10120 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
10121 (arm_store_vfpregset): Call arm_store_vfpregset_num.
10122 (arm_arch_setup): Check if PTRACE_GETREGSET works.
10123 (regs_info): Rename to regs_info_arm.
10124 (arm_regs_info): Return regs_info_aarch32 if
10125 have_ptrace_getregset is 1 and target description is
10126 arm_with_neon or arm_with_vfpv3.
10127 (initialize_low_arch): Don't call init_registers_arm_with_neon.
10128 Call initialize_low_arch_aarch32 instead.
10130 2015-08-04 Yao Qi <yao.qi@linaro.org>
10132 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
10133 * linux-low.c: ... here.
10134 * linux-low.h (have_ptrace_getregset): Declare it.
10136 2015-08-04 Pedro Alves <palves@redhat.com>
10138 * thread-db.c (struct thread_db): Use new typedefs.
10139 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
10141 (disable_thread_event_reporting): Cast result of dlsym to
10142 destination function pointer type.
10143 (thread_db_mourn): Use td_ta_delete_ftype.
10145 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
10147 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
10149 (CDX_BREAKPOINT): Define for R2.
10150 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
10151 (the_low_target): Add comments.
10153 2015-07-30 Yao Qi <yao.qi@linaro.org>
10155 * linux-arm-low.c (arm_hwcap): Remove it.
10156 (arm_read_description): New local variable arm_hwcap. Don't
10157 set arm_hwcap to zero.
10159 2015-07-30 Yao Qi <yao.qi@linaro.org>
10161 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
10162 Use regcache->tdesc instead.
10163 (arm_store_wmmxregset): Likewise.
10164 (arm_fill_vfpregset): Likewise.
10165 (arm_store_vfpregset): Likewise.
10167 2015-07-30 Yao Qi <yao.qi@linaro.org>
10169 * linux-arm-low.c: Include arch/arm.h.
10170 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
10171 (arm_store_gregset): Likewise.
10173 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
10175 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
10176 ptrace's 4th parameter.
10178 2015-07-27 Yao Qi <yao.qi@linaro.org>
10180 * configure.srv (case aarch64*-*-linux*): Don't set
10183 2015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
10185 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
10187 * linux-arm-low.c: Likewise.
10188 * linux-cris-low.c: Likewise.
10189 * linux-crisv32-low.c: Likewise.
10190 * linux-low.c: Likewise.
10191 * linux-m68k-low.c: Likewise.
10192 * linux-mips-low.c: Likewise.
10193 * linux-nios2-low.c: Likewise.
10194 * linux-s390-low.c: Likewise.
10195 * linux-sparc-low.c: Likewise.
10196 * linux-tic6x-low.c: Likewise.
10197 * linux-tile-low.c: Likewise.
10198 * linux-x86-low.c: Likewise.
10200 2015-07-24 Pedro Alves <palves@redhat.com>
10202 * config.in: Regenerate.
10203 * configure: Regenerate.
10205 2015-07-24 Pedro Alves <palves@redhat.com>
10207 * acinclude.m4: Include ../ptrace.m4.
10208 * configure.ac: Call GDB_AC_PTRACE.
10209 * config.in, configure: Regenerate.
10211 2015-07-24 Yao Qi <yao.qi@linaro.org>
10213 * linux-low.c (linux_create_inferior): Remove setting to
10214 proc->priv->new_inferior.
10215 (linux_attach): Likewise.
10216 (linux_low_filter_event): Likewise.
10217 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
10219 2015-07-24 Yao Qi <yao.qi@linaro.org>
10221 * linux-low.c (linux_arch_setup): New function.
10222 (linux_low_filter_event): If proc->tdesc is NULL and
10223 proc->attached is true, call the_low_target.arch_setup.
10224 Otherwise, keep status pending, and return.
10225 (linux_resume_one_lwp_throw): Don't call get_pc if
10226 thread->while_stepping isn't NULL. Don't call
10227 get_thread_regcache if proc->tdesc is NULL.
10228 (need_step_over_p): Return 0 if proc->tdesc is NULL.
10229 (linux_target_ops): Install arch_setup.
10230 * server.c (start_inferior): Call the_target->arch_setup.
10231 * target.h (struct target_ops) <arch_setup>: New field.
10232 (target_arch_setup): New marco.
10233 * lynx-low.c (lynx_target_ops): Update.
10234 * nto-low.c (nto_target_ops): Update.
10235 * spu-low.c (spu_target_ops): Update.
10236 * win32-low.c (win32_target_ops): Update.
10238 2015-07-24 Yao Qi <yao.qi@linaro.org>
10240 * linux-low.c (linux_add_process): Don't set
10241 proc->priv->new_inferior.
10242 (linux_create_inferior): Set proc->priv->new_inferior to 1.
10243 (linux_attach): Likewise.
10245 2015-07-24 Yao Qi <yao.qi@linaro.org>
10247 * server.c (start_inferior): Code refactor.
10249 2015-07-24 Yao Qi <yao.qi@linaro.org>
10251 * server.c (process_serial_event): Set general_thread.
10253 2015-07-21 Yao Qi <yao.qi@linaro.org>
10255 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
10256 aarch64_linux_get_debug_reg_capacity.
10258 2015-07-17 Yao Qi <yao.qi@linaro.org>
10260 * Makefile.in (aarch64-linux-hw-point.o): New rule.
10261 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
10262 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
10263 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
10264 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
10265 (AARCH64_HWP_ALIGNMENT): Likewise.
10266 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
10267 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
10268 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
10269 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
10270 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
10271 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
10272 (struct aarch64_debug_reg_state): Likewise.
10273 (struct arch_lwp_info): Likewise.
10274 (aarch64_align_watchpoint): Likewise.
10275 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
10276 (aarch64_watchpoint_length): Likewise.
10277 (aarch64_point_encode_ctrl_reg): Likewise
10278 (aarch64_point_is_aligned): Likewise.
10279 (aarch64_align_watchpoint): Likewise.
10280 (aarch64_linux_set_debug_regs):
10281 (aarch64_dr_state_insert_one_point): Likewise.
10282 (aarch64_dr_state_remove_one_point): Likewise.
10283 (aarch64_handle_breakpoint): Likewise.
10284 (aarch64_handle_aligned_watchpoint): Likewise.
10285 (aarch64_handle_unaligned_watchpoint): Likewise.
10286 (aarch64_handle_watchpoint): Likewise.
10288 2015-07-17 Yao Qi <yao.qi@linaro.org>
10290 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
10291 and don't aarch64_get_debug_reg_state. All callers update.
10292 (aarch64_handle_aligned_watchpoint): Likewise.
10293 (aarch64_handle_unaligned_watchpoint): Likewise.
10294 (aarch64_handle_watchpoint): Likewise.
10295 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
10296 (aarch64_remove_point): Likewise.
10298 2015-07-17 Yao Qi <yao.qi@linaro.org>
10300 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
10302 (aarch64_handle_unaligned_watchpoint): Likewise.
10304 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10306 Revert the previous 3 commits:
10307 Move gdb_regex* to common/
10308 Move linux_find_memory_regions_full & co.
10309 gdbserver build-id attribute generator
10311 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10312 Jan Kratochvil <jan.kratochvil@redhat.com>
10314 gdbserver build-id attribute generator.
10315 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
10316 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
10317 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
10319 (get_dynamic): Use find_pdhr to traverse program headers.
10320 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
10321 (compare_mapping_entry_range, struct find_memory_region_callback_data)
10322 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
10323 (get_hex_build_id): New.
10324 (linux_qxfer_libraries_svr4): Add optional build-id attribute
10325 to reply XML document.
10327 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10328 Jan Kratochvil <jan.kratochvil@redhat.com>
10330 * target.c: Include target/target-utils.h and fcntl.h.
10331 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
10332 (target_fileio_read_stralloc): New functions.
10334 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10336 * Makefile.in (OBS): Add gdb_regex.o.
10337 (gdb_regex.o): New.
10338 * config.in: Rebuilt.
10339 * configure: Rebuilt.
10341 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10342 Jan Kratochvil <jan.kratochvil@redhat.com>
10344 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
10345 * Makefile.in (OBS): Add target-utils.o.
10346 (linux-maps.o, target-utils.o): New.
10347 * configure.srv (srv_linux_obj): Add linux-maps.o.
10349 2015-07-15 Pierre Langlois <pierre.langlois@arm.com>
10351 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
10352 function, return 1.
10353 (the_low_target): Install it.
10355 2015-07-14 Pedro Alves <palves@redhat.com>
10357 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
10358 Instead, ignore ECHILD, and throw an error for other errnos.
10360 2015-07-10 Pedro Alves <palves@redhat.com>
10362 * event-loop.c (struct callback_event) <data>: Change type to
10363 gdb_client_data instance instead of gdb_client_data pointer.
10364 (append_callback_event): Adjust.
10366 2015-07-10 Pierre Langlois <pierre.langlois@arm.com>
10368 * linux-aarch64-low.c: Add comments for each linux_target_ops
10369 method. Remove comments already covered in target_ops and
10370 linux_target_ops definitions.
10371 (the_low_target): Add comments for each unimplemented method.
10373 2015-07-09 Yao Qi <yao.qi@linaro.org>
10375 * linux-aarch64-low.c (aarch64_regmap): Remove.
10376 (aarch64_usrregs_info): Remove.
10377 (regs_info): Set field usrregs to NULL.
10379 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
10381 * linux-low.c: Include "rsp-low.h"
10382 (linux_low_encode_pt_config, linux_low_encode_raw): New.
10383 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
10384 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
10385 (handle_btrace_enable_pt): New.
10386 (handle_btrace_general_set): Support "pt".
10387 (handle_btrace_conf_general_set): Support "pt:size".
10389 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10391 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
10394 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10396 * linux-aarch64-low.c: Remove comment about endianness.
10397 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
10398 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
10401 2015-06-24 Gary Benson <gbenson@redhat.com>
10403 * linux-i386-ipa.c (stdint.h): Do not include.
10404 * lynx-i386-low.c (stdint.h): Likewise.
10405 * lynx-ppc-low.c (stdint.h): Likewise.
10406 * mem-break.c (stdint.h): Likewise.
10407 * thread-db.c (stdint.h): Likewise.
10408 * tracepoint.c (stdint.h): Likewise.
10409 * win32-low.c (stdint.h): Likewise.
10411 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
10413 * server.c (write_qxfer_response): Update call to
10414 remote_escape_output.
10416 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
10417 Jan Kratochvil <jan.kratochvil@redhat.com>
10419 Merge multiple hex conversions.
10420 * gdbreplay.c (tohex): Rename to 'fromhex'.
10421 (logchar): Use fromhex.
10423 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10425 * server.c (handle_qxfer_libraries): Set `version' attribute for
10428 2015-06-10 Gary Benson <gbenson@redhat.com>
10430 * target.h (struct target_ops) <multifs_open>: New field.
10431 <multifs_unlink>: Likewise.
10432 <multifs_readlink>: Likewise.
10433 * linux-low.c (nat/linux-namespaces.h): New include.
10434 (linux_target_ops): Initialize the_target->multifs_open,
10435 the_target->multifs_unlink and the_target->multifs_readlink.
10436 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
10437 * hostio.c (hostio_fs_pid): New static variable.
10438 (hostio_handle_new_gdb_connection): New function.
10439 (handle_setfs): Likewise.
10440 (handle_open): Use the_target->multifs_open as appropriate.
10441 (handle_unlink): Use the_target->multifs_unlink as appropriate.
10442 (handle_readlink): Use the_target->multifs_readlink as
10444 (handle_vFile): Handle vFile:setfs packets.
10445 * server.c (handle_query): Call hostio_handle_new_gdb_connection
10446 after target_handle_new_gdb_connection.
10448 2015-06-10 Gary Benson <gbenson@redhat.com>
10450 * configure.ac (AC_CHECK_FUNCS): Add setns.
10451 * config.in: Regenerate.
10452 * configure: Likewise.
10453 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
10454 (linux-namespaces.o): New rule.
10455 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
10457 2015-06-09 Gary Benson <gbenson@redhat.com>
10459 * hostio.c (handle_open): Process mode argument with
10460 fileio_to_host_mode.
10462 2015-06-01 Yao Qi <yao.qi@linaro.org>
10464 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
10465 * linux-x86-low.c: Likewise.
10467 2015-05-28 Don Breazeal <donb@codesourcery.com>
10469 * linux-low.c (handle_extended_wait): Initialize
10470 thread_info.last_resume_kind for new fork children.
10472 2015-05-15 Pedro Alves <palves@redhat.com>
10474 * target.h (target_handle_new_gdb_connection): Rewrite using if
10475 wrapped in do/while.
10477 2015-05-14 Joel Brobecker <brobecker@adacore.com>
10479 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
10480 * configure, config.in: Regenerate.
10481 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
10484 2015-05-12 Don Breazeal <donb@codesourcery.com>
10486 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
10487 PTRACE_EVENT_VFORK_DONE.
10488 (linux_low_ptrace_options, extended_event_reported): Add vfork
10490 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
10491 and "vforkdone" for RSP 'T' Stop Reply Packet.
10492 * server.h (report_vfork_events): Declare
10495 2015-05-12 Don Breazeal <donb@codesourcery.com>
10497 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
10498 (the_low_target) <new_fork>: Initialize new member.
10499 * linux-arm-low.c (arm_new_fork): New function.
10500 (the_low_target) <new_fork>: Initialize new member.
10501 * linux-low.c (handle_extended_wait): Call new target function
10503 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
10504 * linux-mips-low.c (mips_add_watchpoint): New function
10505 extracted from mips_insert_point.
10506 (the_low_target) <new_fork>: Initialize new member.
10507 (mips_linux_new_fork): New function.
10508 (mips_insert_point): Call mips_add_watchpoint.
10509 * linux-x86-low.c (x86_linux_new_fork): New function.
10510 (the_low_target) <new_fork>: Initialize new member.
10512 2015-05-12 Don Breazeal <donb@codesourcery.com>
10514 * linux-low.c (handle_extended_wait): Implement return value,
10515 rename argument 'event_child' to 'event_lwp', handle
10516 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
10517 (linux_low_ptrace_options): New function.
10518 (linux_low_filter_event): Call linux_low_ptrace_options,
10519 use different argument fo linux_enable_event_reporting,
10520 use return value from handle_extended_wait.
10521 (extended_event_reported): New function.
10522 (linux_wait_1): Call extended_event_reported and set
10523 status to report fork events.
10524 (linux_write_memory): Add pid to debug message.
10525 (reset_lwp_ptrace_options_callback): New function.
10526 (linux_handle_new_gdb_connection): New function.
10527 (linux_target_ops): Initialize new structure member.
10528 * linux-low.h (struct lwp_info) <waitstatus>: New member.
10529 * lynx-low.c: Initialize new structure member.
10530 * remote-utils.c (prepare_resume_reply): Implement stop reason
10531 "fork" for "T" stop message.
10532 * server.c (handle_query): Call handle_new_gdb_connection.
10533 * server.h (report_fork_events): Declare global flag.
10534 * target.h (struct target_ops) <handle_new_gdb_connection>:
10536 (target_handle_new_gdb_connection): New macro.
10537 * win32-low.c: Initialize new structure member.
10539 2015-05-12 Don Breazeal <donb@codesourcery.com>
10541 * mem-break.c (APPEND_TO_LIST): Define macro.
10542 (clone_agent_expr): New function.
10543 (clone_one_breakpoint): New function.
10544 (clone_all_breakpoints): New function.
10545 * mem-break.h: Declare new functions.
10547 2015-05-12 Don Breazeal <donb@codesourcery.com>
10549 * linux-low.c (linux_supports_fork_events): New function.
10550 (linux_supports_vfork_events): New function.
10551 (linux_target_ops): Initialize new structure members.
10552 (initialize_low): Call linux_check_ptrace_features.
10553 * lynx-low.c (lynx_target_ops): Initialize new structure
10555 * server.c (report_fork_events, report_vfork_events):
10557 (handle_query): Add new features to qSupported packet and
10559 (captured_main): Initialize new global variables.
10560 * target.h (struct target_ops) <supports_fork_events>:
10562 <supports_vfork_events>: New member.
10563 (target_supports_fork_events): New macro.
10564 (target_supports_vfork_events): New macro.
10565 * win32-low.c (win32_target_ops): Initialize new structure
10568 2015-05-12 Gary Benson <gbenson@redhat.com>
10570 * server.c (handle_qxfer_exec_file): Use current process
10573 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
10575 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
10576 Remove HAVE_PTRACE_GETREGS conditionals.
10577 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
10578 instead of PTRACE_GETREGS and PTRACE_SETREGS.
10580 2015-05-08 Yao Qi <yao.qi@linaro.org>
10582 * linux-low.c (linux_supports_conditional_breakpoints): New
10584 (linux_target_ops): Install new target method.
10585 * lynx-low.c (lynx_target_ops): Install NULL hook for
10586 supports_conditional_breakpoints.
10587 * nto-low.c (nto_target_ops): Likewise.
10588 * spu-low.c (spu_target_ops): Likewise.
10589 * win32-low.c (win32_target_ops): Likewise.
10590 * server.c (handle_query): Check
10591 target_supports_conditional_breakpoints.
10592 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10594 (target_supports_conditional_breakpoints): New macro.
10596 2015-05-06 Pedro Alves <palves@redhat.com>
10599 * server.c (start_inferior): If the process exits, mourn it.
10601 2015-04-21 Gary Benson <gbenson@redhat.com>
10603 * hostio.c (fileio_open_flags_to_host): Factored out to
10604 fileio_to_host_openflags in common/fileio.c. Single use
10607 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
10609 * linux-xtensa-low.c (xtensa_fill_gregset)
10610 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
10613 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
10615 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
10616 (regs_info): Replace usrregs pointer with NULL.
10618 2015-04-17 Gary Benson <gbenson@redhat.com>
10620 * target.h (struct target_ops) <pid_to_exec_file>: New field.
10621 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
10622 * server.c (handle_qxfer_exec_file): New function.
10623 (qxfer_packets): Add exec-file entry.
10624 (handle_query): Report qXfer:exec-file:read as supported packet.
10626 2015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
10628 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
10630 2015-04-09 Gary Benson <gbenson@redhat.com>
10632 * hostio-errno.c (errno_to_fileio_error): Remove function.
10633 Update caller to use remote_fileio_to_fio_error.
10635 2015-04-09 Yao Qi <yao.qi@linaro.org>
10637 * linux-low.c (linux_insert_point): Call
10638 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
10639 (linux_remove_point): Call remove_memory_breakpoint if type is
10641 * linux-x86-low.c (x86_insert_point): Don't call
10642 insert_memory_breakpoint.
10643 (x86_remove_point): Don't call remove_memory_breakpoint.
10645 2015-04-01 Pedro Alves <palves@redhat.com>
10646 Cleber Rosa <crosa@redhat.com>
10648 * server.c (gdbserver_usage): Reorganize and extend the usage
10651 2015-03-24 Pedro Alves <palves@redhat.com>
10653 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
10654 output. Also dump TRAP_TRACE.
10655 (linux_low_filter_event): In debug output, distinguish a
10656 resume_stop SIGSTOP from a delayed SIGSTOP.
10658 2015-03-24 Gary Benson <gbenson@redhat.com>
10660 * linux-x86-low.c (x86_linux_new_thread): Moved to
10662 (x86_linux_prepare_to_resume): Likewise.
10664 2015-03-24 Gary Benson <gbenson@redhat.com>
10666 * Makefile.in (x86-linux-dregs.o): New rule.
10667 * configure.srv: Add x86-linux-dregs.o to relevant targets.
10668 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
10669 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
10670 (x86_linux_dr_get): Likewise.
10671 (x86_linux_dr_set): Likewise.
10672 (update_debug_registers_callback): Likewise.
10673 (x86_linux_dr_set_addr): Likewise.
10674 (x86_linux_dr_get_addr): Likewise.
10675 (x86_linux_dr_set_control): Likewise.
10676 (x86_linux_dr_get_control): Likewise.
10677 (x86_linux_dr_get_status): Likewise.
10678 (x86_linux_update_debug_registers): Likewise.
10680 2015-03-24 Gary Benson <gbenson@redhat.com>
10682 * linux-x86-low.c (x86_linux_update_debug_registers):
10683 New function, factored out from...
10684 (x86_linux_prepare_to_resume): ...this.
10686 2015-03-24 Gary Benson <gbenson@redhat.com>
10688 * linux-x86-low.c (x86_linux_dr_get): Update comments.
10689 (x86_linux_dr_set): Likewise.
10690 (update_debug_registers_callback): Likewise.
10691 (x86_linux_dr_set_addr): Likewise.
10692 (x86_linux_dr_get_addr): Likewise.
10693 (x86_linux_dr_set_control): Likewise.
10694 (x86_linux_dr_get_control): Likewise.
10695 (x86_linux_dr_get_status): Likewise.
10696 (x86_linux_prepare_to_resume): Likewise.
10698 2015-03-24 Gary Benson <gbenson@redhat.com>
10700 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
10701 Use perror_with_name. Pass string through gettext.
10702 (x86_linux_dr_set): Likewise.
10704 2015-03-24 Gary Benson <gbenson@redhat.com>
10706 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
10707 (x86_linux_dr_set_addr): ...this.
10708 (x86_dr_low_get_addr): Rename to...
10709 (x86_linux_dr_get_addr): ...this.
10710 (x86_dr_low_set_control): Rename to...
10711 (x86_linux_dr_set_control): ...this.
10712 (x86_dr_low_get_control): Rename to...
10713 (x86_linux_dr_get_control): ...this.
10714 (x86_dr_low_get_status): Rename to...
10715 (x86_linux_dr_get_status): ...this.
10716 (x86_dr_low): Update with new function names.
10718 2015-03-24 Gary Benson <gbenson@redhat.com>
10720 * Makefile.in (x86-linux.o): New rule.
10721 * configure.srv: Add x86-linux.o to relevant targets.
10722 * linux-low.c (lwp_set_arch_private_info): New function.
10723 (lwp_arch_private_info): Likewise.
10724 * linux-x86-low.c: Include nat/x86-linux.h.
10725 (arch_lwp_info): Removed structure.
10726 (update_debug_registers_callback):
10727 Use lwp_set_debug_registers_changed.
10728 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
10729 and lwp_set_debug_registers_changed.
10730 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
10732 2015-03-24 Gary Benson <gbenson@redhat.com>
10734 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
10735 * linux-arm-low.c (arm_new_thread): Likewise.
10736 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
10737 * linux-mips-low.c (mips_linux_new_thread): Likewise.
10738 * linux-x86-low.c (x86_linux_new_thread): Likewise.
10739 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
10741 2015-03-24 Gary Benson <gbenson@redhat.com>
10743 * linux-low.c (ptid_of_lwp): New function.
10744 (lwp_is_stopped): Likewise.
10745 (lwp_stop_reason): Likewise.
10746 * linux-x86-low.c (update_debug_registers_callback):
10747 Use lwp_is_stopped.
10748 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
10751 2015-03-24 Gary Benson <gbenson@redhat.com>
10753 * linux-low.h (linux_stop_lwp): Remove declaration.
10755 2015-03-24 Gary Benson <gbenson@redhat.com>
10757 * linux-low.h: Include nat/linux-nat.h.
10758 * linux-low.c (iterate_over_lwps_args): New structure.
10759 (iterate_over_lwps_filter): New function.
10760 (iterate_over_lwps): Likewise.
10761 * linux-x86-low.c (update_debug_registers_callback):
10762 Update signature to what iterate_over_lwps expects.
10763 Remove PID check that iterate_over_lwps now performs.
10764 (x86_dr_low_set_addr): Use iterate_over_lwps.
10765 (x86_dr_low_set_control): Likewise.
10767 2015-03-24 Gary Benson <gbenson@redhat.com>
10769 * linux-x86-low.c (x86_debug_reg_state): New function.
10770 (x86_linux_prepare_to_resume): Use the above.
10772 2015-03-24 Gary Benson <gbenson@redhat.com>
10774 * linux-low.c (current_lwp_ptid): New function.
10775 * linux-x86-low.c: Include nat/linux-nat.h.
10776 (x86_dr_low_get_addr): Use current_lwp_ptid.
10777 (x86_dr_low_get_control): Likewise.
10778 (x86_dr_low_get_status): Likewise.
10780 2015-03-20 Pedro Alves <palves@redhat.com>
10782 * tracepoint.c (cmd_qtstatus): Make "str" const.
10784 2015-03-20 Pedro Alves <palves@redhat.com>
10786 * server.c (handle_general_set): Make "req_str" const.
10788 2015-03-19 Pedro Alves <palves@redhat.com>
10790 * linux-low.c (linux_resume_one_lwp): Rename to ...
10791 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
10792 instead call perror_with_name.
10793 (check_ptrace_stopped_lwp_gone): New function.
10794 (linux_resume_one_lwp): Reimplement as wrapper around
10795 linux_resume_one_lwp_throw that swallows errors if the LWP is
10798 2015-03-19 Pedro Alves <palves@redhat.com>
10800 * linux-low.c (count_events_callback, select_event_lwp_callback):
10801 No longer check whether the thread has resume_stop as last resume
10804 2015-03-19 Pedro Alves <palves@redhat.com>
10806 * linux-low.c (count_events_callback, select_event_lwp_callback):
10807 Use the lwp's status_pending_p field, not the thread's.
10809 2015-03-19 Pedro Alves <palves@redhat.com>
10811 * linux-low.c (select_event_lwp_callback): Update comments to
10812 no longer mention SIGTRAP.
10814 2015-03-18 Gary Benson <gbenson@redhat.com>
10816 * server.c (handle_query): Do not report vFile:fstat as supported.
10818 2015-03-11 Gary Benson <gbenson@redhat.com>
10820 * hostio.c (sys/types.h): New include.
10821 (sys/stat.h): Likewise.
10822 (common-remote-fileio.h): Likewise.
10823 (handle_fstat): New function.
10824 (handle_vFile): Handle vFile:fstat packets.
10826 2015-03-11 Gary Benson <gbenson@redhat.com>
10828 * configure.ac (AC_CHECK_MEMBERS): Add checks for
10829 struct stat.st_blocks and struct stat.st_blksize.
10830 * configure: Regenerate.
10831 * config.in: Likewise.
10832 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
10833 (OBS): Add common-remote-fileio.o.
10834 (common-remote-fileio.o): New rule.
10836 2015-03-09 Pedro Alves <palves@redhat.com>
10838 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
10839 'struct sockaddr' pointer in 'accept' call.
10841 2015-03-09 Pedro Alves <palves@redhat.com>
10844 2015-03-07 Pedro Alves <palves@redhat.com>
10845 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
10846 or <winsock2.h> here. Instead include "gdb_socket.h".
10847 (remote_open): Use union gdb_sockaddr_u.
10848 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
10849 or <winsock2.h> here. Instead include "gdb_socket.h".
10850 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
10851 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
10853 (init_named_socket, gdb_agent_helper_thread): Use union
10856 2015-03-07 Pedro Alves <palves@redhat.com>
10858 * configure.ac (build_warnings): Move
10859 -Wdeclaration-after-statement to the C-specific set.
10860 * configure: Regenerate.
10862 2015-03-07 Pedro Alves <palves@redhat.com>
10864 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
10865 or <winsock2.h> here. Instead include "gdb_socket.h".
10866 (remote_open): Use union gdb_sockaddr_u.
10867 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
10868 or <winsock2.h> here. Instead include "gdb_socket.h".
10869 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
10870 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
10872 (init_named_socket, gdb_agent_helper_thread): Use union
10875 2015-03-07 Pedro Alves <palves@redhat.com>
10877 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
10880 2015-03-06 Yao Qi <yao.qi@linaro.org>
10882 * linux-aarch64-low.c (aarch64_insert_point): Use
10883 show_debug_regs as a boolean.
10884 (aarch64_remove_point): Likewise.
10886 2015-03-05 Pedro Alves <palves@redhat.com>
10888 * lynx-low.c (lynx_target_ops): Install NULL hooks for
10889 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
10890 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
10891 * nto-low.c (nto_target_ops): Likewise.
10892 * spu-low.c (spu_target_ops): Likewise.
10893 * win32-low.c (win32_target_ops): Likewise.
10895 2015-03-04 Pedro Alves <palves@redhat.com>
10897 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
10898 Decide whether a breakpoint triggered based on the SIGTRAP's
10900 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
10901 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
10902 (linux_low_filter_event): Check for breakpoints before checking
10904 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
10906 (linux_stopped_by_sw_breakpoint)
10907 (linux_supports_stopped_by_sw_breakpoint)
10908 (linux_stopped_by_hw_breakpoint)
10909 (linux_supports_stopped_by_hw_breakpoint): New functions.
10910 (linux_target_ops): Install new target methods.
10912 2015-03-04 Pedro Alves <palves@redhat.com>
10914 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
10915 * server.c (swbreak_feature, hwbreak_feature): New globals.
10916 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
10917 (captured_main): Clear swbreak_feature and hwbreak_feature.
10918 * server.h (swbreak_feature, hwbreak_feature): Declare.
10919 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
10920 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
10921 supports_stopped_by_hw_breakpoint>: New fields.
10922 (target_supports_stopped_by_sw_breakpoint)
10923 (target_stopped_by_sw_breakpoint)
10924 (target_supports_stopped_by_hw_breakpoint)
10925 (target_stopped_by_hw_breakpoint): Declare.
10927 2015-03-04 Pedro Alves <palves@redhat.com>
10929 enum lwp_stop_reason -> enum target_stop_reason
10930 * linux-low.c (check_stopped_by_breakpoint): Adjust.
10931 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
10932 (linux_wait_1, stuck_in_jump_pad_callback)
10933 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
10934 (linux_stopped_by_watchpoint):
10935 * linux-low.h (enum lwp_stop_reason): Delete.
10936 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
10937 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
10939 2015-03-04 Yao Qi <yao.qi@linaro.org>
10941 * Makefile.in (SFILES): Add linux-aarch64-low.c.
10943 2015-03-03 Gary Benson <gbenson@redhat.com>
10945 * hostio.c (handle_vFile): Fix prefix lengths.
10947 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
10949 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
10952 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
10954 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
10955 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
10956 (clean): Add "rm -f" for above C files.
10957 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
10958 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
10959 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
10960 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
10961 * linux-s390-low.c (HWCAP_S390_VX): New macro.
10962 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
10963 (init_registers_s390x_vx_linux64)
10964 (init_registers_s390x_tevx_linux64)
10965 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
10966 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
10968 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
10969 (s390_store_vxrs_high): New functions.
10970 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
10972 (s390_arch_setup): Add logic for selecting one of the new target
10973 descriptions. Activate the new vector regsets if applicable.
10974 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
10975 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
10976 and init_registers_s390x_tevx_linux64.
10978 2015-03-01 Pedro Alves <palves@redhat.com>
10980 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
10983 2015-02-27 Pedro Alves <palves@redhat.com>
10985 * linux-x86-low.c (u_debugreg_offset): New function.
10986 (x86_linux_dr_get, x86_linux_dr_set): Use it.
10988 2015-02-27 Pedro Alves <palves@redhat.com>
10990 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
10991 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
10992 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
10993 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
10994 (ps_lsetfpregs, ps_getpid)
10995 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
10996 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
10997 (ps_lsetxregs, ps_plog): Declare.
10999 2015-02-27 Pedro Alves <palves@redhat.com>
11001 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
11002 IP_AGENT_EXPORT_FUNC.
11003 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
11004 IP_AGENT_EXPORT_FUNC.
11005 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
11006 (IP_AGENT_EXPORT): Delete.
11007 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11008 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11009 (gdb_trampoline_buffer_error, collecting, gdb_collect)
11010 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
11011 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
11012 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
11013 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
11014 (traceframe_read_count, traceframe_write_count)
11015 (traceframes_created, trace_state_variables, get_raw_reg)
11016 (get_trace_state_variable_value, set_trace_state_variable_value)
11017 (ust_loaded, helper_thread_id, cmd_buf): Use
11018 IPA_SYM_EXPORTED_NAME.
11019 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
11020 (tracepoints) Use IP_AGENT_EXPORT_VAR.
11021 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
11022 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11023 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
11024 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
11025 EXTERN_C_PUSH/EXTERN_C_POP.
11026 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
11027 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
11028 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11029 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
11030 (traceframe_write_count, traceframe_read_count)
11031 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
11032 (about_to_request_buffer_space, get_trace_state_variable_value)
11033 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
11034 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
11035 EXTERN_C_PUSH/EXTERN_C_POP.
11036 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
11037 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
11038 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
11039 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11040 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11041 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11042 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
11043 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
11045 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
11046 (IP_AGENT_EXPORT_VAR_DECL): Define.
11047 (tracing): Declare.
11048 (gdb_agent_get_raw_reg): Declare.
11050 2015-02-27 Tom Tromey <tromey@redhat.com>
11051 Pedro Alves <palves@redhat.com>
11053 Rename symbols whose names are reserved C++ keywords throughout.
11055 2015-02-27 Pedro Alves <palves@redhat.com>
11057 * Makefile.in (COMPILER): New, get it from autoconf.
11058 (CXX): Get from autoconf instead.
11059 (COMPILE.pre): Use COMPILER.
11060 (CC-LD): Rename to ...
11061 (CC_LD): ... this. Use COMPILER.
11062 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
11063 (CXX_FOR_TARGET): Default to g++ instead of gcc.
11064 * acinclude.m4: Include build-with-cxx.m4.
11065 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
11066 Disable -Werror by default if building in C++ mode.
11067 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
11068 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
11069 the C++ compiler. Save/restore CXXFLAGS too.
11070 * configure: Regenerate.
11072 2015-02-27 Pedro Alves <palves@redhat.com>
11074 * acinclude.m4: Include libiberty.m4.
11075 * configure.ac: Call libiberty_INIT.
11076 * config.in, configure: Regenerate.
11078 2015-02-26 Pedro Alves <palves@redhat.com>
11080 * linux-low.c (linux_wait_1): When incrementing the PC past a
11081 program breakpoint always use the_low_target.breakpoint_len as
11082 increment, rather than the maximum between that and
11083 the_low_target.decr_pc_after_break.
11085 2015-02-23 Pedro Alves <palves@redhat.com>
11087 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
11088 thread was doing a step-over; always adjust the PC if
11089 we stepped over a permanent breakpoint.
11090 (linux_wait_1): If we stepped over breakpoint that was on top of a
11091 permanent breakpoint, manually advance the PC past it.
11093 2015-02-23 Pedro Alves <palves@redhat.com>
11095 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
11097 (x86_fill_gregset, x86_store_gregset): Use it when handling
11100 2015-02-20 Pedro Alves <palves@redhat.com>
11102 * thread-db.c: Include "nat/linux-procfs.h".
11103 (thread_db_init): Skip listing new threads if the kernel supports
11104 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
11106 2015-02-20 Pedro Alves <palves@redhat.com>
11108 * linux-low.c (status_pending_p_callback): Use ptid_match.
11110 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
11112 PR breakpoints/16812
11113 * linux-low.c (wstatus_maybe_breakpoint): Remove.
11114 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
11115 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
11117 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
11119 PR breakpoints/15956
11120 * tracepoint.c (cmd_qtinit): Add check for current_thread.
11122 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11124 * linux-low.c (linux_low_btrace_conf): Print size.
11125 * server.c (handle_btrace_conf_general_set): New.
11126 (hanle_general_set): Call handle_btrace_conf_general_set.
11127 (handle_query): Report Qbtrace-conf:bts:size as supported.
11129 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11131 * linux-low.c (linux_low_enable_btrace): Update parameters.
11132 (linux_low_btrace_conf): New.
11133 (linux_target_ops)<to_btrace_conf>: Initialize.
11134 * server.c (current_btrace_conf): New.
11135 (handle_btrace_enable): Rename to ...
11136 (handle_btrace_enable_bts): ... this. Pass ¤t_btrace_conf
11137 to target_enable_btrace. Update comment. Update users.
11138 (handle_qxfer_btrace_conf): New.
11139 (qxfer_packets): Add btrace-conf entry.
11140 (handle_query): Report qXfer:btrace-conf:read as supported packet.
11141 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
11142 (target_ops)<read_btrace_conf>: New.
11143 (target_enable_btrace): Update parameters.
11144 (target_read_btrace_conf): New.
11146 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11148 * server.c (handle_btrace_general_set): Remove call to
11149 target_supports_btrace.
11150 (supported_btrace_packets): New.
11151 (handle_query): Call supported_btrace_packets.
11152 * target.h: include btrace-common.h.
11153 (btrace_target_info): Removed.
11154 (supports_btrace, target_supports_btrace): Update parameters.
11156 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11158 * Makefile.in (SFILES): Add common/btrace-common.c.
11159 (OBS): Add common/btrace-common.o.
11160 (btrace-common.o): Add build rules.
11161 * linux-low: Include btrace-common.h.
11162 (linux_low_read_btrace): Use struct btrace_data. Call
11163 btrace_data_init and btrace_data_fini.
11165 2015-02-06 Pedro Alves <palves@redhat.com>
11167 * thread-db.c (find_new_threads_callback): Add debug output.
11169 2015-02-04 Pedro Alves <palves@redhat.com>
11171 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
11172 (resume_stopped_resumed_lwps): New function.
11173 (linux_wait_for_event_filtered): Use it.
11175 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11177 * Makefile.in (SFILES): Add linux-personality.c.
11178 (linux-personality.o): New rule.
11179 * configure.srv (srv_linux_obj): Add linux-personality.o to the
11180 list of objects to be built.
11181 * linux-low.c: Include nat/linux-personality.h.
11182 (linux_create_inferior): Remove code to disable address space
11183 randomization (moved to ../nat/linux-personality.c). Create
11184 cleanup to disable address space randomization.
11186 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11188 * Makefile.in (posix-strerror.o): New rule.
11189 (mingw-strerror.o): Likewise.
11190 * configure: Regenerated.
11191 * configure.ac: Source file ../common/common.host. Initialize new
11192 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
11194 2015-01-14 Yao Qi <yao@codesourcery.com>
11196 * Makefile.in (SFILES): Add nat/ppc-linux.c.
11197 (ppc-linux.o): New rule.
11198 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
11199 * configure.ac: AC_CHECK_FUNCS(getauxval).
11200 * config.in: Re-generated.
11201 * configure: Re-generated.
11202 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
11203 ppc64_64bit_inferior_p
11205 2015-01-14 Yao Qi <yao@codesourcery.com>
11207 * linux-ppc-low.c: Include "nat/ppc-linux.h".
11208 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
11209 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
11210 (PT_ORIG_R3, PT_TRAP): Likewise.
11211 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
11212 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
11213 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
11215 2015-01-10 Joel Brobecker <brobecker@adacore.com>
11217 * i387-fp.c (i387_cache_to_xsave): In look over
11218 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
11219 zmmh_low_space field by use of zmmh_high_space.
11221 2015-01-09 Pedro Alves <palves@redhat.com>
11223 * linux-low.c (step_over_bkpt): Move higher up in the file.
11224 (handle_extended_wait): Don't store the stop_pc here.
11225 (get_stop_pc): Adjust comments and rename to ...
11226 (check_stopped_by_breakpoint): ... this. Record whether the LWP
11227 stopped for a software breakpoint or hardware breakpoint.
11228 (thread_still_has_status_pending_p): New function.
11229 (status_pending_p_callback): Use
11230 thread_still_has_status_pending_p. If the event is no longer
11231 interesting, resume the LWP.
11232 (handle_tracepoints): Add assert.
11233 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
11234 (wstatus_maybe_breakpoint): New function.
11235 (cancel_breakpoint): Delete function.
11236 (check_stopped_by_watchpoint): New function, factored out from
11237 linux_low_filter_event.
11238 (lp_status_maybe_breakpoint): Delete function.
11239 (linux_low_filter_event): Remove filter_ptid argument.
11240 Leave thread group exits pending here. Store the LWP's stop PC.
11241 Always leave events pending.
11242 (linux_wait_for_event_filtered): Pull all events out of the
11243 kernel, and leave them all pending.
11244 (count_events_callback, select_event_lwp_callback): Consider all
11246 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
11247 (select_event_lwp): Only give preference to the stepping LWP in
11248 all-stop mode. Adjust comments.
11249 (ignore_event): New function.
11250 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
11251 references to cancel_breakpoints. Adjust to renames. Also give
11252 equal priority to all LWPs that have had events in non-stop mode.
11253 If reporting a software breakpoint event, unadjust the LWP's PC.
11254 (linux_wait): If linux_wait_1 returned an ignored event, retry.
11255 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
11257 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
11258 (resume_status_pending_p): Use thread_still_has_status_pending_p.
11259 (linux_stopped_by_watchpoint): Adjust.
11260 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
11261 * linux-low.h (enum lwp_stop_reason): New.
11262 (struct lwp_info) <stop_pc>: Adjust comment.
11263 <stopped_by_watchpoint>: Delete field.
11264 <stop_reason>: New field.
11265 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11266 * mem-break.c (software_breakpoint_inserted_here)
11267 (hardware_breakpoint_inserted_here): New function.
11268 * mem-break.h (software_breakpoint_inserted_here)
11269 (hardware_breakpoint_inserted_here): Declare.
11270 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
11271 (cancel_breakpoints): Delete.
11272 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
11273 (upload_fast_traceframes): Remove references to
11274 cancel_breakpoints.
11276 2015-01-09 Pedro Alves <palves@redhat.com>
11278 * thread-db.c (find_new_threads_callback): Ignore thread if the
11279 kernel thread ID is -1.
11281 2015-01-09 Pedro Alves <palves@redhat.com>
11283 * linux-low.c (linux_attach_fail_reason_string): Move to
11284 nat/linux-ptrace.c, and rename.
11285 (linux_attach_lwp): Update comment.
11286 (attach_proc_task_lwp_callback): New function.
11287 (linux_attach): Adjust to rename and use
11288 linux_proc_attach_tgid_threads.
11289 (linux_attach_fail_reason_string): Delete declaration.
11291 2015-01-01 Joel Brobecker <brobecker@adacore.com>
11293 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
11294 * server.c (gdbserver_version): Likewise.
11296 2014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
11298 * remote-utils.c: Include ctype.h.
11299 (input_interrupt): Explicitly handle the case when the char
11300 received is the NUL byte. Improve the printing of non-ASCII
11303 2014-12-16 Joel Brobecker <brobecker@adacore.com>
11305 * linux-low.c (linux_low_filter_event): Update call to
11306 linux_enable_event_reporting following the addition of
11307 a new parameter to that function.
11309 2014-12-16 Catalin Udma <catalin.udma@freescale.com>
11312 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
11313 (AARCH64_FPCR_REGNO): Likewise.
11314 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
11315 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
11316 (aarch64_store_fpregset): Likewise.
11318 2014-12-15 Joel Brobecker <brobecker@adacore.com>
11320 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
11321 Remove FIXME comment about assumption about N.
11323 2014-12-13 Joel Brobecker <brobecker@adacore.com>
11325 * configure.ac: If large-file support is disabled in GDBserver,
11326 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
11327 * configure: Regenerate.
11329 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11331 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
11332 warning upon ENODATA from ptrace.
11333 * linux-s390-low.c (s390_store_tdb): New.
11334 (s390_regsets): Add regset for NT_S390_TDB.
11336 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11338 * linux-low.c (regsets_store_inferior_registers): Skip regsets
11339 without a fill_function.
11340 * linux-s390-low.c (s390_fill_last_break): Remove.
11341 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
11342 (s390_arch_setup): Use regset's size instead of fill_function for
11343 loop end condition.
11345 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11347 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
11348 the regset's store function when ptrace returned an error.
11349 * regcache.c (get_thread_regcache): Invalidate register cache
11350 before fetching inferior's registers.
11352 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11354 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
11355 while-loop as for-loop.
11356 (regsets_store_inferior_registers): Likewise.
11358 2014-11-28 Yao Qi <yao@codesourcery.com>
11360 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
11361 * config.in, configure: Re-generate.
11362 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
11365 2014-11-21 Yao Qi <yao@codesourcery.com>
11367 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
11368 (AC_CHECK_HEADERS): Remove malloc.h.
11369 * configure: Re-generated.
11370 * config.in: Re-generated.
11371 * server.h: Don't include alloca.h and malloc.h.
11372 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
11373 Don't include malloc.h.
11375 2014-11-17 Joel Brobecker <brobecker@adacore.com>
11377 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
11378 corresponding ERRNO check in same block.
11380 2014-11-12 Pedro Alves <palves@redhat.com>
11382 * server.c (cont_thread): Update comment.
11383 (start_inferior, attach_inferior): No longer clear cont_thread.
11384 (handle_v_cont): No longer set cont_thread.
11385 (captured_main): Clear cont_thread each time a GDB connects.
11387 2014-11-12 Pedro Alves <palves@redhat.com>
11389 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
11390 thread, and don't resume all threads if the Hc thread has exited.
11392 2014-11-12 Pedro Alves <palves@redhat.com>
11394 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
11395 the process group instead of to a specific LWP.
11397 2014-10-15 Pedro Alves <palves@redhat.com>
11400 * win32-arm-low.c (arm_set_thread_context): Remove current_event
11402 (arm_set_thread_context): Delete.
11403 (the_low_target): Adjust.
11404 * win32-i386-low.c (debug_registers_changed)
11405 (debug_registers_used): Delete.
11406 (update_debug_registers_callback): New function.
11407 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
11408 needing to update their debug registers.
11409 (win32_get_current_dr): New function.
11410 (x86_dr_low_get_addr, x86_dr_low_get_control)
11411 (x86_dr_low_get_status): Fetch the debug register from the thread
11413 (i386_initial_stuff): Adjust.
11414 (i386_get_thread_context): Remove current_event parameter. Don't
11415 clear debug_registers_changed nor copy DR values to
11417 (i386_set_thread_context): Delete.
11418 (i386_prepare_to_resume): New function.
11419 (i386_thread_added): Mark the thread as needing to update irs
11421 (the_low_target): Remove i386_set_thread_context and install
11422 i386_prepare_to_resume.
11423 * win32-low.c (win32_get_thread_context): Adjust.
11424 (win32_set_thread_context): Use SetThreadContext
11426 (win32_prepare_to_resume): New function.
11427 (win32_require_context): New function, factored out from ...
11428 (thread_rec): ... this.
11429 (continue_one_thread): Call win32_prepare_to_resume on each thread
11430 we're about to continue.
11431 (win32_resume): Call win32_prepare_to_resume on the event thread.
11432 * win32-low.h (struct win32_thread_info)
11433 <debug_registers_changed>: New field.
11434 (struct win32_target_ops): Change prototype of set_thread_context,
11435 delete set_thread_context and add prepare_to_resume.
11436 (win32_require_context): New declaration.
11438 2014-10-08 Gary Benson <gbenson@redhat.com>
11440 * server.h: Do not include common-exceptions.h.
11442 2014-10-08 Gary Benson <gbenson@redhat.com>
11444 * server.h: Do not include cleanups.h.
11446 2014-09-30 James Hogan <james.hogan@imgtec.com>
11448 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
11449 mips64-dsp-linux.c.
11451 2014-09-23 Yao Qi <yao@codesourcery.com>
11453 * linux-low.c (lp_status_maybe_breakpoint): New function.
11454 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
11455 (count_events_callback): Likewise.
11456 (select_event_lwp_callback): Likewise.
11457 (cancel_breakpoints_callback): Likewise.
11459 2014-09-19 Don Breazeal <donb@codesourcery.com>
11461 * linux-low.c (handle_extended_wait): Call
11462 linux_ptrace_get_extended_event.
11463 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
11464 linux_is_extended_waitstatus.
11466 2014-09-16 Joel Brobecker <brobecker@adacore.com>
11468 * Makefile.in (CPPFLAGS): Define.
11469 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
11470 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
11472 2014-09-16 Gary Benson <gbenson@redhat.com>
11474 * inferiors.h (current_inferior): Renamed as...
11475 (current_thread): New variable. All uses updated.
11476 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
11477 (maybe_move_out_of_jump_pad): Likewise.
11478 (cancel_breakpoint): Likewise.
11479 (linux_low_filter_event): Likewise.
11480 (wait_for_sigstop): Likewise.
11481 (linux_resume_one_lwp): Likewise.
11482 (need_step_over_p): Likewise.
11483 (start_step_over): Likewise.
11484 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
11485 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
11486 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
11487 and save_inferior as saved_thread.
11488 * regcache.c (get_thread_regcache): Renamed saved_inferior as
11490 (regcache_invalidate_thread): Likewise.
11491 * remote-utils.c (prepare_resume_reply): Likewise.
11492 * thread-db.c (thread_db_get_tls_address): Likewise.
11493 (disable_thread_event_reporting): Likewise.
11494 (remove_thread_event_breakpoints): Likewise.
11495 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
11497 * target.h (set_desired_inferior): Renamed as...
11498 (set_desired_thread): New declaration. All uses updated.
11499 * server.c (myresume): Updated comment to reference thread instead
11501 (handle_serial_event): Likewise.
11502 (handle_target_event): Likewise.
11504 2014-09-12 Tom Tromey <tromey@redhat.com>
11505 Gary Benson <gbenson@redhat.com>
11507 * regcache.h: Include common-regcache.h.
11508 (regcache_read_pc): Don't declare.
11509 * regcache.c (get_thread_regcache_for_ptid): New function.
11511 2014-09-11 Tom Tromey <tromey@redhat.com>
11512 Gary Benson <gbenson@redhat.com>
11514 * symbol.c: New file.
11515 * Makefile.in (SFILES): Add symbol.c.
11516 (OBS): Add symbol.o.
11518 2014-09-11 Gary Benson <gbenson@redhat.com>
11520 * target.c (target_stop_ptid, target_continue_ptid): New
11523 2014-09-11 Tom Tromey <tromey@redhat.com>
11524 Gary Benson <gbenson@redhat.com>
11526 * target.h: Include target/target.h.
11527 * target.c (target_read_memory, target_read_uint32)
11528 (target_write_memory): New functions.
11530 2014-09-11 Gary Benson <gbenson@redhat.com>
11532 * server.h (debug_hw_points): Don't declare.
11533 * server.c (debug_hw_points): Don't define. Replace all uses
11534 with show_debug_regs.
11535 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
11536 all uses with show_debug_regs.
11538 2014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
11540 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
11541 endianness into account.
11542 (ppc_supply_ptrace_register): Likewise.
11544 2014-09-03 James Hogan <james.hogan@imgtec.com>
11546 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
11547 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
11549 2014-09-03 Gary Benson <gbenson@redhat.com>
11551 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
11552 ALL_DEBUG_ADDRESS_REGISTERS.
11554 2014-09-02 Gary Benson <gbenson@redhat.com>
11556 * i386-low.h: Renamed as...
11557 * x86-low.h: New file. All type, function and variable name
11558 prefixes changed from "i386_" to "x86_". All references updated.
11559 * i386-low.c: Renamed as...
11560 * x86-low.c: New file. All type, function and variable name
11561 prefixes changed from "i386_" to "x86_". All references updated.
11563 2014-09-02 Gary Benson <gbenson@redhat.com>
11565 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
11566 (x86_linux_new_thread): Likewise.
11568 2014-08-29 Gary Benson <gbenson@redhat.com>
11570 * server.h (setjmp.h): Do not include.
11571 (toplevel): Do not declare.
11572 (common-exceptions.h): Include.
11573 (cleanups.h): Likewise.
11574 * server.c (toplevel): Do not define.
11575 (exit_code): New static global.
11576 (detach_or_kill_for_exit_cleanup): New function.
11577 (main): New function. Original main renamed to...
11578 (captured_main): New function.
11579 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
11581 2014-08-29 Gary Benson <gbenson@redhat.com>
11583 * Makefile.in (SFILES): Add common/common-exceptions.c.
11584 (OBS): Add common-exceptions.o.
11585 (common-exceptions.o): New rule.
11586 * utils.c (prepare_to_throw_exception): New function.
11588 2014-08-29 Gary Benson <gbenson@redhat.com>
11590 * config.in: Regenerate.
11591 * configure: Likewise.
11593 2014-08-29 Gary Benson <gbenson@redhat.com>
11595 * Makefile.in (SFILES): Add common/cleanups.c.
11597 (cleanups.o): New rule.
11599 2014-08-29 Gary Benson <gbenson@redhat.com>
11601 * utils.c (internal_vwarning): New function.
11603 2014-08-28 Gary Benson <gbenson@redhat.com>
11605 * utils.h (fatal): Remove declaration.
11606 * utils.c (fatal): Remove function.
11608 2014-08-28 Gary Benson <gbenson@redhat.com>
11610 * tracepoint.c (gdb_agent_init): Replace fatal with
11612 (initialize_tracepoint): Likewise.
11614 2014-08-28 Gary Benson <gbenson@redhat.com>
11616 * remote-utils.c (remote_prepare): Replace fatal with error.
11618 2014-08-28 Gary Benson <gbenson@redhat.com>
11620 * linux-low.c (linux_async): Replace fatal with warning.
11621 Tidy up and return.
11622 (linux_start_non_stop): Return -1 if linux_async failed.
11624 2014-08-28 Gary Benson <gbenson@redhat.com>
11626 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
11628 (i386_dr_low_get_addr): Remove vague comment.
11629 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
11632 2014-08-28 Gary Benson <gbenson@redhat.com>
11634 * inferiors.c (get_thread_process): Replace check with gdb_assert.
11635 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
11637 (linux_resume_one_lwp): Likewise.
11638 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
11640 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
11641 with internal_error.
11642 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
11643 (init_register_cache): Replace fatal with gdb_assert_not_reached.
11644 (find_register_by_name): Replace fatal with internal_error.
11645 (find_regno): Likewise.
11646 * tdesc.c (init_target_desc): Replace check with gdb_assert.
11647 * thread-db.c (thread_db_create_event): Likewise.
11648 (thread_db_load_search): Likewise.
11649 (try_thread_db_load_1): Likewise.
11650 * tracepoint.c (get_jump_space_head): Replace fatal with
11652 (claim_trampoline_space): Likewise.
11653 (have_fast_tracepoint_trampoline_buffer): Likewise.
11654 (cmd_qtstart): Likewise.
11655 (stop_tracing): Likewise.
11656 (fast_tracepoint_collecting): Likewise.
11657 (target_malloc): Likewise.
11658 (download_tracepoint): Likewise.
11659 (download_trace_state_variables): Replace check with gdb_assert.
11660 (upload_fast_traceframes): Replace fatal with internal_error.
11662 2014-08-19 Tom Tromey <tromey@redhat.com>
11663 Gary Benson <gbenson@redhat.com>
11665 * Makefile.in (SFILES): Add common/common-debug.c.
11666 (OBS): Add common-debug.o.
11667 (common-debug.o): New rule.
11668 * debug.h (debug_printf): Don't declare.
11669 * debug.c (debug_printf): Renamed and rewritten as...
11670 (debug_vprintf): New function.
11672 2014-08-19 Gary Benson <gbenson@redhat.com>
11674 * utils.h: Do not include print-utils.h.
11676 2014-08-19 Tom Tromey <tromey@redhat.com>
11677 Gary Benson <gbenson@redhat.com>
11679 * server.h: Add static assertion.
11680 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
11682 2014-08-19 Tom Tromey <tromey@redhat.com>
11683 Gary Benson <gbenson@redhat.com>
11685 * Makefile.in (SFILES): Add common/errors.c.
11686 (OBS): Add errors.o.
11687 (IPA_OBS): Add errors-ipa.o.
11688 (errors.o): New rule.
11689 (errors-ipa.o): Likewise.
11690 * utils.h (perror_with_name, error, warning): Don't declare.
11691 * utils.c (warning): Renamed and rewritten as...
11692 (vwarning): New function.
11693 (error): Renamed and rewritten as...
11694 (verror): New function.
11695 (internal_error): Renamed and rewritten as...
11696 (internal_verror): New function.
11698 2014-08-07 Gary Benson <gbenson@redhat.com>
11700 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
11701 * configure: Regenerate.
11702 * config.in: Likewise.
11703 * server.h: Do not include errno.h.
11704 * event-loop.c: Likewise.
11705 * hostio-errno.c: Likewise.
11706 * linux-low.c: Likewise.
11707 * remote-utils.c: Likewise.
11708 * spu-low.c: Likewise.
11709 * utils.c: Likewise.
11710 * gdbreplay.c: Unconditionally include errno.h.
11712 2014-08-07 Gary Benson <gbenson@redhat.com>
11714 * server.h: Do not include string.h.
11715 * event-loop.c: Likewise.
11716 * linux-low.c: Likewise.
11717 * regcache.c: Likewise.
11718 * remote-utils.c: Likewise.
11719 * spu-low.c: Likewise.
11720 * utils.c: Likewise.
11722 2014-08-07 Gary Benson <gbenson@redhat.com>
11724 * server.h: Do not include gdb_assert.h.
11726 2014-08-07 Gary Benson <gbenson@redhat.com>
11728 * server.h: Do not include common-utils.h.
11730 2014-08-07 Gary Benson <gbenson@redhat.com>
11732 * server.h: Do not include ptid.h.
11733 * notif.h: Likewise.
11735 2014-08-07 Gary Benson <gbenson@redhat.com>
11737 * server.h: Do not include gdb_locale.h.
11739 2014-08-07 Gary Benson <gbenson@redhat.com>
11741 * server.h: Do not include gdb/signals.h.
11742 * win32-low.c: Likewise.
11744 2014-08-07 Gary Benson <gbenson@redhat.com>
11746 * server.h: Do not include pathmax.h.
11748 2014-08-07 Gary Benson <gbenson@redhat.com>
11750 * server.h: Do not include libiberty.h.
11751 * linux-bfin-low.c: Likewise.
11753 2014-08-07 Gary Benson <gbenson@redhat.com>
11755 * server.h: Do not include ansidecl.h.
11757 2014-08-07 Gary Benson <gbenson@redhat.com>
11759 * linux-x86-low.c: Do not include stddef.h.
11760 * lynx-ppc-low.c: Likewise.
11761 * tracepoint.c: Likewise.
11763 2014-08-07 Gary Benson <gbenson@redhat.com>
11765 * server.h: Do not include stdarg.h.
11766 * nto-low.c: Likewise.
11768 2014-08-07 Gary Benson <gbenson@redhat.com>
11770 * server.h: Do not include stdlib.h.
11771 * inferiors.c: Likewise.
11772 * linux-low.c: Likewise.
11773 * regcache.c: Likewise.
11774 * spu-low.c: Likewise.
11775 * tracepoint.c: Likewise.
11776 * utils.c: Likewise.
11778 2014-08-07 Gary Benson <gbenson@redhat.com>
11780 * server.h: Do not include stdio.h.
11781 * linux-low.c: Likewise.
11782 * remote-utils.c: Likewise.
11783 * spu-low.c: Likewise.
11784 * utils.c: Likewise.
11785 * wincecompat.c: Likewise.
11787 2014-08-06 Gary Benson <gbenson@redhat.com>
11789 * regcache.c (init_register_cache): Move conditionals inside if.
11791 2014-08-06 Gary Benson <gbenson@redhat.com>
11793 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
11795 2014-07-31 Gary Benson <gbenson@redhat.com>
11797 * ax.h: Do not include server.h.
11798 * gdbthread.h: Likewise.
11799 * lynx-low.h: Likewise.
11800 * notif.h: Likewise.
11802 2014-07-30 Gary Benson <gbenson@redhat.com>
11804 * server.h: Include common-defs.h.
11805 Do not include config.h or build-gnulib-gdbserver/config.h.
11807 2014-07-30 Gary Benson <gbenson@redhat.com>
11809 * hostio-errno.c: Move server.h to top of includes list.
11810 * inferiors.c: Likewise.
11811 * linux-x86-low.c: Likewise.
11812 * notif.c: Include server.h.
11814 2014-07-24 Tom Tromey <tromey@redhat.com>
11815 Gary Benson <gbenson@redhat.com>
11817 * server.h (CORE_ADDR): Now unsigned.
11819 2014-07-16 Pedro Alves <palves@redhat.com>
11821 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
11823 2014-07-15 Pedro Alves <palves@redhat.com>
11825 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
11828 2014-07-11 Pedro Alves <palves@redhat.com>
11830 * linux-low.c (kill_wait_lwp): New function, based on
11831 kill_one_lwp_callback, but use my_waitpid directly.
11832 (kill_one_lwp_callback, linux_kill): Use it.
11834 2014-06-23 Pedro Alves <palves@redhat.com>
11836 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
11837 before setting DR0..DR3.
11839 2014-06-20 Gary Benson <gbenson@redhat.com>
11841 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
11842 * configure: Regenerated.
11843 * config.in: Likewise.
11845 2014-06-20 Gary Benson <gbenson@redhat.com>
11847 * Makefile.in (SFILES): Update locations for files moved
11848 from common to nat.
11849 (object file files): Reordered.
11851 2014-06-20 Gary Benson <gbenson@redhat.com>
11853 * i386-low.h (i386_dr_low_can_set_addr): Removed.
11854 (i386_dr_low_set_addr): Likewise.
11855 (i386_dr_low_get_addr): Likewise.
11856 (i386_dr_low_can_set_control): Likewise.
11857 (i386_dr_low_set_control): Likewise.
11858 (i386_dr_low_get_control): Likewise.
11859 (i386_dr_low_get_status): Likewise.
11860 (i386_get_debug_register_length): Likewise.
11861 * linux-x86-low.c (i386_dr_low_set_addr):
11862 Changed signature. Made static.
11863 (i386_dr_low_get_addr): Likewise.
11864 (i386_dr_low_set_control): Likewise.
11865 (i386_dr_low_get_control): Likewise.
11866 (i386_dr_low_get_status): Likewise.
11867 (i386_dr_low): New global variable.
11868 * win32-i386-low.c (i386_dr_low_set_addr):
11869 Changed signature. Made static.
11870 (i386_dr_low_get_addr): Likewise.
11871 (i386_dr_low_set_control): Likewise.
11872 (i386_dr_low_get_control): Likewise.
11873 (i386_dr_low_get_status): Likewise.
11874 (i386_dr_low): New global variable.
11876 2014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
11878 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
11879 * Makefile.in (AR, AR_FLAGS): Define.
11880 * configure: Regenerate.
11882 2014-06-19 Gary Benson <gbenson@redhat.com>
11884 * Makefile.in (i386-dregs.o): New rule.
11885 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
11886 * i386-low.c (target.h): Remove include.
11887 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
11888 (DR_CONTROL_SHIFT): Likewise.
11889 (DR_CONTROL_SIZE): Likewise.
11890 (DR_RW_EXECUTE): Likewise.
11891 (DR_RW_WRITE): Likewise.
11892 (DR_RW_READ): Likewise.
11893 (DR_RW_IORW): Likewise.
11894 (DR_LEN_1): Likewise.
11895 (DR_LEN_2): Likewise.
11896 (DR_LEN_4): Likewise.
11897 (DR_LEN_8): Likewise.
11898 (DR_LOCAL_ENABLE_SHIFT): Likewise.
11899 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
11900 (DR_ENABLE_SIZE): Likewise.
11901 (DR_LOCAL_SLOWDOWN): Likewise.
11902 (DR_GLOBAL_SLOWDOWN): Likewise.
11903 (DR_CONTROL_RESERVED): Likewise.
11904 (I386_DR_CONTROL_MASK): Likewise.
11905 (I386_DR_VACANT): Likewise.
11906 (I386_DR_LOCAL_ENABLE): Likewise.
11907 (I386_DR_GLOBAL_ENABLE): Likewise.
11908 (I386_DR_DISABLE): Likewise.
11909 (I386_DR_SET_RW_LEN): Likewise.
11910 (I386_DR_GET_RW_LEN): Likewise.
11911 (I386_DR_WATCH_HIT): Likewise.
11912 (i386_wp_op_t): Likewise.
11913 (i386_show_dr): Likewise.
11914 (i386_length_and_rw_bits): Likewise.
11915 (i386_insert_aligned_watchpoint): Likewise.
11916 (i386_remove_aligned_watchpoint): Likewise.
11917 (i386_handle_nonaligned_watchpoint): Likewise.
11918 i386_update_inferior_debug_regs(): Likewise.
11919 (i386_dr_insert_watchpoint): Likewise.
11920 (i386_dr_remove_watchpoint): Likewise.
11921 (i386_dr_region_ok_for_watchpoint): Likewise.
11922 (i386_dr_stopped_data_address): Likewise.
11923 (i386_dr_stopped_by_watchpoint): Likewise.
11925 2014-06-19 Gary Benson <gbenson@redhat.com>
11927 * i386-low.c (i386_dr_show): Renamed to
11928 i386_show_dr and made static. All uses updated.
11929 (i386_dr_length_and_rw_bits): Renamed to
11930 i386_length_and_rw_bits and made static.
11932 (i386_dr_insert_aligned_watchpoint): Renamed to
11933 i386_insert_aligned_watchpoint and made static.
11935 (i386_dr_remove_aligned_watchpoint): Renamed to
11936 i386_remove_aligned_watchpoint and made static.
11938 (i386_dr_update_inferior_debug_regs): Renamed to
11939 i386_update_inferior_debug_regs and made static.
11942 2014-06-18 Gary Benson <gbenson@redhat.com>
11944 * i386-low.h (i386_dr_low_can_set_addr): New macro.
11945 (i386_dr_low_can_set_control): Likewise.
11946 (i386_get_debug_register_length): Likewise.
11947 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
11948 (i386_dr_low_can_set_control): Likewise.
11949 (i386_get_debug_register_length): Likewise.
11951 2014-06-17 Gary Benson <gbenson@redhat.com>
11953 * i386-low.h (i386-dregs.h): New include.
11954 (DR_FIRSTADDR): Now in i386-dregs.h.
11955 (DR_LASTADDR): Likewise.
11956 (DR_NADDR): Likewise.
11957 (DR_STATUS): Likewise.
11958 (DR_CONTROL): Likewise.
11959 (i386_debug_reg_state): Likewise.
11960 (i386_dr_insert_watchpoint): Likewise.
11961 (i386_dr_remove_watchpoint): Likewise.
11962 (i386_dr_region_ok_for_watchpoint): Likewise.
11963 (i386_dr_stopped_data_address): Likewise.
11964 (i386_dr_stopped_by_watchpoint): Likewise.
11965 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
11967 2014-06-18 Gary Benson <gbenson@redhat.com>
11969 * i386-low.h (i386_low_insert_watchpoint): Renamed to
11970 i386_dr_insert_watchpoint.
11971 (i386_low_remove_watchpoint): Renamed to
11972 i386_dr_remove_watchpoint.
11973 (i386_low_region_ok_for_watchpoint): Renamed to
11974 i386_dr_region_ok_for_watchpoint.
11975 (i386_low_stopped_data_address): Renamed to
11976 i386_dr_stopped_data_address.
11977 (i386_low_stopped_by_watchpoint): Renamed to
11978 i386_dr_stopped_by_watchpoint.
11979 * i386-low.c (i386_show_dr): Renamed to
11980 i386_dr_show and made nonstatic. All uses updated.
11981 (i386_length_and_rw_bits): Renamed to
11982 i386_dr_length_and_rw_bits and made nonstatic.
11984 (i386_insert_aligned_watchpoint): Renamed to
11985 i386_dr_insert_aligned_watchpoint and made nonstatic.
11987 (i386_remove_aligned_watchpoint): Renamed to
11988 i386_dr_remove_aligned_watchpoint and made nonstatic.
11990 (i386_update_inferior_debug_regs): Renamed to
11991 i386_dr_update_inferior_debug_regs and made nonstatic.
11993 (i386_low_insert_watchpoint): Renamed to
11994 i386_dr_insert_watchpoint. All uses updated.
11995 (i386_low_remove_watchpoint): Renamed to
11996 i386_dr_remove_watchpoint. All uses updated.
11997 (i386_low_region_ok_for_watchpoint): Renamed to
11998 i386_dr_region_ok_for_watchpoint. All uses updated.
11999 (i386_low_stopped_data_address): Renamed to
12000 i386_dr_stopped_data_address. All uses updated.
12001 (i386_low_stopped_by_watchpoint): Renamed to
12002 i386_dr_stopped_by_watchpoint. All uses updated.
12004 2014-06-18 Gary Benson <gbenson@redhat.com>
12006 * i386-low.c (i386_dr_low_can_set_addr): New macro.
12007 (i386_dr_low_can_set_control): Likewise.
12008 (i386_insert_aligned_watchpoint): New check.
12010 2014-06-18 Gary Benson <gbenson@redhat.com>
12012 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
12015 2014-06-18 Gary Benson <gbenson@redhat.com>
12017 * i386-low.c (i386_length_and_rw_bits): Use internal_error
12018 instead of fatal and error.
12019 (i386_handle_nonaligned_watchpoint): Likewise.
12021 2014-06-18 Gary Benson <gbenson@redhat.com>
12023 * i386-low.c (i386_get_debug_register_length): New macro.
12024 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
12025 (i386_show_dr): Use debug_printf instead of fprintf. Use
12026 phex to format values.
12028 2014-06-18 Gary Benson <gbenson@redhat.com>
12030 * i386-low.h: Comment changes.
12031 * i386-low.c: Likewise.
12033 2014-06-18 Gary Benson <gbenson@redhat.com>
12035 * i386-low.c: Whitespace changes.
12037 2014-06-12 Tom Tromey <tromey@redhat.com>
12039 * utils.c (freeargv): Remove.
12041 2014-06-12 Tom Tromey <tromey@redhat.com>
12043 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
12044 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
12045 (parse_debug_format_options): Likewise.
12046 (gdbserver_usage): Likewise.
12047 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
12048 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
12049 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
12051 ($(LIBGNU)): Depend on libiberty.
12052 (all-lib): Recurse into all subdirs.
12053 (install-only): Invoke "install" target in subdirs.
12054 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
12056 * configure: Rebuild.
12057 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
12058 for vasprintf, vsnprintf, or gettimeofday.
12059 * configure.srv: Don't add safe-ctype.o or lbasename.o to
12062 2014-06-05 Joel Brobecker <brobecker@adacore.com>
12064 * development.sh: Delete.
12065 * Makefile.in (config.status): Adjust dependency on development.sh.
12066 * configure.ac: Adjust development.sh source call.
12067 * configure: Regenerate.
12069 2014-06-02 Pedro Alves <palves@redhat.com>
12071 * ax.c (gdb_free_agent_expr): New function.
12072 * ax.h (gdb_free_agent_expr): New declaration.
12073 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
12075 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
12077 (clear_breakpoint_conditions_and_commands): New function.
12078 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
12079 (clear_breakpoint_conditions_and_commands): New declaration.
12081 2014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12083 * linux-aarch64-low.c (asm/ptrace.h): Include.
12085 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12087 Fix TLS access for -static -pthread.
12088 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
12089 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
12090 (thread_db_load_search, try_thread_db_load_1): Initialize it.
12092 2014-05-20 Pedro Alves <palves@redhat.com>
12094 * linux-aarch64-low.c (aarch64_insert_point)
12095 (aarch64_remove_point): No longer check whether the type is
12096 supported here. Adjust to new interface.
12097 (the_low_target): Install aarch64_supports_z_point_type as
12098 supports_z_point_type method.
12099 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
12100 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
12101 instead of a Z packet char. Adjust.
12102 (arm_supports_z_point_type): New function.
12103 (arm_insert_point, arm_remove_point): Adjust to new interface.
12104 (the_low_target): Install arm_supports_z_point_type.
12105 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
12106 (cris_insert_point, cris_remove_point): Adjust to new interface.
12107 Don't check whether the type is supported here.
12108 (the_low_target): Install cris_supports_z_point_type.
12109 * linux-low.c (linux_supports_z_point_type): New function.
12110 (linux_insert_point, linux_remove_point): Adjust to new interface.
12111 * linux-low.h (struct linux_target_ops) <insert_point,
12112 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
12113 raw_breakpoint pointer parameter.
12114 <supports_z_point_type>: New method.
12115 * linux-mips-low.c (mips_supports_z_point_type): New function.
12116 (mips_insert_point, mips_remove_point): Adjust to new interface.
12117 Use mips_supports_z_point_type.
12118 (the_low_target): Install mips_supports_z_point_type.
12119 * linux-ppc-low.c (the_low_target): Install NULL as
12120 supports_z_point_type method.
12121 * linux-s390-low.c (the_low_target): Install NULL as
12122 supports_z_point_type method.
12123 * linux-sparc-low.c (the_low_target): Install NULL as
12124 supports_z_point_type method.
12125 * linux-x86-low.c (x86_supports_z_point_type): New function.
12126 (x86_insert_point): Adjust to new insert_point interface. Use
12127 insert_memory_breakpoint. Adjust to new
12128 i386_low_insert_watchpoint interface.
12129 (x86_remove_point): Adjust to remove_point interface. Use
12130 remove_memory_breakpoint. Adjust to new
12131 i386_low_remove_watchpoint interface.
12132 (the_low_target): Install x86_supports_z_point_type.
12133 * lynx-low.c (lynx_target_ops): Install NULL as
12134 supports_z_point_type callback.
12135 * nto-low.c (nto_supports_z_point_type): New.
12136 (nto_insert_point, nto_remove_point): Adjust to new interface.
12137 (nto_target_ops): Install nto_supports_z_point_type.
12138 * mem-break.c: Adjust intro comment.
12139 (struct raw_breakpoint) <raw_type, size>: New fields.
12140 <inserted>: Update comment.
12141 <shlib_disabled>: Delete field.
12142 (enum bkpt_type) <gdb_breakpoint>: Delete value.
12143 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
12144 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
12145 (raw_bkpt_type_to_target_hw_bp_type): New function.
12146 (find_enabled_raw_code_breakpoint_at): New function.
12147 (find_raw_breakpoint_at): New type and size parameters. Use them.
12148 (insert_memory_breakpoint): New function, based off
12149 set_raw_breakpoint_at.
12150 (remove_memory_breakpoint): New function.
12151 (set_raw_breakpoint_at): Reimplement.
12152 (set_breakpoint): New, based on set_breakpoint_at.
12153 (set_breakpoint_at): Reimplement.
12154 (delete_raw_breakpoint): Go through the_target->remove_point
12155 instead of assuming memory breakpoints.
12156 (find_gdb_breakpoint_at): Delete.
12157 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
12158 (find_gdb_breakpoint): New function.
12159 (set_gdb_breakpoint_at): Delete.
12160 (z_type_supported): New function.
12161 (set_gdb_breakpoint_1): New function, loosely based off
12162 set_gdb_breakpoint_at.
12163 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
12164 (delete_gdb_breakpoint_at): Delete.
12165 (delete_gdb_breakpoint_1): New function, loosely based off
12166 delete_gdb_breakpoint_at.
12167 (delete_gdb_breakpoint): New function.
12168 (clear_gdb_breakpoint_conditions): Rename to ...
12169 (clear_breakpoint_conditions): ... this. Don't handle a NULL
12171 (add_condition_to_breakpoint): Make static.
12172 (add_breakpoint_condition): Take a struct breakpoint pointer
12173 instead of an address. Adjust.
12174 (gdb_condition_true_at_breakpoint): Rename to ...
12175 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
12177 (gdb_condition_true_at_breakpoint): Reimplement.
12178 (add_breakpoint_commands): Take a struct breakpoint pointer
12179 instead of an address. Adjust.
12180 (gdb_no_commands_at_breakpoint): Rename to ...
12181 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
12182 parameter. Return true if no breakpoint was found. Change debug
12184 (gdb_no_commands_at_breakpoint): Reimplement.
12185 (run_breakpoint_commands): Rename to ...
12186 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
12187 and change return type to boolean.
12188 (run_breakpoint_commands): New function.
12189 (gdb_breakpoint_here): Also check for Z1 breakpoints.
12190 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
12191 breakpoint. Go through the_target->remove_point instead of
12192 assuming memory breakpoint.
12193 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
12194 software and hardware breakpoints.
12195 (reinsert_raw_breakpoint): Go through the_target->insert_point
12196 instead of assuming memory breakpoint.
12197 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
12198 software and hardware breakpoints.
12199 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
12200 Check both software and hardware breakpoints.
12201 (validate_inserted_breakpoint): Assert the breakpoint is a
12202 software breakpoint. Set the inserted flag to -1 instead of
12203 setting shlib_disabled.
12204 (delete_disabled_breakpoints): Adjust.
12205 (validate_breakpoints): Only validate software breakpoints.
12206 Adjust to inserted flag change.
12207 (check_mem_read, check_mem_write): Skip breakpoint types other
12208 than software breakpoints. Adjust to inserted flag change.
12209 * mem-break.h (enum raw_bkpt_type): New enum.
12210 (raw_breakpoint, struct process_info): Forward declare.
12211 (Z_packet_to_target_hw_bp_type): Delete declaration.
12212 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
12213 (set_gdb_breakpoint, delete_gdb_breakpoint)
12214 (clear_breakpoint_conditions): New declarations.
12215 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
12216 (breakpoint_inserted_here): Update comment.
12217 (add_breakpoint_condition, add_breakpoint_commands): Replace
12218 address parameter with a breakpoint pointer parameter.
12219 (gdb_breakpoint_here): Update comment.
12220 (delete_gdb_breakpoint_at): Delete.
12221 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
12222 * server.c (process_point_options): Take a struct breakpoint
12223 pointer instead of an address. Adjust.
12224 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
12225 delete_gdb_breakpoint.
12226 * spu-low.c (spu_target_ops): Install NULL as
12227 supports_z_point_type method.
12228 * target.h: Include mem-break.h.
12229 (struct target_ops) <prepare_to_access_memory>: Update comment.
12230 <supports_z_point_type>: New field.
12231 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12232 instead of a char. Also take a raw breakpoint pointer.
12233 * win32-arm-low.c (the_low_target): Install NULL as
12234 supports_z_point_type.
12235 * win32-i386-low.c (i386_supports_z_point_type): New function.
12236 (i386_insert_point, i386_remove_point): Adjust to new interface.
12237 (the_low_target): Install i386_supports_z_point_type.
12238 * win32-low.c (win32_supports_z_point_type): New function.
12239 (win32_insert_point, win32_remove_point): Adjust to new interface.
12240 (win32_target_ops): Install win32_supports_z_point_type.
12241 * win32-low.h (struct win32_target_ops):
12242 <supports_z_point_type>: New method.
12243 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12244 instead of a char. Also take a raw breakpoint pointer.
12246 2014-05-20 Pedro Alves <palves@redhat.com>
12248 * mem-break.h: Include break-common.h.
12249 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12250 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
12251 (Z_packet_to_target_hw_bp_type): New declaration.
12252 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
12253 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
12254 (Z_PACKET_ACCESS_WP): Delete macros.
12255 (Z_packet_to_hw_type): Delete function.
12256 * i386-low.h: Don't include break-common.h here.
12257 (Z_packet_to_hw_type): Delete declaration.
12258 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
12259 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12260 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
12261 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12262 * linux-aarch64-low.c: Don't include break-common.h here.
12263 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12264 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
12265 (Z_packet_to_target_hw_bp_type): Delete function.
12266 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
12268 (mips_insert_point, mips_remove_point): Use
12269 Z_packet_to_target_hw_bp_type.
12271 2014-05-20 Pedro Alves <palves@redhat.com>
12273 * linux-aarch64-low.c: Include break-common.h.
12274 (enum target_point_type): Delete.
12275 (Z_packet_to_point_type): Rename to ...
12276 (Z_packet_to_target_hw_bp_type): ... this, and return a
12277 target_hw_bp_type instead.
12278 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
12279 instead of an enum target_point_type.
12280 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
12282 (aarch64_dr_state_insert_one_point)
12283 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
12284 (aarch64_handle_aligned_watchpoint)
12285 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
12286 Take an enum target_hw_bp_type instead of an enum
12288 (aarch64_supports_z_point_type): New function.
12289 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
12290 use Z_packet_to_target_hw_bp_type.
12292 2014-05-20 Joel Brobecker <brobecker@adacore.com>
12294 * configure.ac: Only use -Werror by default when DEVELOPMENT
12296 * configure: Regenerate.
12298 2014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
12300 Fix gdbserver qGetTLSAddr for x86_64 -m32.
12301 * linux-x86-low.c (X86_64_USER_REGS): New.
12302 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
12304 2014-04-28 Yao Qi <yao@codesourcery.com>
12306 * Makefile.in (i386-avx512.c): Fix the typo of generated file
12309 2014-04-25 Pedro Alves <palves@redhat.com>
12312 * linux-low.c (linux_attach_fail_reason_string): New function.
12313 (linux_attach_lwp): Delete.
12314 (linux_attach_lwp_1): Rename to ...
12315 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
12316 argument. Remove "initial" parameter. Return int instead of
12317 void. Don't error or warn here.
12318 (linux_attach): Adjust to call linux_attach_lwp. Call error on
12319 failure to attach to the tgid. Call warning when failing to
12321 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
12322 argument. Remove "initial" parameter. Return int instead of
12323 void. Don't error or warn here.
12324 (linux_attach_fail_reason_string): New declaration.
12325 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
12326 interface change. Use linux_attach_fail_reason_string.
12328 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
12329 Walfred Tedeschi <walfred.tedeschi@intel.com>
12331 * Makefile.in: Added rules to handle new files
12332 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
12333 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
12334 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
12335 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
12336 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
12337 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
12338 x32-avx512-linux.o.
12339 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
12340 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
12341 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
12342 i386/x32-avx512.xml.
12343 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
12344 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
12345 i386/x32-avx512-linux.xml.
12346 * i387-fp.c (num_avx512_k_registers): New constant for number
12348 (num_avx512_zmmh_low_registers): New constant for number of
12349 lower ZMM registers (0-15).
12350 (num_avx512_zmmh_high_registers): New constant for number of
12351 higher ZMM registers (16-31).
12352 (num_avx512_ymmh_registers): New contant for number of higher
12353 YMM registers (ymm16-31 added by avx521 on x86_64).
12354 (num_avx512_xmm_registers): New constant for number of higher
12355 XMM registers (xmm16-31 added by AVX512 on x86_64).
12356 (struct i387_xsave): Add space for AVX512 registers.
12357 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
12358 Add code to handle AVX512 registers.
12359 (i387_xsave_to_cache): Add code to handle AVX512 registers.
12360 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
12361 prototypei from generated file.
12362 (tdesc_amd64_avx512_linux): Likewise.
12363 (init_registers_x32_avx512_linux): Likewise.
12364 (tdesc_x32_avx512_linux): Likewise.
12365 (init_registers_i386_avx512_linux): Likewise.
12366 (tdesc_i386_avx512_linux): Likewise.
12367 (x86_64_regmap): Add AVX512 registers.
12368 (x86_linux_read_description): Add code to handle AVX512 XSTATE
12370 (initialize_low_arch): Add code to initialize AVX512 registers.
12372 2014-04-23 Pedro Alves <palves@redhat.com>
12374 * mem-break.c (find_gdb_breakpoint_at): Make static.
12375 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
12377 2014-04-23 Pedro Alves <palves@redhat.com>
12379 * i386-low.c: Don't include break-common.h here.
12380 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12381 prototype to take target_hw_bp_type as argument instead of a Z
12383 * i386-low.h: Include break-common.h here.
12384 (Z_packet_to_hw_type): Declare.
12385 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12387 * linux-x86-low.c (x86_insert_point): Convert the packet number to
12388 a target_hw_bp_type before calling i386_low_insert_watchpoint.
12389 (x86_remove_point): Convert the packet number to a
12390 target_hw_bp_type before calling i386_low_remove_watchpoint.
12391 * win32-i386-low.c (i386_insert_point): Convert the packet number
12392 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
12393 (i386_remove_point): Convert the packet number to a
12394 target_hw_bp_type before calling i386_low_remove_watchpoint.
12396 2014-04-23 Pedro Alves <palves@redhat.com>
12398 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
12400 2014-04-10 Pedro Alves <palves@redhat.com>
12402 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
12403 Check if the condition or command is NULL before checking if the
12404 breakpoint is known. On success, return true.
12405 * mem-break.h (add_breakpoint_condition): Document return.
12406 (add_breakpoint_commands): Add describing comment.
12407 * server.c (skip_to_semicolon): New function.
12408 (process_point_options): Use it.
12410 2014-04-09 Pedro Alves <palves@redhat.com>
12412 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
12415 2014-02-27 Pedro Alves <palves@redhat.com>
12418 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
12420 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
12422 (last_thread_of_process_p): Take a PID argument instead of a
12424 (linux_wait_for_lwp): Delete.
12425 (num_lwps, check_zombie_leaders, not_stopped_callback): New
12427 (linux_low_filter_event): New function, party factored out from
12428 linux_wait_for_event.
12429 (linux_wait_for_event): Rename to ...
12430 (linux_wait_for_event_filtered): ... this. Add new filter ptid
12431 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
12432 sigsuspend. Check for zombie leaders.
12433 (linux_wait_for_event): Reimplement as wrapper around
12434 linux_wait_for_event_filtered.
12435 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
12436 a normal or signal exit is seen, it's the whole process exiting.
12437 (wait_for_sigstop): No longer a for_each_inferior callback.
12438 Rewrite on top of linux_wait_for_event_filtered.
12439 (stop_all_lwps): Call wait_for_sigstop directly.
12440 * server.c (resume, handle_target_event): Handle
12441 TARGET_WAITKIND_NO_RESUMED.
12443 2014-02-26 Joel Brobecker <brobecker@adacore.com>
12445 * win32-low.c (psapi_get_dll_name,
12446 * win32_CreateToolhelp32Snapshot): Delete.
12447 (win32_CreateToolhelp32Snapshot, win32_Module32First)
12448 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
12450 (handle_load_dll): Add function description.
12451 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
12453 2014-02-26 Joel Brobecker <brobecker@adacore.com>
12455 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
12457 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
12458 base address when calling win32_add_one_solib.
12459 (handle_load_dll): Delete local variable load_addr.
12460 Remove 0x1000 offset applied to DLL base address when calling
12461 win32_add_one_solib.
12462 (handle_unload_dll): Add comment.
12464 2014-02-26 Joel Brobecker <brobecker@adacore.com>
12466 * win32-low.c (win32_add_all_dlls): Renames
12467 win32_ensure_ntdll_loaded. Rewrite function documentation.
12468 Adjust implementation to always load all DLLs.
12469 Add 0x1000 offset to DLL base address when calling
12470 win32_add_one_solib.
12471 (child_initialization_done): New static global.
12472 (do_initial_child_stuff): Set child_initialization_done to
12473 zero during child initialization, and 1 after. Replace call
12474 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
12476 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
12477 (handle_unload_dll): Add function documentation.
12478 (get_child_debug_event): Ignore load and unload DLL events
12479 during child initialization.
12481 2014-02-20 Doug Evans <dje@google.com>
12483 Remove global all_lwps.
12484 * inferiors.h (ptid_of): Move here from linux-low.h.
12485 (pid_of, lwpid_of): Ditto.
12486 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
12487 parameter is a struct thread_info * now.
12488 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
12489 directly. Pass &all_threads to find_inferior instead of &all_lwps.
12490 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
12492 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
12493 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
12494 * linux-arm-low.c (update_registers_callback): Update, "entry"
12495 parameter is a struct thread_info * now.
12496 Fetch lwpid from current_inferior directly.
12497 (arm_insert_point): Pass &all_threads to find_inferior instead of
12499 (arm_remove_point): Ditto.
12500 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
12501 (arm_prepare_to_resume): Fetch pid from thread.
12502 (arm_read_description): Fetch lwpid from current_inferior directly.
12503 * linux-low.c (all_lwps): Delete.
12504 (delete_lwp): Delete call to remove_inferior.
12505 (handle_extended_wait): Fetch lwpid from thread.
12506 (add_lwp): Don't set lwp->entry.id. Remove call to
12507 add_inferior_to_list.
12508 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
12509 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
12510 (kill_one_lwp_callback): Ditto.
12511 (linux_kill): Don't dereference NULL pointer.
12512 Fetch ptid,lwpid from thread.
12513 (get_detach_signal): Fetch ptid from thread.
12514 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
12515 Simplify call to regcache_invalidate_thread.
12516 (delete_lwp_callback): Update, "entry" parameter is a
12517 struct thread_info * now. Fetch pid from thread.
12518 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
12519 (status_pending_p_callback): Update, "entry" parameter is a
12520 struct thread_info * now. Fetch ptid from thread.
12521 (find_lwp_pid): Update, "entry" parameter is a
12522 struct thread_info * now.
12523 (linux_wait_for_lwp): Fetch pid from thread.
12524 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
12525 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
12526 (enqueue_one_deferred_signal): Fetch lwpid from thread.
12527 (dequeue_one_deferred_signal): Ditto.
12528 (cancel_breakpoint): Fetch ptid from current_inferior.
12529 (linux_wait_for_event): Pass &all_threads to find_inferior,
12530 not &all_lwps. Fetch ptid, lwpid from thread.
12531 (count_events_callback): Update, "entry" parameter is a
12532 struct thread_info * now.
12533 (select_singlestep_lwp_callback): Ditto.
12534 (select_event_lwp_callback): Ditto.
12535 (cancel_breakpoints_callback): Ditto.
12536 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
12538 (select_event_lwp): Ditto. Fetch ptid from event_thread.
12539 (unsuspend_one_lwp): Update, "entry" parameter is a
12540 struct thread_info * now.
12541 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
12543 (linux_stabilize_threads): Ditto. And for for_each_inferior.
12544 Fetch lwpid from thread, not lwp.
12545 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
12546 Pass &all_threads to find_inferior, not &all_lwps.
12547 (send_sigstop): Fetch lwpid from thread, not lwp.
12548 (send_sigstop_callback): Update, "entry" parameter is a
12549 struct thread_info * now.
12550 (suspend_and_send_sigstop_callback): Ditto.
12551 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
12552 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
12553 struct thread_info * now.
12554 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
12556 (lwp_running): Update, "entry" parameter is a
12557 struct thread_info * now.
12558 (stop_all_lwps): Fetch ptid from thread.
12559 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
12560 (linux_resume_one_lwp): Fetch lwpid from thread.
12561 (linux_set_resume_request): Update, "entry" parameter is a
12562 struct thread_info * now. Fetch pid, lwpid from thread.
12563 (resume_status_pending_p): Update, "entry" parameter is a
12564 struct thread_info * now.
12565 (need_step_over_p): Ditto. Fetch lwpid from thread.
12566 (start_step_over): Fetch lwpid from thread.
12567 (linux_resume_one_thread): Update, "entry" parameter is a
12568 struct thread_info * now. Fetch lwpid from thread.
12569 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
12570 (proceed_one_lwp): Update, "entry" parameter is a
12571 struct thread_info * now. Fetch lwpid from thread.
12572 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
12573 struct thread_info * now.
12574 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
12575 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
12576 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
12578 (regsets_store_inferior_registers): Ditto.
12579 (fetch_register, store_register): Ditto.
12580 (linux_read_memory, linux_write_memory): Ditto.
12581 (linux_request_interrupt): Ditto.
12582 (linux_read_auxv): Ditto.
12583 (linux_xfer_siginfo): Ditto.
12584 (linux_qxfer_spu): Ditto.
12585 (linux_qxfer_libraries_svr4): Ditto.
12586 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
12587 moved to inferiors.h.
12589 (get_thread_lwp): Update.
12590 (struct lwp_info): Delete member "entry". Simplify comment for
12592 (all_lwps): Delete.
12593 * linux-mips-low.c (mips_read_description): Fetch lwpid from
12594 current_inferior directly.
12595 (update_watch_registers_callback): Update, "entry" parameter is a
12596 struct thread_info * now. Fetch pid from thread.
12597 (mips_linux_prepare_to_resume): Fetch ptid from thread.
12598 (mips_insert_point): Fetch lwpid from current_inferior.
12599 Pass &all_threads to find_inferior, not &all_lwps.
12600 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
12601 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
12603 (mips_stopped_data_address): Ditto.
12604 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
12606 * linux-tile-low.c (tile_arch_setup): Ditto.
12607 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
12608 (update_debug_registers_callback): Update, "entry" parameter is a
12609 struct thread_info * now. Fetch pid from thread.
12610 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
12611 Pass &all_threads to find_inferior, not &all_lwps.
12612 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
12613 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
12614 Pass &all_threads to find_inferior, not &all_lwps.
12615 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
12616 (i386_dr_low_get_status): Ditto.
12617 (x86_linux_prepare_to_resume): Fetch ptid from thread.
12618 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
12619 (x86_linux_read_description): Ditto.
12620 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
12622 2014-02-20 Doug Evans <dje@google.com>
12624 * inferiors.c (get_first_inferior): Fix buglet.
12626 2014-02-19 Doug Evans <dje@google.com>
12628 * gdbthread.h (add_thread): Change result type to struct thread_info *.
12629 * inferiors.c (add_thread): Change result type to struct thread_info *.
12630 All callers updated.
12631 (add_lwp): Call add_thread here instead of in callers.
12632 All callers updated.
12633 * linux-low.h (get_lwp_thread): Rewrite.
12634 (struct lwp_info): New member "thread".
12636 2014-02-19 Doug Evans <dje@google.com>
12638 * linux-low.c (add_lwp): Change result to struct lwp_info *.
12639 All callers updated.
12641 2014-02-19 Doug Evans <dje@google.com>
12643 * inferiors.c (add_thread): Fix whitespace.
12645 2014-02-19 Doug Evans <dje@google.com>
12647 * dll.c (clear_dlls): Replace accessing list implemention details
12649 * gdbthread.h (get_first_thread): Declare.
12650 * inferiors.c (for_each_inferior_with_data): New function.
12651 (get_first_thread): New function.
12652 (find_thread_ptid): Simplify.
12653 (get_first_inferior): New function.
12654 (clear_list): Delete.
12655 (one_inferior_p): New function.
12656 (clear_inferior_list): New function.
12657 (clear_inferiors): Update.
12658 * inferiors.h (for_each_inferior_with_data): Declare.
12659 (clear_inferior_list): Declare.
12660 (one_inferior_p): Declare.
12661 (get_first_inferior): Declare.
12662 * linux-low.c (linux_wait_for_event): Replace accessing list
12663 implemention details with API function.
12664 * server.c (target_running): Ditto.
12665 (accumulate_file_name_length): New function.
12666 (emit_dll_description): New function.
12667 (handle_qxfer_libraries): Replace accessing list implemention
12668 details with API function.
12669 (handle_qxfer_threads_worker): New function.
12670 (handle_qxfer_threads_proper): Replace accessing list implemention
12671 details with API function.
12672 (handle_query): Ditto.
12673 (visit_actioned_threads_callback_ftype): New typedef.
12674 (visit_actioned_threads_data): New struct.
12675 (visit_actioned_threads): Rewrite to be find_inferior callback.
12676 (resume): Call find_inferior.
12677 (handle_status): Replace accessing list implemention
12678 details with API function.
12679 (process_serial_event): Replace accessing list implemention details
12681 * target.c (set_desired_inferior): Replace accessing list implemention
12682 details with API function.
12683 * tracepoint.c (same_process_p): New function.
12684 (gdb_agent_about_to_close): Replace accessing list implemention
12685 details with API function.
12686 * win32-low.c (child_delete_thread): Replace accessing list
12687 implemention details with API function.
12688 (match_dll_by_basename): New function.
12689 (dll_is_loaded_by_basename): New function.
12690 (win32_ensure_ntdll_loaded): Replace accessing list implemention
12691 details call to dll_is_loaded_by_basename.
12693 2014-02-19 Doug Evans <dje@google.com>
12695 * dll.h (struct dll_info): Add comment.
12696 * gdbthread.h (struct thread_info): Add comment.
12697 (current_ptid): Simplify.
12698 * inferiors.c (add_process): Update.
12699 (remove_process): Update.
12700 * inferiors.h (struct process_info): Rename member "head" to "entry".
12701 * linux-low.c (delete_lwp): Update.
12703 (last_thread_of_process_p): Update.
12704 (kill_one_lwp_callback, linux_kill): Update.
12705 (status_pending_p_callback): Update.
12706 (wait_for_sigstop): Update. Simplify read of ptid.
12707 (start_step_over): Update.
12708 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
12709 (get_lwp_thread): Update.
12710 (struct lwp_info): Rename member "head" to "entry".
12711 * regcache.h (inferior_list_entry): Delete.
12712 * server.c (kill_inferior_callback): Update.
12713 (detach_or_kill_inferior_callback): Update.
12714 (print_started_pid): Update.
12715 (print_attached_pid): Update.
12716 (process_serial_event): Simplify read of ptid.
12717 * thread-db.c (thread_db_create_event): Update.
12718 (thread_db_get_tls_address): Update.
12719 * win32-low.c (current_inferior_ptid): Simplify.
12721 2014-02-19 Tom Tromey <tromey@redhat.com>
12723 * target.h (struct target_ops) <supports_btrace>: Add target_ops
12725 (target_supports_btrace): Update.
12727 2014-02-14 Yao Qi <yao@codesourcery.com>
12729 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
12730 (rsp-low-ipa.o): New target.
12732 2014-02-12 Tom Tromey <tromey@redhat.com>
12734 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
12735 convert_ascii_to_int.
12736 * regcache.c (registers_to_string): Likewise.
12737 * remote-utils.c (decode_M_packet): Likewise.
12738 * server.c (process_serial_event): Likewise.
12740 2014-02-12 Tom Tromey <tromey@redhat.com>
12742 * server.c (handle_query, handle_v_run): Use hex2bin, not
12744 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
12746 2014-02-12 Tom Tromey <tromey@redhat.com>
12748 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
12749 convert_int_to_ascii.
12750 * regcache.c (registers_to_string, collect_register_as_string):
12752 * remote-utils.c (look_up_one_symbol, relocate_instruction):
12754 * server.c (process_serial_event): Likewise.
12755 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
12756 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
12758 2014-02-12 Tom Tromey <tromey@redhat.com>
12760 * remote-utils.c (look_up_one_symbol, monitor_output): Use
12761 bin2hex, not hexify.
12762 * tracepoint.c (cmd_qtstatus): Likewise.
12764 2014-02-12 Tom Tromey <tromey@redhat.com>
12766 * remote-utils.c (monitor_output): Pass explicit length to
12769 2014-02-12 Tom Tromey <tromey@redhat.com>
12771 * tracepoint.c: Include rsp-low.h.
12772 * server.c: Include rsp-low.h.
12773 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
12774 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
12776 * remote-utils.c: Include rsp-low.h.
12777 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
12778 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
12779 (convert_int_to_ascii, convert_ascii_to_int): Move to
12781 * regcache.c: Include rsp-low.h.
12782 * ax.c: Include rsp-low.h.
12783 * Makefile.in (SFILES): Add common/rsp-low.c.
12784 (OBS): Add rsp-low.o.
12785 (rsp-low.o): New target.
12787 2014-02-12 Tom Tromey <tromey@redhat.com>
12789 * utils.h (pulongest, plongest, phex_nz): Don't declare.
12790 Include print-utils.h.
12791 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
12792 (plongest, thirty_two, phex_nz): Remove.
12793 * Makefile.in (SFILES): Add common/print-utils.c.
12794 (OBS): Add print-utils.o.
12795 (print-utils-ipa.o): New target.
12796 (print-utils.o): New target.
12797 (IPA_OBJS): Add print-utils-ipa.o.
12799 2014-02-06 Tom Tromey <tromey@redhat.com>
12801 * Makefile.in (SFILES): Fix indentation.
12803 2014-02-05 Doug Evans <dje@google.com>
12805 * linux-low.c (linux_wait_for_event): Improve comment.
12806 (linux_wait_1): Keep current_inferior in sync with event_child.
12808 2014-01-22 Doug Evans <dje@google.com>
12810 * gdbthread.h (gdb_id_to_thread): Delete, unused.
12812 2014-01-22 Doug Evans <dje@google.com>
12814 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
12815 * configure: Regenerate.
12816 * config.in: Regenerate.
12817 * Makefile.in (SFILES): Add debug.c.
12818 (OBS): Add debug.o.
12819 * debug.c: New file.
12820 * debug.h: New file.
12821 * linux-aarch64-low.c (*): Update all debugging printfs to use
12822 debug_printf instead of fprintf.
12823 * linux-arm-low.c (*): Ditto.
12824 * linux-cris-low.c (*): Ditto.
12825 * linux-crisv32-low.c (*): Ditto.
12826 * linux-m32r-low.c (*): Ditto.
12827 * linux-sparc-low.c (*): Ditto.
12828 * linux-x86.c (*): Ditto.
12829 * linux-low.c (*): Ditto.
12830 (linux_wait_1): Add calls to debug_enter, debug_exit.
12831 (linux_wait): Remove redundant debugging printf.
12832 (stop_all_lwps): Add calls to debug_enter, debug_exit.
12833 (linux_resume, unstop_all_lwps): Ditto.
12834 * mem-break.c (*): Update all debugging printfs to use
12835 debug_printf instead of fprintf.
12836 * remote-utils.c (*): Ditto.
12837 * thread-db.c (*): Ditto.
12838 * server.c #include <ctype.h>, "gdb_vecs.h".
12839 (debug_threads): Moved to debug.c.
12840 (*): Update all debugging printfs to use debug_printf instead of
12842 (start_inferior): Replace call to fflush with call to debug_flush.
12843 (monitor_show_help): Mention set debug-format.
12844 (parse_debug_format_options): New function.
12845 (handle_monitor_command): Handle "monitor set debug-format".
12846 (gdbserver_usage): Mention --debug-format.
12847 (main): Parse --debug-format.
12848 * server.h (debug_threads): Declaration moved to debug.h.
12849 #include "debug.h".
12850 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
12851 trace_debug_1 that uses debug_printf.
12852 (tracepoint_look_up_symbols): Update all debugging printfs to use
12853 debug_printf instead of fprintf.
12855 2014-01-20 Baruch Siach <baruch@tkos.co.il>
12857 * linux-xtensa-low.c: Include asm/ptrace.h instead of
12860 2014-01-17 Pedro Alves <palves@redhat.com>
12863 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
12864 defined after including gdb_proc_service.h.
12866 2014-01-16 Doug Evans <dje@google.com>
12868 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
12869 (match_dll): Use it.
12871 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12873 * target.h (target_ops) <read_btrace>: Change parameters and
12874 return type to allow error reporting.
12875 * server.c (handle_qxfer_btrace): Support delta reads. Pass
12876 trace reading errors on.
12877 * linux-low.c (linux_low_read_btrace): Pass trace reading
12879 (linux_low_disable_btrace): New.
12881 2014-01-15 Doug Evans <dje@google.com>
12883 * inferiors.c (thread_id_to_gdb_id): Delete.
12884 * inferiors.h (thread_id_to_gdb_id): Delete.
12886 2014-01-13 Eli Zaretskii <eliz@gnu.org>
12888 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
12889 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
12892 2014-01-08 Pedro Alves <palves@redhat.com>
12894 * server.c (handle_status): Don't discard previous queued stop
12895 replies or thread's pending status here.
12896 (main) <disconnection>: Do it here instead.
12898 2014-01-08 Pedro Alves <palves@redhat.com>
12900 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
12901 * server.c (visit_actioned_threads, handle_pending_status): New
12903 (handle_v_cont): Factor out parts to ...
12904 (resume): ... this new function. If in all-stop, and a thread
12905 being resumed has a pending status, report it without actually
12907 (myresume): Adjust to use the new 'resume' function.
12908 (clear_pending_status_callback, set_pending_status_callback)
12909 (find_status_pending_thread_callback): New functions.
12910 (handle_status): Handle the case of multiple threads having
12911 interesting statuses to report. Report threads' real last signal
12912 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
12913 with an interesting thread to report the status for, instead of
12914 always reporting the status of the first thread.
12916 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12918 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
12919 * gdbreplay.c (gdbreplay_version): Likewise.
12921 2013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
12923 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
12924 iov.iov_len with the real length in use.
12926 2013-12-13 Joel Brobecker <brobecker@adacore.com>
12928 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
12929 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
12930 for all targets that use win32-low.c.
12931 * win32-low.c (win32_ensure_ntdll_loaded): New function.
12932 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
12934 2013-12-13 Pedro Alves <palves@redhat.com>
12936 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
12937 if equal to TARGET_WAITKIND_LOADED.
12938 * win32-low.c (cached_status): New static global.
12939 (win32_wait): Add declaration.
12940 (do_initial_child_stuff): Flush all initial pending debug events
12941 up to the initial breakpoint.
12942 (win32_wait): If CACHED_STATUS was set, return that instead
12943 of doing a real wait. Remove the code resuming the execution
12944 of the inferior after receiving a TARGET_WAITKIND_LOADED event
12945 during the initial phase. Also remove the code changing
12946 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
12947 TARGET_WAITKIND_STOPPED.
12949 2013-12-11 Yao Qi <yao@codesourcery.com>
12951 * notif.c (handle_notif_ack): Return 0 if no notification
12954 2013-11-20 Doug Evans <dje@google.com>
12956 * linux-low.c (linux_set_resume_request): Fix comment.
12958 2013-11-20 Doug Evans <dje@google.com>
12960 * linux-low.c (resume_status_pending_p): Tweak comment.
12962 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
12964 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
12965 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
12966 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
12967 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
12968 (srv_amd64_regobj): Add amd64-mpx.o.
12969 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
12970 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
12971 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
12972 * i387-fp.c (num_pl_bnd_register) Added constant.
12973 (num_pl_bnd_cfg_registers) Added constant.
12974 (struct i387_xsave) Added reserved area and MPX fields.
12975 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
12976 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
12978 (tdesc_i386_mpx_linux): Add MPX amd64 target.
12979 (init_registers_amd64_mpx_linux): Declare new function.
12980 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
12981 (x86_64_regmap): Add MPX registers.
12982 (x86_linux_read_description): Add MPX case.
12983 (initialize_low_arch): Initialize MPX targets.
12985 2013-11-18 Tom Tromey <tromey@redhat.com>
12987 * configure: Rebuild.
12988 * configure.ac: Don't check for stdlib.h.
12989 * gdbreplay.c: Unconditionally include stdlib.h.
12991 2013-11-18 Tom Tromey <tromey@redhat.com>
12993 * config.in: Rebuild.
12994 * configure: Rebuild.
12995 * configure.ac: Don't use AC_HEADER_DIRENT.
12997 2013-11-18 Tom Tromey <tromey@redhat.com>
12999 * server.h: Don't check HAVE_STRING_H.
13000 * gdbreplay.c: Don't check HAVE_STRING_H.
13001 * configure: Rebuild.
13003 2013-11-18 Tom Tromey <tromey@redhat.com>
13005 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
13008 2013-11-08 Tom Tromey <tromey@redhat.com>
13010 * configure, config.in: Rebuild.
13011 * configure.ac: Remove unused configury.
13013 2013-11-08 Tom Tromey <tromey@redhat.com>
13015 * acinclude.m4: Include common.m4, codeset.m4.
13016 * configure, config.in: Rebuild.
13017 * configure.ac: Use GDB_AC_COMMON.
13019 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
13021 * linux-s390-low.c (HWCAP_S390_TE): New define.
13022 (s390_arch_setup): Consider the TE field in the HWCAP for
13023 determining 'have_regset_tdb'.
13025 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
13028 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
13031 2013-10-02 Pedro Alves <palves@redhat.com>
13033 * server.c (process_serial_event): Don't output "GDBserver
13034 exiting" if GDB is connected through stdio.
13035 * target.c (mywait): Likewise, be silent if GDB is connected
13038 2013-10-01 Joel Brobecker <brobecker@adacore.com>
13040 * lynx-low.c (lynx_add_threads_after_attach): New function.
13041 (lynx_attach): Remove call to add_thread. Add call to
13042 lynx_add_threads_after_attach instead.
13044 2013-09-28 Mike Frysinger <vapier@gentoo.org>
13046 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
13047 * config.in, configure: Regenerated.
13049 2013-09-18 Yao Qi <yao@codesourcery.com>
13052 * server.c (start_inferior): Clear 'resume_info'.
13054 2013-09-16 Jiong Wang <jiwang@tilera.com>
13056 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
13059 2013-09-16 Jiong Wang <jiwang@tilera.com>
13061 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
13062 linux-tile-low.o to srv_tgtobj.
13064 2013-09-16 Will Newton <will.newton@linaro.org>
13066 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
13069 2013-09-06 Pedro Alves <palves@redhat.com>
13071 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
13072 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
13073 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
13074 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
13075 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
13076 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
13078 2013-09-06 Pedro Alves <palves@redhat.com>
13080 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
13081 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
13083 2013-09-06 Pedro Alves <palves@redhat.com>
13085 * linux-amd64-ipa.c: Include tracepoint.h.
13086 * linux-i386-ipa.c: Include tracepoint.h.
13088 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
13090 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
13091 (ps_get_thread_area): New function.
13093 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
13095 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
13096 (initialize_low_arch): Call init_registers_crisv32 rather than
13097 init_register_crisv32.
13099 2013-09-05 Pedro Alves <palves@redhat.com>
13101 * server.h (handle_vFile, hostio_last_error_from_errno): Move
13103 * hostio.h: ... this new file.
13104 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
13105 win32-low.c: Include hostio.h.
13107 2013-09-05 Pedro Alves <palves@redhat.com>
13109 * server.h (gdb_client_data, handler_func, callback_handler_func)
13110 (delete_file_handler, add_file_handler, append_callback_event)
13111 (delete_callback_event, start_event_loop, initialize_event_loop):
13112 Move to event-loop.h and include it.
13113 * event-loop.h: New file.
13115 2013-09-05 Pedro Alves <palves@redhat.com>
13117 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
13118 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
13119 (loaded_dll, unloaded_dll): Move to ...
13120 * dll.h: ... this new file.
13121 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
13123 2013-09-05 Pedro Alves <palves@redhat.com>
13125 * server.h (current_process, get_thread_process, all_processes)
13126 (add_inferior_to_list, for_each_inferior, current_inferior)
13127 (remove_inferior, add_process, remove_process, find_process_pid)
13128 (have_started_inferiors_p, have_attached_inferiors_p)
13129 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
13130 (clear_inferiors, find_inferior, find_inferior_id)
13131 (inferior_target_data, set_inferior_target_data)
13132 (inferior_regcache_data, set_inferior_regcache_data): Move to
13133 inferiors.h, and include it.
13134 * inferiors.h: New file.
13136 2013-09-05 Pedro Alves <palves@redhat.com>
13138 * server.h (struct emit_ops, current_insn_ptr, emit_error):
13142 2013-09-05 Pedro Alves <palves@redhat.com>
13144 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
13146 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
13147 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
13148 (handle_tracepoint_general_set, handle_tracepoint_query)
13149 (tracepoint_finished_step, tracepoint_was_hit)
13150 (release_while_stepping_state_list, current_traceframe)
13151 (in_readonly_region, traceframe_read_mem)
13152 (fetch_traceframe_registers, traceframe_read_sdata)
13153 (traceframe_read_info, struct fast_tpoint_collect_status)
13154 (fast_tracepoint_collecting, force_unlock_trace_buffer)
13155 (handle_tracepoit_bkpts, initialize_low_tracepoint)
13156 (supply_fast_tracepoint_registers)
13157 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
13158 (ipa_tdesc, claim_trampoline_space)
13159 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
13160 (agent_mem_read, agent_get_trace_state_variable_value)
13161 (agent_set_trace_state_variable_value, agent_tsv_read)
13162 (agent_mem_read_string, get_raw_reg_func_addr)
13163 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
13164 * tracepoint.h: ... this new file.
13166 2013-09-05 Pedro Alves <palves@redhat.com>
13168 * server.h (perror_with_name, error, fatal, warning, paddress)
13169 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
13171 * utils.h: New file.
13173 2013-09-05 Pedro Alves <palves@redhat.com>
13175 * server.h (remote_debug, noack_mode, transport_is_reliable)
13176 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
13177 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
13178 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
13179 (write_enn, initialize_async_io, enable_async_io)
13180 (disable_async_io, check_remote_input_interrupt_request)
13181 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
13182 (dead_thread_notify, prepare_resume_reply)
13183 (decode_address_to_semicolon, decode_address, decode_m_packet)
13184 (decode_M_packet, decode_X_packet, decode_xfer_write)
13185 (decode_search_memory_packet, unhexify, hexify)
13186 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
13187 (look_up_one_symbol, relocate_instruction)
13188 (monitor_output): Move to remote-utils.h, and include it.
13189 * remote-utils.h: New file.
13191 2013-09-05 Pedro Alves <palves@redhat.com>
13193 * server.h (_): Delete.
13195 2013-09-02 Pedro Alves <palves@redhat.com>
13197 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
13198 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
13200 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
13202 2013-09-02 Pierre Muller <muller@sourceware.org>
13204 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
13205 or WriteProcessMemory complete successfully and handle
13206 ERROR_PARTIAL_COPY error.
13208 2013-09-02 Pedro Alves <palves@redhat.com>
13210 * server.c (gdb_read_memory): Return -1 on traceframe memory read
13211 error instead of EIO.
13213 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
13216 * linux-low.c: Include filestuff.h.
13217 (linux_create_inferior) <pid == 0>: Call close_most_fds.
13218 * lynx-low.c: Include filestuff.h.
13219 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
13220 * server.c: Include filestuff.h.
13221 (main): Call notice_open_fds.
13222 * spu-low.c: Include filestuff.h.
13223 (spu_create_inferior) <pid == 0>: Call close_most_fds.
13225 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
13227 * Makefile.in: Explain why ../target and ../nat are not
13228 listed as include file search paths.
13229 (linux-waitpid.o): New object file rule.
13230 * configure.srv (srv_native_linux_obj): New variable.
13231 Replace all occurrences of linux native object files with
13232 $srv_native_linux_obj.
13233 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
13234 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
13235 (linux_enable_event_reporting): Remove declaration.
13236 (my_waitpid): Moved to common/linux-waitpid.c.
13237 (linux_wait_for_event): Pass ptid when calling
13238 linux_enable_event_reporting.
13239 (linux_supports_tracefork_flag): Remove.
13240 (linux_enable_event_reporting): Likewise.
13241 (linux_tracefork_grandchild): Remove.
13242 (STACK_SIZE): Moved to common/linux-ptrace.c.
13243 (linux_tracefork_child): Remove.
13244 (linux_test_for_tracefork): Remove.
13245 (linux_look_up_symbols): Call linux_supports_traceclone.
13246 (initialize_low): Remove call to linux_test_for_tracefork.
13247 * linux-low.h (PTRACE_TYPE_ARG3): Move to
13248 common/linux-ptrace.h.
13249 (PTRACE_TYPE_ARG4): Likewise.
13250 Include linux-ptrace.h.
13252 2013-08-21 Pedro Alves <palves@redhat.com>
13254 * config.in: Renegerate.
13256 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
13258 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
13259 (SFILES): Remove $(srcdir)/common/target-common.c and
13260 add $(srcdir)/target/waitstatus.c.
13261 (OBS): Remove target-common.o and add waitstatus.o.
13262 (server_h): Remove $(srcdir)/../common/target-common.h and
13263 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
13264 and $(srcdir)/../target/waitstatus.h.
13265 (target-common.o): Remove.
13266 (waitstatus.o): New target object file.
13267 * target.h: Do not include target-common.h and
13268 include target/resume.h, target/wait.h and
13269 target/waitstatus.h.
13271 2013-08-13 Luis Machado <lgustavo@codesourcery.com>
13273 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13274 to PTRACE_TYPE_ARG3.
13275 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13276 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
13278 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
13279 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
13281 2013-07-27 Jie Zhang <jie@codesourcery.com>
13282 Daniel Jacobowitz <dan@codesourcery.com>
13283 Yao Qi <yao@codesourcery.com>
13285 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
13286 (mips-linux-watch.o): New rule.
13287 (mips_linux_watch_h): New variable.
13288 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
13290 * linux-mips-low.c: Include mips-linux-watch.h.
13291 (struct arch_process_info, struct arch_lwp_info): New.
13292 (update_watch_registers_callback): New function.
13293 (mips_linux_new_process, mips_linux_new_thread) New functions.
13294 (mips_linux_prepare_to_resume, mips_insert_point): New
13296 (mips_remove_point, mips_stopped_by_watchpoint): New
13298 (rsp_bp_type_to_target_hw_bp_type): New function.
13299 (mips_stopped_data_address): New function.
13300 (the_low_target): Add watchpoint support functions.
13302 2013-07-27 Yao Qi <yao@codesourcery.com>
13304 * i386-low.c: Include break-common.h.
13305 (enum target_hw_bp_type): Remove.
13307 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
13309 * Makefile.in (SFILES): /common/target-common.c.
13310 (OBS): Add target-common.o.
13311 (server_h): Add $(srcdir)/../common/target-common.h.
13312 (target-common.o): New target.
13313 * server.c (queue_stop_reply_callback): Free
13314 status string after use.
13315 * target.c (target_waitstatus_to_string): Remove.
13316 * target.h: Include target-common.h.
13317 (resume_kind): Likewise.
13318 (target_waitkind): Likewise.
13319 (target_waitstatus): Likewise.
13320 (TARGET_WNOHANG): Likewise.
13322 2013-07-04 Yao Qi <yao@codesourcery.com>
13324 * Makefile.in (host_alias): Use @host_noncanonical@.
13325 (target_alias): Use @target_noncanonical@.
13326 * configure.ac: Use ACX_NONCANONICAL_TARGET and
13327 ACX_NONCANONICAL_HOST.
13328 * configure: Regenerated.
13331 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13333 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13334 * configure: Rebuild.
13335 * Makefile.in (version_host, version_target): Get from configure.
13336 (version.c): Use $(version_host) and $(version_target).
13338 2013-07-03 Pedro Alves <palves@redhat.com>
13340 * Makefile.in (config.status): Depend on development.sh.
13341 * acinclude.m4: Include libmcheck.m4.
13342 * configure: Regenerate.
13344 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13346 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
13347 attribute inside the parentheses.
13348 (winapi_DebugSetProcessKillOnExit): Ditto.
13349 (winapi_DebugBreakProcess): Ditto.
13350 (winapi_GenerateConsoleCtrlEvent): Ditto.
13352 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13354 * notif.h (notif_event): Add a dummy member to avoid compiler
13357 2013-07-01 Pedro Alves <palves@redhat.com>
13359 * hostio.c (HOSTIO_PATH_MAX): Define.
13360 (require_filename, handle_open, handle_unlink, handle_readlink):
13363 2013-07-01 Pedro Alves <palves@redhat.com>
13365 * server.h: Include "pathmax.h".
13366 * linux-low.c: Don't include sys/param.h.
13367 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
13369 * win32-low.c: Don't include sys/param.h.
13370 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
13372 2013-07-01 Pedro Alves <palves@redhat.com>
13374 * event-loop.c: Don't check HAVE_UNISTD_H before including
13376 * gdbreplay.c: Likewise.
13377 * remote-utils.c: Likewise.
13378 * server.c: Likewise.
13379 * configure.ac: Don't check for unistd.h.
13380 * configure: Regenerate.
13382 2013-06-28 Tom Tromey <tromey@redhat.com>
13384 * Makefile.in (version.c): Use version.in, not
13387 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13389 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13390 * configure: Rebuild.
13391 * Makefile.in (version_host, version_target): Get from configure.
13392 (version.c): Use $(version_host) and $(version_target).
13394 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13396 Fix trace-status to output user name without trailing colon.
13397 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
13399 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13401 Fix trace-status to output proper start-time and stop-time.
13402 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
13403 output start time and stop time in hex as gdb expects.
13405 2013-06-26 Pedro Alves <pedro@codesourcery.com>
13407 * tracepoint.c (build_traceframe_info_xml): Output trace state
13408 variables present in the trace buffer.
13410 2013-06-24 Tom Tromey <tromey@redhat.com>
13412 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
13414 (version.o): Remove.
13415 * gdbreplay.c: Include version.h.
13416 (version, host_name): Don't declare.
13417 * server.h: Include version.h.
13418 (version, host_name): Don't declare.
13420 2013-06-12 Pedro Alves <palves@redhat.com>
13422 * linux-x86-low.c (linux_is_elf64): Delete global.
13423 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
13424 with local linux_pid_exe_is_elf_64_file use.
13426 2013-06-11 Pedro Alves <palves@redhat.com>
13428 * linux-low.c (regset_disabled, disable_regset): New functions.
13429 (regsets_fetch_inferior_registers)
13430 (regsets_store_inferior_registers): Use them.
13431 (initialize_regsets_info); Don't allocate the disabled_regsets
13433 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
13436 2013-06-11 Pedro Alves <palves@redhat.com>
13438 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
13441 2013-06-11 Pedro Alves <palves@redhat.com>
13443 * linux-x86-low.c (initialize_low_arch): Call
13444 init_registers_x32_avx_linux.
13446 2013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13448 Fix compatibility with Android Bionic.
13449 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
13452 2013-06-07 Pedro Alves <palves@redhat.com>
13455 * Makefile.in (OBS): Add tdesc.o.
13456 (IPA_OBJS): Add tdesc-ipa.o.
13457 (tdesc-ipa.o): New rule.
13458 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
13460 * linux-low.c (new_inferior): Delete.
13461 (disabled_regsets, num_regsets): Delete.
13462 (linux_add_process): Adjust to set the new per-process
13464 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
13465 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
13466 was a stop. When calling arch_setup, switch the current inferior
13467 to the thread that got an event.
13468 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
13469 (regsets_fetch_inferior_registers)
13470 (regsets_store_inferior_registers): New regsets_info parameter.
13472 (linux_register_in_regsets): New regs_info parameter. Adjust to
13474 (register_addr, fetch_register, store_register): New usrregs_info
13475 parameter. Adjust to use it.
13476 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
13477 parameter regs_info. Adjust to use it.
13478 (linux_fetch_registers): Get the current inferior's regs_info, and
13480 (linux_store_registers): Ditto.
13481 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
13482 (initialize_low): Don't initialize the target_regsets here. Call
13483 initialize_low_arch.
13484 * linux-low.h (target_regsets): Delete declaration.
13485 (struct regsets_info): New.
13486 (struct usrregs_info): New.
13487 (struct regs_info): New.
13488 (struct process_info_private) <new_inferior>: New field.
13489 (struct linux_target_ops): Delete the num_regs, regmap, and
13490 regset_bitmap fields. New field regs_info.
13491 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
13492 * i387-fp.c (num_xmm_registers): Delete.
13493 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
13494 calls to new interface.
13495 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
13496 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
13497 Infer the number of xmm registers from the regcache's target
13499 * i387-fp.h (num_xmm_registers): Delete.
13500 * inferiors.c (add_thread): Don't install the thread's regcache
13502 * proc-service.c (gregset_info): Fetch the current inferior's
13503 regs_info. Adjust to use it.
13504 * regcache.c: Include tdesc.h.
13505 (register_bytes, reg_defs, num_registers)
13506 (gdbserver_expedite_regs): Delete.
13507 (get_thread_regcache): If the thread doesn't have a regcache yet,
13508 create one, instead of aborting gdbserver.
13509 (regcache_invalidate_one): Rename to ...
13510 (regcache_invalidate_thread): ... this.
13511 (regcache_invalidate_one): New.
13512 (regcache_invalidate): Only invalidate registers of the current
13514 (init_register_cache): Add target_desc parameter, and use it.
13515 (new_register_cache): Ditto. Assert the target description has a
13516 non zero registers_size.
13517 (regcache_cpy): Add assertions. Adjust.
13518 (realloc_register_cache, set_register_cache): Delete.
13519 (registers_to_string, registers_from_string): Adjust.
13520 (find_register_by_name, find_regno, find_register_by_number)
13521 (register_cache_size): Add target_desc parameter, and use it.
13522 (free_register_cache_thread, free_register_cache_thread_one)
13523 (regcache_release, register_cache_size): New.
13524 (register_size): Add target_desc parameter, and use it.
13525 (register_data, supply_register, supply_register_zeroed)
13526 (supply_regblock, supply_register_by_name, collect_register)
13527 (collect_register_as_string, collect_register_by_name): Adjust.
13528 * regcache.h (struct target_desc): Forward declare.
13529 (struct regcache) <tdesc>: New field.
13530 (init_register_cache, new_register_cache): Add target_desc
13532 (regcache_invalidate_thread): Declare.
13533 (regcache_invalidate_one): Delete declaration.
13534 (regcache_release): Declare.
13535 (find_register_by_number, register_cache_size, register_size)
13536 (find_regno): Add target_desc parameter.
13537 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
13539 * remote-utils.c: Include tdesc.h.
13540 (outreg, prepare_resume_reply): Adjust.
13541 * server.c: Include tdesc.h.
13542 (gdbserver_xmltarget): Delete declaration.
13543 (get_features_xml, process_serial_event): Adjust.
13544 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
13546 (struct process_info) <tdesc>: New field.
13547 (ipa_tdesc): Declare.
13548 * tdesc.c: New file.
13549 * tdesc.h: New file.
13550 * tracepoint.c: Include tdesc.h.
13551 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
13552 (get_context_regcache): Adjust to pass ipa_tdesc down.
13553 (do_action_at_tracepoint): Adjust to get the register cache size
13554 from the context regcache's description.
13555 (traceframe_walk_blocks): Adjust to get the register cache size
13556 from the current trace frame's description.
13557 (traceframe_get_pc): Adjust to get current trace frame's
13558 description and pass it down.
13559 (gdb_collect): Adjust to get the register cache size from the
13561 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
13562 (gdbserver_xmltarget): Delete.
13563 (initialize_low_tracepoint): Set the ipa's target description.
13564 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
13565 (initialize_low_tracepoint): Set the ipa's target description.
13566 * linux-x86-low.c: Include tdesc.h.
13567 [__x86_64__] (is_64bit_tdesc): New.
13568 (ps_get_thread_area, x86_get_thread_area): Use it.
13569 (i386_cannot_store_register): Rename to ...
13570 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
13571 (i386_cannot_fetch_register): Rename to ...
13572 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
13573 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
13575 (target_regsets): Rename to ...
13576 (x86_regsets): ... this.
13577 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
13579 (x86_siginfo_fixup): Use is_64bit_tdesc.
13580 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
13581 (tdesc_x32_avx_linux, tdesc_x32_linux)
13582 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
13584 (x86_linux_update_xmltarget): Delete.
13585 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
13586 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
13587 (AMD64_LINUX_USER64_CS): New.
13588 (x86_linux_read_description): New, based on
13589 x86_linux_update_xmltarget.
13590 (same_process_callback): New.
13591 (x86_arch_setup_process_callback): New.
13592 (x86_linux_update_xmltarget): New.
13593 (x86_regsets_info): New.
13594 (amd64_linux_regs_info): New.
13595 (i386_linux_usrregs_info): New.
13596 (i386_linux_regs_info): New.
13597 (x86_linux_regs_info): New.
13598 (x86_arch_setup): Reimplement.
13599 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
13600 (x86_emit_ops): Ditto.
13601 (the_low_target): Adjust. Install x86_linux_regs_info,
13602 x86_cannot_fetch_register, and x86_cannot_store_register.
13603 (initialize_low_arch): New.
13604 * linux-ia64-low.c (tdesc_ia64): Declare.
13605 (ia64_fetch_register): Adjust.
13606 (ia64_usrregs_info, regs_info): New globals.
13607 (ia64_regs_info): New function.
13608 (the_low_target): Adjust.
13609 (initialize_low_arch): New function.
13610 * linux-sparc-low.c (tdesc_sparc64): Declare.
13611 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
13613 (sparc_arch_setup): New function.
13614 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
13615 (the_low_target): Adjust.
13616 (initialize_low_arch): New function.
13617 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
13618 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
13619 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
13620 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
13621 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
13622 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
13623 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
13624 (tdesc_powerpc_isa205_vsx64l): Declare.
13625 (ppc_cannot_store_register, ppc_collect_ptrace_register)
13626 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
13627 (ppc_set_pc, ppc_get_hwcap): Adjust.
13628 (ppc_usrregs_info): Forward declare.
13629 (!__powerpc64__) ppc_regmap_adjusted: New global.
13630 (ppc_arch_setup): Adjust to the current process'es target
13632 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
13633 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
13634 (ppc_store_evrregset): Adjust.
13635 (target_regsets): Rename to ...
13636 (ppc_regsets): ... this, and make static.
13637 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
13638 (ppc_regs_info): New function.
13639 (the_low_target): Adjust.
13640 (initialize_low_arch): New function.
13641 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
13642 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
13643 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
13644 (tdesc_s390x_linux64v2): Declare.
13645 (s390_collect_ptrace_register, s390_supply_ptrace_register)
13646 (s390_fill_gregset, s390_store_last_break): Adjust.
13647 (target_regsets): Rename to ...
13648 (s390_regsets): ... this, and make static.
13649 (s390_get_pc, s390_set_pc): Adjust.
13650 (s390_get_hwcap): New target_desc parameter, and use it.
13651 [__s390x__] (have_hwcap_s390_high_gprs): New global.
13652 (s390_arch_setup): Adjust to set the current process'es target
13653 description. Don't adjust the regmap.
13654 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
13655 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
13656 (regs_info_3264): New globals.
13657 (s390_regs_info): New function.
13658 (the_low_target): Adjust.
13659 (initialize_low_arch): New function.
13660 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
13661 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
13662 [__mips64] (init_registers_mips_linux)
13663 (init_registers_mips_dsp_linux): Delete defines.
13664 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
13665 (have_dsp): New global.
13666 (mips_read_description): New, based on mips_arch_setup.
13667 (mips_arch_setup): Reimplement.
13668 (get_usrregs_info): New function.
13669 (mips_cannot_fetch_register, mips_cannot_store_register)
13670 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
13671 (mips_fill_fpregset, mips_store_fpregset): Adjust.
13672 (target_regsets): Rename to ...
13673 (mips_regsets): ... this, and make static.
13674 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
13675 (dsp_regs_info, regs_info): New globals.
13676 (mips_regs_info): New function.
13677 (the_low_target): Adjust.
13678 (initialize_low_arch): New function.
13679 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
13680 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
13682 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
13683 (arm_read_description): New, with bits factored from
13685 (arm_arch_setup): Reimplement.
13686 (target_regsets): Rename to ...
13687 (arm_regsets): ... this, and make static.
13688 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
13689 (arm_regs_info): New function.
13690 (the_low_target): Adjust.
13691 (initialize_low_arch): New function.
13692 * linux-m68k-low.c (tdesc_m68k): Declare.
13693 (target_regsets): Rename to ...
13694 (m68k_regsets): ... this, and make static.
13695 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
13696 (m68k_regs_info): New function.
13697 (m68k_arch_setup): New function.
13698 (the_low_target): Adjust.
13699 (initialize_low_arch): New function.
13700 * linux-sh-low.c (tdesc_sharch): Declare.
13701 (target_regsets): Rename to ...
13702 (sh_regsets): ... this, and make static.
13703 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
13704 (sh_regs_info, sh_arch_setup): New functions.
13705 (the_low_target): Adjust.
13706 (initialize_low_arch): New function.
13707 * linux-bfin-low.c (tdesc_bfin): Declare.
13708 (bfin_arch_setup): New function.
13709 (bfin_usrregs_info, regs_info): New globals.
13710 (bfin_regs_info): New function.
13711 (the_low_target): Adjust.
13712 (initialize_low_arch): New function.
13713 * linux-cris-low.c (tdesc_cris): Declare.
13714 (cris_arch_setup): New function.
13715 (cris_usrregs_info, regs_info): New globals.
13716 (cris_regs_info): New function.
13717 (the_low_target): Adjust.
13718 (initialize_low_arch): New function.
13719 * linux-cris-low.c (tdesc_crisv32): Declare.
13720 (cris_arch_setup): New function.
13721 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
13722 (cris_regs_info): New function.
13723 (the_low_target): Adjust.
13724 (initialize_low_arch): New function.
13725 * linux-m32r-low.c (tdesc_m32r): Declare.
13726 (m32r_arch_setup): New function.
13727 (m32r_usrregs_info, regs_info): New globals.
13728 (m32r_regs_info): Adjust.
13729 (initialize_low_arch): New function.
13730 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
13731 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
13732 (tic6x_usrregs_info): Forward declare.
13733 (tic6x_read_description): New function, based on ...
13734 (tic6x_arch_setup): ... this. Reimplement.
13735 (target_regsets): Rename to ...
13736 (tic6x_regsets): ... this, and make static.
13737 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
13738 (tic6x_regs_info): New function.
13739 (the_low_target): Adjust.
13740 (initialize_low_arch): New function.
13741 * linux-xtensa-low.c (tdesc_xtensa): Declare.
13742 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
13743 (target_regsets): Rename to ...
13744 (xtensa_regsets): ... this, and make static.
13745 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
13747 (xtensa_arch_setup, xtensa_regs_info): New functions.
13748 (the_low_target): Adjust.
13749 (initialize_low_arch): New function.
13750 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
13751 (nios2_arch_setup): Set the current process'es tdesc.
13752 (target_regsets): Rename to ...
13753 (nios2_regsets): ... this.
13754 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
13755 (nios2_regs_info): New function.
13756 (the_low_target): Adjust.
13757 (initialize_low_arch): New function.
13758 * linux-aarch64-low.c (tdesc_aarch64): Declare.
13759 (aarch64_arch_setup): Set the current process'es tdesc.
13760 (target_regsets): Rename to ...
13761 (aarch64_regsets): ... this.
13762 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
13763 (aarch64_regs_info): New function.
13764 (the_low_target): Adjust.
13765 (initialize_low_arch): New function.
13766 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
13768 (target_regsets): Rename to ...
13769 (tile_regsets): ... this.
13770 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
13771 (tile_regs_info): New function.
13772 (tile_arch_setup): Set the current process'es tdesc.
13773 (the_low_target): Adjust.
13774 (initialize_low_arch): New function.
13775 * spu-low.c (tdesc_spu): Declare.
13776 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
13777 * win32-arm-low.c (tdesc_arm): Declare.
13778 (arm_arch_setup): New function.
13779 (the_low_target): Install arm_arch_setup instead of
13780 init_registers_arm.
13781 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
13782 (init_windows_x86): Rename to ...
13783 (i386_arch_setup): ... this. Set `win32_tdesc'.
13784 (the_low_target): Adjust.
13785 * win32-low.c (win32_tdesc): New global.
13786 (child_add_thread): Don't create the thread cache here.
13787 (do_initial_child_stuff): Set the new process'es tdesc.
13788 * win32-low.h (struct target_desc): Forward declare.
13789 (win32_tdesc): Declare.
13790 * lynx-i386-low.c (tdesc_i386): Declare global.
13791 (lynx_i386_arch_setup): Set `lynx_tdesc'.
13792 * lynx-low.c (lynx_tdesc): New global.
13793 (lynx_add_process): Set the new process'es tdesc.
13794 * lynx-low.h (struct target_desc): Forward declare.
13795 (lynx_tdesc): Declare global.
13796 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
13797 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
13798 * nto-low.c (nto_tdesc): New global.
13799 (do_attach): Set the new process'es tdesc.
13800 * nto-low.h (struct target_desc): Forward declare.
13801 (nto_tdesc): Declare.
13802 * nto-x86-low.c (tdesc_i386): Declare.
13803 (nto_x86_arch_setup): Set `nto_tdesc'.
13805 2013-06-04 Gary Benson <gbenson@redhat.com>
13807 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
13808 to qSupported response when appropriate.
13809 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
13810 with nonzero-length annex.
13811 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
13812 arguments supplied in annex.
13814 2013-05-31 Doug Evans <dje@google.com>
13817 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
13818 64 bits in 64-cross-32 environment.
13820 2013-05-28 Pedro Alves <palves@redhat.com>
13822 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
13823 (aarch64-without-fpu.c): Delete rule.
13824 * configure.srv (aarch64*-*-linux*): Remove references to
13825 aarch64-without-fpu.o and aarch64-without-fpu.xml.
13826 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
13829 2013-05-24 Pedro Alves <palves@redhat.com>
13831 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
13832 instead of strchr/decode_address. Error if the range isn't split
13833 with a ','. Don't assume there's be a ':' in the action.
13835 2013-05-23 Yao Qi <yao@codesourcery.com>
13836 Pedro Alves <palves@redhat.com>
13838 * linux-low.c (lwp_in_step_range): New function.
13839 (linux_wait_1): If the thread was range stepping and stopped
13840 outside the stepping range, report the stop to GDB. Otherwise,
13841 continue stepping. Add range stepping debug output.
13842 (linux_set_resume_request): Copy the step range from the resume
13843 request to the lwp.
13844 (linux_supports_range_stepping): New.
13845 (linux_target_ops) <supports_range_stepping>: Set to
13846 linux_supports_range_stepping.
13847 * linux-low.h (struct linux_target_ops)
13848 <supports_range_stepping>: New field.
13849 (struct lwp_info) <step_range_start, step_range_end>: New fields.
13850 * linux-x86-low.c (x86_supports_range_stepping): New.
13851 (the_low_target) <supports_range_stepping>: Set to
13852 x86_supports_range_stepping.
13853 * server.c (handle_v_cont): Handle 'r' action.
13854 (handle_v_requests): Append ";r" if the target supports range
13856 * target.h (struct thread_resume) <step_range_start,
13857 step_range_end>: New fields.
13858 (struct target_ops) <supports_range_stepping>:
13860 (target_supports_range_stepping): New macro.
13862 2013-05-17 Joel Brobecker <brobecker@adacore.com>
13864 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
13865 confusion in comment.
13867 2013-05-17 Joel Brobecker <brobecker@adacore.com>
13869 * lynx-low.c (struct process_info_private): New type.
13870 (lynx_add_process): New function.
13871 (lynx_create_inferior, lynx_attach): Replace calls to
13872 add_process by calls to lynx_add_process.
13873 (lynx_resume): If PTID is null, then try using
13874 current_process()->private->last_wait_event_ptid.
13876 (lynx_clear_inferiors): Delete. The contents of that function
13877 has been inlined in lynx_mourn;
13878 (lynx_wait_1): Save the ptid in the process's private data.
13879 (lynx_mourn): Free the process' private data. Replace call
13880 to lynx_clear_inferiors by call to clear_inferiors.
13882 2013-05-17 Yao Qi <yao@codesourcery.com>
13884 * i386-low.c (i386_length_and_rw_bits): Move the comment to
13887 2013-05-16 Luis Machado <lgustavo@codesourcery.com>
13889 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
13890 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
13891 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
13892 PT_TEXT_END_ADDR guards. Update comments.
13893 (linux_target_op) <read_offsets>: Conditionally define to
13894 linux_read_offsets if the target is UCLIBC and if it defines
13895 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
13897 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
13898 Andrew Jenner <andrew@codesourcery.com>
13900 * Makefile.in (SFILES): Add linux-nios2-low.c.
13901 (clean): Add action to delete nios2-linux.c.
13902 (nios2-linux.c): New rule.
13903 * configure.srv: Add nios2*-*-linux*.
13904 * linux-nios2-low.c: New.
13906 2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
13908 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
13910 2013-04-25 Hui Zhu <hui@codesourcery.com>
13913 * ax.c (ax_printf): Add fflush.
13915 2013-04-22 Tom Tromey <tromey@redhat.com>
13917 * Makefile.in (SFILES): Add filestuff.c.
13918 (OBS): Add filestuff.o.
13919 (filestuff.o): New target.
13920 * config.in, configure: Rebuild.
13921 * configure.ac: Check for fdwalk, pipe2.
13923 2013-04-17 Pedro Alves <palves@redhat.com>
13925 * configure.ac (USE_THREAD_DB): Delete variable.
13926 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
13927 Don't AC_SUBST USE_THREAD_DB.
13928 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
13929 * config.in, configure: Regenerate.
13931 2013-04-16 Pedro Alves <palves@redhat.com>
13933 * linux-low.h (struct lwp_info) <thread_known>: Move under
13934 the USE_THREAD_DB #ifdef.
13936 2013-04-16 Pedro Alves <palves@redhat.com>
13938 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
13939 (linux-low.o): Delete rule.
13940 * linux-low.h: Always include "gdb_thread_db.h" instead of
13941 conditionally including thread_db.h.
13942 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
13945 2013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
13947 * Makefile.in (install-only): Fix make install regression.
13949 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
13951 Convert man pages to texinfo, new gdbinit.5 texinfo page.
13952 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
13954 * gdbserver.1: Remove.
13956 2013-03-22 Pedro Alves <palves@redhat.com>
13958 * linux-low.c (handle_extended_wait): Don't call
13959 linux_enable_event_reporting.
13961 2013-03-15 Tony Theodore <tonyt@logyst.com>
13964 * Makefile.in (SHELL): Use @SHELL@.
13966 2013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
13968 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
13971 2013-03-13 Joel Brobecker <brobecker@adacore.com>
13973 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
13974 Remove extraneous NULL element.
13976 2013-03-13 Yao Qi <yao@codesourcery.com>
13978 * tracepoint.c (traceframe_read_tsv): Look for the last matched
13979 'V' block in trace frame.
13981 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
13983 * target.h (struct target_ops): Add btrace ops.
13984 (target_supports_btrace): New macro.
13985 (target_enable_btrace): New macro.
13986 (target_disable_btrace): New macro.
13987 (target_read_btrace): New macro.
13988 * gdbthread.h (struct thread_info): Add btrace field.
13989 * server.c: Include btrace-common.h.
13990 (handle_btrace_general_set): New function.
13991 (handle_btrace_enable): New function.
13992 (handle_btrace_disable): New function.
13993 (handle_general_set): Call handle_btrace_general_set.
13994 (handle_qxfer_btrace): New function.
13995 (struct qxfer qxfer_packets[]): Add btrace entry.
13996 * inferiors.c (remove_thread): Disable btrace.
13997 * linux-low: Include linux-btrace.h.
13998 (linux_low_enable_btrace): New function.
13999 (linux_low_read_btrace): New function.
14000 (linux_target_ops): Add btrace ops.
14001 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
14002 Add srv_linux_btrace=yes.
14003 (x86_64-*-linux*): Add linux-btrace.o.
14004 Add srv_linux_btrace=yes.
14005 * configure.ac: Define HAVE_LINUX_BTRACE.
14006 * config.in: Regenerated.
14007 * configure: Regenerated.
14009 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14011 * server.c (handle_qxfer): Preserve error message if -3 is
14013 (qxfer): Document the -3 return value.
14015 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14017 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
14018 (linux_btrace_h): New variable.
14019 (linux-btrace.o): New rule.
14021 2013-03-08 Stan Shebs <stan@codesourcery.com>
14022 Hafiz Abid Qadeer <abidh@codesourcery.com>
14024 * tracepoint.c (trace_buffer_size): New global.
14025 (DEFAULT_TRACE_BUFFER_SIZE): New define.
14026 (init_trace_buffer): Change to one-argument function. Allocate
14027 trace buffer memory.
14028 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
14029 handle QTBuffer:size packet.
14030 (cmd_bigqtbuffer_size): New function.
14031 (initialize_tracepoint): Call init_trace_buffer with
14032 DEFAULT_TRACE_BUFFER_SIZE.
14033 * server.c (handle_query): Add QTBuffer:size in the
14036 2013-03-07 Yao Qi <yao@codesourcery.com>
14038 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
14039 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
14041 (cmd_qtsp): Adjust condition. Do post increment.
14042 Set cur_action and cur_step_action back to 0.
14044 2013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
14047 * linux-low.c (linux_write_memory): Return early success if LEN is
14050 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
14052 * configure.srv: Add x86_64-*-cygwin* as target.
14054 2013-02-28 Tom Tromey <tromey@redhat.com>
14056 * configure.ac: Invoke AC_SYS_LARGEFILE.
14057 * configure, config.in: Rebuild.
14059 2013-02-28 Corinna Vinschen <vinschen@redhat.com>
14061 * win32-low.c: Throughout, fix format strings and casts of
14062 printf-like functions to avoid type related warnings on all
14064 (get_child_debug_event): Print dwDebugEventCode as hex since
14065 that's how it's usually documented.
14067 2013-02-28 Yao Qi <yao@codesourcery.com>
14069 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
14072 2013-02-27 Jiong Wang <jiwang@tilera.com>
14074 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
14075 (reg-tilegx32.c): New rule.
14076 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
14077 * linux-tile-low.c (tile_arch_setup): New function. Invoke
14078 different register info initializer according to elf class.
14079 (init_registers_tilgx32): New function. The tilegx32 register info
14081 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
14082 (tile_store_gregset): Likewise.
14084 2013-02-27 Yao Qi <yao@codesourcery.com>
14086 * server.c (process_point_options): Print debug message when
14087 debug_threads is true.
14089 2013-02-26 Yao Qi <yao@codesourcery.com>
14091 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
14093 2013-02-19 Pedro Alves <palves@redhat.com>
14094 Kai Tietz <ktietz@redhat.com>
14098 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
14099 instead of strtoul to extract address from packet.
14100 (process_serial_event) <'z'>: Likewise.
14102 2013-02-18 Yao Qi <yao@codesourcery.com>
14104 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
14106 2013-02-14 Pedro Alves <palves@redhat.com>
14110 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
14111 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
14113 2013-02-14 Pedro Alves <palves@redhat.com>
14115 * tracepoint.c (cmd_qtdpsrc): Use savestring.
14117 2013-02-14 Pedro Alves <palves@redhat.com>
14119 * tracepoint.c (save_string): Delete.
14120 (add_tracepoint_action): Use savestring instead of save_string.
14122 2013-02-12 Pedro Alves <palves@redhat.com>
14124 * linux-xtensa-low.c: Ditto.
14125 * xtensa-xtregs.c: Ditto.
14127 2013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14129 * thread-db.c (thread_db_get_tls_address): NULL pointer check
14132 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14134 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
14135 aarch64_num_wp_regs and aarch64_num_bp_regs to
14136 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
14138 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14140 * linux-aarch64-low.c (ps_get_thread_area): Replace
14141 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
14143 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
14144 Marcus Shawcroft <marcus.shawcroft@arm.com>
14145 Nigel Stephens <nigel.stephens@arm.com>
14146 Yufeng Zhang <yufeng.zhang@arm.com>
14148 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
14149 (aarch64.c, aarch64-without-fpu.c): New targets.
14150 * configure.srv (aarch64*-*-linux*): New.
14151 * linux-aarch64-low.c: New file.
14153 2013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
14155 * linux-low.c (handle_extended_wait, linux_create_inferior)
14156 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
14157 (dequeue_one_deferred_signal, linux_resume_one_thread)
14158 (fetch_register, linux_write_memory, linux_enable_event_reporting)
14159 (linux_tracefork_grandchild, linux_test_for_tracefork)
14160 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
14161 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
14162 where the argument is 0.
14164 2013-01-25 Yao Qi <yao@codesourcery.com>
14166 * event-loop.c: Include "queue.h".
14167 (gdb_event_p): New typedef.
14168 (struct gdb_event) <next_event>: Remove.
14169 (event_queue): Change to QUEUE(gdb_event_p).
14170 (async_queue_event): Remove.
14171 (gdb_event_xfree): New.
14172 (initialize_event_loop): New.
14173 (process_event): Use API from QUEUE.
14174 (wait_for_event): Likewise.
14175 * server.c (main): Call initialize_event_loop.
14176 * server.h (initialize_event_loop): Declare.
14178 2013-01-18 Yao Qi <yao@codesourcery.com>
14180 * ax.h (struct eval_agent_expr_context): New.
14181 (gdb_eval_agent_expr): Update declaration.
14182 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
14183 TFRAME. Add new argument CTX.
14184 * server.h (struct eval_agent_expr_context): Declare.
14185 (agent_mem_read, agent_tsv_read): Update declaration.
14186 (agent_mem_read_string): Likewise.
14187 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
14188 (add_traceframe_block): Add new argument TPOINT.
14189 Increase TPOINT->traceframe_usage.
14190 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
14191 eval_tracepoint_agent_expr.
14192 (condition_true_at_tracepoint): Likewise.
14193 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
14194 (agent_mem_read_string, agent_tsv_read): Likewise.
14196 2013-01-16 Yao Qi <yao@codesourcery.com>
14198 * linux-low.c (linux_resume_one_lwp): Don't check
14199 'lwp->bp_reinsert != 0'.
14201 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14202 Pedro Alves <palves@redhat.com>
14204 * lynx-low.c (ptrace_request_to_str): Define a temporary
14205 macro and use it to simplify this function's implementation.
14207 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14209 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
14212 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14214 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
14216 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14218 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
14220 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14222 * lynx-low.c (lynx_resume): Use the resume_info parameter
14223 to determine the ptid for the lynx_ptrace call, unless
14224 it is equal to minus_one_ptid, in which case we use the
14225 ptid of the current_inferior.
14226 (lynx_wait_1): After having received a thread create/exit
14227 event, resume the inferior's execution using the signaling
14228 thread's ptid, rather than the old ptid.
14230 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14232 * lynx-low.c (lynx_resume): Delete variable ret.
14234 2013-01-01 Joel Brobecker <brobecker@adacore.com>
14236 * gdbreplay.c (gdbreplay_version): Update copyright year.
14237 * server.c (gdbserver_version): Likewise.
14239 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14241 * lynx-low.c (lynx_wait_1): Add debug trace before adding
14244 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14246 * lynx-low.c (ptrace_request_to_str): Add handling for
14247 PTRACE_GETTRACESIG.
14249 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14251 * lynx-low.c (lynx_attach): Delete variable new_process.
14253 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14255 * lynx-low.c (lynx_create_inferior): Delete variable
14258 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14260 * lynx-low.c (ptrace_request_to_str): Do not handle
14261 PTRACE_GETTHREADLIST if this macro does not exist.
14263 2012-12-15 Yao Qi <yao@codesourcery.com>
14265 * Makefile.in (OBS): Add notif.o.
14266 * notif.c, notif.h: New.
14267 * server.c: Include "notif.h".
14268 (struct vstop_notif) <next>: Remove.
14270 (queue_stop_reply): Update.
14271 (push_event, send_next_stop_reply): Remove.
14272 (discard_queued_stop_replies): Update.
14273 (notif_stop): New variable.
14274 (handle_v_stopped): Remove.
14275 (handle_v_requests): Don't call handle_v_stopped. Call
14276 handle_ack_notif instead.
14277 (queue_stop_reply_callback): Call notif_event_enque instead
14278 of queue_stop_reply.
14279 (handle_status): Don't call send_next_stop_reply, call
14280 notif_write_event instead.
14281 (kill_inferior_callback): Likewise.
14282 (detach_or_kill_inferior_callback): Likewise.
14283 (main): Call initialize_notif.
14284 (process_serial_event): Call QUEUE_is_empty.
14285 (handle_target_event): Call notif_push instead of push event.
14286 * server.h (push_event): Remove declaration.
14288 2012-12-10 Tom Tromey <tromey@redhat.com>
14290 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
14291 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
14294 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
14295 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
14296 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
14297 (amd64-linux-ipa.o, ax.o): Rewrite.
14298 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
14299 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
14300 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
14301 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
14302 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
14303 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
14304 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
14305 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
14306 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
14307 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
14308 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
14309 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
14310 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
14311 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
14312 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
14313 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
14314 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
14315 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
14316 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
14317 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
14318 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
14319 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
14320 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
14321 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
14322 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
14323 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
14324 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
14325 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
14326 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
14327 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
14328 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
14329 (reg-tilegx.o): Remove.
14330 (all_object_files): New macro.
14331 Include .deps files.
14332 * aclocal.m4, configure: Rebuild.
14333 * acinclude.m4: Include depstand.m4, lead-dot.m4.
14334 * configure.ac: Invoke ZW_CREATE_DEPDIR,
14335 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
14337 2012-12-05 Tom Tromey <tromey@redhat.com>
14340 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
14342 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
14344 * configure.ac: Check for linux/perf_event.h.
14345 * config.in: Regenerated.
14346 * configure: Regenerated.
14348 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
14350 * hostio.c (handle_readlink): Decrease buffer size
14351 parameter passed to readlink by one byte.
14353 2012-11-26 Yao Qi <yao@codesourcery.com>
14355 * configure.ac (build_warnings): Append '-Wempty-body'.
14356 * configure: Regenerated.
14357 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
14360 2012-11-15 Pierre Muller <muller@sourceware.org>
14362 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
14363 * config.in: Regenerate.
14364 * configure: Regenerate.
14365 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
14366 Use "gdb_wait.h" header instead of <sys/wait.h> header.
14367 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14368 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
14370 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
14371 instead of <sys/wait.h> header.
14372 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14374 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
14376 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
14377 (various make rules): Remove -DGDBSERVER
14379 2012-11-09 Yao Qi <yao@codesourcery.com>
14381 * spu-low.c (current_ptid): Move it to ..
14382 * gdbthread.h: ... here. New.
14383 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
14384 * server.c (myresume, process_serial_event): Likewise.
14385 * thread-db.c (thread_db_find_new_threads): Likewise.
14386 * tracepoint.c (run_inferior_command): Likewise.
14388 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
14390 * server.c (handle_search_memory_1): Include access length in
14393 2012-09-05 Michael Brandt <michael.brandt@axis.com>
14395 * linux-crisv32-low.c: Fix compile errors.
14397 2012-09-04 Yao Qi <yao@codesourcery.com>
14399 * tracepoint.c (cmd_qtsv): Adjust debug message.
14400 Don't check CUR_TPOINT.
14402 2012-08-28 Yao Qi <yao@codesourcery.com>
14404 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
14405 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
14406 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
14407 Remove declarations of xmalloc, xreallloc, xstrdup and
14409 * Makefile.in (libiberty_h): New.
14410 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
14411 (linux-bfin-low.o): Append dependency 'libiberty.h'.
14413 2012-08-23 Yao Qi <yao@codesourcery.com>
14415 * server.h: Remove declaration of 'xsnprintf'.
14417 2012-08-22 Keith Seitz <keiths@redhat.com>
14419 * server.h: Include build-gnulib-gbserver/config.h.
14420 * gdbreplay.c: Likewise.
14422 2012-08-08 Doug Evans <dje@google.com>
14424 * Makefile.in (SFILES): Add gdb_vecs.c.
14425 (OBS): Add gdb_vecs.o.
14426 (gdb_vecs_h, host_defs_h): New variables.
14427 (thread-db.o): Add $(gdb_vecs_h) dependency.
14428 (gdb_vecs.o): New rule.
14429 * thread-db.c: #include "gdb_vecs.h".
14430 (thread_db_load_search): Use a vector to iterate over path elements.
14431 Handle text appearing after "$pdir".
14433 * configure.ac: Add check for strstr.
14434 * config.in: Regenerate.
14435 * configure: Regenerate.
14437 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
14439 * hostio.c (handle_pread): If pread fails, fall back to attempting
14441 (handle_pwrite): Likewise for pwrite.
14443 2012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
14445 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
14446 between unsupported TYPE and unimplementable ADDR/LEN combination.
14447 (arm_insert_point): Act on new return value.
14449 2012-07-31 Pedro Alves <palves@redhat.com>
14451 * server.c (process_point_options): Only skip tokens if we find
14452 one that is unrecognized. Don't treat 'X' specially while
14453 skipping unrecognized tokens.
14455 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
14457 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
14458 to 4-byte-align HW breakpoint addresses for Thumb.
14460 2012-07-27 Yao Qi <yao@codesourcery.com>
14464 * server.h: Declare gdb_agent_about_to_close.
14465 * target.c (kill_inferior): Include "agent.h".
14466 New. Send command 'kill'.
14467 * target.h (kill_inferior): Removed macro.
14468 * tracepoint.c (gdb_agent_about_to_close): New.
14469 (gdb_agent_helper_thread): Handle command 'close'.
14470 Wait endlessly until the inferior stops.
14471 Install gdb_agent_remove_socket to atexit hook.
14472 (agent_socket_name): New static variable.
14473 (gdb_agent_socket_init): Replace local variable 'name' with
14474 'agent_socket_name'.
14475 (gdb_agent_remove_socket): New.
14477 2012-07-27 Yao Qi <yao@codesourcery.com>
14479 * server.c (process_point_options): Stop at 'X' when parsing.
14481 2012-07-19 Michael Eager <eager@eagercon.com>
14483 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
14485 * linux-x86-low.c (x86_insert_point, x86_remove_point):
14486 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
14487 hardware breakpoint.
14489 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14491 * gdbserver/linux-low.c (initialize_low): Call
14492 linux_ptrace_init_warnings.
14494 2012-07-02 Doug Evans <dje@google.com>
14496 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
14499 2012-07-02 Stan Shebs <stan@codesourcery.com>
14501 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
14502 (ax.o): Add it to build rule.
14504 (OBS): Add format.o.
14505 (IPA_OBS): Add format.o.
14506 * server.c (handle_query): Claim support for breakpoint commands.
14507 (process_point_options): Add command case.
14508 (process_serial_event): Leave running if there are printfs in
14510 * mem-break.h (any_persistent_commands): Declare.
14511 (add_breakpoint_commands): Declare.
14512 (gdb_no_commands_at_breakpoint): Declare.
14513 (run_breakpoint_commands): Declare.
14514 * mem-break.c (struct point_command_list): New struct.
14515 (struct breakpoint): New field command_list.
14516 (any_persistent_commands): New function.
14517 (add_commands_to_breakpoint): New function.
14518 (add_breakpoint_commands): New function.
14519 (gdb_no_commands_at_breakpoint): New function.
14520 (run_breakpoint_commands): New function.
14521 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
14523 * ax.c: Include format.h.
14524 (ax_printf): New function.
14525 (gdb_eval_agent_expr): Add printf opcode.
14527 2012-06-13 Yao Qi <yao@codesourcery.com>
14529 * server.c (start_inferior): Remove duplicated writes to fields
14530 'last_resume_kind' and 'last_status' of 'current_inferior'.
14532 2012-06-12 Yao Qi <yao@codesourcery.com>
14533 Pedro Alves <palves@redhat.com>
14535 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
14537 * server.c (handle_v_cont): Extend comment.
14539 2012-06-11 Yao Qi <yao@codesourcery.com>
14541 * linux-low.c (linux_attach): Add 'static'.
14543 2012-06-06 Yao Qi <yao@codesourcery.com>
14545 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
14547 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
14549 Fix gcc -flto compilation warning.
14550 * server.c (main): Make variable multi_mode and attach volatile.
14552 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14554 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
14555 if the platform doesn't know about it.
14557 2012-05-30 Jeff Kenton <jkenton@tilera.com>
14559 * Makefile.in (SFILES): Add linux-tile-low.c.
14560 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
14561 * configure.srv: Handle tilegx-*-linux*.
14562 * linux-tile-low.c: New file.
14564 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
14566 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
14568 2012-05-24 Pedro Alves <palves@redhat.com>
14572 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
14574 2012-05-24 Pedro Alves <palves@redhat.com>
14578 Replace target_signal with gdb_signal throughout.
14580 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
14582 * linux-low.c (linux_store_registers): Avoid the copying sequence
14583 when no data has been retrieved by ptrace.
14585 2012-05-22 Will Deacon <will.deacon@arm.com>
14587 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
14588 Include asm/ptrace.h.
14589 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
14592 2012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
14594 * linux-low.c (linux_store_registers): Don't re-retrieve data
14595 with ptrace that has already been obtained from /proc. Always
14596 copy any data retrieved with ptrace to the buffer supplied.
14598 2012-05-11 Yao Qi <yao@codesourcery.com>
14599 Pedro Alves <palves@redhat.com>
14601 * linux-low.c (enum stopping_threads_kind): New.
14602 (stopping_threads): Change type to `enum stopping_threads_kind'.
14603 (handle_extended_wait): If stopping and suspending threads, leave
14604 the new_lwp suspended too.
14605 (linux_wait_for_event): Adjust.
14606 (stop_all_lwps): Set `stopping_threads' to
14607 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
14608 whether we're suspending threads or just stopping them. Assert no
14611 2012-04-29 Yao Qi <yao@codesourcery.com>
14613 * server.h: Move some code to ...
14614 * gdbthread.h: ... here. New.
14615 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
14616 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
14617 (nto-low.o, win32-low.o): Likewise.
14618 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
14619 * regcache.c, remote-utils.c, server.c: Likewise.
14620 * target.c, tracepoint.c, win32-low.c: Likewise.
14622 2012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14624 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
14625 (PTRACE_ARG4_TYPE): Likewise.
14626 (PTRACE_XFER_TYPE): Likewise.
14627 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
14628 ptrace to PTRACE_ARG3_TYPE.
14629 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
14630 (PTRACE_ARG4_TYPE): Likewise.
14631 (PTRACE_XFER_TYPE): Likewise.
14632 (linux_detach_one_lwp): Cast fourth argument of
14633 ptrace to long then PTRACE_ARG4_TYPE.
14634 (regsets_fetch_inferior_registers): Cast third argument of
14635 ptrace to long then PTRACE_ARG3_TYPE.
14636 (regsets_store_inferior_registers): Likewise.
14638 2012-04-20 Pedro Alves <palves@redhat.com>
14640 * configure: Regenerate.
14642 2012-04-19 Pedro Alves <palves@redhat.com>
14644 * Makefile.in (GNULIB_BUILDDIR): New.
14645 (LIBGNU, INCGNU, GNULIB_H): Adjust.
14646 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
14647 (all, install-only, uninstall, clean-info, all-lib, clean): No
14648 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
14649 (maintainer-clean realclean distclean): Use subdir_do.
14651 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
14652 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
14653 * acinclude.m4: Include acx_configure_dir.m4.
14654 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
14655 calls. Call AC_PROG_RANLIB. Configure gnulib using
14658 (GNULIB_STDINT_H): Adjust.
14659 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
14660 * gdbreplay.c: Include build-gnulib/config.h.
14661 * server.h: Likewise.
14662 * aclocal.m4: Regenerate.
14663 * config.in: Regenerate.
14664 * configure: Regenerate.
14666 2012-04-19 Pedro Alves <palves@redhat.com>
14668 * Makefile.in (LIBGNU, INCGNU): Adjust.
14669 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
14670 (all, install-only, uninstall, clean-info, all-lib, clean)
14671 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
14672 * configure.ac: Adjust AC_OUTPUT output.
14673 * aclocal.m4: Regenerate.
14674 * configure: Regenerate.
14676 2012-04-19 Pedro Alves <palves@redhat.com>
14678 * Makefile.in (generated_files): New.
14679 (server_h): Remove the explicit dependency on config.h, and depend
14680 on $generated_files.
14682 2012-04-19 Pedro Alves <palves@redhat.com>
14684 * Makefile.in (INCGNU): Add -Ignulib.
14686 2012-04-19 Pedro Alves <palves@redhat.com>
14688 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
14689 (INCGNU): ... this, and spell out -I here.
14690 (GNULIB_LIB): Rename to ...
14691 (LIBGNU): ... this.
14692 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
14694 2012-04-19 Pedro Alves <palves@redhat.com>
14696 * config.in: Regenerate.
14698 2012-04-19 Pedro Alves <palves@redhat.com>
14700 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
14701 * server.h (memmem): Remove declaration.
14702 * config.in: Regenerate.
14703 * configure: Regenerate.
14705 2012-04-19 Yao Qi <yao@codesourcery.com>
14707 * Makefile.in (SFILES): Add common/vec.c.
14711 2012-04-19 Yao Qi <yao@codesourcery.com>
14713 * remote-utils.c (prepare_resume_reply): Replace with macro
14714 target_core_of_thread.
14715 * server.c (handle_qxfer_threads_proper): Likewise.
14716 * target.h (traget_core_of_thread): New macro.
14718 2012-04-18 Pedro Alves <palves@redhat.com>
14720 * aclocal.m4: Regenerate.
14721 * configure: Regenerate.
14723 2012-04-16 Yao Qi <yao@codesourcery.com>
14725 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
14726 duplicated on address.
14728 2012-04-16 Yao Qi <yao@codesourcery.com>
14730 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
14731 (struct tracepoint_action_ops) <send>: New field.
14732 (m_tracepoint_action_send, r_tracepoint_action_send): New.
14733 (agent_expr_send, x_tracepoint_action_send): New.
14734 (l_tracepoint_action_send): New.
14735 (cmd_qtdp): Download and install tracepoint
14736 according to `use_agent'.
14737 (run_inferior_command): Add one more parameter `len'.
14739 (tracepoint_send_agent): New.
14740 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
14742 2012-04-16 Yao Qi <yao@codesourcery.com>
14744 * tracepoint.c (download_tracepoints): Moved to ...
14745 (cmd_qtstart): ... here.
14747 2012-04-14 Yao Qi <yao@codesourcery.com>
14749 * tracepoint.c: Include inttypes.h.
14750 (struct collect_memory_action): Use sized types.
14751 (struct tracepoint): Likewise.
14752 (cmd_qtdp, stop_tracing): Update print specifiers.
14753 (cmd_qtp, response_tracepoint): Likewise.
14754 (collect_data_at_tracepoint): Likewise.
14755 (collect_data_at_step): Likewise.
14757 2012-04-14 Yao Qi <yao@codesourcery.com>
14759 Import gnulib module inttypes.
14760 * aclocal.m4, config.in, configure: Regenerated.
14762 2012-04-14 Yao Qi <yao@codesourcery.com>
14764 * Makefile.in (maintainer-clean, realclean, distclean): Remove
14765 Makefile and config.status at last.
14767 2012-04-13 Yao Qi <yao@codesourcery.com>
14769 * tracepoint.c: Include stdint.h unconditionally.
14771 2012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14773 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
14774 on BFD_HAVE_SYS_PROCFS_TYPE.
14775 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
14776 * configure: Regenerate.
14777 * config.in: Likewise.
14779 2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
14781 * Makefile.in (clean): Also remove x32.c x32-linux.c
14782 x32-avx.c x32-avx-linux.c.
14783 (x32.o): New target.
14785 (x32-linux.o): Likewise.
14786 (x32-linux.c): Likewise.
14787 (x32-avx.o): Likewise.
14788 (x32-avx.c): Likewise.
14789 (x32-avx-linux.o): Likewise.
14790 (x32-avx-linux.c): Likewise.
14792 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
14793 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
14794 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
14795 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
14796 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
14797 i386/x32-avx-linux.xml.
14799 * linux-x86-low.c (init_registers_x32_linux): New prototype.
14800 (init_registers_x32_avx_linux): Likwise.
14801 (x86_linux_update_xmltarget): Call init_registers_x32_linux
14802 or init_registers_x32_avx_linux if linux_is_elf64 is false.
14804 2012-04-13 Pedro Alves <palves@redhat.com>
14806 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
14807 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
14808 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
14809 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
14812 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
14814 * linux-x86-low.c (compat_x32_clock_t): New.
14815 (compat_x32_siginfo_t): Likewise.
14816 (compat_x32_siginfo_from_siginfo): Likewise.
14817 (siginfo_from_compat_x32_siginfo): Likewise.
14818 (linux_is_elf64): Likewise.
14819 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
14820 and siginfo_from_compat_x32_siginfo for x32.
14821 (x86_arch_setup): Set linux_is_elf64.
14823 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
14826 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
14828 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
14829 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
14830 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
14831 compatible with process.
14833 2012-04-12 Yao Qi <yao@codesourcery.com>
14835 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
14836 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
14837 (install-only, install-info, clean): Handle sub dir gnulib.
14838 (all-lib, am--refresh): New targets.
14839 (memmem.o): Remove target.
14840 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
14841 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
14842 (AC_REPLACE_FUNCS): Remove memmem.
14843 Invoke gl_INIT and AM_INIT_AUTOMAKE.
14844 (AC_OUTPUT): Generate Makefile in gnulib/.
14845 * aclocal.m4, config.in, configure: Regenerated.
14847 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
14849 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
14851 2012-04-05 Pedro Alves <palves@redhat.com>
14853 -Werror=strict-aliasing
14855 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
14858 2012-04-04 Pedro Alves <palves@redhat.com>
14860 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
14861 (sparc_store_gregset_from_stack, sparc_store_gregset)
14862 (sparc_breakpoint_at): Fix formatting.
14864 2012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14866 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
14868 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
14869 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
14870 * config.in: Regenerate.
14871 * configure: Likewise.
14873 2012-03-29 Pedro Alves <palves@redhat.com>
14875 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
14876 Correct ptrace arguments.
14878 2012-03-28 Pedro Alves <palves@redhat.com>
14880 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
14881 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
14882 (IA64_FR1_REGNUM): New defines.
14883 (ia64_fetch_register): New.
14884 (the_low_target): Install it.
14885 * linux-low.h (struct linux_target_ops) <fetch_register>: New
14887 * linux-low.c (linux_fetch_registers): Try the
14888 the_low_target.fetch_register hook first.
14890 * linux-arm-low.c (the_low_target): Adjust.
14891 * linux-bfin-low.c (the_low_target): Adjust.
14892 * linux-cris-low.c (the_low_target): Adjust.
14893 * linux-crisv32-low.c (the_low_target): Adjust.
14894 * linux-m32r-low.c (the_low_target): Adjust.
14895 * linux-m68k-low.c (the_low_target): Adjust.
14896 * linux-mips-low.c (the_low_target): Adjust.
14897 * linux-ppc-low.c (the_low_target): Adjust.
14898 * linux-s390-low.c (the_low_target): Adjust.
14899 * linux-sh-low.c (the_low_target): Adjust.
14900 * linux-sparc-low.c (the_low_target): Adjust.
14901 * linux-tic6x-low.c (the_low_target): Adjust.
14902 * linux-x86-low.c (the_low_target): Adjust.
14903 * linux-xtensa-low.c (the_low_target): Adjust.
14905 2012-03-26 Pedro Alves <palves@redhat.com>
14907 * server.c (handle_qxfer_libraries): Don't bail early if
14908 the_target->qxfer_libraries_svr4 is not NULL.
14910 2012-03-26 Pedro Alves <palves@redhat.com>
14912 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
14914 2012-03-23 Pedro Alves <palves@redhat.com>
14916 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
14917 "library-list-svr4" element's start tag when the the DSO list is
14920 2012-03-23 Pedro Alves <palves@redhat.com>
14922 * linux-low.c (read_one_ptr): Read the inferior's pointer through
14923 a variable whose type size is the same as the inferior's pointer
14926 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
14928 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
14930 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
14931 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
14932 * linux-low.h: Include <signal.h>.
14933 (struct siginfo): Remove forward declaration.
14934 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
14937 2012-03-21 Mike Frysinger <vapier@gentoo.org>
14939 * .gitignore: Ignore more files.
14941 2012-03-19 Pedro Alves <palves@redhat.com>
14942 Jan Kratochvil <jan.kratochvil@redhat.com>
14944 * server.c (cont_thread, general_thread): Add describing comments.
14945 (start_inferior): Clear `cont_thread'.
14946 (handle_v_cont): Don't set `cont_thread' if resuming all threads
14949 2012-03-15 Yao Qi <yao@codesourcery.com>
14951 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
14953 (cmd_qtdp): ... here.
14955 2012-03-15 Yao Qi <yao@codesourcery.com>
14957 * tracepoint.c (struct tracepoint_action_ops): New.
14958 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
14959 (m_tracepoint_action_download): New.
14960 (r_tracepoint_action_download): New.
14961 (x_tracepoint_action_download): New.
14962 (l_tracepoint_action_download): New.
14963 (add_tracepoint_action): Install `action->ops' according type.
14964 (download_tracepoint_1): Move code `download' function pointer
14965 of various tracepoint_action_ops.
14967 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
14969 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
14970 linux_ptrace_attach_warnings.
14972 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
14974 * Makefile.in (linux-ptrace.o): New.
14975 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
14976 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
14977 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
14978 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
14979 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
14981 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
14983 2012-03-08 Yao Qi <yao@codesourcery.com>
14984 Pedro Alves <palves@redhat.com>
14986 Fix PR server/13392.
14987 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
14988 offset of JMP insn.
14989 * tracepoint.c (remove_tracepoint): New.
14990 (cmd_qtdp): Call remove_tracepoint when failed to install.
14992 2012-03-07 Pedro Alves <palves@redhat.com>
14994 * linux-low.c (get_detach_signal): New.
14995 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
14996 Pass on pending signals to PTRACE_DETACH. Check the result of the
14998 * server.c (program_signals, program_signals_p): New.
14999 (handle_general_set): Handle QProgramSignals.
15000 * server.h (program_signals, program_signals_p): Declare.
15002 2012-03-05 Pedro Alves <palves@redhat.com>
15003 Jan Kratochvil <jan.kratochvil@redhat.com>
15005 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
15008 2012-03-03 Yao Qi <yao@codesourcery.com>
15010 * tracepoint.c (tracepoint_look_up_symbols): Update call to
15011 agent_look_up_symbols.
15013 2012-03-03 Yao Qi <yao@codesourcery.com>
15015 * Makefile.in (linux-low.o): Keep dependence on agent.h.
15016 (linux-x86-low.o): Likewise.
15017 * server.h: Remove in_process_agent_loaded.
15018 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
15022 2012-03-03 Yao Qi <yao@codesourcery.com>
15024 * tracepoint.c (gdb_agent_capability): New global.
15025 (in_process_agent_loaded_ust): Renamed to
15026 `in_process_agent_supports_ust'.
15028 (in_process_agent_supports_ust): Call agent_capability_check.
15029 (clear_installed_tracepoints): Assert that agent supports
15032 2012-03-03 Yao Qi <yao@codesourcery.com>
15034 * linux-low.c (linux_supports_agent): New.
15035 (linux_target_ops): Initialize field `supports_agent' with
15036 linux_supports_agent.
15037 * target.h (struct target_ops) <supports_agent>: New.
15038 (target_supports_agent): New macro.
15039 * server.c (handle_general_set): Handle packet 'QAgent'.
15040 (handle_query): Send `QAgent+'.
15041 * Makefile.in (server.o): Depends on agent.h.
15043 2012-03-03 Yao Qi <yao@codesourcery.com>
15045 * Makefile.in (OBS): Add agent.o.
15046 Add new rule for agent.o.
15047 Track dependence of tracepoint.c on agent.h.
15048 * tracepoint.c (run_inferior_command_1):
15049 (run_inferior_command): Call agent_run_command.
15050 (gdb_ust_connect_sync_socket): Deleted. Move it to
15052 (resume_thread, stop_thread): Likewise.
15053 (gdb_ust_socket_init): Renamed to ...
15054 (gdb_agent_socket_init): ... New.
15055 (gdb_ust_thread): Renamed to ...
15056 (gdb_agent_helper_thread): ... New.
15057 (gdb_ust_init): Move some code to ...
15058 (gdb_agent_init): ... here. New.
15059 [HAVE_UST]: Call gdb_ust_init.
15060 (initialize_tracepoint_ftlib): Call gdb_agent_init.
15061 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
15062 * config.in, configure: Regenerated.
15064 2012-03-02 Pedro Alves <palves@redhat.com>
15066 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
15067 * linux-low.c (struct simple_pid_list): New.
15068 (stopped_pids): New a struct simple_pid_list pointer.
15069 (add_to_pid_list, pull_pid_from_list): New.
15070 (handle_extended_wait): Don't assume the first signal new children
15071 report is SIGSTOP. Adjust call to pull_pid_from_list.
15072 (linux_wait_for_lwp): Adjust.
15074 2012-03-02 Yao Qi <yao@codesourcery.com>
15076 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
15079 2012-03-02 Yao Qi <yao@codesourcery.com>
15081 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
15082 `stop_pc' and `tpoint'. Update caller.
15084 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
15086 * linux-low.h (linux_target_ops): Add regset_bitmap member.
15087 * linux-low.c (use_linux_regsets): New macro.
15088 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
15089 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
15090 (linux_register_in_regsets): New function.
15091 (usr_fetch_inferior_registers): Skip registers covered by
15093 (usr_store_inferior_registers): Likewise.
15094 (usr_fetch_inferior_registers): New macro.
15095 (usr_store_inferior_registers): Likewise.
15096 (linux_fetch_registers): Handle mixed regset/non-regset targets.
15097 (linux_store_registers): Likewise.
15098 * linux-mips-low.c (init_registers_mips_dsp_linux): New
15100 (init_registers_mips64_dsp_linux): Likewise.
15101 (init_registers_mips_linux): New macro.
15102 (init_registers_mips_dsp_linux): Likewise.
15103 (mips_dsp_num_regs): Likewise.
15104 (DSP_BASE, DSP_CONTROL): New fallback macros.
15105 (mips_base_regs): New macro.
15106 (mips_regmap): Use it. Fix the size.
15107 (mips_dsp_regmap): New variable.
15108 (mips_dsp_regset_bitmap): Likewise.
15109 (mips_arch_setup): New function.
15110 (mips_cannot_fetch_register): Use the_low_target.regmap rather
15112 (mips_cannot_store_register): Likewise.
15113 (the_low_target): Update .arch_setup, .num_regs and .regmap
15114 initializers. Add .regset_bitmap initializer.
15115 * linux-arm-low.c (the_low_target): Add .regset_bitmap
15117 * linux-bfin-low.c (the_low_target): Likewise.
15118 * linux-cris-low.c (the_low_target): Likewise.
15119 * linux-crisv32-low.c (the_low_target): Likewise.
15120 * linux-ia64-low.c (the_low_target): Likewise.
15121 * linux-m32r-low.c (the_low_target): Likewise.
15122 * linux-m68k-low.c (the_low_target): Likewise.
15123 * linux-ppc-low.c (the_low_target): Likewise.
15124 * linux-s390-low.c (the_low_target): Likewise.
15125 * linux-sh-low.c (the_low_target): Likewise.
15126 * linux-sparc-low.c (the_low_target): Likewise.
15127 * linux-tic6x-low.c (the_low_target): Likewise.
15128 * linux-x86-low.c (the_low_target): Likewise.
15129 * linux-xtensa-low.c (the_low_target): Likewise.
15130 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
15131 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
15132 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
15134 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
15135 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
15137 2012-02-29 Yao Qi <yao@codesourcery.com>
15138 Pedro Alves <palves@redhat.com>
15140 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
15141 `step_over_finished' is true.
15143 2012-02-27 Pedro Alves <palves@redhat.com>
15145 * linux-low.c (pid_is_stopped): Delete, moved to common/.
15146 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
15148 2012-02-27 Pedro Alves <palves@redhat.com>
15151 * linux-low.c (pid_is_stopped): New.
15152 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
15154 2012-02-25 Luis Machado <lgustavo@codesourcery.com>
15156 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
15159 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
15161 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
15163 2012-02-24 Luis Machado <lgustavo@codesourcery>
15165 * server.c (handle_query): Advertise support for target-side
15166 breakpoint condition evaluation.
15167 (process_point_options): New function.
15168 (process_serial_event): When inserting a breakpoint, check for
15169 a target-side condition that should be evaluated.
15171 * mem-break.c: Include regcache.h and ax.h.
15172 (point_cond_list_t): New data structure.
15173 (breakpoint) <cond_list>: New field.
15174 (find_gdb_breakpoint_at): Make non-static.
15175 (delete_gdb_breakpoint_at): Clear any target-side
15177 (clear_gdb_breakpoint_conditions): New function.
15178 (add_condition_to_breakpoint): Likewise.
15179 (add_breakpoint_condition): Likewise.
15180 (gdb_condition_true_at_breakpoint): Likewise.
15181 (gdb_breakpoint_here): Return result directly instead
15182 of going through a local variable.
15184 * mem-break.h (find_gdb_breakpoint_at): New prototype.
15185 (clear_gdb_breakpoint_conditions): Likewise.
15186 (add_breakpoint_condition): Likewise.
15187 (gdb_condition_true_at_breakpoint): Likewise.
15189 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
15190 (need_step_over_p): Take target-side breakpoint condition into
15193 2012-02-24 Luis Machado <lgustavo@codesourcery>
15195 * server.h: Include tracepoint.h.
15196 (agent_mem_read, agent_get_trace_state_variable_value,
15197 agent_set_trace_state_variable_value,
15198 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
15199 get_set_tsv_func_addr): New prototypes.
15201 * ax.h: New include file.
15202 * ax.c: New source file.
15204 * tracepoint.c: Include ax.h.
15205 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
15206 agent_expr, eval_result_type): Move to ax.h.
15207 (parse_agent_expr): Rename to ...
15208 (gdb_parse_agent_expr): ... this, make it non-static and move
15210 (unparse_agent_expr) Rename to ...
15211 (gdb_unparse_agent_expr): ... this, make it non-static and move
15213 (eval_agent_expr): Rename to ...
15214 (eval_tracepoint_agent_expr): ... this.
15215 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
15216 forward declarations.
15217 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
15218 (agent_get_trace_state_variable_value): New function.
15219 (agent_set_trace_state_variable_value): New function.
15220 (cmd_qtdp): Call gdb_parse_agent_expr (...).
15221 (response_tracepoint): Call gdb_unparse_agent_expr (...).
15222 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
15223 (condition_true_at_tracepoint): Likewise.
15224 (parse_agent_expr): Rename to ...
15225 (gdb_parse_agent_expr): ... this and move to ax.c.
15226 (unparse_agent_expr): Rename to ...
15227 (gdb_unparse_agent_expr): ... this and move to ax.c.
15228 (gdb_agent_op_name): Move to ax.c.
15229 (eval_agent_expr): Rename to ...
15230 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
15232 (eval_tracepoint_agent_expr): New function.
15233 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
15235 (current_insn_ptr, emit_error, struct bytecode_address): Move to
15237 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
15238 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
15239 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
15240 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
15241 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
15242 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
15243 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
15244 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
15245 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
15246 (compile_bytecodes): Remove forward declaration.
15247 (is_goto_target): Move to ax.c.
15248 (compile_bytecodes): Move to ax.c and call
15249 agent_get_trace_state_variable_value (...) and
15250 agent_set_trace_state_variable_value (...).
15252 * Makefile.in: Update ax.c and IPA dependencies.
15254 2012-02-24 Pedro Alves <palves@redhat.com>
15256 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
15257 (cmd_bigqtbuffer_circular): ... this. Only handle
15258 'QTBuffer:circular:'.
15259 (handle_tracepoint_general_set): Adjust.
15261 2012-02-16 Yao Qi <yao@codesourcery.com>
15263 * inferiors.c: Move code to ...
15264 * dll.c: .... here. New.
15265 * server.h: Declare clear_dlls.
15266 * Makefile.in (SFILES): Add dll.c.
15270 2012-02-11 Yao Qi <yao@codesourcery.com>
15272 * server.c: (handle_monitor_command): Add a new parameter
15274 (handle_query): Update caller.
15276 2012-02-09 Joel Brobecker <brobecker@adacore.com>
15278 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
15279 * configure, config.in: Regenerate.
15280 * hostio.c: Provide an alternate implementation if HAVE_READLINK
15283 2012-02-02 Pedro Alves <palves@redhat.com>
15285 Try SIGKILL first, then PTRACE_KILL.
15286 * linux-low.c (linux_kill_one_lwp): New.
15287 (linux_kill_one_lwp): Rename to ...
15288 (kill_one_lwp_callback): ... this. Use the new
15289 linux_kill_one_lwp.
15291 2012-02-02 Pedro Alves <palves@redhat.com>
15293 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
15296 2012-01-27 Pedro Alves <palves@redhat.com>
15298 * linux-low.c (linux_child_pid_to_exec_file): Delete.
15299 (elf_64_file_p): Make static.
15300 (linux_pid_exe_is_elf_64_file): New.
15301 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
15302 Delete declarations.
15303 (linux_pid_exe_is_elf_64_file): Declare.
15304 * linux-x86-low.c (x86_arch_setup): Use
15305 linux_pid_exe_is_elf_64_file.
15307 2012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
15309 * linux-low.c (linux_wait_for_event_1): Rename to ...
15310 (linux_wait_for_event): ... here and merge it with former
15311 linux_wait_for_event - new variable wait_ptid, use it.
15312 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
15314 2012-01-23 Pedro Alves <palves@redhat.com>
15316 * server.c (main): Avoid yet another case of infinite loop while
15317 detaching/killing after a longjmp.
15319 2012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15322 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
15324 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
15326 * hostio.c (handle_readlink): New function.
15327 (handle_vFile): Call it to handle "vFile:readlink" packets.
15329 2012-01-20 Pedro Alves <palves@redhat.com>
15330 Ulrich Weigand <ulrich.weigand@linaro.org>
15332 * server.c (handle_v_requests): Only support vAttach and vRun to
15333 start multiple processes when in extended protocol mode.
15335 2012-01-17 Pedro Alves <palves@redhat.com>
15337 * tracepoint.c (initialize_tracepoint): Use mmap instead of
15338 memalign plus mprotect to allocate the scratch buffer.
15340 2012-01-13 Pedro Alves <palves@redhat.com>
15342 * server.c (attach_inferior): Clear `cont_thread'.
15344 2012-01-13 Pedro Alves <palves@redhat.com>
15346 * server.c (main): Avoid infinite loop while detaching/killing
15349 2012-01-09 Doug Evans <dje@google.com>
15351 * server.c (start_inferior): Set last_ptid in --wrapper case.
15353 2012-01-06 Yao Qi <yao@codesourcery.com>
15355 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
15357 [IN_PROCESS_AGENT] (debug_agent): New global variable.
15359 2012-01-04 Yao Qi <yao@codesourcery.com>
15361 * tracepoint.c (cmd_qtdp): Print debug message
15362 for static tracepoint.
15364 2012-01-04 Yao Qi <yao@codesourcery.com>
15366 * tracepoint.c (trace_vdebug): Differentiate debug message
15367 between gdbserver and IPA.
15369 2012-01-03 Yao Qi <yao@codesourcery.com>
15371 * tracepoint.c (tracepoint_was_hit): Don't collect for
15374 2012-01-02 Joel Brobecker <brobecker@adacore.com>
15376 * terminal.h: Reformat copyright header.
15378 2012-01-02 Joel Brobecker <brobecker@adacore.com>
15380 * server.c (gdbserver_version): Update copyright year.
15381 * gdbreplay.c (gdbreplay_version): Likewise.
15383 2011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
15385 * linux-low.c (linux_create_inferior): Put empty if clause for write.
15388 2011-12-18 Hui Zhu <teawater@gmail.com>
15389 * linux-low.c (linux_create_inferior): Save return value to ret.
15391 2011-12-18 Hui Zhu <teawater@gmail.com>
15393 * linux-low.c (linux_create_inferior): Save return value to ret.
15395 2011-12-16 Doug Evans <dje@google.com>
15397 * linux-low.c (linux_create_inferior): If stdio connection,
15398 redirect stdin from /dev/null, stdout to stderr.
15399 * remote-utils.c (remote_is_stdio): New static global.
15400 (remote_connection_is_stdio): New function.
15401 (remote_prepare): Handle stdio connection.
15402 (remote_open): Ditto.
15403 (remote_close): Don't close stdin for stdio connections.
15404 (read_prim,write_prim): New functions. Replace all calls to
15405 read/write to these.
15406 * server.c (main): Watch for "-" argument. Move call to
15407 remote_prepare before start_inferior.
15408 * server.h (STDIO_CONNECTION_NAME): New macro.
15409 (remote_connection_is_stdio): Declare.
15411 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
15412 in debugging output.
15414 2011-12-15 Yao Qi <yao@codesourcery.com>
15416 * tracepoint.c: Include sys/syscall.h.
15417 (gdb_ust_thread): Remove preprocessor conditional.
15419 2011-12-14 Pedro Alves <pedro@codesourcery.com>
15421 * linux-low.c (linux_detach_one_lwp): Call
15422 the_low_target.prepare_to_resume before detaching.
15424 2011-12-14 Yao Qi <yao@codesourcery.com>
15426 * tracepoint.c (gdb_ust_thread): Don't ignore return value
15429 2011-12-14 Yao Qi <yao@codesourcery.com>
15431 * i386-low.c (i386_low_stopped_data_address): Initialize local
15432 variable `control'.
15434 2011-12-13 Pedro Alves <pedro@codesourcery.com>
15438 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
15439 DR_CONTROL unless necessary. Extend comments.
15440 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
15441 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
15443 2011-12-13 Yao Qi <yao@codesourcery.com>
15445 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
15447 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
15449 2011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
15451 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
15452 Print new debug message for such case.
15454 2011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
15456 Fix overlapping memcpy.
15457 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
15458 the read_inferior_memory transfer.
15459 (delete_fast_tracepoint_jump): New variable buf. Use it for the
15460 write_inferior_memory transfer.
15461 (set_fast_tracepoint_jump): New variable buf. Use it for the
15462 read_inferior_memory and write_inferior_memory transfers.
15463 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
15464 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
15465 Use it for the write_inferior_memory transfer.
15466 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
15469 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15471 * linux-low.c (fetch_register, store_register): Make code
15472 consistent, fix formatting.
15474 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15476 * linux-low.c (usr_store_inferior_registers): Factor out code
15477 to handle individual registers into...
15478 (store_register): ... this new function.
15480 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
15482 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
15483 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
15484 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
15485 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
15486 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
15487 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
15488 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
15489 (srv_xmlfiles): Add new XML files.
15491 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
15493 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
15494 (init_registers_s390_linux32v1): Add prototype.
15495 (init_registers_s390_linux32v2): Likewise.
15496 (init_registers_s390_linux64v1): Likewise.
15497 (init_registers_s390_linux64v2): Likewise.
15498 (init_registers_s390x_linux64v1): Likewise.
15499 (init_registers_s390x_linux64v2): Likewise.
15500 (s390_num_regs): Increment to 52.
15501 (s390_regmap): Add orig_r2 register.
15502 (s390_num_regs_3264): Increment to 68.
15503 (s390_regmap_3264): Add orig_r2 register.
15504 (s390_collect_ptrace_register): Handle orig_r2 register.
15505 (s390_supply_ptrace_register): Likewise.
15506 (s390_fill_last_break): New function.
15507 (s390_store_last_break): Likewise.
15508 (s390_fill_system_call): New function.
15509 (s390_store_system_call): Likewise.
15510 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
15512 (s390_check_regset): New function.
15513 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
15514 NT_S390_SYSTEM_CALL regsets and use appropriate description.
15515 Update target_regsets for available register sets.
15517 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
15518 Jan Kratochvil <jan.kratochvil@redhat.com>
15520 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
15521 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
15523 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
15524 * linux-low.h (struct process_info_private): New member r_debug.
15525 * server.c (handle_qxfer_libraries): Call
15526 the_target->qxfer_libraries_svr4.
15527 (handle_qxfer_libraries_svr4): New function.
15528 (qxfer_packets): New entry "libraries-svr4".
15529 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
15530 * target.h (struct target_ops): New member qxfer_libraries_svr4.
15531 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
15532 PACKET_qXfer_libraries_svr4.
15534 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
15536 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
15537 PSW address/mask between 8-byte and 16-byte formats.
15538 (s390_supply_ptrace_register): Likewise.
15539 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
15540 basic addressing mode bit.
15542 2011-11-24 Stan Shebs <stan@codesourcery.com>
15544 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
15546 2011-11-17 Stan Shebs <stan@codesourcery.com>
15548 * tracepoint.c (struct tracepoint): New field traceframe_usage.
15549 (tracing_start_time): New global.
15550 (tracing_stop_time): New global.
15551 (tracing_user_name): New global.
15552 (tracing_notes): New global.
15553 (tracing_stop_note): New global.
15554 (cmd_qtstart): Set traceframe_usage, start_time.
15555 (stop_tracing): Set stop_time.
15556 (cmd_qtstatus): Report additional status.
15557 (cmd_qtp): New function.
15558 (handle_tracepoint_query): Call it.
15559 (cmd_qtnotes): New function.
15560 (handle_tracepoint_general_set): Call it.
15561 (get_timestamp): Rename from tsv_get_timestamp.
15563 2011-11-14 Stan Shebs <stan@codesourcery.com>
15564 Kwok Cheung Yeung <kcy@codesourcery.com>
15566 * linux-x86-low.c (small_jump_insn): New.
15567 (i386_install_fast_tracepoint_jump_pad): Add arguments for
15568 trampoline and error message, build a trampoline and issue a small
15569 jump instruction to it.
15570 (x86_install_fast_tracepoint_jump_pad): Add arguments for
15571 trampoline and error message.
15572 (x86_get_min_fast_tracepoint_insn_len): New.
15573 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
15574 * linux-low.h (struct linux_target_ops): Add arguments to
15575 install_fast_tracepoint_jump_pad operation, add new operation.
15576 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
15578 (linux_get_min_fast_tracepoint_insn_len): New function.
15579 (linux_target_op): Add new operation.
15580 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
15581 (gdb_trampoline_buffer_end): Ditto.
15582 (gdb_trampoline_buffer_error): Ditto.
15583 (struct ipa_sym_addresses): Add fields for new IPA variables.
15584 (symbol_list): Add entries for new IPA variables.
15585 (struct tracepoint): Add fields to hold the address range of the
15586 trampoline used by the tracepoint.
15587 (trampoline_buffer_head): New static variable.
15588 (trampoline_buffer_tail): Ditto.
15589 (claim_trampoline_space): New function.
15590 (have_fast_tracepoint_trampoline_buffer): New function.
15591 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
15593 (install_fast_tracepoint): Ditto, also add error buffer argument.
15594 (cmd_qtminftpilen): New function.
15595 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
15596 (fast_tracepoint_from_trampoline_address): New function.
15597 (fast_tracepoint_collecting): Handle trampoline as part of jump
15599 (set_trampoline_buffer_space): New function.
15600 (initialize_tracepoint): Initialize new IPA variables.
15601 * target.h (struct target_ops): Add arguments to
15602 install_fast_tracepoint_jump_pad operation, add new
15603 get_min_fast_tracepoint_insn_len operation.
15604 (target_get_min_fast_tracepoint_insn_len): New.
15605 (install_fast_tracepoint_jump_pad): Add arguments.
15606 * server.h (IPA_BUFSIZ): Define.
15607 * linux-i386-ipa.c: Include extra header files.
15608 (initialize_fast_tracepoint_trampoline_buffer): New function.
15609 (initialize_low_tracepoint): Call it.
15610 * server.h (set_trampoline_buffer_space): Declare.
15611 (claim_trampoline_space): Ditto.
15612 (have_fast_tracepoint_trampoline_buffer): Ditto.
15614 2011-11-14 Yao Qi <yao@codesourcery.com>
15616 * server.c (handle_query): Handle InstallInTrace for qSupported.
15617 * tracepoint.c (add_tracepoint): Sort list.
15618 (install_tracepoint, download_tracepoint): New.
15619 (cmd_qtdp): Call them to install and download tracepoints.
15620 (sort_tracepoints): Removed.
15621 (cmd_qtstart): Update.
15623 2011-11-14 Yao Qi <yao@codesourcery.com>
15625 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
15626 * mem-break.h: Declare.
15627 * tracepoint.c (cmd_qtstart): Move some code to ...
15628 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
15630 (download_tracepoints): Move some code to ...
15631 (download_tracepoint_1): ... here. New.
15633 2011-11-08 Yao Qi <yao@codesourcery.com>
15635 * remote-utils.c (relocate_instruction): A comment fix.
15637 2011-11-07 Joel Brobecker <brobecker@adacore.com>
15639 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
15640 (i386_dr_low_get_control, i386_dr_low_get_status): Use
15641 dr_status_mirror and dr_control_mirror from debug_reg_state.
15642 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
15643 (i386_initial_stuff): Remove use of deleted globals.
15644 (i386_get_thread_context, i386_set_thread_context,
15645 i386_thread_added): Use dr_status_mirror and dr_control_mirror
15646 from debug_reg_state.
15648 2011-11-05 Yao Qi <yao@codesourcery.com>
15650 * tracepoint.c (gdb_collect): Loop over tracepoints of same
15651 address as TPOINT's.
15653 2011-11-02 Stan Shebs <stan@codesourcery.com>
15655 * tracepoint.c (agent_mem_read_string): New function.
15656 (eval_agent_expr): Call it for tracenz.
15657 * server.c (handle_query): Report support for tracenz.
15659 2011-11-02 Yao Qi <yao@codesourcery.com>
15661 * tracepoint.c (cmd_qtstart): Remove unused local variables.
15663 2011-11-02 Yao Qi <yao@codesourcery.com>
15665 * target.h: Fix a typo in comment.
15667 2011-10-31 Pedro Alves <pedro@codesourcery.com>
15669 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
15670 clobber the breakpoints' shadows with fast tracepoint jumps.
15671 * mem-break.h (check_mem_write): Add `myaddr' parameter.
15672 * target.c (write_inferior_memory): Also pass MYADDR down to
15675 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
15677 * configure.ac: Check support for personality routine.
15678 * configure: Regenerate.
15679 * config.in: Likewise.
15680 * linux-low.c: Include <sys/personality.h>.
15681 Define ADDR_NO_RANDOMIZE if necessary.
15682 (linux_create_inferior): Disable address space randomization when
15683 forking inferior, if requested.
15684 (linux_supports_disable_randomization): New function.
15685 (linux_target_ops): Install it.
15686 * server.h (disable_randomization): Declare.
15687 * server.c (disable_randomization): New global variable.
15688 (handle_general_set): Handle QDisableRandomization.
15689 (handle_query): Likewise for qSupported.
15690 (main): Support --disable-randomization and --no-disable-randomization
15691 command line arguments.
15692 * target.h (struct target_ops): Add supports_disable_randomization.
15693 (target_supports_disable_randomization): New macro.
15695 2011-09-29 Mike Frysinger <vapier@gentoo.org>
15697 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
15699 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
15700 [!PT_GETDSBT] (target_loadmap): New definition.
15701 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
15702 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
15703 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
15704 and PT_GETDSBT to LINUX_LOADMAP.
15705 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
15706 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
15708 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
15710 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
15711 (arm_linux_hwbp_cap): New static variable.
15712 (arm_linux_get_hwbp_cap): Replace by ...
15713 (arm_linux_init_hwbp_cap): ... this new function.
15714 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
15715 (arm_linux_get_hw_watchpoint_count): Likewise.
15716 (arm_linux_get_hw_watchpoint_max_length): Likewise.
15717 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
15718 (arm_prepare_to_resume): Use perror_with_name instead of error.
15720 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
15722 * linux-arm-low.c: Include <signal.h>.
15723 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
15724 (struct arm_linux_hwbp_cap): New data type.
15725 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
15726 (struct arm_linux_hw_breakpoint): New data type.
15727 (MAX_BPTS, MAX_WPTS): Define.
15728 (struct arch_process_info, struct arch_lwp_info): New data types.
15729 (arm_linux_get_hwbp_cap): New function.
15730 (arm_linux_get_hw_breakpoint_count): Likewise.
15731 (arm_linux_get_hw_watchpoint_count): Likewise.
15732 (arm_linux_get_hw_watchpoint_max_length): Likewise.
15733 (arm_hwbp_control_initialize): Likewise.
15734 (arm_hwbp_control_is_enabled): Likewise.
15735 (arm_hwbp_control_is_initialized): Likewise.
15736 (arm_hwbp_control_disable): Likewise.
15737 (arm_linux_hw_breakpoint_equal): Likewise.
15738 (arm_linux_hw_point_initialize): Likewise.
15739 (struct update_registers_data): New data structure.
15740 (update_registers_callback: New function.
15741 (arm_insert_point): Likewise.
15742 (arm_remove_point): Likewise.
15743 (arm_stopped_by_watchpoint): Likewise.
15744 (arm_stopped_data_address): Likewise.
15745 (arm_new_process): Likewise.
15746 (arm_new_thread): Likewise.
15747 (arm_prepare_to_resume): Likewise.
15748 (the_low_target): Register arm_insert_point, arm_remove_point,
15749 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
15750 arm_new_thread, and arm_prepare_to_resume.
15752 2011-09-15 Stan Shebs <stan@codesourcery.com>
15754 * server.h (struct emit_ops): Add compare-goto fields.
15755 * tracepoint.c (gdb_agent_op_sizes): New table.
15756 (emit_eq_goto): New function.
15757 (emit_ne_goto): New function.
15758 (emit_lt_goto): New function.
15759 (emit_le_goto): New function.
15760 (emit_gt_goto): New function.
15761 (emit_ge_goto): New function.
15762 (is_goto_target): New function.
15763 (compile_bytecodes): Recognize special cases of compare-goto
15764 combinations and call specialized emitters for them.
15765 * linux-x86-low.c (amd64_emit_eq_goto): New function.
15766 (amd64_emit_ne_goto): New function.
15767 (amd64_emit_lt_goto): New function.
15768 (amd64_emit_le_goto): New function.
15769 (amd64_emit_gt_goto): New function.
15770 (amd64_emit_ge_goto): New function.
15771 (amd64_emit_ops): Add the new functions.
15772 (i386_emit_eq_goto): New function.
15773 (i386_emit_ne_goto): New function.
15774 (i386_emit_lt_goto): New function.
15775 (i386_emit_le_goto): New function.
15776 (i386_emit_gt_goto): New function.
15777 (i386_emit_ge_goto): New function.
15778 (i386_emit_ops): Add the new functions.
15780 2011-09-08 Stan Shebs <stan@codesourcery.com>
15782 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
15783 (i386_emit_epilogue): Restore %ebx.
15785 2011-08-31 Jie Zhang <jzhang918@gmail.com>
15787 * server.c (step_thread): Remove definition.
15788 (process_serial_event): Don't handle Hs.
15789 * server.h (step_thread): Remove declaration.
15790 * target.c (set_desired_inferior): Remove use of step_thread.
15792 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
15794 * linux-low.c: Include linux-procfs.h.
15795 (linux_attach_lwp_1): Update comments.
15796 (linux_attach): Scan for existing threads when attaching to a
15797 process that is the tgid.
15798 * Makefile.in: Update dependencies.
15800 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
15802 * configure.srv: Add linux-procfs.o dependencies.
15804 2011-08-14 Yao Qi <yao@codesourcery.com>
15806 * target.h (struct target_ops): Fix indent.
15807 * win32-low.c (win32_target_ops): Fix comment.
15809 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
15810 Yao Qi <yao@codesourcery.com>
15812 * Makefile.in (clean): Remove tic6x-*.c files.
15813 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
15814 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
15815 (tic6x-c64xp-linux.c): Likewise.
15816 * configure.srv: Add support for tic6x-*-uclinux.
15817 * linux-tic6x-low.c: New.
15818 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
15820 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
15821 Yao Qi <yao@codesourcery.com>
15823 * target.h (struct target_ops): Add read_loadmap.
15824 * linux-low.c (struct target_loadseg): New type.
15825 (struct target_loadmap): New type.
15826 (linux_read_loadmap): New function.
15827 (linux_target_ops): Add linux_read_loadmap.
15828 * server.c (handle_query): Support qXfer:fdpic:read packet.
15829 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
15832 2011-08-05 Eli Zaretskii <eliz@gnu.org>
15834 * win32-low.c: Include <stdint.h>.
15836 2011-07-22 Pedro Alves <pedro@codesourcery.com>
15838 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
15839 to the inferior here.
15840 (i386_remove_aligned_watchpoint): Ditto.
15841 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
15842 fit part of the watchpoint in the debug registers.
15843 (i386_update_inferior_debug_regs): New.
15844 (i386_low_insert_watchpoint): Work on a local mirror of the debug
15845 registers, and only update the inferior on success.
15846 (i386_low_remove_watchpoint): Ditto.
15848 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
15850 * linux-low.c (compare_ints, unique, list_threads, show_process,
15851 linux_core_of_thread): Delete.
15852 (linux_target_ops): Change linux_core_of_thread to
15853 linux_common_core_of_thread.
15854 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
15855 * utils.c (malloc_failure): Change type of argument.
15856 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
15857 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
15858 common/linux-osdata.c, common/ptid.c and common/buffer.c.
15859 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
15860 (IPA_OBJS): Add common-utils-ipa.o.
15861 (ptid_h, linux_osdata_h): New macros.
15862 (server_h): Add common/common-utils.h, common/xml-utils.h,
15863 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
15865 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
15866 ptid.o, buffer.o): New rules.
15867 (linux-low.o): Add common/linux-osdata.h as a dependency.
15868 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
15869 * configure.ac: Add AC_HEADER_DIRENT check.
15870 * config.in: Regenerate.
15871 * configure: Regenerate.
15872 * remote-utils.c (xml_escape_text): Delete.
15873 (buffer_grow, buffer_free, buffer_init, buffer_finish,
15874 buffer_xml_printf): Move to common/buffer.c.
15875 * server.c (main): Remove call to initialize_inferiors.
15876 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
15877 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
15878 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
15879 internal_error, gdb_assert, gdb_assert_fail): Delete.
15880 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
15881 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
15883 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
15884 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
15885 initialize_inferiors): Delete.
15887 2011-07-20 Pedro Alves <pedro@codesourcery.com>
15889 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
15892 2011-05-31 Pedro Alves <pedro@codesourcery.com>
15894 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
15896 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
15898 2011-05-26 Yao Qi <yao@codesourcery.com>
15900 * Makefile.in (thread-db.o): Track dependence to
15901 common/gdb_thread_db.h.
15902 * thread-db.c: include gdb_thread_db.h from right place.
15904 2011-05-16 Adrian Cornish <gnu@bluedreamer.com>
15906 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
15907 __FILE__ and __LINE__ to internal_error.
15909 2011-05-13 Doug Evans <dje@google.com>
15911 * thread-db.c (try_thread_db_load_from_sdir): New function.
15912 (try_thread_db_load_from_dir): New function.
15913 (thread_db_load_search): Handle $sdir, ignore $pdir.
15914 Remove trying of system directories if search of
15915 libthread-db-search-path fails, that is now done via $sdir.
15917 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
15919 * server.c (handle_query): Add EnableDisableTracepoints to the list
15920 of supported features.
15921 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
15923 (cmd_qtenable_disable): New.
15924 (cmd_qtstart): Install tracepoints even if disabled.
15925 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
15926 receiving a QTEnable or QTDisable packet.
15927 (gdb_collect): Skip data collection if fast tracepoint is disabled.
15928 (ust_marker_to_static_tracepoint): Do not ignore disabled static
15930 (gdb_probe): Skip data collection if static tracepoint is disabled.
15932 2011-05-10 Doug Evans <dje@google.com>
15934 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
15936 2011-05-04 Doug Evans <dje@google.com>
15938 * linux-low.c (linux_join): Skip process lookup.
15939 * spu-low.c (spu_join): Ditto.
15940 * server.c (join_inferiors_callback): Delete.
15941 (process_serial_event): For 'D' packet (detach) call join_inferior
15944 2011-05-04 Joseph Myers <joseph@codesourcery.com>
15946 * README: Don't mention xscale*-*-linux*.
15947 * configure.srv (xscale*-*-linux*): Don't handle target.
15949 2011-04-27 Nathan Froyd <froydnj@codesourcery.com>
15951 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
15953 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
15954 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
15955 (i386_emit_void_call_2): Likewise.
15957 2011-04-26 Yao Qi <yao@codesourcery.com>
15959 * linux-low.c: Move common macros to linux-ptrace.h.
15960 Include linux-ptrace.h.
15961 * Makefile.in (linux_ptrace_h): New.
15962 (linux-low.o): Depends on linux-ptrace.h.
15964 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
15966 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
15967 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
15968 (remote_prepare): New function with most of the TCP code from ...
15969 (remote_open): ... here. Detect PORT here unconditionally. Move also
15970 setting transport_is_reliable.
15971 * server.c (run_once): New variable.
15972 (gdbserver_usage): Document it.
15973 (main): Set run_once for `--once'. Call remote_prepare. Exit after
15974 the first run if RUN_ONCE.
15975 * server.h (run_once, remote_prepare): New declarations.
15977 2011-04-19 Tom Tromey <tromey@redhat.com>
15979 * win32-low.c (handle_load_dll): Remove duplicate "the".
15981 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
15983 Remove support for old Cygwin 1.5 versions.
15984 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
15985 function to avoid warning.
15986 (win32_add_one_solib): Use cygwin_conv_path function to avoid
15989 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
15991 * gdbserver/server.h (Macro _): Define it if not available.
15993 2011-03-14 Michael Snyder <msnyder@vmware.com>
15995 * hostio.c (handle_close): Remove unnecessary null test.
15997 2011-03-10 Joel Brobecker <brobecker@adacore.com>
15999 * Makefile.in (maintainer-clean realclean distclean): Remove
16000 "make ... subdir_do" command.
16002 2011-03-10 Michael Snyder <msnyder@vmware.com>
16004 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
16006 * server.c (handle_v_run): Free alloced buffer on early return.
16008 2011-03-09 Yao Qi <yao@codesourcery.com>
16011 2011-03-04 Yao Qi <yao@codesourcery.com>
16013 * Makefile.in: Remove GNU make feature --directory.
16015 2011-03-05 Yao Qi <yao@codesourcery.com>
16017 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16018 (subdir_do): New make target. Copied from gdb/Makefile.
16019 (maintainer-clean, realclean, distclean, clean): Call corresponding
16020 make targets in common/Makefile.
16022 2011-02-11 Yao Qi <yao@codesourcery.com>
16024 * configure.ac: Call AC_PROG_RANLIB.
16025 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16026 * configure: Regenerate.
16028 2011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
16030 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
16032 2011-03-06 Yao Qi <yao@codesourcery.com>
16034 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
16036 2011-03-05 Yao Qi <yao@codesourcery.com>
16038 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16039 (subdir_do): New make target. Copied from gdb/Makefile.
16040 (maintainer-clean, realclean, distclean, clean): Call corresponding
16041 make targets in common/Makefile.
16043 2011-03-04 Yao Qi <yao@codesourcery.com>
16045 * Makefile.in: Remove GNU make feature --directory.
16047 2011-03-04 Michael Snyder <msnyder@vmware.com>
16049 * server.c (queue_stop_reply): Call xmalloc not malloc.
16051 2011-03-02 Michael Snyder <msnyder@vmware.com>
16053 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
16055 2011-02-28 Michael Snyder <msnyder@vmware.com>
16057 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
16058 (cmd_qtframe): Ditto.
16059 (cmd_qtbuffer): Ditto.
16060 (cmd_bigqtbuffer): Ditto.
16062 * utils.c (decimal2str): Initialize 'width' to nine, then
16063 don't mess with it.
16065 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
16067 * hostio.c (require_data): Free *data, not data.
16069 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
16071 * hostio.c (require_data): Use free, not xfree.
16073 2011-02-27 Michael Snyder <msnyder@vmware.com>
16075 * server.c (handle_query): Discard unused value.
16077 * hostio.c (require_data): Free malloc memory before returning
16080 2011-02-26 Michael Snyder <msnyder@vmware.com>
16082 * linux-low.c (list_threads): Call closedir for dirent.
16084 2011-02-27 Michael Snyder <msnyder@vmware.com>
16086 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
16087 a case statement falls through.
16089 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
16091 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
16094 2011-02-26 Michael Snyder <msnyder@vmware.com>
16096 * utils.c (decimal2str): Eliminate dead code and dead param.
16097 (pulongest): Drop dead param from call to decimal2str.
16100 2011-02-24 Joel Brobecker <brobecker@adacore.com>
16102 Revert the following patch (not approved yet):
16103 2011-02-21 Hui Zhu <teawater@gmail.com>
16104 * tracepoint.c (tp_printf): New function.
16105 (eval_agent_expr): Handle gdb_agent_op_printf.
16107 2011-02-21 Hui Zhu <teawater@gmail.com>
16109 * tracepoint.c (tp_printf): New function.
16110 (eval_agent_expr): Handle gdb_agent_op_printf.
16112 2011-02-18 Tom Tromey <tromey@redhat.com>
16114 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
16115 (tracepoint.o): Likewise.
16116 * tracepoint.c (enum gdb_agent_op): Use ax.def.
16117 (gdb_agent_op_names): Likewise.
16119 2011-02-18 Tom Tromey <tromey@redhat.com>
16121 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
16122 gdb_agent_op_rot>: New constants.
16123 (gdb_agent_op_names): Add pick and roll.
16124 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
16127 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
16129 * aclocal.m4: Regenerated with aclocal-1.11.1.
16131 2011-02-14 Pedro Alves <pedro@codesourcery.com>
16133 * server.c (handle_qxfer_traceframe_info): New.
16134 (qxfer_packets): Register "traceframe-info".
16135 (handle_query): Report support for qXfer:traceframe-info:read+.
16136 * tracepoint.c (match_blocktype): New.
16137 (traceframe_find_block_type): Rename to ...
16138 (traceframe_walk_blocks): ... this. Add callback filter argument,
16140 (traceframe_find_block_type): New, reimplemented on top of
16141 traceframe_walk_blocks.
16142 (build_traceframe_info_xml): New.
16143 (traceframe_read_info): New.
16144 * server.h (traceframe_read_info): Declare.
16146 2011-02-11 Yao Qi <yao@codesourcery.com>
16148 * configure.ac: Call AC_PROG_RANLIB.
16149 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16150 * configure: Regenerate.
16152 2011-02-07 Pedro Alves <pedro@codesourcery.com>
16154 * server.c (gdb_read_memory): Change return semantics to allow
16156 (handle_search_memory_1): Adjust.
16157 (process_serial_event) <'m' packet>: Handle partial transfers.
16158 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
16160 2011-01-28 Pedro Alves <pedro@codesourcery.com>
16162 * regcache.c (init_register_cache): Initialize
16163 regcache->register_status.
16164 (free_register_cache): Release regcache->register_status.
16165 (regcache_cpy): Copy register_status.
16166 (registers_to_string): Print 'x's for unavailable registers.
16167 (supply_register): Mark the register's status valid or
16168 unavailable, depending on whether a buffer was passed in or not.
16169 (supply_register_zeroed): New.
16170 (supply_regblock): Mark the registers' status valid or
16171 unavailable, depending on whether a buffer was passed in or not.
16172 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
16173 (struct regcache): New `register_status' field.
16174 (supply_register_zeroed): Declare.
16175 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
16176 supply_register_zeroed, rather than passing a NULL buffer to
16178 * tracepoint.c (fetch_traceframe_registers): Update comment.
16180 2011-01-28 Pedro Alves <pedro@codesourcery.com>
16182 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
16185 2011-01-25 Pedro Alves <pedro@codesourcery.com>
16187 * server.h (decode_xfer_write): Change prototype.
16188 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
16189 and don't extract the annex here.
16190 * server.c (decode_xfer_read): Remove `annex' parameter,
16191 and don't extract the annex here.
16192 (decode_xfer): New.
16193 (struct qxfer): New.
16194 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
16195 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
16196 (handle_qxfer_statictrace): New functions, abstracted out from
16197 handle_query, and made to use the struct qxfer interface.
16198 (handle_threads_qxfer_proper): Rename to ...
16199 (handle_qxfer_threads_proper): ... this.
16200 (handle_threads_qxfer): Rename to ...
16201 (handle_qxfer_threads): ... this. Adjust.
16202 (qxfer_packets): New array.
16203 (handle_qxfer): New function.
16204 (handle_query): Use handle_qxfer.
16206 2011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
16208 * gdbreplay.c: Shorten lines of >= 80 columns.
16209 * linux-low.c: Ditto.
16210 * linux-ppc-low.c: Ditto.
16211 * linux-s390-low.c: Ditto.
16212 * linux-sparc-low.c: Ditto.
16213 * linux-x86-low.c: Ditto.
16214 * linux-xtensa-low.c: Ditto.
16215 * mem-break.c: Ditto.
16216 * nto-low.c: Ditto.
16217 * regcache.h: Ditto.
16218 * remote-utils.c: Ditto.
16221 * thread-db.c: Ditto.
16222 * tracepoint.c: Ditto.
16224 * win32-low.h: Ditto.
16226 2011-01-05 Joel Brobecker <brobecker@adacore.com>
16228 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
16231 2011-01-01 Joel Brobecker <brobecker@adacore.com>
16233 * server.c (gdbserver_version): Update copyright year in version
16235 * gdbreplay.c (gdbreplay_version): Ditto.
16237 2010-12-29 Jie Zhang <jie.zhang@analog.com>
16239 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
16240 * linux-bfin-low.c: New file.
16241 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
16242 PT_DATA_ADDR for BFIN targets.
16243 * Makefile.in (SFILES): Add linux-bfin-low.c.
16244 (clean): Remove reg-bfin.c.
16245 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
16246 * README: Mention supported Blackfin targets.
16248 2010-12-23 Mike Frysinger <vapier@gentoo.org>
16250 * .gitignore: New file.
16252 2010-11-16 Mike Frysinger <vapier@gentoo.org>
16254 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
16256 2010-10-22 Jie Zhang <jie@codesourcery.com>
16258 * Makefile.in: Add FLAGS_TO_PASS variable.
16259 (install): Remove dependency of install-only and recursively
16260 invoke make for install-only.
16262 2010-10-04 Doug Evans <dje@google.com>
16264 * Makefile.in (uninstall): Use $(DESTDIR).
16266 2010-09-24 Pedro Alves <pedro@codesourcery.com>
16270 * linux-x86-low.c (compat_siginfo_from_siginfo)
16271 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
16272 si_code is < 0. Check for si_code == SI_TIMER before checking for
16275 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16277 * lynx-i386-low.c: New file.
16278 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
16280 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16282 * lynx-low.c (ptrace_request_to_str): Remove handling for
16283 request values that have been removed in LynxOS 5.x.
16285 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16287 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
16290 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
16292 * configure.ac: Add --enable-inprocess-agent option.
16293 * configure: Rebuilt.
16295 2010-09-06 Yao Qi <yao@codesourcery.com>
16297 * linux-low.c (linux_kill): Remove unused variable.
16298 (linux_stabilize_threads): Likewise.
16299 * server.c (start_inferior): Likewise.
16300 (queue_stop_reply_callback): Likewise.
16301 * tracepoint.c (do_action_at_tracepoint): Likewise.
16303 2010-09-06 Yao Qi <yao@codesourcery.com>
16305 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
16308 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16310 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
16312 2010-09-06 Pedro Alves <pedro@codesourcery.com>
16314 * Makefile.in (install-only): Replace $IPA_DEPFILES with
16317 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16319 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
16320 gdbserver/lynx-ppc-low.c: New files.
16321 * Makefile.in (lynx_low_h): New variable.
16322 (lynx-low.o, lynx-ppc-low.o): New rules.
16323 * configure.ac: On LynxOS, link with -lnetinet.
16324 * configure.srv: Add handling of powerpc-*-lynxos* targets.
16325 * configure: regenerate.
16327 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16329 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
16330 * configure.ac: Add check for vasprintf and vsnprintf.
16331 * configure, config.in: Regenerate.
16332 * server.h (vasprintf, vsnprintf): Add conditional declarations.
16334 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16336 * gdbreplay.c: Move include of alloca.h up, next to include of
16338 * server.h: Add include of malloc.h.
16339 * mem-break.c: Remove include of malloc.h.
16340 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
16342 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16344 * Makefile.in (memmem.o): Build with -Wno-error.
16346 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16348 * utils.c (xsnprintf): Make non-static.
16349 * server.h: Add xsnprintf declaration.
16350 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
16351 replace calls to snprintf by calls to xsnprintf throughout.
16353 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16355 * configure.ac: Add configure check for alloca.
16356 * configure, config.in: Regenerate.
16357 * server.h: Include alloca.h if it exists.
16358 * gdbreplay.c: Include alloca.h if it exists.
16360 2010-08-28 Pedro Alves <pedro@codesourcery.com>
16362 * linux-low.c (__SIGRTMIN): Define if not already defined.
16363 (linux_create_inferior): Check for __ANDROID__ rather than
16365 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
16366 are already deferred.
16367 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
16368 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
16369 stopped and already has a pending signal to report.
16370 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
16371 a pending signal to report or is moving out of a jump pad.
16372 (linux_init_signals): Check for __ANDROID__ rather than
16375 2010-08-28 Pedro Alves <pedro@codesourcery.com>
16377 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
16378 debug_threads check. Avoid a linear search when not doing debug
16381 2010-08-27 Pedro Alves <pedro@codesourcery.com>
16383 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
16384 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
16385 (struct file_handler) <fd>: Change type to gdb_fildes_t.
16386 (process_event): Change local fd's type to gdb_fildes_t.
16387 (create_file_handler): Adjust prototype.
16388 (delete_file_handler): Adjust prototype.
16389 (handle_file_event): Adjust prototype. Use pfildes.
16390 (create_file_event): Adjsut prototype.
16391 * remote-utils.c (remote_desc, listen_desc): Change type to
16393 * server.h: New gdb_fildes_t typedef.
16394 [USE_WIN32API]: Include winsock2.h.
16395 (delete_file_handler, add_file_handler): Adjust prototypes.
16396 (pfildes): Declare.
16397 * utils.c (pfildes): New.
16399 2010-08-27 Pedro Alves <pedro@codesourcery.com>
16401 * configure.ac (build_warnings): Add -Wno-char-subscripts.
16402 * configure: Regenerate.
16404 2010-08-27 Pedro Alves <pedro@codesourcery.com>
16406 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
16407 (linux_done_accessing_memory): ... this.
16408 (linux_target_ops): Adjust.
16409 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
16410 * nto-low.c (nto_target_ops): Adjust comment.
16411 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
16412 * spu-low.c (spu_target_ops): Adjust comment.
16413 * target.h (target_ops): Rename unprepare_to_access_memory field
16414 to done_accessing_memory.
16415 (unprepare_to_access_memory): Rename to ...
16416 (done_accessing_memory): ... this.
16418 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16420 * linux-low.c (linux_prepare_to_access_memory): New.
16421 (linux_unprepare_to_access_memory): New.
16422 (linux_target_ops): Install them.
16423 * server.c (read_memory): Rename to ...
16424 (gdb_read_memory): ... this. Use
16425 prepare_to_access_memory/prepare_to_access_memory.
16426 (write_memory): Rename to ...
16427 (gdb_write_memory): ... this. Use
16428 prepare_to_access_memory/prepare_to_access_memory.
16429 (handle_search_memory_1): Adjust.
16430 (process_serial_event): Adjust.
16431 * target.h (struct target_ops): New fields
16432 prepare_to_access_memory and unprepare_to_access_memory.
16433 (prepare_to_access_memory, unprepare_to_access_memory): New.
16434 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
16435 prepare_to_access_memory/prepare_to_access_memory.
16436 * nto-low.c (nto_target_ops): Adjust.
16437 * spu-low.c (spu_target_ops): Adjust.
16438 * win32-low.c (win32_target_ops): Adjust.
16440 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16442 * Makefile.in (WARN_CFLAGS): Get it from configure.
16443 (WERROR_CFLAGS): New.
16444 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
16445 * configure.ac: Introduce --enable-werror, which adds -Werror to
16446 the compiler command line. Enabled by default. Disable with
16447 --disable-werror. Add -Wdeclaration-after-statement
16448 Wpointer-arith and -Wformat-nonliteral to warning flags.
16449 * configure: Regenerate.
16451 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16453 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
16455 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16457 * gdbreplay.c (remote_error): New.
16459 (expect): Use gdbchar. Check for error reading from GDB.
16460 Clarify sync error output.
16461 (play): Check for errors writing to GDB.
16462 * linux-low.c (sigchld_handler): Really ignore `write' errors.
16463 * remote-utils.c (getpkt): Check for errors writing to the remote
16466 2010-08-25 Pedro Alves <pedro@codesourcery.com>
16468 * linux-low.c (linux_wait_1): Move non-debugging code out of
16469 `debug_threads' control.
16471 2010-08-25 Pedro Alves <pedro@codesourcery.com>
16473 * linux-low.c (linux_wait_1): Don't set last_status here.
16474 * server.c (push_event, queue_stop_reply_callback): Assert we're
16475 not pushing a TARGET_WAITKIND_IGNORE event.
16476 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
16477 (myresume, handle_target_event): Set the thread's last_resume_kind
16478 and last_status from the target returned status.
16480 2010-08-25 Pedro Alves <pedro@codesourcery.com>
16484 * linux-x86-low.c (update_debug_registers_callback): New.
16485 (i386_dr_low_set_addr): Use it.
16486 (i386_dr_low_get_addr): New.
16487 (i386_dr_low_set_control): Use update_debug_registers_callback.
16488 (i386_dr_low_get_control): New.
16489 (i386_dr_low_get_status): Adjust.
16490 * linux-low.c (linux_stop_lwp): New.
16491 * linux-low.h (linux_stop_lwp): Declare.
16493 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
16494 argument instead of a i386_debug_reg_state.
16495 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
16496 a i386_debug_reg_state.
16497 (i386_insert_aligned_watchpoint): Adjust.
16498 (i386_remove_aligned_watchpoint): Adjust.
16499 (i386_low_stopped_data_address): Read the debug registers from the
16500 inferior instead of from the mirrors.
16501 * i386-low.h (struct i386_debug_reg_state): Extend comment.
16502 (i386_dr_low_get_addr): Declare.
16503 (i386_dr_low_get_control): Declare.
16504 (i386_dr_low_get_status): Change prototype.
16506 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
16507 (i386_dr_low_get_addr): New.
16508 (i386_dr_low_get_control): New.
16509 (i386_dr_low_get_status): Adjust prototype. Return
16511 (i386_initial_stuff): Clear dr_status_mirror and
16513 (i386_get_thread_context): Adjust.
16514 (i386_set_thread_context): Adjust.
16515 (i386_thread_added): Adjust.
16517 2010-08-24 Pedro Alves <pedro@codesourcery.com>
16519 * linux-low.h (linux_thread_area): Delete declaration.
16521 2010-08-11 Thomas Schwinge <thomas@codesourcery.com>
16523 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
16524 after its termination.
16526 2010-08-09 Pedro Alves <pedro@codesourcery.com>
16528 * linux-low.c (gdb_wants_lwp_stopped): Delete.
16529 (gdb_wants_all_stopped): Delete.
16530 (linux_wait_1): Don't call them.
16531 * server.c (handle_v_cont): Tag all threads as want-stopped.
16532 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
16533 stopped as "client-wants-stopped".
16535 2010-07-31 Pedro Alves <pedro@codesourcery.com>
16537 * Makefile.in (signals_h): New.
16538 (server_h): Depend on it.
16539 (server.o): Don't depend on $(signals_def).
16540 (signals.o): Depend on $(signals_def).
16542 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
16544 * Makefile.in (signals_def): New.
16545 (server_h): Append include/gdb/signals.h and signals_def.
16546 (server.o): Append signals_def.
16548 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
16550 * server.c (handle_target_event): Use target_signal_to_host for
16551 resume_info.sig initialization.
16552 * target.h (struct thread_resume) <sig>: New comment.
16554 2010-07-20 Ozkan Sezer <sezeroz@gmail.com>
16556 * server.c (handle_query): strcpy() the returned string from paddress()
16557 instead of sprintf().
16558 * utils.c (paddress): Return phex_nz().
16560 2010-07-07 Joel Brobecker <brobecker@adacore.com>
16562 * server.c (handle_v_cont): Call mourn_inferior if process
16564 (myresume): Likewise.
16566 2010-07-01 Pedro Alves <pedro@codesourcery.com>
16568 Static tracepoints, and integration with UST.
16570 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
16571 * mem-break.c (uninsert_all_breakpoints)
16572 (reinsert_all_breakpoints): New.
16573 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
16574 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
16575 (gdb_agent_ust_loaded, helper_thread_id)
16576 (gdb_agent_helper_thread_id): New macros.
16577 (struct ipa_sym_addresses): Add addr_ust_loaded,
16578 addr_helper_thread_id, addr_cmd_buf.
16579 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
16580 (in_process_agent_loaded_ust): New.
16581 (write_e_ust_not_loaded): New.
16582 (maybe_write_ipa_ust_not_loaded): New.
16583 (struct collect_static_trace_data_action): New.
16584 (enum tracepoint_type) <static_tracepoint>: New.
16585 (struct tracepoint) <handle>: Mention static tracepoints.
16586 (struct static_tracepoint_ctx): New.
16587 (CMD_BUF_SIZE): New.
16588 (add_tracepoint_action): Handle static tracepoint actions.
16589 (unprobe_marker_at): New.
16590 (clear_installed_tracepoints): Handle static tracepoints.
16591 (cmd_qtdp): Handle static tracepoints.
16592 (probe_marker_at): New.
16593 (cmd_qtstart): Handle static tracepoints.
16594 (response_tracepoint): Handle static tracepoints.
16595 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
16596 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
16597 (get_context_regcache): Handle static tracepoints.
16598 (do_action_at_tracepoint): Handle static tracepoint actions.
16599 (traceframe_find_block_type): Handle static trace data blocks.
16600 (traceframe_read_sdata): New.
16601 (download_tracepoints): Download static tracepoint actions.
16602 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
16603 (GDB_PROBE_NAME): New.
16605 (GET_UST_SYM): New.
16608 (ust_marker_to_static_tracepoint): New.
16610 (collect_ust_data_at_tracepoint): New.
16611 (gdb_ust_probe): New.
16612 (UNIX_PATH_MAX, SOCK_DIR): New.
16613 (gdb_ust_connect_sync_socket): New.
16614 (resume_thread, stop_thread): New.
16615 (run_inferior_command): New.
16616 (init_named_socket): New.
16617 (gdb_ust_socket_init): New.
16618 (cstr_to_hexstr): New.
16620 (first_marker, next_marker): New.
16621 (response_ust_marker): New.
16622 (cmd_qtfstm, cmd_qtsstm): New.
16623 (unprobe_marker_at, probe_marker_at): New.
16624 (cmd_qtstmat, gdb_ust_thread): New.
16625 (gdb_ust_init): New.
16626 (initialize_tracepoint_ftlib): Call gdb_ust_init.
16627 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
16628 (ST_REGENTRY): New.
16629 (x86_64_st_collect_regmap): New.
16630 (X86_64_NUM_ST_COLLECT_GREGS): New.
16631 (AMD64_RIP_REGNUM): New.
16632 (supply_static_tracepoint_registers): New.
16633 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
16634 (ST_REGENTRY): New.
16635 (i386_st_collect_regmap): New.
16636 (i386_NUM_ST_COLLECT_GREGS): New.
16637 (supply_static_tracepoint_registers): New.
16638 * server.c (handle_query): Handle qXfer:statictrace:read.
16639 <qSupported>: Report support for StaticTracepoints, and
16640 qXfer:statictrace:read features.
16641 * server.h (traceframe_read_sdata)
16642 (supply_static_tracepoint_registers): Declare.
16643 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
16644 (unpack_varlen_hex): Include in IPA build.
16645 * Makefile.in (ustlibs, ustinc): New.
16646 (IPA_OBJS): Add remote-utils-ipa.o.
16647 ($(IPA_LIB)): Link -ldl and -lpthread.
16649 (IPAGENT_CFLAGS): Add UST_CFLAGS.
16650 * config.in, configure: Regenerate.
16652 2010-06-20 Ian Lance Taylor <iant@google.com>
16653 Pedro Alves <pedro@codesourcery.com>
16655 * linux-x86-low.c (always_true): Delete.
16656 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
16657 trying to fool the compiler with always_true.
16659 2010-06-20 Pedro Alves <pedro@codesourcery.com>
16661 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
16662 conditions in gdbserver.
16664 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
16666 * spu-low.c (spu_read_memory): Wrap around local store limit.
16667 (spu_write_memory): Likewise.
16669 2010-06-15 Pedro Alves <pedro@codesourcery.com>
16671 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
16672 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
16674 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
16676 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
16677 uses with LONGEST uses.
16679 2010-06-14 Stan Shebs <stan@codesourcery.com>
16680 Pedro Alves <pedro@codesourcery.com>
16684 * linux-x86-low.c: Include limits.h.
16686 (always_true): New.
16689 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
16690 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
16691 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
16692 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
16693 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
16694 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
16695 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
16696 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
16697 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
16698 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
16699 (amd64_emit_void_call_2): New.
16700 (amd64_emit_ops): New.
16701 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
16702 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
16703 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
16704 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
16705 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
16706 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
16707 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
16708 (i386_emit_call, i386_emit_reg, i386_emit_pop)
16709 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
16710 (i386_emit_stack_adjust, i386_emit_int_call_1)
16711 (i386_emit_void_call_2): New.
16712 (i386_emit_ops): New.
16713 (x86_emit_ops): New.
16714 (the_low_target): Install x86_emit_ops.
16715 * server.h (struct emit_ops): New.
16716 (get_raw_reg_func_addr): Declare.
16717 (current_insn_ptr, emit_error): Declare.
16718 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
16719 (set_trace_state_variable_value): New defines.
16720 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
16721 addr_get_trace_state_variable_value and
16722 addr_set_trace_state_variable_value.
16723 (symbol_list): New fields for get_raw_reg,
16724 get_trace_state_variable_value and set_trace_state_variable_value.
16725 (condfn): New typedef.
16726 (struct tracepoint): New field `compiled_cond'.
16727 (do_action_at_tracepoint): Clear compiled_cond.
16728 (get_trace_state_variable_value, set_trace_state_variable_value):
16730 (condition_true_at_tracepoint): If there's a compiled condition,
16732 (current_insn_ptr, emit_error): New globals.
16733 (struct bytecode_address): New.
16734 (get_raw_reg_func_addr): New.
16735 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
16736 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
16737 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
16738 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
16739 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
16740 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
16741 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
16742 (compile_tracepoint_condition, compile_bytecodes): New.
16743 * target.h (emit_ops): Forward declare.
16744 (struct target_ops): New field emit_ops.
16745 (target_emit_ops): New.
16746 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
16747 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
16748 * linux-low.c (linux_emit_ops): New.
16749 (linux_target_ops): Install it.
16750 * linux-low.h (struct linux_target_ops): New field emit_ops.
16752 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
16754 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
16755 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
16757 2010-06-01 Pedro Alves <pedro@codesourcery.com>
16758 Stan Shebs <stan@codesourcery.com>
16760 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
16761 (all): Depend on $(extra_libraries).
16762 (install-only): Install the IPA.
16763 (IPA_OBJS, IPA_LIB): New.
16764 (clean): Remove the IPA lib.
16765 (IPAGENT_CFLAGS): New.
16766 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
16767 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
16768 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
16769 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
16770 * configure.ac: Check for atomic builtins support in the compiler.
16771 (IPA_DEPFILES, extra_libraries): Define.
16772 * configure.srv (ipa_obj): Add description.
16773 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
16774 (i[34567]86-*-linux*): Set ipa_obj.
16775 (x86_64-*-linux*): Set ipa_obj.
16776 * linux-low.c (stabilizing_threads): New.
16777 (supports_fast_tracepoints): New.
16778 (linux_detach): Stabilize threads before detaching.
16779 (handle_tracepoints): Handle internal tracing breakpoints. Assert
16780 the lwp is either not stabilizing, or is moving out of a jump pad.
16781 (linux_fast_tracepoint_collecting): New.
16782 (maybe_move_out_of_jump_pad): New.
16783 (enqueue_one_deferred_signal): New.
16784 (dequeue_one_deferred_signal): New.
16785 (linux_wait_for_event_1): If moving out of a jump pad, defer
16786 pending signals to later.
16787 (linux_stabilize_threads): New.
16788 (linux_wait_1): Check if threads need moving out of jump pads, and
16790 (stuck_in_jump_pad_callback): New.
16791 (move_out_of_jump_pad_callback): New.
16792 (lwp_running): New.
16793 (linux_resume_one_lwp): Handle moving out of jump pads.
16794 (linux_set_resume_request): Dequeue deferred signals.
16795 (need_step_over_p): Also step over fast tracepoint jumps.
16796 (start_step_over): Also uninsert fast tracepoint jumps.
16797 (finish_step_over): Also reinsert fast tracepoint jumps.
16798 (linux_install_fast_tracepoint_jump): New.
16799 (linux_target_ops): Install linux_stabilize_threads and
16800 linux_install_fast_tracepoint_jump_pad.
16801 * linux-low.h (linux_target_ops) <get_thread_area,
16802 install_fast_tracepoint_jump_pad>: New fields.
16803 (struct lwp_info) <collecting_fast_tracepoint,
16804 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
16805 (linux_get_thread_area): Declare.
16806 * linux-x86-low.c (jump_insn): New.
16807 (x86_get_thread_area): New.
16808 (append_insns): New.
16809 (push_opcode): New.
16810 (amd64_install_fast_tracepoint_jump_pad): New.
16811 (i386_install_fast_tracepoint_jump_pad): New.
16812 (x86_install_fast_tracepoint_jump_pad): New.
16813 (the_low_target): Install x86_get_thread_area and
16814 x86_install_fast_tracepoint_jump_pad.
16815 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
16816 (struct fast_tracepoint_jump): New.
16817 (fast_tracepoint_jump_insn): New.
16818 (fast_tracepoint_jump_shadow): New.
16819 (find_fast_tracepoint_jump_at): New.
16820 (fast_tracepoint_jump_here): New.
16821 (delete_fast_tracepoint_jump): New.
16822 (set_fast_tracepoint_jump): New.
16823 (uninsert_fast_tracepoint_jumps_at): New.
16824 (reinsert_fast_tracepoint_jumps_at): New.
16825 (set_breakpoint_at): Use write_inferior_memory.
16826 (uninsert_raw_breakpoint): Use write_inferior_memory.
16827 (check_mem_read): Mask out fast tracepoint jumps.
16828 (check_mem_write): Mask out fast tracepoint jumps.
16829 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
16830 (set_fast_tracepoint_jump): Declare.
16831 (delete_fast_tracepoint_jump)
16832 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
16833 (reinsert_fast_tracepoint_jumps_at): Declare.
16834 * regcache.c: Don't compile many functions when building the
16835 in-process agent library.
16836 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
16837 the register buffer in the heap.
16838 (free_register_cache): If the register buffer isn't owned by the
16839 regcache, don't free it.
16840 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
16841 pre-existing register caches.
16842 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
16844 (convert_ascii_to_int): : Constify `from' parameter type.
16845 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
16846 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
16847 the needed buffer in-place.
16848 (relocate_instruction): New.
16849 * server.c (handle_query) <qSymbols>: If the target supports
16850 tracepoints, give it a chance of looking up symbols. Report
16851 support for fast tracepoints.
16852 (handle_status): Stabilize threads.
16853 (process_serial_event): Adjust.
16854 * server.h (struct fast_tracepoint_jump): Forward declare.
16855 (struct process_info) <fast_tracepoint_jumps>: New field.
16856 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
16857 (decode_X_packet, decode_M_packet): Adjust.
16858 (relocate_instruction): Declare.
16859 (in_process_agent_loaded): Declare.
16860 (tracepoint_look_up_symbols): Declare.
16861 (struct fast_tpoint_collect_status): Declare.
16862 (fast_tracepoint_collecting): Declare.
16863 (force_unlock_trace_buffer): Declare.
16864 (handle_tracepoint_bkpts): Declare.
16865 (initialize_low_tracepoint)
16866 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
16867 * target.h (struct target_ops) <stabilize_threads,
16868 install_fast_tracepoint_jump_pad>: New fields.
16869 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
16870 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
16871 [HAVE_STDINT_H]: Include stdint.h.
16872 (trace_debug_1): Rename to ...
16873 (trace_vdebug): ... this.
16874 (trace_debug): Rename to ...
16875 (trace_debug_1): ... this. Add `level' parameter.
16876 (trace_debug): New.
16877 (ATTR_USED, ATTR_NOINLINE): New.
16878 (IP_AGENT_EXPORT): New.
16879 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
16880 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
16881 (about_to_request_buffer_space, trace_buffer_is_full)
16882 (stopping_tracepoint, expr_eval_result, error_tracepoint)
16883 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
16884 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
16885 (traceframe_write_count, traceframes_created)
16886 (trace_state_variables)
16887 New renaming defines.
16888 (struct ipa_sym_addresses): New.
16889 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
16890 (symbol_list): New.
16891 (ipa_sym_addrs): New.
16892 (all_tracepoint_symbols_looked_up): New.
16893 (in_process_agent_loaded): New.
16894 (write_e_ipa_not_loaded): New.
16895 (maybe_write_ipa_not_loaded): New.
16896 (tracepoint_look_up_symbols): New.
16897 (debug_threads) [IN_PROCESS_AGENT]: New.
16898 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
16899 (UNKNOWN_SIDE_EFFECTS): New.
16900 (stop_tracing): New.
16901 (flush_trace_buffer): New.
16902 (stop_tracing_bkpt): New.
16903 (flush_trace_buffer_bkpt): New.
16904 (read_inferior_integer): New.
16905 (read_inferior_uinteger): New.
16906 (read_inferior_data_pointer): New.
16907 (write_inferior_data_pointer): New.
16908 (write_inferior_integer): New.
16909 (write_inferior_uinteger): New.
16910 (struct collect_static_trace_data_action): Delete.
16911 (enum tracepoint_type): New.
16912 (struct tracepoint) <type>: New field `type'.
16913 <actions_str, step_actions, step_actions_str>: Only include in
16915 <orig_size, obj_addr_on_target, adjusted_insn_addr>
16916 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
16917 (tracepoints): Use IP_AGENT_EXPORT.
16918 (last_tracepoint): Don't include in the IPA.
16919 (stopping_tracepoint): Use IP_AGENT_EXPORT.
16920 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
16921 (alloced_trace_state_variables): New.
16922 (trace_state_variables): Use IP_AGENT_EXPORT.
16923 (traceframe_t): Delete unused variable.
16924 (circular_trace_buffer): Don't include in the IPA.
16925 (trace_buffer_start): Delete.
16926 (struct trace_buffer_control): New.
16927 (trace_buffer_free): Delete.
16928 (struct ipa_trace_buffer_control): New.
16929 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
16930 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
16932 (trace_buffer_ctrl): New.
16933 (TRACE_BUFFER_CTRL_CURR): New.
16934 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
16935 Reimplement as macros.
16936 (trace_buffer_wrap): Delete.
16937 (traceframe_write_count, traceframe_read_count)
16938 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
16939 (struct tracepoint_hit_ctx) <type>: New field.
16940 (struct fast_tracepoint_ctx): New.
16941 (memory_barrier): New.
16943 (record_tracepoint_error): Update atomically in the IPA.
16944 (clear_inferior_trace_buffer): New.
16945 (about_to_request_buffer_space): New.
16946 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
16947 updating the same buffer.
16948 (add_tracepoint): Default the tracepoint's type to trap
16949 tracepoint, and orig_size to -1.
16950 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
16951 internal variables.
16952 (create_trace_state_variable): New parameter `gdb'. Handle it.
16953 (clear_installed_tracepoints): Clear fast tracepoint jumps.
16954 (cmd_qtdp): Handle fast tracepoints.
16955 (cmd_qtdv): Adjust.
16956 (max_jump_pad_size): New.
16957 (gdb_jump_pad_head): New.
16958 (get_jump_space_head): New.
16959 (claim_jump_space): New.
16960 (sort_tracepoints): New.
16961 (MAX_JUMP_SIZE): New.
16962 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
16964 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
16965 support. Upload fast traceframes, and delete internal IPA
16967 (stop_tracing_handler): New.
16968 (flush_trace_buffer_handler): New.
16969 (cmd_qtstop): Upload fast tracepoints.
16970 (response_tracepoint): Handle fast tracepoints.
16971 (tracepoint_finished_step): Upload fast traceframes. Set the
16972 tracepoint hit context's tracepoint type.
16973 (handle_tracepoint_bkpts): New.
16974 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
16975 type. Add comment about fast tracepoints.
16976 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
16977 non-existing action_str field.
16978 (get_context_regcache): Handle fast tracepoints.
16979 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
16981 (fast_tracepoint_from_jump_pad_address): New.
16982 (fast_tracepoint_from_ipa_tpoint_address): New.
16983 (collecting_t): New.
16984 (force_unlock_trace_buffer): New.
16985 (fast_tracepoint_collecting): New.
16987 (gdb_collect): New.
16988 (write_inferior_data_ptr): New.
16989 (target_tp_heap): New.
16990 (target_malloc): New.
16991 (download_agent_expr): New.
16993 (download_tracepoints): New.
16994 (download_trace_state_variables): New.
16995 (upload_fast_traceframes): New.
16996 (IPA_FIRST_TRACEFRAME): New.
16997 (IPA_NEXT_TRACEFRAME_1): New.
16998 (IPA_NEXT_TRACEFRAME): New.
16999 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
17000 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
17001 (gdb_jump_pad_buffer_end): New.
17002 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
17003 (initialize_tracepoint): Adjust.
17004 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
17005 buffer. Initialize the low module.
17006 * utils.c (PREFIX, TOOLNAME): New.
17007 (malloc_failure): Use PREFIX.
17008 (error): In the IPA, an error causes an exit.
17009 (fatal, warning): Use PREFIX.
17010 (internal_error): Use TOOLNAME.
17011 (NUMCELLS): Increase to 10.
17012 * configure, config.in: Regenerate.
17014 2010-06-01 Pedro Alves <pedro@codesourcery.com>
17016 * server.c (handle_query) <qSupported>: Do two passes over the
17017 qSupported string to avoid nesting strtok.
17019 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17021 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
17023 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
17024 -Wl,--dynamic-list.
17025 * configure: Regenerate.
17026 * proc-service.list: New.
17028 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17030 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
17033 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
17035 * gdbreplay.c (remote_open): Check error return from socket() call by
17036 its equality to -1 not by it being negative.
17037 * remote-utils.c (remote_open): Likewise.
17039 2010-05-23 Pedro Alves <pedro@codesourcery.com>
17041 * config.h: Regenerate.
17043 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17045 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
17046 doesn't provide PTRACE_GET_THREAD_AREA.
17048 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17050 * linux-m68k-low.c: Include <asm/ptrace.h>
17051 (ps_get_thread_area): Implement.
17053 2010-05-03 Doug Evans <dje@google.com>
17055 * event-loop.c (struct callback_event): New struct.
17056 (callback_list): New global.
17057 (append_callback_event, delete_callback_event): New functions.
17058 (process_callback): New function.
17059 (start_event_loop): Call it.
17060 * remote-utils.c (NOT_SCHEDULED): Define.
17061 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
17062 moved out of readchar.
17063 (readchar): Rewrite. Call reschedule before returning.
17064 (reset_readchar): New function.
17065 (remote_close): Call it.
17066 (process_remaining, reschedule): New functions.
17067 * server.h (callback_handler_func): New typedef.
17068 (append_callback_event, delete_callback_event): Declare.
17070 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17072 * proc-service.c (ps_pglobal_lookup): Use
17073 thread_db_look_up_one_symbol.
17074 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
17075 parameter. Use it instead of all_symbols_looked_up.
17076 * server.h (struct process_info) <all_symbols_looked_up>: Delete
17078 (all_symbols_looked_up): Don't declare.
17079 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
17080 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
17082 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
17083 Set all_symbols_looked_up here.
17084 (thread_db_look_up_one_symbol): New.
17085 (thread_db_get_tls_address): Adjust.
17086 (thread_db_load_search, try_thread_db_load_1): Always allocate the
17087 thread_db object on the heap, and tentatively set it in the
17089 (thread_db_init): Don't set all_symbols_looked_up here.
17090 * linux-low.h (thread_db_look_up_one_symbol): Declare.
17092 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17094 * linux-low.c (linux_kill, linux_detach): Adjust.
17095 (status_pending_p_callback): Remove redundant statement. Check
17096 for !TARGET_WAITIKIND_IGNORE, instead of
17097 TARGET_WAITKIND_STOPPED.
17098 (handle_tracepoints): Make sure LWP is locked. Adjust.
17099 (linux_wait_for_event_1): Adjust.
17100 (linux_cancel_breakpoints): New.
17101 (unsuspend_one_lwp): New.
17102 (unsuspend_all_lwps): New.
17103 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
17104 (send_sigstop_callback): Change return type to int, add new
17105 `except' parameter and handle it.
17106 (suspend_and_send_sigstop_callback): New.
17107 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
17108 pass them down. If SUSPEND, also increment the lwp's suspend
17110 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
17111 (need_step_over_p): Don't consider suspended LWPs.
17112 (start_step_over): Adjust.
17113 (proceed_one_lwp): Change return type to int, add new `except'
17114 parameter and handle it.
17115 (unsuspend_and_proceed_one_lwp): New.
17116 (proceed_all_lwps): Use find_inferior instead of
17118 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
17119 also decrement the suspend count of LWPs. Pass `except' down,
17120 instead of hacking its suspend count.
17121 (linux_pause_all): Add `freeze' parameter. Adjust.
17122 (linux_unpause_all): New.
17123 (linux_target_ops): Install linux_unpause_all.
17124 * server.c (handle_status): Adjust.
17125 * target.h (struct target_ops): New fields `unpause_all' and
17126 `cancel_breakpoints'. Add new parameter to `pause_all'.
17127 (pause_all): Add new `freeze' parameter.
17128 (unpause_all): New.
17129 (cancel_breakpoints): New.
17130 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
17131 cancel breakpoints.
17132 (cmd_qtstart): Pause threads.
17133 (stop_tracing): Pause threads, and cancel breakpoints.
17134 * win32-low.c (win32_target_ops): Adjust.
17136 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17138 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
17139 the inferior right away from here...
17140 (linux_wait_1): ... to here, and adjust to check the thread's
17141 last_resume_kind instead of the lwp's step or stop_expected flags.
17143 2010-05-02 Pedro Alves <pedro@codesourcery.com>
17145 * README: Use consistent `GDB' and `GDBserver' spellings.
17147 2010-05-02 Pedro Alves <pedro@codesourcery.com>
17149 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
17150 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
17151 (linux_detach_one_lwp): Assume the lwp is stopped.
17152 (any_thread_of): Delete.
17153 (linux_detach): Stop all lwps here. Don't blindly delete all
17155 (delete_lwp_callback): New.
17156 (linux_mourn): Delete all lwps of the process that is gone.
17157 (linux_wait_1): Don't delete the last lwp of the process here.
17158 * mem-break.h (mark_breakpoints_out): Declare.
17159 * mem-break.c (mark_breakpoints_out): New.
17160 (free_all_breakpoints): Use it.
17161 * server.c (handle_target_event): If the process is gone, mark
17163 * thread-db.c (struct thread_db) <create_bp>: New field.
17164 (thread_db_enable_reporting): Fix prototype. Store a thread event
17165 breakpoint reference in the thread_db struct.
17166 (thread_db_load_search): Clear the thread_db object.
17167 (try_thread_db_load_1): Ditto.
17168 (switch_to_process): New.
17169 (disable_thread_event_reporting): Use it.
17170 (remove_thread_event_breakpoints): New.
17171 (thread_db_detach, thread_db_mourn): Use it.
17173 2010-05-01 Pedro Alves <pedro@codesourcery.com>
17175 * linux-low.c (linux_enable_event_reporting): New.
17176 (linux_wait_for_event_1, handle_extended_wait): Use it.
17178 2010-04-30 Pedro Alves <pedro@codesourcery.com>
17180 * linux-low.c (linux_kill_one_lwp, linux_kill)
17181 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
17182 (send_sigstop): Take an lwp_info as parameter instead. Queue a
17183 SIGSTOP even if the LWP is stopped.
17184 (send_sigstop_callback): New.
17185 (stop_all_lwps): Use send_sigstop_callback instead.
17186 (linux_resume_one_thread): Adjust.
17187 (proceed_one_lwp): Still proceed an LWP that the client has
17188 requested to stop, if we haven't reported it as stopped yet. Make
17189 sure that LWPs the client want stopped, have a pending SIGSTOP.
17191 2010-04-26 Doug Evans <dje@google.com>
17193 * server.c (handle_general_set): Make static.
17195 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
17196 Print received char after testing for error/eof instead of before.
17197 (input_interrupt): Tweak comment.
17199 2010-04-23 Doug Evans <dje@google.com>
17201 * server.c (start_inferior): Print inferior argv if --debug.
17203 2010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
17205 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
17206 * nto-x86-low.c: Include server.h
17208 2010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
17210 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
17211 be consistent with other sources of this directory.
17212 (init_registers_amd64): Correct name of source file of this function
17215 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17217 * configure.srv (x86_64-*-mingw*): New configuration for Windows
17218 64-bit executables.
17220 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17222 * win32-i386-low.c: Add 64-bit support.
17223 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
17224 (init_registers_amd64): Declare.
17225 (mappings): Add 64-bit version of array.
17226 (init_windows_x86): New function.
17227 (the_low_target): Change init_arch field to init_windows_x86.
17229 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17231 * win32-low.c: Adapt to support also 64-bit architecture.
17232 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
17233 (get_image_name): Use SIZE_T type for local variable `done'.
17234 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
17235 (toolhelp_get_dll_name): Idem.
17236 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
17237 Use uintptr_t typecast to avoid warning.
17238 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
17239 (handle_exception): Use phex_nz to avoid warning.
17240 (win32_wait): Remove unused local variable `process'.
17242 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17244 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
17247 2010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
17249 * configure.ac: Use `ws2_32' library for srv_mingw.
17250 * configure: Regenerate.
17251 * gdbreplay.c: Include winsock2.h instead of winsock.h.
17252 * remote-utils.c: Likewise.
17254 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
17256 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
17257 if __x86_64__ is defined.
17259 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17261 * configure: Regenerate.
17263 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17265 * server.c (handle_query): Handle 'qGetTIBAddr' query.
17266 * target.h (target_ops): New get_tib_address field.
17267 * win32-low.h (win32_thread_info): Add thread_local_base field.
17268 * win32-low.c (child_add_thread): Add tlb argument.
17269 Set thread_local_base field to TLB.
17270 (get_child_debug_event): Adapt to child_add_thread change.
17271 (win32_get_tib_address): New function.
17272 (win32_target_ops): Set get_tib_address field to
17273 win32_get_tib_address.
17274 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
17276 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17278 * linux-low.c (linux_mourn): Also remove the process.
17279 * server.c (handle_target_event): Don't remove the process here.
17280 * nto-low.c (nto_mourn): New.
17281 (nto_target_ops): Install it.
17282 * spu-low.c (spu_mourn): New.
17283 (spu_target_ops): Install it.
17284 * win32-low.c (win32_mourn): New.
17285 (win32_target_ops): Install it.
17287 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17289 * server.h (buffer_xml_printf): Remove redundant `;'.
17291 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17293 * regcache.c (set_register_cache): Invalidate regcaches before
17294 changing the register cache layout.
17295 (regcache_invalidate_one): Allow a NULL regcache.
17296 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
17297 regcaches before changing the register cache layout or the target
17300 2010-04-12 H.J. Lu <hongjiu.lu@intel.com>
17302 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
17303 variable warning on Linux/x86-64.
17305 2010-04-11 Pedro Alves <pedro@codesourcery.com>
17307 GDBserver disconnected tracing support.
17309 * linux-low.c (linux_remove_process): Delete.
17310 (add_lwp): Don't set last_resume_kind here.
17311 (linux_kill): Use `mourn'.
17312 (linux_detach): Use `thread_db_detach', and `mourn'.
17313 (linux_mourn): New.
17314 (linux_attach_lwp_1): Adjust comment.
17315 (linux_attach): last_resume_kind moved the thread_info; adjust.
17316 (status_pending_p_callback): Adjust.
17317 (linux_wait_for_event_1): Adjust.
17318 (count_events_callback, select_singlestep_lwp_callback)
17319 (select_event_lwp_callback, cancel_breakpoints_callback)
17320 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
17321 (proceed_one_lwp): Adjust.
17322 (linux_async): Add debug output.
17323 (linux_thread_stopped): New.
17324 (linux_pause_all): New.
17325 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
17327 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
17328 (thread_db_free): Delete declaration.
17329 (thread_db_detach, thread_db_mourn): Declare.
17330 * thread-db.c (thread_db_init): Use thread_db_mourn.
17331 (thread_db_free): Delete, split in two.
17332 (disable_thread_event_reporting): New.
17333 (thread_db_detach): New.
17334 (thread_db_mourn): New.
17336 * server.h (struct thread_info) <last_resume_kind>: New field.
17337 <attached>: Add comment.
17338 <gdb_detached>: New field.
17339 (handler_func): Change return type to int.
17340 (handle_serial_event, handle_target_event): Ditto.
17341 (gdb_connected): Declare.
17343 (disconnected_tracing): Declare.
17344 (stop_tracing): Declare.
17346 * server.c (handle_query) <qSupported>: Report support for
17347 disconnected tracing.
17348 (queue_stop_reply_callback): Account for running threads.
17349 (gdb_wants_thread_stopped): New.
17350 (gdb_wants_all_threads_stopped): New.
17351 (gdb_reattached_process): New.
17352 (handle_status): Clear the `gdb_detached' flag of all processes.
17353 In all-stop, stop all threads.
17354 (main): Be sure to leave tfind mode. Handle disconnected tracing.
17355 (process_serial_event): If the remote connection breaks, or if an
17356 exit was forced with "monitor exit", force an event loop exit.
17357 Handle disconnected tracing on detach.
17358 (handle_serial_event): Adjust.
17359 (handle_target_event): If GDB isn't connected, forward events back
17360 to the inferior, unless the last process exited, in which case,
17361 exit gdbserver. Adjust interface.
17363 * remote-utils.c (remote_open): Don't block in accept. Instead
17364 register an event loop source on the listen socket file
17365 descriptor. Refactor bits into ...
17366 (listen_desc): ... this new global.
17367 (gdb_connected): ... this new function.
17368 (enable_async_notification): ... this new function.
17369 (handle_accept_event): ... this new function.
17370 (remote_close): Clear remote_desc.
17372 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
17374 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
17376 (mourn_inferior): Define.
17377 (target_process_qsupported): Avoid the dangling else problem.
17378 (thread_stopped): Define.
17379 (pause_all): Define.
17380 (target_waitstatus_to_string): Declare.
17381 * target.c (target_waitstatus_to_string): New.
17383 * tracepoint.c (tracing): Make extern.
17384 (disconnected_tracing): New.
17385 (stop_tracing): Make extern. Handle tracing stops due to GDB
17387 (cmd_qtdisconnected): New.
17388 (cmd_qtstatus): Report disconnected tracing status in trace reply.
17389 (handle_tracepoint_general_set): Handle QTDisconnected.
17391 * event-loop.c (event_handler_func): Change return type to int.
17392 (process_event): Bail out if the event handler wants the event
17394 (handle_file_event): Ditto.
17395 (start_event_loop): Bail out if the event handler wants the event
17398 * nto-low.c (nto_target_ops): Adjust.
17399 * spu-low.c (spu_wait): Don't remove the process here.
17400 (spu_target_ops): Adjust.
17401 * win32-low.c (win32_wait): Don't remove the process here.
17402 (win32_target_ops): Adjust.
17404 2010-04-11 Pedro Alves <pedro@codesourcery.com>
17406 * regcache.c (realloc_register_cache): Invalidate inferior's
17407 regcache before recreating it.
17409 2010-04-09 Pedro Alves <pedro@codesourcery.com>
17411 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
17413 2010-04-09 Stan Shebs <stan@codesourcery.com>
17414 Pedro Alves <pedro@codesourcery.com>
17416 * server.h (LONGEST): New.
17417 (struct thread_info) <while_stepping>: New field.
17418 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
17420 (initialize_tracepoint, handle_tracepoint_general_set)
17421 (handle_tracepoint_query, tracepoint_finished_step)
17422 (tracepoint_was_hit, release_while_stepping_state_list):
17423 (current_traceframe): Declare.
17424 * server.c (handle_general_set): Handle tracepoint packets.
17425 (read_memory): New.
17426 (write_memory): New.
17427 (handle_search_memory_1): Use read_memory.
17428 (handle_query): Report support for conditional tracepoints, trace
17429 state variables, and tracepoint sources. Handle tracepoint
17431 (main): Initialize the tracepoints module.
17432 (process_serial_event): Handle traceframe reads/writes.
17434 * linux-low.c (handle_tracepoints): New.
17435 (linux_wait_1): Call it.
17436 (linux_resume_one_lwp): Handle while-stepping.
17437 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
17438 (linux_target_ops): Install them.
17439 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
17441 * linux-x86-low.c (x86_supports_tracepoints): New.
17442 (the_low_target). Install it.
17444 * mem-break.h (delete_breakpoint): Declare.
17445 * mem-break.c (delete_breakpoint): Make external.
17447 * target.h (struct target_ops): Add `supports_tracepoints',
17448 `read_pc', and `write_pc' fields.
17449 (target_supports_tracepoints): Define.
17450 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
17453 * regcache.h (struct regcache) <registers_owned>: New field.
17454 (init_register_cache, regcache_cpy): Declare.
17455 (regcache_read_pc, regcache_write_pc): Declare.
17456 (register_cache_size): Declare.
17457 (supply_regblock): Declare.
17458 * regcache.c (init_register_cache): New.
17459 (new_register_cache): Use it.
17460 (regcache_cpy): New.
17461 (register_cache_size): New.
17462 (supply_regblock): New.
17463 (regcache_read_pc, regcache_write_pc): New.
17465 * tracepoint.c: New.
17467 * Makefile.in (OBS): Add tracepoint.o.
17468 (tracepoint.o): New rule.
17470 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
17472 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
17474 (i386-mmx.c): Likewise.
17475 (i386-mmx-linux.o): Likewise.
17476 (i386-mmx-linux.c): Likewise.
17478 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
17479 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
17480 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
17481 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
17483 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
17484 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
17485 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
17487 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
17489 * Makefile.in (clean): Updated.
17491 (i386-avx.c): Likewise.
17492 (i386-avx-linux.o): Likewise.
17493 (i386-avx-linux.c): Likewise.
17494 (amd64-avx.o): Likewise.
17495 (amd64-avx.c): Likewise.
17496 (amd64-avx-linux.o): Likewise.
17497 (amd64-avx-linux.c): Likewise.
17499 * configure.srv (srv_i386_regobj): Add i386-avx.o.
17500 (srv_i386_linux_regobj): Add i386-avx-linux.o.
17501 (srv_amd64_regobj): Add amd64-avx.o.
17502 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
17503 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
17504 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
17505 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
17506 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
17507 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
17508 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
17510 * i387-fp.c: Include "i386-xstate.h".
17512 (i387_cache_to_xsave): Likewise.
17513 (i387_xsave_to_cache): Likewise.
17514 (x86_xcr0): Likewise.
17516 * i387-fp.h (i387_cache_to_xsave): Likewise.
17517 (i387_xsave_to_cache): Likewise.
17518 (x86_xcr0): Likewise.
17520 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
17521 * linux-crisv32-low.c (target_regsets): Likewise.
17522 * linux-m68k-low.c (target_regsets): Likewise.
17523 * linux-mips-low.c (target_regsets): Likewise.
17524 * linux-ppc-low.c (target_regsets): Likewise.
17525 * linux-s390-low.c (target_regsets): Likewise.
17526 * linux-sh-low.c (target_regsets): Likewise.
17527 * linux-sparc-low.c (target_regsets): Likewise.
17528 * linux-xtensa-low.c (target_regsets): Likewise.
17530 * linux-low.c: Include <sys/uio.h>.
17531 (regsets_fetch_inferior_registers): Support nt_type.
17532 (regsets_store_inferior_registers): Likewise.
17533 (linux_process_qsupported): New.
17534 (linux_target_ops): Add linux_process_qsupported.
17536 * linux-low.h (regset_info): Add nt_type.
17537 (linux_target_ops): Add process_qsupported.
17539 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
17541 (init_registers_i386_avx_linux): New.
17542 (init_registers_amd64_avx_linux): Likewise.
17543 (xmltarget_i386_linux_no_xml): Likewise.
17544 (xmltarget_amd64_linux_no_xml): Likewise.
17545 (PTRACE_GETREGSET): Likewise.
17546 (PTRACE_SETREGSET): Likewise.
17547 (x86_fill_xstateregset): Likewise.
17548 (x86_store_xstateregset): Likewise.
17549 (use_xml): Likewise.
17550 (x86_linux_update_xmltarget): Likewise.
17551 (x86_linux_process_qsupported): Likewise.
17552 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
17553 (x86_arch_setup): Don't call init_registers_amd64_linux nor
17554 init_registers_i386_linux here. Call
17555 x86_linux_update_xmltarget.
17556 (the_low_target): Add x86_linux_process_qsupported.
17558 * server.c (handle_query): Call target_process_qsupported.
17560 * target.h (target_ops): Add process_qsupported.
17561 (target_process_qsupported): New.
17563 2010-04-03 Pedro Alves <pedro@codesourcery.com>
17565 * inferiors.c (add_thread): Set last_status kind to
17566 TARGET_WAITKIND_IGNORE.
17567 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
17568 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
17569 (linux_wait_1): Move `thread' local definition to block that uses
17570 it. Don't NULL initialize `event_child'.
17571 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
17572 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
17573 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
17575 2010-04-01 Pedro Alves <pedro@codesourcery.com>
17577 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
17578 an extended waitstatus, or by a watchpoint.
17579 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
17580 thread was stepping or has been stopped by a watchpoint.
17582 2010-04-01 Pedro Alves <pedro@codesourcery.com>
17584 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
17585 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
17586 of another, then delete the previous, and validate all
17588 (validate_inserted_breakpoint): New.
17589 (delete_disabled_breakpoints): New.
17590 (validate_breakpoints): New.
17591 (check_mem_read): Validate breakpoints before trusting their
17592 shadow. Delete disabled breakpoints.
17593 (check_mem_write): Validate breakpoints before trusting they
17594 should be inserted. Delete disabled breakpoints.
17595 * mem-break.h (validate_breakpoints):
17596 * server.c (handle_query): Validate breakpoints when we see a
17599 2010-04-01 Pedro Alves <pedro@codesourcery.com>
17601 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
17602 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
17603 if we could tell there's a GDB breakpoint at stop_pc.
17604 (need_step_over_p): Don't do a step over if we find a GDB
17605 breakpoint at the resume PC.
17607 * mem-break.c (struct raw_breakpoint): New.
17608 (enum bkpt_type): New type `gdb_breakpoint'.
17609 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
17610 fields. New field `raw'.
17611 (find_raw_breakpoint_at): New.
17612 (set_raw_breakpoint_at): Handle refcounting. Create a raw
17613 breakpoint instead.
17614 (set_breakpoint_at): Adjust.
17615 (delete_raw_breakpoint): New.
17616 (release_breakpoint): New.
17617 (delete_breakpoint): Rename to...
17618 (delete_breakpoint_1): ... this. Add proc parameter. Use
17619 release_breakpoint. Return ENOENT.
17620 (delete_breakpoint): Reimplement.
17621 (find_breakpoint_at): Delete.
17622 (find_gdb_breakpoint_at): New.
17623 (delete_breakpoint_at): Delete.
17624 (set_gdb_breakpoint_at): New.
17625 (delete_gdb_breakpoint_at): New.
17626 (gdb_breakpoint_here): New.
17627 (set_reinsert_breakpoint): Use release_breakpoint.
17628 (uninsert_breakpoint): Rename to ...
17629 (uninsert_raw_breakpoint): ... this.
17630 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
17631 (reinsert_raw_breakpoint): Change parameter type to
17633 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
17635 (check_breakpoints): Adjust. Use release_breakpoint.
17636 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
17637 (breakpoint_inserted_here): Ditto.
17638 (check_mem_read): Adjust to iterate over raw breakpoints instead.
17639 Don't trust the breakpoint's shadow if it is not inserted.
17640 (check_mem_write): Adjust to iterate over raw breakpoints instead.
17641 (delete_all_breakpoints): Adjust.
17642 (free_all_breakpoints): Mark all breakpoints as uninserted, and
17643 use delete_breakpoint_1.
17645 * mem-break.h (breakpoints_supported): Delete declaration.
17646 (set_gdb_breakpoint_at): Declare.
17647 (gdb_breakpoint_here): Declare.
17648 (delete_breakpoint_at): Delete.
17649 (delete_gdb_breakpoint_at): Declare.
17651 * server.h (struct raw_breakpoint): Forward declare.
17652 (struct process_info): New field `raw_breakpoints'.
17654 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
17657 2010-03-24 Pedro Alves <pedro@codesourcery.com>
17659 * linux-low.c (status_pending_p_callback): Fix comment.
17660 (linux_wait_for_event_1): Move most of the internal breakpoint
17661 handling from here...
17662 (linux_wait_1): ... to here.
17663 (count_events_callback): New.
17664 (select_singlestep_lwp_callback): New.
17665 (select_event_lwp_callback): New.
17666 (cancel_breakpoints_callback): New.
17667 (select_event_lwp): New.
17668 (linux_wait_1): Simplify internal breakpoint handling. Give equal
17669 priority to all LWPs that have had events that should be reported
17670 to the client. Cancel breakpoints when about to reporting the
17671 event to the client, not while stopping lwps. No longer cancel
17672 finished single-steps here.
17673 (cancel_finished_single_step): Delete.
17674 (cancel_finished_single_steps): Delete.
17676 2010-03-24 Pedro Alves <pedro@codesourcery.com>
17678 * mem-break.c (enum bkpt_type): New.
17679 (struct breakpoint): New field `type'.
17680 (set_breakpoint_at): Change return type to struct breakpoint
17681 pointer. Set type to `other_breakpoint' by default.
17682 (delete_breakpoint): Rewrite, supporting more than one breakpoint
17683 in the breakpoint list.
17684 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
17685 (reinsert_breakpoint): Rename to ...
17686 (reinsert_raw_breakpoint): ... this.
17687 (reinsert_breakpoints_at): Adjust.
17688 * mem-break.h (struct breakpoint): Declare.
17689 (set_breakpoint_at): Change return type to struct breakpoint
17692 2010-03-24 Pedro Alves <pedro@codesourcery.com>
17694 * server.c (handle_query): Assign, not compare.
17696 2010-03-24 Pedro Alves <pedro@codesourcery.com>
17698 Teach linux gdbserver to step-over-breakpoints.
17700 * linux-low.c (can_hardware_single_step): New.
17701 (supports_breakpoints): New.
17702 (handle_extended_wait): If stopping threads, read the stop pc of
17703 the new cloned LWP.
17705 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
17706 low target doesn't support retrieving the PC.
17707 (add_lwp): Set last_resume_kind to resume_continue.
17708 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
17709 (linux_attach): Don't clear stop_expected. Set the lwp's
17710 last_resume_kind to resume_stop.
17711 (linux_detach_one_lwp): Don't check for removed breakpoints.
17712 (check_removed_breakpoint): Delete.
17713 (status_pending_p): Rename to ...
17714 (status_pending_p_callback): ... this. Don't check for removed
17715 breakpoints. Don't consider threads that are stopped from GDB's
17717 (linux_wait_for_lwp): Always read the stop_pc here.
17718 (cancel_breakpoint): New.
17719 (step_over_bkpt): New global.
17720 (linux_wait_for_event_1): Implement stepping over breakpoints.
17721 (gdb_wants_lwp_stopped): New.
17722 (gdb_wants_all_stopped): New.
17723 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
17724 single-step traps here. Store the thread's last reported target
17726 (send_sigstop): Don't clear stop_expected. Always set it,
17728 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
17729 (cancel_finished_single_step): New.
17730 (cancel_finished_single_steps): New.
17731 (wait_for_sigstop): Don't cancel finished single-step traps here.
17732 (linux_resume_one_lwp): Don't check for removed breakpoints.
17733 Don't set `step' on non-hardware step archs.
17734 (linux_set_resume_request): Ignore resume_stop requests if already
17735 stopping or stopped. Set the lwp's last_resume_kind.
17736 (resume_status_pending_p): Don't check for removed breakpoints.
17737 (need_step_over_p): New.
17738 (start_step_over): New.
17739 (finish_step_over): New.
17740 (linux_resume_one_thread): Always queue a sigstop for resume_stop
17741 requests. Clear the thread's last reported target waitstatus.
17742 Don't use the `suspended' flag. Don't consider pending breakpoints.
17743 (linux_resume): Start a step-over if necessary.
17744 (proceed_one_lwp): New.
17745 (proceed_all_lwps): New.
17746 (unstop_all_lwps): New.
17747 * linux-low.h (struct lwp_info): Rewrite comment for the
17748 `suspended' flag. Add the `stop_pc' field. Delete the
17749 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
17750 Add `'last_resume_kind' and `need_step_over' fields.
17751 * inferiors.c (struct thread_info): Delete, moved elsewhere.
17752 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
17753 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
17754 (set_raw_breakpoint_at): New.
17755 (set_breakpoint_at): Rewrite to use it.
17756 (reinsert_breakpoint_handler): Delete.
17757 (set_reinsert_breakpoint): New.
17758 (reinsert_breakpoint_by_bp): Delete.
17759 (delete_reinsert_breakpoints): New.
17760 (uninsert_breakpoint): Rewrite.
17761 (uninsert_breakpoints_at): New.
17762 (reinsert_breakpoint): Rewrite.
17763 (reinsert_breakpoints_at): New.
17764 (check_breakpoints): Rewrite.
17765 (breakpoint_here): New.
17766 (breakpoint_inserted_here): New.
17767 (check_mem_read): Adjust.
17768 * mem-break.h (breakpoints_supported, breakpoint_here)
17769 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
17770 (reinsert_breakpoint_by_bp): Delete declaration.
17771 (delete_reinsert_breakpoints): Declare.
17772 (reinsert_breakpoint): Delete declaration.
17773 (reinsert_breakpoints_at): Declare.
17774 (uninsert_breakpoint): Delete declaration.
17775 (uninsert_breakpoints_at): Declare.
17776 (check_breakpoints): Adjust prototype.
17777 * server.h: Adjust include order.
17778 (struct thread_info): Declare here. Add a `last_status' field.
17780 2010-03-23 Michael Snyder <msnyder@vmware.com>
17782 * server.c (crc32): New function.
17783 (handle_query): Add handling for 'qCRC:' request.
17785 2010-03-23 Pedro Alves <pedro@codesourcery.com>
17787 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
17788 lwp had been stopped by a watchpoint.
17790 2010-03-16 Pedro Alves <pedro@codesourcery.com>
17792 * server.h (internal_error): Declare.
17793 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
17794 * utils.c (internal_error): New function.
17796 2010-03-15 Andreas Schwab <schwab@redhat.com>
17798 * configure.srv: Fix typo setting srv_regobj.
17800 2010-03-15 Pedro Alves <pedro@codesourcery.com>
17802 * linux-low.c (fetch_register): Avoid passing a non string literal
17804 (usr_store_inferior_registers): Ditto.
17806 2010-03-14 Pedro Alves <pedro@codesourcery.com>
17808 * linux-low.c (linux_write_memory): Bail out early if peeking
17811 2010-03-14 Pedro Alves <pedro@codesourcery.com>
17813 * linux-low.h (struct lwp_info): New fields
17814 `stopped_by_watchpoint' and `stopped_data_address'.
17815 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
17816 here, and cache them in the lwp object.
17817 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
17819 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
17821 (linux_stopped_by_watchpoint): Rewrite.
17822 (linux_stopped_data_address): Rewrite.
17824 2010-03-06 Simo Melenius <simo.melenius@iki.fi>
17826 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
17827 switching the current inferior, not before.
17829 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
17831 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
17832 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
17833 i386-linux.c and amd64-linux.c.
17834 (reg-i386.o): Removed.
17835 (reg-i386.c): Likewise.
17836 (reg-i386-linux.o): Likewise.
17837 (reg-i386-linux.c): Likewise.
17838 (reg-x86-64.o): Likewise.
17839 (reg-x86-64.c): Likewise.
17840 (reg-x86-64-linux.o): Likewise.
17841 (reg-x86-64-linux.c): Likewise.
17843 (i386.c): Likewise.
17844 (i386-linux.o): Likewise.
17845 (i386-linux.c): Likewise.
17846 (amd64.o): Likewise.
17847 (amd64.c): Likewise.
17848 (amd64-linux.o): Likewise.
17849 (amd64-linux.c): Likewise.
17851 * configure.srv (srv_i386_regobj): New.
17852 (srv_i386_linux_regobj): Likewise.
17853 (srv_amd64_regobj): Likewise.
17854 (srv_amd64_linux_regobj): Likewise.
17855 (srv_i386_32bit_xmlfiles): Likewise.
17856 (srv_i386_64bit_xmlfiles): Likewise.
17857 (srv_i386_xmlfiles): Likewise.
17858 (srv_amd64_xmlfiles): Likewise.
17859 (srv_i386_linux_xmlfiles): Likewise.
17860 (srv_amd64_linux_xmlfiles): Likewise.
17861 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
17862 srv_xmlfiles to $srv_i386_xmlfiles.
17863 (i[34567]86-*-mingw32ce*): Likewise.
17864 (i[34567]86-*-mingw*): Likewise.
17865 (i[34567]86-*-nto*): Likewise.
17866 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
17867 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
17868 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
17869 (x86_64-*-linux*): Likewise.
17871 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
17872 (init_registers_amd64_linux): New.
17873 (x86_arch_setup): Replace init_registers_x86_64_linux with
17874 init_registers_amd64_linux.
17876 2010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
17878 * configure.ac: Check for libdl. If it is not available link against
17879 static libthread_db.
17880 * configure: Regenerate.
17882 2010-02-22 Pedro Alves <pedro@codesourcery.com>
17886 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
17887 handing a read watchpoint.
17888 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
17890 2010-02-12 Doug Evans <dje@google.com>
17892 * linux-low.c (linux_supports_tracefork_flag): Document.
17893 (linux_look_up_symbols): Add comment.
17895 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
17897 * regcache.c (supply_register): Clear regcache if buf is NULL.
17899 2010-02-02 Nicolas Roche <roche@sourceware.org>
17900 Joel Brobecker <brobecker@adacore.com>
17902 * inferiors.c (find_inferior): Add function documentation.
17903 (unloaded_dll): Handle the case where the unloaded dll has not
17904 been previously registered in the dll list.
17906 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
17908 * linux-arm-low.c (thumb_breakpoint_len): Delete.
17909 (thumb2_breakpoint): New.
17910 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
17912 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
17914 * linux-low.c (get_stop_pc): Check for SIGTRAP.
17915 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
17918 2010-01-21 Pedro Alves <pedro@codesourcery.com>
17920 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
17922 2010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
17924 * linux-s390-low.c (s390_collect_ptrace_register)
17925 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
17927 2010-01-21 Doug Evans <dje@google.com>
17929 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
17930 (PTRACE_ARG4_TYPE): New macro.
17931 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
17932 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
17933 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
17934 (usr_store_inferior_registers): Ditto.
17935 (linux_read_memory, linux_write_memory): Ditto.
17936 (linux_test_for_tracefork): Ditto.
17938 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
17939 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
17941 2010-01-21 Pedro Alves <pedro@codesourcery.com>
17943 * proc-service.c (ps_lgetregs): Don't refetch registers from the
17946 2010-01-21 Pedro Alves <pedro@codesourcery.com>
17948 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
17949 prototype to take a regcache. Adjust.
17951 2010-01-20 Pedro Alves <pedro@codesourcery.com>
17953 * regcache.h (struct thread_info): Forward declare.
17954 (struct regcache): New.
17955 (new_register_cache): Adjust prototype.
17956 (get_thread_regcache): Declare.
17957 (free_register_cache): Adjust prototype.
17958 (registers_to_string, registers_from_string): Ditto.
17959 (supply_register, supply_register_by_name, collect_register)
17960 (collect_register_as_string, collect_register_by_name): Ditto.
17961 * regcache.c (struct inferior_regcache_data): Delete.
17962 (get_regcache): Rename to ...
17963 (get_thread_regcache): ... this. Adjust. Switch inferior before
17964 fetching registers.
17965 (regcache_invalidate_one): Adjust.
17966 (regcache_invalidate): Fix prototype.
17967 (new_register_cache): Return the new register cache.
17968 (free_register_cache): Change prototype.
17969 (realloc_register_cache): Adjust.
17970 (registers_to_string): Change prototype to take a regcache. Adjust.
17971 (registers_from_string): Ditto.
17972 (register_data): Ditto.
17973 (supply_register): Ditto.
17974 (supply_register_by_name): Ditto.
17975 (collect_register): Ditto.
17976 (collect_register_as_string): Ditto.
17977 (collect_register_by_name): Ditto.
17978 * server.c (process_serial_event): Adjust.
17979 * linux-low.h (regset_fill_func, regset_store_func): Change
17981 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
17983 * linux-low.c (get_stop_pc): Adjust.
17984 (check_removed_breakpoint): Adjust.
17985 (linux_wait_for_event): Adjust.
17986 (linux_resume_one_lwp): Adjust.
17987 (fetch_register): Add regcache parameter. Adjust.
17988 (usr_store_inferior_registers): Ditto.
17989 (regsets_fetch_inferior_registers): Ditto.
17990 (regsets_store_inferior_registers): Ditto.
17991 (linux_fetch_registers, linux_store_registers): Ditto.
17992 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
17994 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
17996 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
17997 prototype to take a regcache.
17998 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
17999 * remote-utils.c (convert_ascii_to_int, outreg)
18000 (prepare_resume_reply): Change prototype to take a regcache.
18002 * target.h (struct target_ops) <fetch_registers, store_registers>:
18003 Change prototype to take a regcache.
18004 (fetch_inferior_registers, store_inferior_registers): Change
18005 prototype to take a regcache. Adjust.
18006 * proc-service.c (ps_lgetregs): Adjust.
18007 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
18008 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
18009 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
18010 take a regcache. Adjust.
18011 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
18012 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
18013 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
18014 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
18015 * linux-cris-low.c (cris_get_pc, cris_set_pc)
18016 (cris_cannot_fetch_register):
18017 (cris_breakpoint_at): Change prototype to take a regcache.
18019 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
18020 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
18021 to take a regcache. Adjust.
18022 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
18024 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
18025 take a regcache. Adjust.
18026 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
18027 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
18028 (m68k_set_pc): Change prototype to take a regcache. Adjust.
18029 * linux-mips-low.c (mips_get_pc):
18030 (mips_set_pc): Change prototype to take a regcache. Adjust.
18031 (mips_reinsert_addr): Adjust.
18032 (mips_collect_register): Change prototype to take a regcache.
18034 (mips_supply_register):
18035 (mips_collect_register_32bit, mips_supply_register_32bit)
18036 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
18037 (mips_store_fpregset): Ditto.
18038 * linux-ppc-low.c (ppc_supply_ptrace_register)
18039 (ppc_supply_ptrace_register): Ditto.
18040 (parse_spufs_run): Adjust.
18041 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
18042 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
18043 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
18044 take a regcache. Adjust.
18045 * linux-s390-low.c (s390_collect_ptrace_register)
18046 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
18047 (s390_set_pc): Change prototype to take a regcache. Adjust.
18048 (s390_arch_setup): Adjust.
18049 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
18050 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
18051 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
18052 (sparc_fill_gregset, sparc_store_gregset_from_stack)
18053 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
18055 (sparc_breakpoint_at): Adjust.
18056 * linux-xtensa-low.c (xtensa_fill_gregset):
18057 (xtensa_store_gregset):
18058 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
18059 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
18060 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
18061 prototype to take a regcache. Adjust.
18062 * win32-arm-low.c (arm_fetch_inferior_register)
18063 (arm_store_inferior_register): Change prototype to take a
18065 * win32-i386-low.c (i386_fetch_inferior_register)
18066 (i386_store_inferior_register): Change prototype to take a
18068 * win32-low.c (child_fetch_inferior_registers)
18069 (child_store_inferior_registers): Change prototype to take a
18071 (win32_wait): Adjust.
18072 (win32_fetch_inferior_registers): Change prototype to take a
18074 (win32_store_inferior_registers): Adjust.
18075 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
18076 store_inferior_register>: Change prototype to take a regcache.
18078 2010-01-20 Doug Evans <dje@google.com>
18080 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
18082 (linux_wait_for_event1, linux_init_signals): Ditto.
18083 (W_STOPCODE): Provide definition if missing.
18085 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
18087 * linux-low.c (linux_core_of_thread): New.
18088 (compare_ints, show_process, list_threads): New.
18089 (linux_qxfer_osdata): Report threads and cores.
18090 (linux_target_op): Register linux_core_of_thread.
18091 * remote-utils.c (prepare_resume_reply): Report the core.
18092 (buffer_xml_printf): Support %d specifier.
18093 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
18095 (handle_query): Handle qXfer:threads. Announce availability
18097 * target.h (struct target_ops): New field core_of_thread.
18099 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
18101 * Makefile.in (clean): Remove new generated files.
18102 (reg-s390.o, reg-s390.c): Remove rules.
18103 (reg-s390x.o, reg-s390x.c): Likewise.
18104 (s390-linux32.o, s390-linux32.c): Add rules.
18105 (s390-linux64.o, s390-linux64.c): Likewise.
18106 (s390x-linux64.o, s390x-linux64.c): Likewise.
18107 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
18108 * linux-s390-low.c: Include <elf.h>.
18109 (HWCAP_S390_HIGH_GPRS): Define if undefined.
18110 (init_registers_s390): Remove prototype.
18111 (init_registers_s390x): Likewise.
18112 (init_registers_s390_linux32): Add prototype.
18113 (init_registers_s390_linux64): Likewise.
18114 (init_registers_s390x_linux64): Likewise.
18115 (s390_num_regs_3264): New define.
18116 (s390_regmap_3264): New global variable.
18117 (s390_cannot_fetch_register): Remove obsolete check.
18118 (s390_cannot_store_register): Likewise.
18119 (s390_collect_ptrace_register): Handle upper/lower register halves.
18120 (s390_supply_ptrace_register): Likewise.
18121 (s390_fill_gregset): Update to register number changes.
18122 (s390_get_hwcap): New routine.
18123 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
18124 Install appropriate regmap and register set.
18126 2010-01-01 Joel Brobecker <brobecker@adacore.com>
18128 * server.c (gdbserver_version): Update copyright year to 2010.
18129 * gdbreplay.c (gdbreplay_version): Likewise.
18131 2009-12-28 Doug Evans <dje@google.com>
18133 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
18134 elf/external.h. Include <elf.h> instead but only if necessary.
18136 2009-12-28 Pedro Alves <pedro@codesourcery.com>
18138 * linux-low.c (linux_remove_process): Remove `detaching'
18139 parameter. Don't release/detach from thread_db here.
18140 (linux_kill): Release/detach from thread_db here, ...
18141 (linux_detach): ... and here, before actually detaching.
18142 (linux_wait_1): ... and here, when a process exits.
18143 * thread-db.c (any_thread_of): New.
18144 (thread_db_free): Switch the current inferior to a thread of the
18147 2009-12-21 Doug Evans <dje@google.com>
18149 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
18151 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
18152 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
18153 warning ifndef __NR_tkill. Move setting of errno there too.
18154 Delete unnecessary resetting of errno after syscall.
18155 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
18157 * configure.ac: Check for dladdr.
18158 * config.in: Regenerate.
18159 * configure: Regenerate.
18160 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
18161 (try_thread_db_load): Update.
18163 * linux-low.c (my_waitpid): Delete unnecessary prototype.
18165 2009-12-18 Doug Evans <dje@google.com>
18167 * event-loop.c: Include unistd.h if it exists.
18169 * linux-low.c (my_waitpid): Move definition away from being in
18170 between linux_tracefork_child/linux_test_for_tracefork.
18172 * gdb_proc_service.h (psaddr_t): Fix type.
18173 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
18174 signature to match glibc.
18176 2009-12-16 Doug Evans <dje@google.com>
18178 * linux-low.c (linux_read_memory): Fix argument to read.
18180 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18182 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
18183 events, don't leave current_inferior pointing at null.
18185 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18187 * win32-low.c (LOG): Delete.
18188 (OUTMSG): Output to stderr.
18189 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
18190 on compile time LOG macro.
18191 (win32_wait): Fix debug output.
18193 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18195 * win32-low.c (win32_add_one_solib): If the dll name is
18196 "ntdll.dll", prepend the system directory to the dll path.
18198 2009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
18200 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
18202 2009-11-17 Nathan Sidwell <nathan@codesourcery.com>
18203 Vladimir Prus <vladimir@codesourcery.com>
18205 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
18206 * configure.ac: Check for __mcoldfire__ and set
18207 gdb_cv_m68k_is_coldfire.
18208 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
18209 reg-cf.o and reg-m68k.o.
18210 * configure: Regenerated.
18212 2009-11-16 Pedro Alves <pedro@codesourcery.com>
18214 * linux-low.c (linux_remove_process): Add `detaching' parameter.
18215 Pass it to thread_db_free.
18216 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
18217 proper `detaching' argument to linux_remove_process.
18218 * linux-low.h (thread_db_free): Add `detaching' parameter.
18219 * thread-db.c (thread_db_init): Pass false as `detaching' argument
18221 (thread_db_free): Add `detaching' parameter. Only
18222 call td_ta_clear_event if detaching from process.
18224 2009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
18226 * thread-db.c (thread_db_free): Fix typo.
18228 2009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
18231 * thread-db.c (thread_db_free): Call td_ta_clear_event.
18233 2009-11-03 Nathan Sidwell <nathan@codesourcery.com>
18235 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
18236 with an i686 compiler.
18237 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
18239 * configure: Rebuilt.
18241 2009-10-29 Sandra Loosemore <sandra@codesourcery.com>
18245 * server.c (handle_search_memory_1): Correct read_addr initialization
18246 in loop for searching subsequent chunks.
18248 2009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
18250 * configure.ac: New --with-libthread-db option.
18251 * thread-db.c: Allow direct dependence on libthread_db.
18252 (thread_db_free): Adjust.
18253 * config.in: Regenerate.
18254 * configure: Likewise.
18256 2009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
18259 * thread-db.c (attach_thread): New function.
18260 (maybe_attach_thread): Return success/failure.
18261 (find_new_threads_callback): Adjust.
18262 (thread_db_find_new_threads): Loop until no new threads.
18264 2009-10-13 Pedro Alves <pedro@codesourcery.com>
18266 * proc-service.c (ps_lgetregs): Formatting.
18268 2009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
18270 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
18271 * configure.ac: Adjust.
18272 * linux-low.h (struct process_info_private): Move members to struct
18274 (thread_db_free, thread_db_handle_monitor_command): New prototype.
18275 * linux-low.c (linux_remove_process): Adjust.
18276 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
18277 * server.c (handle_query): Move code ...
18278 (handle_monitor_command): ... here. New function.
18279 * target.h (struct target_ops): New member.
18280 * thread-db.c (struct thread_db): New.
18281 (libthread_db_search_path): New variable.
18282 (thread_db_create_event, thread_db_enable_reporting)
18283 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
18284 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
18285 (try_thread_db_load_1, dladdr_to_soname): New functions.
18286 (try_thread_db_load, thread_db_load_search): New functions.
18287 (thread_db_init): Search for libthread_db.
18288 (thread_db_free): New function.
18289 (thread_db_handle_monitor_command): Likewise.
18290 * config.in: Regenerate.
18291 * configure: Regenerate.
18293 2009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
18295 * spu-low.c (spu_kill): Wait for inferior to terminate.
18296 Call clear_inferiors.
18297 (spu_detach): Call clear_inferiors.
18299 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18301 * aclocal.m4: Regenerate.
18302 * config.in: Likewise.
18303 * configure: Likewise.
18305 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18307 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
18308 (parse_spufs_run): New function.
18309 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
18310 (ppc_breakpoint_at): Handle SPU breakpoints.
18312 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18314 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
18315 (SPUFS_MAGIC): Define.
18316 (spu_enumerate_spu_ids): New function.
18317 (linux_qxfer_spu): New function.
18318 (linux_target_ops): Install linux_qxfer_spu.
18320 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18322 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
18323 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
18324 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
18325 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
18326 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
18327 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
18328 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
18329 (init_registers_powerpc_cell32l): Add prototype.
18330 (init_registers_powerpc_cell64l): Likewise.
18331 (ppc_arch_setup): Detect Cell/B.E. architecture.
18333 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18335 * Makefile.in (datarootdir): New variable.
18337 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18339 * linux-low.c (linux_write_memory): Update debugging output.
18340 * Makefile.in (clean): Add new descriptions.
18341 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
18342 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
18343 * configure.srv: Add new files for arm*-*-linux*.
18344 * linux-arm-low.c: Add new declarations.
18345 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
18346 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
18347 (HWCAP_VFPv3D16): New.
18348 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
18349 instead of __IWMMXT__.
18350 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
18351 (arm_arch_setup): New.
18352 (target_regsets): Remove #ifdef. Add VFP regset.
18353 (the_low_target): Use arm_arch_setup.
18355 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18357 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
18358 the main thread again.
18360 2009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
18362 Adding Neutrino gdbserver.
18363 * configure: Regenerated.
18364 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
18365 * configure.srv (i[34567]86-*-nto*): New target.
18366 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
18367 * remote-utils.c [__QNX__]: Include sys/iomgr.h
18368 (nto_comctrl) [__QNX__]: New function.
18369 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
18371 2009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
18373 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
18376 2009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
18377 Pedro Alves <pedro@codesourcery.com>
18379 * win32-i386-low.c (i386_get_thread_context): Handle systems that
18380 don't support CONTEXT_EXTENDED_REGISTERS.
18381 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
18382 (the_low_target): Install them.
18383 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
18384 failing with ERROR_PIPE_NOT_CONNECTED.
18386 2009-06-30 Doug Evans <dje@google.com>
18387 Pierre Muller <muller@ics.u-strasbg.fr>
18389 Add h/w watchpoint support to x86-linux, win32-i386.
18390 * Makefile.in (SFILES): Add i386-low.c
18391 (i386_low_h): Define.
18392 (i386-low.o): Add dependencies.
18393 (linux-x86-low.o): Add i386-low.h dependency.
18394 (win32-i386-low.o): Ditto.
18395 * i386-low.c: New file.
18396 * i386-low.h: New file.
18397 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
18398 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
18399 * linux-low.c (linux_add_process): Initialize arch_private.
18400 (linux_remove_process): Free arch_private.
18401 (add_lwp): Initialize arch_private.
18402 (delete_lwp): Free arch_private.
18403 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
18405 * linux-low.h (process_info_private): New member arch_private.
18406 (lwp_info): New member arch_private.
18407 (linux_target_ops): New members new_process, new_thread,
18409 (ptid_of): New macro.
18410 * linux-x86-low.c: Include stddef.h, i386-low.h.
18411 (arch_process_info): New struct.
18412 (arch_lwp_info): New struct.
18413 (x86_linux_dr_get, x86_linux_dr_set): New functions.
18414 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18415 (i386_dr_low_get_status): New function.
18416 (x86_insert_point, x86_remove_point): New functions.
18417 (x86_stopped_by_watchpoint): New function.
18418 (x86_stopped_data_address): New function.
18419 (x86_linux_new_process, x86_linux_new_thread): New functions.
18420 (x86_linux_prepare_to_resume): New function.
18421 (the_low_target): Add entries for insert_point, remove_point,
18422 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
18424 * server.c (debug_hw_points): New global.
18425 (monitor_show_help): Document set debug-hw-points.
18426 (handle_query): Process "set debug-hw-points".
18427 * server.h (debug_hw_points): Declare.
18428 (paddress): Declare.
18429 * utils.c (NUMCELLS, CELLSIZE): New macros.
18430 (get_sell, xsnprintf, paddress): New functions.
18431 * win32-arm-low.c (the_low_target): Add entries for insert_point,
18432 remove_point, stopped_by_watchpoint, stopped_data_address.
18433 * win32-i386-low.c: Include i386-low.h.
18434 (debug_reg_state): Replaces dr.
18435 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18436 (i386_dr_low_get_status): New function.
18437 (i386_insert_point, i386_remove_point): New functions.
18438 (i386_stopped_by_watchpoint): New function.
18439 (i386_stopped_data_address): New function.
18440 (i386_initial_stuff): Update.
18441 (get_thread_context,set_thread_context,i386_thread_added): Update.
18442 (the_low_target): Add entries for insert_point,
18443 remove_point, stopped_by_watchpoint, stopped_data_address.
18444 * win32-low.c (win32_insert_watchpoint): New function.
18445 (win32_remove_watchpoint): New function.
18446 (win32_stopped_by_watchpoint): New function.
18447 (win32_stopped_data_address): New function.
18448 (win32_target_ops): Add entries for insert_watchpoint,
18449 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
18450 * win32-low.h (win32_target_ops): New members insert_point,
18451 remove_point, stopped_by_watchpoint, stopped_data_address.
18453 2009-06-25 Pedro Alves <pedro@codesourcery.com>
18455 * server.c (process_serial_event): Re-return unsupported, not
18456 error, if the type isn't recognized. Re-allow supporting only
18457 insert or remove packets. Also call require_running for
18458 breakpoints. Add missing break statement to default case. Tidy.
18459 * target.h (struct target_ops): Rename insert_watchpoint to
18460 insert_point, and remove_watchpoint to remove_point.
18462 * linux-low.h (struct linux_target_ops): Likewise.
18463 * linux-low.c (linux_insert_watchpoint): Rename to ...
18464 (linux_insert_point): ... this. Adjust.
18465 (linux_remove_watchpoint): Rename to ...
18466 (linux_remove_point): ... this. Adjust.
18467 (linux_target_ops): Adjust.
18468 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
18469 (cris_insert_point): ... this.
18470 (cris_remove_watchpoint): Rename to ...
18471 (cris_remove_point): ... this.
18472 (the_low_target): Adjust.
18474 2009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
18476 * server.c (handle_v_kill): Pass signal_pid to
18477 kill_inferior if multi_process is zero.
18479 2009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
18481 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
18482 * target.h (target_ops): Comment for *_watchpoint to make it clear
18483 the functions can get types '0' and '1'.
18485 2009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
18487 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
18488 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
18489 * regcache.c (get_regcache): Likewise.
18490 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
18491 * win32-low.c (child_fetch_inferior_registers): Remove check for
18494 2009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
18495 Pedro Alves <pedro@codesourcery.com>
18497 * target.h (struct target_ops) <supports_multi_process>: New
18499 (target_supports_multi_process): New.
18500 * server.c (handle_query): Even if GDB reports support, only
18501 enable multi-process if the target also supports it. Report
18502 multi-process support only if the target backend supports it.
18503 * linux-low.c (linux_supports_multi_process): New function.
18504 (linux_target_ops): Install it as target_supports_multi_process
18507 2009-05-24 Doug Evans <dje@google.com>
18509 Global renaming of find_thread_pid to find_thread_ptid.
18510 * server.h (find_thread_ptid): Renamed from find_thread_pid.
18511 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
18512 All callers updated.
18514 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
18515 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
18518 * linux-low.c (get_stop_pc): Print pc if debug_threads.
18519 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
18520 (linux_resume_one_lwp): Ditto.
18522 2009-05-23 Doug Evans <dje@google.com>
18524 * linux-low.c (linux_resume_one_lwp): Change type of first arg
18525 from struct inferior_list_entry * to struct lwp_info *.
18526 All callers updated.
18528 2009-05-13 Doug Evans <dje@google.com>
18530 * linux-x86-low.c: Don't include assert.h.
18531 (x86_siginfo_fixup): Use fatal, not assert.
18532 (x86_arch_setup): Fix comment.
18534 2009-05-12 Doug Evans <dje@google.com>
18536 Biarch support for i386/amd64 gdbserver.
18537 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
18538 Add linux-x86-low.c.
18539 (linux-i386-low.o, linux-x86-64-low.o): Delete.
18540 (linux-x86-low.o): Add.
18541 * linux-x86-64-low.c: Delete.
18542 * linux-i386-low.c: Delete.
18543 * linux-x86-low.c: New file.
18544 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
18546 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
18548 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
18549 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
18550 (linux_child_pid_to_exec_file): New function.
18551 (elf_64_header_p, elf_64_file_p): New functions.
18552 (siginfo_fixup): New function.
18553 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
18554 give target a chance to convert layout.
18555 * linux-low.h (linux_target_ops): New member siginfo_fixup.
18556 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
18558 2009-05-07 Doug Evans <dje@google.com>
18560 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
18561 (regsets_store_inferior_registers): Ditto.
18563 2009-05-06 Pedro Alves <pedro@codesourcery.com>
18567 * linux-low.c (must_set_ptrace_flags): Delete.
18568 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
18570 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
18571 `lwp->must_set_ptrace_flags' instead.
18572 (linux_wait_for_event_1): Set ptrace options here.
18573 (linux_wait_1): ... not here.
18575 2009-04-30 Doug Evans <dje@google.com>
18577 * inferiors.c (started_inferior_callback): New function.
18578 (attached_inferior_callback): New function.
18579 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
18580 * server.c (print_started_pid, print_attached_pid): New functions.
18581 (detach_or_kill_for_exit): New function.
18582 (main): Call it instead of for_each_inferior (kill_inferior_callback).
18583 * server.h (have_started_inferiors_p): Declare.
18584 (have_attached_inferiors_p): Declare.
18586 * inferiors.c (remove_process): Fix memory leak, free process.
18587 * linux-low.c (linux_remove_process): New function.
18588 (linux_kill): Call it instead of remove_process.
18589 (linux_detach, linux_wait_1): Ditto.
18591 2009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
18593 * configure.srv: Add x86 Windows CE target.
18595 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
18597 * inferiors.c (get_thread_process): Make global.
18598 * server.h (get_thread_process): Add prototype.
18599 * thread-db.c (find_one_thread): Use get_thread_process
18600 instead of current_process.
18601 (thread_db_get_tls_address): Do not crash if called when
18602 thread layer is not yet initialized.
18604 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
18606 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
18607 * spu-low.c (current_tid): Rename to ...
18608 (current_ptid): ... this.
18609 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
18610 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
18611 ptid_get_lwp (current_ptid) instead of current_tid.
18612 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
18613 instead of current_tid. Use find_process_pid to verify pid
18614 argument is valid. Pass proper argument to remove_process.
18615 (spu_thread_alive): Compare current_ptid instead of current_tid.
18616 (spu_resume): Likewise.
18618 2009-04-02 Pedro Alves <pedro@codesourcery.com>
18620 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
18623 2009-04-01 Pedro Alves <pedro@codesourcery.com>
18625 Implement the multiprocess extensions, and add linux multiprocess
18628 * server.h (ULONGEST): Declare.
18629 (struct ptid, ptid_t): New.
18630 (minus_one_ptid, null_ptid): Declare.
18631 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
18632 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
18633 (struct inferior_list_entry): Change `id' type from unsigned from
18635 (struct sym_cache, struct breakpoint, struct
18636 process_info_private): Forward declare.
18637 (struct process_info): Declare.
18638 (current_process): Declare.
18639 (all_processes): Declare.
18640 (initialize_inferiors): Declare.
18641 (add_thread): Adjust to use ptid_t.
18642 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
18643 (add_process, remove_process, find_thread_pid): Declare.
18644 (find_inferior_id): Adjust to use ptid_t.
18645 (cont_thread, general_thread, step_thread): Change type to ptid_t.
18646 (multi_process): Declare.
18647 (push_event): Adjust to use ptid_t.
18648 (read_ptid, write_ptid): Declare.
18649 (prepare_resume_reply): Adjust to use ptid_t.
18650 (clear_symbol_cache): Declare.
18651 * inferiors.c (all_processes): New.
18652 (null_ptid, minus_one_ptid): New.
18653 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
18654 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
18655 (add_thread): Change unsigned long to ptid. Remove gdb_id
18657 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
18658 (gdb_id_to_thread): Rename to ...
18659 (find_thread_pid): ... this. Change unsigned long to ptid.
18660 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
18661 (loaded_dll, pull_pid_from_list): Adjust.
18662 (add_process, remove_process, find_process_pid)
18663 (get_thread_process, current_process, initialize_inferiors): New.
18664 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
18665 (struct target_waitstatus) <related_pid>: Ditto.
18666 (struct target_ops) <kill, detach>: Add `pid' argument. Change
18667 return type to int.
18668 (struct target_ops) <join>: Add `pid' argument.
18669 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
18670 (struct target_ops) <wait>: Add `ptid' field. Change return type
18672 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
18673 (mywait): Add `ptid' argument. Change return type to ptid_t.
18674 (target_pid_to_str): Declare.
18675 * target.c (set_desired_inferior): Adjust to use ptids.
18676 (mywait): Add new `ptid' argument. Adjust.
18677 (target_pid_to_str): New.
18678 * mem-break.h (free_all_breakpoints): Declare.
18679 * mem-break.c (breakpoints): Delelete.
18680 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
18681 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
18682 to use per-process breakpoint list.
18683 (free_all_breakpoints): New.
18684 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
18685 (symbol_cache, all_symbols_looked_up): Delete.
18687 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
18689 (prepare_resume_reply): Change ptid argument's type from unsigned
18690 long to ptid_t. Adjust. Implement W;process and X;process.
18691 (free_sym_cache, clear_symbol_cache): New.
18692 (look_up_one_symbol): Adjust to per-process symbol cache. *
18693 * server.c (cont_thread, general_thread, step_thread): Change type
18695 (attached): Delete.
18696 (multi_process): New.
18697 (last_ptid): Change type to ptid_t.
18698 (struct vstop_notif) <ptid>: Change type to ptid_t.
18699 (queue_stop_reply, push_event): Change `ptid' argument's type to
18701 (discard_queued_stop_replies): Add `pid' argument.
18702 (start_inferior): Adjust to use ptids. Adjust to mywait interface
18703 changes. Don't reference the `attached' global.
18704 (attach_inferior): Adjust to mywait interface changes.
18705 (handle_query): Adjust to use ptids. Parse GDB's qSupported
18706 features. Handle and report "multiprocess+". Handle
18708 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
18710 (handle_v_kill): New.
18711 (handle_v_stopped): Adjust to use target_pid_to_str.
18712 (handle_v_requests): Allow multiple attaches and runs when
18713 multiprocess extensions are in effect. Handle "vKill".
18714 (myresume): Adjust to use ptids.
18715 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
18716 (handle_status): Adjust to discard_queued_stop_replies interface
18718 (first_thread_of, kill_inferior_callback)
18719 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
18720 (main): Call initialize_inferiors. Adjust to use ptids, killing
18721 and detaching from all inferiors. Handle multiprocess packet
18723 * linux-low.h: Include gdb_proc_service.h.
18724 (struct process_info_private): New.
18725 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
18726 <lwpid_of>: Use ptid_get_lwp.
18727 (get_lwp_thread): Adjust.
18728 (struct lwp_info): Add `dead' member.
18729 (find_lwp_pid): Declare.
18730 * linux-low.c (thread_db_active): Delete.
18731 (new_inferior): Adjust comment.
18732 (inferior_pid): Delete.
18733 (linux_add_process): New.
18734 (handle_extended_wait): Adjust.
18735 (add_lwp): Change unsigned long to ptid.
18736 (linux_create_inferior): Add process to processes table. Adjust
18737 to use ptids. Don't set new_inferior here.
18738 (linux_attach_lwp): Rename to ...
18739 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
18740 it. Adjust to use ptids.
18741 (linux_attach_lwp): New.
18742 (linux_attach): Add process to processes table. Don't set
18744 (struct counter): New.
18745 (second_thread_of_pid_p, last_thread_of_process_p): New.
18746 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
18747 multiple processes.
18748 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
18749 processes. Remove process from process table.
18750 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
18751 to multiple processes.
18752 (any_thread_of): New.
18753 (linux_detach): Add `pid' argument, and handle it. Remove process
18754 from processes table.
18755 (linux_join): Add `pid' argument. Handle it.
18756 (linux_thread_alive): Change unsighed long argument to ptid_t.
18757 Consider dead lwps as not being alive.
18758 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
18759 threads we're not interested in.
18760 (same_lwp, find_lwp_pid): New.
18761 (linux_wait_for_lwp): Change `pid' argument's type from int to
18763 (linux_wait_for_event): Rename to ...
18764 (linux_wait_for_event_1): ... this. Change `pid' argument's type
18765 from int to ptid_t. Adjust.
18766 (linux_wait_for_event): New.
18767 (linux_wait_1): Add `ptid' argument. Change return type to
18768 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
18769 that exit from the process table.
18770 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
18772 (mark_lwp_dead): New.
18773 (wait_for_sigstop): Adjust to use ptids. If a process exits while
18774 stopping all threads, mark its main lwp as dead.
18775 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
18777 (fetch_register, usr_store_inferior_registers)
18778 (regsets_fetch_inferior_registers)
18779 (regsets_store_inferior_registers, linux_read_memory)
18780 (linux_write_memory): Inline `inferior_pid'.
18781 (linux_look_up_symbols): Adjust to use per-process
18782 `thread_db_active'.
18783 (linux_request_interrupt): Adjust to use ptids.
18784 (linux_read_auxv): Inline `inferior_pid'.
18785 (initialize_low): Don't reference thread_db_active.
18786 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
18787 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
18788 (ps_getpid): Return the pid of the current inferior.
18789 * thread-db.c (proc_handle, thread_agent): Delete.
18790 (thread_db_create_event, thread_db_enable_reporting): Adjust to
18792 (find_one_thread): Change argument type to ptid_t. Adjust to
18794 (maybe_attach_thread): Adjust to per-process data and ptids.
18795 (thread_db_find_new_threads): Ditto.
18796 (thread_db_init): Ditto.
18797 * spu-low.c (spu_create_inferior, spu_attach): Add process to
18798 processes table. Adjust to use ptids.
18799 (spu_kill, spu_detach): Adjust interface. Remove process from
18801 (spu_join, spu_thread_alive): Adjust interface.
18802 (spu_wait): Adjust interface. Remove process from processes
18803 table. Adjust to use ptids.
18804 * win32-low.c (current_inferior_tid): Delete.
18805 (current_inferior_ptid): New.
18806 (debug_event_ptid): New.
18807 (thread_rec): Take a ptid. Adjust.
18808 (child_add_thread): Add `pid' argument. Adjust to use ptids.
18809 (child_delete_thread): Ditto.
18810 (do_initial_child_stuff): Add `attached' argument. Add process to
18812 (child_fetch_inferior_registers, child_store_inferior_registers):
18814 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
18815 (win32_attach): Pass 1 to do_initial_child_stuff.
18816 (win32_kill): Adjust interface. Remove process from processes
18818 (win32_detach): Ditto.
18819 (win32_join): Adjust interface.
18820 (win32_thread_alive): Take a ptid.
18821 (win32_resume): Adjust to use ptids.
18822 (get_child_debug_event): Ditto.
18823 (win32_wait): Adjust interface. Remove exiting process from
18826 2009-04-01 Pedro Alves <pedro@codesourcery.com>
18828 Non-stop mode support.
18830 * server.h (non_stop): Declare.
18831 (gdb_client_data, handler_func): Declare.
18832 (delete_file_handler, add_file_handler, start_event_loop):
18834 (handle_serial_event, handle_target_event, push_event)
18835 (putpkt_notif): Declare.
18836 * target.h (enum resume_kind): New.
18837 (struct thread_resume): Replace `step' field by `kind' field.
18838 (TARGET_WNOHANG): Define.
18839 (struct target_ops) <wait>: Add `options' argument.
18840 <supports_non_stop, async, start_non_stop>: New fields.
18841 (target_supports_non_stop, target_async): New.
18842 (start_non_stop): Declare.
18843 (mywait): Add `options' argument.
18844 * target.c (mywait): Add `options' argument. Print child exit
18845 notifications here.
18846 (start_non_stop): New.
18847 * server.c (non_stop, own_buf, mem_buf): New globals.
18848 (struct vstop_notif): New.
18849 (notif_queue): New global.
18850 (queue_stop_reply, push_event, discard_queued_stop_replies)
18851 (send_next_stop_reply): New.
18852 (start_inferior): Adjust to use resume_kind. Adjust to mywait
18854 (attach_inferior): In non-stop mode, don't wait for the target
18856 (handle_general_set): Handle QNonStop.
18857 (handle_query): When handling qC, return the current general
18858 thread, instead of the first thread of the list.
18859 (handle_query): If the backend supports non-stop mode, include
18860 QNonStop+ in the qSupported query response.
18861 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
18863 (handle_v_attach, handle_v_run): Handle non-stop mode.
18864 (handle_v_stopped): New.
18865 (handle_v_requests): Report support for vCont;t. Handle vStopped.
18866 (myresume): Adjust to use resume_kind. Handle non-stop.
18867 (queue_stop_reply_callback): New.
18868 (handle_status): Handle non-stop mode.
18869 (main): Clear non_stop flag on reconnection. Use the event-loop.
18870 Refactor serial protocol handling from here ...
18871 (process_serial_event): ... to this new function. When GDB
18872 selects any thread, select one here. In non-stop mode, wait until
18873 GDB acks all pending events before exiting.
18874 (handle_serial_event, handle_target_event): New.
18875 * remote-utils.c (remote_open): Install remote_desc in the event
18877 (remote_close): Remove remote_desc from the event loop.
18878 (putpkt_binary): Rename to...
18879 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
18880 (putpkt_binary): New as wrapper around putpkt_binary_1.
18881 (putpkt_notif): New.
18882 (prepare_resume_reply): In non-stop mode, don't change the
18884 * event-loop.c: New.
18885 * Makefile.in (OBJ): Add event-loop.o.
18886 (event-loop.o): New rule.
18888 * linux-low.h (pid_of): Moved here.
18890 (get_lwp_thread): Use lwpid_of.
18891 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
18892 * linux-low.c (pid_of): Delete.
18893 (inferior_pid): Use lwpid_of.
18894 (linux_event_pipe): New.
18895 (target_is_async_p): New.
18897 (handle_extended_wait): Use lwpid_of.
18898 (add_lwp): Don't set lwpid field.
18899 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
18900 (linux_kill_one_lwp): If killing a running lwp, stop it first.
18901 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
18902 (linux_detach_one_lwp): If detaching from a running lwp, stop it
18903 first. Adjust to linux_wait_for_event interface changes. Use
18905 (linux_detach): Don't delete the main lwp here.
18906 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
18907 (status_pending_p): Don't consider explicitly suspended lwps.
18908 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
18909 pointer. Add OPTIONS argument. Change return type to int. Use
18910 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
18911 (linux_wait_for_event): Take an integer pid instead of a lwp_info
18912 pointer. Add status pointer argument. Return a pid instead of a
18913 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
18914 changes. In non-stop mode, don't switch to a random thread.
18915 (linux_wait): Rename to...
18916 (linux_wait_1): ... this. Add target_options argument, and handle
18917 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
18918 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
18919 clean exit and signal exit code. Don't stop all threads in
18920 non-stop mode. In all-stop mode, only stop all threads when
18921 reporting a stop to GDB. Handle explicit thread stop requests.
18922 (async_file_flush, async_file_mark): New.
18924 (send_sigstop): Use lwpid_of.
18925 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
18926 interface changes. In non-stop mode, don't switch to a random
18928 (linux_resume_one_lwp): Use lwpid_of.
18929 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
18930 (linux_resume_one_thread): ... this. Handle resume_stop. In
18931 non-stop mode, don't look for pending flag in all threads.
18932 (resume_status_pending_p): Don't consider explicitly suspended
18934 (my_waitpid): Reimplement. Emulate __WALL.
18935 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
18937 (sigchld_handler, linux_supports_non_stop, linux_async)
18938 (linux_start_non_stop): New.
18939 (linux_target_ops): Register linux_supports_non_stop, linux_async
18940 and linux_start_non_stop.
18941 (initialize_low): Install SIGCHLD handler.
18942 * thread-db.c (thread_db_create_event, find_one_thread)
18943 (thread_db_get_tls_address): Use lwpid_of.
18944 * win32-low.c (win32_detach): Adjust to use resume_kind.
18945 (win32_wait): Add `options' argument.
18946 * spu-low.c (spu_resume): Adjust to use resume_kind.
18947 (spu_wait): Add `options' argument.
18949 2009-04-01 Pedro Alves <pedro@codesourcery.com>
18951 Decouple target code from remote protocol.
18953 * target.h (enum target_waitkind): New.
18954 (struct target_waitstatus): New.
18955 (struct target_ops) <wait>: Return an unsigned long. Take a
18956 target_waitstatus pointer instead of a char pointer.
18957 (mywait): Likewise.
18958 * target.c (mywait): Change prototype to return an unsigned long.
18959 Take a target_waitstatus pointer instead of a char pointer. Adjust.
18960 * server.h (thread_from_wait, old_thread_from_wait): Delete
18962 (prepare_resume_reply): Change prototype to take a
18964 * server.c (thread_from_wait, old_thread_from_wait): Delete.
18965 (last_status, last_ptid): New.
18966 (start_inferior): Remove "statusptr" argument. Adjust. Return a
18967 pid instead of a signal.
18968 (attach_inferior): Remove "status" and "signal" parameters.
18970 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
18972 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
18973 (handle_v_requests, myresume): Remove "status" and "signal"
18974 parameters. Adjust.
18975 (handle_status): New.
18976 (main): Delete local `status'. Adjust.
18977 * remote-utils.c: Include target.h.
18978 (prepare_resume_reply): Change prototype to take a
18979 target_waitstatus. Adjust.
18981 * linux-low.c (linux_wait): Adjust to new target_ops->wait
18983 * spu-low.c (spu_wait): Adjust.
18984 * win32-low.c (enum target_waitkind, struct target_waitstatus):
18986 (win32_wait): Adjust.
18988 2009-04-01 Pedro Alves <pedro@codesourcery.com>
18990 * target.h (struct thread_resume): Delete leave_stopped member.
18991 (struct target_ops): Add a `n' argument to the `resume' callback.
18992 * server.c (start_inferior): Adjust.
18993 (handle_v_cont, myresume): Adjust.
18994 * linux-low.c (check_removed_breakpoint): Adjust to resume
18995 interface change, and to removed leave_stopped field.
18996 (resume_ptr): Delete.
18997 (struct thread_resume_array): New.
18998 (linux_set_resume_request): Add new `arg' parameter. Adjust to
18999 resume interface change.
19000 (linux_continue_one_thread, linux_queue_one_thread)
19001 (resume_status_pending_p): Check if the resume field is NULL
19002 instead of checking the leave_stopped member.
19003 (linux_resume): Adjust to the target resume interface change.
19004 * spu-low.c (spu_resume): Adjust to the target resume interface
19006 * win32-low.c (win32_detach, win32_resume): Ditto.
19008 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19010 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
19012 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
19014 (linux_continue_one_thread): Only preserve the stepping flag if
19015 there's a pending breakpoint.
19017 2009-03-31 Pedro Alves <pedro@codesourcery.com>
19019 * server.c (main): After the inferior having exited, call
19020 remote_close before exiting gdbserver.
19022 2009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
19024 Fix size of FPSCR in Power 7 processors.
19025 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
19026 (PPC_FEATURE_HAS_DFP): New #define.
19027 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
19030 2009-03-23 Pedro Alves <pedro@codesourcery.com>
19032 * server.c (handle_query) Whitespace and formatting.
19034 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19036 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
19037 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
19038 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
19039 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
19040 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
19041 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
19042 Makefile.in, configure.ac: Fix whitespace throughout.
19043 * configure: Regenerate.
19045 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19047 * inferiors.c (find_inferior): Make it safe for the callback
19048 function to delete the currently iterated inferior.
19050 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19052 * Makefile.in (linuw_low_h): Move higher.
19053 (thread-db.o): Depend on $(linux_low_h).
19055 2009-03-17 Pedro Alves <pedro@codesourcery.com>
19057 Rename "process" to "lwp" throughout.
19059 * linux-low.c (all_processes): Rename to...
19060 (all_lwps): ... this.
19061 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
19062 (add_process): Rename to ...
19063 (add_lwp): ... this. Adjust.
19064 (linux_create_inferior): Adjust.
19065 (linux_attach_lwp): Adjust.
19066 (linux_attach): Adjust.
19067 (linux_kill_one_process): Rename to ...
19068 (linux_kill_one_lwp): ... this. Adjust.
19069 (linux_kill): Adjust.
19070 (linux_detach_one_process): Rename to ...
19071 (linux_detach_one_lwp): ... this. Adjust.
19072 (linux_detach): Adjust.
19073 (check_removed_breakpoint): Adjust.
19074 (status_pending_p): Adjust.
19075 (linux_wait_for_process): Rename to ...
19076 (linux_wait_for_lwp): ... this. Adjust.
19077 (linux_wait_for_event): Adjust.
19078 (send_sigstop): Adjust.
19079 (wait_for_sigstop): Adjust.
19080 (stop_all_processes): Rename to ...
19081 (stop_all_lwps): ... this.
19082 (linux_resume_one_process): Rename to ...
19083 (linux_resume_one_lwp): ... this. Adjust.
19084 (linux_set_resume_request, linux_continue_one_thread)
19085 (linux_queue_one_thread, resume_status_pending_p)
19086 (usr_store_inferior_registers, regsets_store_inferior_registers)
19087 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19089 * linux-low.h (get_process): Rename to ...
19090 (get_lwp): ... this. Adjust.
19091 (get_thread_process): Rename to ...
19092 (get_thread_lwp): ... this. Adjust.
19093 (get_process_thread): Rename to ...
19094 (get_lwp_thread): ... this. Adjust.
19095 (struct process_info): Rename to ...
19096 (struct lwp_info): ... this.
19097 (all_processes): Rename to ...
19098 (all_lwps): ... this.
19099 * proc-service.c (ps_lgetregs): Adjust.
19100 * thread-db.c (thread_db_create_event, find_one_thread)
19101 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
19103 2009-03-14 Pedro Alves <pedro@codesourcery.com>
19105 * server.c (handle_query): Handle "qAttached".
19107 2009-03-13 Nathan Sidwell <nathan@codesourcery.com>
19109 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
19110 GPLv3, update license URL.
19112 2009-03-01 Doug Evans <dje@google.com>
19114 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
19115 (server_h): Add gdb_signals.h.
19116 (signals.o): Update.
19117 * server.h (target_signal_from_host,target_signal_to_host_p)
19118 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
19120 2009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
19122 * remote-utils.c (getpkt): Also generate remote-debug
19123 information if noack_mode is set.
19125 2009-02-06 Pedro Alves <pedro@codesourcery.com>
19127 * server.c (handle_query): Report qXfer:siginfo:read and
19128 qXfer:siginfo:write as supported and handle them.
19129 * target.h (struct target_ops) <qxfer_siginfo>: New field.
19130 * linux-low.c (linux_xfer_siginfo): New.
19131 (linux_target_ops): Set it.
19133 2009-01-26 Pedro Alves <pedro@codesourcery.com>
19135 * server.c (gdbserver_usage): Mention --remote-debug.
19136 (main): Accept '--remote-debug' switch.
19138 2009-01-18 Doug Evans <dje@google.com>
19140 * regcache.c (new_register_cache): No need to check result of xcalloc.
19141 * server.c (handle_search_memory): Back out calls to xmalloc,
19142 result is checked and error is returned to user upon failure.
19143 (handle_query): Ditto. Add more checks for result of malloc.
19144 (handle_v_cont): Check result of malloc, report error back to
19146 (handle_v_run): Ditto. Call freeargv.
19147 * server.h (freeargv): Declare.
19148 * utils.c (freeargv): New fn.
19150 2009-01-15 Doug Evans <dje@google.com>
19152 * gdbreplay.c (perror_with_name): Make arg const char *.
19153 * server.h (target_signal_to_name): Make return type const char *.
19154 * thread-db.c (thread_db_err_str): Make return type const char *.
19155 * utils.c (perror_with_name): Make arg const char *.
19157 2009-01-14 Pedro Alves <pedro@codesourcery.com>
19159 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
19160 when handling a EXIT_PROCESS_DEBUG_EVENT.
19162 2009-01-06 Joel Brobecker <brobecker@adacore.com>
19164 * gdbreplay.c (gdbreplay_version): Update copyright year.
19165 * server.c (gdbserver_version): Likewise.
19167 2009-01-05 Doug Evans <dje@google.com>
19169 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
19170 (handle_extended_wait): Improve comment.
19172 2008-12-13 Doug Evans <dje@google.com>
19174 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
19175 * server.h (ATTR_MALLOC): New macro.
19176 (xmalloc,xcalloc,xstrdup): Declare.
19177 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
19178 * inferiors.c: Ditto.
19179 * linux-low.c: Ditto.
19180 * mem-break.c: Ditto.
19181 * regcache.c: Ditto.
19182 * remote-utils.c: Ditto.
19185 * win32-low.c: Ditto.
19187 2008-12-12 Doug Evans <dje@google.com>
19189 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
19190 in debugging printf.
19192 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
19194 2008-12-09 Doug Evans <dje@google.com>
19196 * linux-low.h (struct process_info): Delete member tid, unused.
19197 * thread-db.c (find_one_thread): Update.
19198 (maybe_attach_thread): Update.
19200 2008-12-02 Pedro Alves <pedro@codesourcery.com>
19202 * target.h (struct target_ops): Add qxfer_osdata member.
19203 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
19205 (linux_qxfer_osdata): New functions.
19206 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
19208 * server.c (handle_query): Handle "qXfer:osdata:read:".
19209 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
19210 (buffer_xml_printf): New functions.
19211 * server.h (struct buffer): New.
19212 (buffer_grow_str, buffer_grow_str0): New macros.
19213 (buffer_grow, buffer_free, buffer_init, buffer_finish)
19214 (buffer_xml_printf): Declare.
19216 2008-11-24 Doug Evans <dje@google.com>
19218 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
19220 2008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
19222 * server.c (handle_v_run): Always use the supplied argument list.
19224 2008-11-19 Bob Wilson <bob.wilson@acm.org>
19226 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
19227 (xtensa_regmap_table): Add entry for scompare1.
19229 2008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
19231 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
19232 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
19233 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
19234 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
19235 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
19236 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
19237 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
19238 XML target descriptions.
19239 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
19240 when inferior is running on an ISA 2.05 or later processor. Add
19241 special case to return offset for full 64-bit slot of FPSCR when
19244 2008-11-14 Daniel Gutson <dgutson@codesourcery.com>
19246 * Makefile.in (SFILES, clean): Added sparc64 files.
19247 (reg-sparc64.o, reg-sparc64.c): New.
19248 * configure.srv (sparc*-*-linux*): New configuration.
19249 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
19250 syscall arguments for SPARC.
19251 (regsets_store_inferior_registers): Likewise.
19252 * linux-sparc-low.c: New file.
19254 2008-10-21 Doug Evans <dje@google.com>
19256 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
19257 (READLINE_DIR,READLINE_DEP): Delete.
19258 (INTERNAL_CFLAGS): Update.
19259 (LINTFLAGS): Update.
19261 2008-10-10 Pedro Alves <pedro@codesourcery.com>
19263 * server.c (handle_v_run): If GDB didn't specify an argv, use the
19264 whole argv from the last run, not just argv[0].
19266 2008-09-08 Pedro Alves <pedro@codesourcery.com>
19268 * regcache.c (new_register_cache): Return NULL if the register
19269 cache size isn't known yet.
19270 (free_register_cache): Avoid dereferencing a NULL regcache.
19272 2008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
19274 * configure.srv: Merge MIPS and MIPS64.
19276 2008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
19278 * Makefile.in (uninstall): Apply $(EXEEXT) too.
19280 2008-08-18 Luis Machado <luisgpm@br.ibm.com>
19282 * Makefile.in: Add required vsx dependencies.
19284 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
19285 Declare init_registers_powerpc_vsx32l.
19286 Declare init_registers_powerpc_vsx64l.
19287 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
19288 (ppc_arch_setup): Check for VSX in hwcap.
19289 (ppc_fill_vsxregset): New function.
19290 (ppc_store_vsxregset): New function.
19291 Add new VSX entry in regset_info target_regsets.
19293 * configure.srv: Add new VSX dependencies.
19295 2008-08-12 Pedro Alves <pedro@codesourcery.com>
19297 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
19298 (remote_open): Set or clear transport_is_reliable.
19299 (putpkt_binary): Don't expect acks in noack mode.
19300 (getpkt): Don't send ack/nac in noack mode.
19301 * server.c (handle_general_set): Handle QStartNoAckMode.
19302 (handle_query): If connected by tcp pass QStartNoAckMode+ in
19304 (main): Reset noack_mode on every connection.
19305 * server.h (noack_mode): Declare.
19307 2008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19309 * Makefile.in (GDBREPLAY_OBS): New variable.
19310 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
19312 2008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
19313 Daniel Jacobowitz <dan@codesourcery.com>
19315 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
19316 (usr_store_inferior_registers): Likewise.
19317 (regsets_store_inferior_registers): Likewise.
19319 2008-07-31 Rolf Jansen <rj@surtec.com>
19320 Pedro Alves <pedro@codesourcery.com>
19322 * configure.ac: Check for memmem declaration.
19323 * server.c [HAVE_MALLOC_H]: Include malloc.h.
19324 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
19325 (disable_packet_qfThreadInfo): Unconditionally compile.
19326 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
19327 * configure, config.in: Regenerate.
19329 2008-07-28 Doug Kwan <dougkwan@google.com>
19331 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
19332 (linux_write_memory): Remove declaration of errno.
19334 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
19336 * linux-low.c (handle_extended_wait): Do not use "status"
19337 variable uninitialized.
19339 2008-07-07 Pedro Alves <pedro@codesourcery.com>
19341 * server.c (handle_v_attach): Inhibit reporting dll changes.
19343 2008-06-27 Pedro Alves <pedro@codesourcery.com>
19345 * remote-utils.c (prepare_resume_reply): If requested, don't
19346 output "thread:TID" in the T stop reply.
19348 * server.c (disable_packet_vCont, disable_packet_Tthread)
19349 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
19350 (handle_query): If requested, disable support for qC, qfThreadInfo
19352 (handle_v_requests): If requested, disable support for vCont.
19353 (gdbserver_show_disableable): New.
19354 (main): Handle --disable-packet and --disable-packet=LIST.
19356 * server.h (disable_packet_vCont, disable_packet_Tthread)
19357 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
19359 2008-06-20 Carlos O'Donell <carlos@codesourcery.com>
19361 * server.c (gdbserver_usage): Mention --version.
19363 2008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
19365 * Makefile.in (gdbreplay.o): New rule.
19367 2008-06-06 Joseph Myers <joseph@codesourcery.com>
19369 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
19370 message, not gdbserver.
19372 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
19373 Nathan Sidwell <nathan@codesourcery.com>
19374 Joseph Myers <joseph@codesourcery.com>
19376 * acinclude.m4: Include ../../config/acx.m4.
19377 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
19378 * configure, config.in: Regenerate.
19379 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
19380 * server.c (gdbserver_version): Print PKGVERSION.
19381 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
19382 (main): Adjust gdbserver_usage calls.
19383 * gdbreplay.c (version, host_name): Add declarations.
19384 (gdbreplay_version, gdbreplay_usage): New.
19385 (main): Accept --version and --help options.
19387 2008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
19389 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
19390 (arm_breakpoint_at): Handle Thumb.
19391 (the_low_target): Add comment.
19393 2008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
19395 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
19397 2008-05-09 Doug Evans <dje@google.com>
19399 * server.h (decode_search_memory_packet): Declare.
19400 * remote-utils.c (decode_search_memory_packet): New fn.
19401 * server.c (handle_search_memory_1): New fn.
19402 (handle_search_memory): New fn.
19403 (handle_query): Process qSearch:memory packets.
19405 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
19407 * regcache.c (registers_length): Remove.
19408 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
19409 full register packet.
19410 * regcache.h (registers_length): Remove prototype.
19411 * server.h (PBUFSIZ): Define to 16384.
19413 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
19415 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
19416 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
19417 powerpc-64l.o, and powerpc-altivec64l.o.
19418 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
19419 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
19420 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
19421 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
19422 rs6000/power-linux.xml, and rs6000/power64-linux.xml
19425 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
19426 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
19427 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
19428 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
19429 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
19430 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
19431 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
19432 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
19433 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
19434 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
19437 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
19438 (init_registers_powerpc_32l): ... this new prototype.
19439 (init_registers_powerpc_32): Remove, replace by ...
19440 (init_registers_powerpc_altivec32l): ... this new prototype.
19441 (init_registers_powerpc_e500): Remove, replace by ...
19442 (init_registers_powerpc_e500l): ... this new prototype.
19443 (init_registers_ppc64): Remove, replace by ...
19444 (init_registers_powerpc_64l): ... this new prototype.
19445 (init_registers_powerpc_64): Remove, replace by ...
19446 (init_registers_powerpc_altivec64l): ... this new prototype.
19447 (ppc_num_regs): Set to 73.
19448 (PT_ORIG_R3, PT_TRAP): Define if necessary.
19449 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
19450 (ppc_cannot_store_register): Handle orig_r3 and trap.
19451 (ppc_arch_setup): Update init_registers_... calls.
19452 (ppc_fill_gregset): Handle orig_r3 and trap.
19454 * inferiors.c (clear_inferiors): Reset current_inferior.
19456 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
19458 * acinclude.m4: Add override.m4.
19459 * configure: Regenerate.
19461 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19463 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
19464 initial call to init_register_ppc64.
19466 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19468 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
19469 single powerpc*-*-linux* case.
19470 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
19472 2008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
19474 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
19475 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
19477 * linux-ppc-low.c: Include <elf.h>.
19478 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
19479 (ppc_hwcap): New global variable.
19480 (ppc_regmap): Remove __SPE__ #ifdef sections.
19481 (ppc_regmap_e500): New global variable.
19482 (ppc_cannot_store_register): Update __SPE__ special case.
19483 (ppc_get_hwcap): New function.
19484 (ppc_arch_setup): Use it to determine whether inferior supports
19485 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
19486 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
19487 Do not access registers if target does not support AltiVec.
19488 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
19489 Do not access registers if target does not support SPE.
19490 (target_regsets): Unconditionally include AltiVec and SPE regsets.
19492 2008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
19494 * linux-low.c (disabled_regsets, num_regsets): New.
19495 (use_regsets_p): Delete.
19496 (linux_wait_for_process): Clear disabled_regsets.
19497 (regsets_fetch_inferior_registers): Check and set it.
19498 (regsets_store_inferior_registers): Likewise.
19499 (linux_fetch_registers, linux_store_registers): Do not use
19501 (initialize_low): Allocate disabled_regsets.
19503 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
19505 * Makefile.in (LIBOBJS): New.
19506 (OBS): Use LIBOBJS.
19507 (memmem.o): New rule.
19508 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
19509 * configure: Regenerated.
19511 2008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
19513 * server.c (handle_query): Never return "unsupported" for
19514 qXfer:features:read queries.
19516 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
19518 * server.c (get_features_xml): Fix inverted condition.
19519 (handle_query): Always support qXfer:feature:read.
19521 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
19523 * server.c (wrapper_argv): New.
19524 (start_inferior): Handle wrapper_argv. If set, expect an extra
19526 (gdbserver_usage): Document --wrapper.
19527 (main): Parse --wrapper.
19529 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19531 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
19532 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
19533 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
19534 (ppc_set_pc): Likewise.
19535 (ppc_arch_setup): New function.
19536 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
19537 of collect_register.
19538 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
19540 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19542 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
19543 instead of linux-ppc64-low.o.
19544 * linux-ppc64-low.c: Remove file.
19545 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
19546 (linux-ppc64-low.o): Remove rule.
19548 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
19549 (init_registers_powerpc_64): Likewise.
19550 (ppc_regmap): Conditionally define depending on __powerpc64__.
19551 (ppc_cannot_store_register): Do not special-case "fpscr" when
19552 compiled on __powerpc64__.
19553 (ppc_collect_ptrace_register): New function.
19554 (ppc_supply_ptrace_register): New function.
19555 (ppc_breakpoint): Change type to "unsigned int".
19556 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
19557 (the_low_target): Conditionally provide initializers for the
19558 arch_setup member depending on __powerpc64__. Install
19559 collect_ptrace_register and supply_ptrace_register members.
19561 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19563 * regcache.h (gdbserver_xmltarget): Add extern declaration.
19564 * server.c (gdbserver_xmltarget): Define.
19565 (get_features_xml): Use it to replace "target.xml" and arch_string.
19567 * configure.srv: Remove srv_xmltarget. Add XML files that were
19568 mentioned there to srv_xmlfiles instead. Remove conditional tests
19569 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
19570 srv_xmlfiles and srv_regobj to include all possible choices.
19571 * configure.ac (srv_xmltarget): Remove.
19572 (srv_xmlfiles): Do not add "target.xml".
19573 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
19574 checks for supplementary target information.
19575 * configure: Regenerate.
19576 * Makefile.in (XML_TARGET): Remove.
19577 (target.xml): Remove rule.
19578 (clean): Do not clean up target.xml.
19579 (.PRECIOUS): Do not mention target.xml.
19581 * target.h (struct target_ops): Remove arch_string member.
19582 * linux-low.c (linux_arch_string): Remove.
19583 (linux_target_ops): Remove arch_string initializer.
19584 * linux-low.h (struct linux_target_ops): Remove arch_string member.
19585 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
19586 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
19587 * spu-low.c (spu_arch_string): Remove.
19588 (spu_target_ops): Remove arch_string initializer.
19589 * win32-low.c (win32_arch_string): Remove.
19590 (win32_target_ops): Remove arch_string initializer.
19591 * win32-low.h (struct win32_target_ops): Remove arch_string member.
19592 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
19593 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
19595 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19597 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
19598 by collect_ptrace_register and supply_ptrace_register hooks.
19599 * linux-low.c (fetch_register): Use supply_ptrace_register callback
19600 instead of checking for the_low_target.left_pad_xfer.
19601 (usr_store_inferior_registers): Use collect_ptrace_register callback
19602 instead of checking for the_low_target.left_pad_xfer.
19604 * linux-s390-low.c (s390_collect_ptrace_register): New function.
19605 (s390_supply_ptrace_register): Likewise.
19606 (s390_fill_gregset): Call s390_collect_ptrace_register.
19607 (the_low_target): Update.
19609 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
19610 (ppc_supply_ptrace_register): Likewise.
19611 (the_low_target): Update.
19613 * linux-i386-low.c (the_low_target): Update.
19614 * linux-x86-64-low.c (the_low_target): Update.
19616 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19618 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
19619 reg-s390.o and reg-s390x.o.
19621 * linux-low.c (new_inferior): New global variable.
19622 (linux_create_inferior, linux_attach): Set it.
19623 (linux_wait_for_process): Call the_low_target.arch_setup after the
19624 target has stopped for the first time.
19625 (initialize_low): Do not call the_low_target.arch_setup.
19627 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
19628 (s390_set_pc): Likewise.
19629 (s390_arch_setup): New function.
19630 (the_low_target): Use s390_arch_setup as arch_setup routine.
19632 * regcache.c (realloc_register_cache): New function.
19633 (set_register_cache): Call it for each existing regcache.
19635 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19637 * server.h (init_registers): Remove prototype.
19639 * linux-low.h (struct linux_target_ops): Add arch_setup field.
19640 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
19641 instead of init_registers ().
19642 * linux-arm-low.c (init_registers_arm): Add prototype.
19643 (init_registers_arm_with_iwmmxt): Likewise.
19644 (the_low_target): Add initializer for arch_setup field.
19645 * linux-cris-low.c (init_registers_cris): Add prototype.
19646 (the_low_target): Add initializer for arch_setup field.
19647 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
19648 (the_low_target): Add initializer for arch_setup field.
19649 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
19650 (the_low_target): Add initializer for arch_setup field.
19651 * linux-ia64-low.c (init_registers_ia64): Add prototype.
19652 (the_low_target): Add initializer for arch_setup field.
19653 * linux-m32r-low.c (init_registers_m32r): Add prototype.
19654 (the_low_target): Add initializer for arch_setup field.
19655 * linux-m68k-low.c (init_registers_m68k): Add prototype.
19656 (the_low_target): Add initializer for arch_setup field.
19657 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
19658 (init_registers_mips64_linux): Likewise.
19659 (the_low_target): Add initializer for arch_setup field.
19660 * linux-ppc-low.c (init_registers_ppc): Add prototype.
19661 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
19662 (the_low_target): Add initializer for arch_setup field.
19663 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
19664 (init_registers_powerpc_64): Likewise.
19665 (the_low_target): Add initializer for arch_setup field.
19666 * linux-s390-low.c (init_registers_s390): Add prototype.
19667 (init_registers_s390x): Likewise.
19668 (the_low_target): Add initializer for arch_setup field.
19669 * linux-sh-low.c (init_registers_sh): Add prototype.
19670 (the_low_target): Add initializer for arch_setup field.
19671 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
19672 (the_low_target): Add initializer for arch_setup field.
19673 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
19674 (the_low_target): Add initializer for arch_setup field.
19676 * win32-low.h (struct win32_target_ops): Add arch_setup field.
19677 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
19678 instead of init_registers ().
19679 * win32-arm-low.c (init_registers_arm): Add prototype.
19680 (the_low_target): Add initializer for arch_setup field.
19681 * win32-i386-low.c (init_registers_i386): Add prototype.
19682 (the_low_target): Add initializer for arch_setup field.
19684 * spu-low.c (init_registers_spu): Add prototype.
19685 (initialize_low): Call initialie_registers_spu () instead of
19686 initialize_registers ().
19688 2008-02-19 Pedro Alves <pedro@codesourcery.com>
19690 * server.c (handle_v_requests): When handling the vRun and vAttach
19691 packets, if already debugging a process, don't kill it. Return an
19694 2008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
19696 * server.c (handle_query): Correct length check.
19698 2008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
19700 * win32-low.c (do_initial_child_stuff): Add process handle
19701 parameter. Set current_process_handle and current_process_id from the
19702 parameters. Clear globals.
19703 (win32_create_inferior): Don't set current_process_handle and
19704 current_process_id here. Instead pass them on the call to
19705 do_initial_child_stuff.
19706 (win32_attach): Likewise.
19707 (win32_clear_inferiors): New.
19708 (win32_kill): Don't close the current process handle or the
19709 current thread handle here. Instead call win32_clear_inferiors.
19710 (win32_detach): Don't open a new handle to the process. Call
19711 win32_clear_inferiors.
19712 (win32_join): Don't rely on current_process_handle; open a new
19713 handle using the process id.
19714 (win32_wait): Call win32_clear_inferiors when the inferior process
19717 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
19719 * server.c (monitor_show_help): Add "exit".
19721 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
19723 * Makefile.in (SFILES): Add linux-xtensa-low.c.
19724 (clean): Add reg-xtensa.c.
19725 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
19726 * configure.srv (xtensa*-*-linux*) New target.
19727 * linux-xtensa-low.c: New.
19728 * xtensa-xtregs.c: New.
19730 2008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
19732 * hostio.c: Don't include errno.h.
19733 (errno_to_fileio_errno): Move to hostio-errno.
19734 * hostio.c: (hostio_error): Remove the error parameter. Defer the
19735 error number outputting to the target->hostio_last_error callback.
19736 (hostio_packet_error): Use FILEIO_EINVAL directly.
19737 (handle_open, handle_pread, hostio_error, handle_unlink): Update
19738 calls to hostio_error.
19739 * hostio-errno.c: New.
19740 * server.h (hostio_last_error_from_errno): Declare.
19741 * target.h (target_ops): Add hostio_last_error member.
19742 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
19743 as hostio_last_error handler.
19744 * spu-low.c (spu_target_ops): Likewise.
19745 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
19746 (wince_hostio_last_error): New functions.
19747 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
19748 as hostio_last_error handler.
19749 (win32_target_ops) [!_WIN32_WCE]: Register
19750 hostio_last_error_from_errno as hostio_last_error handler.
19751 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
19752 (hostio-errno.o): New rule.
19753 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
19754 * configure.srv (srv_hostio_err_objs): New variable. Default to
19756 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
19757 * configure: Regenerate.
19759 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
19761 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
19762 (linux_kill, linux_detach): Clean up the process list.
19763 * remote-utils.c (remote_open): Improve port number parsing.
19764 (putpkt_binary, input_interrupt): Only send interrupts if the target
19766 * server.c (extended_protocol): Make static.
19767 (attached): Define earlier.
19768 (exit_requested, response_needed, program_argv): New variables.
19769 (target_running): New.
19770 (start_inferior): Clear attached here.
19771 (attach_inferior): Set attached here.
19772 (require_running): Define.
19773 (handle_query): Use require_running and target_running. Implement
19775 (handle_v_attach, handle_v_run): New.
19776 (handle_v_requests): Use require_running. Handle vAttach and vRun.
19777 (gdbserver_usage): Update.
19778 (main): Redo argument parsing. Handle --debug and --multi. Handle
19779 --attach along with other options or after the port. Save
19780 program_argv. Support no initial program. Resynchronize
19781 communication with GDB after an error. Handle "monitor exit".
19782 Use require_running and target_running. Always allow the extended
19783 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
19784 restart in extended mode.
19785 * README: Refer to the GDB manual. Update --attach usage.
19787 2007-12-20 Andreas Schwab <schwab@suse.de>
19789 * linux-low.c (STACK_SIZE): Define.
19790 (linux_tracefork_child): Use it. Use __clone2 on ia64.
19791 (linux_test_for_tracefork): Likewise.
19793 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
19795 * linux-low.c (linux_wait_for_event): Update messages. Do not
19796 reinsert auto-delete breakpoints.
19797 * mem-break.c (struct breakpoint): Change return type of handler to
19799 (set_breakpoint_at): Update handler type.
19800 (reinsert_breakpoint_handler): Return 1 instead of calling
19802 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
19804 (check_breakpoints): Delete auto-delete breakpoints and return 2.
19805 * mem-break.h (set_breakpoint_at): Update handler type.
19806 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
19807 * win32-low.c (auto_delete_breakpoint): New.
19808 (get_child_debug_event): Use it.
19810 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
19812 * configure.ac: Check for pread and pwrite.
19813 * hostio.c (handle_pread): Fall back to lseek and read.
19814 (handle_pwrite): Fall back to lseek and write.
19815 * config.in, configure: Regenerated.
19817 2007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
19819 * server.c (myresume): Add own_buf argument.
19820 (main): Update calls.
19822 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
19824 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
19825 * remote-utils.c (remote_open): Do not call disable_async_io.
19826 (block_async_io): Delete.
19827 (unblock_async_io): Make static.
19828 (initialize_async_io): New.
19829 * server.c (handle_v_cont): Handle async I/O here.
19830 (myresume): Likewise. Move other common resume tasks here...
19831 (main): ... from here. Call initialize_async_io. Disable async
19832 I/O before the main loop.
19833 * server.h (initialize_async_io): Declare.
19834 (block_async_io, unblock_async_io): Delete prototypes.
19835 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
19837 2007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
19839 * remote-utils.c (readchar): Allow binary data in received messages.
19841 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
19843 * win32-low.c (attaching): New global.
19844 (win32_create_inferior): Clear the `attaching' global.
19845 (win32_attach): Set the `attaching' global.
19846 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
19847 attaching. Only set a breakpoint at the entry point if not
19850 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
19852 * server.c (main): Don't report dll events on the initial
19853 connection on attaches.
19855 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
19857 * server.c (main): Relax numerical bases supported for the pid of
19858 the --attach command line argument.
19860 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
19862 * win32-low.c (win32_attach): Call OpenProcess before
19863 DebugActiveProcess, not after. Add last error output to error
19866 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
19868 * win32-low.c (win32_get_thread_context)
19869 (win32_set_thread_context): New functions.
19870 (thread_rec): Use win32_get_thread_context.
19871 (continue_one_thread, win32_resume): Use win32_set_thread_context.
19872 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
19875 2007-12-03 Leo Zayas
19876 Pedro Alves <pedro_alves@portugalmail.pt>
19878 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
19880 (child_add_thread): Minor cleanup.
19881 (child_continue): Resume artificially suspended threads before
19882 calling ContinueDebugEvent.
19883 (suspend_one_thread): New.
19884 (fake_breakpoint_event): New.
19885 (get_child_debug_event): Change return type to int. Check here if
19886 gdb sent an interrupt request. If a soft interrupt was requested,
19887 fake a breakpoint event. Return 0 if there is no event to handle,
19889 (win32_wait): Don't check here if gdb sent an interrupt request.
19890 Ensure there is a valid event to handle.
19891 (win32_request_interrupt): Add soft interruption method as last
19894 2007-12-03 Leo Zayas
19895 Pedro Alves <pedro_alves@portugalmail.pt>
19897 * win32-low.h (win32_thread_info): Add descriptions to the
19898 structure members. Replace `suspend_count' counter by a
19900 * win32-low.c (thread_rec): Update condition of when to get the
19901 context from the inferior. Rely on ContextFlags being set if it
19902 has already been retrieved. Only suspend the inferior thread if
19903 we haven't already. Warn if that fails.
19904 (continue_one_thread): s/suspend_count/suspended/. Only call
19905 ResumeThread once. Warn if that fails.
19907 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
19909 * win32-low.c (win32_wait): Don't read from the inferior when it
19910 has already exited.
19912 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
19914 * Makefile.in (win32_low_h): New variable.
19915 (win32-low.o): Add dependency on $(win32_low_h).
19916 (win32-arm-low.o, win32-i386-low.o): New rules.
19918 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
19920 * hostio.c: Correct copyright year.
19922 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
19924 * Makefile.in (OBS): Add hostio.o.
19925 (hostio.o): New rule.
19926 * server.h (handle_vFile): Declare.
19927 * hostio.c: New file.
19928 * server.c (handle_v_requests): Take packet_len and new_packet_len
19929 for binary packets. Call handle_vFile.
19930 (main): Update call to handle_v_requests.
19932 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
19934 * linux-low.c: Include <sched.h>.
19936 2007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
19938 * linux-low.c (linux_tracefork_grandchild): New.
19939 (linux_tracefork_child): Use clone.
19940 (linux_test_for_tracefork): Use clone; allocate and free a stack.
19942 2007-10-31 Joel Brobecker <brobecker@adacore.com>
19944 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
19946 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
19948 * linux-low.c (handle_extended_wait): Handle unexpected signals.
19950 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
19952 * inferiors.c (change_inferior_id): Delete.
19953 (add_pid_to_list, pull_pid_from_list): New.
19954 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
19955 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
19956 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
19957 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
19958 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
19959 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
19960 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
19961 (using_threads): Always set to 1.
19962 (handle_extended_wait): New.
19963 (add_process): Do not set TID.
19964 (linux_create_inferior): Set must_set_ptrace_flags.
19965 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
19966 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
19967 (linux_thread_alive): Rename TID argument to LWPID.
19968 (linux_wait_for_process): Handle unknown processes. Do not use TID.
19969 (linux_wait_for_event): Do not use TID or check using_threads. Update
19970 call to dead_thread_notify. Call handle_extended_wait.
19971 (linux_create_inferior): Use PTRACE_SETOPTIONS.
19972 (send_sigstop): Delete sigstop_sent.
19973 (wait_for_sigstop): Avoid TID.
19974 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
19975 (linux_test_for_tracefork): New.
19976 (linux_lookup_signals): Use thread_db_active and
19977 linux_supports_tracefork_flag.
19978 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
19979 * linux-low.h (get_process_thread): Avoid TID.
19980 (struct process_ifo): Move thread_known and tid to the end. Remove
19982 (linux_attach_lwp, thread_db_init): Update prototypes.
19983 * server.h (change_inferior_id): Delete prototype.
19984 (add_pid_to_list, pull_pid_from_list): New prototypes.
19985 * thread-db.c (thread_db_use_events): New.
19986 (find_first_thread): Rename to...
19987 (find_one_thread): ...this. Update callers and messages. Do not
19988 call fatal. Check thread_db_use_events. Do not call
19989 change_inferior_id or new_thread_notify.
19990 (maybe_attach_thread): Update. Do not call new_thread_notify.
19991 (thread_db_init): Set thread_db_use_events. Check use_events.
19992 * utils.c (fatal, warning): Correct message prefix.
19994 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
19996 * Makefile.in (clean): Remove new files.
19997 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
19998 (powerpc-64.o, powerpc-64.c): New rules.
19999 * configure.srv: Use alternate register sets for powerpc64-*-linux*
20000 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
20002 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
20004 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
20005 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
20006 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
20007 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
20008 (target_regsets): Add AltiVec and SPE register sets.
20009 * configure.ac: Check for AltiVec and SPE.
20010 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
20011 (ppc_fill_vrregset, ppc_store_vrregset): New.
20012 (target_regsets): Add AltiVec register set.
20013 * configure: Regenerated.
20015 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
20017 * linux-low.c (O_LARGEFILE): Define.
20018 (linux_read_memory): Use /proc/PID/mem.
20019 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
20020 * configure, config.in: Regenerated.
20022 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20024 * linux-low.c (linux_wait_for_event): Do not pass signals while
20027 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20029 * win32-low.c (create_process): New.
20030 (win32_create_inferior): Use create_process instead of
20031 CreateProcess. If create_process failed retry appending an ".exe"
20032 suffix. Store the GetLastError result immediatelly after
20033 create_process calls and use it on the call to error.
20035 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20037 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
20039 2007-08-23 Joel Brobecker <brobecker@adacore.com>
20041 * configure.ac: Switch license to GPLv3.
20043 2007-08-01 Michael Snyder <msnyder@access-company.com>
20045 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
20047 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
20049 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
20051 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
20052 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
20053 CloseToolhelp32Snapshot.
20054 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
20055 CloseToolhelp32Snapshot.
20057 2007-07-27 Michael Snyder <michael.snyder@access-company.com>
20059 * server.c (main): Check for inferior exit before main loop.
20061 2007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
20063 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
20064 instead of on tmp_desc.
20066 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
20067 Daniel Jacobowitz <dan@codesourcery.com>
20069 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
20070 (add_thread): Minor cleanups.
20071 (clear_inferiors): Move lower in the file. Clear the DLL
20073 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
20074 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
20075 (xml_escape_text): New.
20076 * server.c (handle_query): Handle qXfer:libraries:read. Report it
20078 (handle_v_cont): Report errors.
20079 (gdbserver_version): Update.
20080 (main): Correct size of own_buf. Do not report initial DLL events.
20081 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
20082 (unloaded_dll, xml_escape_text): New.
20083 * win32-low.c (enum target_waitkind): Update comments.
20084 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
20085 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
20086 (win32_EnumProcessModules, win32_GetModuleInformation)
20087 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
20088 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
20089 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
20090 (win32_Module32First, win32_Module32Next, load_toolhelp)
20091 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
20092 (get_child_debug_event): Handle DLL events.
20093 (win32_wait): Likewise.
20095 2007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20097 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
20098 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
20100 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20102 * win32-low.c (handle_output_debug_string): Ignore event if not
20105 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20107 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
20109 2007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
20111 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
20113 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
20115 * inferiors.c (change_inferior_id): Add comment.
20116 * linux-low.c (check_removed_breakpoint): Add an early
20117 prototype. Improve debug output.
20118 (linux_attach): Doc update.
20119 (linux_detach_one_process, linux_detach): Clean up before releasing
20121 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
20122 * linux-low.h (struct process_info): Doc improvement.
20123 * mem-break.c (delete_all_breakpoints): New.
20124 * mem-break.h (delete_all_breakpoints): New prototype.
20125 * thread-db.c (find_first_thread): New.
20126 (thread_db_create_event): Call it instead of
20127 thread_db_find_new_threads. Clean up unused variables.
20128 (maybe_attach_thread): Remove first thread handling.
20129 (thread_db_find_new_threads): Use find_first_thread.
20130 (thread_db_get_tls_address): Likewise.
20132 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
20134 * thread-db.c (thread_db_find_new_threads): Add prototype.
20135 (thread_db_create_event): Check for the main thread before adding
20137 (maybe_attach_thread): Only enable event reporting if TID == 0.
20138 (thread_db_get_tls_address): Check for new threads.
20140 2007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
20142 * linux-low.c (linux_create_inferior): Try execv before execvp.
20143 * spu-low.c (spu_create_inferior): Likewise.
20145 2007-06-13 Mike Frysinger <vapier@gentoo.org>
20147 * linux-low.c (linux_create_inferior): Change execv to execvp.
20148 * spu-low.c (spu_create_inferior): Likewies.
20150 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
20152 * Makefile.in (clean): Clean new files instead of deleted ones.
20153 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
20154 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
20156 * configure.srv: Specify XML files and new regformats for MIPS and
20158 * linux-mips-low.c (mips_num_regs): Set to only used registers.
20159 (mips_regmap): Do not fetch $0. Remove unused registers. Add
20160 an entry for the restart register.
20161 (mips_cannot_fetch_register, mips_cannot_store_register)
20162 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
20163 register names to match the XML descriptions.
20164 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
20165 restart register instead of $0.
20167 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20168 Markus Deuling <deuling@de.ibm.com>
20170 * remote-utils.c (decode_xfer_write): New function.
20171 * server.h (decode_xfer_write): Add prototype.
20172 * server.c (handle_query): Add PACKET_LEN argument. Support
20173 qXfer:spu:read and qXfer:spu:write packets.
20174 (main): Pass packet_len to handle_query.
20175 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
20176 * target.h (target_ops): Add qxfer_spu.
20178 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20180 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
20181 accessing non-seekable spufs files.
20183 2007-05-16 Markus Deuling <deuling@de.ibm.com>
20185 * server.c (handle_query): Add reply for qC packet.
20187 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20188 Leo Zayas <lerele@champenstudios@com>
20190 * server.h (check_remote_input_interrupt_request): New function.
20191 * remote_utils.c (INVALID_DESCRIPTOR): New define.
20192 (remote_desc): Initialize with INVALID_DESCRIPTOR.
20193 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
20194 (check_remote_input_interrupt_request): New function.
20195 * server.h (check_remote_input_interrupt_request): Declare.
20196 * win32-low.c (winapi_DebugBreakProcess,
20197 winapi_GenerateConsoleCtrlEvent): New typedefs.
20198 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
20200 (win32_wait): Check for remote interrupt request
20201 with check_remote_input_interrupt_request.
20202 (win32_request_interrupt): New function.
20203 (win32_target_op): Set request_interrupt to win32_request_interrupt.
20205 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20207 * win32-low.c (debug_registers_changed,
20208 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
20209 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
20210 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
20211 (thread_rec): Get context using the low target.
20212 (child_add_thread): Call thread_added on the low target,
20213 which does the same thing.
20215 (do_initial_child_stuff): Remove debug registers references.
20216 Set context using the low target. Resume threads after
20217 setting the contexts.
20218 (child_continue): Remove dead variable. Remove debug
20219 registers references.
20220 (child_fetch_inferior_registers): Go through the low target.
20221 (do_child_store_inferior_registers): Remove.
20222 (child_store_inferior_registers): Go through the low target.
20223 (win32_resume): Remove debug registers references.
20224 Set context using the low target.
20225 (handle_exception): Change return type to void. Don't record
20226 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
20227 first chance exception.
20228 (get_child_debug_event): Change return type to void. Remove
20229 goto loop. Always return after waiting for debug event.
20230 (win32_wait): Convert to switch statement. Handle spurious
20233 * win32-i386-low.c (debug_registers_changed,
20234 debug_registers_used): New.
20235 (initial_stuff): Rename to ...
20236 (i386_initial_stuff): ... this. Clear debug registers
20238 (store_debug_registers): Delete.
20239 (i386_get_thread_context): New.
20240 (load_debug_registers): Delete.
20241 (i386_set_thread_context): New.
20242 (i386_thread_added): New.
20243 (single_step): Rename to ...
20244 (i386_single_step): ... this.
20245 (do_fetch_inferior_registers): Rename to ...
20246 (i386_fetch_inferior_register): ... this.
20247 (i386_store_inferior_register): New.
20248 (the_low_target): Adapt to new interface.
20250 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
20251 (arm_get_thread_context): New.
20252 (arm_set_thread_context): New.
20254 (do_fetch_inferior_registers): Rename to ...
20255 (arm_fetch_inferior_register): ... this.
20256 (arm_store_inferior_register): New.
20257 (arm_wince_breakpoint): Reimplement as unsigned long.
20258 (arm_wince_breakpoint_len): Define.
20259 (the_low_target): Adapt to new interface.
20261 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
20262 load_debug_registers. Add get_thread_context, set_thread_context,
20263 thread_added and store_inferior_register. Rename
20264 fetch_inferior_registers to fetch_inferior_register.
20265 (regptr): Remove declaration.
20267 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20269 * linux-low.c (linux_detach): Change return type to int. Return 0.
20270 * spu-low.c (spu_detach): Likewise.
20272 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20274 * target.h (target_ops): Change return type of detach to int.
20276 (join_inferior): New.
20277 * server.c (main): Don't skip detach support on mingw32.
20278 If the inferior doesn't support detaching return error.
20279 Call join_inferior instead of using waitpid.
20280 * linux-low.c (linux_join): New.
20281 (linux_target_op): Add linux_join.
20282 * spu-low.c (spu_join): New.
20283 (spu_target_ops): Add spu_join.
20284 * win32-low.c (win32_detach): Adapt to new interface.
20285 Reopen current_process_handle before detaching. Issue a child
20286 resume before detaching.
20288 (win32_target_op): Add win32_join.
20290 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20292 * win32-low.c (win32-attach): Fix return value.
20293 * target.h (target_ops): Describe ATTACH return values.
20295 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20297 * win32-low.c (GETPROCADDRESS): Define.
20298 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
20299 (winapi_DebugSetProcessKillOnExit): Likewise.
20300 (win32_create_inferior): Force usage of ansi CreateProcessA.
20301 (win32_attach): Use GETPROCADDRESS.
20302 (win32_detach): Likewise.
20304 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20306 * win32-low.c (win32_wait): Don't use WSTOPSIG.
20308 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
20310 * win32-low.c: Commit leftover changes from 2007-03-29.
20312 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20314 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
20315 fields short instead of int. Add explicit padding.
20316 (i387_cache_to_fsave): Remove unnecessary casts.
20317 (i387_fsave_to_cache): Doc fix.
20318 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
20320 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20322 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
20323 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
20325 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20327 * configure.srv (arm*-*-mingw32ce*): Move near the other
20330 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20332 * configure.ac: Add errno checking.
20333 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
20334 sys/file.h and malloc.h.
20335 (AC_CHECK_DECLS): Add perror.
20336 (srv_mingwce): Handle.
20337 * configure.srv (i[34567]86-*-cygwin*): Add
20338 win32-i386-low.o to srv_tgtobj.
20339 (i[34567]86-*-mingw*): Likewise.
20340 (arm*-*-mingw32ce*): Add case.
20341 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20342 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
20343 [__MINGW32CE__] (strerror): New function.
20344 [__MINGW32CE__] (errno): Define to GetLastError.
20345 [__MINGW32CE__] (COUNTOF): New macro.
20346 (remote_open): Remove extra close call.
20347 * mem-break.c (delete_breakpoint_at): New function.
20348 * mem-break.h (delete_breakpoint_at): Declare.
20349 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20350 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
20351 [USE_WIN32API] (read, write): Add char* casts.
20352 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
20353 * server.h: Include wincecompat.h on Windows CE.
20354 [HAVE_ERRNO_H]: Check.
20355 (perror): Declare if not declared.
20356 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
20357 (perror_with_name): Remove errno declaration.
20358 * wincecompat.h: New.
20359 * wincecompat.c: New.
20360 * win32-low.h: New.
20361 * win32-arm-low.c: New.
20362 * win32-i386-low.c: New.
20363 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
20364 (OUTMSG2): Make it safe.
20366 (COUNTOF): New macro.
20367 (NUM_REGS): Get it from the low target.
20368 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
20369 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
20370 (thread_rec): Let low target handle debug registers.
20371 (child_add_thread): Likewise.
20372 (child_init_thread_list): Likewise.
20373 (continue_one_thread): Likewise.
20375 (do_child_fetch_inferior_registers): Move to ...
20376 * win32-i386-low.c: ... here, and rename to ...
20377 (do_fetch_inferior_registers): ... this.
20378 * win32-low.c (child_fetch_inferior_registers):
20379 Go through the low target.
20380 (do_child_store_inferior_registers): Use regptr.
20381 (strwinerror): New function.
20382 (win32_create_inferior): Handle Windows CE.
20383 Use strwinerror instead of strerror on Windows error
20384 codes. Add program to the error output.
20385 Don't close the main thread handle on Windows CE.
20386 (win32_attach): Use coredll.dll on Windows CE.
20387 (win32_kill): Close current process and current
20389 (win32_detach): Use coredll.dll on Windows CE.
20390 (win32_resume): Let low target handle debug registers, and
20392 (handle_exception): Add/Remove initial breakpoint. Avoid
20393 non-existant WSTOPSIG on Windows CE.
20394 (win32_read_inferior_memory): Cast to remove warning.
20395 (win32_arch_string): Go through the low target.
20396 (initialize_low): Call set_breakpoint_data with the low
20397 target's breakpoint.
20398 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
20399 FOP_REGNUM, mappings): Move to ...
20400 * win32-i386-low.c: ... here.
20401 * win32-low.c (win32_thread_info): Move to ...
20402 * win32-low.h: ... here.
20403 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
20404 win32-arm-low.c and wincecompat.c.
20405 (all:): Add $EXEEXT.
20406 (install-only:): Likewise.
20407 (gdbserver:): Likewise.
20408 (gdbreplay:): Likewise.
20409 * config.in: Regenerate.
20410 * configure: Regenerate.
20412 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20414 * win32-low.c: Rename typedef thread_info to
20415 win32_thread_info throughout.
20417 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20419 * win32-i386-low.c: Rename to ...
20420 * win32-low.c: ... this.
20421 * configure.srv: Replace win32-i386-low.o with win32-low.o.
20422 * Makefile.in: Likewise.
20424 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
20426 * remote-utils.c (monitor_output): Constify msg parameter.
20427 * server.h (monitor_output): Likewise.
20428 * win32-i386-low.c (handle_output_debug_string): New.
20429 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
20430 handle_output_debug_string.
20431 (get_child_debug_event): Likewise.
20433 2007-03-27 Mat Hostetter <mat@lcs.mit.edu>
20435 * server.c (main): Correct strtoul check.
20437 2007-03-27 Jon Ringle <jon@ringle.org>
20439 * linux-low.c: Check __ARCH_HAS_MMU__ also.
20441 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
20443 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
20445 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
20447 * terminal.h: Check HAVE_SGTTY_H.
20449 2007-02-27 Mat Hostetter <mat@lcs.mit.edu>
20451 * remote-utils.c (remote_open): Print out the assigned port number.
20453 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
20455 * remote-utils.c (monitor_output): New function.
20456 * server.c (debug_threads): Define here.
20457 (monitor_show_help): New function.
20458 (handle_query): Handle qRcmd.
20459 (main): Do not handle 'd' packet.
20460 * server.h (debug_threads, remote_debug, monitor_output): Declare.
20461 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
20464 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20466 * Makefile.in (EXEEXT): New.
20467 (clean): Use $(EXEEXT).
20469 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20471 * target.h (target_ops): Rename send_signal to request_interrupt,
20472 and remove enum target_signal parameter.
20473 * linux-low.c (linux_request_interrupt): Rename from
20474 linux_send_signal, and always send SIGINT.
20475 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
20476 and always send SIGINT.
20477 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
20479 (input_interrupt): Likewise.
20481 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20483 * server.c (get_features_xml): Check if target implemented
20485 * win32-i386-low.c (win32_arch_string): New.
20486 (win32_target_ops): Add win32_arch_string as arch_string member.
20488 2007-02-22 Markus Deuling <deuling@de.ibm.com>
20490 * spu-low.c (spu_arch_string): New.
20491 (spu_target_ops): Add spu_arch_string.
20493 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
20495 * remote-utils.c: Remove HAVE_TERMINAL_H check.
20496 * configure.ac: Do not check for terminal.h.
20497 * configure, config.in: Regenerated.
20499 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
20501 * Makefile.in (OBS): Add $(XML_BUILTIN).
20502 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
20504 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
20505 (arm-with-iwmmxt.c): New.
20506 * config.in, configure: Regenerate.
20507 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
20508 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
20509 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
20510 (arm*-*-linux*): Add iWMMXt and regset support.
20511 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
20512 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
20513 (arm_store_wmmxregset, target_regsets): New.
20514 * server.c (get_features_xml): Take annex argument. Check builtin
20516 (handle_query): Handle multiple annexes.
20518 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20520 * remote-utils.c [USE_WIN32API] (read, write): Define.
20521 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
20524 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
20526 * linux-i386-low.c (the_low_target): Set arch_string.
20527 * linux-x86-64-low.c (the_low_target): Likewise.
20528 * linux-low.c (linux_arch_string): New.
20529 (linux_target_ops): Add it.
20530 * linux-low.h (struct linux_target_ops): Add arch_string.
20531 * server.c (write_qxfer_response): Use const void * for DATA.
20532 (get_features_xml): New.
20533 (handle_query): Handle qXfer:features:read. Report it for qSupported.
20534 * target.h (struct target_ops): Add arch_string method.
20536 2007-01-03 Denis Pilat <denis.pilat@st.com>
20537 Daniel Jacobowitz <dan@codesourcery.com>
20539 * linux-low.c (linux_kill): Handle being called with no threads.
20540 * win32-i386-low.c (win32_kill): Likewise.
20541 (get_child_debug_event): Clear current_process_handle.
20543 2006-12-30 Denis PILAT <denis.pilat@st.com>
20544 Daniel Jacobowitz <dan@codesourcery.com>
20546 * remote-utils.c (remote_open): Check the type of specified
20547 serial port devices before opening them.
20548 * server.c (main): Kill the inferior if an error occurs during
20549 the first remote_open.
20551 2006-12-05 Markus Deuling <deuling@de.ibm.com>
20553 * README: Update supported targets.
20555 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
20557 * Makefile.in (clean): Remove reg-mips64.c.
20558 (reg-mips64.c, reg-mips64.o): New rules.
20559 * configure.srv: Handle mips64. Include regset support for mips.
20560 * linux-mips-low.c (union mips_register): New.
20561 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
20562 (mips_breakpoint, mips_breakpoint_at): Use int.
20563 (mips_collect_register, mips_supply_register)
20564 (mips_collect_register_32bit, mips_supply_register_32bit)
20565 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
20566 (mips_store_fpregset, target_regsets): New.
20567 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
20569 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
20571 * configure.srv: Add target "spu*-*-*".
20572 * Makefile.in (clean): Remove reg-spu.c.
20573 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
20574 * spu-low.c: New file.
20576 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
20578 * configure.ac: Correct td_thr_tls_get_addr test.
20579 * configure: Regenerated.
20581 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
20583 * linux-low.c (linux_wait_for_event): Reformat. Use the
20584 pass_signals array.
20585 * remote-utils.c (decode_address_to_semicolon): New.
20586 * server.c (pass_signals, handle_general_set): New.
20587 (handle_query): Mention QPassSignals for qSupported.
20588 (main): Call handle_general_set.
20589 * server.h (pass_signals, decode_address_to_semicolon): New.
20591 2006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
20593 * server.c (handle_query): Correct error handling for read_auxv.
20595 2005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
20597 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
20598 and srv_linux_thread_db to yes.
20599 * linux-s390-low.c (s390_fill_gregset): New function.
20600 (target_regsets): Define data structure.
20602 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
20604 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
20605 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
20606 * config.in, configure: Regenerated.
20607 * inferiors.c (gdb_id_to_thread): New function.
20608 (gdb_id_to_thread_id): Use it.
20609 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
20610 * linux-low.h (struct process_info): Add th member.
20611 (thread_db_get_tls_address): New prototype.
20612 * remote-utils.c (decode_address): Make non-static.
20613 * server.c (handle_query): Handle qGetTLSAddr.
20614 * server.h (gdb_id_to_thread, decode_address): New prototypes.
20615 * target.h (struct target_ops): Add get_tls_address.
20616 * thread-db.c (maybe_attach_thread): Save the thread handle.
20617 (thread_db_get_tls_address): New.
20619 2006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
20621 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
20622 (linux_resume_one_process): Take a siginfo_t *. Update all
20623 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
20624 (struct pending_signals): Add a siginfo_t.
20625 (linux_wait_for_process): Always set last_status.
20626 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
20627 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
20628 * linux-low.h (struct process_info): Add last_status.
20630 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
20632 * remote-utils.c (try_rle): New function.
20633 (putpkt_binary): Use it.
20635 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
20637 * Makefile.in (clean): Clean reg-x86-64-linux.c.
20638 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
20639 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
20640 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
20641 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
20644 2006-08-08 Richard Sandiford <richard@codesourcery.com>
20646 * server.c (terminal_fd): New variable.
20647 (old_foreground_pgrp): Likewise.
20648 (restore_old_foreground_pgrp): New function.
20649 (start_inferior): Record the terminal file descriptor in terminal_fd
20650 and its original foreground group in old_foreground_pgrp. Register
20651 restore_old_foreground_pgrp with atexit().
20653 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
20655 * server.c (handle_query): Correct qPart to qXfer.
20657 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
20659 * configure.ac: Check for more headers which are missing on
20660 Windows. Automatically supply -lwsock32 and USE_WIN32API.
20661 * configure.srv: Add Cygwin and mingw32.
20662 * remote-utils.c: Don't include headers unconditionally which
20663 are missing on mingw32. Include <winsock.h> for mingw32.
20664 (remote_open): Adjust for mingw32 support. Flush
20665 standard error after writing to it.
20666 (remote_close, putpkt_binary, input_interrupt, block_async_io)
20667 (unblock_async_io, enable_async_io, disable_async_io)
20668 (readchar, getpkt): Update for Winsock support.
20669 (prepare_resume_reply): Expect a protocol signal number.
20670 * server.c: Disable <sys/wait.h> on mingw32.
20671 (start_inferior): Adjust for mingw32 support. Flush
20672 standard error after writing to it.
20673 (attach_inferior): Likewise. Use protocol signal
20675 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
20677 * win32-i386-low.c: New file.
20678 * Makefile.in (XM_CLIBS): Set.
20679 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
20680 (win32-i386-low.o): New dependency rule.
20681 * linux-low.c (linux_wait): Use target signal numbers.
20682 * target.h (struct target_ops): Doc fix.
20683 * server.h (target_signal_to_name): New prototype.
20684 * gdbreplay.c: Don't include headers unconditionally which
20685 are missing on mingw32. Include <winsock.h> for mingw32.
20686 (remote_close, remote_open): Adjust for Winsock support.
20687 * configure, config.in: Regenerated.
20689 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20691 * server.c (decode_xfer_read, write_qxfer_response): New.
20692 (handle_query): Take a packet length argument. Handle
20693 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
20694 the qSupported response.
20695 (main): Update call to handle_query.
20697 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
20699 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
20700 (putpkt_binary): Renamed from putpkt and adjusted for binary
20702 (putpkt): New wrapper for putpkt_binary.
20703 (readchar): Don't mask off the high bit.
20704 (decode_X_packet): New function.
20705 * server.c (main): Call putpkt_binary if a handler sets the packet
20706 length. Save the length of the incoming packet. Handle 'X'.
20707 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
20709 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
20711 * server.c (handle_query): Handle qSupported.
20713 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
20715 * remote-utils.c (all_symbols_looked_up): New variable.
20716 (look_up_one_symbol): Check it.
20717 * server.h (look_up_one_symbol): New declaration.
20718 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
20720 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
20722 * Makefile.in (linux-arm-low.o): Update dependencies.
20723 * linux-arm-low.c: Include "gdb_proc_service.h".
20724 (PTRACE_GET_THREAD_AREA): Define.
20725 (ps_get_thread_area): New function.
20727 2006-05-09 Nathan Sidwell <nathan@codesourcery.com>
20729 * configure.srv (m68k*-*-uclinux*): New target.
20730 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
20731 (linux_resume_one_process): Remove extraneous cast.
20732 (linux_read_offsets): New.
20733 (linux_target_op): Add linux_read_offsets on mmuless systems.
20734 * server.c (handle_query): Add qOffsets logic.
20735 * target.h (struct target_ops): Add read_offsets.
20737 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
20739 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
20740 (PTRACE_GET_THREAD_AREA): Define.
20741 (ps_get_thread_area): New function.
20742 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
20743 (linux-x86-64-low.o): Update.
20745 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
20747 * configure.ac: Remove checks for prfpregset_t.
20748 * gdb_proc_service.h: New file.
20749 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
20750 new "gdb_proc_service.h".
20751 * proc-service.c: Likewise.
20752 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
20753 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
20754 * Makefile.in (gdb_proc_service_h): Updated.
20755 * configure, config.in: Regenerated.
20757 2006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
20759 * remote-utils.c (prepare_resume_reply): Move declaration
20760 of gdb_id_from_wait to the top of the block.
20762 2006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
20764 * linux-low.c (regsets_store_inferior_registers): Read the regset
20765 from the target before filling it.
20767 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
20769 * server.c (attach_inferior): Return SIGTRAP for a successful
20772 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
20774 * Makefile.in (OBS): Add version.o.
20775 (STAGESTUFF): Delete.
20776 (version.o): Add dependencies.
20777 (version.c): Replace rule.
20778 (clean): Remove version.c.
20779 * server.c (gdbserver_version): New.
20780 (gdbserver_usage): Use printf.
20781 (main): Handle --version and --help.
20782 * server.h (version, host_name): Add declarations.
20784 2005-12-23 Eli Zaretskii <eliz@gnu.org>
20796 * linux-x86-64-low.c:
20798 * linux-s390-low.c:
20799 * linux-ppc64-low.c:
20801 * linux-mips-low.c:
20802 * linux-m68k-low.c:
20803 * linux-m32r-low.c:
20806 * linux-ia64-low.c:
20807 * linux-i386-low.c:
20808 * linux-crisv32-low.c:
20820 * gdbserver.1: Add (C) after Copyright. Update the FSF
20823 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
20825 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
20826 (arm_breakpoint_at): Recognize both breakpoints.
20827 (the_low_target): Use the correct breakpoint instruction.
20829 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
20831 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
20832 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
20833 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
20834 (the_low_target): Update.
20836 2005-10-25 Andreas Schwab <schwab@suse.de>
20838 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
20840 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
20841 (ia64_num_regs): Reduce to 462.
20843 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
20845 * acinclude.m4: Correct quoting.
20846 * aclocal.m4: Regenerated.
20848 Suggested by SZOKOVACS Robert <szo@ies.hu>:
20849 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
20850 (thread_db_init): Call thread_db_err_str.
20851 * configure.ac: Check for TD_VERSION.
20852 * config.in, configure: Regenerated.
20854 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20856 * server.h (error, fatal, warning): Add ATTR_FORMAT.
20858 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
20860 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
20861 is not available. Define HAVE_PTRACE_GETREGS if it is.
20862 * config.in, configure: Regenerated.
20863 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
20864 * linux-i386-low.c, linux-m68k-low.c: Update to use
20865 HAVE_PTRACE_GETREGS.
20866 * linux-low.c (regsets_fetch_inferior_registers)
20867 (regsets_store_inferior_registers): Only return 0 if we processed
20869 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
20870 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
20872 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
20874 * inferiors.c (struct thread_info): Add gdb_id.
20875 (add_thread): Add gdb_id argument.
20876 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
20877 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
20878 calls to add_thread.
20879 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
20880 * server.c (handle_query): Use thread_to_gdb_id.
20881 (handle_v_cont, main): Use gdb_id_to_thread_id.
20882 * server.h (add_thread): Update prototype.
20883 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
20886 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
20888 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
20889 left-padded registers.
20890 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
20891 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
20893 2005-07-01 Steve Ellcey <sje@cup.hp.com>
20895 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
20896 * configure: Regenerate.
20897 * config.in: Regenerate.
20898 * server.h (NEED_DECLARATION_STRERROR):
20899 Replace with !HAVE_DECL_STRERROR.
20901 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
20903 * linux-low.c (linux_wait, linux_send_signal): Don't test
20904 an unsigned long variable for > 0 if it could be MAX_ULONG.
20905 * server.c (myresume): Likewise.
20906 * target.c (set_desired_inferior): Likewise.
20908 2005-06-13 Mark Kettenis <kettenis@gnu.org>
20910 * configure.ac: Simplify and improve check for socklen_t.
20911 * configure, config.in: Regenerate.
20913 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
20915 * acconfig.h: Remove.
20916 * configure.ac: Add a test for socklen_t. Use three-argument
20917 AC_DEFINE throughout.
20918 * config.in: Regenerated using autoheader 2.59.
20919 * configure: Regenerated.
20921 * gdbreplay.c (socklen_t): Provide a default.
20922 (remote_open): Use socklen_t.
20923 * remote-utils.c (socklen_t): Provide a default.
20924 (remote_open): Use socklen_t.
20925 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
20928 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
20930 * linux-low.c (linux_read_memory, linux_write_memory)
20931 (linux_read_auxv): Likewise.
20932 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
20933 (check_mem_write): Likewise.
20934 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
20936 * regcache.c (struct inferior_rgcache_data, registers_to_string)
20937 (registers_from_string, register_data): Likewise.
20938 * server.c (handle_query, main): Likewise.
20939 * server.h (convert_ascii_to_int, convert_int_to_ascii)
20940 (decode_M_packet): Likewise.
20941 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
20942 * target.h (struct target_ops): Update read_memory, write_memory,
20944 (read_inferior_memory, write_inferior_memory): Update.
20945 * linux-low.h (struct linux_target_ops): Change type of breakpoint
20946 to unsigned char *.
20947 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
20948 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
20949 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
20950 linux-s390-low.c, linux-sh-low.c: Update for changes in
20951 read_inferior_memory and the_low_target->breakpoint.
20953 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
20955 * Makefile.in (SFILES): Add linux-ppc64-low.c.
20956 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
20957 * configure.srv: Add powerpc64-*-linux*.
20958 * linux-ppc64-low.c: New file.
20960 2005-05-23 Orjan Friberg <orjanf@axis.com>
20962 * linux-cris-low.c: New file with support for CRIS.
20963 * linux-crisv32-low.c: Ditto for CRISv32.
20964 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
20965 (clean): Add reg-cris.c and reg-crisv32.c.
20966 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
20967 reg-crisv32.o, and reg-crisv32.c to make rules.
20968 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
20969 recognized targets.
20971 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
20973 * linux-low.c (fetch_register): Ensure buffer size is a multiple
20974 of sizeof (PTRACE_XFER_TYPE).
20975 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
20977 2005-05-12 Orjan Friberg <orjanf@axis.com>
20979 * target.h (struct target_ops): Add insert_watchpoint,
20980 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
20981 pointers for hardware watchpoint support.
20982 * linux-low.h (struct linux_target_ops): Ditto.
20983 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
20984 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
20985 to linux_target_ops.
20986 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
20988 * server.c (main): Recognize 'Z' and 'z' packets.
20990 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
20992 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
20993 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
20994 (the_low_target): Add new members.
20996 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
20998 * proc-service.c (ps_lgetregs): Search all_processes instead of
21001 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21003 * server.c (start_inferior): Change return type to int.
21004 (attach_inferior): Change sigptr to int *.
21005 (handle_v_cont, handle_v_requests): Change signal to int *.
21006 (main): Change signal to int.
21008 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
21010 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
21011 * configure.srv: Add m32r*-*-linux*.
21012 * linux-m32r-low.c: New file.
21014 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
21016 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
21018 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21020 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
21021 Take unsigned long arguments for PIDs.
21022 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
21023 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
21024 (wait_for_sigstop, linux_resume_one_process)
21025 (regsets_fetch_inferior_registers, linux_send_signal)
21026 (linux_read_auxv): Likewise. Update the types of variables holding
21027 PIDs. Update format string specifiers.
21028 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
21029 * remote-utils.c (prepare_resume_reply): Likewise.
21030 * server.c (cont_thread, general_thread, step_thread)
21031 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
21033 (handle_query): Update format specifiers.
21034 (handle_v_cont, main): Use strtoul for thread IDs.
21035 * server.h (struct inferior_list_entry): Use unsigned long for ID.
21036 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
21037 (general_thread, step_thread, thread_from_wait)
21038 (old_thread_from_wait): Update.
21039 * target.h (struct thread_resume): Use unsigned long for THREAD.
21040 (struct target_ops): Use unsigned long for arguments to attach and
21043 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
21045 * acinclude.m4: Include bfd/bfd.m4 directly.
21046 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
21047 <agriffis@toolchain.org>.
21048 * aclocal.m4, configure: Regenerated.
21050 2005-01-07 Andrew Cagney <cagney@gnu.org>
21052 * configure.ac: Rename configure.in, require autoconf 2.59.
21053 * configure: Re-generate.
21055 2004-12-08 Daniel Jacobowitz <dan@debian.org>
21057 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
21058 LIBS when finished.
21059 * aclocal.m4: Regenerated.
21060 * configure: Regenerated.
21062 2004-11-21 Andreas Schwab <schwab@suse.de>
21064 * linux-m68k-low.c (m68k_num_gregs): Define.
21065 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
21066 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
21067 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
21068 (m68k_breakpoint_at): New. Add to the_low_target.
21070 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
21071 srv_linux_thread_db to yes.
21073 2004-10-20 Joel Brobecker <brobecker@gnat.com>
21075 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
21076 (ARCH_SET_FS): Likewise.
21077 (ARCH_GET_FS): Likewise.
21078 (ARCH_GET_GS): Likewise.
21080 2004-10-16 Daniel Jacobowitz <dan@debian.org>
21082 * linux-i386-low.c (ps_get_thread_area): New.
21083 * linux-x86-64-low.c (ps_get_thread_area): New.
21084 * linux-low.c: Include <sys/syscall.h>.
21085 (linux_kill_one_process): Don't kill the first thread here.
21086 (linux_kill): Kill the first thread here.
21087 (kill_lwp): New function.
21088 (send_sigstop, linux_send_signal): Use it.
21089 * proc-service.c: Clean up #ifdefs.
21090 (fpregset_info): Delete.
21091 (ps_lgetregs): Update and enable implementation.
21092 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
21094 * remote-utils.c (struct sym_cache, symbol_cache): New.
21095 (input_interrupt): Print a clearer message.
21096 (async_io_enabled): New variable.
21097 (enable_async_io, disable_async_io): Use it. Update comments.
21098 (look_up_one_symbol): Use the symbol cache.
21099 * thread-db.c (thread_db_look_up_symbols): New function.
21100 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
21102 2004-10-16 Daniel Jacobowitz <dan@debian.org>
21104 * configure.in: Test for -rdynamic.
21105 * configure: Regenerated.
21106 * Makefile (INTERNAL_LDFLAGS): New.
21107 (gdbserver, gdbreplay): Use it.
21109 2004-09-02 Andrew Cagney <cagney@gnu.org>
21111 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
21113 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
21115 * linux-low.c (linux_wait): Clear all_processes list also.
21117 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
21119 * linux-low.c: Include <errno.h>. Remove extern declaration of
21122 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
21124 * gdbreplay.c, server.h, utils.c: Update copyright years.
21126 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21128 * server.c (main): Print child status or termination signal from
21129 variable 'signal', not 'sig'.
21131 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21133 * linux-low.c (linux_read_memory): Change return type to
21134 int. Check for and return error from ptrace().
21135 * target.c (read_inferior_memory): Change return type to int. Pass
21136 back return status from the_target->read_memory().
21137 * target.h (struct target_ops): Adapt *read_memory() prototype.
21139 (read_inferior_memory): Adapt prototype.
21140 * server.c (main): Return an error packet if
21141 read_inferior_memory() returns an error.
21143 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
21145 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
21146 Unify with other clean targets.
21148 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21150 * server.c (handle_v_cont): Call set_desired_inferior.
21152 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21154 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
21156 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21158 * linux-low.c (linux_wait): Unblock async I/O.
21159 (linux_resume): Block and enable async I/O.
21160 * remote-utils.c (block_async_io, unblock_async_io): New functions.
21161 * server.h (block_async_io, unblock_async_io): Add prototypes.
21163 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21165 * remote-utils.c (remote_open): Print a status notice after
21166 opening a TCP port.
21167 * server.c (attach_inferior): Print a status notice after
21170 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21172 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
21174 2004-02-26 Daniel Jacobowitz <drow@mvista.com>
21176 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
21178 * server.c, target.h: Update copyright years.
21180 2004-02-25 Roland McGrath <roland@redhat.com>
21182 * target.h (struct target_ops): New member `read_auxv'.
21183 * server.c (handle_query): Handle qPart:auxv:read: query using that.
21184 * linux-low.c (linux_read_auxv): New function.
21185 (linux_target_ops): Initialize `read_auxv' member to that.
21187 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21189 Committed by Jim Blandy <jimb@redhat.com>.
21191 * linux-s390-low.c (s390_num_regs): Update.
21192 (s390_regmap): Remove control registers. Use __s390x__ predefine
21193 instead of GPR_SIZE to distiguish s390 and s390x targets.
21195 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
21197 * linux-low.c: Update copyright year.
21198 (check_removed_breakpoint): Clear pending_is_breakpoint.
21199 (linux_set_resume_request, linux_queue_one_thread)
21200 (resume_status_pending_p): New functions.
21201 (linux_continue_one_thread): Use process->resume.
21202 (linux_resume): Only resume threads if there are no pending events.
21203 * linux-low.h (struct process_info): Add resume request
21206 2004-01-30 Daniel Jacobowitz <drow@mvista.com>
21208 * regcache.c (new_register_cache): Clear the allocated register
21209 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
21211 2003-10-13 Daniel Jacobowitz <drow@mvista.com>
21213 * linux-low.c (linux_resume): Take a struct thread_resume *
21215 (linux_wait): Update call.
21216 (resume_ptr): New static variable.
21217 (linux_continue_one_thread): Renamed from
21218 linux_continue_one_process. Use resume_ptr.
21219 (linux_resume): Use linux_continue_one_thread.
21220 * server.c (handle_v_cont, handle_v_requests): New functions.
21221 (myresume): New function.
21222 (main): Handle 'v' case.
21223 * target.h (struct thread_resume): New type.
21224 (struct target_ops): Change argument of "resume" to struct
21226 (myresume): Delete macro.
21228 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
21230 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
21231 (uninstall): Support DESTDIR.
21233 Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
21235 * configure.srv: Add xscale*linux copy of arm*linux entry.
21237 2003-07-24 Daniel Jacobowitz <drow@mvista.com>
21239 * linux-arm-low.c (arm_reinsert_addr): New function.
21240 (the_low_target): Add arm_reinsert_addr.
21242 2003-07-08 Mark Kettenis <kettenis@gnu.org>
21244 * mem-break.c: Remove whitespace at end of file.
21246 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
21248 * configure.in: Check whether we need to prototype strerror.
21249 * server.h: Optionally prototype strerror.
21250 * gdbreplay.c (perror_with_name): Use strerror.
21251 * linux-low.c (linux_attach_lwp): Use strerror.
21252 * utils.c (perror_with_name): Use strerror.
21253 * config.in, configure: Regenerated.
21255 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
21257 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
21258 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
21260 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
21262 * Makefile.in (SFILES): Update.
21263 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
21264 low-sun3.c: Remove files.
21266 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
21268 * linux-low.c: Move comment to linux_thread_alive where it belonged.
21269 (linux_detach_one_process, linux_detach): New functions.
21270 (linux_target_ops): Add linux_detach.
21271 * server.c (main): Handle 'D' packet.
21272 * target.h (struct target_ops): Add "detach" member.
21273 (detach_inferior): Define.
21275 2003-06-13 Mark Kettenis <kettenis@gnu.org>
21277 From Kelley Cook <kelleycook@wideopenwest.com>:
21278 * configure.srv: Accept i[34567]86 variants.
21280 2003-06-05 Daniel Jacobowitz <drow@mvista.com>
21282 * linux-low.c (linux_wait_for_event): Correct comment typos.
21283 (linux_resume_one_process): Call check_removed_breakpoint.
21284 (linux_send_signal): New function.
21285 (linux_target_ops): Add linux_send_signal.
21286 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
21288 * target.h (struct target_ops): Add send_signal.
21290 2003-05-29 Jim Blandy <jimb@redhat.com>
21292 * linux-low.c (usr_store_inferior_registers): Transfer buf in
21293 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
21294 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
21295 away part of the register's value.
21297 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
21299 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
21300 (linux_wait_for_event, linux_init_signals): Likewise.
21302 2003-03-17 Daniel Jacobowitz <drow@mvista.com>
21304 * configure.in: Check for stdlib.h.
21305 * configure: Regenerated.
21306 * config.in: Regenerated.
21308 2003-01-04 Andreas Schwab <schwab@suse.de>
21310 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
21312 2003-01-02 Andrew Cagney <ac131313@redhat.com>
21314 * Makefile.in: Remove obsolete code.
21316 2002-11-20 Daniel Jacobowitz <drow@mvista.com>
21318 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
21319 defined(PT_FPR0_HI).
21321 2002-11-17 Stuart Hughes <seh@zee2.com>
21323 * linux-arm-low.c (arm_num_regs): Increase.
21324 (arm_regmap): Include status register.
21326 2002-11-17 Daniel Jacobowitz <drow@mvista.com>
21328 * linux-low.c (register_addr): Remove incorrect -1 check.
21330 2002-08-29 Daniel Jacobowitz <drow@mvista.com>
21332 * linux-low.c (linux_create_inferior): Call setpgid. Return
21334 (unstopped_p, linux_signal_pid): Remove.
21335 (linux_target_ops): Remove linux_signal_pid.
21336 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
21337 global instead of target method.
21338 * target.h (struct target_ops): Remove signal_pid. Update comment
21339 for create_inferior.
21340 * server.c (signal_pid): New variable.
21341 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
21342 gdbserver. Set the child to be the foreground process group.
21343 (attach_inferior): Set signal_pid.
21345 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
21347 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
21349 2002-08-20 Jim Blandy <jimb@redhat.com>
21351 * Makefile.in (LDFLAGS): Allow the configure script to establish a
21354 2002-08-01 Andrew Cagney <cagney@redhat.com>
21356 * Makefile.in: Make chill references obsolete.
21358 2002-07-24 Kevin Buettner <kevinb@redhat.com>
21360 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
21361 * configure: Regenerate.
21362 * config.in: Regenerate.
21364 2002-07-09 David O'Brien <obrien@FreeBSD.org>
21366 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
21367 (perror_with_name, remote_close, remote_open, expect, play): Static.
21369 2002-07-04 Michal Ludvig <mludvig@suse.cz>
21371 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
21372 byte offsets instead of an array of indexes.
21373 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
21375 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
21377 * regcache.c: Add comment.
21379 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
21381 * thread-db.c: New file.
21382 * proc-service.c: New file.
21383 * acinclude.m4: New file.
21384 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
21385 proc-service.o, and thread-db.o.
21386 (linux-low.o): Add USE_THREAD_DB.
21387 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
21388 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
21389 * aclocal.m4: Regenerated.
21390 * config.in: Regenerated.
21391 * configure: Regenerated.
21392 * configure.in: Check for proc_service.h, sys/procfs.h,
21393 thread_db.h, and linux/elf.h headrs.
21394 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
21395 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
21396 Check for -lthread_db and thread support.
21397 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
21398 PowerPC, and SuperH.
21399 * i387-fp.c: Constify arguments.
21400 * i387-fp.h: Likewise.
21401 * inferiors.c: (struct thread_info): Renamed from
21402 `struct inferior_info'. Remove PID member. Use generic inferior
21403 list header. All uses updated.
21404 (inferiors, signal_pid): Removed.
21405 (all_threads): New variable.
21406 (get_thread): Define.
21407 (add_inferior_to_list): New function.
21408 (for_each_inferior): New function.
21409 (change_inferior_id): New function.
21410 (add_inferior): Removed.
21411 (remove_inferior): New function.
21412 (add_thread): New function.
21413 (free_one_thread): New function.
21414 (remove_thread): New function.
21415 (clear_inferiors): Use for_each_inferior and free_one_thread.
21416 (find_inferior): New function.
21417 (find_inferior_id): New function.
21418 (inferior_target_data): Update argument type.
21419 (set_inferior_target_data): Likewise.
21420 (inferior_regcache_data): Likewise.
21421 (set_inferior_regcache_data): Likewise.
21422 * linux-low.c (linux_bp_reinsert): Remove.
21423 (all_processes, stopping_threads, using_thrads)
21424 (struct pending_signals, debug_threads, pid_of): New.
21425 (inferior_pid): Replace with macro.
21426 (struct inferior_linux_data): Remove.
21427 (get_stop_pc, add_process): New functions.
21428 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
21429 Use add_process and add_thread.
21430 (linux_attach_lwp): New function, based on old linux_attach. Use
21431 add_process and add_thread. Set stop_expected for new threads.
21432 (linux_attach): New function.
21433 (linux_kill_one_process): New function.
21434 (linux_kill): Kill all LWPs.
21435 (linux_thread_alive): Use find_inferior_id.
21436 (check_removed_breakpoints, status_pending_p): New functions.
21437 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
21438 Update. Use WNOHANG. Wait for cloned processes also. Update process
21439 struct for the found process.
21440 (linux_wait_for_event): New function.
21441 (linux_wait): Use it. Support LWPs.
21442 (send_sigstop, wait_for_sigstop, stop_all_processes)
21443 (linux_resume_one_process, linux_continue_one_process): New functions.
21444 (linux_resume): Support LWPs.
21445 (REGISTER_RAW_SIZE): Remove.
21446 (fetch_register): Use register_size instead. Call supply_register.
21447 (usr_store_inferior_registers): Likewise. Call collect_register.
21448 Fix recursive case.
21449 (regsets_fetch_inferior_registers): Improve error message.
21450 (regsets_store_inferior_registers): Add debugging.
21451 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
21452 (unstopped_p, linux_signal_pid): New functions.
21453 (linux_target_ops): Add linux_signal_pid.
21454 (linux_init_signals): New function.
21455 (initialize_low): Call it. Initialize using_threads.
21456 * regcache.c (inferior_regcache_data): Add valid
21458 (get_regcache): Fetch registers lazily. Add fetch argument
21459 and update all callers.
21460 (regcache_invalidate_one, regcache_invalidate): New
21462 (new_register_cache): Renamed from create_register_cache.
21463 Return the new regcache.
21464 (free_register_cache): Change argument to a void *.
21465 (registers_to_string, registers_from_string): Call get_regcache
21466 with fetch flag set.
21467 (register_data): Make static. Pass fetch flag to get_regcache.
21468 (supply_register): Call get_regcache with fetch flag clear.
21469 (collect_register): Call get_regcache with fetch flag set.
21470 (collect_register_as_string): New function.
21471 * regcache.h: Update.
21472 * remote-utils.c (putpkt): Flush after debug output and use
21474 Handle input interrupts while waiting for an ACK.
21475 (input_interrupt): Use signal_pid method.
21476 (getpkt): Flush after debug output and use stderr.
21477 (outreg): Use collect_register_as_string.
21478 (new_thread_notify, dead_thread_notify): New functions.
21479 (prepare_resume_reply): Check using_threads. Set thread_from_wait
21480 and general_thread.
21481 (look_up_one_symbol): Flush after debug output.
21482 * server.c (step_thread, server_waiting): New variables.
21483 (start_inferior): Don't use signal_pid. Update call to mywait.
21484 (attach_inferior): Update call to mywait.
21485 (handle_query): Handle qfThreadInfo and qsThreadInfo.
21486 (main): Don't fetch/store registers explicitly. Use
21487 set_desired_inferior. Support proposed ``Hs'' packet. Update
21489 * server.h: Update.
21490 (struct inferior_list, struct_inferior_list_entry): New.
21491 * target.c (set_desired_inferior): New.
21492 (write_inferior_memory): Constify.
21493 (mywait): New function.
21494 * target.h: Update.
21495 (struct target_ops): New signal_pid method.
21496 (mywait): Removed macro, added prototype.
21498 * linux-low.h (regset_func): Removed.
21499 (regset_fill_func, regset_store_func): New.
21500 (enum regset_type): New.
21501 (struct regset_info): Add type field. Use new operation types.
21502 (struct linux_target_ops): stop_pc renamed to get_pc.
21503 Add decr_pc_after_break and breakpoint_at.
21504 (get_process, get_thread_proess, get_process_thread)
21505 (strut process_info, all_processes, linux_attach_lwp)
21506 (thread_db_init): New.
21508 * linux-arm-low.c (arm_get_pc, arm_set_pc,
21509 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
21510 (the_low_target): Add new members.
21511 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
21512 (i386_store_fpxregset): Constify.
21513 (target_regsets): Add new kind identifier.
21514 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
21515 (i386_set_pc): Add debugging.
21516 (i386_breakpoint_at): New function.
21517 (the_low_target): Add new members.
21518 * linux-mips-low.c (mips_get_pc, mips_set_pc)
21519 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
21520 (mips_breakpoint_at): New.
21521 (the_low_target): Add new members.
21522 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
21523 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
21524 (the_low_target): Add new members.
21525 * linux-sh-low.c (sh_get_pc, sh_set_pc)
21526 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
21527 (the_low_target): Add new members.
21528 * linux-x86-64-low.c (target_regsets): Add new kind
21531 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
21533 From Martin Pool <mbp@samba.org>:
21534 * server.c (gdbserver_usage): New function.
21537 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
21539 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
21540 stop_at -> stop_pc.
21542 2002-05-04 Andrew Cagney <ac131313@redhat.com>
21544 * Makefile.in: Remove obsolete code.
21546 2002-04-24 Michal Ludvig <mludvig@suse.cz>
21548 * linux-low.c (regsets_fetch_inferior_registers),
21549 (regsets_store_inferior_registers): Removed cast to int from
21551 * regcache.h: Added declaration of struct inferior_info.
21553 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
21555 * inferiors.c (struct inferior_info): Add regcache_data.
21556 (add_inferior): Call create_register_cache.
21557 (clear_inferiors): Call free_register_cache.
21558 (inferior_regcache_data, set_inferior_regcache_data): New functions.
21559 * regcache.c (struct inferior_regcache_data): New.
21560 (registers): Remove.
21561 (get_regcache): New function.
21562 (create_register_cache, free_register_cache): New functions.
21563 (set_register_cache): Don't initialize the register cache here.
21564 (registers_to_string, registers_from_string, register_data): Call
21566 * regcache.h: Add prototypes.
21567 * server.h: Likewise.
21569 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
21571 * mem-break.c: New file.
21572 * mem-break.h: New file.
21573 * Makefile.in: Add mem-break.o rule; update server.h
21575 * inferiors.c (struct inferior_info): Add target_data
21577 (clear_inferiors): Free target_data member if set.
21578 (inferior_target_data, set_inferior_target_data): New functions.
21579 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
21580 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
21581 * linux-low.c (linux_bp_reinsert): New variable.
21582 (struct inferior_linux_data): New.
21583 (linux_create_inferior): Use set_inferior_target_data.
21584 (linux_attach): Likewise. Call add_inferior.
21585 (linux_wait_for_one_inferior): New function.
21586 (linux_wait): Call it.
21587 (linux_write_memory): Add const.
21588 (initialize_low): Call set_breakpoint_data.
21589 * linux-low.h (struct linux_target_ops): Add breakpoint
21591 * server.c (attach_inferior): Remove extra add_inferior
21593 * server.h: Include mem-break.h. Update inferior.c
21595 * target.c (read_inferior_memory)
21596 (write_inferior_memory): New functions.
21597 * target.h (read_inferior_memory)
21598 (write_inferior_memory): Change macros to prototypes.
21599 (struct target_ops): Update comments. Add const to write_memory
21602 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
21604 * linux-low.c (usr_store_inferior_registers): Support
21605 registers which are allowed to fail to store.
21606 * linux-low.h (linux_target_ops): Likewise.
21607 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
21608 (ppc_cannot_store_register): FPSCR may not be storable.
21610 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
21612 * server.h: Include <string.h> if HAVE_STRING_H.
21613 * ChangeLog: Correct paths in last ChangeLog entry.
21615 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
21617 * linux-low.h: Remove obsolete prototypes.
21618 (struct linux_target_ops): New.
21619 (extern the_low_target): New.
21620 * linux-low.c (num_regs, regmap): Remove declarations.
21621 (register_addr): Use the_low_target explicitly.
21622 (fetch_register): Likewise.
21623 (usr_fetch_inferior_registers): Likewise.
21624 (usr_store_inferior_registers): Likewise.
21625 * linux-arm-low.c (num_regs): Remove.
21626 (arm_num_regs): Define.
21627 (arm_regmap): Renamed from regmap, made static.
21628 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
21630 (arm_cannot_store_register): Renamed from cannot_store_register,
21632 (the_low_target): New.
21633 * linux-i386-low.c (num_regs): Remove.
21634 (i386_num_regs): Define.
21635 (i386_regmap): Renamed from regmap, made static.
21636 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
21638 (i386_cannot_store_register): Renamed from cannot_store_register,
21640 (the_low_target): New.
21641 * linux-ia64-low.c (num_regs): Remove.
21642 (ia64_num_regs): Define.
21643 (ia64_regmap): Renamed from regmap, made static.
21644 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
21646 (ia64_cannot_store_register): Renamed from cannot_store_register,
21648 (the_low_target): New.
21649 * linux-m68k-low.c (num_regs): Remove.
21650 (m68k_num_regs): Define.
21651 (m68k_regmap): Renamed from regmap, made static.
21652 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
21654 (m68k_cannot_store_register): Renamed from cannot_store_register,
21656 (the_low_target): New.
21657 * linux-mips-low.c (num_regs): Remove.
21658 (mips_num_regs): Define.
21659 (mips_regmap): Renamed from regmap, made static.
21660 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
21662 (mips_cannot_store_register): Renamed from cannot_store_register,
21664 (the_low_target): New.
21665 * linux-ppc-low.c (num_regs): Remove.
21666 (ppc_num_regs): Define.
21667 (ppc_regmap): Renamed from regmap, made static.
21668 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
21670 (ppc_cannot_store_register): Renamed from cannot_store_register,
21672 (the_low_target): New.
21673 * linux-s390-low.c (num_regs): Remove.
21674 (s390_num_regs): Define.
21675 (s390_regmap): Renamed from regmap, made static.
21676 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
21678 (s390_cannot_store_register): Renamed from cannot_store_register,
21680 (the_low_target): New.
21681 * linux-sh-low.c (num_regs): Remove.
21682 (sh_num_regs): Define.
21683 (sh_regmap): Renamed from regmap, made static.
21684 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
21686 (sh_cannot_store_register): Renamed from cannot_store_register,
21688 (the_low_target): New.
21689 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
21690 (the_low_target): New.
21692 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
21694 * Makefile.in: Add stamp-h target.
21695 * configure.in: Create stamp-h.
21696 * configure: Regenerated.
21698 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
21700 * inferiors.c: New file.
21701 * target.c: New file.
21702 * target.h: New file.
21703 * Makefile.in: Add target.o and inferiors.o. Update
21705 * linux-low.c (inferior_pid): New static variable,
21706 moved from server.c.
21707 (linux_create_inferior): Renamed from create_inferior.
21708 Call add_inferior. Return 0 on success instead of a PID.
21709 (linux_attach): Renamed from myattach.
21710 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
21711 (linux_thread_alive): Renamed from mythread_alive.
21712 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
21714 (linux_resume): Renamed from myresume. Add missing ``return 0''.
21715 (regsets_store_inferior_registers): Correct error message.
21716 Add missing ``return 0''.
21717 (linux_fetch_registers): Renamed from fetch_inferior_registers.
21718 (linux_store_registers): Renamed from store_inferior_registers.
21719 (linux_read_memory): Renamed from read_inferior_memory.
21720 (linux_write_memory): Renamed from write_inferior_memory.
21721 (linux_target_ops): New structure.
21722 (initialize_low): Call set_target_ops ().
21723 * remote-utils.c (unhexify): New function.
21724 (hexify): New function.
21725 (input_interrupt): Send signals to ``signal_pid''.
21726 * server.c (inferior_pid): Remove.
21727 (start_inferior): Update create_inferior call.
21728 (attach_inferior): Call add_inferior.
21729 (handle_query): New function.
21730 (main): Call handle_query for `q' packets.
21731 * server.h: Include "target.h". Remove obsolete prototypes.
21732 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
21734 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
21736 * Makefile.in: Add WARN_CFLAGS. Update configury
21738 * configure.in: Check for <string.h>
21739 * configure: Regenerate.
21740 * config.in: Regenerate.
21741 * gdbreplay.c: Include needed system headers.
21742 (remote_open): Remove strchr prototype.
21743 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
21744 * regcache.c (supply_register): Change buf argument to const void *.
21745 (supply_register_by_name): Likewise.
21746 (collect_register): Change buf argument to void *.
21747 (collect_register_by_name): Likewise.
21748 * regcache.h: Add missing prototypes.
21749 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
21750 * server.c (handle_query): New function.
21751 (attached): New static variable, moved out of main.
21752 (main): Quiet longjmp clobber warnings.
21753 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
21754 * utils.c (error): Remove NORETURN.