1 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3 Remote the 'supports_tracepoints' linux target op and let the
4 concrete linux target define it by overriding the op declared in
5 process_stratum_target.
7 * linux-low.h (struct linux_target_ops): Remove the op.
8 (class linux_process_target) <supports_tracepoints>: Remove.
9 * linux-low.cc (linux_process_target::supports_tracepoints): Remove.
10 * linux-x86-low.cc (class x86_target) <supports_tracepoints>:
12 (x86_supports_tracepoints): Turn into...
13 (x86_target::supports_tracepoints): ...this.
14 (the_low_target): Remove the op field.
15 * linux-aarch64-low.cc (class aarch64_target)
16 <supports_tracepoints>: Declare.
17 (aarch64_supports_tracepoints): Turn into...
18 (aarch64_target::supports_tracepoints): ...this.
19 (the_low_target): Remove the op field.
20 * linux-ppc-low.cc (class ppc_target) <supports_tracepoints>:
22 (ppc_supports_tracepoints): Turn into...
23 (ppc_target::supports_tracepoints): ...this.
24 (the_low_target): Remove the op field.
25 * linux-s390-low.cc (class s390_target) <supports_tracepoints>:
27 (s390_supports_tracepoints): Turn into...
28 (s390_target::supports_tracepoints): ...this.
29 (the_low_target): Remove the op field.
30 * linux-arm-low.cc (the_low_target): Remove the op field.
31 * linux-bfin-low.cc (the_low_target): Ditto.
32 * linux-crisv32-low.cc (the_low_target): Ditto.
33 * linux-m32r-low.cc (the_low_target): Ditto.
34 * linux-m68k-low.cc (the_low_target): Ditto.
35 * linux-sh-low.cc (the_low_target): Ditto.
36 * linux-tic6x-low.cc (the_low_target): Ditto.
37 * linux-tile-low.cc (the_low_target): Ditto.
38 * linux-xtensa-low.cc (the_low_target): Ditto.
40 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
42 Remove the 'process_qsupported' linux target op and let a concrete
43 linux target define the op by overriding the op declaration in
44 process_stratum_target.
46 * linux-low.h (struct linux_target_ops): Remove the op.
47 (class linux_process_target) <process_qsupported>: Remove.
48 * linux-low.cc (linux_process_target::process_qsupported): Remove.
49 * linux-x86-low.cc (class x86_target) <process_qsupported>: Declare.
50 (x86_linux_process_qsupported): Turn into...
51 (x86_target::process_qsupported): ...this.
52 (the_low_target): Remove the op field.
53 * linux-aarch64-low.cc (the_low_target): Remove the op
55 * linux-arm-low.cc (the_low_target): Ditto.
56 * linux-bfin-low.cc (the_low_target): Ditto.
57 * linux-crisv32-low.cc (the_low_target): Ditto.
58 * linux-m32r-low.cc (the_low_target): Ditto.
59 * linux-m68k-low.cc (the_low_target): Ditto.
60 * linux-ppc-low.cc (the_low_target): Ditto.
61 * linux-s390-low.cc (the_low_target): Ditto.
62 * linux-sh-low.cc (the_low_target): Ditto.
63 * linux-tic6x-low.cc (the_low_target): Ditto.
64 * linux-tile-low.cc (the_low_target): Ditto.
65 * linux-xtensa-low.cc (the_low_target): Ditto.
67 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
69 Turn the 'prepare_to_resume' linux target op into a method of
72 * linux-low.h (struct linux_target_ops): Remove the op.
73 (class linux_process_target) <low_prepare_to_resume>: Declare.
74 * linux-low.cc (linux_process_target::low_prepare_to_resume):
77 Update the callers below:
79 (linux_process_target::resume_one_lwp_throw)
80 (linux_process_target::low_prepare_to_resume)
82 * linux-x86-low.cc (class x86_target) <low_prepare_to_resume>:
84 (x86_target::low_prepare_to_resume): Define.
85 (the_low_target): Remove the op field.
86 * linux-aarch64-low.cc (class aarch64_target)
87 <low_prepare_to_resume>: Declare.
88 (aarch64_target::low_prepare_to_resume): Define.
89 (the_low_target): Remove the op field.
90 * linux-arm-low.cc (class arm_target) <low_prepare_to_resume>:
92 (arm_prepare_to_resume): Turn into...
93 (arm_target::low_prepare_to_resume): ...this.
94 (the_low_target): Remove the op field.
95 * linux-mips-low.cc (class mips_target) <low_prepare_to_resume>:
97 (mips_linux_prepare_to_resume): Turn into...
98 (mips_target::low_prepare_to_resume): ...this.
99 (the_low_target): Remove the op field.
100 * linux-bfin-low.cc (the_low_target): Remove the op field.
101 * linux-crisv32-low.cc (the_low_target): Ditto.
102 * linux-m32r-low.cc (the_low_target): Ditto.
103 * linux-m68k-low.cc (the_low_target): Ditto.
104 * linux-ppc-low.cc (the_low_target): Ditto.
105 * linux-s390-low.cc (the_low_target): Ditto.
106 * linux-sh-low.cc (the_low_target): Ditto.
107 * linux-tic6x-low.cc (the_low_target): Ditto.
108 * linux-tile-low.cc (the_low_target): Ditto.
109 * linux-xtensa-low.cc (the_low_target): Ditto.
111 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
113 Turn the 'new_process', 'delete_process', 'new_thread',
114 'delete_thread', and 'new_fork' linux target ops into methods
115 of linux_process_target.
117 * linux-low.h (struct linux_target_ops): Remove the ops.
118 (class linux_process_target) <add_linux_process>
123 <check_zombie_leaders>
129 <low_new_fork>: Declare.
130 * linux-low.cc (delete_lwp): Turn into...
131 (linux_process_target::delete_lwp): ...this.
132 (linux_process_target::low_delete_thread): Define.
133 (linux_add_process): Turn into...
134 (linux_process_target::add_linux_process): ...this.
135 (linux_process_target::low_new_process): Define.
136 (linux_process_target::low_delete_process): Define.
137 (linux_process_target::low_new_fork): Define.
138 (add_lwp): Turn into...
139 (linux_process_target::add_lwp): ...this.
140 (linux_process_target::low_new_thread): Define.
141 (linux_attach_lwp): Turn into...
142 (linux_process_target::attach_lwp): ...this.
143 (linux_detach_one_lwp): Turn into...
144 (linux_process_target::detach_one_lwp): ...this.
145 (linux_detach_lwp_callback): Remove and inline...
146 (linux_process_target::detach): ...here.
147 (check_zombie_leaders): Turn into...
148 (linux_process_target::check_zombie_leaders): ...this.
149 (filter_exit_event): Turn into...
150 (linux_process_target::filter_exit_event): ...this.
152 Update the callers below.
154 (linux_process_target::handle_extended_wait)
155 (linux_process_target::create_inferior)
156 (attach_proc_task_lwp_callback)
157 (linux_process_target::attach)
158 (linux_process_target::detach)
159 (linux_process_target::mourn)
160 * thread-db.cc (attach_thread)
162 * linux-x86-low.cc (class x86_target) <low_new_process>
166 <low_new_fork>: Declare.
167 (x86_linux_new_process): Turn into...
168 (x86_target::low_new_process): ...this.
169 (x86_linux_delete_process): Turn into...
170 (x86_target::low_delete_process): ...this.
171 (x86_target::low_new_thread): Define.
172 (x86_target::low_delete_thread): Define.
173 (x86_linux_new_fork): Turn into...
174 (x86_target::low_new_fork): ...this.
175 (the_low_target): Remove the op fields.
176 * linux-aarch64-low.cc (class aarch64_target) <low_new_process>
180 <low_new_fork>: Declare.
181 (aarch64_linux_new_process): Turn into...
182 (aarch64_target::low_new_process): ...this.
183 (aarch64_linux_delete_process): Turn into...
184 (aarch64_target::low_delete_process): ...this.
185 (aarch64_target::low_new_thread): Define.
186 (aarch64_target::low_delete_thread): Define.
187 (aarch64_linux_new_fork): Turn into...
188 (aarch64_target::low_new_fork): ...this.
189 (the_low_target): Remove the op fields.
190 * linux-arm-low.cc (class arm_target) <low_new_process>
194 <low_new_fork>: Declare.
195 (arm_new_process): Turn into...
196 (arm_target::low_new_process): ...this.
197 (arm_delete_process): Turn into...
198 (arm_target::low_delete_process): ...this.
199 (arm_new_thread): Turn into...
200 (arm_target::low_new_thread): ...this.
201 (arm_delete_thread): Turn into...
202 (arm_target::low_delete_thread): ...this.
203 (arm_new_fork): Turn into...
204 (arm_target::low_new_fork): ...this.
205 (the_low_target): Remove the op fields.
206 * linux-mips-low.cc (class mips_target) <low_new_process>
210 <low_new_fork>: Declare.
211 (mips_linux_new_process): Turn into...
212 (mips_target::low_new_process): ...this.
213 (mips_linux_delete_process): Turn into...
214 (mips_target::low_delete_process): ...this.
215 (mips_linux_new_thread): Turn into...
216 (mips_target::low_new_thread): ...this.
217 (mips_linux_delete_thread): Turn into...
218 (mips_target::low_delete_thread): ...this.
219 (mips_linux_new_fork): Turn into...
220 (mips_target::low_new_fork): ...this.
221 (the_low_target): Remove the op fields.
222 * linux-bfin-low.cc (the_low_target): Remove the op fields.
223 * linux-crisv32-low.cc (the_low_target): Ditto.
224 * linux-m32r-low.cc (the_low_target): Ditto.
225 * linux-m68k-low.cc (the_low_target): Ditto.
226 * linux-ppc-low.cc (the_low_target): Ditto.
227 * linux-s390-low.cc (the_low_target): Ditto.
228 * linux-sh-low.cc (the_low_target): Ditto.
229 * linux-tic6x-low.cc (the_low_target): Ditto.
230 * linux-tile-low.cc (the_low_target): Ditto.
231 * linux-xtensa-low.cc (the_low_target): Ditto.
233 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
235 Turn the 'siginfo_fixup' linux target op into a method of
236 linux_process_target.
238 * linux-low.h (struct linux_target_ops): Remove the op.
239 (class linux_process_target) <siginfo_fixup>
240 <low_siginfo_fixup>: Declare.
241 * linux-low.cc (siginfo_fixup): Turn into...
242 (linux_process_target::siginfo_fixup): ...this.
243 (linux_process_target::low_siginfo_fixup): Define.
244 * linux-x86-low.cc (class x86_target) <low_siginfo_fixup>: Declare.
245 (x86_siginfo_fixup): Turn into...
246 (x86_target::low_siginfo_fixup): ...this.
247 (the_low_target): Remove the op field.
248 * linux-aarch64-low.cc (class aarch64_target):
249 <low_siginfo_fixup>: Declare.
250 (aarch64_linux_siginfo_fixup): Turn into...
251 (aarch64_target::low_siginfo_fixup): ...this.
252 (the_low_target): Remove the op field.
253 * linux-arm-low.cc (the_low_target): Remove the op field.
254 * linux-bfin-low.cc (the_low_target): Ditto.
255 * linux-crisv32-low.cc (the_low_target): Ditto.
256 * linux-m32r-low.cc (the_low_target): Ditto.
257 * linux-m68k-low.cc (the_low_target): Ditto.
258 * linux-mips-low.cc (the_low_target): Ditto.
259 * linux-ppc-low.cc (the_low_target): Ditto.
260 * linux-s390-low.cc (the_low_target): Ditto.
261 * linux-sh-low.cc (the_low_target): Ditto.
262 * linux-tic6x-low.cc (the_low_target): Ditto.
263 * linux-tile-low.cc (the_low_target): Ditto.
264 * linux-xtensa-low.cc (the_low_target): Ditto.
266 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
268 Turn the 'collect_ptrace_register' and 'supply_ptrace_register'
269 linux target ops into methods of linux_process_target.
271 * linux-low.h (struct linux_target_ops): Remove the ops.
272 (class linux_process_target) <low_collect_ptrace_register>
273 <low_store_ptrace_register>: Declare.
274 * linux-low.cc (linux_process_target::low_collect_ptrace_register)
275 (linux_process_target::low_supply_ptrace_register): Define.
277 Update the callers below.
279 (linux_process_target::fetch_register)
280 (linux_process_target::store_register)
282 * linux-x86-low.cc (the_low_target): Remove the op fields.
283 * linux-aarch64-low.cc (the_low_target): Ditto.
284 * linux-arm-low.cc (the_low_target): Ditto.
285 * linux-bfin-low.cc (the_low_target): Ditto.
286 * linux-crisv32-low.cc (the_low_target): Ditto.
287 * linux-m32r-low.cc (the_low_target): Ditto.
288 * linux-m68k-low.cc (the_low_target): Ditto.
289 * linux-sh-low.cc (the_low_target): Ditto.
290 * linux-sparc-low.cc (the_low_target): Ditto.
291 * linux-tic6x-low.cc (the_low_target): Ditto.
292 * linux-tile-low.cc (the_low_target): Ditto.
293 * linux-xtensa-low.cc (the_low_target): Ditto.
294 * linux-mips-low.cc (class mips_target)
295 <low_collect_ptrace_register>
296 <low_supply_ptrace_register>: Declare.
297 (mips_collect_ptrace_register): Turn into ...
298 (mips_target::low_collect_ptrace_register): ...this.
299 (mips_supply_ptrace_register): Turn into...
300 (mips_target::low_supply_ptrace_register): ...this.
301 (the_low_target): Remove the op fields.
302 * linux-ppc-low.cc (class ppc_target)
303 <low_collect_ptrace_register>
304 <low_supply_ptrace_register>: Declare.
305 (ppc_collect_ptrace_register): Turn into ...
306 (ppc_target::low_collect_ptrace_register): ...this.
307 (ppc_supply_ptrace_register): Turn into ...
308 (ppc_target::low_supply_ptrace_register): ...this.
309 (ppc_fill_gregset): Update for the calls to
310 low_collect_ptrace_register.
311 (the_low_target): Remove the op fields.
312 * linux-s390-low.cc (class s390_target)
313 <low_collect_ptrace_register>
314 <low_supply_ptrace_register>: Declare.
315 (s390_collect_ptrace_register): Turn into ...
316 (s390_target::low_collect_ptrace_register): ...this.
317 (s390_supply_ptrace_register): Turn into ...
318 (s390_target::low_supply_ptrace_register): ...this.
319 (s390_fill_gregset): Update for the calls to
320 low_collect_ptrace_register.
321 (the_low_target): Remove the op fields.
323 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
325 Turn the 'stopped_by_watchpoint' and 'stopped_data_address' linux
326 target ops into methods of linux_process_target.
328 * linux-low.h (struct linux_target_ops): Remove the ops.
329 (class linux_process_target) <check_stopped_by_watchpoint>
330 <low_stopped_by_watchpoint>
331 <low_stopped_data_address>: Declare.
332 * linux-low.cc (check_stopped_by_watchpoint): Turn into...
333 (linux_process_target::check_stopped_by_watchpoint): ...this.
334 (linux_process_target::low_stopped_by_watchpoint): Define.
335 (linux_process_target::low_stopped_data_address): Define.
336 * linux-x86-low.cc (class x86_target) <low_stopped_by_watchpoint>
337 <low_stopped_data_address>: Declare.
338 (x86_stopped_by_watchpoint): Turn into...
339 (x86_target::low_stopped_by_watchpoint): ...this.
340 (x86_stopped_data_address): Turn into...
341 (x86_target::low_stopped_data_address): ...this.
342 (the_low_target): Remove the op fields.
343 * linux-aarch64-low.cc (class aarch64_target)
344 <low_stopped_by_watchpoint>
345 <low_stopped_data_address>: Declare.
346 (aarch64_stopped_by_watchpoint): Turn into...
347 (aarch64_target::low_stopped_by_watchpoint): ...this.
348 (aarch64_stopped_data_address): Turn into...
349 (aarch64_target::low_stopped_data_address): ...this.
350 (the_low_target): Remove the op fields.
351 * linux-arm-low.cc (class arm_target) <low_stopped_by_watchpoint>
352 <low_stopped_data_address>: Declare.
353 (arm_stopped_by_watchpoint): Turn into...
354 (arm_target::low_stopped_by_watchpoint): ...this.
355 (arm_stopped_data_address): Turn into...
356 (arm_target::low_stopped_data_address): ...this.
357 (the_low_target): Remove the op fields.
358 * linux-crisv32-low.cc (class crisv32_target)
359 <low_stopped_by_watchpoint>
360 <low_stopped_data_address>: Declare.
361 (cris_stopped_by_watchpoint): Turn into...
362 (crisv32_target::low_stopped_by_watchpoint): ...this.
363 (cris_stopped_data_address): Turn into...
364 (crisv32_target::low_stopped_data_address): ...this.
365 (the_low_target): Remove the op fields.
366 * linux-mips-low.cc (class mips_target) <low_stopped_by_watchpoint>
367 <low_stopped_data_address>: Declare.
368 (mips_stopped_by_watchpoint): Turn into...
369 (mips_target::low_stopped_by_watchpoint): ...this.
370 (mips_stopped_data_address): Turn into...
371 (mips_target::low_stopped_data_address): ...this.
372 (the_low_target): Remove the op fields.
373 * linux-bfin-low.cc (the_low_target): Remove the op fields.
374 * linux-m32r-low.cc (the_low_target): Ditto.
375 * linux-m68k-low.cc (the_low_target): Ditto.
376 * linux-ppc-low.cc (the_low_target): Ditto.
377 * linux-s390-low.cc (the_low_target): Ditto.
378 * linux-sh-low.cc (the_low_target): Ditto.
379 * linux-sparc-low.cc (the_low_target): Ditto.
380 * linux-tic6x-low.cc (the_low_target): Ditto.
381 * linux-tile-low.cc (the_low_target): Ditto.
382 * linux-xtensa-low.cc (the_low_target): Ditto.
384 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
386 Turn the 'insert_point' and 'remove_point' linux target ops into
387 methods of linux_process_target.
389 * linux-low.h (struct linux_target_ops): Remove the ops.
390 (class linux_process_target) <low_insert_point>
391 <low_remove_point>: Declare.
392 * linux-low.cc (linux_process_target::low_insert_point)
393 (linux_process_target::low_remove_point): Define.
394 (linux_process_target::insert_point)
395 (linux_process_target::remove_point): Update for calls to
396 low_insert_point and low_remove_point.
397 * linux-x86-low.cc (class x86_target) <low_insert_point>
398 <low_remove_point>: Declare.
399 (x86_insert_point): Turn into...
400 (x86_target::low_insert_point): ...this.
401 (x86_remove_point): Turn into...
402 (x86_target::low_remove_point): ...this.
403 (the_low_target): Remove the op fields.
404 * linux-aarch64-low.cc (class aarch64_target) <low_insert_point>
405 <low_remove_point>: Declare.
406 (aarch64_insert_point): Turn into...
407 (aarch64_target::low_insert_point): ...this.
408 (aarch64_remove_point): Turn into...
409 (aarch64_target::low_remove_point): ...this.
410 (the_low_target): Remove the op fields.
411 * linux-arm-low.cc (class arm_target) <low_insert_point>
412 <low_remove_point>: Declare.
413 (arm_insert_point): Turn into...
414 (arm_target::low_insert_point): ...this.
415 (arm_remove_point): Turn into...
416 (arm_target::low_remove_point): ...this.
417 (the_low_target): Remove the op fields.
418 * linux-crisv32-low.cc (class crisv32_target) <low_insert_point>
419 <low_remove_point>: Declare.
420 (crisv32_insert_point): Turn into...
421 (crisv32_target::low_insert_point): ...this.
422 (crisv32_remove_point): Turn into...
423 (crisv32_target::low_remove_point): ...this.
424 (the_low_target): Remove the op fields.
425 * linux-mips-low.cc (class mips_target) <low_insert_point>
426 <low_remove_point>: Declare.
427 (mips_insert_point): Turn into...
428 (mips_target::low_insert_point): ...this.
429 (mips_remove_point): Turn into...
430 (mips_target::low_remove_point): ...this.
431 (the_low_target): Remove the op fields.
432 * linux-ppc-low.cc (class ppc_target) <low_insert_point>
433 <low_remove_point>: Declare.
434 (ppc_insert_point): Turn into...
435 (ppc_target::low_insert_point): ...this.
436 (ppc_remove_point): Turn into...
437 (ppc_target::low_remove_point): ...this.
438 (the_low_target): Remove the op fields.
439 * linux-bfin-low.cc (the_low_target): Remove the op fields.
440 * linux-m32r-low.cc (the_low_target): Ditto.
441 * linux-m68k-low.cc (the_low_target): Ditto.
442 * linux-s390-low.cc (the_low_target): Ditto.
443 * linux-sh-low.cc (the_low_target): Ditto.
444 * linux-sparc-low.cc (the_low_target): Ditto.
445 * linux-tic6x-low.cc (the_low_target): Ditto.
446 * linux-tile-low.cc (the_low_target): Ditto.
447 * linux-xtensa-low.cc (the_low_target): Ditto.
449 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
451 Remove the 'supports_z_point_type' linux target op and let the
452 concrete linux target define it by overriding the op declared in
453 process_stratum_target.
455 * linux-low.cc (linux_process_target::supports_z_point_type):
457 * linux-low.h (struct linux_target_ops): Remove the op.
458 (class linux_process_target) <supports_z_point_type>: Remove.
459 * linux-x86-low.cc (class x86_target) <supports_z_point_type>:
461 (x86_supports_z_point_type): Turn into...
462 (x86_target::supports_z_point_type): ...this.
463 (the_low_target): Remove the op field.
464 * linux-aarch64-low.cc (class aarch64_target)
465 <supports_z_point_type>: Declare.
466 (aarch64_supports_z_point_type): Turn into...
467 (aarch64_target::supports_z_point_type): ...this.
468 (the_low_target): Remove the op field.
469 * linux-arm-low.cc (class arm_target) <supports_z_point_type>:
471 (arm_supports_z_point_type): Turn into...
472 (arm_target::supports_z_point_type): ...this.
473 (the_low_target): Remove the op field.
474 * linux-crisv32-low.cc (class crisv32_target)
475 <supports_z_point_type>: Declare.
476 (cris_supports_z_point_type): Turn into...
477 (crisv32_target::supports_z_point_type): ...this.
478 (the_low_target): Remove the op field.
479 * linux-mips-low.cc (class mips_target) <supports_z_point_type>:
481 (mips_supports_z_point_type): Turn into...
482 (mips_target::supports_z_point_type): ...this.
483 (the_low_target): Remove the op field.
484 * linux-ppc-low.cc (class ppc_target) <supports_z_point_type>:
486 (ppc_supports_z_point_type): Turn into...
487 (ppc_target::supports_z_point_type): ...this.
488 (the_low_target): Remove the op field.
489 * linux-s390-low.cc (class s390_target) <supports_z_point_type>:
491 (s390_supports_z_point_type): Turn into...
492 (s390_target::supports_z_point_type): ...this.
493 (the_low_target): Remove the op field.
494 * linux-bfin-low.cc (the_low_target): Remove the op field.
495 * linux-m32r-low.cc (the_low_target): Ditto.
496 * linux-m68k-low.cc (the_low_target): Ditto.
497 * linux-sh-low.cc (the_low_target): Ditto.
498 * linux-sparc-low.cc (the_low_target): Ditto.
499 * linux-tic6x-low.cc (the_low_target): Ditto.
500 * linux-tile-low.cc (the_low_target): Ditto.
501 * linux-xtensa-low.cc (the_low_target): Ditto.
503 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
505 Turn the 'breakpoint_at' linux target op into a method of
506 linux_process_target.
508 * linux-low.h (struct linux_target_ops): Remove the op.
509 (class linux_process_target) <low_breakpoint_at>: Declare.
511 Update the callers below:
513 * linux-low.cc (linux_process_target::save_stop_reason)
514 (linux_process_target::thread_still_has_status_pending)
515 (linux_process_target::wait_1)
517 * linux-x86-low.cc (class x86_target)
518 <low_breakpoint_at>: Declare.
519 (x86_breakpoint_at): Turn into...
520 (x86_target::low_breakpoint_at): ...this.
521 (the_low_target): Remove the op field.
522 * linux-aarch64-low.cc (class aarch64_target)
523 <low_breakpoint_at>: Declare.
524 (aarch64_breakpoint_at): Turn into...
525 (aarch64_target::low_breakpoint_at): ...this.
526 (the_low_target): Remove the op field.
527 * linux-arm-low.cc (class arm_target)
528 <low_breakpoint_at>: Declare.
529 (arm_target::low_breakpoint_at): Define.
530 (the_low_target): Remove the op field.
531 * linux-bfin-low.cc (class bfin_target)
532 <low_breakpoint_at>: Declare.
533 (bfin_breakpoint_at): Turn into...
534 (bfin_target::low_breakpoint_at): ...this.
535 (the_low_target): Remove the op field.
536 * linux-cris-low.cc (class cris_target)
537 <low_breakpoint_at>: Declare.
538 (cris_breakpoint_at): Turn into...
539 (cris_target::low_breakpoint_at): ...this.
540 (the_low_target): Remove the op field.
541 * linux-crisv32-low.cc (class crisv32_target)
542 <low_breakpoint_at>: Declare.
543 (crisv32_breakpoint_at): Turn into...
544 (crisv32_target::low_breakpoint_at): ...this.
545 (the_low_target): Remove the op field.
546 * linux-ia64-low.cc (class ia64_target)
547 <low_breakpoint_at>: Declare.
548 (ia64_target::low_breakpoint_at): Define.
549 * linux-m32r-low.cc (class m32r_target)
550 <low_breakpoint_at>: Declare.
551 (m32r_breakpoint_at): Turn into...
552 (m32r_target::low_breakpoint_at): ...this.
553 (the_low_target): Remove the op field.
554 * linux-m68k-low.cc (class m68k_target)
555 <low_breakpoint_at>: Declare.
556 (m68k_breakpoint_at): Turn into...
557 (m68k_target::low_breakpoint_at): ...this.
558 (the_low_target): Remove the op field.
559 * linux-mips-low.cc (class mips_target)
560 <low_breakpoint_at>: Declare.
561 (mips_breakpoint_at): Turn into...
562 (mips_target::low_breakpoint_at): ...this.
563 (the_low_target): Remove the op field.
564 * linux-nios2-low.cc (class nios2_target)
565 <low_breakpoint_at>: Declare.
566 (nios2_breakpoint_at): Turn into...
567 (nios2_target::low_breakpoint_at): ...this.
568 (the_low_target): Remove the op field.
569 * linux-ppc-low.cc (class ppc_target)
570 <low_breakpoint_at>: Declare.
571 (ppc_breakpoint_at): Turn into...
572 (ppc_target::low_breakpoint_at): ...this.
573 (the_low_target): Remove the op field.
574 * linux-riscv-low.cc (class riscv_target)
575 <low_breakpoint_at>: Declare.
576 (riscv_breakpoint_at): Turn into...
577 (riscv_target::low_breakpoint_at): ...this.
578 (the_low_target): Remove the op field.
579 * linux-s390-low.cc (class s390_target)
580 <low_breakpoint_at>: Declare.
581 (s390_breakpoint_at): Turn into...
582 (s390_target::low_breakpoint_at): ...this.
583 (the_low_target): Remove the op field.
584 * linux-sh-low.cc (class sh_target)
585 <low_breakpoint_at>: Declare.
586 (sh_breakpoint_at): Turn into...
587 (sh_target::low_breakpoint_at): ...this.
588 (the_low_target): Remove the op field.
589 * linux-sparc-low.cc (class sparc_target)
590 <low_breakpoint_at>: Declare.
591 (sparc_breakpoint_at): Turn into...
592 (sparc_target::low_breakpoint_at): ...this.
593 (the_low_target): Remove the op field.
594 * linux-tic6x-low.cc (class tic6x_target)
595 <low_breakpoint_at>: Declare.
596 (tic6x_breakpoint_at): Turn into...
597 (tic6x_target::low_breakpoint_at): ...this.
598 (the_low_target): Remove the op field.
599 * linux-tile-low.cc (class tile_target)
600 <low_breakpoint_at>: Declare.
601 (tile_breakpoint_at): Turn into...
602 (tile_target::low_breakpoint_at): ...this.
603 (the_low_target): Remove the op field.
604 * linux-xtensa-low.cc (class xtensa_target)
605 <low_breakpoint_at>: Declare.
606 (xtensa_breakpoint_at): Turn into...
607 (xtensa_target::low_breakpoint_at): ...this.
608 (the_low_target): Remove the op field.
610 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
612 Turn the 'decr_pc_after_break' linux_target_ops field into
613 a method of linux_process_target.
615 * linux-low.h (struct linux_target_ops)
616 <decr_pc_after_break>: Remove.
617 (class linux_process_target) <low_decr_pc_after_break>: New method
619 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
620 New method implementation.
622 Update the users below.
624 (linux_process_target::save_stop_reason)
625 (linux_process_target::wait_1)
626 * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
628 (x86_target::low_decr_pc_after_break): New method implementation.
629 (the_low_target): Remove the field.
630 * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
632 (bfin_target::low_decr_pc_after_break): New method implementation.
633 (the_low_target): Remove the field.
634 * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
636 (m68k_target::low_decr_pc_after_break): New method implementation.
637 (the_low_target): Remove the field.
638 * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
640 (s390_target::low_decr_pc_after_break): New method implementation.
641 (the_low_target): Remove the field.
642 * linux-aarch64-low.cc (the_low_target): Remove the field.
643 * linux-arm-low.cc (the_low_target): Remove the field.
644 * linux-cris-low.cc (the_low_target): Remove the field.
645 * linux-crisv32-low.cc (the_low_target): Remove the field.
646 * linux-m32r-low.cc (the_low_target): Remove the field.
647 * linux-mips-low.cc (the_low_target): Remove the field.
648 * linux-nios2-low.cc (the_low_target): Remove the field.
649 * linux-ppc-low.cc (the_low_target): Remove the field.
650 * linux-riscv-low.cc (the_low_target): Remove the field.
651 * linux-sh-low.cc (the_low_target): Remove the field.
652 * linux-sparc-low.cc (the_low_target): Remove the field.
653 * linux-tic6x-low.cc (the_low_target): Remove the field.
654 * linux-tile-low.cc (the_low_target): Remove the field.
655 * linux-xtensa-low.cc (the_low_target): Remove the field.
657 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
659 Remove the 'supports_software_single_step' linux target op and let
660 the concrete linux target define it by overriding the op in
661 process_stratum_target.
662 Turn the 'get_next_pcs' linux target op into a method of
663 linux_process_target.
665 * linux-low.h (struct linux_target_ops): Remove the ops.
666 (class linux_process_target) <supports_software_single_step>:
668 <low_get_next_pcs>: Declare.
669 * linux-low.cc (can_software_single_step): Remove.
670 (linux_process_target::low_get_next_pcs): Define.
671 (linux_process_target::supports_software_single_step): Remove.
673 Update the callers below.
675 (linux_process_target::handle_extended_wait)
676 (linux_process_target::wait_1)
677 (linux_process_target::install_software_single_step_breakpoints)
678 (linux_process_target::single_step)
679 (linux_process_target::thread_needs_step_over)
680 (linux_process_target::proceed_one_lwp)
681 (linux_process_target::supports_range_stepping)
683 * linux-x86-low.cc (the_low_target): Remove the op field.
684 * linux-aarch64-low.cc (the_low_target): Ditto.
685 * linux-bfin-low.cc (the_low_target): Ditto.
686 * linux-cris-low.cc (the_low_target): Ditto.
687 * linux-crisv32-low.cc (the_low_target): Ditto.
688 * linux-m32r-low.cc (the_low_target): Ditto.
689 * linux-m68k-low.cc (the_low_target): Ditto.
690 * linux-mips-low.cc (the_low_target): Ditto.
691 * linux-nios2-low.cc (the_low_target): Ditto.
692 * linux-ppc-low.cc (the_low_target): Ditto.
693 * linux-riscv-low.cc (the_low_target): Ditto.
694 * linux-s390-low.cc (the_low_target): Ditto.
695 * linux-sh-low.cc (the_low_target): Ditto.
696 * linux-sparc-low.cc (the_low_target): Ditto.
697 * linux-tic6x-low.cc (the_low_target): Ditto.
698 * linux-tile-low.cc (the_low_target): Ditto.
699 * linux-xtensa-low.cc (the_low_target): Ditto.
700 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
701 <supports_software_single_step>: Declare.
702 (arm_target::supports_software_single_step): Define.
703 (arm_gdbserver_get_next_pcs): Turn into...
704 (arm_target::low_get_next_pcs): ...this.
705 (the_low_target): Remove the op field.
707 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
709 Remove the 'sw_breakpoint_from_kind' linux target op, and let
710 the concrete linux target define it by overriding the op
711 in process_stratum_target.
713 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
715 * linux-low.h (struct linux_target_ops): Remove the op.
716 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
717 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
719 (x86_sw_breakpoint_from_kind): Turn into...
720 (x86_target::sw_breakpoint_from_kind): ...this.
721 (the_low_target): Remove the op field.
722 * linux-aarch64-low.cc (class aarch64_target)
723 <sw_breakpoint_from_kind>: Declare.
724 (aarch64_sw_breakpoint_from_kind): Turn into...
725 (aarch64_target::sw_breakpoint_from_kind): ...this.
726 (the_low_target): Remove the op field.
727 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
729 (arm_target::sw_breakpoint_from_kind): Define.
730 (the_low_target): Remove the op field.
731 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
733 (bfin_sw_breakpoint_from_kind): Turn into...
734 (bfin_target::sw_breakpoint_from_kind): ...this.
735 (the_low_target): Remove the op field.
736 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
738 (cris_sw_breakpoint_from_kind): Turn into...
739 (cris_target::sw_breakpoint_from_kind): ...this.
740 (the_low_target): Remove the op field.
741 * linux-crisv32-low.cc (class crisv32_target)
742 <sw_breakpoint_from_kind>: Declare.
743 (cris_sw_breakpoint_from_kind): Turn into...
744 (crisv32_target::sw_breakpoint_from_kind): ...this.
745 (the_low_target): Remove the op field.
746 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
748 (ia64_target::sw_breakpoint_from_kind): Define.
749 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
751 (m32r_sw_breakpoint_from_kind): Turn into...
752 (m32r_target::sw_breakpoint_from_kind): ...this.
753 (the_low_target): Remove the op field.
754 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
756 (m68k_sw_breakpoint_from_kind): Turn into...
757 (m68k_target::sw_breakpoint_from_kind): ...this.
758 (the_low_target): Remove the op field.
759 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
761 (mips_sw_breakpoint_from_kind): Turn into...
762 (mips_target::sw_breakpoint_from_kind): ...this.
763 (the_low_target): Remove the op field.
764 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
766 (nios2_sw_breakpoint_from_kind): Turn into...
767 (nios2_target::sw_breakpoint_from_kind): ...this.
768 (the_low_target): Remove the op field.
769 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
771 (ppc_sw_breakpoint_from_kind): Turn into...
772 (ppc_target::sw_breakpoint_from_kind): ...this.
773 (the_low_target): Remove the op field.
774 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
776 (riscv_sw_breakpoint_from_kind): Turn into...
777 (riscv_target::sw_breakpoint_from_kind): ...this.
778 (the_low_target): Remove the op field.
779 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
781 (s390_sw_breakpoint_from_kind): Turn into...
782 (s390_target::sw_breakpoint_from_kind): ...this.
783 (the_low_target): Remove the op field.
784 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
786 (sh_sw_breakpoint_from_kind): Turn into...
787 (sh_target::sw_breakpoint_from_kind): ...this.
788 (the_low_target): Remove the op field.
789 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
791 (sparc_sw_breakpoint_from_kind): Turn into...
792 (sparc_target::sw_breakpoint_from_kind): ...this.
793 (the_low_target): Remove the op field.
794 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
796 (tic6x_sw_breakpoint_from_kind): Turn into...
797 (tic6x_target::sw_breakpoint_from_kind): ...this.
798 (the_low_target): Remove the op field.
799 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
801 (tile_sw_breakpoint_from_kind): Turn into...
802 (tile_target::sw_breakpoint_from_kind): ...this.
803 (the_low_target): Remove the op field.
804 * linux-xtensa-low.cc (class xtensa_target)
805 <sw_breakpoint_from_kind>: Declare.
806 (xtensa_sw_breakpoint_from_kind): Turn into...
807 (xtensa_target::sw_breakpoint_from_kind): ...this.
808 (the_low_target): Remove the op field.
810 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
812 Remove the 'breakpoint_kind_from_pc' and
813 'breakpoint_kind_from_current_state' linux target ops, and let the
814 concrete linux target define them by overriding the ops of
815 process_stratum_target.
817 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
819 (linux_process_target::breakpoint_kind_from_current_state): Remove.
820 * linux-low.h (struct linux_target_ops): Remove ops.
821 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
822 <breakpoint_kind_from_current_state>: Remove.
823 * linux-x86-low.cc (the_low_target): Remove the op fields.
824 * linux-bfin-low.cc (the_low_target): Ditto.
825 * linux-cris-low.cc (the_low_target): Ditto.
826 * linux-crisv32-low.cc (the_low_target): Ditto.
827 * linux-m32r-low.cc (the_low_target): Ditto.
828 * linux-m68k-low.cc (the_low_target): Ditto.
829 * linux-mips-low.cc (the_low_target): Ditto.
830 * linux-nios2-low.cc (the_low_target): Ditto.
831 * linux-ppc-low.cc (the_low_target): Ditto.
832 * linux-s390-low.cc (the_low_target): Ditto.
833 * linux-sh-low.cc (the_low_target): Ditto.
834 * linux-sparc-low.cc (the_low_target): Ditto.
835 * linux-tic6x-low.cc (the_low_target): Ditto.
836 * linux-tile-low.cc (the_low_target): Ditto.
837 * linux-xtensa-low.cc (the_low_target): Ditto.
838 * linux-aarch64-low.cc (class aarch64_target)
839 <breakpoint_kind_from_pc>
840 <breakpoint_kind_from_current_state>: Declare.
841 (aarch64_breakpoint_kind_from_pc): Turn into...
842 (aarch64_target::breakpoint_kind_from_pc): ...this.
843 (aarch64_breakpoint_kind_from_current_state): Turn into...
844 (aarch64_target::breakpoint_kind_from_current_state): ...this.
845 (the_low_target): Remove the op fields.
846 * linux-arm-low.cc (class arm_target):
847 <breakpoint_kind_from_pc>
848 <breakpoint_kind_from_current_state>: Declare.
849 (arm_target::breakpoint_kind_from_pc): Define.
850 (arm_target::breakpoint_kind_from_current_state): Define.
851 (the_low_target): Remove the op fields.
852 * linux-riscv-low.cc (class riscv_target):
853 <breakpoint_kind_from_pc>: Declare.
854 (riscv_breakpoint_kind_from_pc): Turn into...
855 (riscv_target::breakpoint_kind_from_pc): ...this.
856 (the_low_target): Remove the op fields.
858 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
860 Turn the 'get_pc' and 'set_pc' linux target ops into methods
861 of linux_process_target.
863 * linux-low.h (struct linux_target_ops): Remove the ops.
864 (class linux_process_target) <low_supports_breakpoints>
866 <low_set_pc>: Declare.
867 * linux-low.cc (supports_breakpoints): Turn into...
868 (linux_process_target::low_supports_breakpoints): ...this.
869 (linux_process_target::low_get_pc): Define.
870 (linux_process_target::low_set_pc): Define.
872 Update the callers below.
874 (linux_process_target::get_pc)
875 (linux_process_target::save_stop_reason)
876 (linux_process_target::maybe_move_out_of_jump_pad)
877 (linux_process_target::wait_1)
878 (linux_process_target::resume_one_lwp_throw)
879 (linux_process_target::resume)
880 (linux_process_target::proceed_all_lwps)
881 (linux_process_target::read_pc)
882 (linux_process_target::write_pc)
884 * linux-x86-low.cc (class linux_process_target)
885 <low_supports_breakpoints>
887 <low_set_pc>: Declare.
888 (x86_target::low_supports_breakpoints): Define.
889 (x86_get_pc): Turn into...
890 (x86_target::low_get_pc): ...this.
891 (x86_set_pc): Turn into...
892 (x86_target::low_set_pc): ...this.
893 (the_low_target): Remove the op fields.
894 * linux-arm-low.cc (class arm_target)
895 <low_supports_breakpoints>
897 <low_set_pc>: Declare.
898 (arm_target::low_supports_breakpoints)
899 (arm_target::low_get_pc)
900 (arm_target::low_set_pc): Define.
901 (the_low_target): Remove the op fields.
902 * linux-bfin-low.cc (class bfin_target)
903 <low_supports_breakpoints>
905 <low_set_pc>: Declare.
906 (bfin_target::low_supports_breakpoints)
907 (bfin_target::low_get_pc)
908 (bfin_target::low_set_pc): Define.
909 (the_low_target): Remove the op fields.
910 * linux-cris-low.cc (class cris_target)
911 <low_supports_breakpoints>
913 <low_set_pc>: Declare.
914 (cris_target::low_supports_breakpoints)
915 (cris_target::low_get_pc)
916 (cris_target::low_set_pc): Define.
917 (the_low_target): Remove the op fields.
918 * linux-crisv32-low.cc (class crisv32_target)
919 <low_supports_breakpoints>
921 <low_set_pc>: Declare.
922 (crisv32_target::low_supports_breakpoints)
923 (crisv32_target::low_get_pc)
924 (crisv32_target::low_set_pc): Define.
925 (the_low_target): Remove the op fields.
926 * linux-m32r-low.cc (class m32r_target)
927 <low_supports_breakpoints>
929 <low_set_pc>: Declare.
930 (m32r_target::low_supports_breakpoints)
931 (m32r_target::low_get_pc)
932 (m32r_target::low_set_pc): Define.
933 (the_low_target): Remove the op fields.
934 * linux-m68k-low.cc (class m68k_target)
935 <low_supports_breakpoints>
937 <low_set_pc>: Declare.
938 (m68k_target::low_supports_breakpoints)
939 (m68k_target::low_get_pc)
940 (m68k_target::low_set_pc): Define.
941 (the_low_target): Remove the op fields.
942 * linux-nios2-low.cc (class nios2_target)
943 <low_supports_breakpoints>
945 <low_set_pc>: Declare.
946 (nios2_target::low_supports_breakpoints)
947 (nios2_target::low_get_pc)
948 (nios2_target::low_set_pc): Define.
949 (the_low_target): Remove the op fields.
950 * linux-sh-low.cc (class sh_target)
951 <low_supports_breakpoints>
953 <low_set_pc>: Declare.
954 (sh_target::low_supports_breakpoints)
955 (sh_target::low_get_pc)
956 (sh_target::low_set_pc): Define.
957 (the_low_target): Remove the op fields.
958 * linux-xtensa-low.cc (class xtensa_target)
959 <low_supports_breakpoints>
961 <low_set_pc>: Declare.
962 (xtensa_target::low_supports_breakpoints)
963 (xtensa_target::low_get_pc)
964 (xtensa_target::low_set_pc): Define.
965 (the_low_target): Remove the op fields.
966 * linux-sparc-low.cc (class sparc_target)
967 <low_supports_breakpoints>
968 <low_get_pc>: Declare.
969 (sparc_target::low_supports_breakpoints)
970 (sparc_target::low_get_pc): Define.
971 (the_low_target): Remove the op fields.
972 * linux-tile-low.cc (class tile_target)
973 <low_supports_breakpoints>
975 <low_set_pc>: Declare.
976 (tile_target::low_supports_breakpoints)
977 (tile_target::low_get_pc)
978 (tile_target::low_set_pc): Define.
979 (the_low_target): Remove the op fields.
980 * linux-aarch64-low.cc (class aarch64_target)
981 <low_supports_breakpoints>
983 <low_set_pc>: Declare.
984 (aarch64_target::low_supports_breakpoints): Define.
985 (aarch64_get_pc): Turn into...
986 (aarch64_target::low_get_pc): ...this.
987 (aarch64_set_pc): Turn into...
988 (aarch64_target::low_set_pc): ...this.
989 (the_low_target): Remove the op fields.
990 * linux-mips-low.cc (class mips_target)
991 <low_supports_breakpoints>
993 <low_set_pc>: Declare.
994 (mips_target::low_supports_breakpoints): Define.
995 (mips_get_pc): Turn into...
996 (mips_target::low_get_pc): ...this.
997 (mips_set_pc): Turn into...
998 (mips_target::low_set_pc): ...this.
999 (the_low_target): Remove the op fields.
1000 * linux-ppc-low.cc (class ppc_target)
1001 <low_supports_breakpoints>
1003 <low_set_pc>: Declare.
1004 (ppc_target::low_supports_breakpoints): Define.
1005 (ppc_get_pc): Turn into...
1006 (ppc_target::low_get_pc): ...this.
1007 (ppc_set_pc): Turn into...
1008 (ppc_target::low_set_pc): ...this.
1009 (the_low_target): Remove the op fields.
1010 * linux-riscv-low.cc (class riscv_target)
1011 <low_supports_breakpoints>
1013 <low_set_pc>: Declare.
1014 (riscv_target::low_supports_breakpoints): Define.
1015 (riscv_get_pc): Turn into...
1016 (riscv_target::low_get_pc): ...this.
1017 (riscv_set_pc): Turn into...
1018 (riscv_target::low_set_pc): ...this.
1019 (the_low_target): Remove the op fields.
1020 * linux-s390-low.cc (class s390_target)
1021 <low_supports_breakpoints>
1023 <low_set_pc>: Declare.
1024 (s390_target::low_supports_breakpoints): Define.
1025 (s390_get_pc): Turn into...
1026 (s390_target::low_get_pc): ...this.
1027 (s390_set_pc): Turn into...
1028 (s390_target::low_set_pc): ...this.
1029 (the_low_target): Remove the op fields.
1030 * linux-tic6x-low.cc (class tic6x_target)
1031 <low_supports_breakpoints>
1033 <low_set_pc>: Declare.
1034 (tic6x_target::low_supports_breakpoints): Define.
1035 (tic6x_get_pc): Turn into...
1036 (tic6x_target::low_get_pc): ...this.
1037 (tic6x_set_pc): Turn into...
1038 (tic6x_target::low_set_pc): ...this.
1039 (the_low_target): Remove the op fields.
1041 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1043 Turn some more static methods in linux-low into private methods
1044 of linux_process_target.
1046 * linux-low.cc (get_pc): Turn into...
1047 (linux_process_target::get_pc): ...this.
1048 (save_stop_reason): Turn into...
1049 (linux_process_target::save_stop_reason): ...this.
1050 (thread_still_has_status_pending_p): Turn into...
1051 (linux_process_target::thread_still_has_status_pending): ...this.
1052 (status_pending_p_callback): Turn into...
1053 (linux_process_target::status_pending_p_callback): ...this.
1054 (resume_stopped_resumed_lwps): Turn into...
1055 (linux_process_target::resume_stopped_resumed_lwps): ...this.
1056 (install_software_single_step_breakpoints): Turn into...
1057 (linux_process_target::install_software_single_step_breakpoints):
1059 (single_step): Turn into...
1060 (linux_process_target::single_step): ...this.
1061 (linux_resume_one_lwp_throw): Turn into...
1062 (linux_process_target::resume_one_lwp_throw): ...this.
1063 (linux_resume_one_lwp): Turn into...
1064 (linux_process_target::resume_one_lwp): ...this.
1065 (resume_status_pending_p): Turn into...
1066 (linux_process_target::resume_status_pending): ...this.
1067 (need_step_over_p): Turn into...
1068 (linux_process_target::thread_needs_step_over): ...this.
1069 (linux_resume_one_thread): Turn into...
1070 (linux_process_target::resume_one_thread): ...this.
1071 (proceed_one_lwp): Turn into...
1072 (linux_process_target::proceed_one_lwp): ...this.
1073 (unsuspend_and_proceed_one_lwp): Turn into...
1074 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
1076 Update the calls/references to the above functions below.
1078 (linux_process_target::handle_extended_wait)
1079 (linux_process_target::filter_event)
1080 (linux_process_target::wait_for_event_filtered)
1081 (linux_process_target::wait_1)
1082 (linux_process_target::move_out_of_jump_pad)
1083 (linux_process_target::start_step_over)
1084 (linux_process_target::resume)
1085 (linux_process_target::proceed_all_lwps)
1086 (regsets_store_inferior_registers)
1087 (linux_process_target::store_register)
1089 * linux-low.h (class linux_process_target)
1092 <thread_still_has_status_pending>
1093 <status_pending_p_callback>
1094 <resume_stopped_resumed_lwps>
1095 <install_software_single_step_breakpoints>
1097 <resume_one_lwp_throw>
1099 <resume_status_pending>
1100 <thread_needs_step_over>
1103 <unsuspend_and_proceed_one_lwp>: Declare.
1105 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1107 Turn the 'fetch_register' linux target op into a method of
1108 linux_process_target.
1110 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
1111 (class linux_process_target) <low_fetch_register>: Declare.
1112 * linux-x86-low.cc (the_low_target)
1113 * linux-aarch64-low.cc (the_low_target)
1114 * linux-arm-low.cc (the_low_target)
1115 * linux-bfin-low.cc (the_low_target)
1116 * linux-cris-low.cc (the_low_target)
1117 * linux-crisv32-low.cc (the_low_target)
1118 * linux-m32r-low.cc (the_low_target)
1119 * linux-m68k-low.cc (the_low_target)
1120 * linux-nios2-low.cc (the_low_target)
1121 * linux-ppc-low.cc (the_low_target)
1122 * linux-s390-low.cc (the_low_target)
1123 * linux-sh-low.cc (the_low_target)
1124 * linux-sparc-low.cc (the_low_target)
1125 * linux-tic6x-low.cc (the_low_target)
1126 * linux-tile-low.cc (the_low_target)
1127 * linux-xtensa-low.cc (the_low_target): Remove the op field.
1128 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
1130 (ia64_fetch_register): Turn into...
1131 (ia64_target::low_fetch_register): ...this.
1132 (the_low_target): Remove the op field.
1133 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
1135 (mips_fetch_register): Turn into...
1136 (mips_target::low_fetch_register): ...this.
1137 (the_low_target): Remove the op field.
1138 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
1140 (riscv_fetch_register): Turn into...
1141 (riscv_target::low_fetch_register): ...this.
1142 (the_low_target): Remove the op field.
1144 Update the callers below.
1146 * linux-low.cc (linux_process_target::fetch_registers)
1147 (linux_process_target::low_fetch_register)
1149 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1151 Turn the 'cannot_fetch_register' and 'cannot_store_register'
1152 linux target ops into methods of linux_process_target.
1154 * linux-low.h (struct linux_target_ops): Remove the low target ops.
1155 (class linux_process_target) <fetch_register>
1157 <usr_fetch_inferior_registers>
1158 <usr_store_inferior_registers>
1159 <low_cannot_fetch_register>
1160 <low_cannot_fetch_register> Declare.
1161 * linux-low.cc (fetch_register): Turn into...
1162 (linux_process_target::fetch_register): ...this.
1163 (store_register): Turn into ...
1164 (linux_process_target::store_register): ...this.
1165 (usr_fetch_inferior_registers): Turn into...
1166 (linux_process_target::usr_fetch_inferior_registers): ...this.
1167 (usr_store_inferior_registers): Turn into...
1168 (linux_process_target::usr_store_inferior_registers): ...this.
1169 * linux-x86-low.cc (class x86_target)
1170 <low_cannot_fetch_register>
1171 <low_cannot_store_register>: Declare.
1172 (x86_cannot_store_register): Turn into...
1173 (x86_target::low_cannot_store_register): ...this.
1174 (x86_cannot_fetch_register): Turn into...
1175 (x86_target::low_cannot_fetch_register): ...this.
1176 (the_low_target): Remove the target op fields.
1177 * linux-aarch64-low.cc (class aarch64_target)
1178 <low_cannot_fetch_register>
1179 <low_cannot_store_register>: Declare.
1180 (aarch64_target::low_cannot_fetch_register)
1181 (aarch64_target::low_cannot_store_register): Define.
1182 (the_low_target): Remove the op fields.
1183 * linux-arm-low.cc (class arm_target)
1184 <low_cannot_fetch_register>
1185 <low_cannot_store_register>: Declare.
1186 (arm_cannot_fetch_register): Turn into...
1187 (arm_target::low_cannot_fetch_register): ...this.
1188 (arm_cannot_store_register): Turn into...
1189 (arm_target::low_cannot_store_register): ...this.
1190 (the_low_target): Remove the op fields.
1191 * linux-bfin-low.cc (class bfin_target)
1192 <low_cannot_fetch_register>
1193 <low_cannot_store_register>: Declare.
1194 (bfin_cannot_fetch_register): Turn into...
1195 (bfin_target::low_cannot_fetch_register): ...this.
1196 (bfin_cannot_store_register): Turn into...
1197 (bfin_target::low_cannot_store_register): ...this.
1198 (the_low_target): Remove the op fields.
1199 * linux-cris-low.cc (class cris_target)
1200 <low_cannot_fetch_register>
1201 <low_cannot_store_register>: Declare.
1202 (cris_cannot_fetch_register): Turn into...
1203 (cris_target::low_cannot_fetch_register): ...this.
1204 (cris_cannot_store_register): Turn into...
1205 (cris_target::low_cannot_store_register): ...this.
1206 (the_low_target): Remove the op fields.
1207 * linux-crisv32-low.cc (class crisv32_target)
1208 <low_cannot_fetch_register>
1209 <low_cannot_store_register>: Declare.
1210 (crisv32_target::low_cannot_fetch_register)
1211 (crisv32_target::low_cannot_store_register): Define.
1212 (the_low_target): Remove the op fields.
1213 * linux-ia64-low.cc (class ia64_target)
1214 <low_cannot_fetch_register>
1215 <low_cannot_store_register>: Declare.
1216 (ia64_cannot_fetch_register): Turn into...
1217 (ia64_target::low_cannot_fetch_register): ...this.
1218 (ia64_cannot_store_register): Turn into...
1219 (ia64_target::low_cannot_store_register): ...this.
1220 (the_low_target): Remove the op fields.
1221 * linux-m32r-low.cc (class m32r_target)
1222 <low_cannot_fetch_register>
1223 <low_cannot_store_register>: Declare.
1224 (m32r_cannot_fetch_register): Turn into...
1225 (m32r_target::low_cannot_fetch_register): ...this.
1226 (m32r_cannot_store_register): Turn into...
1227 (m32r_target::low_cannot_store_register): ...this.
1228 (the_low_target): Remove the op fields.
1229 * linux-m68k-low.cc (class m68k_target)
1230 <low_cannot_fetch_register>
1231 <low_cannot_store_register>: Declare.
1232 (m68k_cannot_fetch_register): Turn into...
1233 (m68k_target::low_cannot_fetch_register): ...this.
1234 (m68k_cannot_store_register): Turn into...
1235 (m68k_target::low_cannot_store_register): ...this.
1236 (the_low_target): Remove the op fields.
1237 * linux-mips-low.cc (class mips_target)
1238 <low_cannot_fetch_register>
1239 <low_cannot_store_register>: Declare.
1240 (mips_cannot_fetch_register): Turn into...
1241 (mips_target::low_cannot_fetch_register): ...this.
1242 (mips_cannot_store_register): Turn into...
1243 (mips_target::low_cannot_store_register): ...this.
1244 (get_usrregs_info): Inline at the call sites in
1245 low_cannot_fetch_register and low_cannot_store_register,
1247 (the_low_target): Remove the op fields.
1248 * linux-nios2-low.cc (class nios2_target)
1249 <low_cannot_fetch_register>
1250 <low_cannot_store_register>: Declare.
1251 (nios2_cannot_fetch_register): Turn into...
1252 (nios2_target::low_cannot_fetch_register): ...this.
1253 (nios2_cannot_store_register): Turn into...
1254 (nios2_target::low_cannot_store_register): ...this.
1255 (the_low_target): Remove the op fields.
1256 * linux-ppc-low.cc (class ppc_target)
1257 <low_cannot_fetch_register>
1258 <low_cannot_store_register>: Declare.
1259 (ppc_cannot_fetch_register): Turn into...
1260 (ppc_target::low_cannot_fetch_register): ...this.
1261 (ppc_cannot_store_register): Turn into...
1262 (ppc_target::low_cannot_store_register): ...this.
1263 (the_low_target): Remove the op fields.
1264 * linux-riscv-low.cc (class riscv_target)
1265 <low_cannot_fetch_register>
1266 <low_cannot_store_register>: Declare.
1267 (riscv_target::low_cannot_fetch_register)
1268 (riscv_target::low_cannot_store_register): Define.
1269 (the_low_target): Remove the op fields.
1270 * linux-s390-low.cc (class s390_target)
1271 <low_cannot_fetch_register>
1272 <low_cannot_store_register>: Declare.
1273 (s390_cannot_fetch_register): Turn into...
1274 (s390_target::low_cannot_fetch_register): ...this.
1275 (s390_cannot_store_register): Turn into...
1276 (s390_target::low_cannot_store_register): ...this.
1277 (the_low_target): Remove the op fields.
1278 * linux-sh-low.cc (class sh_target)
1279 <low_cannot_fetch_register>
1280 <low_cannot_store_register>: Declare.
1281 (sh_cannot_fetch_register): Turn into...
1282 (sh_target::low_cannot_fetch_register): ...this.
1283 (sh_cannot_store_register): Turn into...
1284 (sh_target::low_cannot_store_register): ...this.
1285 (the_low_target): Remove the op fields.
1286 * linux-sparc-low.cc (class sparc_target)
1287 <low_cannot_fetch_register>
1288 <low_cannot_store_register>: Declare.
1289 (sparc_cannot_fetch_register): Turn into...
1290 (sparc_target::low_cannot_fetch_register): ...this.
1291 (sparc_cannot_store_register): Turn into...
1292 (sparc_target::low_cannot_store_register): ...this.
1293 (the_low_target): Remove the op fields.
1294 * linux-tic6x-low.cc (class tic6x_target)
1295 <low_cannot_fetch_register>
1296 <low_cannot_store_register>: Declare.
1297 (tic6x_cannot_fetch_register): Turn into...
1298 (tic6x_target::low_cannot_fetch_register): ...this.
1299 (tic6x_cannot_store_register): Turn into...
1300 (tic6x_target::low_cannot_store_register): ...this.
1301 (the_low_target): Remove the op fields.
1302 * linux-tile-low.cc (class tile_target)
1303 <low_cannot_fetch_register>
1304 <low_cannot_store_register>: Declare.
1305 (tile_cannot_fetch_register): Turn into...
1306 (tile_target::low_cannot_fetch_register): ...this.
1307 (tile_cannot_store_register): Turn into...
1308 (tile_target::low_cannot_store_register): ...this.
1309 (the_low_target): Remove the op fields.
1310 * linux-xtensa-low.cc (class xtensa_target)
1311 <low_cannot_fetch_register>
1312 <low_cannot_store_register>: Declare.
1313 (xtensa_target::low_cannot_fetch_register)
1314 (xtensa_target::low_cannot_store_register): Define.
1315 (the_low_target): Remove the op fields.
1317 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1319 Turn the 'regs_info' linux target op into a method of
1320 linux_process_target.
1322 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
1323 (class linux_process_target) <get_regs_info>: Define.
1325 Update the callers below.
1327 * linux-low.cc (linux_process_target::fetch_registers)
1328 (linux_process_target::store_registers)
1329 * proc-service.cc (gregset_info)
1331 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
1332 (x86_linux_regs_info): Turn into ...
1333 (x86_target::get_regs_info): ...this.
1334 (the_low_target): Remove the op field.
1335 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
1337 (aarch64_regs_info): Turn into ...
1338 (aarch64_target::get_regs_info): ...this.
1339 (the_low_target): Remove the op field.
1340 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
1341 (arm_regs_info): Turn into ...
1342 (arm_target::get_regs_info): ...this.
1343 (the_low_target): Remove the op field.
1344 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
1345 (bfin_regs_info): Turn into ...
1346 (bfin_target::get_regs_info): ...this.
1347 (the_low_target): Remove the op field.
1348 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
1349 (cris_regs_info): Turn into ...
1350 (cris_target::get_regs_info): ...this.
1351 (the_low_target): Remove the op field.
1352 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
1354 (crisv32_regs_info): Turn into ...
1355 (crisv32_target::get_regs_info): ...this.
1356 (the_low_target): Remove the op field.
1357 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
1358 (ia64_regs_info): Turn into ...
1359 (ia64_target::get_regs_info): ...this.
1360 (the_low_target): Remove the op field.
1361 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
1362 (m32r_regs_info): Turn into ...
1363 (m32r_target::get_regs_info): ...this.
1364 (the_low_target): Remove the op field.
1365 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
1366 (m68k_regs_info): Turn into ...
1367 (m68k_target::get_regs_info): ...this.
1368 (the_low_target): Remove the op field.
1369 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
1370 (mips_regs_info): Turn into ...
1371 (mips_target::get_regs_info): ...this.
1372 (the_low_target): Remove the op field.
1373 (get_usrregs_info): Update the call to the op.
1374 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
1375 (nios2_regs_info): Turn into ...
1376 (nios2_target::get_regs_info): ...this.
1377 (the_low_target): Remove the op field.
1378 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
1379 (ppc_regs_info): Turn into ...
1380 (ppc_target::get_regs_info): ...this.
1381 (the_low_target): Remove the op field.
1382 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
1383 (riscv_regs_info): Turn into ...
1384 (riscv_target::get_regs_info): ...this.
1385 (the_low_target): Remove the op field.
1386 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
1387 (s390_regs_info): Turn into ...
1388 (s390_target::get_regs_info): ...this.
1389 (the_low_target): Remove the op field.
1390 (s390_collect_ptrace_register)
1391 (s390_supply_ptrace_register)
1392 (s390_fill_gregset): Update the call to the op.
1393 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
1394 (sh_regs_info): Turn into ...
1395 (sh_target::get_regs_info): ...this.
1396 (the_low_target): Remove the op field.
1397 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
1398 (sparc_regs_info): Turn into ...
1399 (sparc_target::get_regs_info): ...this.
1400 (the_low_target): Remove the op field.
1401 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
1402 (tic6x_regs_info): Turn into ...
1403 (tic6x_target::get_regs_info): ...this.
1404 (the_low_target): Remove the op field.
1405 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
1406 (tile_regs_info): Turn into ...
1407 (tile_target::get_regs_info): ...this.
1408 (the_low_target): Remove the op field.
1409 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
1411 (xtensa_regs_info): Turn into ...
1412 (xtensa_target::get_regs_info): ...this.
1413 (the_low_target): Remove the op field.
1415 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1417 Turn the 'arch_setup' linux target op into a method of
1418 linux_process_target.
1420 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
1421 (class linux_process_target) <arch_setup_thread>
1422 <low_arch_setup>: New declarations.
1423 * linux-low.cc (linux_arch_setup): Delete.
1424 (linux_arch_setup_thread): Turn into...
1425 (linux_process_target::arch_setup_thread): ... this.
1427 Update the callers below.
1429 (linux_process_target::handle_extended_wait)
1430 (linux_process_target::post_create_inferior)
1431 (linux_process_target::filter_event)
1433 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
1435 (x86_linux_update_xmltarget): Turn into...
1436 (x86_target::update_xmltarget): ...this.
1437 (x86_linux_process_qsupported): Update the call to
1438 x86_linux_update_xmltarget.
1439 (x86_arch_setup): Turn into ...
1440 (x86_target::low_arch_setup): ...this.
1441 (the_low_target): Remove the op field.
1442 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
1444 (aarch64_arch_setup): Turn into ...
1445 (aarch64_target::low_arch_setup): ...this.
1446 (the_low_target): Remove the op field.
1447 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
1449 (arm_arch_setup): Turn into ...
1450 (arm_target::low_arch_setup): ...this.
1451 (the_low_target): Remove the op field.
1452 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
1454 (bfin_arch_setup): Turn into ...
1455 (bfin_target::low_arch_setup): ...this.
1456 (the_low_target): Remove the op field.
1457 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
1459 (cris_arch_setup): Turn into ...
1460 (cris_target::low_arch_setup): ...this.
1461 (the_low_target): Remove the op field.
1462 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
1464 (crisv32_arch_setup): Turn into ...
1465 (crisv32_target::low_arch_setup): ...this.
1466 (the_low_target): Remove the op field.
1467 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
1469 (ia64_arch_setup): Turn into ...
1470 (ia64_target::low_arch_setup): ...this.
1471 (the_low_target): Remove the op field.
1472 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
1474 (m32r_arch_setup): Turn into ...
1475 (m32r_target::low_arch_setup): ...this.
1476 (the_low_target): Remove the op field.
1477 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
1479 (m68k_arch_setup): Turn into ...
1480 (m68k_target::low_arch_setup): ...this.
1481 (the_low_target): Remove the op field.
1482 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
1484 (mips_arch_setup): Turn into ...
1485 (mips_target::low_arch_setup): ...this.
1486 (the_low_target): Remove the op field.
1487 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
1489 (nios2_arch_setup): Turn into ...
1490 (nios2_target::low_arch_setup): ...this.
1491 (the_low_target): Remove the op field.
1492 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
1494 (ppc_arch_setup): Turn into ...
1495 (ppc_target::low_arch_setup): ...this.
1496 (the_low_target): Remove the op field.
1497 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
1499 (riscv_arch_setup): Turn into ...
1500 (riscv_target::low_arch_setup): ...this.
1501 (the_low_target): Remove the op field.
1502 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
1504 (s390_arch_setup): Turn into ...
1505 (s390_target::low_arch_setup): ...this.
1506 (the_low_target): Remove the op field.
1507 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
1509 (sh_arch_setup): Turn into ...
1510 (sh_target::low_arch_setup): ...this.
1511 (the_low_target): Remove the op field.
1512 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
1514 (sparc_arch_setup): Turn into ...
1515 (sparc_target::low_arch_setup): ...this.
1516 (the_low_target): Remove the op field.
1517 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
1519 (tic6x_arch_setup): Turn into ...
1520 (tic6x_target::low_arch_setup): ...this.
1521 (the_low_target): Remove the op field.
1522 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
1524 (tile_arch_setup): Turn into ...
1525 (tile_target::low_arch_setup): ...this.
1526 (the_low_target): Remove the op field.
1527 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
1529 (xtensa_arch_setup): Turn into ...
1530 (xtensa_target::low_arch_setup): ...this.
1531 (the_low_target): Remove the op field.
1533 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1535 * linux-low.h (the_linux_target): New extern declaration.
1536 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
1538 (the_linux_target): Remove.
1539 * linux-x86-low.cc (class x86_target): New class.
1540 (the_x86_target): New static object.
1541 (the_linux_target): Define as pointer to the_x86_target.
1542 * linux-aarch64-low.cc (class aarch64_target): New class.
1543 (the_aarch64_target): New static object.
1544 (the_linux_target): Define as pointer to the_aarch64_target.
1545 * linux-arm-low.cc (class arm_target): New class.
1546 (the_arm_target): New static object.
1547 (the_linux_target): Define as pointer to the_arm_target.
1548 * linux-bfin-low.cc (class bfin_target): New class.
1549 (the_bfin_target): New static object.
1550 (the_linux_target): Define as pointer to the_bfin_target.
1551 * linux-cris-low.cc (class cris_target): New class.
1552 (the_cris_target): New static object.
1553 (the_linux_target): Define as pointer to the_cris_target.
1554 * linux-crisv32-low.cc (class crisv32_target): New class.
1555 (the_crisv32_target): New static object.
1556 (the_linux_target): Define as pointer to the_crisv32_target.
1557 * linux-ia64-low.cc (class ia64_target): New class.
1558 (the_ia64_target): New static object.
1559 (the_linux_target): Define as pointer to the_ia64_target.
1560 * linux-m32r-low.cc (class m32r_target): New class.
1561 (the_m32r_target): New static object.
1562 (the_linux_target): Define as pointer to the_m32r_target.
1563 * linux-m68k-low.cc (class m68k_target): New class.
1564 (the_m68k_target): New static object.
1565 (the_linux_target): Define as pointer to the_m68k_target.
1566 * linux-mips-low.cc (class mips_target): New class.
1567 (the_mips_target): New static object.
1568 (the_linux_target): Define as pointer to the_mips_target.
1569 * linux-nios2-low.cc (class nios2_target): New class.
1570 (the_nios2_target): New static object.
1571 (the_linux_target): Define as pointer to the_nios2_target.
1572 * linux-ppc-low.cc (class ppc_target): New class.
1573 (the_ppc_target): New static object.
1574 (the_linux_target): Define as pointer to the_ppc_target.
1575 * linux-riscv-low.cc (class riscv_target): New class.
1576 (the_riscv_target): New static object.
1577 (the_linux_target): Define as pointer to the_riscv_target.
1578 * linux-s390-low.cc (class s390_target): New class.
1579 (the_s390_target): New static object.
1580 (the_linux_target): Define as pointer to the_s390_target.
1581 * linux-sh-low.cc (class sh_target): New class.
1582 (the_sh_target): New static object.
1583 (the_linux_target): Define as pointer to the_sh_target.
1584 * linux-sparc-low.cc (class sparc_target): New class.
1585 (the_sparc_target): New static object.
1586 (the_linux_target): Define as pointer to the_sparc_target.
1587 * linux-tic6x-low.cc (class tic6x_target): New class.
1588 (the_tic6x_target): New static object.
1589 (the_linux_target): Define as pointer to the_tic6x_target.
1590 * linux-tile-low.cc (class tile_target): New class.
1591 (the_tile_target): New static object.
1592 (the_linux_target): Define as pointer to the_tile_target.
1593 * linux-xtensa-low.cc (class xtensa_target): New class.
1594 (the_xtensa_target): New static object.
1595 (the_linux_target): Define as pointer to the_xtensa_target.
1597 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1599 Turn some static functions in linux-low.cc into private methods of
1600 linux_process_target.
1602 * linux-low.cc (handle_extended_wait): Turn into ...
1603 (linux_process_target::handle_extended_wait): ...this. Call
1604 'mourn' on 'this' object instead of 'the_target'.
1605 (maybe_move_out_of_jump_pad): Turn into...
1606 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
1607 (linux_low_filter_event): Turn into...
1608 (linux_process_target::filter_event): ...this.
1609 (linux_wait_for_event_filtered): Turn into...
1610 (linux_process_target::wait_for_event_filtered): ...this.
1611 (linux_wait_for_event): Turn into...
1612 (linux_process_target::wait_for_event): ...this.
1613 (linux_wait_1): Turn into...
1614 (linux_process_target::wait_1): ...this.
1615 (wait_for_sigstop): Turn into...
1616 (linux_process_target::wait_for_sigstop): ...this.
1617 (move_out_of_jump_pad_callback): Turn into...
1618 (linux_process_target::move_out_of_jump_pad): ...this.
1619 (stop_all_lwps): Turn into...
1620 (linux_process_target::stop_all_lwps): ...this.
1621 (start_step_over): Turn into...
1622 (linux_process_target::start_step_over): ...this.
1623 (complete_ongoing_step_over): Turn into...
1624 (linux_process_target::complete_ongoing_step_over): ...this.
1625 (proceed_all_lwps): Turn into...
1626 (linux_process_target::proceed_all_lwps): ...this.
1627 (unstop_all_lwps): Turn into...
1628 (linux_process_target::unstop_all_lwps): ...this.
1630 * linux-low.h (class linux_process_target)
1631 <handle_extended_wait>
1632 <maybe_move_out_of_jump_pad>
1634 <wait_for_event_filtered>
1638 <move_out_of_jump_pad>
1641 <complete_ongoing_step_over>
1643 <unstop_all_lwps>: Declare.
1645 Update the callers below.
1647 * linux-low.cc (linux_process_target::attach): Update.
1648 (linux_process_target::stabilize_threads): Ditto.
1649 (linux_process_target::wait): Ditto.
1651 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1653 * linux-low.h (struct linux_target_ops): Update the comment for
1654 'cannot_store_register' to return 0 or 1.
1655 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
1658 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
1660 * config.in: Re-generate.
1661 * configure: Re-generate.
1663 2020-03-17 Kamil Rytarowski <n54@gmx.com>
1665 * regcache.cc (find_register_by_number): Update.
1666 * tdesc.cc (init_target_desc): Likewise.
1667 * tdesc.h (target_desc::reg_defs): Likewise.
1669 2020-03-12 Tom Tromey <tom@tromey.com>
1671 * configure: Rebuild.
1672 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
1673 (WIN32APILIBS): New subst.
1674 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
1676 (gdbsupport/%.o): Remove target.
1677 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
1678 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
1679 (WIN32APILIBS): New variable.
1680 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
1681 (gdbreplay$(EXEEXT)): Likewise.
1683 2020-03-12 Tom Tromey <tom@tromey.com>
1685 * config.in, configure: Rebuild.
1686 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
1687 * acinclude.m4: Include gettext-sister.m4.
1688 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
1690 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
1691 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
1693 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
1695 * acinclude.m4: Update path to selftest.m4.
1697 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
1699 * configure.ac: Don't source bfd/development.sh, move
1700 GDB_AC_COMMON higher.
1701 * configure: Re-generate.
1703 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
1705 * configure: Re-generate.
1707 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
1709 * configure: Re-generate.
1711 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
1713 * .dir-locals.el: New file.
1715 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1717 * .gitattributes: New file.
1719 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
1721 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
1722 reply into an S reply.
1723 * server.cc (disable_packet_T): New global.
1724 (captured_main): Set new global when appropriate.
1725 * server.h (disable_packet_T): Declare.
1727 2020-02-21 Tom Tromey <tom@tromey.com>
1729 * Makefile.in (mostlyclean): New target.
1731 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1733 * target.h (struct process_stratum_target): Remove.
1734 (class process_target): Rename to ...
1735 (class process_stratum_target): ... this.
1736 * linux-low.h (class linux_process_target): Derive from
1737 'process_stratum_target'.
1738 * linux-low.cc (linux_target_ops): Remove.
1739 (initialize_low): Set the_target to the singleton instance of
1740 linux_process_target.
1741 * lynx-low.h (class lynx_process_target): Derive from
1742 'process_stratum_target'.
1743 * lynx-low.cc (lynx_target_ops): Remove.
1744 (initialize_low): Set the_target to the singleton instance of
1745 lynx_process_target.
1746 * nto-low.h (class nto_process_target): Derive from
1747 'process_stratum_target'.
1748 * nto-low.cc (nto_target_ops): Remove.
1749 (initialize_low): Set the_target to the singleton instance of
1751 * win32-low.h (class win32_process_target): Derive from
1752 'process_stratum_target'.
1753 * win32-low.cc (win32_target_ops): Remove.
1754 (initialize_low): Set the_target to the singleton instance of
1755 win32_process_target.
1757 Replace 'the_target->pt' with 'the_target' in the uses below.
1759 * hostio.cc (hostio_error)
1764 * linux-aarch32-low.cc (arm_breakpoint_at)
1765 * linux-aarch64-low.cc (aarch64_breakpoint_at)
1766 * linux-arm-low.cc (arm_sigreturn_next_pc)
1768 (arm_get_syscall_trapinfo)
1769 * linux-cris-low.cc (cris_breakpoint_at)
1770 * linux-crisv32-low.cc (cris_breakpoint_at)
1771 * linux-low.cc (handle_extended_wait)
1774 (linux_process_target::breakpoint_kind_from_pc)
1776 * linux-m32r-low.cc (m32r_breakpoint_at)
1777 * linux-mips-low.cc (mips_breakpoint_at)
1778 * linux-nios2-low.cc (nios2_breakpoint_at)
1779 * linux-ppc-low.cc (ppc_breakpoint_at)
1780 * linux-s390-low.cc (s390_get_hwcap)
1781 * linux-sh-low.cc (sh_breakpoint_at)
1782 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
1783 (sparc_store_gregset_from_stack)
1784 (sparc_breakpoint_at)
1785 * linux-tic6x-low.cc (tic6x_breakpoint_at)
1786 * linux-tile-low.cc (tile_breakpoint_at)
1787 * linux-x86-low.cc (x86_breakpoint_at)
1788 * linux-xtensa-low.cc (xtensa_breakpoint_at)
1789 * mem-break.cc (bp_size)
1791 (insert_memory_breakpoint)
1792 (set_raw_breakpoint_at)
1793 (delete_raw_breakpoint)
1795 (uninsert_raw_breakpoint)
1796 (reinsert_raw_breakpoint)
1797 (validate_inserted_breakpoint)
1798 * regcache.cc (regcache_read_pc)
1800 * remote-utils.cc (putpkt_binary_1)
1803 (prepare_resume_reply)
1804 * server.cc (handle_general_set)
1807 (handle_qxfer_exec_file)
1808 (handle_qxfer_libraries_svr4)
1809 (handle_qxfer_osdata)
1810 (handle_qxfer_siginfo)
1811 (handle_qxfer_fdpic)
1815 (queue_stop_reply_callback)
1817 * target.cc (prepare_to_access_memory)
1818 (done_accessing_memory)
1819 (read_inferior_memory)
1820 (target_write_memory)
1821 (target_stop_and_wait)
1823 (target_mourn_inferior)
1824 (target_continue_no_signal)
1826 (target_supports_multi_process)
1829 (target_create_inferior)
1830 (target_post_create_inferior)
1832 (target_supports_fork_events)
1833 (target_supports_vfork_events)
1834 (target_supports_exec_events)
1835 (target_handle_new_gdb_connection)
1838 (fetch_inferior_registers)
1839 (store_inferior_registers)
1841 (target_supports_non_stop)
1843 (target_process_qsupported)
1844 (target_supports_catch_syscall)
1845 (target_get_ipa_tdesc_idx)
1846 (target_supports_tracepoints)
1847 (target_supports_fast_tracepoints)
1848 (target_get_min_fast_tracepoint_insn_len)
1849 (target_thread_stopped)
1851 (target_unpause_all)
1852 (target_stabilize_threads)
1853 (target_install_fast_tracepoint_jump_pad)
1855 (target_supports_disable_randomization)
1856 (target_supports_agent)
1857 (target_enable_btrace)
1858 (target_disable_btrace)
1859 (target_read_btrace)
1860 (target_read_btrace_conf)
1861 (target_supports_range_stepping)
1862 (target_supports_stopped_by_sw_breakpoint)
1863 (target_stopped_by_sw_breakpoint)
1864 (target_supports_stopped_by_hw_breakpoint)
1865 (target_supports_hardware_single_step)
1866 (target_stopped_by_hw_breakpoint)
1867 (target_breakpoint_kind_from_pc)
1868 (target_breakpoint_kind_from_current_state)
1869 (target_supports_software_single_step)
1870 (target_core_of_thread)
1871 (target_thread_name)
1872 (target_thread_handle)
1873 * win32-low.cc (do_initial_child_stuff)
1875 Rename target op default definitions listed below.
1877 * target.cc (process_target::post_create_inferior): Rename as ...
1878 (process_stratum_target::post_create_inferior): ... this.
1879 (process_target::prepare_to_access_memory): Rename as ...
1880 (process_stratum_target::prepare_to_access_memory): ... this.
1881 (process_target::done_accessing_memory): Rename as ...
1882 (process_stratum_target::done_accessing_memory): ... this.
1883 (process_target::look_up_symbols): Rename as ...
1884 (process_stratum_target::look_up_symbols): ... this.
1885 (process_target::supports_read_auxv): Rename as ...
1886 (process_stratum_target::supports_read_auxv): ... this.
1887 (process_target::read_auxv): Rename as ...
1888 (process_stratum_target::read_auxv): ... this.
1889 (process_target::supports_z_point_type): Rename as ...
1890 (process_stratum_target::supports_z_point_type): ... this.
1891 (process_target::insert_point): Rename as ...
1892 (process_stratum_target::insert_point): ... this.
1893 (process_target::remove_point): Rename as ...
1894 (process_stratum_target::remove_point): ... this.
1895 (process_target::stopped_by_sw_breakpoint): Rename as ...
1896 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
1897 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
1898 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
1899 (process_target::stopped_by_hw_breakpoint): Rename as ...
1900 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
1901 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
1902 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
1903 (process_target::supports_hardware_single_step): Rename as ...
1904 (process_stratum_target::supports_hardware_single_step): ... this.
1905 (process_target::stopped_by_watchpoint): Rename as ...
1906 (process_stratum_target::stopped_by_watchpoint): ... this.
1907 (process_target::stopped_data_address): Rename as ...
1908 (process_stratum_target::stopped_data_address): ... this.
1909 (process_target::supports_read_offsets): Rename as ...
1910 (process_stratum_target::supports_read_offsets): ... this.
1911 (process_target::read_offsets): Rename as ...
1912 (process_stratum_target::read_offsets): ... this.
1913 (process_target::supports_get_tls_address): Rename as ...
1914 (process_stratum_target::supports_get_tls_address): ... this.
1915 (process_target::get_tls_address): Rename as ...
1916 (process_stratum_target::get_tls_address): ... this.
1917 (process_target::hostio_last_error): Rename as ...
1918 (process_stratum_target::hostio_last_error): ... this.
1919 (process_target::supports_qxfer_osdata): Rename as ...
1920 (process_stratum_target::supports_qxfer_osdata): ... this.
1921 (process_target::qxfer_osdata): Rename as ...
1922 (process_stratum_target::qxfer_osdata): ... this.
1923 (process_target::supports_qxfer_siginfo): Rename as ...
1924 (process_stratum_target::supports_qxfer_siginfo): ... this.
1925 (process_target::qxfer_siginfo): Rename as ...
1926 (process_stratum_target::qxfer_siginfo): ... this.
1927 (process_target::supports_non_stop): Rename as ...
1928 (process_stratum_target::supports_non_stop): ... this.
1929 (process_target::async): Rename as ...
1930 (process_stratum_target::async): ... this.
1931 (process_target::start_non_stop): Rename as ...
1932 (process_stratum_target::start_non_stop): ... this.
1933 (process_target::supports_multi_process): Rename as ...
1934 (process_stratum_target::supports_multi_process): ... this.
1935 (process_target::supports_fork_events): Rename as ...
1936 (process_stratum_target::supports_fork_events): ... this.
1937 (process_target::supports_vfork_events): Rename as ...
1938 (process_stratum_target::supports_vfork_events): ... this.
1939 (process_target::supports_exec_events): Rename as ...
1940 (process_stratum_target::supports_exec_events): ... this.
1941 (process_target::handle_new_gdb_connection): Rename as ...
1942 (process_stratum_target::handle_new_gdb_connection): ... this.
1943 (process_target::handle_monitor_command): Rename as ...
1944 (process_stratum_target::handle_monitor_command): ... this.
1945 (process_target::core_of_thread): Rename as ...
1946 (process_stratum_target::core_of_thread): ... this.
1947 (process_target::supports_read_loadmap): Rename as ...
1948 (process_stratum_target::supports_read_loadmap): ... this.
1949 (process_target::read_loadmap): Rename as ...
1950 (process_stratum_target::read_loadmap): ... this.
1951 (process_target::process_qsupported): Rename as ...
1952 (process_stratum_target::process_qsupported): ... this.
1953 (process_target::supports_tracepoints): Rename as ...
1954 (process_stratum_target::supports_tracepoints): ... this.
1955 (process_target::read_pc): Rename as ...
1956 (process_stratum_target::read_pc): ... this.
1957 (process_target::write_pc): Rename as ...
1958 (process_stratum_target::write_pc): ... this.
1959 (process_target::supports_thread_stopped): Rename as ...
1960 (process_stratum_target::supports_thread_stopped): ... this.
1961 (process_target::thread_stopped): Rename as ...
1962 (process_stratum_target::thread_stopped): ... this.
1963 (process_target::supports_get_tib_address): Rename as ...
1964 (process_stratum_target::supports_get_tib_address): ... this.
1965 (process_target::get_tib_address): Rename as ...
1966 (process_stratum_target::get_tib_address): ... this.
1967 (process_target::pause_all): Rename as ...
1968 (process_stratum_target::pause_all): ... this.
1969 (process_target::unpause_all): Rename as ...
1970 (process_stratum_target::unpause_all): ... this.
1971 (process_target::stabilize_threads): Rename as ...
1972 (process_stratum_target::stabilize_threads): ... this.
1973 (process_target::supports_fast_tracepoints): Rename as ...
1974 (process_stratum_target::supports_fast_tracepoints): ... this.
1975 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
1976 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
1977 (process_target::emit_ops): Rename as ...
1978 (process_stratum_target::emit_ops): ... this.
1979 (process_target::supports_disable_randomization): Rename as ...
1980 (process_stratum_target::supports_disable_randomization): ... this.
1981 (process_target::supports_qxfer_libraries_svr4): Rename as ...
1982 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
1983 (process_target::qxfer_libraries_svr4): Rename as ...
1984 (process_stratum_target::qxfer_libraries_svr4): ... this.
1985 (process_target::supports_agent): Rename as ...
1986 (process_stratum_target::supports_agent): ... this.
1987 (process_target::enable_btrace): Rename as ...
1988 (process_stratum_target::enable_btrace): ... this.
1989 (process_target::disable_btrace): Rename as ...
1990 (process_stratum_target::disable_btrace): ... this.
1991 (process_target::read_btrace): Rename as ...
1992 (process_stratum_target::read_btrace): ... this.
1993 (process_target::read_btrace_conf): Rename as ...
1994 (process_stratum_target::read_btrace_conf): ... this.
1995 (process_target::supports_range_stepping): Rename as ...
1996 (process_stratum_target::supports_range_stepping): ... this.
1997 (process_target::supports_pid_to_exec_file): Rename as ...
1998 (process_stratum_target::supports_pid_to_exec_file): ... this.
1999 (process_target::pid_to_exec_file): Rename as ...
2000 (process_stratum_target::pid_to_exec_file): ... this.
2001 (process_target::supports_multifs): Rename as ...
2002 (process_stratum_target::supports_multifs): ... this.
2003 (process_target::multifs_open): Rename as ...
2004 (process_stratum_target::multifs_open): ... this.
2005 (process_target::multifs_unlink): Rename as ...
2006 (process_stratum_target::multifs_unlink): ... this.
2007 (process_target::multifs_readlink): Rename as ...
2008 (process_stratum_target::multifs_readlink): ... this.
2009 (process_target::breakpoint_kind_from_pc): Rename as ...
2010 (process_stratum_target::breakpoint_kind_from_pc): ... this.
2011 (process_target::breakpoint_kind_from_current_state): Rename as ...
2012 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
2013 (process_target::thread_name): Rename as ...
2014 (process_stratum_target::thread_name): ... this.
2015 (process_target::thread_handle): Rename as ...
2016 (process_stratum_target::thread_handle): ... this.
2017 (process_target::supports_software_single_step): Rename as ...
2018 (process_stratum_target::supports_software_single_step): ... this.
2019 (process_target::supports_catch_syscall): Rename as ...
2020 (process_stratum_target::supports_catch_syscall): ... this.
2021 (process_target::get_ipa_tdesc_idx): Rename as ...
2022 (process_stratum_target::get_ipa_tdesc_idx): ... this.
2024 2020-02-20 Pedro Alves <palves@redhat.com>
2026 * target.cc (set_target_ops): Simply copy the given target pointer
2027 instead of creating a copy of the pointed object.
2029 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2031 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
2034 * target.h (struct process_stratum_target): Remove the target op.
2035 (class process_target): Add the target op.
2036 (target_get_ipa_tdesc_idx): Update the macro.
2037 * target.cc (process_target::get_ipa_tdesc_idx): Define.
2039 Update the derived classes and callers below.
2041 * linux-low.cc (linux_target_ops): Update.
2042 (linux_get_ipa_tdesc_idx): Turn into ...
2043 (linux_process_target::get_ipa_tdesc_idx): ... this.
2044 * linux-low.h (class linux_process_target): Update.
2045 * lynx-low.cc (lynx_target_ops): Update.
2046 * nto-low.cc (nto_target_ops): Update.
2047 * win32-low.cc (win32_target_ops): Update.
2049 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2051 Turn process_stratum_target's supports_catch_syscall op into a
2052 method of process_target.
2054 * target.h (struct process_stratum_target): Remove the target op.
2055 (class process_target): Add the target op.
2056 (target_supports_catch_syscall): Update the macro.
2057 * target.cc (process_target::supports_catch_syscall): Define.
2059 Update the derived classes and callers below.
2061 * linux-low.cc (linux_target_ops): Update.
2062 (linux_supports_catch_syscall): Turn into ...
2063 (linux_process_target::supports_catch_syscall): ... this.
2064 * linux-low.h (class linux_process_target): Update.
2065 * lynx-low.cc (lynx_target_ops): Update.
2066 * nto-low.cc (nto_target_ops): Update.
2067 * win32-low.cc (win32_target_ops): Update.
2069 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2071 Turn process_stratum_target's supports_software_single_step op
2072 into a method of process_target.
2074 * target.h (struct process_stratum_target): Remove the target op.
2075 (class process_target): Add the target op.
2076 (target_supports_software_single_step): Update the macro.
2077 * target.cc (process_target::supports_software_single_step): Define.
2079 Update the derived classes and callers below.
2081 * linux-low.cc (linux_target_ops): Update.
2082 (linux_supports_software_single_step): Turn into ...
2083 (linux_process_target::supports_software_single_step): ... this.
2084 * linux-low.h (class linux_process_target): Update.
2085 * lynx-low.cc (lynx_target_ops): Update.
2086 * nto-low.cc (nto_target_ops): Update.
2087 * win32-low.cc (win32_target_ops): Update.
2089 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2091 Turn process_stratum_target's thread_name and thread_handle ops
2092 into methods of process_target.
2094 * target.h (struct process_stratum_target): Remove the target ops.
2095 (class process_target): Add the target ops.
2096 (target_thread_name): Update the macro.
2097 (target_thread_handle): Update the macro.
2098 * target.cc (process_target::thread_name): Define.
2099 (process_target::thread_handle): Define.
2101 Update the derived classes and callers below.
2103 * linux-low.cc (linux_target_ops): Update.
2104 (linux_process_target::thread_name): Define.
2105 (linux_process_target::thread_handle): Define.
2106 * linux-low.h (class linux_process_target): Update.
2107 * lynx-low.cc (lynx_target_ops): Update.
2108 * nto-low.cc (nto_target_ops): Update.
2109 * win32-low.cc (win32_target_ops): Update.
2111 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2113 Turn process_stratum_target's breakpoint_kind_from_pc,
2114 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
2115 ops into methods of process_target.
2117 * target.h (struct process_stratum_target): Remove the target op.
2118 (class process_target): Add the target op.
2119 (target_breakpoint_kind_from_pc): Update the macro.
2120 (target_breakpoint_kind_from_current_state): Update the macro.
2121 (default_breakpoint_kind_from_pc): Remove declaration.
2122 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
2123 (process_target::breakpoint_kind_from_pc): ... this.
2124 (process_target::breakpoint_kind_from_current_state): Define.
2126 Update the derived classes and callers below.
2128 * mem-break.cc (bp_size): Update.
2129 (bp_opcode): Update.
2130 * linux-low.cc (linux_target_ops): Update.
2131 (linux_wait_1): Update.
2132 (linux_breakpoint_kind_from_pc): Turn into ...
2133 (linux_process_target::breakpoint_kind_from_pc): ... this.
2134 (linux_sw_breakpoint_from_kind): Turn into ...
2135 (linux_process_target::sw_breakpoint_from_kind): ... this.
2136 (linux_breakpoint_kind_from_current_state): Turn into ...
2137 (linux_process_target::breakpoint_kind_from_current_state): ... this.
2138 * linux-low.h (class linux_process_target): Update.
2139 * lynx-low.cc (lynx_target_ops): Update.
2140 (lynx_process_target::sw_breakpoint_from_kind): Define.
2141 * lynx-low.h (class lynx_process_target): Update.
2142 * nto-low.cc (nto_target_ops): Update.
2143 (nto_sw_breakpoint_from_kind): Turn into ...
2144 (nto_process_target::sw_breakpoint_from_kind): ... this.
2145 * nto-low.h (class nto_process_target): Update.
2146 * win32-low.cc (win32_target_ops): Update.
2147 (win32_sw_breakpoint_from_kind): Turn into ...
2148 (win32_process_target::sw_breakpoint_from_kind): ... this.
2149 * win32-low.h (class win32_process_target): Update.
2151 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2153 Turn process_stratum_target's multifs_open, multifs_readlink,
2154 multifs_unlink ops into methods of process_target.
2156 * target.h (struct process_stratum_target): Remove the target ops.
2157 (class process_target): Add the target ops. Also add
2159 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
2161 (process_target::supports_multifs): Define.
2162 (process_target::multifs_open): Define.
2163 (process_target::multifs_readlink): Define.
2164 (process_target::multifs_unlink): Define.
2166 Update the derived classes and callers below.
2168 * hostio.cc (handle_setfs): Update.
2169 (handle_open): Update.
2170 (handle_unlink): Update.
2171 (handle_readlink): Update.
2172 * linux-low.cc (linux_target_ops): Update.
2173 (linux_process_target::supports_multifs): Define.
2174 (linux_process_target::multifs_open): Define.
2175 (linux_process_target::multifs_readlink): Define.
2176 (linux_process_target::multifs_unlink): Define.
2177 * linux-low.h (class linux_process_target): Update.
2178 * lynx-low.cc (lynx_target_ops): Update.
2179 * nto-low.cc (nto_target_ops): Update.
2180 * win32-low.cc (win32_target_ops): Update.
2182 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2184 Turn process_stratum_target's pid_to_exec_file op into a method
2187 * target.h (struct process_stratum_target): Remove the target op.
2188 (class process_target): Add the target op. Also add
2189 'supports_pid_to_exec_file'.
2190 * target.cc (process_target::pid_to_exec_file): Define.
2191 (process_target::supports_pid_to_exec_file): Define.
2193 Update the derived classes and callers below.
2195 * server.cc (handle_qxfer_exec_file): Update.
2196 (handle_query): Update.
2197 * linux-low.cc (linux_target_ops): Update.
2198 (linux_process_target::supports_pid_to_exec_file): Define.
2199 (linux_process_target::pid_to_exec_file): Define.
2200 * linux-low.h (class linux_process_target): Update.
2201 * lynx-low.cc (lynx_target_ops): Update.
2202 * nto-low.cc (nto_target_ops): Update.
2203 * win32-low.cc (win32_target_ops): Update.
2205 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2207 Turn process_stratum_target's supports_range_stepping op into a
2208 method of process_target.
2210 * target.h (struct process_stratum_target): Remove the target op.
2211 (class process_target): Add the target op.
2212 (target_supports_range_stepping): Update the macro.
2213 * target.cc (process_target::supports_range_stepping): Define.
2215 Update the derived classes and callers below.
2217 * linux-low.cc (linux_target_ops): Update.
2218 (linux_supports_range_stepping): Turn into ...
2219 (linux_process_target::supports_range_stepping): ... this.
2220 * linux-low.h (class linux_process_target): Update.
2221 * lynx-low.cc (lynx_target_ops): Update.
2222 * nto-low.cc (nto_target_ops): Update.
2223 * win32-low.cc (win32_target_ops): Update.
2225 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2227 Turn process_stratum_target's btrace-related ops (enable_btrace,
2228 disable_btrace, read_btrace, read_btrace_conf) into methods of
2231 * target.h (struct process_stratum_target): Remove the target ops.
2232 (class process_target): Add the target ops.
2233 (target_enable_btrace): Update.
2234 (target_disable_btrace): Update.
2235 (target_read_btrace): Update.
2236 (target_read_btrace_conf): Update.
2237 * target.cc (process_target::enable_btrace): Define.
2238 (process_target::disable_btrace): Define.
2239 (process_target::read_btrace): Define.
2240 (process_target::read_btrace_conf): Define.
2242 Update the derived classes and callers below.
2244 * linux-low.cc (linux_target_ops): Update.
2245 (linux_process_target:enable_btrace): Define as a wrapper around
2246 linux_enable_btrace.
2247 (linux_low_disable_btrace): Turn into ...
2248 (linux_process_target::disable_btrace): ... this.
2249 (linux_low_read_btrace): Turn into ...
2250 (linux_process_target::read_btrace): ... this.
2251 (linux_low_btrace_conf): Turn into ...
2252 (linux_process_target::read_btrace_conf): ... this.
2253 * linux-low.h (class linux_process_target): Update.
2254 * lynx-low.cc (lynx_target_ops): Update.
2255 * nto-low.cc (nto_target_ops): Update.
2256 * win32-low.cc (win32_target_ops): Update.
2258 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2260 Turn process_stratum_target's supports_agent op into a method of
2263 * target.h (struct process_stratum_target): Remove the target op.
2264 (class process_target): Add the target op.
2265 (target_supports_agent): Update the macro.
2266 * target.cc (process_target::supports_agent): Define.
2268 Update the derived classes and callers below.
2270 * linux-low.cc (linux_target_ops): Update.
2271 (linux_supports_agent): Turn into ...
2272 (linux_process_target::supports_agent): ... this.
2273 * linux-low.h (class linux_process_target): Update.
2274 * lynx-low.cc (lynx_target_ops): Update.
2275 * nto-low.cc (nto_target_ops): Update.
2276 * win32-low.cc (win32_target_ops): Update.
2278 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2280 Turn process_stratum_target's qxfer_libraries_svr4 op into a
2281 method of process_target.
2283 * target.h (struct process_stratum_target): Remove the target op.
2284 (class process_target): Add the target op. Also add
2285 'supports_qxfer_libraries_svr4'.
2286 * target.cc (process_target::qxfer_libraries_svr4): Define.
2287 (process_target::supports_qxfer_libraries_svr4): Define.
2289 Update the derived classes and callers below.
2291 * server.cc (handle_qxfer_libraries_svr4): Update.
2292 (handle_query): Update.
2293 * linux-low.cc (linux_target_ops): Update.
2294 (linux_process_target::supports_qxfer_libraries_svr4): Define.
2295 (linux_qxfer_libraries_svr4): Turn into ...
2296 (linux_process_target::qxfer_libraries_svr4): ... this.
2297 * linux-low.h (class linux_process_target): Update.
2298 * lynx-low.cc (lynx_target_ops): Update.
2299 * nto-low.cc (nto_target_ops): Update.
2300 * win32-low.cc (win32_target_ops): Update.
2302 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2304 Turn process_stratum_target's supports_disable_randomization op
2305 into a method of process_target.
2307 * target.h (struct process_stratum_target): Remove the target op.
2308 (class process_target): Add the target op.
2309 (target_supports_disable_randomization): Update the macro.
2310 * target.cc (process_target::supports_disable_randomization): Define.
2312 Update the derived classes and callers below.
2314 * linux-low.cc (linux_target_ops): Update.
2315 (linux_supports_disable_randomization): Turn into ...
2316 (linux_process_target::supports_disable_randomization): ... this.
2317 * linux-low.h (class linux_process_target): Update.
2318 * lynx-low.cc (lynx_target_ops): Update.
2319 * nto-low.cc (nto_target_ops): Update.
2320 * win32-low.cc (win32_target_ops): Update.
2322 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2324 Turn process_stratum_target's emit_ops op into a method of
2327 * target.h (struct process_stratum_target): Remove the target op.
2328 (class process_target): Add the target op.
2329 (target_emit_ops): Update the macro.
2330 * target.cc (process_target::emit_ops): Define.
2332 Update the derived classes and callers below.
2334 * linux-low.cc (linux_target_ops): Update.
2335 (linux_emit_ops): Turn into ...
2336 (linux_process_target::emit_ops): ... this.
2337 * linux-low.h (class linux_process_target): Update.
2338 * lynx-low.cc (lynx_target_ops): Update.
2339 * nto-low.cc (nto_target_ops): Update.
2340 * win32-low.cc (win32_target_ops): Update.
2342 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2344 Turn process_stratum_target's install_fast_tracepoint_jump_pad
2345 and get_min_fast_tracepoint_insn_len ops into methods of
2348 * target.h (struct process_stratum_target): Remove the target ops.
2349 (class process_target): Add the target ops. Also add
2350 'supports_fast_tracepoints'.
2351 (target_supports_fast_tracepoints): Update the macro.
2352 (target_get_min_fast_tracepoint_insn_len): Update the macro.
2353 (install_fast_tracepoint_jump_pad): Update and rename the macro
2355 (target_install_fast_tracepoint_jump_pad): ... this.
2356 * target.cc (process_target::supports_fast_tracepoints): Define.
2357 (process_target::install_fast_tracepoint_jump_pad): Define.
2358 (process_target::get_min_fast_tracepoint_insn_len): Define.
2360 Update the derived classes and callers below.
2362 * tracepoint.cc (install_fast_tracepoint): Update.
2363 * linux-low.cc (linux_target_ops): Update.
2364 (linux_process_target::supports_fast_tracepoints): Define.
2365 (linux_install_fast_tracepoint_jump_pad): Turn into ...
2366 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
2367 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
2368 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
2369 * linux-low.h (class linux_process_target): Update.
2370 * lynx-low.cc (lynx_target_ops): Update.
2371 * nto-low.cc (nto_target_ops): Update.
2372 * win32-low.cc (win32_target_ops): Update.
2374 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2376 Turn process_stratum_target's stabilize_threads op into a
2377 method of process_target.
2379 * target.h (struct process_stratum_target): Remove the target op.
2380 (class process_target): Add the target op.
2381 (target_stabilize_threads): Update the macro.
2382 * target.cc (process_target::stabilize_threads): Define.
2384 Update the derived classes and callers below.
2386 * server.cc (handle_status): Update.
2387 * tracepoint.cc (cmd_qtdp): Update.
2388 (cmd_qtstart): Update.
2389 * linux-low.cc (linux_target_ops): Update.
2390 (linux_stabilize_threads): Turn into ...
2391 (linux_process_target::stabilize_threads): ... this.
2392 (linux_wait_1): Update.
2393 * linux-low.h (class linux_process_target): Update.
2394 * lynx-low.cc (lynx_target_ops): Update.
2395 * nto-low.cc (nto_target_ops): Update.
2396 * win32-low.cc (win32_target_ops): Update.
2398 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2400 Turn process_stratum_target's pause_all and unpause_all ops
2401 into methods of process_target.
2403 * target.h (struct process_stratum_target): Remove the target ops.
2404 (class process_target): Add the target ops.
2405 (pause_all): Update the macro and rename to...
2406 (target_pause_all): ... this.
2407 (unpause_all): Update the macro and rename to...
2408 (target_unpause_all): ... this.
2409 * target.cc (process_target::pause_all): Define.
2410 (process_target::unpause_all): Define.
2412 Update the derived classes and callers below.
2414 * server.cc (handle_status): Update.
2415 * tracepoint.cc (clear_installed_tracepoints): Update.
2417 (cmd_qtstart): Update.
2418 (stop_tracing): Update.
2419 (cmd_qtstatus): Update.
2420 (upload_fast_traceframes): Update.
2421 (run_inferior_command): Update.
2422 * linux-low.cc (linux_target_ops): Update.
2423 (linux_pause_all): Turn into ...
2424 (linux_process_target::pause_all): ... this.
2425 (linux_unpause_all): Turn into ...
2426 (linux_process_target::unpause_all): ... this.
2427 (linux_process_target::prepare_to_access_memory): Update.
2428 (linux_process_target::done_accessing_memory): Update.
2429 * linux-low.h (class linux_process_target): Update.
2430 * lynx-low.cc (lynx_target_ops): Update.
2431 * nto-low.cc (nto_target_ops): Update.
2432 * win32-low.cc (win32_target_ops): Update.
2434 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2436 Turn process_stratum_target's get_tib_address op into a method of
2439 * target.h (struct process_stratum_target): Remove the target op.
2440 (class process_target): Add the target op. Also add
2441 'supports_get_tib_address'.
2442 * target.cc (process_target::get_tib_address): Define.
2443 (process_target::supports_get_tib_address): Define.
2445 Update the derived classes and callers below.
2447 * server.cc (handle_query): Update.
2448 * linux-low.cc (win32_target_ops): Update.
2449 * lynx-low.cc (lynx_target_ops): Update.
2450 * nto-low.cc (nto_target_ops): Update.
2451 * win32-low.cc (win32_target_ops): Update.
2452 (win32_process_target::supports_get_tib_address): Define.
2453 (win32_get_tib_address): Turn into ...
2454 (win32_process_target::get_tib_address): ... this.
2455 * win32-low.h (class win32_process_target): Update.
2457 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2459 Turn process_stratum_target's thread_stopped op into a method of
2462 * target.h (struct process_stratum_target): Remove the target op.
2463 (class process_target): Add the target op. Also add
2464 'supports_thread_stopped'.
2465 (target_thread_stopped): Update the macro.
2466 * target.cc (process_target::thread_stopped): Define.
2467 (process_target::supports_thread_stopped): Define.
2468 (prepare_to_access_memory): Update.
2470 Update the derived classes and callers below.
2472 * server.cc (queue_stop_reply_callback): Update.
2473 * linux-low.cc (linux_target_ops): Update.
2474 (linux_process_target::supports_thread_stopped): Define.
2475 (linux_thread_stopped): Turn into ...
2476 (linux_process_target::thread_stopped): ... this.
2477 * linux-low.h (class linux_process_target): Update.
2478 * lynx-low.cc (lynx_target_ops): Update.
2479 * nto-low.cc (nto_target_ops): Update.
2480 * win32-low.cc (win32_target_ops): Update.
2482 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2484 Turn process_stratum_target's read_pc and write_pc ops into
2485 methods of process_target.
2487 * target.h (struct process_stratum_target): Remove the target ops.
2488 (class process_target): Add the target ops.
2489 * target.cc (process_target::read_pc): Define.
2490 (process_target::write_pc): Define.
2492 Update the derived classes and callers below.
2494 * regcache.cc (regcache_read_pc): Update.
2495 (regcache_write_pc): Update.
2496 * linux-low.cc (linux_target_ops): Update.
2497 (linux_read_pc): Turn into ...
2498 (linux_process_target::read_pc): ... this.
2499 (linux_write_pc): Turn into ...
2500 (linux_process_target::write_pc): ... this.
2501 * linux-low.h (class linux_process_target): Update.
2502 * lynx-low.cc (lynx_target_ops): Update.
2503 * nto-low.cc (nto_target_ops): Update.
2504 * win32-low.cc (win32_target_ops): Update.
2506 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2508 Turn process_stratum_target's supports_tracepoints op into a
2509 method of process_target.
2511 * target.h (struct process_stratum_target): Remove the target op.
2512 (class process_target): Add the target op.
2513 (target_supports_tracepoints): Update the macro.
2514 * target.cc (process_target::supports_tracepoints): Define.
2516 Update the derived classes and callers below.
2518 * linux-low.cc (linux_target_ops): Update.
2519 (linux_supports_tracepoints): Turn into ...
2520 (linux_process_target::supports_tracepoints): ... this.
2521 * linux-low.h (class linux_process_target): Update.
2522 * lynx-low.cc (lynx_target_ops): Update.
2523 * nto-low.cc (nto_target_ops): Update.
2524 * win32-low.cc (win32_target_ops): Update.
2526 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2528 Turn process_stratum_target's process_qsupported op into a method
2531 * target.h (struct process_stratum_target): Remove the target op.
2532 (class process_target): Add the target op.
2533 (target_process_qsupported): Update the macro.
2534 * target.cc (process_target::process_qsupported): Define.
2536 Update the derived classes and callers below.
2538 * linux-low.cc (linux_target_ops): Update.
2539 (linux_process_qsupported): Turn into ...
2540 (linux_process_target::process_qsupported): ... this.
2541 * linux-low.h (class linux_process_target): Update.
2542 * lynx-low.cc (lynx_target_ops): Update.
2543 * nto-low.cc (nto_target_ops): Update.
2544 * win32-low.cc (win32_target_ops): Update.
2546 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2548 Turn process_stratum_target's read_loadmap op into a method of
2551 * target.h (struct process_stratum_target): Remove the target op.
2552 (class process_target): Add the target op. Also add
2553 'supports_read_loadmap'.
2554 * target.cc (process_target::read_loadmap): Define.
2555 (process_target::supports_read_loadmap): Define.
2557 Update the derived classes and callers below.
2559 * server.cc (handle_qxfer_fdpic): Update.
2560 (handle_query): Update.
2561 * linux-low.cc (linux_target_ops): Update.
2562 (linux_process_target::supports_read_loadmap): Define.
2563 (linux_read_loadmap): Turn into ...
2564 (linux_process_target::read_loadmap): ... this.
2565 * linux-low.h (class linux_process_target): Update.
2566 * lynx-low.cc (lynx_target_ops): Update.
2567 * nto-low.cc (nto_target_ops): Update.
2568 * win32-low.cc (win32_target_ops): Update.
2570 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2572 Turn process_stratum_target's core_of_thread op into a method of
2575 * target.h (struct process_stratum_target): Remove the target op.
2576 (class process_target): Add the target op.
2577 (target_core_of_thread): Update the macro.
2578 * target.cc (process_target::core_of_thread): Define.
2580 Update the derived classes and callers below.
2582 * linux-low.cc (linux_target_ops): Update.
2583 (linux_process_target::core_of_thread): Define.
2584 * linux-low.h (class linux_process_target): Update.
2585 * lynx-low.cc (lynx_target_ops): Update.
2586 * nto-low.cc (nto_target_ops): Update.
2587 * win32-low.cc (win32_target_ops): Update.
2589 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2591 Turn process_stratum_target's handle_monitor_command op into a
2592 method of process_target.
2594 * target.h (struct process_stratum_target): Remove the target op.
2595 (class process_target): Add the target op.
2596 (target_handle_monitor_command): Update the macro.
2597 * target.cc (process_target::handle_monitor_command): Define.
2599 Update the derived classes and callers below.
2601 * server.cc (handle_query): Update.
2602 * linux-low.cc (linux_target_ops): Update.
2603 (linux_process_target::handle_monitor_command): Define.
2604 * linux-low.h (class linux_process_target): Update.
2605 * lynx-low.cc (lynx_target_ops): Update.
2606 * nto-low.cc (nto_target_ops): Update.
2607 * win32-low.cc (win32_target_ops): Update.
2609 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2611 Turn process_stratum_target's handle_new_gdb_connection op into a
2612 method of process_target.
2614 * target.h (struct process_stratum_target): Remove the target op.
2615 (class process_target): Add the target op.
2616 (target_handle_new_gdb_connection): Update the macro.
2617 * target.cc (process_target::handle_new_gdb_connection): Define.
2619 Update the derived classes and callers below.
2621 * linux-low.cc (linux_target_ops): Update.
2622 (linux_handle_new_gdb_connection): Turn into ...
2623 (linux_process_target::handle_new_gdb_connection): ... this.
2624 * linux-low.h (class linux_process_target): Update.
2625 * lynx-low.cc (lynx_target_ops): Update.
2626 * nto-low.cc (nto_target_ops): Update.
2627 * win32-low.cc (win32_target_ops): Update.
2629 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2631 Turn process_stratum_target's supports_fork_events,
2632 supports_vfork_events, and supports_exec_events ops into methods
2635 * target.h (struct process_stratum_target): Remove the target ops.
2636 (class process_target): Add the target ops.
2637 (target_supports_fork_events): Update the macro.
2638 (target_supports_vfork_events): Update the macro.
2639 (target_supports_exec_events): Update the macro.
2640 * target.cc (process_target::supports_fork_events): Define.
2641 (process_target::supports_vfork_events): Define.
2642 (process_target::supports_exec_events): Define.
2644 Update the derived classes and callers below.
2646 * linux-low.cc (linux_target_ops): Update.
2647 (linux_supports_fork_events): Turn into ...
2648 (linux_process_target::supports_fork_events): ... this.
2649 (linux_supports_vfork_events): Turn into ...
2650 (linux_process_target::supports_vfork_events): ... this.
2651 (linux_supports_exec_events): Turn into ...
2652 (linux_process_target::supports_exec_events): ... this.
2653 * linux-low.h (class linux_process_target): Update.
2654 * lynx-low.cc (lynx_target_ops): Update.
2655 * nto-low.cc (nto_target_ops): Update.
2656 * win32-low.cc (win32_target_ops): Update.
2658 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2660 Turn process_stratum_target's supports_multi_process op into a
2661 method of process_target.
2663 * target.h (struct process_stratum_target): Remove the target op.
2664 (class process_target): Add the target op.
2665 * target.cc (process_target::supports_multi_process): Define.
2666 (target_supports_multi_process): Update.
2668 Update the derived classes and callers below.
2670 * linux-low.cc (linux_target_ops): Update.
2671 (linux_supports_multi_process): Turn into ...
2672 (linux_process_target::supports_multi_process): ... this.
2673 * linux-low.h (class linux_process_target): Update.
2674 * lynx-low.cc (lynx_target_ops): Update.
2675 * nto-low.cc (nto_target_ops): Update.
2676 * win32-low.cc (win32_target_ops): Update.
2678 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2680 Turn process_stratum_target's supports_non_stop, async, and
2681 start_non_stop ops into methods of process_target.
2683 * target.h (struct process_stratum_target): Remove the target ops.
2684 (class process_target): Add the target ops.
2685 (target_supports_non_stop): Update the macro.
2686 (target_async): Update the macro.
2687 (start_non_stop): Remove declaration.
2688 * target.cc (process_target::supports_non_stop): Define.
2689 (process_target::async): Define.
2690 (process_target::start_non_stop): Define.
2691 (start_non_stop): Remove.
2693 Update the derived classes and callers below.
2695 * server.cc (handle_qxfer_siginfo): Update.
2696 (handle_query): Update.
2697 * linux-low.cc (linux_target_ops): Update.
2698 (linux_supports_non_stop): Turn into ...
2699 (linux_process_target::supports_non_stop): ... this.
2700 (linux_async): Turn into ...
2701 (linux_process_target::async): ... this.
2702 (linux_start_non_stop): Turn into ...
2703 (linux_process_target::start_non_stop): ... this.
2704 * linux-low.h (class linux_process_target): Update.
2705 * lynx-low.cc (lynx_target_ops): Update.
2706 * nto-low.cc (nto_target_ops): Update.
2707 (nto_supports_non_stop): Remove; rely on the default behavior
2709 * win32-low.cc (win32_target_ops): Update.
2711 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2713 Turn process_stratum_target's qxfer_siginfo op into a method of
2716 * target.h (struct process_stratum_target): Remove the target op.
2717 (class process_target): Add the target op. Also add
2718 'supports_qxfer_siginfo'.
2719 * target.cc (process_target::qxfer_siginfo): Define.
2720 (process_target::supports_qxfer_siginfo): Define.
2722 Update the derived classes and callers below.
2724 * server.cc (handle_qxfer_siginfo): Update.
2725 (handle_query): Update.
2726 * linux-low.cc (linux_target_ops): Update.
2727 (linux_process_target::supports_qxfer_siginfo): Define.
2728 (linux_xfer_siginfo): Turn into ...
2729 (linux_process_target::qxfer_siginfo): ... this.
2730 * linux-low.h (class linux_process_target): Update.
2731 * lynx-low.cc (lynx_target_ops): Update.
2732 * nto-low.cc (nto_target_ops): Update.
2733 * win32-low.cc (win32_target_ops): Update.
2735 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2737 Turn process_stratum_target's qxfer_osdata op into a method of
2740 * target.h (struct process_stratum_target): Remove the target op.
2741 (class process_target): Add the target op. Also add
2742 'supports_qxfer_osdata'.
2743 * target.cc (process_target::qxfer_osdata): Define.
2744 (process_target::supports_qxfer_osdata): Define.
2746 Update the derived classes and callers below.
2748 * server.cc (handle_qxfer_osdata): Update.
2749 (handle_query): Update.
2750 * linux-low.cc (linux_target_ops): Update.
2751 (linux_process_target::supports_qxfer_osdata): Define.
2752 (linux_qxfer_osdata): Turn into ...
2753 (linux_process_target::qxfer_osdata): ... this.
2754 * linux-low.h (class linux_process_target): Update.
2755 * lynx-low.cc (lynx_target_ops): Update.
2756 * nto-low.cc (nto_target_ops): Update.
2757 * win32-low.cc (win32_target_ops): Update.
2759 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2761 Turn process_stratum_target's hostio_last_error op into a
2762 method of process_target.
2764 * target.h (struct process_stratum_target): Remove the target op.
2765 (class process_target): Add the target op.
2766 * target.cc: Add "hostio.h" to includes.
2767 (process_target::hostio_last_error): Define.
2769 Update the derived classes and callers below.
2771 * hostio.cc (hostio_error): Update.
2772 * linux-low.cc: Remove "hostio.h" from includes.
2773 (linux_target_ops): Update.
2774 * lynx-low.cc (lynx_target_ops): Update.
2775 * nto-low.cc (nto_target_ops): Update.
2776 * win32-low.h (class win32_process_target): Update.
2777 * win32-low.cc (win32_target_ops): Update.
2778 (wince_hostio_last_error): Turn into ...
2779 (win32_process_target::hostio_last_error): ... this.
2781 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2783 Turn process_stratum_target's get_tls_address op into a method of
2786 * target.h (struct process_stratum_target): Remove the target op.
2787 (class process_target): Add the target op. Also add
2788 'supports_get_tls_address'.
2789 * target.cc (process_target::get_tls_address): Define.
2790 (process_target::supports_get_tls_address): Define.
2792 Update the derived classes and callers below.
2794 * server.cc (handle_query): Update.
2795 * linux-low.cc (linux_target_ops): Update.
2796 (linux_process_target::supports_get_tls_address): Define.
2797 (linux_process_target::get_tls_address): Define.
2798 * linux-low.h (class linux_process_target): Update.
2799 * lynx-low.cc (lynx_target_ops): Update.
2800 * nto-low.cc (nto_target_ops): Update.
2801 * win32-low.cc (win32_target_ops): Update.
2803 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2805 Turn process_stratum_target's read_offsets op into a method of
2808 * target.h (struct process_stratum_target): Remove the target op.
2809 (class process_target): Add the target op. Also add
2810 'supports_read_offsets'.
2811 * target.cc (process_target::read_offsets): Define.
2812 (process_target::supports_read_offsets): Define.
2814 Update the derived classes and callers below.
2816 * server.cc (handle_query): Update.
2817 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
2818 (linux_target_ops): Update.
2819 (linux_process_target::supports_read_offsets): Define.
2820 (linux_read_offsets): Turn into ...
2821 (linux_process_target::read_offsets): ... this.
2822 * linux-low.h (class linux_process_target): Update.
2823 * lynx-low.cc (lynx_target_ops): Update.
2824 * nto-low.cc (nto_target_ops): Update.
2825 * win32-low.cc (win32_target_ops): Update.
2827 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2829 Turn process_stratum_target's stopped_by_watchpoint and
2830 stopped_data_address ops into methods of process_target.
2832 * target.h (struct process_stratum_target): Remove the target ops.
2833 (class process_target): Add the target ops.
2834 * target.cc (process_target::stopped_by_watchpoint): Define.
2835 (process_target::stopped_data_address): Define.
2837 Update the derived classes and callers below.
2839 * remote-utils.cc (prepare_resume_reply): Update.
2840 * linux-low.cc (linux_target_ops): Update.
2841 (linux_stopped_by_watchpoint): Turn into ...
2842 (linux_process_target::stopped_by_watchpoint): ... this.
2843 (linux_stopped_data_address): Turn into ...
2844 (linux_process_target::stopped_data_address): ... this.
2845 * linux-low.h (class linux_process_target): Update.
2846 * lynx-low.cc (lynx_target_ops): Update.
2847 * nto-low.cc (nto_target_ops): Update.
2848 (nto_stopped_by_watchpoint): Turn into ...
2849 (nto_process_target::stopped_by_watchpoint): ... this.
2850 (nto_stopped_data_address): Turn into ...
2851 (nto_process_target::stopped_data_address): ... this.
2852 * nto-low.h (class nto_process_target): Update.
2853 * win32-low.cc (win32_target_ops): Update.
2854 (win32_stopped_by_watchpoint): Turn into ...
2855 (win32_process_target::stopped_by_watchpoint): ... this.
2856 (win32_stopped_data_address): Turn into ...
2857 (win32_process_target::stopped_data_address): ... this.
2858 * win32-low.h (class win32_process_target): Update.
2860 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2862 Turn process_stratum_target's supports_hardware_single_step op into
2863 a method of process_target.
2865 * target.h (struct process_stratum_target): Remove the target op.
2866 (class process_target): Add the target op.
2867 (target_supports_hardware_single_step): Update the macro.
2868 (target_can_do_hardware_single_step): Remove declaration.
2869 * target.cc (process_target::supports_hardware_single_step): Define.
2870 (target_can_do_hardware_single_step): Remove.
2872 Update the derived classes and callers below.
2874 * linux-low.h (class linux_process_target): Update.
2875 * linux-low.cc (linux_target_ops): Update.
2876 (linux_supports_hardware_single_step): Turn into ...
2877 (linux_process_target::supports_hardware_single_step): ... this.
2878 * lynx-low.h (class lynx_process_target): Update.
2879 * lynx-low.cc (lynx_target_ops): Update.
2880 (lynx_process_target::supports_hardware_single_step): Define.
2881 * nto-low.h (class nto_process_target): Update.
2882 * nto-low.cc (nto_target_ops): Update.
2883 (nto_process_target::supports_hardware_single_step): Define.
2884 * win32-low.h (class win32_process_target): Update.
2885 * win32-low.cc (win32_target_ops): Update.
2886 (win32_process_target::supports_hardware_single_step): Define.
2888 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2890 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
2891 ops into methods of process_target.
2893 * target.h (struct process_stratum_target): Remove the target ops.
2894 (class process_target): Add the target ops.
2895 (target_stopped_by_hw_breakpoint): Update the macro.
2896 (target_supports_stopped_by_hw_breakpoint): Update the macro.
2897 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
2898 (process_target::supports_stopped_by_hw_breakpoint): Define.
2900 Update the derived classes and callers below.
2902 * linux-low.cc (linux_target_ops): Update.
2903 (linux_stopped_by_hw_breakpoint): Turn into ...
2904 (linux_process_target::stopped_by_hw_breakpoint): ... this.
2905 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
2906 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
2907 * linux-low.h (class linux_process_target): Update.
2908 * lynx-low.cc (lynx_target_ops): Update.
2909 * nto-low.cc (nto_target_ops): Update.
2910 * win32-low.cc (win32_target_ops): Update.
2912 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2914 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
2915 ops into methods of process_target.
2917 * target.h (struct process_stratum_target): Remove the target ops.
2918 (class process_target): Add the target ops.
2919 (target_stopped_by_sw_breakpoint): Update the macro.
2920 (target_supports_stopped_by_sw_breakpoint): Update the macro.
2921 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
2922 (process_target::supports_stopped_by_sw_breakpoint): Define.
2924 Update the derived classes and callers below.
2926 * linux-low.cc (linux_target_ops): Update.
2927 (linux_stopped_by_sw_breakpoint): Turn into ...
2928 (linux_process_target::stopped_by_sw_breakpoint): ... this.
2929 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
2930 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
2931 * linux-low.h (class linux_process_target): Update.
2932 * lynx-low.cc (lynx_target_ops): Update.
2933 * nto-low.cc (nto_target_ops): Update.
2934 * win32-low.cc (win32_target_ops): Update.
2936 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2938 Turn process_stratum_target's insert_point and remove_point ops
2939 into methods of process_target.
2941 * target.h (struct process_stratum_target): Remove the target ops.
2942 (class process_target): Add the target ops.
2943 * target.cc (process_target::insert_point): Define.
2944 (process_target::remove_point): Define.
2946 Update the derived classes and callers below.
2948 * mem-break.cc (set_raw_breakpoint_at): Update.
2949 (delete_raw_breakpoint): Update.
2950 (uninsert_raw_breakpoint): Update.
2951 (reinsert_raw_breakpoint): Update.
2952 * linux-low.cc (linux_target_ops): Update.
2953 (linux_insert_point): Turn into ...
2954 (linux_process_target::insert_point): ... this.
2955 (linux_remove_point): Turn into ...
2956 (linux_process_target::remove_point): ... this.
2957 * linux-low.h (class linux_process_target): Update.
2958 * lynx-low.cc (lynx_target_ops): Update.
2959 * nto-low.cc (nto_target_ops): Update.
2960 (nto_insert_point): Turn into ...
2961 (nto_process_target::insert_point): ... this.
2962 (nto_remove_point): Turn into ...
2963 (nto_process_target::remove_point): ... this.
2964 * nto-low.h (class nto_process_target): Update.
2965 * win32-low.cc (win32_target_ops): Update.
2966 (win32_insert_point): Turn into ...
2967 (win32_process_target::insert_point): ... this.
2968 (win32_remove_point): Turn into ...
2969 (win32_process_target::remove_point): ... this.
2970 * win32-low.h (class win32_process_target): Update.
2972 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2974 Turn process_stratum_target's supports_z_point_type op into a
2975 method of process_target.
2977 * target.h (struct process_stratum_target): Remove the target op.
2978 (class process_target): Add the target op.
2979 * target.cc (process_target::supports_z_point_type): Define.
2981 Update the derived classes and callers below.
2983 * mem-break.cc (z_type_supported): Update.
2984 * linux-low.cc (linux_target_ops): Update.
2985 (linux_supports_z_point_type): Turn into ...
2986 (linux_process_target::supports_z_point_type): ... this.
2987 * linux-low.h (class linux_process_target): Update.
2988 * lynx-low.cc (lynx_target_ops): Update.
2989 * nto-low.cc (nto_target_ops): Update.
2990 (nto_supports_z_point_type): Turn into ...
2991 (nto_process_target::supports_z_point_type): ... this.
2992 * nto-low.h (class nto_process_target): Update.
2993 * win32-low.cc (win32_target_ops): Update.
2994 (win32_supports_z_point_type): Turn into ...
2995 (win32_process_target::supports_z_point_type): ... this.
2996 * win32-low.h (class win32_process_target): Update.
2998 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3000 Turn process_stratum_target's read_auxv op into a method of
3003 * target.h (class process_stratum_target): Remove the target op.
3004 (struct process_target): Add the target op. Also add
3005 'supports_read_auxv'.
3006 * target.cc (process_target::read_auxv): Define.
3007 (process_target::supports_read_auxv): Define.
3009 Update the derived classes and callers below.
3011 * server.cc (handle_qxfer_auxv): Update.
3012 (handle_query): Update.
3013 * linux-low.cc (linux_target_ops): Update.
3014 (linux_process_target::supports_read_auxv): Define.
3015 (linux_read_auxv): Turn into ...
3016 (linux_process_target::read_auxv): ... this.
3017 * linux-low.h (class linux_process_target): Update.
3018 * lynx-low.cc (lynx_target_ops): Update.
3019 * nto-low.cc (nto_target_ops): Update.
3020 (nto_process_target::supports_read_auxv): Define.
3021 (nto_read_auxv): Turn into ...
3022 (nto_process_target::read_auxv): ... this.
3023 * nto-low.h (class nto_process_target): Update.
3024 * win32-low.cc (win32_target_ops): Update.
3026 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3028 Turn process_stratum_target's request_interrupt op into a method of
3031 * target.h (struct process_stratum_target): Remove the target op.
3032 (class process_target): Add the target op.
3034 Update the derived classes and callers below.
3036 * remote-utils.cc (putpkt_binary_1): Update.
3037 (input_interrupt): Update.
3039 * server.cc (handle_v_requests): Update.
3040 * linux-low.cc (linux_target_ops): Update.
3041 (linux_request_interrupt): Turn into ...
3042 (linux_process_target::request_interrupt): ... this.
3043 * linux-low.h (class linux_process_target): Update.
3044 * lynx-low.cc (lynx_target_ops): Update.
3045 (lynx_request_interrupt): Turn into ...
3046 (lynx_process_target::request_interrupt): ... this.
3047 * lynx-low.h (class lynx_process_target): Update.
3048 * nto-low.cc (nto_target_ops): Update.
3049 (nto_request_interrupt): Turn into ...
3050 (nto_process_target::request_interrupt): ... this.
3051 * nto-low.h (class nto_process_target): Update.
3052 * win32-low.cc (win32_target_ops): Update.
3053 (win32_request_interrupt): Turn into ...
3054 (win32_process_target::request_interrupt): ... this.
3055 * win32-low.h (class win32_process_target): Update.
3057 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3059 Turn process_stratum_target's look_up_symbols op into a method of
3062 * target.h (struct process_stratum_target): Remove the target op.
3063 (class process_target): Add the target op.
3064 * target.cc (process_target::look_up_symbols): Define.
3066 Update the derived classes and callers below.
3068 * server.cc (handle_query): Update.
3069 * linux-low.cc (linux_target_ops): Update.
3070 (linux_look_up_symbols): Turn into ...
3071 (linux_process_target::look_up_symbols): ... this.
3072 * linux-low.h (class linux_process_target): Update.
3073 * lynx-low.cc (lynx_target_ops): Update.
3074 * nto-low.cc (nto_target_ops): Update.
3075 * win32-low.cc (win32_target_ops): Update.
3077 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3079 Turn process_stratum_target's read_memory and write_memory
3080 ops into methods of process_target.
3082 * target.h (struct process_stratum_target): Remove the target ops.
3083 (class process_target): Add the target ops.
3085 Update the derived classes and callers below.
3087 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
3088 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
3089 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
3090 (arm_get_syscall_trapinfo): Update.
3091 * linux-cris-low.cc (cris_breakpoint_at): Update.
3092 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
3093 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
3094 * linux-mips-low.cc (mips_breakpoint_at): Update.
3095 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
3096 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
3097 * linux-sh-low.cc (sh_breakpoint_at): Update.
3098 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
3099 (sparc_store_gregset_from_stack): Update.
3100 (sparc_breakpoint_at): Update.
3101 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
3102 * linux-tile-low.cc (tile_breakpoint_at): Update.
3103 * linux-x86-low.cc (x86_breakpoint_at): Update.
3104 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
3105 * mem-brea.cc (insert_memory_breakpoint): Update.
3106 (validate_inserted_breakpoint): Update.
3107 * target.cc (read_inferior_memory): Update.
3108 (target_write_memory): Update.
3109 * linux-low.cc (linux_target_ops): Update.
3110 (linux_read_memory): Make a wrapper around the read_memory target
3112 (linux_process_target::read_memory): Rename from linux_read_memory.
3113 (linux_write_memory): Turn into ...
3114 (linux_process_target::write_memory): ... this.
3115 * linux-low.h (class linux_process_target): Update.
3116 * lynx-low.cc (lynx_target_ops): Update.
3117 (lynx_read_memory): Turn into ...
3118 (lynx_process_target::read_memory): ... this.
3119 (lynx_write_memory): Turn into ...
3120 (lynx_process_target::write_memory): ... this.
3121 * lynx-low.h (class lynx_process_target): Update.
3122 * nto-low.cc (nto_target_ops): Update.
3123 (nto_read_memory): Turn into ...
3124 (nto_process_target::read_memory): ... this.
3125 (nto_write_memory): Turn into ...
3126 (nto_process_target::write_memory): ... this.
3127 * nto-low.h (class nto_process_target): Update.
3128 * win32-low.cc (win32_target_ops): Update.
3129 (win32_read_inferior_memory): Turn into ...
3130 (win32_process_target::read_memory): ... this.
3131 (win32_write_inferior_memory): Turn into ...
3132 (win32_process_target::write_memory): ... this.
3133 * win32-low.h (class win32_process_target): Update.
3135 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3137 Turn process_stratum_target's prepare_to_access_memory and
3138 done_accessing_memory ops into methods of process_target.
3140 * target.h (struct process_stratum_target): Remove the target ops.
3141 (class process_target): Add the target ops.
3142 * target.cc (process_target::prepare_to_access_memory): Define.
3143 (process_target::done_accessing_memory): Define.
3144 (prepare_to_access_memory): Update.
3145 (done_accessing_memory): Update.
3147 Update the derived classes and callers below.
3149 * linux-low.cc (linux_target_ops): Update.
3150 (linux_prepare_to_access_memory): Turn into ...
3151 (linux_process_target::prepare_to_access_memory): ... this.
3152 (linux_done_accessing_memory): Turn into ...
3153 (linux_process_target::done_accessing_memory): ... this.
3154 * linux-low.h (class linux_process_target): Update.
3155 * lynx-low.cc (lynx_target_ops): Update.
3156 * nto-low.cc (nto_target_ops): Update.
3157 * win32-low.cc (win32_target_ops): Update.
3159 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3161 Turn process_stratum_target's fetch_registers and store_registers
3162 ops into methods of process_target.
3164 * target.h (struct process_stratum_target): Remove the target ops.
3165 (class process_target): Add the target ops.
3166 (fetch_inferior_registers): Update the macro.
3167 (store_inferior_registers): Update the macro.
3169 Update the derived classes and callers below.
3171 * linux-low.cc (linux_target_ops): Update.
3172 (linux_fetch_registers): Turn into ...
3173 (linux_process_target::fetch_registers): ... this.
3174 (linux_store_registers): Turn into ...
3175 (linux_process_target::store_registers): ... this.
3176 * linux-low.h (class linux_process_target): Update.
3177 * lynx-low.cc (lynx_target_ops): Update.
3178 (lynx_fetch_registers): Turn into ...
3179 (lynx_process_target::fetch_registers): ... this.
3180 (lynx_store_registers): Turn into ...
3181 (lynx_process_target::store_registers): ... this.
3182 * lynx-low.h (class lynx_process_target): Update.
3183 * nto-low.cc (nto_target_ops): Update.
3184 (nto_fetch_registers): Turn into ...
3185 (nto_process_target::fetch_registers): ... this.
3186 (nto_store_registers): Turn into ...
3187 (nto_process_target::store_registers): ... this.
3188 * nto-low.h (class nto_process_target): Update.
3189 * win32-low.cc (win32_target_ops): Update.
3190 (win32_fetch_inferior_registers): Turn into ...
3191 (win32_process_target::fetch_registers): ... this.
3192 (win32_store_inferior_registers): Turn into ...
3193 (win32_process_target::store_registers): ... this.
3194 * win32-low.h (class win32_process_target): Update.
3196 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3198 Turn process_stratum_target's wait op into a method of
3201 * target.h (struct process_stratum_target): Remove the target op.
3202 (class process_target): Add the target op.
3204 Update the derived classes and callers below.
3206 * target.cc (target_wait): Update.
3207 * linux-low.cc (linux_target_ops): Update.
3208 (linux_wait): Turn into ...
3209 (linux_process_target::wait): ... this.
3210 * linux-low.h (class linux_process_target): Update.
3211 * lynx-low.cc (lynx_target_ops): Update.
3212 (lynx_wait): Turn into ...
3213 (lynx_process_target::wait): ... this.
3214 * lynx-low.h (class lynx_process_target): Update.
3215 * nto-low.cc (nto_target_ops): Update.
3216 (nto_wait): Turn into ...
3217 (nto_process_target::wait): ... this.
3218 * nto-low.h (class nto_process_target): Update.
3219 * win32-low.cc (win32_target_ops): Update.
3220 (win32_wait): Turn into ...
3221 (win32_process_target::wait): ... this.
3222 (do_initial_child_stuff): Update.
3223 * win32-low.h (class win32_process_target): Update.
3225 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3227 Turn process_stratum_target's resume op into a method of
3230 * target.h (struct process_stratum_target): Remove the target op.
3231 (class process_target): Add the target op.
3233 Update the derived classes and callers below.
3235 * server.cc (resume): Update.
3236 * target.cc (target_stop_and_wait): Update.
3237 (target_continue_no_signal): Update.
3238 (target_continue): Update.
3239 * linux-low.cc (linux_target_ops): Update.
3240 (linux_resume): Turn into ...
3241 (linux_process_target::resume): ... this.
3242 * linux-low.h (class linux_process_target): Update.
3243 * lynx-low.cc (lynx_target_ops): Update.
3244 (lynx_resume): Turn into ...
3245 (lynx_process_target::resume): ... this.
3246 * lynx-low.h (class lynx_process_target): Update.
3247 * nto-low.cc (nto_target_ops): Update.
3248 (nto_resume): Turn into ...
3249 (nto_process_target::resume): ... this.
3250 * nto-low.h (class nto_process_target): Update.
3251 * win32-low.cc (win32_target_ops): Update.
3252 (win32_resume): Turn into ...
3253 (win32_process_target::resume): ... this.
3254 (win32_process_target::detach): Update.
3255 (do_initial_child_stuff): Update.
3256 * win32-low.h (class win32_process_target): Update.
3258 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3260 Turn process_stratum_target's thread_alive op into a method of
3263 * target.h (struct process_stratum_target): Remove the target op.
3264 (class process_target): Add the target op.
3265 (mythread_alive): Update the macro.
3267 Update the derived classes and callers below.
3269 * linux-low.cc (linux_target_ops): Update.
3270 (linux_thread_alive): Turn into ...
3271 (linux_process_target::thread_alive): ... this.
3272 (wait_for_sigstop): Update.
3273 * linux-low.h (class linux_process_target): Update.
3274 * lynx-low.cc (lynx_target_ops): Update.
3275 (lynx_thread_alive): Turn into ...
3276 (lynx_process_target::thread_alive): ... this.
3277 * lynx-low.h (class lynx_process_target): Update.
3278 * nto-low.cc (nto_target_ops): Update.
3279 (nto_thread_alive): Turn into ...
3280 (nto_process_target::thread_alive): ... this.
3281 * nto-low.h (class nto_process_target): Update.
3282 * win32-low.cc (win32_target_ops): Update.
3283 (win32_thread_alive): Turn into ...
3284 (win32_process_target::thread_alive): ... this.
3285 * win32-low.h (class win32_process_target): Update.
3287 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3289 Turn process_stratum_target's join op into a method of
3292 * target.h (struct process_stratum_target): Remove the target op.
3293 (class process_target): Add the target op.
3294 (join_inferior): Update the macro.
3296 Update the derived classes and callers below.
3298 * linux-low.cc (linux_target_ops): Update.
3299 (linux_join): Turn into ...
3300 (linux_process_target::join): ... this.
3301 * linux-low.h (class linux_process_target): Update.
3302 * lynx-low.cc (lynx_target_ops): Update.
3303 (lynx_join): Turn into ...
3304 (lynx_process_target::join): ... this.
3305 * lynx-low.h (class lynx_process_target): Update.
3306 * nto-low.cc (nto_target_ops): Update.
3307 (nto_process_target::join): Define.
3308 * nto-low.h (class nto_process_target): Update.
3309 * win32-low.cc (win32_target_ops): Update.
3310 (win32_join): Turn into ...
3311 (win32_process_target::join): ... 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 mourn op into a method of
3319 * target.h (struct process_stratum_target): Remove the target op.
3320 (class process_target): Add the target op.
3322 Update the derived classes and callers below.
3324 * target.cc (target_mourn_inferior): Update.
3325 * linux-low.cc (linux_target_ops): Update.
3326 (linux_mourn): Turn into ...
3327 (linux_process_target::mourn): ... this.
3328 (handle_extended_wait): Update.
3329 (linux_process_target::kill): Update.
3330 (linux_process_target::detach): Update.
3331 * linux-low.h (class linux_process_target): Update.
3332 * lynx-low.cc (lynx_target_ops): Update.
3333 (lynx_mourn): Turn into ...
3334 (lynx_process_target::mourn): ... this.
3335 * lynx-low.h (class lynx_process_target): Update.
3336 * nto-low.cc (nto_target_ops): Update.
3337 (nto_mourn): Turn into ...
3338 (nto_process_target::mourn): ... this.
3339 * nto-low.h (class nto_process_target): Update.
3340 * win32-low.cc (win32_target_ops): Update.
3341 (win32_mourn): Turn into ...
3342 (win32_process_target::mourn): ... this.
3343 * win32-low.h (class win32_process_target): Update.
3345 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3347 Turn process_stratum_target's detach op into a method of
3350 * target.h (struct process_stratum_target): Remove the target op.
3351 (class process_target): Add the target op.
3352 (detach_inferior): Update the macro.
3354 Update the derived classes and callers below.
3356 * linux-low.cc (linux_target_ops): Update.
3357 (linux_detach): Turn into ...
3358 (linux_process_target::detach): ... this.
3359 * linux-low.h (class linux_process_target): Update.
3360 * lynx-low.cc (lynx_target_ops): Update.
3361 (lynx_detach): Turn into ...
3362 (lynx_process_target::detach): ... this.
3363 * lynx-low.h (class lynx_process_target): Update.
3364 * nto-low.cc (nto_target_ops): Update.
3365 (nto_detach): Turn into ...
3366 (nto_process_target::detach): ... this.
3367 * nto-low.h (class nto_process_target): Update.
3368 * win32-low.cc (win32_target_ops): Update.
3369 (win32_detach): Turn into ...
3370 (win32_process_target::detach): ... this.
3371 * win32-low.h (class win32_process_target): Update.
3373 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3375 Turn process_stratum_target's kill op into a method of
3378 * target.h (struct process_stratum_target): Remove the target op.
3379 (class process_target): Add the target op.
3381 Update the derived classes and callers below.
3383 * target.cc (kill_inferior): Update.
3384 * linux-low.cc (linux_target_ops): Update.
3385 (linux_kill): Turn into ...
3386 (linux_process_target::kill): ... this.
3387 * linux-low.h (class linux_process_target): Update.
3388 * lynx-low.cc (lynx_target_ops): Update.
3389 (lynx_kill): Turn into ...
3390 (lynx_process_target::kill): ... this.
3391 * lynx-low.h (class lynx_process_target): Update.
3392 * nto-low.cc (nto_target_ops): Update.
3393 (nto_kill): Turn into ...
3394 (nto_process_target::kill): ... this.
3395 * nto-low.h (class nto_process_target): Update.
3396 * win32-low.cc (win32_target_ops): Update.
3397 (win32_kill): Turn into ...
3398 (win32_process_target::kill): ... this.
3399 * win32-low.h (class win32_process_target): Update.
3401 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3403 Turn process_stratum_target's attach op into a method of
3406 * target.h (struct process_stratum_target): Remove the target op.
3407 (class process_target): Add the target op.
3408 (myattach): Update the macro.
3410 Update the derived classes and callers below.
3412 * linux-low.cc (linux_target_ops): Update.
3413 (linux_attach): Turn into ...
3414 (linux_process_target::attach): ... this.
3415 * linux-low.h (class linux_process_target): Update.
3416 * lynx-low.cc (lynx_target_ops): Update.
3417 (lynx_attach): Turn into ...
3418 (lynx_process_target::attach): ... this.
3419 * lynx-low.h (class lynx_process_target): Update.
3420 * nto-low.cc (nto_target_ops): Update.
3421 (nto_attach): Turn into ...
3422 (nto_process_target::attach): ... this.
3423 * nto-low.h (class nto_process_target): Update.
3424 * win32-low.cc (win32_target_ops): Update.
3425 (win32_attach): Turn into ...
3426 (win32_process_target::attach): ... this.
3427 * win32-low.h (class win32_process_target): Update.
3429 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3431 Turn process_stratum_target's post_create_inferior op into a method
3434 * target.h (struct process_stratum_target): Remove the target op.
3435 (class process_target): Add the target op.
3436 (target_post_create_inferior): Update the macro.
3437 * target.cc (process_target::post_create_inferior): Define.
3439 Update the derived classes and callers below.
3441 * linux-low.cc (linux_target_ops): Update.
3442 (linux_post_create_inferior): Turn into ...
3443 (linux_process_target::post_create_inferior): ... this.
3444 * linux-low.h (class linux_process_target): Update.
3445 * lynx-low.cc (lynx_target_ops): Update.
3446 * nto-low.cc (nto_target_ops): Update.
3447 * win32-low.cc (win32_target_ops): Update.
3449 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3451 Turn process_stratum_target's create_inferior op into a method of
3454 * target.h (struct process_stratum_target): Remove the target op.
3455 (class process_target): Add the target op.
3456 (create_inferior): Rename the macro to ...
3457 (target_create_inferior): ... this.
3459 Update the derived classes and callers below.
3461 * server.cc (handle_v_run): Update.
3462 (captured_main): Update.
3463 (process_serial_event): Update.
3464 * linux-low.cc (linux_target_ops): Update.
3465 (linux_create_inferior): Turn into ...
3466 (linux_process_target::create_inferior): ... this.
3467 * linux-low.h (class linux_process_target): Update.
3468 * lynx-low.cc (lynx_target_ops): Update.
3469 (lynx_create_inferior): Turn into ...
3470 (lynx_process_target::create_inferior): ... this.
3471 * lynx-low.h (class lynx_process_target): Update.
3472 * nto-low.cc (nto_target_ops): Update.
3473 (nto_create_inferior): Turn into ...
3474 (nto_process_target::create_inferior): ... this.
3475 * nto-low.h (class nto_process_target): Update.
3476 * win32-low.cc (win32_target_ops): Update.
3477 (win32_create_inferior): Turn into ...
3478 (win32_process_target::create_inferior): ... this.
3479 * win32-low.h (class win32_process_target): Update.
3481 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3483 * target.h (class process_target): New class definition.
3484 (struct process_stratum_target) <pt>: New field with type
3486 * linux-low.h (class linux_process_target): Define as a derived
3487 class of 'process_target'.
3488 * linux-low.cc (linux_target_ops): Add a linux_process_target*
3490 * lynx-low.h (class lynx_process_target): Define as a derived
3491 class of 'process_target'.
3492 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
3494 * nto-low.h (class nto_process_target): Define as a derived
3495 class of 'process_target'.
3496 * nto-low.cc (nto_target_ops): Add an nto_process_target*
3498 * win32-low.h (class win32_process_target): Define as a derived
3499 class of 'process_target'.
3500 * win32-low.cc (win32_target_ops): Add a win32_process_target*
3503 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
3505 * configure: Regenerate.
3507 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
3508 Andrew Burgess <andrew.burgess@embecosm.com>
3510 * linux-riscv-low.cc: New file.
3511 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
3512 and nat/riscv-linux-tdesc.c.
3513 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
3514 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
3517 2020-02-14 Tom Tromey <tom@tromey.com>
3519 * acinclude.m4: Don't include acx_configure_dir.m4.
3520 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
3521 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
3522 (all, install-only, uninstall, clean-info, clean)
3523 (maintainer-clean): Don't recurse.
3524 (subdir_do, all-lib): Remove.
3525 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
3527 (generated_files): Update.
3528 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
3529 * configure: Rebuild.
3530 * configure.ac: Don't configure gnulib or libiberty.
3533 2020-02-14 Eli Zaretskii <eliz@gnu.org>
3535 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
3536 preparing the command line for CreateProcess.
3537 (win32_create_inferior): Reflect the program name in debugging
3538 output that shows the process and its command line.
3540 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
3542 * Makefile.in: Rename source files from .c to .cc.
3543 * %.c: Rename to %.cc.
3544 * configure.ac: Rename server.c to server.cc.
3545 * configure: Re-generate.
3547 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
3549 * Makefile.in: Rename gdbsupport source files from .c to .cc.
3551 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
3553 * win32-low.c (win32_create_inferior): Set signal_pid.
3555 2020-02-12 Maciej W. Rozycki <macro@wdc.com>
3556 Pedro Alves <palves@redhat.com>
3558 Skip building gdbserver in a cross-configuration.
3559 * configure.srv: Set $gdbserver_host depending on whether $target
3560 is $host. Use $gdbserver_host instead of $host.
3562 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
3564 * configure: Re-generate.
3566 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
3568 * configure: Re-generate.
3570 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
3572 * acinclude.m4: Update warning.m4 path.
3574 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
3576 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
3577 (handle_exception): Set siginfo_er.
3578 (win32_xfer_siginfo): New function.
3580 2020-02-07 Tom Tromey <tom@tromey.com>
3581 Pedro Alves <palves@redhat.com>
3583 * README: Update build documentation.
3584 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
3586 * configure.ac: Update paths.
3587 * configure: Rebuild.
3588 * acinclude.m4: Update paths.
3589 * Makefile.in: Update include paths.
3590 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
3591 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
3592 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
3593 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
3594 (%-generated.c): Update paths.
3595 * Move entire directory from ../gdb/gdbserver.
3597 2020-01-29 Maciej W. Rozycki <macro@wdc.com>
3599 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
3601 2020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3603 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
3604 assignment instead of srv_linux_obj.
3606 2020-01-28 Hannes Domani <ssbssa@yahoo.de>
3608 * server.c (handle_qxfer_libraries): Write segment-address with
3611 2020-01-24 Hannes Domani <ssbssa@yahoo.de>
3613 * Makefile.in (install-strip): New target.
3614 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
3615 * aclocal.m4: Regenerate.
3616 * configure: Regenerate.
3617 * configure.ac: Add AM_PROG_INSTALL_STRIP.
3619 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
3621 * Makefile.in (SFILES): Adjust paths to point to real files.
3622 (OBS): Move waitstatus.o to target/waitstatus.o.
3623 (TAGS): Transform paths appropriately.
3625 (nat/%.o): ... this pattern rule.
3627 (target/%.o): ... this pattern rule.
3628 * configure.srv: Adjust paths throughout to include nat/ prefix
3629 with the revant files.
3630 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
3631 * configure: Regenerate.
3633 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
3635 * Makefile.in (TAGS): Remove config files from the recipe.
3637 2020-01-14 Tom Tromey <tom@tromey.com>
3639 * configure: Rebuild.
3640 * configure.ac: Remove any checks that were added to common.m4.
3641 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
3644 2020-01-14 Tom Tromey <tom@tromey.com>
3646 * server.h: Include config.h.
3647 * gdbreplay.c: Include config.h.
3648 * configure: Rebuild.
3649 * configure.ac: Don't source common.host.
3650 * acinclude.m4: Update path.
3651 * Makefile.in (INCSUPPORT): New variable.
3652 (INCLUDE_CFLAGS): Add INCSUPPORT.
3653 (SFILES): Update paths.
3654 (version-generated.c): Update path to create-version.sh.
3655 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
3657 2020-01-14 Tom Tromey <tom@tromey.com>
3659 * configure.ac (LIBS): Use WIN32APILIBS.
3660 (USE_WIN32API): Don't define.
3661 * configure: Rebuild.
3663 2020-01-14 Tom Tromey <tom@tromey.com>
3665 * configure: Rebuild.
3667 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
3669 * Makefile.in (%-generated.c): Remove rule for files from
3672 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
3674 * configure: Re-generate.
3676 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
3678 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
3680 * tracepoint.c (stop_tracing, flush_trace_buffer,
3681 about_to_request_buffer_space, get_trace_state_variable_value,
3682 set_trace_state_variable_value, gdb_collect): Add declaration.
3684 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
3686 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
3687 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
3688 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
3689 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
3690 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
3693 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
3695 * inferiors.c: Include gdbsupport/common-inferior.h.
3697 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
3699 * hostio-errno.c: Include hostio.h.
3701 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
3703 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
3706 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3708 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
3709 * linux-arm-tdesc.h: Include arch/arm.h.
3711 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3713 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
3715 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3717 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
3718 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
3720 2020-01-10 Pedro Alves <palves@redhat.com>
3722 * fork-child.c (post_fork_inferior): Pass target down to
3724 * inferiors.c (switch_to_thread): Add process_stratum_target
3726 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
3727 * nto-low.c (nto_target_ops): Now a process_stratum_target.
3728 * linux-low.c (linux_target_ops): Now a process_stratum_target.
3729 * remote-utils.c (prepare_resume_reply): Pass the target to
3731 * target.c (the_target): Now a process_stratum_target.
3732 (done_accessing_memory): Pass the target to switch_to_thread.
3733 (set_target_ops): Ajust to use process_stratum_target.
3734 * target.h (struct target_ops): Rename to ...
3735 (struct process_stratum_target): ... this.
3736 (the_target, set_target_ops): Adjust.
3737 (prepare_to_access_memory): Adjust comment.
3738 * win32-low.c (child_xfer_memory): Adjust to use
3739 process_stratum_target.
3740 (win32_target_ops): Now a process_stratum_target.
3742 2020-01-06 Eli Zaretskii <eliz@gnu.org>
3743 Pedro Alves <palves@redhat.com>
3745 * win32-low.c (get_child_debug_event): Extract the fatal exception
3746 from the exit status and convert to the equivalent Posix signal
3748 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
3749 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
3751 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
3753 * Makefile.in: Use INSTALL_PROGRAM_ENV.
3755 2020-01-01 Joel Brobecker <brobecker@adacore.com>
3757 * server.c (gdbserver_version): Change copyright year to 2020.
3758 * gdbreplay.c (gdbreplay_version): Likewise.
3760 2019-12-19 Christian Biesinger <cbiesinger@google.com>
3762 * configure: Regenerate.
3763 * configure.ac: Quote variable arguments of test.
3765 2019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
3767 * Makefile.in: Fix build with GNU Make 3.81
3769 2019-12-16 Tom Tromey <tromey@adacore.com>
3771 * server.c (get_exec_file): Constify result.
3773 2019-12-10 Christian Biesinger <cbiesinger@google.com>
3775 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
3776 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
3777 * config.in: Regenerate.
3778 * configure: Regenerate.
3779 * configure.ac: Don't check for strerror.
3780 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
3781 Call safe_strerror instead of strerror.
3782 * server.h (strerror): Remove this now-unnecessary declaration.
3783 * tracepoint.c (init_named_socket): Call safe_strerror instead of
3785 (gdb_agent_helper_thread): Likewise.
3786 * utils.c (perror_with_name): Likewise.
3788 2019-11-26 Tom Tromey <tom@tromey.com>
3790 * configure, config.in: Rebuild.
3792 2019-11-26 Tom Tromey <tom@tromey.com>
3794 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
3795 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
3797 * configure, config.in: Rebuild.
3799 2019-11-26 Tom Tromey <tom@tromey.com>
3801 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
3802 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
3803 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
3804 * acinclude.m4: Include ax_pthread.m4.
3805 * config.in, configure: Rebuild.
3807 2019-11-26 Christian Biesinger <cbiesinger@google.com>
3809 * debug.c (debug_set_output): Call safe_strerror instead of
3811 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
3812 (linux_kill_one_lwp): Likewise.
3813 (linux_detach_one_lwp): Likewise.
3814 (linux_wait_for_event_filtered): Likewise.
3815 (store_register): Likewise.
3816 * lynx-low.c (lynx_attach): Likewise.
3817 * mem-break.c (insert_memory_breakpoint): Likewise.
3818 (remove_memory_breakpoint): Likewise.
3819 (delete_fast_tracepoint_jump): Likewise.
3820 (set_fast_tracepoint_jump): Likewise.
3821 (uninsert_fast_tracepoint_jumps_at): Likewise.
3822 (reinsert_fast_tracepoint_jumps_at): Likewise.
3823 * nto-low.c (nto_xfer_memory): Likewise.
3824 (nto_resume): Likewise.
3826 2019-11-20 Luis Machado <luis.machado@linaro.org>
3828 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
3829 instead of register count.
3830 * tdesc.c (tdesc_contains_feature): New function.
3831 * tdesc.h (tdesc_contains_feature): New prototype.
3833 2019-11-15 Christian Biesinger <cbiesinger@google.com>
3835 * Makefile.in: Add safe-strerror.c.
3836 * configure: Regenerate.
3837 * configure.ac: Don't source common.host.
3839 2019-11-15 Christian Biesinger <cbiesinger@google.com>
3841 * config.in: Regenerate.
3842 * configure: Regenerate.
3844 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
3846 * ax.c (ax_printf): Handle size_t_arg.
3848 2019-11-06 Christian Biesinger <cbiesinger@google.com>
3850 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
3851 * mi/mi-main.c (output_cores): Likewise.
3852 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
3853 (linux_xfer_osdata_modules): Likewise.
3854 * remote.c (register_remote_support_xml): Likewise.
3855 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
3856 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
3858 2019-11-01 Christian Biesinger <cbiesinger@google.com>
3860 * configure: Regenerate.
3861 * configure.ac: Remove check for strerror_r.
3863 2019-10-31 Christian Biesinger <cbiesinger@google.com>
3865 * config.in: Regenerate.
3866 * configure: Regenerate.
3867 * configure.ac: Also check for strerror_r.
3869 2019-10-31 Christian Biesinger <cbiesinger@google.com>
3871 * ax.h (debug_agent): Remove duplicate declaration.
3873 2019-10-26 Tom de Vries <tdevries@suse.de>
3875 * linux-aarch64-low.c: Fix typos in comments.
3876 * linux-arm-low.c: Same.
3877 * linux-low.c: Same.
3878 * linux-ppc-low.c: Same.
3879 * proc-service.c: Same.
3882 * tracepoint.c: Same.
3883 * win32-low.c: Same.
3885 2019-10-25 Tom Tromey <tromey@adacore.com>
3887 * utils.c (xstrdup): Remove.
3889 2019-10-23 Tom Tromey <tom@tromey.com>
3891 * configure, config.in: Rebuild.
3893 2019-10-23 Tom Tromey <tom@tromey.com>
3895 * configure: Rebuild.
3896 * acinclude.m4: Use m4_include, not sinclude.
3898 2019-10-17 Tom Tromey <tromey@adacore.com>
3900 * configure: Rebuild.
3901 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
3902 in AC_CONFIG_FILES invocation.
3903 * Makefile.in (stamp-h, Makefile): Use new-style config.status
3906 2019-10-16 Christian Biesinger <cbiesinger@google.com>
3908 * server.c: Include xml-builtin.h.
3909 (get_xml_features): Don't declare xml_builtins here.
3911 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
3913 * Makefile.in: Remove references to vec-ipa.o.
3915 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
3917 * Makefile.in: Remove references to vec.c.
3919 2019-10-02 Christian Biesinger <cbiesinger@google.com>
3921 * server.c (server_waiting): Change to bool.
3922 (extended_protocol): Likewise.
3923 (response_needed): Likewise.
3924 (exit_requested): Likewise.
3925 (run_once): Likewise.
3926 (report_no_resumed): Likewise.
3927 (non_stop): Likewise.
3928 (disable_packet_vCont): Likewise.
3929 (disable_packet_Tthread): Likewise.
3930 (disable_packet_qC): Likewise.
3931 (disable_packet_qfThreadInfo): Likewise.
3932 (handle_general_set): Update.
3933 (handle_detach): Update.
3934 (handle_monitor_command): Update.
3935 (handle_query): Update.
3936 (captured_main): Update.
3937 (process_serial_event): Update.
3938 * server.h (server_waiting): Change to bool.
3939 (disable_packet_vCont): Likewise.
3940 (disable_packet_Tthread): Likewise.
3941 (disable_packet_qC): Likewise.
3942 (disable_packet_qfThreadInfo): Likewise.
3943 (run_once): Likewise.
3944 (non_stop): Likewise.
3945 * target.c (target_stop_and_wait): Update.
3947 2019-10-02 Tom Tromey <tromey@adacore.com>
3949 * Makefile.in (SFILES): Add common-inferior.c.
3950 (OBS): Add common-inferior.o.
3951 * server.c (startup_with_shell): Don't define.
3953 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3955 * linux-low.c (linux_low_read_btrace): Update for change to
3958 2019-09-20 Christian Biesinger <cbiesinger@google.com>
3960 * debug.c (debug_threads): Remove comment in favor of the header.
3961 * debug.h (using_threads): Add declaration.
3962 (debug_threads): Add comment.
3963 * linux-aarch64-low.c: Include debug.h and remove declaration of
3965 * nto-low.c: Likewise.
3966 * remote-utils.c: Likewise.
3967 * thread-db.c: Likewise.
3969 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
3971 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
3972 and powerpc-cell64l-ipa.o.
3973 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
3974 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
3975 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
3978 * spu-low.c: Remove file.
3980 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
3981 (parse_spufs_run): Remove.
3982 (ppc_get_pc): Remove Cell/B.E. support.
3983 (ppc_set_pc): Likewise.
3984 (ppc_breakpoint_at): Likewise.
3985 (ppc_arch_setup): Likewise.
3986 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
3987 tdesc_powerpc_cell32l.
3988 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
3989 or init_registers_powerpc_cell32l.
3990 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
3991 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
3992 or init_registers_powerpc_cell32l.
3993 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
3994 (init_registers_powerpc_cell32l): Remove prototype.
3995 (init_registers_powerpc_cell64l): Likewise.
3997 * target.h (struct target_ops): Remove qxfer_spu member.
3998 * server.c (handle_qxfer_spu): Remove.
3999 (qxfer_packets): Remove entry for "spu".
4000 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
4001 * linux-low.c (SPUFS_MAGIC): Remove.
4002 (spu_enumerate_spu_ids): Remove.
4003 (linux_qxfer_spu): Remove.
4004 (linux_target_ops): Remove qxfer_spu member.
4005 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
4006 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
4007 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
4009 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4011 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
4012 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
4013 * config.in: Regenerate.
4014 * configure: Regenerate.
4016 2019-08-15 Tom Tromey <tromey@adacore.com>
4018 * target.c (target_write_memory): Use gdb::byte_vector.
4020 2019-08-15 Tom Tromey <tromey@adacore.com>
4022 * tracepoint.c (write_inferior_data_pointer)
4023 (write_inferior_integer, write_inferior_int8)
4024 (write_inferior_uinteger, m_tracepoint_action_download)
4025 (r_tracepoint_action_download, x_tracepoint_action_download)
4026 (l_tracepoint_action_download, clear_inferior_trace_buffer)
4027 (download_agent_expr, download_tracepoint_1)
4028 (download_trace_state_variables, upload_fast_traceframes): Update.
4029 * server.c (gdb_write_memory): Update.
4030 * remote-utils.c (relocate_instruction): Update.
4031 * proc-service.c (ps_pdwrite): Update.
4032 * mem-break.c (remove_memory_breakpoint)
4033 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
4034 (uninsert_fast_tracepoint_jumps_at)
4035 (reinsert_fast_tracepoint_jumps_at): Update.
4036 * linux-x86-low.c (append_insns)
4037 (i386_install_fast_tracepoint_jump_pad)
4038 (amd64_write_goto_address, i386_write_goto_address): Update.
4039 * linux-s390-low.c (append_insns, s390_write_goto_address):
4041 * linux-ppc-low.c (ppc_relocate_instruction)
4042 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
4043 (ppc_write_goto_address): Update.
4044 * linux-aarch64-low.c (append_insns): Update.
4045 * target.h (struct target_ops): Update.
4046 (write_inferior_memory): Don't declare.
4047 * target.c (target_write_memory): Rename from
4048 write_inferior_memory. Remove old target_write_memory.
4050 2019-08-15 Tom Tromey <tromey@adacore.com>
4052 * target.c (write_inferior_memory): Use std::vector.
4054 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
4057 * configure.ac: Drop enable-libmcheck support.
4058 * configure, config.in: Rebuild.
4059 * acinclude.m4: Don't include it.
4061 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4063 * configure.srv: Remove Arm xml files.
4065 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4067 * configure.srv: Add new files. Remove xml generated files.
4068 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
4070 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
4071 * linux-aarch32-tdesc.c: New file.
4072 * linux-aarch32-tdesc.h: New file.
4073 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
4074 * linux-arm-low.c (init_registers_arm, tdesc_arm)
4075 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
4076 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
4077 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
4078 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
4079 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
4080 (arm_read_description): Call arm_linux_read_description.
4081 (initialize_low_arch): Don't init registers.
4082 * linux-arm-tdesc.c: New file.
4083 * linux-arm-tdesc.h: New file.
4085 2019-07-10 Alan Hayward <alan.hayward@arm.com>
4087 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
4088 Move counter inside for.
4089 (arm_read_description): Check ptrace earlier.
4090 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
4092 2019-07-09 Tom Tromey <tom@tromey.com>
4094 * configure: Rebuild.
4095 * configure.ac: Change common to gdbsupport.
4096 * acinclude.m4: Change common to gdbsupport.
4097 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
4098 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
4099 common to gdbsupport.
4100 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
4101 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
4102 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
4103 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
4104 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
4105 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
4106 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
4107 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
4108 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
4109 common to gdbsupport.
4111 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4113 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
4115 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
4117 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4119 * configure.srv: Remove legacy xml.
4120 * linux-aarch64-low.c (initialize_low_arch): Remove
4121 initialize_low_tdesc call.
4122 * linux-aarch64-tdesc-selftest.c: Remove file.
4123 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
4124 * linux-x86-low.c (initialize_low_arch): Remove
4125 initialize_low_tdesc call.
4126 * linux-x86-tdesc-selftest.c: Remove file.
4127 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
4129 2019-06-20 Tom de Vries <tdevries@suse.de>
4131 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
4132 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
4134 2019-06-19 Tom de Vries <tdevries@suse.de>
4136 * debug.h (debug_write): Change return type to ssize_t.
4137 * debug.c (debug_write): Same.
4139 2019-06-14 Tom Tromey <tom@tromey.com>
4141 * configure.ac: Use new path to gnulib.
4142 * configure: Rebuild.
4143 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
4146 2019-06-11 Tom Tromey <tom@tromey.com>
4148 * Makefile.in (SFILES): Add alloc.c.
4150 (IPA_OBJS): Add alloc-ipa.o.
4151 (alloc-ipa.o): New target.
4152 (%.o: ../%.c): New pattern rule.
4154 2019-06-10 Tom Tromey <tromey@adacore.com>
4156 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
4157 end warning with a newline.
4158 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
4160 * thread-db.c (attach_thread): Don't end warning with a newline.
4161 (thread_db_notice_clone): Likewise.
4162 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
4164 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
4165 end warning with a newline.
4167 2019-06-04 Pedro Alves <palves@redhat.com>
4169 * server.c (captured_main): Use make_unique_xstrdup.
4171 2019-06-02 Tom Tromey <tom@tromey.com>
4173 * gdbreplay.c (fromhex): Remove.
4174 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
4176 2019-05-29 Tom Tromey <tromey@adacore.com>
4178 * configure: Rebuild.
4180 2019-05-06 Kevin Buettner <kevinb@redhat.com>
4182 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
4183 sign extension code on 32-bit builds.
4185 2019-05-03 Eli Zaretskii <eliz@gnu.org>
4188 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
4190 2019-04-19 Tom Tromey <tom@tromey.com>
4192 * server.c (struct vstop_notif): Derive from notif_event.
4194 (queue_stop_reply): Update.
4195 (remove_all_on_match_ptid): Change type. Rewrite.
4196 (discard_queued_stop_replies): Rewrite.
4197 (in_queued_stop_replies_ptid): Change type.
4198 (in_queued_stop_replies): Rewrite.
4199 (notif_stop): Update.
4200 (queue_stop_reply_callback): Update.
4201 (captured_main): Don't call initialize_notif.
4202 (push_stop_notification): Update.
4203 * notif.c (notif_write_event, handle_notif_ack)
4204 (notif_event_enque, notif_push): Update.
4205 (notif_event_xfree, initialize_notif): Remove.
4206 * notif.h (struct notif_event): Include <list>, not
4208 (struct notif_server) <queue>: Now a std::list.
4209 (notif_event_p): Remove typedef.
4210 (initialize_notif): Don't declare.
4211 (struct notif_event): Add virtual destructor.
4213 2019-04-17 Alan Hayward <alan.hayward@arm.com>
4215 * ax.c (ax_vdebug): Call debug_printf.
4216 * debug.c (debug_write): New function.
4217 * debug.h (debug_write): New declaration.
4218 * linux-low.c (sigchld_handler): Call debug_write.
4220 2019-04-17 Alan Hayward <alan.hayward@arm.com>
4222 * debug.c (debug_set_output): New function.
4223 (debug_vprintf): Send output to debug_file.
4224 (debug_flush): Likewise.
4225 * debug.h (debug_set_output): New declaration.
4226 * server.c (handle_monitor_command): Add debug-file option.
4227 (captured_main): Likewise.
4229 2019-04-17 Alan Hayward <alan.hayward@arm.com>
4231 * debug.c (remote_debug): Add definition.
4232 * debug.h (remote_debug): Add declaration.
4233 * hostio.c (remote_debug): Remove declaration.
4234 * remote-utils.c (struct ui_file): Likewise.
4235 (remote_debug): Likewise.
4236 * remote-utils.h (remote_debug): Likewise,
4237 * server.c (remote_debug): Remove definition.
4239 2019-04-10 Kevin Buettner <kevinb@redhat.com>
4241 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
4242 when using a 64-bit gdbserver.
4244 2019-04-09 Tom Tromey <tromey@adacore.com>
4246 * linux-low.c (select_event_lwp): Use find_thread_in_random.
4248 2019-04-08 Tom Tromey <tom@tromey.com>
4250 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
4252 (linux_resume_one_lwp): Likewise.
4254 2019-04-08 Tom Tromey <tom@tromey.com>
4256 * gdbreplay.c: Update.
4257 * linux-low.c: Update.
4260 2019-04-08 Tom Tromey <tom@tromey.com>
4262 * server.c: Use C++ exception handling.
4263 * linux-low.c: Use C++ exception handling.
4264 * gdbreplay.c: Use C++ exception handling.
4266 2019-04-08 Tom Tromey <tom@tromey.com>
4268 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
4269 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
4270 (captured_main, main): Update.
4271 * gdbreplay.c (main): Update.
4273 2019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4275 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
4276 value in argument pointer, return 1 if the entry is found and 0
4277 otherwise. Move comment.
4278 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
4279 * linux-low.h (linux_get_auxv): Declare.
4280 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
4282 2019-04-05 Tom Tromey <tromey@adacore.com>
4284 * server.c (gdbserver_usage): Use upper-case for metasyntactic
4287 2019-03-28 Alan Hayward <alan.hayward@arm.com>
4289 * linux-low.c (AT_HWCAP2): Add define if not already included.
4291 2019-03-26 Alan Hayward <alan.hayward@arm.com>
4293 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
4294 (aarch64_arch_setup): Call linux_get_hwcap.
4295 * linux-arm-low.c (arm_get_hwcap): Remove function.
4296 (arm_read_description): Call linux_get_hwcap.
4297 * linux-low.c (linux_get_auxv): New function.
4298 (linux_get_hwcap): Likewise.
4299 (linux_get_hwcap2): Likewise.
4300 * linux-low.h (linux_get_hwcap): New declaration.
4301 (linux_get_hwcap2): Likewise.
4302 * linux-ppc-low.c (ppc_get_auxv): Remove function.
4303 (ppc_arch_setup): Call linux_get_hwcap.
4304 * linux-s390-low.c (s390_get_hwcap): Remove function.
4305 (s390_arch_setup): Call linux_get_hwcap.
4307 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4308 Jiong Wang <jiong.wang@arm.com>
4310 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
4311 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
4313 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
4315 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4316 Jiong Wang <jiong.wang@arm.com>
4318 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
4319 (aarch64_get_hwcap): New function.
4320 (aarch64_arch_setup): Read APIA hwcap.
4322 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4323 Jiong Wang <jiong.wang@arm.com>
4325 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
4326 (initialize_low_tracepoint): Likewise.
4327 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
4328 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
4329 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
4330 (aarch64_linux_read_description): Likewise.
4331 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
4333 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4335 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
4336 i386_create_target_description for 'segments' parameter.
4337 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
4338 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
4339 * win32-i386-low.c (i386_arch_setup): Likewise.
4341 2019-03-12 Tom Tromey <tromey@adacore.com>
4343 * linux-low.c (iterate_over_lwps): Update.
4345 2019-03-06 Tom Tromey <tom@tromey.com>
4347 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
4348 (captured_main): Use SCOPE_EXIT.
4350 2019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
4352 * configure.srv: Use '$enable_unittest' instead of '$development'
4353 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
4356 2019-02-27 Tom Tromey <tromey@adacore.com>
4358 * gdbreplay.c (logchar): Handle \r\n.
4360 2019-02-07 Alan Hayward <alan.hayward@arm.com>
4362 * linux-low.c (linux_attach): Add process before lwp.
4363 * server.c (attach_inferior): Check if already attached.
4365 2019-02-07 Tom Tromey <tom@tromey.com>
4367 * x86-tdesc.h: Rename include guard.
4368 * x86-low.h: Add include guard.
4369 * wincecompat.h: Rename include guard.
4370 * win32-low.h: Add include guard.
4371 * utils.h: Rename include guard.
4372 * tracepoint.h: Rename include guard.
4373 * tdesc.h: Rename include guard.
4374 * target.h: Rename include guard.
4375 * server.h: Rename include guard.
4376 * remote-utils.h: Rename include guard.
4377 * regcache.h: Rename include guard.
4378 * nto-low.h: Rename include guard.
4379 * notif.h: Add include guard.
4380 * mem-break.h: Rename include guard.
4381 * lynx-low.h: Add include guard.
4382 * linux-x86-tdesc.h: Add include guard.
4383 * linux-s390-tdesc.h: Add include guard.
4384 * linux-ppc-tdesc-init.h: Add include guard.
4385 * linux-low.h: Add include guard.
4386 * linux-aarch64-tdesc.h: Add include guard.
4387 * linux-aarch32-low.h: Add include guard.
4388 * inferiors.h: Rename include guard.
4389 * i387-fp.h: Rename include guard.
4390 * hostio.h: Rename include guard.
4391 * gdbthread.h: Rename include guard.
4392 * gdb_proc_service.h: Rename include guard.
4393 * event-loop.h: Rename include guard.
4394 * dll.h: Rename include guard.
4395 * debug.h: Rename include guard.
4396 * ax.h: Rename include guard.
4398 2018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
4401 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
4402 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
4404 2019-01-25 Tom Tromey <tom@tromey.com>
4406 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
4408 2019-01-25 Tom Tromey <tom@tromey.com>
4410 * win32-low.c: Fix common/ includes.
4411 * win32-i386-low.c: Fix common/ includes.
4412 * tracepoint.c: Fix common/ includes.
4413 * thread-db.c: Fix common/ includes.
4414 * target.h: Fix common/ includes.
4415 * symbol.c: Fix common/ includes.
4416 * spu-low.c: Fix common/ includes.
4417 * server.h: Fix common/ includes.
4418 * server.c: Fix common/ includes.
4419 * remote-utils.c: Fix common/ includes.
4420 * regcache.h: Fix common/ includes.
4421 * regcache.c: Fix common/ includes.
4422 * nto-x86-low.c: Fix common/ includes.
4423 * notif.h: Fix common/ includes.
4424 * mem-break.h: Fix common/ includes.
4425 * lynx-low.c: Fix common/ includes.
4426 * lynx-i386-low.c: Fix common/ includes.
4427 * linux-x86-tdesc-selftest.c: Fix common/ includes.
4428 * linux-x86-low.c: Fix common/ includes.
4429 * linux-low.c: Fix common/ includes.
4430 * inferiors.h: Fix common/ includes.
4431 * i387-fp.c: Fix common/ includes.
4432 * hostio.c: Fix common/ includes.
4433 * hostio-errno.c: Fix common/ includes.
4434 * gdbthread.h: Fix common/ includes.
4435 * gdbreplay.c: Fix common/ includes.
4436 * fork-child.c: Fix common/ includes.
4437 * event-loop.c: Fix common/ includes.
4439 (enum gdb_agent_op): Fix common/ includes.
4441 2019-01-21 Tom Tromey <tom@tromey.com>
4443 * tracepoint.c: Fix includes.
4444 * remote-utils.c: Fix includes.
4445 * linux-x86-low.c: Fix includes.
4447 2019-01-01 Joel Brobecker <brobecker@adacore.com>
4449 * gdbreplay.c (gdbreplay_version): Update copyright year in
4451 * server.c (gdbserver_version): Likewise.
4453 2018-12-05 Alan Hayward <alan.hayward@arm.com>
4455 * linux-low.c (add_lwp): Switch ordering.
4457 2018-11-29 Tom Tromey <tom@tromey.com>
4459 * win32-low.c (win32_join): Take pid, not process.
4460 * target.h (struct target_ops) <join>: Change argument type.
4461 (join_inferior): Change argument name.
4462 * spu-low.c (spu_join): Take pid, not process.
4463 * server.c (handle_detach): Preserve pid before destroying
4465 * lynx-low.c (lynx_join): Take pid, not process.
4466 * linux-low.c (linux_join): Take pid, not process.
4468 2018-11-23 Alan Hayward <alan.hayward@arm.com>
4470 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
4471 (aarch64_cannot_fetch_register): Likewise.
4472 (struct linux_target_ops): Update references.
4474 2018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4476 * linux-ppc-low.c: Include nat/linux-ptrace.h.
4478 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4480 * configure.srv (ipa_ppc_linux_regobj): Add
4481 powerpc-isa207-htm-vsx32l-ipa.o and
4482 powerpc-isa207-htm-vsx64l-ipa.o.
4483 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
4484 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
4485 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
4486 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
4487 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
4488 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
4489 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
4490 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
4491 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
4492 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
4493 (init_registers_powerpc_isa207_htm_vsx32l)
4494 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
4495 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
4496 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
4497 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
4498 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
4499 (ppc_store_tm_ctarregset): New functions.
4500 (ppc_regsets): Add entries for HTM regsets.
4501 (ppc_arch_setup): Set htm in features struct when needed. Set
4502 sizes for the HTM regsets.
4503 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
4504 (initialize_low_arch): Call
4505 init_registers_powerpc_isa207_htm_vsx32l and
4506 init_registers_powerpc_isa207_htm_vsx64l.
4507 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
4508 PPC_TDESC_ISA207_HTM_VSX.
4509 (initialize_low_tracepoint): Call
4510 init_registers_powerpc_isa207_htm_vsx32l and
4511 init_registers_powerpc_isa207_htm_vsx64l.
4513 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4515 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
4516 rs6000/power-linux-pmu.xml to srv_xmlfiles.
4517 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
4518 (ppc_store_pmuregset): New functions.
4519 (ppc_regsets): Add entries for ebb and pmu regsets.
4520 (ppc_arch_setup): Set isa207 in features struct if the ebb and
4521 pmu regsets are available. Set sizes for these regsets.
4523 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4525 * configure.srv (ipa_ppc_linux_regobj): Add
4526 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
4527 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
4528 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
4529 rs6000/powerpc-isa207-vsx32l.xml, and
4530 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
4531 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
4532 <PPC_TDESC_ISA207_VSX>: New enum value.
4533 (init_registers_powerpc_isa207_vsx32l): Declare.
4534 (init_registers_powerpc_isa207_vsx64l): Declare.
4535 * linux-ppc-low.c (ppc_fill_tarregset): New function.
4536 (ppc_store_tarregset): New function.
4537 (ppc_regsets): Add entry for the TAR regset.
4538 (ppc_arch_setup): Set isa207 in features struct when needed. Set
4539 size for the TAR regsets.
4540 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
4541 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
4542 and init_registers_powerpc_isa207_vsx64l.
4543 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
4544 (initialize_low_tracepoint): Call
4545 init_registers_powerpc_isa207_vsx32l and
4546 init_registers_powerpc_isa207_vsx64l.
4548 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4549 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4551 * configure.srv (ipa_ppc_linux_regobj): Add
4552 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
4553 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
4554 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
4555 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
4556 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
4557 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
4558 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
4559 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
4560 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
4561 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
4562 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
4563 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
4564 (ppc_hwcap): Add comment.
4565 (ppc_hwcap2): New global.
4566 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
4567 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
4568 (ppc_regsets): Add entries for the DSCR and PPR regsets.
4569 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
4570 when needed. Set sizes for the the DSCR and PPR regsets.
4571 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
4572 (initialize_low_arch): Call
4573 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
4574 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
4575 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
4576 PPC_TDESC_ISA205_PPR_DSCR_VSX.
4577 (initialize_low_tracepoint): Call
4578 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
4579 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
4581 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4583 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
4585 2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
4586 Simon Marchi <simark@simark.ca>
4588 * acinclude.m4: Include "../selftest.m4".
4589 * configure: Regenerate.
4590 * configure.ac: Use "GDB_AC_SELFTEST".
4591 * configure.srv: Use "$enable_unittests" instead of
4592 "$development" when checking whether unit tests have been
4594 * server.c (captured_main): Update message informing that
4595 selftests have been disabled.
4597 2018-10-04 Tom Tromey <tom@tromey.com>
4599 * configure: Rebuild.
4601 2018-10-04 Tom Tromey <tom@tromey.com>
4603 * server.c (handle_status): Rename inner "thread".
4604 (process_serial_event): Declare "res" in 'm' case.
4605 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
4606 (iterate_over_lwps): Rename inner "thread".
4607 (linux_qxfer_libraries_svr4): Rename inner "len".
4608 * gdbthread.h (find_thread_in_random): Rename inner "thread".
4610 2018-10-01 Gary Benson <gbenson@redhat.com>
4612 * gdb_proc_service.h: Moved common code to
4613 common/gdb_proc_service.h.
4615 2018-10-01 Gary Benson <gbenson@redhat.com>
4617 * gdb_proc_service.h: Synchronize comments and whitespace with
4618 GDB's version of this file.
4620 2018-09-25 Tom Tromey <tom@tromey.com>
4622 * configure: Rebuild.
4623 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
4625 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
4627 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
4628 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
4629 ($(IPA_LIB)): Sort IPA_OBJS.
4631 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
4633 * Makefile.in: Remove references to $(ADD_DEPS).
4635 2018-09-16 Tom Tromey <tom@tromey.com>
4637 * remote-utils.c (remote_open): Use GNU style for metasyntactic
4639 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
4642 2018-09-05 Tom Tromey <tom@tromey.com>
4644 * configure: Rebuild.
4646 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
4649 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
4651 2018-08-27 Tom Tromey <tom@tromey.com>
4654 * configure: Rebuild.
4656 2018-08-27 Tom Tromey <tom@tromey.com>
4658 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
4659 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
4660 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
4661 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
4662 (s390x_emit_stack_adjust): Add casts to unsigned char.
4664 2018-08-22 Simon Marchi <simon.marchi@ericsson.com>
4668 * server.h (struct client_state) <disable_randomization>:
4671 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4673 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
4675 (mips_supply_ptrace_register): Likewise.
4677 2018-07-22 Tom Tromey <tom@tromey.com>
4679 * configure: Rebuild.
4681 2018-07-22 Tom Tromey <tom@tromey.com>
4683 * win32-low.c (win32_create_inferior): Remove unused variables.
4684 * gdbreplay.c (remote_open): Remove unused variable.
4685 * remote-utils.c (remote_prepare): Remove unused variable.
4686 * x86-tdesc.h (X86_TDESC_H): Define.
4687 (amd64_expedite_regs): Define conditionally.
4688 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
4689 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
4690 * remote-utils.c (readchar): Remove unused variable.
4692 2018-07-13 Pedro Alves <palves@redhat.com>
4694 * linux-low.c (linux_kill): Change parameter to process_info
4695 pointer instead of pid. Adjust.
4696 * lynx-low.c (lynx_kill): Likewise.
4697 * nto-low.c (nto_kill): Likewise.
4698 * spu-low.c (spu_kill): Likewise.
4699 * win32-low.c (win32_kill): Likewise.
4700 * server.c (handle_v_kill, kill_inferior_callback)
4701 (detach_or_kill_for_exit): Adjust.
4702 * target.c (kill_inferior): Change parameter to process_info
4703 pointer instead of pid. Adjust.
4704 * target.h (struct target_ops) <kill>: Change parameter to
4705 process_info pointer instead of pid. Adjust all implementations
4707 (kill_inferior): Likewise.
4709 2018-07-13 Pedro Alves <palves@redhat.com>
4711 * linux-low.c (linux_detach, linux_join): Change parameter to
4712 process_info pointer instead of pid. Adjust.
4713 * lynx-low.c (lynx_detach, lynx_join): Likewise.
4714 * nto-low.c (nto_detach): Likewise.
4715 * spu-low.c (spu_detach, spu_join): Likewise.
4716 * win32-low.c (win32_detach, win32_join): Likewise.
4717 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
4718 * target.h (struct target_ops) <detach, join>: Change parameter to
4719 process_info pointer instead of pid. Adjust all implementations
4721 (detach_inferior, join_inferior): Rename 'pid' parameter to
4724 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
4725 Jan Kratochvil <jan.kratochvil@redhat.com>
4726 Paul Fertser <fercerpav@gmail.com>
4727 Tsutomu Seki <sekiriki@gmail.com>
4729 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
4730 (OBS): Add 'common/netstuff.o'.
4731 (GDBREPLAY_OBS): Likewise.
4732 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
4733 (remote_open): Implement support for IPv6
4735 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
4737 (handle_accept_event): Accept connections from IPv6 sources.
4738 (remote_prepare): Handle IPv6-style hostnames; implement
4739 support for IPv6 connections.
4740 (remote_open): Implement support for printing connections from
4743 2018-07-11 Pedro Alves <palves@redhat.com>
4746 * mem-break.c (any_persistent_commands): Add process_info
4747 parameter and use it instead of relying on the current process.
4748 Change return type to bool.
4749 * mem-break.h (any_persistent_commands): Add process_info
4750 parameter and change return type to bool.
4751 * server.c (handle_detach): Remove require_running_or_return call.
4752 Look up the process_info for the process we're about to detach.
4753 If not found, return back error to GDB. Adjust
4754 any_persistent_commands call to pass down a process pointer.
4756 2018-07-11 Pedro Alves <palves@redhat.com>
4758 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
4759 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
4760 instead of collect_register_by_name.
4761 * regcache.c (regcache_raw_get_unsigned_by_name): New.
4762 * regcache.h (regcache_raw_get_unsigned_by_name): New.
4764 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
4765 Pedro Alves <palves@redhat.com>
4767 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
4769 2018-07-03 Tom Tromey <tom@tromey.com>
4771 * linux-low.c: Update.
4772 * lynx-low.c: Update.
4773 * mem-break.c: Update.
4774 * nto-low.c: Update.
4775 * remote-utils.c: Update.
4777 * spu-low.c: Update.
4779 * win32-low.c: Update.
4781 2018-07-03 Tom Tromey <tom@tromey.com>
4785 2018-07-03 Tom Tromey <tom@tromey.com>
4787 * linux-low.c: Update.
4789 2018-07-03 Tom Tromey <tom@tromey.com>
4793 2018-07-03 Tom Tromey <tom@tromey.com>
4795 * linux-low.c: Update.
4796 * linux-mips-low.c: Update.
4797 * lynx-low.c: Update.
4798 * nto-low.c: Update.
4799 * remote-utils.c: Update.
4801 * spu-low.c: Update.
4803 * thread-db.c: Update.
4805 2018-07-03 Tom Tromey <tom@tromey.com>
4807 * linux-low.c: Update.
4808 * linux-mips-low.c: Update.
4809 * lynx-low.c: Update.
4810 * mem-break.c: Update.
4811 * nto-low.c: Update.
4812 * remote-utils.c: Update.
4814 * spu-low.c: Update.
4816 * tracepoint.c: Update.
4818 2018-07-03 Tom Tromey <tom@tromey.com>
4820 * linux-low.c: Update.
4821 * linux-ppc-low.c: Update.
4822 * linux-x86-low.c: Update.
4823 * proc-service.c: Update.
4825 * spu-low.c: Update.
4826 * thread-db.c: Update.
4827 * win32-low.c: Update.
4829 2018-07-03 Tom Tromey <tom@tromey.com>
4831 * linux-low.c: Update.
4832 * lynx-low.c: Update.
4833 * nto-low.c: Update.
4834 * remote-utils.c: Update.
4835 * spu-low.c: Update.
4836 * thread-db.c: Update.
4837 * win32-low.c: Update.
4839 2018-06-29 Joel Brobecker <brobecker@adacore.com>
4841 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
4842 parameter in call to 'amd64_create_target_description'.
4844 2018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4846 * x86-tdesc.h: Remove executable permission flag.
4848 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
4850 * configure.ac: Remove AC_PREREQ, add missing quoting.
4851 * configure: Re-generate.
4852 * config.in: Re-generate.
4853 * aclocal.m4: Re-generate.
4855 2018-06-18 Simon Marchi <simon.marchi@ericsson.com>
4857 * tracepoint.h (current_traceframe): Remove declaration.
4859 2018-06-18 Alan Hayward <alan.hayward@arm.com>
4861 * linux-aarch64-low.c (is_sve_tdesc): New function.
4862 (aarch64_sve_regs_copy_to_regcache): Likewise.
4863 (aarch64_sve_regs_copy_from_regcache): Likewise.
4864 (aarch64_regs_info): Add SVE checks.
4865 (initialize_low_arch): Initialize SVE.
4867 2018-06-18 Alan Hayward <alan.hayward@arm.com>
4869 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
4871 2018-06-11 Alan Hayward <alan.hayward@arm.com>
4873 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
4874 (initialize_low_tracepoint): Likewise
4875 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
4876 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
4878 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
4880 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
4882 2018-06-11 Alan Hayward <alan.hayward@arm.com>
4884 * server.h (PBUFSIZ): Increase size
4886 2018-06-11 Alan Hayward <alan.hayward@arm.com>
4888 * regcache.c (regcache::raw_compare): New function.
4889 * regcache.h (regcache::raw_compare): New declaration.
4891 2018-06-11 Alan Hayward <alan.hayward@arm.com>
4893 * regcache.c (new_register_cache): Use new.
4894 (free_register_cache): Use delete.
4895 (register_data): Use const.
4896 (supply_register): Move body inside regcache.
4897 (regcache::raw_supply): New override function.
4898 (collect_register): Move body inside regcache.
4899 (regcache::raw_collect): New override function.
4900 (regcache::get_register_status): New override function.
4901 * regcache.h (struct regcache): Inherit from reg_buffer_common.
4903 2018-06-09 Tom Tromey <tom@tromey.com>
4905 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
4907 (event_queue): Use std::queue.
4908 (gdb_event_xfree): Remove.
4909 (initialize_event_loop, process_event, wait_for_event): Update.
4911 2018-06-08 Stan Cox <scox@redhat.com>
4913 * win32-low.c (win32_create_inferior): last_ptid and last_status
4914 moved to client_state.
4916 2018-06-08 Pedro Alves <palves@redhat.com>
4918 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
4919 common/common-exceptions.o, common/common-utils.o,
4920 common/errors.o, common/print-utils.o and utils.o.
4921 * gdbreplay.c: Include "common-defs.h" instead of the two
4922 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
4923 string.h or alloca.h.
4924 (perror_with_name): Delete.
4925 (remote_open): Use xstrdup instead of strdup.
4926 (main): Rename to ...
4927 (captured_main): ... this.
4930 2018-06-08 Tom Tromey <tom@tromey.com>
4932 * linux-low.c (linux_low_read_btrace): Update.
4934 2018-06-04 Stan Cox <scox@redhat.com>
4936 * server.h (struct client_state): New.
4937 * server.c (cont_thread, general_thread, multi_process)
4938 (report_fork_events, report_vfork_events, report_exec_events)
4939 (report_thread_events, swbreak_feature, hwbreak_feature)
4940 (vCont_supported, disable_randomization, pass_signals)
4941 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
4942 Moved to client_state.
4943 * remote-utils.c (remote_debug, noack_mode)
4944 (transport_is_reliable): Moved to client_state.
4945 * tracepoint.c (current_traceframe): Moved to client_state.
4948 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
4949 linux-low.c, remote-utils.h, target.c: Use client_state.
4951 2018-05-31 Alan Hayward <alan.hayward@arm.com>
4953 * configure.srv: Add new c/h file.
4955 2018-05-31 Alan Hayward <alan.hayward@arm.com>
4957 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
4960 2018-05-25 Maciej W. Rozycki <macro@mips.com>
4962 * gdb.arch/mips-fpregset-core.exp: New test.
4963 * gdb.arch/mips-fpregset-core.c: New test source.
4965 2018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
4968 * hostio.c (require_int): Do not report overflow for integers
4969 between 0xfffffff and 0x7fffffff.
4971 2018-05-22 Maciej W. Rozycki <macro@mips.com>
4973 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
4974 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
4975 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
4977 (the_low_target): Wire them.
4979 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
4981 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
4982 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
4983 mode. Call collect_register_by_name with vscr using
4984 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
4985 (ppc_store_vrregset): Add and set vscr_offset variable as in
4986 ppc_fill_vrregset. Call supply_register_by_name with vscr using
4989 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
4991 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
4992 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
4993 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
4995 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
4997 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
4998 (ppc_store_vsxregset): Likewise.
4999 (ppc_fill_vrregset): Likewise.
5000 (ppc_store_vrregset): Likewise.
5001 (ppc_fill_evrregset): Likewise.
5002 (ppc_store_evrregset): Likewise.
5003 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
5004 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
5007 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5009 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
5010 wordsize of the inferior. Call ppc_linux_target_wordsize.
5012 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5014 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
5015 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
5016 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
5017 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
5018 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
5019 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
5020 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
5021 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
5022 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
5023 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
5024 (tdesc_powerpc_e500l): Remove.
5025 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
5026 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
5027 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
5028 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
5030 (ppc_arch_setup): Remove target description matching code. Fill a
5031 ppc_linux_features struct and call ppc_linux_match_description
5034 2018-05-22 Maciej W. Rozycki <macro@mips.com>
5036 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
5037 width of the requested register exceeds the width of the
5039 (mips_cannot_store_register): Likewise.
5041 2018-05-21 Maciej W. Rozycki <macro@mips.com>
5043 * linux-mips-low.c (mips_fetch_register): New function. Update
5045 (mips_store_gregset): Supply 0 rather than $restart for $zero.
5046 (the_low_target): Wire `mips_fetch_register'.
5048 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5050 * lynx-i386-low.c (LYNXOS_178): New macro.
5051 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
5052 the layout on LynxOS-178.
5053 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
5054 handle floating point registers that are not supported by
5057 2018-05-10 Tom Tromey <tom@tromey.com>
5059 * configure: Rebuild.
5061 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5064 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
5065 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
5066 Use it to set the expedite_regs field in the given tdesc.
5067 * x86-tdesc.h: New file.
5068 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
5069 Adjust following the addition of the new expedite_regs parameter
5070 to init_target_desc.
5071 * linux-tic6x-low.c (tic6x_read_description): Likewise.
5072 * linux-x86-tdesc.c: #include "x86-tdesc.h".
5073 (i386_linux_read_description, amd64_linux_read_description):
5074 Adjust following the addition of the new expedite_regs parameter
5075 to init_target_desc.
5076 * lynx-i386-low.c: #include "x86-tdesc.h".
5077 (lynx_i386_arch_setup): Adjust following the addition of the new
5078 expedite_regs parameter to init_target_desc.
5079 * nto-x86-low.c: #include "x86-tdesc.h".
5080 (nto_x86_arch_setup): Adjust following the addition of the new
5081 expedite_regs parameter to init_target_desc.
5082 * win32-i386-low.c: #include "x86-tdesc.h".
5083 (i386_arch_setup): Adjust following the addition of the new
5084 expedite_regs parameter to init_target_desc.
5086 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5089 * win32-low.c (win32_create_inferior): Add call to my_wait
5090 setting last_status global.
5092 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5095 * win32-low.c (create_process): Only call gdb_tilde_expand if
5096 inferior_cwd is not NULL.
5098 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
5100 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
5101 registers to the cache if their values have changed.
5102 (i387_xsave_to_cache): Provide default values for x87 control
5103 registers when these features are available, but disabled.
5104 * regcache.c (supply_register_by_name_zeroed): New function.
5105 * regcache.h (supply_register_by_name_zeroed): Declare new
5108 2018-05-07 Tom Tromey <tom@tromey.com>
5110 * configure: Rebuild.
5112 2018-05-04 Tom Tromey <tom@tromey.com>
5114 * configure: Rebuild.
5116 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5117 Pedro Alves <palves@redhat.com>
5119 * linux-aarch64-low.c (aarch64_stopped_data_address):
5122 2018-04-27 Tom Tromey <tom@tromey.com>
5124 * configure: Rebuild.
5126 2018-04-23 Tom Tromey <tom@tromey.com>
5128 * configure: Rebuild.
5130 2018-04-19 Simon Marchi <simon.marchi@ericsson.com>
5132 * Makefile.in (depcomp): Add "..".
5133 (all_deps_files): New and use it.
5135 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5137 * configure.srv (aarch64*-*-linux*): Don't include xml.
5138 (i[34567]86-*-cygwin*): Likewise.
5139 (i[34567]86-*-linux*): Likewise.
5140 (i[34567]86-*-lynxos*): Likewise.
5141 (i[34567]86-*-mingw32ce*): Likewise.
5142 (i[34567]86-*-mingw*): Likewise.
5143 (i[34567]86-*-nto*): Likewise.
5144 (tic6x-*-uclinux): Likewise.
5145 (x86_64-*-linux*): Likewise.
5146 (x86_64-*-mingw*): Likewise.
5147 (x86_64-*-cygwin*): Likewise.
5149 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5151 * tdesc.c: Remove xml parameter.
5153 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5155 * server.c (get_features_xml): Remove cast.
5156 * tdesc.c (void target_desc::accept): Fill in function.
5157 (tdesc_get_features_xml): Remove old xml creation.
5158 (print_xml_feature::visit_pre): Add xml vistor.
5159 * tdesc.h (struct target_desc): Make xmltarget mutable.
5160 (tdesc_get_features_xml): Remove declaration.
5162 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5164 * tdesc.c (tdesc_architecture_name): Add new function.
5165 (tdesc_osabi_name): Likewise.
5166 (tdesc_get_features_xml): Use new functions.
5168 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5170 * tdesc.c (tdesc_create_flags): Remove.
5171 (tdesc_add_flag): Likewise.
5172 (tdesc_named_type): Likewise.
5173 (tdesc_create_union): Likewise.
5174 (tdesc_create_struct): Likewise.
5175 (tdesc_create_vector): Likewise.
5176 (tdesc_add_bitfield): Likewise.
5177 (tdesc_add_field): Likewise.
5178 (tdesc_set_struct_size): Likewise.
5180 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5182 * tdesc.c (~target_desc): Remove implictly deleted items.
5183 (init_target_desc): Iterate all features.
5184 (tdesc_get_features_xml): Use vector.
5185 (tdesc_create_feature): Create feature.
5186 * tdesc.h (tdesc_feature) Remove
5187 (target_desc): Add features.
5189 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5191 * Makefile.in: Add common/tdesc.c
5192 * tdesc.c (init_target_desc): init all reg_defs from register
5194 (tdesc_create_reg): Create tdesc_reg.
5195 * tdesc.h (tdesc_feature): Add register vector.
5197 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
5199 * tdesc.h (struct target_desc) <features>: Change type to
5200 std::vector<std::string>.
5201 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
5203 (tdesc_get_features_xml): Likewise.
5204 (tdesc_create_feature): Likewise.
5206 2018-03-26 Alan Hayward <alan.hayward@arm.com>
5208 * regcache.c (find_register_by_number): Return a ref.
5209 (find_regno): Use references.
5210 (register_size): Likewise.
5211 (register_data): Likewise.
5212 * tdesc.c (target_desc::~target_desc): Remove free calls.
5213 (target_desc::operator==): Use std::vector compare.
5214 (init_target_desc): Use reference.
5215 (tdesc_create_reg): Use reg constructors.
5216 * tdesc.h (struct target_desc): Replace pointer with object.
5218 2018-03-23 Alan Hayward <alan.hayward@arm.com>
5220 * regcache.c (find_register_by_number): Make static.
5221 (find_regno): Use find_register_by_number
5222 * regcache.h (struct reg): Remove declaration.
5224 2018-03-23 Alan Hayward <alan.hayward@arm.com>
5226 * tdesc.c (target_desc::~target_desc): Move to here.
5227 (target_desc::operator==): Likewise.
5228 * tdesc.h (target_desc::~target_desc): Move from here.
5229 (target_desc::operator==): Likewise.
5231 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
5233 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
5235 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5237 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
5239 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
5240 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
5241 and init_registers_s390_gs_linux64.
5243 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5245 * linux-s390-low.c (s390_fill_gs): Remove function.
5246 (s390_fill_gsbc): Remove function.
5247 (s390_regsets): Set fill functions for the guarded storage regsets
5250 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5252 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
5253 the word size. Add comment.
5254 (s390_get_wordsize): New function.
5255 (s390_arch_setup): No longer select a temporary tdesc to fetch the
5256 pswm with it. Instead, use s390_get_wordsize to determine the
5257 word size first and derive the correct tdesc from that directly.
5259 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
5261 * Makefile.in: Include silent-rules.mk.
5262 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
5263 (COMPILE): Add ECHO_CXX.
5264 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5265 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5266 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
5267 (version-generated.c): Add ECHO_GEN.
5268 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
5269 (IPAGENT_COMPILE): Add ECHO_CXX.
5270 (%-generated.c): Add ECHO_REGDAT.
5272 2018-03-14 Tom Tromey <tom@tromey.com>
5275 * ax.c (ax_printf): Special case for NULL.
5277 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5279 * linux-low.c (linux_qxfer_libraries_svr4): Use
5280 xml_escape_text_append.
5282 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5284 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
5286 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5288 * server.c (handle_general_set): Remove unnecessary xstrdup.
5290 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5292 * server.c (parse_debug_format_options): Adjust to
5293 delim_string_to_char_ptr_vec changes.
5294 * thread-db.c (thread_db_load_search): Adjust to
5295 dirnames_to_char_ptr_vec changes.
5297 2018-03-01 Markus Metzger <markus.t.metzger@intel.com>
5299 * target.h (target_enable_btrace, target_disable_btrace)
5300 (target_read_btrace, target_read_btrace_conf): Turn macro into
5301 inline function. Throw error if target method is not defined.
5302 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
5303 check for btrace target method. Be prepared to handle exceptions
5304 from btrace target methods.
5306 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5308 * server.c (captured_main): Change order of error message printed
5309 when the current working directory cannot be found.
5311 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5313 * server.c: Include "filenames.h" and "pathstuff.h".
5314 (program_name): Delete variable.
5315 (program_path): New anonymous class.
5316 (get_exec_wrapper): Use "program_path" instead of
5318 (handle_v_run): Likewise.
5319 (captured_main): Likewise.
5320 (process_serial_event): Likewise.
5322 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5324 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
5325 (OBJS): Add "pathstuff.o".
5326 * server.c (current_directory): New global variable.
5327 (captured_main): Initialize "current_directory".
5329 2018-02-26 Alan Hayward <alan.hayward@arm.com>
5331 * tdesc.c: Use common/tdesc.h.
5332 * tdesc.h: Likewise.
5334 2018-02-20 Alan Hayward <alan.hayward@arm.com>
5335 Simon Marchi <simon.marchi@ericsson.com>
5337 * Makefile.in: Switch order of make rules.
5339 2018-02-19 Alan Hayward <alan.hayward@arm.com>
5341 * Makefile.in: Add common directory in build.
5342 * configure.ac: Add common reference.
5343 * configure: Regenerate.
5345 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
5347 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
5348 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
5349 * spu-low.c (spu_target_ops): Likewise.
5350 * win32-low.c (win32_target_ops): Likewise.
5351 * server.c (supported_btrace_packets): Report packets unconditionally.
5352 * target.h (target_ops) <supports_btrace>: Remove.
5353 (target_supports_btrace): Remove.
5355 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
5357 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
5358 (handle_btrace_disable): Change return type to void. Use exceptions
5360 (handle_btrace_general_set): Catch exception and copy message to
5363 2018-02-08 Tom Tromey <tom@tromey.com>
5365 * linux-low.c (install_software_single_step_breakpoints): Use
5366 make_scoped_restore.
5367 * inferiors.c (make_cleanup_restore_current_thread): Remove.
5368 (do_restore_current_thread_cleanup): Remove.
5369 * gdbthread.h (make_cleanup_restore_current_thread): Don't
5372 2018-02-08 Tom Tromey <tom@tromey.com>
5374 * mem-break.c (set_raw_breakpoint_at): Use
5375 gdb::unique_xmalloc_ptr.
5377 2018-01-30 Pedro Alves <palves@redhat.com>
5380 * target.c (target_terminal::terminal_state): Rename to ...
5381 (target_terminal::m_terminal_state): ... this.
5383 2018-01-19 James Clarke <jrtc27@jrtc27.com>
5385 * linux-low.c (handle_extended_wait): Surround call to
5386 thread_db_notice_clone with #ifdef USE_THREAD_DB.
5388 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
5390 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
5391 linux_ptrace_attach_fail_reason_string now returning an
5393 (linux_attach): Likewise.
5394 * thread-db.c (attach_thread): Likewise.
5396 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
5399 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
5400 checking for fs_base/gs_base fields in struct user_regs_struct.
5401 * configure: Regenerate.
5403 2018-01-16 Yao Qi <yao.qi@linaro.org>
5406 * linux-low.c (fetch_register): Call supply_register instead of
5409 2018-01-08 Yao Qi <yao.qi@linaro.org>
5410 Simon Marchi <simon.marchi@ericsson.com>
5412 * Makefile.in (OBS): Remove selftest.o.
5413 * configure.ac: Set srv_selftest_objs if $development is true.
5414 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
5415 * configure: Re-generated.
5416 * server.c (captured_main): Wrap variable selftest_filter with
5419 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
5421 * server.c (parse_debug_format_options): Return std::string.
5422 (handle_monitor_command, captured_main): Adjust.
5424 2018-01-05 Pedro Alves <palves@redhat.com>
5427 * server.c (captured_main): Pass quiet=false to
5428 save_original_signals_state.
5430 2018-01-01 Joel Brobecker <brobecker@adacore.com>
5432 * gdbreplay.c (gdbreplay_version): Update copyright year in
5434 * server.c (gdbserver_version): Likewise.
5436 2017-12-08 Tom Tromey <tom@tromey.com>
5438 * ax.c (ax_printf): Update.
5440 2017-12-07 Yao Qi <yao.qi@linaro.org>
5442 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
5443 aarch64_linux_read_description.
5444 * linux-amd64-ipa.c (idx2mask): New array.
5445 (get_ipa_tdesc): Move idx2mask out.
5446 (initialize_low_tracepoint): Initialize target descriptions.
5447 * linux-i386-ipa.c (idx2mask): New array.
5448 (get_ipa_tdesc): Move idx2mask out.
5449 (initialize_low_tracepoint): Initialize target descriptions.
5451 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
5453 * tdesc.c (struct tdesc_type): Change return type.
5454 (tdesc_add_flag): Change parameter type.
5455 (tdesc_add_bitfield): Likewise.
5456 (tdesc_add_field): Likewise.
5457 (tdesc_set_struct_size): Likewise.
5459 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
5461 * regcache.c (registers_to_string): Remove unused variable.
5463 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5465 * inferiors.c (for_each_inferior_with_data): Remove.
5466 * inferiors.h (for_each_inferior_with_data): Remove.
5467 * server.c (handle_qxfer_threads_worker): Change parameter type.
5468 (handle_qxfer_threads_proper): Use for_each_thread.
5470 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5472 * inferiors.c (for_each_inferior): Remove.
5473 (clear_inferiors): Use for_each_thread.
5474 * inferiors.h (for_each_inferior): Remove.
5475 * linux-low.c (linux_wait_for_event_filtered): Use
5477 (linux_stabilize_threads): Likewise.
5478 * regcache.c (regcache_release): Likewise.
5479 * server.c (gdb_wants_all_threads_stopped): Likewise.
5480 (clear_pending_status_callback): Remove.
5481 (handle_status): Use for_each_thread.
5482 (captured_main): Likewise.
5483 * win32-low.c (child_init_thread_list): Likewise.
5484 (win32_clear_inferiors): Likewise.
5485 (fake_breakpoint_event): Likewise.
5487 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5489 * inferiors.h (find_inferior): Remove.
5490 * inferiors.c (find_inferior): Remove.
5492 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5494 * linux-low.c (resume_status_pending_p): Update comment.
5495 (need_step_over_p): Update comment.
5497 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5499 * linux-low.c (proceed_one_lwp): Return void, change parameter
5501 (unsuspend_and_proceed_one_lwp): Likewise.
5502 (proceed_all_lwps): Use for_each_thread.
5503 (unstop_all_lwps): Likewise.
5505 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5507 * linux-low.c (linux_resume_one_thread): Return void, take
5509 (linux_resume): Use for_each_thread.
5511 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5513 * linux-low.c (send_sigstop_callback): Return void, change
5514 parameter type. Rename to...
5515 (send_sigstop): ... this.
5516 (suspend_and_send_sigstop_callback): Return void, change parameter
5518 (suspend_and_send_sigstop): ... this.
5519 (stop_all_lwps): Use for_each_thread.
5521 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5523 * linux-low.c (lwp_running): Return bool, remove unused
5525 (linux_stabilize_threads): Use find_thread.
5527 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5529 * linux-low.c (select_singlestep_lwp_callback): Remove.
5530 (count_events_callback): Remove.
5531 (select_event_lwp_callback): Remove.
5532 (select_event_lwp): Use find_thread/for_each_thread.
5534 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5536 * linux-low.c (not_stopped_callback): Return bool, take filter
5538 (linux_wait_for_event_filtered): Use find_thread.
5539 (linux_wait_1): Likewise.
5541 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5543 * linux-low.c (same_lwp): Remove.
5544 (find_lwp_pid): Use find_thread.
5546 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5548 * linux-low.c (delete_lwp_callback): Remove.
5549 (linux_mourn): Use for_each_thread.
5551 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5553 * linux-low.c (linux_detach_lwp_callback): Return void, remove
5554 args parameter, don't check for pid.
5555 (linux_detach): Use for_each_thread.
5557 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5559 * linux-low.c (struct counter): Remove.
5560 (second_thread_of_pid_p): Remove.
5561 (last_thread_of_process_p): Use find_thread.
5563 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5565 * inferiors.c (find_inferior_in_random): Remove.
5566 * inferiors.h (find_inferior_in_random): Remove.
5567 * linux-low.c (status_pending_p_callback): Return bool, accept
5568 parameter ptid directly.
5569 (linux_wait_for_event_filtered): Use find_thread_in_random.
5570 (linux_wait_1): Likewise.
5572 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5574 * inferiors.c (find_inferior_id): Remove.
5575 (find_thread_ptid): Move implemention from find_inferior_id to
5577 * inferiors.h (find_inferior_id): Remove.
5578 * server.c (handle_status): Use find_thread_ptid.
5579 (process_serial_event): Likewise.
5580 * thread-db.c (find_one_thread): Likewise.
5581 (thread_db_thread_handle): Likewise.
5582 * win32-low.c (thread_rec): Likewise.
5583 (child_delete_thread): Likewise.
5584 (win32_thread_alive): Likewise.
5585 (get_child_debug_event): Likewise.
5587 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5589 * linux-mips-low.c (update_watch_registers_callback): Return
5590 void, remove pid_p parameter, don't check for pid.
5591 (mips_insert_point, mips_remove_point): Use for_each_thread.
5593 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5595 * lynx.low (lynx_delete_thread_callback): Remove.
5596 (lynx_mourn): Use for_each_thread.
5598 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5600 * regcache.c (regcache_invalidate_one): Remove.
5601 (regcache_invalidate_pid): use for_each_thread.
5603 2017-11-26 Tom Tromey <tom@tromey.com>
5605 * linux-low.c (linux_create_inferior): Update.
5607 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
5609 * spu-low.c (spu_create_inferior): Fix typo in argument name.
5611 2017-11-24 Alan Hayward <alan.hayward@arm.com>
5613 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
5614 * linux-aarch64-low.c (initialize_low_arch): Call init func.
5615 * linux-aarch64-tdesc-selftest.c: New file.
5616 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
5618 2017-11-24 Alan Hayward <alan.hayward@arm.com>
5620 * configure.srv: Add new file.
5621 * linux-aarch64-low.c (initialize_low_arch): Call init func.
5622 * linux-aarch64-tdesc-selftest.c: New file.
5623 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
5625 2017-11-24 Alan Hayward <alan.hayward@arm.com>
5627 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
5628 * linux-aarch64-low.c (initialize_low_arch): Remove init.
5629 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
5631 2017-11-24 Alan Hayward <alan.hayward@arm.com>
5633 * configure.srv: Add new files.
5634 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
5635 aarch64_linux_read_description.
5636 * linux-aarch64-low.c (aarch64_linux_read_description):
5637 Merge with aarch64_arch_setup.
5638 (aarch64_arch_setup): Call aarch64_linux_read_description.
5639 * linux-aarch64-tdesc.c: New file.
5640 * linux-aarch64-tdesc.h: New file.
5642 2017-11-24 Yao Qi <yao.qi@linaro.org>
5644 * configure.srv: Set $srv_regobj for tic6x-linux.
5645 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
5646 (tic6x_read_description): Move some code to tic6x_arch_setup.
5647 (tic6x_tdesc_test): New function.
5648 (initialize_low_arch): Call selftests::register_test.
5650 2017-11-22 Yao Qi <yao.qi@linaro.org>
5652 * remote-utils.c (prepare_resume_reply): Use memcpy.
5654 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5656 * linux-low.c (kill_one_lwp_callback): Return void, take
5657 argument directly, don't filter on pid.
5658 (linux_kill): Use for_each_thread.
5660 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5662 * linux-low.c (need_step_over_p): Return bool, remove dummy
5664 (linux_resume, proceed_all_lwps): Use find_thread.
5666 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5668 * linux-low.c (resume_status_pending_p): Return bool, remove
5670 (linux_resume): Use find_thread.
5672 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5674 * linux-low.c (struct thread_resume_array): Remove.
5675 (linux_set_resume_request): Return void, take arguments
5677 (linux_resume): Use for_each_thread.
5679 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5681 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
5682 return bool, remove data argument.
5683 (linux_stabilize_threads): Use find_thread.
5685 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5687 * linux-low.c (unsuspend_one_lwp): Remove.
5688 (unsuspend_all_lwps): Use for_each_thread, inline code from
5691 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5693 * gdbthread.h (find_thread): Add overload with ptid_t filter.
5694 * linux-low.c (struct iterate_over_lwps_args): Remove.
5695 (iterate_over_lwps_filter): Remove.
5696 (iterate_over_lwps): Use find_thread.
5698 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5700 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
5701 (linux_handle_new_gdb_connection): Use for_each_thread, inline
5702 code from reset_lwp_ptrace_options_callback.
5704 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5706 * linux-arm-low.c (struct update_registers_data): Remove.
5707 (update_registers_callback): Return void, take arguments
5708 directly, don't check thread's pid.
5709 (arm_insert_point, arm_remove_point): Use for_each_thread.
5711 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5713 * win32-low.c (continue_one_thread): Return void, take argument
5715 (child_continue): Use for_each_thread.
5717 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
5719 * win32-i386-low.c (update_debug_registers_callback): Rename
5721 (update_debug_registers): ... this, return void, remove pid_p arg.
5722 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
5724 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
5726 * inferiors.h (struct process_info): Add constructor, initialize
5728 <syscalls_to_catch>: Change type to std::vector<int>.
5729 * inferiors.c (add_process): Allocate process_info with new.
5730 (remove_process): Free process_info with delete.
5731 * linux-low.c (handle_extended_wait): Adjust.
5732 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
5733 * server.c (handle_general_set): Adjust.
5735 2017-11-16 Pedro Alves <palves@redhat.com>
5737 * remote-utils.c (remote_close): Block SIGIO signals instead of
5738 uninstalling the SIGIO handler.
5740 2017-11-16 Alan Hayward <alan.hayward@arm.com>
5742 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
5744 2017-11-16 Yao Qi <yao.qi@linaro.org>
5746 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
5747 (tic6x_store_gregset): Likewise.
5748 (tic6x_usrregs_info): Move it up.
5750 2017-11-15 Alan Hayward <alan.hayward@arm.com>
5752 * Makefile.in: Update arch rules.
5753 * configure.srv: Explicitly mark arch/ files.
5755 2017-11-13 Andreas Schwab <schwab@suse.de>
5757 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
5759 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
5761 2017-11-06 Pedro Alves <palves@redhat.com>
5763 * config.in, configure: Regenerate.
5765 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
5767 * target.c (struct thread_search): Remove.
5768 (thread_search_callback): Remove.
5769 (prepare_to_access_memory): Use for_each_thread instead of
5770 find_inferior. Inline code from thread_search_callback.
5772 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
5774 * server.c (struct visit_actioned_threads_data): Remove.
5775 (visit_actioned_threads): Change prototype to take arguments
5777 (resume): Use find_thread instead of find_inferior.
5779 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
5781 * server.c (queue_stop_reply_callback): Change prototype, return
5783 (find_status_pending_thread_callback): Remove.
5784 (handle_status): Replace find_inferior with find_thread and
5787 2017-10-25 Alan Hayward <alan.hayward@arm.com>
5789 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
5791 (aarch64_store_gregset): Likewise.
5792 (aarch64_fill_fpregset): Likewise.
5793 (aarch64_store_fpregset): Likewise.
5795 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
5797 * gdbthread.h (find_thread, for_each_thread): New functions.
5798 * inferiors.c (thread_of_pid): Remove.
5799 (find_any_thread_of_pid): Use find_thread.
5800 * linux-low.c (num_lwps): Use for_each_thread.
5802 2017-10-17 Yao Qi <yao.qi@linaro.org>
5804 * Makefile.in: Remove one rule.
5805 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
5807 2017-10-17 Yao Qi <yao.qi@linaro.org>
5809 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
5810 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
5812 2017-10-17 Yao Qi <yao.qi@linaro.org>
5814 * configure.srv: Rename arm.o with arch/arm.o.
5816 2017-10-17 Yao Qi <yao.qi@linaro.org>
5818 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
5819 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
5820 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
5821 (arch-i386.o, arch-amd64.o): Remove rules.
5822 (arch/%.o): New rule.
5823 Update POSTCOMPILE and COMPILE.pre.
5824 * configure.ac: Invoke AC_CONFIG_COMMANDS.
5825 * configure: Re-generated.
5826 * configure.srv: Replace arch-i386.o with arch/i386.o.
5827 Replace arch-amd64.o with arch/amd64.o.
5829 2017-10-16 Yao Qi <yao.qi@linaro.org>
5831 * configure: Regenerated.
5833 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
5835 * inferiors.h: (struct inferior_list): Remove.
5836 (struct inferior_list_entry); Remove.
5837 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
5838 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
5839 get_first_inferior): Remove.
5840 (for_each_inferior, for_each_inferior_with_data, find_inferior,
5841 find_inferior_id, find_inferior_in_random): Change signature.
5842 * inferiors.c (all_threads): Change type to
5843 std::list<thread_info *>.
5844 (get_thread): Remove macro.
5845 (find_inferior, find_inferior_id): Change signature, implement
5847 (find_inferior_in_random): Change signature, implement using
5848 find_thread_in_random.
5849 (for_each_inferior, for_each_inferior_with_data): Change
5850 signature, implement using for_each_thread.
5851 (add_inferior_to_list, remove_inferior): Remove.
5852 (add_thread, get_first_thread, thread_of_pid,
5853 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
5854 (get_first_inferior, one_inferior_p, clear_inferior_list):
5856 (clear_inferiors, get_thread_process): Update.
5857 * gdbthread.h: Include <list>.
5858 (struct thread_info) <entry>: Remove field.
5860 (all_threads): Change type to std::list<thread_info *>.
5861 (get_first_inferior): Add doc.
5862 (find_thread, for_each_thread, find_thread_in_random): New
5864 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
5865 * linux-arm-low.c (update_registers_callback): Update.
5866 * linux-low.c (second_thread_of_pid_p): Update.
5867 (kill_one_lwp_callback, linux_detach_lwp_callback,
5868 delete_lwp_callback, status_pending_p_callback, same_lwp,
5869 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
5870 iterate_over_lwps, not_stopped_callback,
5871 resume_stopped_resumed_lwps, count_events_callback,
5872 select_singlestep_lwp_callback, select_event_lwp_callback,
5873 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
5874 suspend_and_send_sigstop_callback, wait_for_sigstop,
5875 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
5876 lwp_running, linux_set_resume_request, resume_status_pending_p,
5877 need_step_over_p, start_step_over, linux_resume_one_thread,
5878 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
5879 reset_lwp_ptrace_options_callback): Update.
5880 * linux-mips-low.c (update_watch_registers_callback): Update.
5881 * regcache.c (regcache_invalidate_one, regcache_invalidate):
5883 (free_register_cache_thread_one): Remove.
5884 (regcache_release): Update.
5885 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
5886 handle_qxfer_threads_worker): Update.
5887 (handle_query): Update, use list iterator.
5888 (visit_actioned_threads, handle_pending_status,
5889 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
5890 clear_pending_status_callback, set_pending_status_callback,
5891 find_status_pending_thread_callback, handle_status,
5892 process_serial_event): Update.
5893 * target.c (thread_search_callback): Update.
5894 * thread-db.c (thread_db_get_tls_address): Update.
5895 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
5897 * win32-i386-low.c (update_debug_registers_callback): Update.
5898 * win32-low.c (delete_thread_info, child_delete_thread,
5899 continue_one_thread, suspend_one_thread,
5900 get_child_debug_event): Adjust.
5902 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
5904 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
5905 * inferiors.h: Include <list>.
5906 (struct process_info) <entry>: Remove field.
5908 (pid_of): Change macro to function.
5909 (ptid_of, lwpid_of): Remove macro.
5910 (all_processes): Change type to std::list<process_info *>.
5911 (ALL_PROCESSES): Remove macro.
5912 (for_each_process, find_process): New function.
5913 * inferiors.c (all_processes): Change type to
5914 std::list<process_info *>.
5915 (find_thread_process): Adjust.
5916 (add_process): Likewise.
5917 (remove_process): Likewise.
5918 (find_process_pid): Likewise.
5919 (get_first_process): Likewise.
5920 (started_inferior_callback): Remove.
5921 (have_started_inferiors_p): Adjust.
5922 (attached_inferior_callback): Remove.
5923 (have_attached_inferiors_p): Adjust.
5924 * linux-low.c (check_zombie_leaders): Likewise.
5925 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
5926 (x86_linux_update_xmltarget): Adjust.
5927 * server.c (handle_query): Likewise.
5928 (gdb_reattached_process): Remove.
5929 (handle_status): Adjust.
5930 (kill_inferior_callback): Likewise.
5931 (detach_or_kill_inferior): Remove.
5932 (print_started_pid): Likewise.
5933 (print_attached_pid): Likewise.
5934 (detach_or_kill_for_exit): Update.
5935 (process_serial_event): Likewise.
5936 * linux-arm-low.c (arm_new_fork): Likewise.
5938 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
5940 * dll.h: Include <list>.
5941 (struct dll_info): Add constructor.
5942 <entry>: Remove field.
5943 (all_dlls): Change type to std::list<dll_info>.
5944 * dll.c: Include <algorithm>.
5945 (get_dll): Remove macro.
5946 (all_dlls): Change type to std::list<dll_info *>.
5947 (free_one_dll): Remove.
5948 (match_dll): Likewise.
5949 (loaded_dll): Adjust.
5950 (unloaded_dll): Adjust to all_dlls type change, use
5951 std::find_if. Inline code from match_dll.
5952 (clear_dlls): Adjust to all_dlls type change.
5953 * server.c (emit_dll_description): Remove.
5954 (handle_qxfer_libraries): Adjust to all_dlls type change,
5955 integrate emit_dll_description's functionality.
5957 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
5959 * linux-low.h (struct linux_target_ops) <delete_process>: New
5961 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
5962 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
5963 (struct linux_target_ops): Add delete_process callback.
5964 * linux-arm-low.c (arm_delete_process): New.
5965 (struct linux_target_ops): Add delete_process callback.
5966 * linux-bfin-low.c (struct linux_target_ops): Likewise.
5967 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
5968 * linux-m32r-low.c (struct linux_target_ops): Likewise.
5969 * linux-mips-low.c (mips_linux_delete_process): New.
5970 (struct linux_target_ops): Add delete_process callback.
5971 * linux-ppc-low.c (struct linux_target_ops): Likewise.
5972 * linux-s390-low.c (struct linux_target_ops): Likewise.
5973 * linux-sh-low.c (struct linux_target_ops): Likewise.
5974 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
5975 * linux-tile-low.c (struct linux_target_ops): Likewise.
5976 * linux-x86-low.c (x86_linux_delete_process): New.
5977 (struct linux_target_ops): Add delete_process callback.
5978 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
5980 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
5982 * linux-aarch64-low.c (the_low_target): Add thread delete
5984 * linux-arm-low.c (arm_delete_thread): New function.
5985 (the_low_target): Add thread delete callback.
5986 * linux-bfin-low.c (the_low_target): Likewise.
5987 * linux-crisv32-low.c (the_low_target): Likewise.
5988 * linux-low.c (delete_lwp): Invoke delete_thread callback if
5990 * linux-low.h (struct linux_target_ops) <delete_thread>: New
5992 * linux-m32r-low.c (the_low_target): Add thread delete callback.
5993 * linux-mips-low.c (mips_linux_delete_thread): New function.
5994 (the_low_target): Add thread delete callback.
5995 * linux-ppc-low.c (the_low_target): Likewise.
5996 * linux-s390-low.c (the_low_target): Likewise.
5997 * linux-sh-low.c (the_low_target): Likewise.
5998 * linux-tic6x-low.c (the_low_target): Likewise.
5999 * linux-tile-low.c (the_low_target): Likewise.
6000 * linux-x86-low.c (the_low_target): Likewise.
6001 * linux-xtensa-low.c (the_low_target): Likewise.
6003 2017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
6005 * win32-low.c: Include "common-inferior.h".
6007 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6009 * inferiors.c (set_inferior_cwd): New function.
6010 * server.c (handle_general_set): Handle QSetWorkingDir packet.
6011 (handle_query): Inform that QSetWorkingDir is supported.
6012 * win32-low.c (create_process): Pass the inferior's cwd to
6015 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6017 * inferiors.c (current_inferior_cwd): New global variable.
6018 (get_inferior_cwd): New function.
6019 * inferiors.h (struct process_info) <cwd>: New field.
6021 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6023 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
6024 (OBS): Add gdb_tilde_expand.o.
6026 2017-10-02 Simon Marchi <simon.marchi@ericsson.com>
6028 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
6029 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
6031 2017-09-29 Pedro Alves <palves@redhat.com>
6033 * ax.c (gdb_parse_agent_expr): Constify.
6034 * ax.h (gdb_parse_agent_expr): Constify.
6035 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
6037 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
6038 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
6039 * remote-utils.h (read_ptid): Constify.
6040 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
6041 (process_point_options, process_serial_event): Constify.
6042 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
6043 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
6044 (cmd_qtbuffer): Constify.
6046 2017-09-29 Pedro Alves <palves@redhat.com>
6048 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
6051 2017-09-29 Pedro Alves <palves@redhat.com>
6053 * linux-low.c (handle_extended_wait): Pass parent thread instead
6054 of process to thread_db_notice_clone.
6055 * linux-low.h (thread_db_notice_clone): Replace parent process
6056 parameter with parent thread parameter.
6057 * thread-db.c (find_one_thread): Add comment.
6058 (thread_db_notice_clone): Replace parent process parameter with
6059 parent thread parameter. Temporarily switch to the parent thread.
6061 2017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
6063 * gdbthread.h: Include "common-gdbthread.h".
6064 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
6065 "if" when validating the ptid.
6066 * remote-utils.c: Include "gdbthread.h".
6067 (prepare_resume_reply): Use "switch_to_thread".
6068 * target.c (done_accessing_memory): Likewise.
6070 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6072 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
6073 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
6074 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
6075 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
6076 s390x-gs-linux64-ipa.o to ipa_obj.
6077 * linux-s390-low.c (HWCAP_S390_GS): New define.
6078 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
6080 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
6081 (s390_arch_setup): Check for guarded-storage support and choose
6083 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
6084 init_registers_s390x_gs_linux64.
6085 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
6087 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
6088 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
6090 2017-09-22 Simon Marchi <simon.marchi@ericsson.com>
6092 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
6094 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6096 * linux-low.h (struct lwp_info): Add new field, thread_handle.
6097 (thread_db_thread_handle): Declare.
6098 * linux-low.c (linux_target_ops): Initialize thread_handle.
6099 * server.c (handle_qxfer_threads_worker): Add support for
6101 * target.h (struct target_ops): Add new function pointer,
6103 (target_thread_handle): Define.
6104 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
6106 (thread_db_thread_handle): New function.
6108 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6110 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
6111 * linux-low.h (thread_db_notice_clone): Declare.
6112 * thread-db.c (thread_db_notice_clone): New function.
6114 2017-09-21 Pedro Alves <palves@redhat.com>
6116 * server.c (gdb_read_memory, handle_status, process_serial_event)
6117 (handle_serial_event, handle_target_event): Adjust to
6118 set_desired_thread prototype change.
6119 * target.c (set_desired_thread): Remove 'use_general' parameter
6121 * target.h (set_desired_thread): Remove 'use_general' parameter.
6123 2017-09-20 Tom Tromey <tom@tromey.com>
6125 * target.c (target_terminal::terminal_state): Define.
6126 (target_terminal::init): Rename from target_terminal_init.
6127 (target_terminal::inferior): Rename from
6128 target_terminal_inferior.
6129 (target_terminal::ours): Rename from target_terminal_ours.
6130 (target_terminal::ours_for_output, target_terminal::info): New.
6132 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6134 * server.c (accumulate_file_name_length): Remove.
6135 (emit_dll_description): Adjust to std::string change.
6136 (handle_qxfer_libraries): Use std::string to hold document.
6138 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6140 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
6141 return type of xml_escape_text.
6142 * server.c (emit_dll_description): Likewise.
6144 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6146 * server.c (captured_main): Accept argument for --selftest.
6147 Update run_tests call.
6148 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
6149 when registering selftests.
6151 2017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
6153 * regcache.c (get_thread_regcache): Update code to use "std::vector"
6154 instead of "VEC" for "target_desc.reg_defs".
6155 (regcache_cpy): Likewise.
6156 (registers_to_string): Likewise.
6157 (registers_from_string): Likewise.
6158 (find_regno): Likewise.
6159 (supply_regblock): Likewise.
6160 (regcache_raw_read_unsigned): Likewise.
6161 * tdesc.c (init_target_desc): Likewise.
6162 (tdesc_create_reg): Likewise.
6163 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
6164 (struct target_desc) <reg_defs>: Convert to "std::vector".
6165 (target_desc): Do not initialize "reg_defs".
6166 (~target_desc): Update code to use "std::vector" instead of "VEC"
6167 for "target_desc.reg_defs".
6168 (operator==): Likewise.
6170 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6172 * inferiors.h (thread_to_gdb_id): Remove.
6173 * inferiors.c (thread_to_gdb_id): Remove.
6174 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
6175 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
6176 lynx_store_registers, lynx_read_memory, lynx_write_memory):
6178 * nto-low.c (nto_fetch_registers, nto_store_registers,
6179 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
6181 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6183 * inferiors.h (gdb_id_to_thread_id): Remove.
6184 * inferiors.c (gdb_id_to_thread_id): Remove.
6185 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
6186 removal. Move pid declaration closer to where it's used.
6188 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6190 * server.c (handle_detach): New function.
6191 (process_serial_event): Move code out, call handle_detach.
6193 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6195 * server.c (require_running): Rename to ...
6196 (require_running_or_return): ... this ...
6197 (require_running_or_break): ... and this.
6198 (handle_query, process_serial_event): Adjust.
6200 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6202 * linux-low.c (linux_set_resume_request): Remove unused
6205 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6207 * server.c (first_thread_of): Remove.
6208 (process_serial_event): Replace usage of first_thread_of with
6209 find_any_thread_of_pid.
6210 * tracepoint.c (same_process_p): Remove.
6211 (gdb_agent_about_to_close): Replace usage of same_process_p with
6212 find_any_thread_of_pid.
6213 * linux-x86-low.c (same_process_callback): Remove.
6214 (x86_arch_setup_process_callback): Replace usage of
6215 same_process_callback with find_any_thread_of_pid.
6216 * thread-db.c (any_thread_of): Remove.
6217 (switch_to_process): Replace usage of any_thread_of with
6218 find_any_thread_of_pid.
6219 * inferiors.c (thread_pid_matches_callback): Remove.
6220 (find_thread_process): Adjust to use find_any_thread_of_pid.
6222 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6224 * regcache.c (get_thread_regcache): Guard calls to "memset"
6227 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6229 * linux-low.c (handle_extended_wait): Use
6230 "allocate_target_description" instead of "XNEW".
6231 * linux-x86-low.c (initialize_low_arch): Likewise.
6233 2017-09-05 Yao Qi <yao.qi@linaro.org>
6235 * configure.srv (srv_i386_regobj): Remove.
6236 (srv_amd64_regobj): Remove.
6237 (srv_regobj): Set it to "" for x86 non-linux targets.
6238 * linux-x86-tdesc.c (i386_linux_read_description):
6239 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
6240 (init_registers_i386): Remove the declaration.
6241 (tdesc_i386): Remove the declaration.
6242 (lynx_i386_arch_setup): Call i386_create_target_description.
6243 * nto-x86-low.c: Likewise.
6244 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
6245 [!__x86_64__]: include arch/i386.h.
6246 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
6248 2017-09-05 Yao Qi <yao.qi@linaro.org>
6250 * configure.srv (srv_amd64_linux_xmlfiles): Remove
6251 i386/amd64-XXX-linux from it.
6253 2017-09-05 Yao Qi <yao.qi@linaro.org>
6255 * configure.srv: Empty srv_amd64_linux_regobj if $development is
6257 (ipa_amd64_linux_regobj): Remove.
6258 (ipa_x32_linux_regobj): Remove.
6260 2017-09-05 Yao Qi <yao.qi@linaro.org>
6262 * Makefile.in (arch-amd64.o): New rule.
6263 * configure.srv: Append arch-amd64.o.
6264 * linux-amd64-ipa.c: Include common/x86-xstate.h.
6265 (get_ipa_tdesc): Call amd64_linux_read_description.
6266 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
6267 and init_registers_amd64_XXX.
6268 * linux-x86-low.c (x86_linux_read_description): Call
6269 amd64_linux_read_description.
6270 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
6271 (initialize_low_arch): Don't call init_registers_x32_XXX and
6272 init_registers_amd64_XXX.
6273 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
6274 and tdesc_amd64_XXX.
6275 [__x86_64__] (amd64_tdesc_test): New function.
6276 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
6277 and init_registers_amd64_XXX.
6278 * linux-x86-tdesc.c: Include arch/amd64.h.
6279 (xcr0_to_tdesc_idx): New function.
6280 (i386_linux_read_description): New function.
6281 (amd64_get_ipa_tdesc_idx): New function.
6282 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
6283 (amd64_get_ipa_tdesc): Declare.
6285 2017-09-05 Yao Qi <yao.qi@linaro.org>
6287 * configure.srv (srv_i386_linux_xmlfiles): Remove
6288 i386/i386-XXX-linux.xml from it.
6290 2017-09-05 Yao Qi <yao.qi@linaro.org>
6292 * configure.srv: Set srv_i386_linux_regobj empty if $development
6294 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
6295 initialize_low_tdesc.
6296 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
6297 with #if initialize_low_tdesc.
6298 * linux-x86-tdesc-selftest.c: New file.
6299 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
6301 2017-09-05 Yao Qi <yao.qi@linaro.org>
6303 * Makefile.in (arch-i386.o): New rule.
6304 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
6305 (x86_64-*-linux*): Likewise.
6306 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
6307 include arch/i386.h.
6308 (i386_linux_read_description): Remove code and call
6309 i386_create_target_description.
6310 * tdesc.c (allocate_target_description): New function.
6311 * tdesc.h (set_tdesc_architecture): Remove declaration.
6312 (set_tdesc_osabi): Likewise.
6314 2017-09-05 Yao Qi <yao.qi@linaro.org>
6316 * linux-x86-tdesc.c: Don't include <inttypes.h>.
6317 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
6318 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
6320 * server.c (get_features_xml): Call tdesc_get_features_xml.
6321 * tdesc.c (set_tdesc_architecture): New function.
6322 (set_tdesc_osabi): New function.
6323 (tdesc_get_features_xml): New function.
6324 (tdesc_create_feature): Add an argument.
6325 * tdesc.h (struct target_desc) <features>: New field.
6326 <arch, osabi>: New field.
6327 (~target_desc): xfree features, arch, and osabi.
6328 (target_desc::oerator==): Don't compare .xmltarget.
6329 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
6330 (set_tdesc_osabi): Likewise.
6331 (tdesc_get_features_xml): Likewise.
6333 2017-09-05 Yao Qi <yao.qi@linaro.org>
6335 * linux-x86-tdesc.c: Include selftest.h.
6336 (i386_tdesc_test): New function.
6337 (initialize_low_tdesc): Call selftests::register_test.
6338 * tdesc.h: Include regdef.h.
6339 (target_desc): Override operator == and !=.
6341 2017-09-05 Yao Qi <yao.qi@linaro.org>
6343 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
6344 (ipa_obj): Likewise.
6345 * linux-i386-ipa.c: Include common/x86-xstate.h
6346 (get_ipa_tdesc): Call i386_linux_read_description.
6347 (initialize_low_tracepoint): Don't call init_registers_XXX
6348 functions, call initialize_low_tdesc instead.
6349 * linux-x86-low.c (x86_linux_read_description): Call
6350 i386_linux_read_description.
6351 (initialize_low_arch): Don't call init_registers_i386_XXX
6352 functions, call initialize_low_tdesc.
6353 * linux-x86-tdesc.c: New file.
6354 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
6355 (i386_get_ipa_tdesc_idx): Declare.
6356 (i386_get_ipa_tdesc): Declare.
6357 (initialize_low_tdesc): Declare.
6359 2017-09-05 Yao Qi <yao.qi@linaro.org>
6361 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
6364 2017-09-05 Yao Qi <yao.qi@linaro.org>
6366 * Makefile.in (IPA_OBJS): Add vec-ipa.o
6367 * regcache.c (get_thread_regcache): Use VEC_length.
6368 (init_register_cache): Likewise.
6369 (regcache_cpy): Likewise.
6370 (registers_to_string): Iterate reg_defs via VEC_iterate.
6371 (find_regno): Likewise.
6372 (find_register_by_number): Use VEC_index.
6373 (register_size): Call find_register_by_number.
6374 (register_data): Call find_register_by_number.
6375 (supply_regblock): Use VEC_length.
6376 (regcache_raw_read_unsigned): Likewise.
6377 * tdesc.c (init_target_desc): Iterate reg_defs via
6379 (default_description): Update initializer.
6380 (copy_target_description): Don't update field num_registers.
6381 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
6382 <num_registers>: Remove.
6384 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
6386 * Makefile.in (.SECONDARY): Define target.
6388 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
6390 * linux-low.c (linux_wait_1): Adjust.
6391 * server.c (queue_stop_reply_callback): Adjust.
6393 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
6395 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
6396 QEnvironmentUnset and QEnvironmentReset packets.
6397 (handle_query): Inform remote that QEnvironmentHexEncoded,
6398 QEnvironmentUnset and QEnvironmentReset are supported.
6400 2017-08-25 Simon Marchi <simon.marchi@ericsson.com>
6402 * inferiors.h (inferior_target_data): Rename to ...
6403 (thread_target_data): ... this.
6404 (inferior_regcache_data): Rename to ...
6405 (thread_regcache_data): ... this.
6406 (set_inferior_regcache_data): Rename to ...
6407 (set_thread_regcache_data): ... this.
6408 * inferiors.c (inferior_target_data): Rename to ...
6409 (thread_target_data): ... this.
6410 (inferior_regcache_data): Rename to ...
6411 (thread_regcache_data): ... this.
6412 (set_inferior_regcache_data): Rename to ...
6413 (set_thread_regcache_data): ... this.
6414 (free_one_thread): Update.
6415 * linux-low.h (get_thread_lwp): Update.
6416 * regcache.c (get_thread_regcache): Update.
6417 (regcache_invalidate_thread): Update.
6418 (free_register_cache_thread): Update.
6419 * win32-i386-low.c (update_debug_registers_callback): Update.
6420 (win32_get_current_dr): Update.
6421 * win32-low.c (thread_rec): Update.
6422 (delete_thread_info): Update.
6423 (continue_one_thread): Update.
6424 (suspend_one_thread): Update.
6426 2017-08-24 Simon Marchi <simon.marchi@ericsson.com>
6428 * inferiors.c (set_inferior_target_data): Remove.
6429 * inferiors.h (set_inferior_target_data): Remove.
6431 2017-08-18 Yao Qi <yao.qi@linaro.org>
6433 * Makefile.in (OBS): Add selftest.o.
6434 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
6435 * configure, config.in: Re-generated.
6436 * server.c: Include common/sefltest.h.
6437 (captured_main): Handle option --selftest.
6439 2017-08-09 Yao Qi <yao.qi@linaro.org>
6441 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
6442 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
6443 i386-avx-mpx.o and i386-mmx.o.
6444 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
6445 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
6446 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
6447 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
6448 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
6449 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
6450 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
6451 i386/amd64-avx-mpx.xml.
6453 2017-08-09 Yao Qi <yao.qi@linaro.org>
6455 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
6456 and x32-avx-avx512.o.
6457 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
6458 i386/x32-avx-avx512.xml.
6460 2017-07-26 Simon Marchi <simon.marchi@ericsson.com>
6462 * tracepoint.h (enum class fast_tpoint_collect_result): New
6464 (fast_tracepoint_collecting): Change return type to
6465 fast_tpoint_collect_result.
6466 * tracepoint.c (fast_tracepoint_collecting): Likewise.
6467 * linux-low.h: Include tracepoint.h.
6468 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
6469 fast_tpoint_collect_result.
6470 * linux-low.c (handle_tracepoints): Adjust.
6471 (linux_fast_tracepoint_collecting): Change return type to
6472 fast_tpoint_collect_result.
6473 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
6474 linux_wait_1, stuck_in_jump_pad_callback,
6475 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
6476 proceed_one_lwp): Adjust to type change.
6478 2017-07-10 Yao Qi <yao.qi@linaro.org>
6480 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
6482 2017-06-29 Yao Qi <yao.qi@linaro.org>
6484 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
6486 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
6488 2017-06-20 Simon Marchi <simon.marchi@ericsson.com>
6490 * Makefile.in (IPA_OBJS): Sort and format one item per line.
6492 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
6494 * linux-low.c (linux_create_inferior): Adjust code to access the
6495 environment information via 'gdb_environ' class.
6496 * lynx-low.c (lynx_create_inferior): Likewise.
6497 * server.c (our_environ): Make it an instance of 'gdb_environ'.
6498 (get_environ): Return a pointer to 'our_environ'.
6499 (captured_main): Initialize 'our_environ'.
6500 * server.h (get_environ): Adjust prototype.
6501 * spu-low.c (spu_create_inferior): Adjust code to access the
6502 environment information via 'gdb_environ' class.
6504 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6506 * linux-low.c (linux_read_memory, linux_write_memory): Remove
6507 usage of "register" keyword.
6509 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6511 * configure: Re-generate.
6513 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6515 * configure: Re-generate.
6517 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6519 * Makefile.in (COMPILE.pre): Add "-x c++".
6521 2017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
6523 * fork-child.c: Conditionally include <signal.h>.
6525 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6527 * server.c (handle_general_set): Handle new packet
6528 "QStartupWithShell".
6529 (handle_query): Add "QStartupWithShell" to the list of supported
6531 (gdbserver_usage): Add help text explaining the
6532 new "--startup-with-shell" and "--no-startup-with-shell" CLI
6534 (captured_main): Recognize and act upon the presence of the new
6537 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6538 Pedro Alves <palves@redhat.com>
6540 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
6541 * configure: Regenerate.
6542 * configure.srv (srv_linux_obj): Add "fork-child.o" and
6544 (i[34567]86-*-lynxos*): Likewise.
6545 (spu*-*-*): Likewise.
6546 * fork-child.c: New file.
6547 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
6549 (linux_ptrace_fun): New function.
6550 (linux_create_inferior): Adjust function prototype to reflect
6551 change on "target.h". Adjust function code to use
6553 (linux_request_interrupt): Delete "signal_pid".
6554 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
6555 (lynx_ptrace_fun): New function.
6556 (lynx_create_inferior): Adjust function prototype to reflect
6557 change on "target.h". Adjust function code to use
6559 * nto-low.c (nto_create_inferior): Adjust function prototype and
6560 code to reflect change on "target.h". Update comments.
6561 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
6562 "common-terminal.h" and "environ.h".
6563 (terminal_fd): Moved to fork-child.c.
6564 (old_foreground_pgrp): Likewise.
6565 (restore_old_foreground_pgrp): Likewise.
6566 (last_status): Make it global.
6567 (last_ptid): Likewise.
6568 (our_environ): New variable.
6569 (startup_with_shell): Likewise.
6570 (program_name): Likewise.
6571 (program_argv): Rename to...
6572 (program_args): ...this.
6573 (wrapper_argv): New variable.
6574 (start_inferior): Delete function.
6575 (get_exec_wrapper): New function.
6576 (get_exec_file): Likewise.
6577 (get_environ): Likewise.
6578 (prefork_hook): Likewise.
6579 (post_fork_inferior): Likewise.
6580 (postfork_hook): Likewise.
6581 (postfork_child_hook): Likewise.
6582 (handle_v_run): Update code to deal with arguments coming from the
6583 remote host. Update calls from "start_inferior" to
6585 (captured_main): Likewise. Initialize environment variable. Call
6587 * server.h (post_fork_inferior): New prototype.
6588 (get_environ): Likewise.
6589 (last_status): Declare.
6590 (last_ptid): Likewise.
6591 (signal_pid): Likewise.
6592 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
6593 (spu_ptrace_fun): New function.
6594 (spu_create_inferior): Adjust function prototype to reflect change
6595 on "target.h". Adjust function code to use "fork_inferior".
6596 * target.c (target_terminal_init): New function.
6597 (target_terminal_inferior): Likewise.
6598 (target_terminal_ours): Likewise.
6599 * target.h: Include <vector>.
6600 (struct target_ops) <create_inferior>: Update prototype.
6601 (create_inferior): Update macro.
6602 * utils.c (gdb_flush_out_err): New function.
6603 * win32-low.c (win32_create_inferior): Adjust function prototype
6604 and code to reflect change on "target.h".
6606 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6608 * inferiors.c (switch_to_thread): New function.
6610 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6612 * Makefile.in (SFILE): Add "common/job-control.c".
6613 (OBS): Add "job-control.o".
6615 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
6617 * Makefile: Remove "@host_makefile_frag@".
6619 2017-05-05 Pedro Alves <palves@redhat.com>
6621 * configure: Regenerate.
6623 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
6625 * configure: Regenerate.
6627 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
6629 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
6630 software_single_step change of return type to
6631 std::vector<CORE_ADDR>.
6632 * linux-low.c (install_software_single_step_breakpoints):
6634 * linux-low.h (install_software_single_step_breakpoints):
6637 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
6639 * remote-utils.c: Include "gdb_termios.h" instead of
6641 * terminal.h: Delete file.
6643 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
6645 * server.c: Include <vector>.
6646 <program_argv, wrapper_argv>: Convert to std::vector.
6647 (start_inferior): Rewrite function to use C++.
6648 (handle_v_run): Likewise. Update code that calculates the argv
6649 based on the vRun packet; use C++.
6650 (captured_main): Likewise.
6652 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
6654 * server.c (handle_v_cont): Initialize thread_resume::thread
6657 2017-04-05 Pedro Alves <palves@redhat.com>
6659 * configure: Regenerate.
6661 2017-04-05 Pedro Alves <palves@redhat.com>
6663 * gdbreplay.c (sync_error): Constify.
6664 * linux-x86-low.c (push_opcode): Constify.
6666 2017-04-05 Pedro Alves <palves@redhat.com>
6668 * win32-low.c (get_child_debug_event)
6669 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
6670 Report TARGET_WAITKIND_SPURIOUS instead.
6672 2017-04-05 Pedro Alves <palves@redhat.com>
6674 * remote-utils.c (remote_prepare, remote_open): Constify.
6675 * remote-utils.h (remote_prepare, remote_open): Constify.
6676 * server.c (captured_main): Constify 'port' handling.
6678 2017-04-04 Simon Marchi <simon.marchi@ericsson.com>
6680 * Makefile.in (clean): Clear .deps.
6682 2017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
6684 * .gitignore: Remove generated files, replace with wildcard.
6685 * (clean): Replace removal of generated files with wildcard.
6686 (version.c): Replace with...
6687 (version-generated.c): ...this.
6688 (xml-builtin.c): Replace with...
6689 (xml-builtin-generated.c): ...this.
6690 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
6691 (%.c: *regformats*): Replace with...
6692 (%-generated.c: *regformats*): ...this.
6694 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
6696 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
6697 (xtensa_fill_gregset): Call collect_register_by_name for
6699 (xtensa_store_gregset): Call supply_register_by_name for
6702 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
6704 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
6705 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
6706 (xtensa_store_gregset): Call supply_register for all registers in
6707 a0_regnum..a0_regnum + C0_NREGS range.
6709 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
6711 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
6712 (ax-ipa.o: ax.c): Remove.
6713 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
6714 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
6715 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
6716 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
6717 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
6719 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
6721 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
6722 (print-utils-ipa.o: ../common/print-utils.c): Remove.
6723 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
6724 (errors-ipa.o: ../common/errors.c): Remove.
6725 (format-ipa.o: ../common/format.c): Remove.
6726 (common-utils-ipa.o: ../common/common-utils.c): Remove.
6728 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
6730 * Makefile.in (%-ipa.o: %.c): New rule.
6731 (tracepoint-ipa.o: tracepoint.c): Remove.
6732 (utils-ipa.o: utils.c): Remove.
6733 (remote-utils-ipa.o: remote-utils.c): Remove.
6734 (regcache-ipa.o: regcache.c): Remove.
6735 (i386-linux-ipa.o: i386-linux.c): Remove.
6736 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
6737 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
6738 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
6739 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
6740 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
6741 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
6742 (amd64-linux-ipa.o: amd64-linux.c): Remove.
6743 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
6744 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
6745 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
6746 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
6747 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
6748 (aarch64-ipa.o: aarch64.c): Remove.
6749 (s390-linux32-ipa.o: s390-linux32.c): Remove.
6750 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
6751 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
6752 (s390-linux64-ipa.o: s390-linux64.c): Remove.
6753 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
6754 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
6755 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
6756 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
6757 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
6758 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
6759 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
6760 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
6761 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
6762 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
6763 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
6764 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
6765 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
6766 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
6767 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
6768 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
6769 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
6770 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
6771 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
6772 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
6773 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
6774 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
6775 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
6776 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
6777 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
6778 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
6779 (tdesc-ipa.o: tdesc.c): Remove.
6780 (x32-linux-ipa.o: x32-linux.c): Remove.
6781 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
6782 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
6784 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
6786 * Makefile.in (%.o: ../arch/%.c): New rule.
6787 (arm.o: ../arch/arm.c): Remove.
6788 (arm-linux.o: ../arch/arm-linux.c): Remove.
6789 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
6790 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
6792 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
6794 * Makefile.in (%.o: ../nat/%.c): New rule.
6795 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
6796 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
6797 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
6798 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
6799 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
6800 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
6801 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
6802 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
6803 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
6804 (linux-personality.o: ../nat/linux-personality.c): Remove.
6805 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
6806 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
6807 (x86-linux.o: ../nat/x86-linux.c): Remove.
6808 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
6809 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
6811 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
6813 * Makefile.in (%.o: ../common/%.c): New rule.
6814 (signals.o: ../common/signals.c): Remove.
6815 (print-utils.o: ../common/print-utils.c): Remove.
6816 (rsp-low.o: ../common/rsp-low.c): Remove.
6817 (common-utils.o: ../common/common-utils.c): Remove.
6818 (posix-strerror.o: ../common/posix-strerror.c): Remove.
6819 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
6820 (vec.o: ../common/vec.c): Remove.
6821 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
6822 (xml-utils.o: ../common/xml-utils.c): Remove.
6823 (ptid.o: ../common/ptid.c): Remove.
6824 (buffer.o: ../common/buffer.c): Remove.
6825 (format.o: ../common/format.c): Remove.
6826 (filestuff.o: ../common/filestuff.c): Remove.
6827 (agent.o: ../common/agent.c): Remove.
6828 (errors.o: ../common/errors.c): Remove.
6829 (environ.o: ../common/environ.c): Remove.
6830 (common-debug.o: ../common/common-debug.c): Remove.
6831 (cleanups.o: ../common/cleanups.c): Remove.
6832 (common-exceptions.o: ../common/common-exceptions.c): Remove.
6833 (fileio.o: ../common/fileio.c): Remove.
6834 (common-regcache.o: ../common/common-regcache.c): Remove.
6835 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
6836 (new-op.o: ../common/new-op.c): Remove.
6837 (btrace-common.o: ../common/btrace-common.c): Remove.
6839 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
6841 * Makefile.in (%.o: ../target/%.c): New rule.
6842 (waitstatus.o: ../target/waitstatus.c): Remove.
6844 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
6847 (%.c: ../regformats/%.dat,
6848 (%.c: ../regformats/arm/%.dat,
6849 (%.c: ../regformats/i386/%.dat,
6850 (%.c: ../regformats/rs6000/%.dat): New rules.
6851 (aarch64.c): Remove.
6852 (reg-arm.c): Remove.
6853 (arm-with-iwmmxt.c): Remove.
6854 (arm-with-vfpv2.c): Remove.
6855 (arm-with-vfpv3.c): Remove.
6856 (arm-with-neon.c): Remove.
6857 (reg-bfin.c): Remove.
6858 (reg-cris.c): Remove.
6859 (reg-crisv32.c): Remove.
6861 (i386-linux.c): Remove.
6862 (i386-avx.c): Remove.
6863 (i386-avx-linux.c): Remove.
6864 (i386-avx-avx512.c): Remove.
6865 (i386-avx-avx512-linux.c): Remove.
6866 (i386-mpx.c): Remove.
6867 (i386-mpx-linux.c): Remove.
6868 (i386-avx-mpx-avx512-pku.c): Remove.
6869 (i386-avx-mpx-avx512-pku-linux.c): Remove.
6870 (i386-avx-mpx.c): Remove.
6871 (i386-avx-mpx-linux.c): Remove.
6872 (i386-mmx.c): Remove.
6873 (i386-mmx-linux.c): Remove.
6874 (reg-ia64.c): Remove.
6875 (reg-m32r.c): Remove.
6876 (reg-m68k.c): Remove.
6878 (mips-linux.c): Remove.
6879 (mips-dsp-linux.c): Remove.
6880 (mips64-linux.c): Remove.
6881 (mips64-dsp-linux.c): Remove.
6882 (nios2-linux.c): Remove.
6883 (powerpc-32.c): Remove.
6884 (powerpc-32l.c): Remove.
6885 (powerpc-altivec32l.c): Remove.
6886 (powerpc-cell32l.c): Remove.
6887 (powerpc-vsx32l.c): Remove.
6888 (powerpc-isa205-32l.c): Remove.
6889 (powerpc-isa205-altivec32l.c): Remove.
6890 (powerpc-isa205-vsx32l.c): Remove.
6891 (powerpc-e500l.c): Remove.
6892 (powerpc-64l.c): Remove.
6893 (powerpc-altivec64l.c): Remove.
6894 (powerpc-cell64l.c): Remove.
6895 (powerpc-vsx64l.c): Remove.
6896 (powerpc-isa205-64l.c): Remove.
6897 (powerpc-isa205-altivec64l.c): Remove.
6898 (powerpc-isa205-vsx64l.c): Remove.
6899 (s390-linux32.c): Remove.
6900 (s390-linux32v1.c): Remove.
6901 (s390-linux32v2.c): Remove.
6902 (s390-linux64.c): Remove.
6903 (s390-linux64v1.c): Remove.
6904 (s390-linux64v2.c): Remove.
6905 (s390-te-linux64.c): Remove.
6906 (s390-vx-linux64.c): Remove.
6907 (s390-tevx-linux64.c): Remove.
6908 (s390x-linux64.c): Remove.
6909 (s390x-linux64v1.c): Remove.
6910 (s390x-linux64v2.c): Remove.
6911 (s390x-te-linux64.c): Remove.
6912 (s390x-vx-linux64.c): Remove.
6913 (s390x-tevx-linux64.c): Remove.
6914 (tic6x-c64xp-linux.c): Remove.
6915 (tic6x-c64x-linux.c): Remove.
6916 (tic6x-c62x-linux.c): Remove.
6918 (reg-sparc64.c): Remove.
6919 (reg-spu.c): Remove.
6921 (amd64-linux.c): Remove.
6922 (amd64-avx.c): Remove.
6923 (amd64-avx-linux.c): Remove.
6924 (amd64-avx-avx512.c): Remove.
6925 (amd64-avx-avx512-linux.c): Remove.
6926 (amd64-mpx.c): Remove.
6927 (amd64-mpx-linux.c): Remove.
6928 (amd64-avx-mpx-avx512-pku.c): Remove.
6929 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
6930 (amd64-avx-mpx.c): Remove.
6931 (amd64-avx-mpx-linux.c): Remove.
6933 (x32-linux.c): Remove.
6934 (x32-avx.c): Remove.
6935 (x32-avx-linux.c): Remove.
6936 (x32-avx-avx512.c): Remove.
6937 (x32-avx-avx512-linux.c): Remove.
6938 (reg-xtensa.c): Remove.
6939 (reg-tilegx.c): Remove.
6940 (reg-tilegx32.c): Remove.
6942 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
6944 * Makefile.in (SFILES): Add "common/environ.c".
6945 (OBJS): Add "common/environ.h".
6947 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
6949 * configure.ac: Check if the fs_base and gs_base members of
6950 `struct user_regs_struct' exist.
6951 * config.in: Regenerated.
6952 * configure: Likewise.
6954 2017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
6956 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
6958 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
6959 (get_next_pcs_syscall_next_pc): Likewise.
6961 2016-12-23 Luis Machado <lgustavo@codesourcery.com>
6963 * win32-i386-low.c: Fix incorrect reference to a couple source files.
6964 * nto-x86-low.c: Likewise.
6966 2016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
6968 * Makefile.in: Include disable-implicit-rules.mk.
6970 2016-11-23 Pedro Alves <palves@redhat.com>
6972 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
6973 (debug_vprintf): Use std::chrono::steady_clock instead of
6974 gettimeofday. Use '.' instead of ':'.
6975 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
6976 (get_timestamp): Use std::chrono::steady_clock instead of
6979 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
6981 * Makefile.in: Fix whitespace formatting.
6983 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
6985 * Makefile.in (SFILES, OBS): Flatten list and order
6988 2016-11-23 Pedro Alves <palves@redhat.com>
6990 * event-loop.c (handle_file_event): Use warning.
6991 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
6992 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
6995 2016-11-23 Pedro Alves <palves@redhat.com>
6997 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
6999 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
7000 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
7001 debug_printf and debug_flush for debug output.
7002 * server.c (handle_general_set): Likewise.
7003 * thread-db.c (try_thread_db_load): Use debug_printf for debug
7006 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7008 * Makefile.in (.c.o): Replace rule with ...
7009 (%.o: %.c): ... this one.
7011 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7013 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
7014 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
7016 * configure.ac: Remove checks for the make program.
7017 * configure: Re-generate.
7019 2016-10-28 Pedro Alves <palves@redhat.com>
7021 * Makefile.in (CXX_DIALECT): Get from configure.
7022 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
7023 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
7024 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
7025 * config.in: Regenerate.
7026 * configure: Regenerate.
7028 2016-10-27 Yao Qi <yao.qi@linaro.org>
7030 * linux-low.c (linux_supports_range_stepping): Return true if
7031 can_software_single_step return true.
7033 2016-10-27 Yao Qi <yao.qi@linaro.org>
7035 * inferiors.c (find_inferior_in_random): New function.
7036 * inferiors.h (find_inferior_in_random): Declare.
7037 * linux-low.c (linux_wait_for_event_filtered): Call
7038 find_inferior_in_random instead of find_inferior.
7040 2016-10-27 Yao Qi <yao.qi@linaro.org>
7042 * linux-low.c (linux_wait_1): If single-step breakpoints are
7043 inserted, remove them.
7045 2016-10-26 Pedro Alves <palves@redhat.com>
7047 * linux-low.c (handle_extended_wait): Link parent/child fork
7049 (linux_wait_1): Unlink them.
7050 (linux_set_resume_request): Ignore resume requests for
7051 already-resumed and unhandled fork child threads.
7052 * linux-low.h (struct lwp_info) <fork_relative>: New field.
7053 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
7055 (handle_v_requests) <vCont>: Don't call require_running.
7056 * server.h (in_queued_stop_replies): New declaration.
7058 2016-10-24 Yao Qi <yao.qi@linaro.org>
7061 * linux-aarch64-low.c (append_insns): Cast the return value to
7064 2016-10-10 Yao Qi <yao.qi@linaro.org>
7066 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
7068 2016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
7070 * target.c (target_supports_multi_process): New function, moved
7072 * target.h (target_supports_multi_process): ... here. Remove
7075 2016-10-05 Tom Tromey <tom@tromey.com>
7078 * tracepoint.c (handle_tracepoint_bkpts): Check
7079 ipa_error_tracepoint, not ipa_stopping_tracepoint.
7081 2016-10-05 Yao Qi <yao.qi@linaro.org>
7083 * configure.srv: Update the path of arm-*.xml files.
7085 2016-10-05 Terry Guo <terry.guo@arm.com>
7086 Yao Qi <yao.qi@linaro.org>
7088 * Makefile.in: Adjust the path of rules.
7089 * configure.srv: Update the path of xml files.
7090 * regformats/arm-with-iwmmxt.dat: Regenerated.
7091 * regformats/arm-with-neon.dat: Likewise.
7092 * regformats/arm-with-vfpv2.dat: Likewise.
7093 * regformats/arm-with-vfpv3.dat Likewise.
7095 2016-09-30 Yao Qi <yao.qi@linaro.org>
7098 * target.c (target_stop_and_wait): Don't call
7099 target_continue_no_signal, use resume_stop instead.
7101 2016-09-26 Yao Qi <yao.qi@linaro.org>
7103 * linux-low.c (linux_wait_1): Call debug_exit.
7105 2016-09-23 Pedro Alves <palves@redhat.com>
7107 * Makefile.in (SFILES): Add common/new-op.c.
7108 (OBS): Add common/new-op.o.
7109 (new-op.o): New rule.
7111 2016-09-21 Simon Marchi <simon.marchi@ericsson.com>
7113 * .gitinore: Ignore more files.
7115 2016-09-21 Yao Qi <yao.qi@linaro.org>
7117 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
7120 2016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
7122 * server.c (start_inferior): Call target_mourn_inferior instead of
7123 mourn_inferior; pass ptid_t argument to it.
7125 (handle_target_event): Likewise.
7126 * target.c (target_mourn_inferior): New function.
7127 * target.h (mourn_inferior): Delete macro.
7129 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
7131 * linux-low.c (lwp_is_stepping): New function.
7133 2016-09-06 Carl Love <cel@us.ibm.com>
7135 * server.c (start_inferior): Fixed comment, requested comment change
7136 didn't get updated correctly. Removed reference to ptrace () call as
7137 it is only true on Linux systems.
7139 2016-09-06 Carl Love <cel@us.ibm.com>
7141 * server.c (start_inferior): Do not call
7142 function target_post_create_inferior () if the
7143 inferior process has already exited.
7145 2016-09-05 Pedro Alves <palves@redhat.com>
7147 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
7148 (COMPILE.pre, CC_LD): Use CXX directly.
7149 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
7150 * acinclude.m4: Don't include build-with-cxx.m4.
7151 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
7152 * configure: Regenerate.
7154 2016-09-02 Akash Trehan <akash.trehan123@gmail.com>
7157 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
7158 call writing data to own_buf.
7160 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7162 * target.c (mywait): Call target_wait instead of
7164 (target_wait): New function.
7166 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7168 * server.c (start_inferior): New variable 'ptid'. Replace calls
7169 to the_target->resume by target_continue{,_no_signal}, depending
7171 * target.c (target_stop_and_wait): Call target_continue_no_signal
7172 instead of the_target->resume.
7173 (target_continue): New function.
7175 2016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
7177 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
7179 2016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7182 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
7184 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
7185 * linux-arm-low.c (ps_get_thread_area): Likewise.
7186 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
7187 * linux-m68k-low.c (ps_get_thread_area): Likewise.
7188 * linux-mips-low.c (ps_get_thread_area): Likewise.
7189 * linux-nios2-low.c (ps_get_thread_area): Likewise.
7190 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
7191 * linux-x86-low.c (ps_get_thread_area): Likewise.
7192 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
7194 2016-08-19 Pedro Alves <palves@redhat.com>
7196 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
7198 2016-08-19 Pedro Alves <palves@redhat.com>
7200 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
7201 comment. Use memcpy instead of casting through unsigned long.
7203 2016-08-19 Pedro Alves <palves@redhat.com>
7205 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
7206 allocating around 0x80000000.
7208 2016-08-19 Pedro Alves <palves@redhat.com>
7211 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
7212 (x32-avx512-linux-ipa.o): New rules.
7213 * configure.ac (x86_64-*-linux*): New x32 check.
7214 * configure.srv (ipa_x32_linux_regobj): New.
7215 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
7216 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
7218 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
7220 * configure: Regenerate.
7222 2016-08-09 Pedro Alves <palves@redhat.com>
7225 * Makefile.in (OBS): Add signals-state-save-restore.o.
7226 (signals-state-save-restore.o): New rule.
7227 * config.in: Regenerate.
7228 * configure: Regenerate.
7229 * linux-low.c: Include "signals-state-save-restore.h".
7230 (linux_create_inferior): Call
7231 restore_original_signals_state.
7232 * server.c: Include "dispositions-save-restore.h".
7233 (captured_main): Call save_original_signals_state.
7235 2016-08-05 Pedro Alves <palves@redhat.com>
7237 * configure: Regenerate.
7239 2016-08-04 Yao Qi <yao.qi@linaro.org>
7241 * linux-low.c (regsets_fetch_inferior_registers): Check
7242 errno is ESRCH or not.
7244 2016-08-02 Yao Qi <yao.qi@linaro.org>
7246 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
7247 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
7248 (thread_db_load_search): Update.
7249 (try_thread_db_load_1): Don't look for td_ta_event_addr,
7250 td_ta_set_event and td_ta_event_getmsg.
7252 2016-07-26 Pedro Alves <palves@redhat.com>
7255 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
7256 of unsigned long for 64-bit registers and use uint32_t instead of
7257 unsigned int for 32-bit registers.
7259 2016-07-26 Pedro Alves <palves@redhat.com>
7261 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
7264 2016-07-21 Tom Tromey <tom@tromey.com>
7266 * configure: Rebuild.
7268 2016-07-21 Yao Qi <yao.qi@linaro.org>
7270 * mem-break.c (find_gdb_breakpoint): Cast bp to
7271 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
7273 2016-07-21 Yao Qi <yao.qi@linaro.org>
7275 * server.c (handle_v_requests): Support s and S actions
7276 if target_supports_software_single_step return true.
7278 2016-07-21 Yao Qi <yao.qi@linaro.org>
7280 * linux-low.c (resume_stopped_resumed_lwps): If resume request
7281 is resume_step, call maybe_hw_step.
7282 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
7284 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
7286 (proceed_one_lwp): If resume request is resume_step, install
7287 reinsert breakpoints and call maybe_hw_step.
7289 2016-07-21 Yao Qi <yao.qi@linaro.org>
7291 * linux-low.c (proceed_one_lwp): Declare.
7292 (linux_resume_one_thread): Remove local variable 'step'.
7293 Lift code enqueue signal. Call proceed_one_lwp instead of
7294 linux_resume_one_lwp.
7296 2016-07-21 Yao Qi <yao.qi@linaro.org>
7298 * linux-low.c (linux_resume_one_thread): Call
7299 enqueue_pending_signal.
7301 2016-07-21 Yao Qi <yao.qi@linaro.org>
7303 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
7304 * inferiors.c (do_restore_current_thread_cleanup): New function.
7305 (make_cleanup_restore_current_thread): Likewise.
7306 * linux-low.c (install_software_single_step_breakpoints): Call
7307 make_cleanup_restore_current_thread. Switch current_thread to
7310 2016-07-21 Yao Qi <yao.qi@linaro.org>
7312 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
7313 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
7314 (clone_one_breakpoint): Likewise.
7315 (delete_reinsert_breakpoints): Change parameter to thread.
7317 (has_reinsert_breakpoints): Likewise.
7318 (uninsert_reinsert_breakpoints): Likewise.
7319 (reinsert_reinsert_breakpoints): Likewise.
7320 * mem-break.h (set_reinsert_breakpoint): Update declaration.
7321 (delete_reinsert_breakpoints): Likewise.
7322 (reinsert_reinsert_breakpoints): Likewise.
7323 (uninsert_reinsert_breakpoints): Likewise.
7324 (has_reinsert_breakpoints): Likewise.
7326 2016-07-21 Yao Qi <yao.qi@linaro.org>
7328 * inferiors.c (get_thread_process): Make parameter const.
7329 * inferiors.h (get_thread_process): Update declaration.
7330 * mem-break.c (clone_all_breakpoints): Remove all parameters.
7331 Add new parameters child_thread and parent_thread. Callers
7333 * mem-break.h (clone_all_breakpoints): Update declaration.
7335 2016-07-21 Yao Qi <yao.qi@linaro.org>
7337 * mem-break.c (struct breakpoint) <cond_list>: Remove.
7338 <command_list, handler>: Remove.
7339 (struct gdb_breakpoint): New.
7340 (struct other_breakpoint): New.
7341 (struct reinsert_breakpoint): New.
7342 (is_gdb_breakpoint): New function.
7343 (any_persistent_commands): Update command_list if
7344 is_gdb_breakpoint returns true.
7345 (set_breakpoint): Create breakpoints according to their types.
7346 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
7347 (set_gdb_breakpoint_1): Likewise.
7348 (set_gdb_breakpoint): Likewise.
7349 (clear_breakpoint_conditions): Change parameter type to
7350 'struct gdb_breakpoint *'.
7351 (clear_breakpoint_commands): Likewise.
7352 (clear_breakpoint_conditions_and_commands): Likewise.
7353 (add_condition_to_breakpoint): Likewise.
7354 (add_breakpoint_condition): Likewise.
7355 (add_commands_to_breakpoint): Likewise.
7356 (check_breakpoints): Check other_breakpoint.
7357 (clone_one_breakpoint): Clone breakpopint according to its type.
7358 * mem-break.h (struct gdb_breakpoint): Declare.
7359 (set_gdb_breakpoint): Update declaration.
7360 (clear_breakpoint_conditions_and_commands): Likewise.
7361 (add_breakpoint_condition): Likewise.
7362 (add_breakpoint_commands): Likewise.
7363 * server.c (process_point_options): Change parameter type to
7364 'struct gdb_breakpoint *'.
7366 2016-07-21 Yao Qi <yao.qi@linaro.org>
7368 * mem-break.c (set_breakpoint_at): Rename it to ...
7369 (set_breakpoint_type_at): ... it.
7370 (set_breakpoint_at): Call set_breakpoint_type_at.
7371 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
7372 * mem-break.h (set_breakpoint_at): Update comments.
7374 2016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
7376 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
7378 (nios2_store_gregset): Likewise.
7380 2016-07-01 Pedro Alves <palves@redhat.com>
7381 Antoine Tremblay <antoine.tremblay@ericsson.com>
7383 * linux-low.c: Change interface to take the target lwp_info
7384 pointer directly and return void. Handle detaching from a zombie
7386 (linux_detach_lwp_callback): New function.
7387 (linux_detach): Detach from the leader thread after detaching from
7390 2016-06-28 Yao Qi <yao.qi@linaro.org>
7392 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
7393 for variable new_offset.
7394 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
7395 (aarch64_ftrace_insn_reloc_cb): Likewise.
7396 (aarch64_ftrace_insn_reloc_tb): Likewise.
7397 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
7398 PRIx64 instead of PRIx32.
7400 2016-06-28 Yao Qi <yao.qi@linaro.org>
7402 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
7403 (the_low_target): Install arm_get_syscall_trapinfo.
7405 2016-06-28 Yao Qi <yao.qi@linaro.org>
7407 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
7409 (the_low_target): Install aarch64_get_syscall_trapinfo.
7411 2016-06-28 Yao Qi <yao.qi@linaro.org>
7413 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
7415 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
7416 Remove parameter sysno.
7417 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
7420 2016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7422 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
7423 (s390_emit_ne_goto): Likewise.
7424 (s390_emit_lt_goto): Likewise.
7425 (s390_emit_le_goto): Likewise.
7426 (s390_emit_gt_goto): Likewise.
7427 (s390_emit_ge_goto): Likewise.
7428 (s390x_emit_eq_goto): Likewise.
7429 (s390x_emit_ne_goto): Likewise.
7430 (s390x_emit_lt_goto): Likewise.
7431 (s390x_emit_le_goto): Likewise.
7432 (s390x_emit_gt_goto): Likewise.
7433 (s390x_emit_ge_goto): Likewise.
7434 (s390_emit_ops_impl): Mark variable static.
7435 (s390x_emit_ops): Likewise.
7437 2016-06-17 Yao Qi <yao.qi@linaro.org>
7439 * linux-low.c (handle_extended_wait): Call
7440 uninsert_reinsert_breakpoints for the parent process. Remove
7441 reinsert breakpoints from the child process. Reinsert them to
7442 the parent process when vfork is done.
7443 * mem-break.c (uninsert_reinsert_breakpoints): New function.
7444 (reinsert_reinsert_breakpoints): New function.
7445 * mem-break.h (uninsert_reinsert_breakpoints): Declare
7446 (reinsert_reinsert_breakpoints): Declare.
7448 2016-06-17 Yao Qi <yao.qi@linaro.org>
7450 * linux-low.c (handle_extended_wait): If the parent is doing
7451 step-over, remove the reinsert breakpoints from the forked child.
7453 2016-06-17 Yao Qi <yao.qi@linaro.org>
7455 * linux-low.c (unsuspend_all_lwps): Declare.
7456 (linux_low_filter_event): If thread exited, call finish_step_over.
7457 If step-over is finished, unsuspend other threads.
7459 2016-06-17 Yao Qi <yao.qi@linaro.org>
7461 * linux-low.c (linux_resume_one_lwp_throw): Assert
7462 has_reinsert_breakpoints returns false.
7463 * mem-break.c (delete_disabled_breakpoints): Assert
7464 bp type isn't reinsert_breakpoint.
7466 2016-06-17 Yao Qi <yao.qi@linaro.org>
7468 * linux-low.c (maybe_hw_step): New function.
7469 (linux_resume_one_lwp_throw): Call maybe_hw_step.
7470 (finish_step_over): Switch current_thread to lwp temporarily,
7471 and assert has_reinsert_breakpoints returns true.
7472 (proceed_one_lwp): Call maybe_hw_step.
7473 * mem-break.c (has_reinsert_breakpoints): New function.
7474 * mem-break.h (has_reinsert_breakpoints): Declare.
7476 2016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
7478 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
7480 2016-05-17 Yao Qi <yao.qi@linaro.org>
7482 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
7483 instead of find_inferior.
7485 2016-05-05 Yao Qi <yao.qi@linaro.org>
7487 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
7488 Initialize res to zero.
7490 2016-05-05 Yao Qi <yao.qi@linaro.org>
7492 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
7495 2016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7497 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
7498 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
7499 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
7501 2016-04-28 Par Olsson <par.olsson@windriver.com>
7502 Simon Marchi <simon.marchi@ericsson.com>
7504 * tracepoint.c (write_inferior_int8): New function.
7505 (cmd_qtenable_disable): Write enable flag using
7506 write_inferior_int8.
7508 2016-04-25 Yao Qi <yao.qi@linaro.org>
7510 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
7511 (need_step_over_p): Return zero if the LWP has pending signals
7512 can be delivered on software single step target.
7514 2016-04-25 Yao Qi <yao.qi@linaro.org>
7516 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
7517 return instead of error.
7519 2016-04-22 Yao Qi <yao.qi@linaro.org>
7521 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
7524 2016-04-22 Yao Qi <yao.qi@linaro.org>
7526 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
7527 signal when stepping over breakpoint with software single
7530 2016-04-21 Pedro Alves <palves@redhat.com>
7532 * linux-s390-low.c (s390_collect_ptrace_register)
7533 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
7535 (s390_check_regset): Use void * instead of gdb_byte *.
7537 2016-04-20 Pedro Alves <palves@redhat.com>
7539 * configure: Renegerate.
7541 2016-04-20 Yao Qi <yao.qi@linaro.org>
7543 * linux-aarch32-low.c: Include "arch/arm-linux.h".
7544 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
7546 (arm_store_gregset): Likewise.
7548 2016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
7550 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
7551 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
7552 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
7553 (amd64-avx-mpx-linux.c): New rules.
7554 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
7555 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
7556 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
7557 (srv_amd64_regobj): Add amd64-avx-mpx.o.
7558 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
7559 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
7560 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
7561 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
7562 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
7563 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
7564 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
7565 * linux-x86-low.c (x86_linux_read_description): Add case for
7566 X86_XSTATE_AVX_MPX_MASK.
7567 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
7568 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
7569 init_registers_i386_avx_mpx_linux.
7570 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
7571 (initialize_low_tracepoint): Call
7572 init_registers_i386_avx_mpx_linux.
7573 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
7574 (initialize_low_tracepoint): Call
7575 init_registers_amd64_avx_mpx_linux.
7576 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
7577 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
7578 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
7581 2016-04-18 Pedro Alves <palves@redhat.com>
7583 * configure: Regenerate.
7585 2016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
7587 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
7588 (aarch64_emit_sub): Likewise.
7590 2016-04-12 Pedro Alves <palves@redhat.com>
7592 * utils.c (prepare_to_throw_exception): Delete.
7594 2016-04-05 Simon Marchi <simon.marchi@ericsson.com>
7596 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
7598 2016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
7600 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
7602 2016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
7604 * linux-aarch64-ipa.c: Add <elf.h> include.
7605 * linux-ppc-ipa.c: Add <elf.h> include.
7606 * linux-s390-ipa.c: Add <elf.h> include.
7608 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
7610 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
7611 (get_raw_reg_ptr): Likewise.
7612 (get_trace_state_variable_value_ptr): Likewise.
7613 (set_trace_state_variable_value_ptr): Likewise.
7614 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
7617 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
7618 Marcin Kościelnicki <koriakin@0x04.net>
7621 * linux-ppc-low.c (emit_insns): New function.
7622 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
7623 (ppc_emit_prologue): New function.
7624 (ppc_emit_epilogue): New function.
7625 (ppc_emit_add): New function.
7626 (ppc_emit_sub): New function.
7627 (ppc_emit_mul): New function.
7628 (ppc_emit_lsh): New function.
7629 (ppc_emit_rsh_signed): New function.
7630 (ppc_emit_rsh_unsigned): New function.
7631 (ppc_emit_ext): New function.
7632 (ppc_emit_zero_ext): New function.
7633 (ppc_emit_log_not): New function.
7634 (ppc_emit_bit_and): New function.
7635 (ppc_emit_bit_or): New function.
7636 (ppc_emit_bit_xor): New function.
7637 (ppc_emit_bit_not): New function.
7638 (ppc_emit_equal): New function.
7639 (ppc_emit_less_signed): New function.
7640 (ppc_emit_less_unsigned): New function.
7641 (ppc_emit_ref): New function.
7642 (ppc_emit_const): New function.
7643 (ppc_emit_reg): New function.
7644 (ppc_emit_pop): New function.
7645 (ppc_emit_stack_flush): New function.
7646 (ppc_emit_swap): New function.
7647 (ppc_emit_stack_adjust): New function.
7648 (ppc_emit_call): New function.
7649 (ppc_emit_int_call_1): New function.
7650 (ppc_emit_void_call_2): New function.
7651 (ppc_emit_if_goto): New function.
7652 (ppc_emit_goto): New function.
7653 (ppc_emit_eq_goto): New function.
7654 (ppc_emit_ne_goto): New function.
7655 (ppc_emit_lt_goto): New function.
7656 (ppc_emit_le_goto): New function.
7657 (ppc_emit_gt_goto): New function.
7658 (ppc_emit_ge_goto): New function.
7659 (ppc_write_goto_address): New function.
7660 (ppc_emit_ops_impl): New static variable.
7661 (ppc64v1_emit_prologue): New function.
7662 (ppc64v2_emit_prologue): New function.
7663 (ppc64_emit_epilogue): New function.
7664 (ppc64_emit_add): New function.
7665 (ppc64_emit_sub): New function.
7666 (ppc64_emit_mul): New function.
7667 (ppc64_emit_lsh): New function.
7668 (ppc64_emit_rsh_signed): New function.
7669 (ppc64_emit_rsh_unsigned): New function.
7670 (ppc64_emit_ext): New function.
7671 (ppc64_emit_zero_ext): New function.
7672 (ppc64_emit_log_not): New function.
7673 (ppc64_emit_bit_and): New function.
7674 (ppc64_emit_bit_or): New function.
7675 (ppc64_emit_bit_xor): New function.
7676 (ppc64_emit_bit_not): New function.
7677 (ppc64_emit_equal): New function.
7678 (ppc64_emit_less_signed): New function.
7679 (ppc64_emit_less_unsigned): New function.
7680 (ppc64_emit_ref): New function.
7681 (ppc64_emit_const): New function.
7682 (ppc64v1_emit_reg): New function.
7683 (ppc64v2_emit_reg): New function.
7684 (ppc64_emit_pop): New function.
7685 (ppc64_emit_stack_flush): New function.
7686 (ppc64_emit_swap): New function.
7687 (ppc64v1_emit_call): New function.
7688 (ppc64v2_emit_call): New function.
7689 (ppc64v1_emit_int_call_1): New function.
7690 (ppc64v2_emit_int_call_1): New function.
7691 (ppc64v1_emit_void_call_2): New function.
7692 (ppc64v2_emit_void_call_2): New function.
7693 (ppc64_emit_if_goto): New function.
7694 (ppc64_emit_eq_goto): New function.
7695 (ppc64_emit_ne_goto): New function.
7696 (ppc64_emit_lt_goto): New function.
7697 (ppc64_emit_le_goto): New function.
7698 (ppc64_emit_gt_goto): New function.
7699 (ppc64_emit_ge_goto): New function.
7700 (ppc64v1_emit_ops_impl): New static variable.
7701 (ppc64v2_emit_ops_impl): New static variable.
7702 (ppc_emit_ops): New function.
7703 (linux_low_target): Wire in ppc_emit_ops.
7705 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
7706 Marcin Kościelnicki <koriakin@0x04.net>
7709 * Makefile.in: Add powerpc-*-ipa.o
7710 * configure.srv: Add ipa_obj for powerpc*-linux.
7711 * linux-ppc-ipa.c: New file.
7712 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
7714 (PPC_FIELD): New macro.
7715 (PPC_SEXT): New macro.
7716 (PPC_OP6): New macro.
7717 (PPC_BO): New macro.
7718 (PPC_LI): New macro.
7719 (PPC_BD): New macro.
7720 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
7721 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
7722 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
7723 (ppc_get_thread_area): New function.
7724 (is_elfv2_inferior): New function.
7725 (gen_ds_form): New function.
7726 (GEN_STD): New macro.
7727 (GEN_STDU): New macro.
7728 (GEN_LD): New macro.
7729 (GEN_LDU): New macro.
7730 (gen_d_form): New function.
7731 (GEN_ADDI): New macro.
7732 (GEN_ADDIS): New macro.
7733 (GEN_LI): New macro.
7734 (GEN_LIS): New macro.
7735 (GEN_ORI): New macro.
7736 (GEN_ORIS): New macro.
7737 (GEN_LWZ): New macro.
7738 (GEN_STW): New macro.
7739 (GEN_STWU): New macro.
7740 (gen_xfx_form): New function.
7741 (GEN_MFSPR): New macro.
7742 (GEN_MTSPR): New macro.
7743 (GEN_MFCR): New macro.
7744 (GEN_MTCR): New macro.
7745 (GEN_SYNC): New macro.
7746 (GEN_LWSYNC): New macro.
7747 (gen_x_form): New function.
7748 (GEN_OR): New macro.
7749 (GEN_MR): New macro.
7750 (GEN_LWARX): New macro.
7751 (GEN_STWCX): New macro.
7752 (GEN_CMPW): New macro.
7753 (gen_md_form): New function.
7754 (GEN_RLDICL): New macro.
7755 (GEN_RLDICR): New macro.
7756 (gen_i_form): New function.
7758 (GEN_BL): New macro.
7759 (gen_b_form): New function.
7760 (GEN_BNE): New macro.
7761 (GEN_LOAD): New macro.
7762 (GEN_STORE): New macro.
7763 (gen_limm): New function.
7764 (gen_atomic_xchg): New function.
7765 (gen_call): New function.
7766 (ppc_relocate_instruction): New function.
7767 (ppc_install_fast_tracepoint_jump_pad): New function.
7768 (ppc_get_min_fast_tracepoint_insn_len): New function.
7769 (ppc_get_ipa_tdesc_idx): New function.
7770 (the_low_target): Wire in the new functions.
7771 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
7773 * linux-ppc-tdesc.h: New file.
7775 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
7777 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
7778 (alloc_jump_pad_buffer): New function.
7779 * linux-amd64-ipa.c: Add <sys/mman.h> include.
7780 (alloc_jump_pad_buffer): New function.
7781 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
7782 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
7783 (alloc_jump_pad_buffer): New function.
7784 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
7785 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
7786 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
7787 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
7789 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
7791 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
7792 * linux-amd64-ipa.c: Likewise.
7793 * linux-i386-ipa.c: Likewise.
7794 * linux-s390-ipa.c: Likewise.
7795 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
7796 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
7797 set_trace_state_variable_value_ptr.
7798 (struct ipa_sym_addresses): Likewise.
7799 (symbol_list): Likewise.
7800 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
7801 accessing gdb_collect directly.
7802 (gdb_collect_ptr_type): New typedef.
7803 (get_raw_reg_ptr_type): New typedef.
7804 (get_trace_state_variable_value_ptr_type): New typedef.
7805 (set_trace_state_variable_value_ptr_type): New typedef.
7806 (gdb_collect_ptr): New global.
7807 (get_raw_reg_ptr): New global.
7808 (get_trace_state_variable_value_ptr): New global.
7809 (set_trace_state_variable_value_ptr): New global.
7810 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
7811 accessing get_raw_reg directly.
7812 (get_get_tsv_func_addr): Likewise for
7813 get_trace_state_variable_value_ptr.
7814 (get_set_tsv_func_addr): Likewise for
7815 set_trace_state_variable_value_ptr.
7816 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
7818 2016-03-30 Simon Marchi <simon.marchi@ericsson.com>
7820 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
7822 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
7824 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
7826 (relocate_instruction): Remove own_buf.
7827 * server.c (own_buf): Make global.
7828 (handle_v_requests): Make global.
7829 * server.h (own_buf): New declaration.
7830 (handle_v_requests): New prototype.
7832 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
7835 * linux-s390-low.c (add_insns): New function.
7836 (s390_emit_prologue): New function.
7837 (s390_emit_epilogue): New function.
7838 (s390_emit_add): New function.
7839 (s390_emit_sub): New function.
7840 (s390_emit_mul): New function.
7841 (s390_emit_lsh): New function.
7842 (s390_emit_rsh_signed): New function.
7843 (s390_emit_rsh_unsigned): New function.
7844 (s390_emit_ext): New function.
7845 (s390_emit_log_not): New function.
7846 (s390_emit_bit_and): New function.
7847 (s390_emit_bit_or): New function.
7848 (s390_emit_bit_xor): New function.
7849 (s390_emit_bit_not): New function.
7850 (s390_emit_equal): New function.
7851 (s390_emit_less_signed): New function.
7852 (s390_emit_less_unsigned): New function.
7853 (s390_emit_ref): New function.
7854 (s390_emit_if_goto): New function.
7855 (s390_emit_goto): New function.
7856 (s390_write_goto_address): New function.
7857 (s390_emit_litpool): New function.
7858 (s390_emit_const): New function.
7859 (s390_emit_call): New function.
7860 (s390_emit_reg): New function.
7861 (s390_emit_pop): New function.
7862 (s390_emit_stack_flush): New function.
7863 (s390_emit_zero_ext): New function.
7864 (s390_emit_swap): New function.
7865 (s390_emit_stack_adjust): New function.
7866 (s390_emit_set_r2): New function.
7867 (s390_emit_int_call_1): New function.
7868 (s390_emit_void_call_2): New function.
7869 (s390_emit_eq_goto): New function.
7870 (s390_emit_ne_goto): New function.
7871 (s390_emit_lt_goto): New function.
7872 (s390_emit_le_goto): New function.
7873 (s390_emit_gt_goto): New function.
7874 (s390_emit_ge_goto): New function.
7875 (s390x_emit_prologue): New function.
7876 (s390x_emit_epilogue): New function.
7877 (s390x_emit_add): New function.
7878 (s390x_emit_sub): New function.
7879 (s390x_emit_mul): New function.
7880 (s390x_emit_lsh): New function.
7881 (s390x_emit_rsh_signed): New function.
7882 (s390x_emit_rsh_unsigned): New function.
7883 (s390x_emit_ext): New function.
7884 (s390x_emit_log_not): New function.
7885 (s390x_emit_bit_and): New function.
7886 (s390x_emit_bit_or): New function.
7887 (s390x_emit_bit_xor): New function.
7888 (s390x_emit_bit_not): New function.
7889 (s390x_emit_equal): New function.
7890 (s390x_emit_less_signed): New function.
7891 (s390x_emit_less_unsigned): New function.
7892 (s390x_emit_ref): New function.
7893 (s390x_emit_if_goto): New function.
7894 (s390x_emit_const): New function.
7895 (s390x_emit_call): New function.
7896 (s390x_emit_reg): New function.
7897 (s390x_emit_pop): New function.
7898 (s390x_emit_stack_flush): New function.
7899 (s390x_emit_zero_ext): New function.
7900 (s390x_emit_swap): New function.
7901 (s390x_emit_stack_adjust): New function.
7902 (s390x_emit_int_call_1): New function.
7903 (s390x_emit_void_call_2): New function.
7904 (s390x_emit_eq_goto): New function.
7905 (s390x_emit_ne_goto): New function.
7906 (s390x_emit_lt_goto): New function.
7907 (s390x_emit_le_goto): New function.
7908 (s390x_emit_gt_goto): New function.
7909 (s390x_emit_ge_goto): New function.
7910 (s390_emit_ops): New function.
7911 (struct linux_target_ops): Fill in emit_ops hook.
7913 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
7916 * Makefile.in: Add s390 IPA files.
7917 * configure.srv: Build IPA for s390.
7918 * linux-s390-ipa.c: New file.
7919 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
7920 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
7921 (tdesc_s390_linux32): Likewise.
7922 (init_registers_s390_linux32v1): Likewise.
7923 (tdesc_s390_linux32v1): Likewise.
7924 (init_registers_s390_linux32v2): Likewise.
7925 (tdesc_s390_linux32v2): Likewise.
7926 (init_registers_s390_linux64): Likewise.
7927 (tdesc_s390_linux64): Likewise.
7928 (init_registers_s390_linux64v1): Likewise.
7929 (tdesc_s390_linux64v1): Likewise.
7930 (init_registers_s390_linux64v2): Likewise.
7931 (tdesc_s390_linux64v2): Likewise.
7932 (init_registers_s390_te_linux64): Likewise.
7933 (tdesc_s390_te_linux64): Likewise.
7934 (init_registers_s390_vx_linux64): Likewise.
7935 (tdesc_s390_vx_linux64): Likewise.
7936 (init_registers_s390_tevx_linux64): Likewise.
7937 (tdesc_s390_tevx_linux64): Likewise.
7938 (init_registers_s390x_linux64): Likewise.
7939 (tdesc_s390x_linux64): Likewise.
7940 (init_registers_s390x_linux64v1): Likewise.
7941 (tdesc_s390x_linux64v1): Likewise.
7942 (init_registers_s390x_linux64v2): Likewise.
7943 (tdesc_s390x_linux64v2): Likewise.
7944 (init_registers_s390x_te_linux64): Likewise.
7945 (tdesc_s390x_te_linux64): Likewise.
7946 (init_registers_s390x_vx_linux64): Likewise.
7947 (tdesc_s390x_vx_linux64): Likewise.
7948 (init_registers_s390x_tevx_linux64): Likewise.
7949 (tdesc_s390x_tevx_linux64): Likewise.
7950 (have_hwcap_s390_vx): New static variable.
7951 (s390_arch_setup): Fill have_hwcap_s390_vx.
7952 (s390_get_thread_area): New function.
7953 (s390_ft_entry_gpr_esa): New const.
7954 (s390_ft_entry_gpr_zarch): New const.
7955 (s390_ft_entry_misc): New const.
7956 (s390_ft_entry_fr): New const.
7957 (s390_ft_entry_vr): New const.
7958 (s390_ft_main_31): New const.
7959 (s390_ft_main_64): New const.
7960 (s390_ft_exit_fr): New const.
7961 (s390_ft_exit_vr): New const.
7962 (s390_ft_exit_misc): New const.
7963 (s390_ft_exit_gpr_esa): New const.
7964 (s390_ft_exit_gpr_zarch): New const.
7965 (append_insns): New function.
7966 (s390_relocate_instruction): New function.
7967 (s390_install_fast_tracepoint_jump_pad): New function.
7968 (s390_get_min_fast_tracepoint_insn_len): New function.
7969 (s390_get_ipa_tdesc_idx): New function.
7970 (struct linux_target_ops): Wire in the above functions.
7971 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
7972 * linux-s390-tdesc.h: New file.
7974 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
7976 * linux-s390-low.c (s390_supports_tracepoints): New function.
7977 (struct linux_target_ops): Fill supports_tracepoints hook.
7979 2016-03-18 Yao Qi <yao.qi@linaro.org>
7981 * linux-low.c (lwp_signal_can_be_delivered): New function.
7982 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
7984 2016-03-18 Yao Qi <yao.qi@linaro.org>
7986 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
7987 0 if signal is enqueued. Remove 'signal' from one debugging
7988 message. Move one debugging message to some lines below.
7989 Remove code setting 'signal' to 0.
7991 2016-03-18 Yao Qi <yao.qi@linaro.org>
7993 * linux-low.c (linux_low_filter_event): Remove redundant
7994 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
7996 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
7998 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
7999 (struct linux_target_ops): Wire in the above.
8001 2016-03-03 Yao Qi <yao.qi@linaro.org>
8003 * linux-low.c: Update comments to start_step_over.
8005 2016-03-03 Yao Qi <yao.qi@linaro.org>
8008 * linux-low.c (handle_extended_wait): Set child suspended
8009 if event_lwp->bp_reinsert isn't zero.
8011 2016-03-02 Yao Qi <yao.qi@linaro.org>
8013 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
8014 enqueue_pending_signal.
8016 2016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
8018 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
8021 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8023 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
8024 (s390_regmap_3264) [!__s390x__]: New global.
8025 (s390_collect_ptrace_register): Skip map entries containing -1.
8026 (s390_supply_ptrace_register): Ditto.
8027 (s390_fill_gprs_high): New function.
8028 (s390_store_gprs_high): New function.
8029 (s390_regsets): Add NT_S390_HIGH_GPRS.
8030 (s390_get_hwcap): Enable on 31-bit.
8031 (have_hwcap_s390_high_gprs): Enable on 31-bit.
8032 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
8033 Detect NT_S390_HIGH_GPRS.
8034 (s390_usrregs_info_3264): Enable on 31-bit.
8035 (s390_regs_info): Enable regs_info_3264 on 31-bit.
8036 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
8038 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8041 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
8042 * configure.srv: Ditto.
8043 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
8044 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
8045 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
8046 (init_registers_amd64_linux): Remove prototype.
8047 (tdesc_amd64_linux): Remove declaration.
8048 (get_ipa_tdesc): New function.
8049 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8050 initialize remaining tdescs.
8051 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
8052 (init_registers_i386_linux): Remove prototype.
8053 (tdesc_i386_linux): Remove declaration.
8054 (get_ipa_tdesc): New function.
8055 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8056 initialize remaining tdescs.
8057 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
8058 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
8059 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
8060 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
8061 (x86_get_ipa_tdesc_idx): New function.
8062 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
8063 * linux-x86-tdesc.h: New file.
8064 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
8065 (target_get_ipa_tdesc_idx): New macro.
8066 * tracepoint.c (ipa_tdesc_idx): New macro.
8067 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
8068 (symbol_list): Add ipa_tdesc_idx.
8069 (cmd_qtstart): Write ipa_tdesc_idx in the target.
8070 (ipa_tdesc): Remove.
8071 (ipa_tdesc_idx): New variable.
8072 (get_context_regcache): Use get_ipa_tdesc.
8073 (gdb_collect): Ditto.
8075 * tracepoint.h (get_ipa_tdesc): New prototype.
8076 (ipa_tdesc): Remove.
8078 2016-02-24 Pedro Alves <palves@redhat.com>
8080 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
8081 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
8082 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
8083 Factor out common code between the USE_SIGTRAP_SIGINFO and
8084 !USE_SIGTRAP_SIGINFO blocks.
8085 (linux_low_filter_event): Call save_stop_reason instead of
8086 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
8088 (linux_wait_1): Update comments.
8090 2016-02-24 Wei-cheng Wang <cole945@gmail.com>
8092 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
8093 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
8094 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
8095 ppc_insert_point, ppc_remove_point.
8097 2016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
8099 * linux-s390-low.c (s390_supports_z_point_type): New function.
8100 (struct linux_target_ops): Wire s390_supports_z_point_type in.
8102 2016-02-16 Yao Qi <yao.qi@linaro.org>
8104 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
8105 PC. Get pc from regcache_read_pc.
8107 2016-02-12 Yao Qi <yao.qi@linaro.org>
8109 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
8110 or linux_get_pc_32bit.
8111 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
8113 2016-02-12 Yao Qi <yao.qi@linaro.org>
8115 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
8116 arm_linux_get_next_pcs_fixup.
8118 2016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
8120 * tracepoint.c (x_tracepoint_action_download): Change
8121 write_inferior_data_ptr to write_inferior_data_pointer.
8122 (cmd_qtstart): Likewise.
8123 (write_inferior_data_ptr): Remove.
8124 (download_agent_expr): Change write_inferior_data_ptr to
8125 write_inferior_data_pointer.
8126 (download_tracepoint_1): Likewise.
8127 (download_tracepoint): Likewise.
8128 (download_trace_state_variables): Likewise.
8130 2016-02-11 Wei-cheng Wang <cole945@gmail.com>
8131 Marcin Kościelnicki <koriakin@0x04.net>
8133 * tracepoint.c (struct tracepoint_action_ops): Remove.
8134 (struct tracepoint_action): Remove ops.
8135 (m_tracepoint_action_download, r_tracepoint_action_download)
8136 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
8137 size and offset accordingly.
8138 (m_tracepoint_action_ops, r_tracepoint_action_ops)
8139 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
8140 (tracepoint_action_send, tracepoint_action_download): New functions.
8141 Helpers for trace action handlers.
8142 (add_tracepoint_action): Remove setup actions ops.
8143 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
8145 2016-02-10 Yao Qi <yao.qi@linaro.org>
8147 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
8149 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8151 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
8153 * configure: Regenerate.
8155 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8157 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
8158 void * to gdb_byte *.
8159 * linux-low.c (siginfo_fixup): Likewise.
8160 (linux_xfer_siginfo): Likewise.
8161 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
8163 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
8165 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
8167 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
8169 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
8171 * linux-x86-low.c [__x86_64__]: Include
8172 "nat/amd64-linux-siginfo.h".
8173 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
8174 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
8175 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
8176 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
8177 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
8178 (cpt_si_fd, si_timerid, si_overrun): Move from
8179 nat/amd64-linux-siginfo.c.
8180 * Makefile.in (amd64-linux-siginfo.o:): New rule.
8182 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
8184 * server.c (skip_to_semicolon): Remove.
8185 (process_point_options): Use strchrnul instead of
8188 2016-01-26 Yao Qi <yao.qi@linaro.org>
8190 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
8191 * linux-low.c (install_software_single_step_breakpoints): Don't
8192 call regcache_read_pc.
8193 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
8196 2016-01-26 Yao Qi <yao.qi@linaro.org>
8198 * linux-low.c (install_software_single_step_breakpoints): Call
8199 regcache_read_pc instead of get_pc.
8201 2016-01-26 Yao Qi <yao.qi@linaro.org>
8203 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
8204 (unblock_async_io): Rename to ...
8205 (block_unblock_async_io): ... it. New function.
8206 (enable_async_io): Don't install SIGIO handler. Unblock it
8208 (disable_async_io): Don't ignore SIGIO. Block it instead.
8209 (initialize_async_io): Install SIGIO handler. Don't call
8212 2016-01-26 Yao Qi <yao.qi@linaro.org>
8214 * remote-utils.c (getpkt): If the buffer isn't empty, and the
8215 first character is '\003', call *the_target->request_interrupt.
8217 2016-01-25 Yao Qi <yao.qi@linaro.org>
8219 * remote-utils.c (new_thread_notify): Remove.
8220 (dead_thread_notify): Likewise.
8221 * remote-utils.h (new_thread_notify): Remove declaration.
8222 (dead_thread_notify): Likewise.
8224 2016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
8226 * gdb.trace/pending.exp: Fix expected message on continue.
8228 2016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
8230 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
8231 it works properly on big-endian machines where sizeof (CORE_ADDR)
8234 2016-01-21 Pedro Alves <palves@redhat.com>
8236 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
8237 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
8238 * configure: Regenerate.
8240 2016-01-21 Yao Qi <yao.qi@linaro.org>
8242 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
8243 is_thumb and set it according to CPSR saved on the stack.
8244 (get_next_pcs_syscall_next_pc): Pass is_thumb to
8245 arm_sigreturn_next_pc.
8247 2016-01-18 Yao Qi <yao.qi@linaro.org>
8249 * linux-low.c (linux_set_pc_64bit): New function.
8250 (linux_get_pc_64bit): New function.
8251 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
8253 * linux-sparc-low.c (debug_threads): Remove declaration.
8254 (sparc_get_pc): Remove.
8255 (the_low_target): Use linux_get_pc_64bit instead of
8257 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
8258 (the_low_target): Use linux_get_pc_64bit and
8261 2016-01-18 Yao Qi <yao.qi@linaro.org>
8263 * linux-arm-low.c (debug_threads): Remove declaration.
8264 (arm_get_pc, arm_set_pc): Remove.
8265 (the_low_target): Use linux_get_pc_32bit and
8267 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
8268 (the_low_target): Use linux_get_pc_32bit and
8270 * linux-cris-low.c (debug_threads): Remove declaration.
8271 (cris_get_pc, cris_set_pc,): Remove.
8272 (the_low_target): Use linux_get_pc_32bit and
8274 * linux-crisv32-low.c (debug_threads): Remove declaration.
8275 (cris_get_pc, cris_set_pc): Remove.
8276 (the_low_target): Use linux_get_pc_32bit and
8278 * linux-low.c: Include inttypes.h.
8279 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
8280 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
8281 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
8282 (the_low_target): Use linux_get_pc_32bit and
8284 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
8285 (the_low_target): Use linux_get_pc_32bit and
8287 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
8288 (the_low_target): Use linux_get_pc_32bit and
8290 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
8291 (the_low_target): Use linux_get_pc_32bit and
8293 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
8294 (the_low_target): Use linux_get_pc_32bit and
8297 2016-01-18 Gary Benson <gbenson@redhat.com>
8299 * configure.ac (AC_FUNC_FORK): New check.
8300 * config.in: Regenerate.
8301 * configure: Likewise.
8303 2016-01-14 Yao Qi <yao.qi@linaro.org>
8305 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
8306 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
8307 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
8308 arm_get_next_pcs_ctor.
8310 2016-01-12 Josh Stone <jistone@redhat.com>
8311 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8313 * inferiors.h: Include "gdb_vecs.h".
8314 (struct process_info): Add syscalls_to_catch.
8315 * inferiors.c (remove_process): Free syscalls_to_catch.
8316 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
8317 syscall_return stops.
8318 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
8319 * server.c (handle_general_set): Handle QCatchSyscalls.
8320 (handle_query): Report support for QCatchSyscalls.
8321 * target.h (struct target_ops): Add supports_catch_syscall.
8322 (target_supports_catch_syscall): New macro.
8323 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
8324 (struct lwp_info): Add syscall_state.
8325 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
8326 Maintain syscall_state and syscalls_to_catch across exec.
8327 (get_syscall_trapinfo): New function, proxy to the_low_target.
8328 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
8329 (linux_low_filter_event): Toggle syscall_state entry/return for
8330 syscall traps, and set it ignored for all others.
8331 (gdb_catching_syscalls_p): New function.
8332 (gdb_catch_this_syscall_p): New function.
8333 (linux_wait_1): Handle SYSCALL_SIGTRAP.
8334 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
8335 (linux_supports_catch_syscall): New function.
8336 (linux_target_ops): Install it.
8337 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
8338 (the_low_target): Install it.
8340 2016-01-12 Mike Frysinger <vapier@gentoo.org>
8342 * acinclude.m4: Include new ../warning.m4 file.
8343 * configure: Regenerated.
8344 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
8346 2016-01-12 Mike Frysinger <vapier@gentoo.org>
8348 * ax.c (is_goto_target): Mark static.
8349 * linux-low.c (register_addr): Likewise.
8350 (linux_fetch_registers, linux_store_registers): Likewise.
8351 * mem-break.c (any_persistent_commands): Fix old prototype.
8352 (add_commands_to_breakpoint): Mark static.
8353 * regcache.c (find_register_by_name): Delete unused func.
8354 * remote-utils.c (hex_or_minus_one): Mark static.
8355 * server.c (monitor_show_help): Mark static.
8356 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
8357 handle_v_requests): Likewise.
8359 2016-01-12 Pedro Alves <palves@redhat.com>
8361 Remove use of the registered trademark symbol throughout.
8363 2016-01-08 Yao Qi <yao.qi@linaro.org>
8365 * remote-utils.c (getpkt): If c is '\003', call target hook
8368 2016-01-06 Yao Qi <yao.qi@linaro.org>
8370 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
8371 linux-aarch32-low.c.
8372 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8373 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
8374 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8375 (thumb2_breakpoint): Declare.
8376 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
8377 linux-aarch32-low.h.
8378 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8379 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
8380 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8382 2016-01-01 Joel Brobecker <brobecker@adacore.com>
8384 * gdbreplay.c (gdbreplay_version): Change copyright year in
8386 * server.c (gdbserver_version): Likewise.
8388 2015-12-28 Patrick Palka <patrick@parcs.ath.cx>
8390 * server.c (crc32_table): Delete.
8391 (crc32): Use libiberty's xcrc32 function.
8393 2015-12-22 Joel Brobecker <brobecker@adacore.com>
8395 * lynx-low.c (lynx_delete_thread_callback): New function.
8396 (lynx_mourn): Properly delete our process and all of its
8397 threads. Remove call to clear_inferiors.
8399 2015-12-22 Joel Brobecker <brobecker@adacore.com>
8401 * target.c (thread_search_callback): Add check that
8402 the thread_stopped target callback is not NULL before
8405 2015-12-21 Yao Qi <yao.qi@linaro.org>
8407 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
8410 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8412 * server.c (handle_query): Call target_supports_software_single_step.
8414 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8416 * linux-low.c (single_step): New function.
8417 (linux_resume_one_lwp_throw): Call single_step.
8418 (start_step_over): Likewise.
8420 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8422 * Makefile.in (SFILES): Append arch/arm-linux.c,
8423 arch/arm-get-next-pcs.c.
8424 (arm-linux.o): New rule.
8425 (arm-get-next-pcs.o): New rule.
8426 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
8428 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
8429 to linux-aarch32-low.c.
8430 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8431 (arm_breakpoint_len, thumb_breakpoint): Likewise.
8432 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
8433 (thumb2_breakpoint_len): Likewise.
8434 (arm_is_thumb_mode): Make non-static.
8435 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
8436 from linux-aarch32-low.c.
8437 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8438 (arm_breakpoint_len, thumb_breakpoint): Likewise.
8439 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
8440 (thumb2_breakpoint_len): Likewise.
8441 (arm_is_thumb_mode): New declaration.
8442 * linux-arm-low.c: Include arch/arm-linux.h
8443 aarch/arm-get-next-pcs.h, sys/syscall.h.
8444 (get_next_pcs_ops): New struct.
8445 (get_next_pcs_addr_bits_remove): New function.
8446 (get_next_pcs_is_thumb): New function.
8447 (get_next_pcs_read_memory_unsigned_integer): Likewise.
8448 (arm_sigreturn_next_pc): Likewise.
8449 (get_next_pcs_syscall_next_pc): Likewise.
8450 (arm_gdbserver_get_next_pcs): Likewise.
8451 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
8453 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
8454 * server.h: Include gdb_vecs.h.
8456 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8458 * Makefile.in (SFILES): Append common/common-regcache.c.
8459 (OBS): Append common-regcache.o.
8460 (common-regcache.o): New rule.
8461 * regcache.c (init_register_cache): Initialize cache to
8463 (regcache_raw_read_unsigned): New function.
8464 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
8465 register_status enum.
8467 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8469 * linux-aarch64-low.c (the_low_targets): Rename
8470 breakpoint_reinsert_addr to get_next_pcs.
8471 * linux-arm-low.c (the_low_targets): Likewise.
8472 * linux-bfin-low.c (the_low_targets): Likewise.
8473 * linux-cris-low.c (the_low_targets): Likewise.
8474 * linux-crisv32-low.c (the_low_targets): Likewise.
8475 * linux-low.c (can_software_single_step): Likewise.
8476 (install_software_single_step_breakpoints): New function.
8477 (start_step_over): Use install_software_single_step_breakpoints.
8478 * linux-low.h: New CORE_ADDR vector.
8479 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
8481 * linux-mips-low.c (the_low_targets): Likewise.
8482 * linux-nios2-low.c (the_low_targets): Likewise.
8483 * linux-sparc-low.c (the_low_targets): Likewise.
8485 2015-12-17 Pedro Alves <palves@redhat.com>
8487 * linux-low.c (linux_kill_one_lwp): Remove references to
8489 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
8491 (linux_init_signals): Delete.
8492 (initialize_low): Adjust.
8493 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
8495 2015-12-16 Pedro Alves <palves@redhat.com>
8497 * configure.ac (compiler warning flags): When testing a
8498 -Wno-foo option, check whether -Wfoo works instead.
8499 * configure: Regenerate.
8501 2015-12-11 Don Breazeal <donb@codesourcery.com>
8503 * server.c (process_serial_event): Don't exit from gdbserver
8504 in remote mode if there are still active inferiors.
8506 2015-12-11 Yao Qi <yao.qi@linaro.org>
8508 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
8509 arm_breakpoint_at if the process is 32-bit.
8511 2015-12-11 Yao Qi <yao.qi@linaro.org>
8513 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
8516 2015-12-07 Yao Qi <yao.qi@linaro.org>
8518 * configure.srv: Append arm.o to srv_tgtobj for
8519 aarch64*-*-linux* target.
8520 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
8521 from linux-arm-low.c.
8522 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8523 (arm_breakpoint_len, thumb_breakpoint): Likewise.
8524 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
8525 (thumb2_breakpoint_len): Likewise.
8526 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
8527 (arm_breakpoint_kinds): Likewise.
8528 (arm_breakpoint_kind_from_pc): Likewise.
8529 (arm_sw_breakpoint_from_kind): Likewise.
8530 (arm_breakpoint_kind_from_current_state): Likewise.
8531 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
8532 (arm_sw_breakpoint_from_kind): Declare.
8533 (arm_breakpoint_kind_from_current_state): Declare.
8534 (arm_breakpoint_at): Declare.
8535 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
8536 arm_sw_breakpoint_from_kind if process is 32-bit.
8537 (aarch64_breakpoint_kind_from_pc): New function.
8538 (aarch64_breakpoint_kind_from_current_state): New function.
8539 (the_low_target): Initialize fields breakpoint_kind_from_pc
8540 and breakpoint_kind_from_current_state.
8541 * linux-arm-low.c (arm_breakpoint_kinds): Move to
8542 linux-aarch32-low.c.
8543 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
8544 (arm_breakpoint, arm_breakpoint_len): Likewise.
8545 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
8546 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8547 (arm_is_thumb_mode): Likewise.
8548 (arm_breakpoint_at): Likewise.
8549 (arm_breakpoint_kind_from_pc): Likewise.
8550 (arm_sw_breakpoint_from_kind): Likewise.
8551 (arm_breakpoint_kind_from_current_state): Likewise.
8554 2015-08-04 Yao Qi <yao.qi@linaro.org>
8556 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
8557 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
8558 * server.c (extended_protocol): Remove "static".
8559 * server.h (extended_protocol): Declare it.
8561 2015-12-04 Josh Stone <jistone@redhat.com>
8563 * target.h (struct target_ops) <arch_setup>: Rename to ...
8564 (struct target_ops) <post_create_inferior>: ... this.
8565 (target_arch_setup): Rename to ...
8566 (target_post_create_inferior): ... this, calling post_create_inferior.
8567 * server.c (start_inferior): Update target_arch_setup calls to
8568 target_post_create_inferior.
8569 * linux-low.c (linux_low_ptrace_options): Forward declare.
8570 (linux_arch_setup): Update its comment for general use.
8571 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
8572 (struct linux_target_ops): Use linux_post_create_inferior.
8573 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
8574 to post_create_inferior.
8575 * nto-low.c (struct nto_target_ops): Likewise.
8576 * spu-low.c (struct spu_target_ops): Likewise.
8577 * win32-low.c (struct win32_target_ops): Likewise.
8579 2015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
8581 * linux-arm-low.c: Remove duplicate arch/arm.h include.
8583 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
8585 * linux-arm-low.c (arm_reinsert_addr): Remove function.
8586 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
8587 * linux-cris-low.c (cris_reinsert_addr> Remove function.
8588 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
8589 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
8590 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
8591 * linux-mips-low.c (mips_reinsert_addr): Remove function.
8592 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
8593 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
8594 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
8595 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
8596 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
8598 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
8600 * linux-low.c (linux_look_up_symbols): Don't call
8601 linux_supports_traceclone.
8602 * linux-low.h (thread_db_init): Remove use_events argument.
8603 * thread-db.c (thread_db_use_event): Remove global variable.
8604 (struct thread_db) <td_thr_event_enable_p>: Remove field.
8605 (struct thread_db) <td_create_bp>: Remove field.
8606 (thread_db_create_event): Remove function.
8607 (thread_db_enable_reporting): Likewise.
8608 (find_one_thread): Don't check for thread_db_use_events.
8609 (attach_thread): Likewise.
8610 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
8611 (try_thread_db_load_1): Don't check for thread_db_use_events.
8612 (thread_db_init): Remove use_events argument and thread events
8614 (remove_thread_event_breakpoints): Remove function.
8615 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
8617 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
8619 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
8621 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8622 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
8623 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8624 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
8625 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
8627 * linux-crisv32-low.c (cris_supports_hardware_single_step):
8629 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8630 * linux-low.c (can_hardware_single_step): Use
8631 supports_hardware_single_step.
8632 (can_software_single_step): New function.
8633 (start_step_over): Call can_software_single_step.
8634 (linux_supports_hardware_single_step): New function.
8635 (struct target_ops) <supports_software_single_step>: Initialize.
8636 * linux-low.h (struct linux_target_ops)
8637 <supports_hardware_single_step>: Initialize.
8638 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
8639 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8640 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
8641 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
8642 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
8643 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8644 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
8645 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8646 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
8647 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
8649 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
8650 (struct linux_target_ops) <tile_supports_hardware_single_step>:
8652 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
8653 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8654 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
8656 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
8657 * target.h (struct target_ops): <supports_software_single_step>:
8659 (target_supports_software_single_step): New macro.
8661 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
8663 * linux-low.c (linux_wait_1): Fix pc advance condition.
8664 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
8665 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
8667 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
8669 * linux-arm-low.c (arm_is_thumb_mode): New function.
8670 (arm_breakpoint_at): Use arm_is_thumb_mode.
8671 (arm_breakpoint_kind_from_current_state): New function.
8672 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
8674 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
8675 (linux_breakpoint_kind_from_current_state): New function.
8676 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
8677 * linux-low.h (struct linux_target_ops)
8678 <breakpoint_kind_from_current_state>: New field.
8679 * target.h (struct target_ops): Likewise.
8680 (target_breakpoint_kind_from_current_state): New macro.
8682 2015-11-30 Pedro Alves <palves@redhat.com>
8684 * linux-low.c (linux_resume): Wake up the event loop before
8687 2015-11-30 Pedro Alves <palves@redhat.com>
8689 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
8691 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
8693 * target.c (struct thread_search): New structure.
8694 (thread_search_callback): New function.
8695 (prev_general_thread): New global.
8696 (prepare_to_access_memory, done_accessing_memory): New functions.
8697 * target.h (prepare_to_access_memory, done_accessing_memory):
8698 Replace macros with function declarations.
8700 2015-11-30 Pedro Alves <palves@redhat.com>
8703 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
8704 report TARGET_WAITKIND_NO_RESUMED.
8705 * remote-utils.c (prepare_resume_reply): Handle
8706 TARGET_WAITKIND_NO_RESUMED.
8707 * server.c (report_no_resumed): New global.
8708 (handle_query) <qSupported>: Handle "no-resumed+". Report
8709 "no-resumed+" support.
8710 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
8711 return error if the client doesn't support no-resumed events.
8712 (push_stop_notification): New function.
8713 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
8714 events if the client supports them.
8716 2015-11-30 Pedro Alves <palves@redhat.com>
8718 * linux-low.c (thread_still_has_status_pending_p): Don't check
8720 (lwp_resumed): New function.
8721 (status_pending_p_callback): Return early if the LWP is not
8722 supposed to be resumed.
8724 2015-11-30 Pedro Alves <palves@redhat.com>
8726 * linux-low.c (handle_extended_wait): Assert that the LWP's
8727 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
8728 thread create events, leave the new child's status pending.
8729 (linux_low_filter_event): If GDB wants to hear about thread exit
8730 events, leave the LWP marked dead and don't delete it.
8731 (linux_wait_for_event_filtered): Don't check for thread exit.
8732 (filter_exit_event): New function.
8733 (linux_wait_1): Use it, when returning an exit event.
8734 (linux_resume_one_lwp_throw): Assert that the LWP's
8735 waitstatus is TARGET_WAITKIND_IGNORE.
8736 * remote-utils.c (prepare_resume_reply): Handle
8737 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
8738 * server.c (report_thread_events): New global.
8739 (handle_general_set): Handle QThreadEvents.
8740 (handle_query) <qSupported>: Handle and report QThreadEvents+;
8741 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
8742 TARGET_WAITKIND_THREAD_EXITED.
8743 * server.h (report_thread_events): Declare.
8745 2015-11-30 Pedro Alves <palves@redhat.com>
8747 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
8748 the thread's last_resume_kind was resume_stop.
8750 2015-11-30 Pedro Alves <palves@redhat.com>
8752 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
8755 2015-11-30 Pedro Alves <palves@redhat.com>
8757 * server.c (handle_v_requests): Handle vCtrlC.
8759 2015-11-30 Pedro Alves <palves@redhat.com>
8761 * gdbthread.h (find_any_thread_of_pid): Declare.
8762 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
8764 * server.c (handle_query): If current_thread is NULL, look for
8765 another thread of the selected process.
8767 2015-11-26 Daniel Colascione <dancol@dancol.org>
8768 Simon Marchi <simon.marchi@ericsson.com>
8770 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
8771 * server.c (handle_qxfer_threads_worker): Refactor to include thread
8773 * target.h (struct target_ops) <thread_name>: New field.
8774 (target_thread_name): New macro.
8776 2015-11-23 Joel Brobecker <brobecker@adacore.com>
8778 * regcache.h (regcache_invalidate_pid): Add declaration.
8779 * regcache.c (regcache_invalidate_pid): New function, extracted
8780 from regcache_invalidate.
8781 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
8782 Add trivial documentation comment.
8783 * lynx-low.c: Use regcache_invalidate_pid instead of
8784 regcache_invalidate.
8786 2015-11-23 Joel Brobecker <brobecker@adacore.com>
8788 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
8789 and Elf64_auxv_t if the target is Android.
8791 2015-11-22 Doug Evans <xdje42@gmail.com>
8793 * target.h: #include <sys/types.h>.
8795 2015-11-19 Pedro Alves <palves@redhat.com>
8797 * linux-low.c (linux_process_qsupported): Change prototype.
8799 * linux-low.h (struct linux_target_ops) <process_qsupported>:
8801 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
8802 and adjust to loop over all features.
8803 * server.c (handle_query) <qSupported>: Adjust to call
8804 target_process_qsupported once, passing it a vector of unprocessed
8806 * target.h (struct target_ops) <process_qsupported>: Change
8808 (target_process_qsupported): Adjust.
8810 2015-11-19 Pedro Alves <palves@redhat.com>
8812 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
8814 * configure: Regenerate.
8816 2015-11-19 Pedro Alves <palves@redhat.com>
8818 * configure: Regenerate.
8820 2015-11-19 Yao Qi <yao.qi@linaro.org>
8822 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
8825 2015-11-19 Yao Qi <yao.qi@linaro.org>
8827 * linux-aarch64-low.c (enum aarch64_operand_type): New.
8828 (struct aarch64_operand): Move enum out.
8830 2015-11-19 Yao Qi <yao.qi@linaro.org>
8832 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
8833 struct user_fpsimd_state *.
8834 (aarch64_store_fpregset): Likewise.
8836 2015-11-19 Yao Qi <yao.qi@linaro.org>
8838 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
8839 struct user_pt_regs *.
8840 (aarch64_store_gregset): Likewise.
8842 2015-11-18 Pedro Alves <palves@redhat.com>
8844 * Makefile.in (all_object_files): Add $IPA_OBJS.
8846 2015-11-17 Pedro Alves <palves@redhat.com>
8848 * win32-low.c (win32_resume): Use gdb_signal_from_host,
8849 GDB_SIGNAL_0 and gdb_signal_to_string.
8851 2015-11-17 Pedro Alves <palves@redhat.com>
8853 * win32-low.c (handle_output_debug_string): Remove parameter.
8854 (win32_kill): Remove our_status local and adjust call to
8855 handle_output_debug_string.
8856 (get_child_debug_event): Adjust call to
8857 handle_output_debug_string.
8859 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
8861 * linux-mips-low.c (mips_fill_gregset): Add cast.
8862 (mips_store_gregset): Likewise.
8863 (mips_fill_fpregset): Likewise.
8864 (mips_store_fpregset): Likewise.
8866 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
8868 * linux-mips-low.c (mips_add_watchpoint): Rename private to
8871 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
8873 * linux-mips-low.c (mips_linux_new_thread): Change type of
8874 watch_type to enum target_hw_bp_type.
8876 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
8878 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
8879 Change return type to arm_hwbp_type.
8881 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
8883 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
8884 (arm_store_gregset): Likewise.
8885 * linux-arm-low.c (arm_get_hwcap): Likewise.
8886 (arm_read_description): Likewise.
8888 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
8890 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
8892 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
8894 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
8895 (ppc_fill_vsxregset): Likewise.
8896 (ppc_store_vsxregset): Likewise.
8897 (ppc_fill_vrregset): Likewise.
8898 (ppc_store_vrregset): Likewise.
8899 (ppc_fill_evrregset): Likewise.
8900 (ppc_store_evrregset): Likewise.
8902 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
8904 * linux-ppc-low.c (ppc_usrregs_info): Remove
8905 forward-declaration.
8906 (ppc_arch_setup): Move lower in file.
8908 2015-10-30 Simon Marchi <simon.marchi@ericsson.com>
8910 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
8911 (ps_pdwrite): Likewise.
8913 2015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
8915 * linux-arm-low.c (arm_new_thread): Move pointer dereference
8916 to after assert checks.
8918 2015-10-29 Simon Marchi <simon.marchi@ericsson.com>
8920 * proc-service.c (ps_pdread): Add/adjust casts.
8921 (ps_pdwrite): Add/adjust casts.
8923 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
8925 * server.c (handle_search_memory_1): Cast return value of
8928 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
8930 * server.c (write_qxfer_response): Change type of data to
8933 2015-10-29 Pedro Alves <palves@redhat.com>
8935 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
8937 2015-10-29 Pedro Alves <palves@redhat.com>
8939 * tracepoint.c (clear_installed_tracepoints): Add casts.
8941 2015-10-29 Pedro Alves <palves@redhat.com>
8943 * server.c (handle_v_cont, process_serial_event): Add enum
8944 gdb_signal casts to signal parsing code.
8946 2015-10-29 Pedro Alves <palves@redhat.com>
8948 * linux-low.h (NULL_REGSET): Define.
8949 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
8950 * linux-arm-low.c (arm_regsets): Likewise.
8951 * linux-crisv32-low.c (cris_regsets): Likewise.
8952 * linux-m68k-low.c (m68k_regsets): Likewise.
8953 * linux-mips-low.c (mips_regsets): Likewise.
8954 * linux-nios2-low.c (nios2_regsets): Likewise.
8955 * linux-ppc-low.c (ppc_regsets): Likewise.
8956 * linux-s390-low.c (s390_regsets): Likewise.
8957 * linux-sh-low.c (sh_regsets): Likewise.
8958 * linux-sparc-low.c (sparc_regsets): Likewise.
8959 * linux-tic6x-low.c (tic6x_regsets): Likewise.
8960 * linux-tile-low.c (tile_regsets): Likewise.
8961 * linux-x86-low.c (x86_regsets): Likewise.
8962 * linux-xtensa-low.c (xtensa_regsets): Likewise.
8964 2015-10-29 Pedro Alves <palves@redhat.com>
8966 * linux-low.h (NULL_REGSET): Define.
8967 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
8968 * linux-arm-low.c (arm_regsets): Likewise.
8969 * linux-crisv32-low.c (cris_regsets): Likewise.
8970 * linux-m68k-low.c (m68k_regsets): Likewise.
8971 * linux-mips-low.c (mips_regsets): Likewise.
8972 * linux-nios2-low.c (nios2_regsets): Likewise.
8973 * linux-ppc-low.c (ppc_regsets): Likewise.
8974 * linux-s390-low.c (s390_regsets): Likewise.
8975 * linux-sh-low.c (sh_regsets): Likewise.
8976 * linux-sparc-low.c (sparc_regsets): Likewise.
8977 * linux-tic6x-low.c (tic6x_regsets): Likewise.
8978 * linux-tile-low.c (tile_regsets): Likewise.
8979 * linux-x86-low.c (x86_regsets): Likewise.
8980 * linux-xtensa-low.c (xtensa_regsets): Likewise.
8982 2015-10-26 Doug Evans <dje@google.com>
8984 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
8986 2015-10-26 Doug Evans <dje@google.com>
8988 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
8990 2015-10-26 Doug Evans <dje@google.com>
8992 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
8994 (attach_thread, find_new_threads_callback): Ditto.
8996 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
8998 * mem-break.h (set_breakpoint_data): Remove.
9000 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9002 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
9003 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9004 (initialize_low): Remove set_breakpoint_data call.
9005 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
9006 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
9007 (initialize_low): Remove set_breakpoint_data call.
9008 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
9009 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9010 (initialize_low): Remove set_breakpoint_data call.
9012 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9014 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
9015 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
9016 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
9017 * target.h (target_breakpoint_kind_from_pc): New macro.
9019 2015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
9021 * linux-low.c (default_breakpoint_kind_from_pc): New function.
9022 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
9023 the default breakpoint kind.
9025 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9027 * linux-arm-low.c (arm_supports_z_point_type): Add software
9030 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9032 * linux-arm-low.c: Refactor breakpoint definitions.
9033 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
9034 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
9036 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9038 * Makefile.in: Add arm.c/o.
9039 * configure.srv: Likewise.
9040 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
9041 (arm_breakpoint_kind_from_pc): New function.
9042 (arm_sw_breakpoint_from_kind): Return proper kind.
9043 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
9045 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9047 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
9049 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
9050 (struct raw_breakpoint) <size>: Remove.
9051 (struct raw_breakpoint) <kind>: Add.
9052 (bp_size): New function.
9053 (bp_opcode): Likewise.
9054 (find_raw_breakpoint_at): Adjust for kind.
9055 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
9056 (remove_memory_breakpoint): Adjust for kind call bp_size.
9057 (set_raw_breakpoint_at): Adjust for kind.
9058 (set_breakpoint): Likewise.
9059 (set_breakpoint_at): Call breakpoint_kind_from_pc.
9060 (delete_raw_breakpoint): Adjust for kind.
9061 (delete_breakpoint): Likewise.
9062 (find_gdb_breakpoint): Likewise.
9063 (set_gdb_breakpoint_1): Likewise.
9064 (set_gdb_breakpoint): Likewise.
9065 (delete_gdb_breakpoint_1): Likewise.
9066 (delete_gdb_breakpoint): Likewise.
9067 (uninsert_raw_breakpoint): Likewise.
9068 (reinsert_raw_breakpoint): Likewise.
9069 (set_breakpoint_data): Remove.
9070 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
9071 (check_mem_read): Adjust for kind call bp_size.
9072 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
9073 (clone_one_breakpoint): Adjust for kind.
9074 * mem-break.h (set_gdb_breakpoint): Likewise.
9075 (delete_gdb_breakpoint): Likewise.
9076 * server.c (process_serial_event): Likewise.
9078 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9080 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
9081 (struct linux_target_ops) <breakpoint>: Remove.
9082 (struct linux_target_ops) <breakpoint_len>: Remove.
9083 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9084 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9085 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
9086 (arm_sw_breakpoint_from_kind): New function.
9087 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
9088 (struct linux_target_ops) <breakpoint>: Remove.
9089 (struct linux_target_ops) <breakpoint_len>: Remove.
9090 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9091 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9092 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
9093 (struct linux_target_ops) <breakpoint>: Remove.
9094 (struct linux_target_ops) <breakpoint_len>: Remove.
9095 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9096 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9097 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
9098 (struct linux_target_ops) <breakpoint>: Remove.
9099 (struct linux_target_ops) <breakpoint_len>: Remove.
9100 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9101 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9102 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
9103 and sw_breakpoint_from_kind to increment the pc.
9104 (linux_breakpoint_kind_from_pc): New function.
9105 (linux_sw_breakpoint_from_kind): New function.
9106 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
9107 (initialize_low): Call breakpoint_kind_from_pc and
9108 sw_breakpoint_from_kind to replace breakpoint_data/len.
9109 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
9111 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
9112 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
9113 (struct linux_target_ops) <breakpoint>: Remove.
9114 (struct linux_target_ops) <breakpoint_len>: Remove.
9115 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9116 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9117 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
9118 (struct linux_target_ops) <breakpoint>: Remove.
9119 (struct linux_target_ops) <breakpoint_len>: Remove.
9120 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9121 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9122 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
9123 (struct linux_target_ops) <breakpoint>: Remove.
9124 (struct linux_target_ops) <breakpoint_len>: Remove.
9125 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9126 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9127 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
9128 (struct linux_target_ops) <breakpoint>: Remove.
9129 (struct linux_target_ops) <breakpoint_len>: Remove.
9130 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9131 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9132 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
9133 (struct linux_target_ops) <breakpoint>: Remove.
9134 (struct linux_target_ops) <breakpoint_len>: Remove.
9135 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9136 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9137 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
9138 (struct linux_target_ops) <breakpoint>: Remove.
9139 (struct linux_target_ops) <breakpoint_len>: Remove.
9140 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9141 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9142 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
9143 (struct linux_target_ops) <breakpoint>: Remove.
9144 (struct linux_target_ops) <breakpoint_len>: Remove.
9145 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9146 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9147 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
9148 (struct linux_target_ops) <breakpoint>: Remove.
9149 (struct linux_target_ops) <breakpoint_len>: Remove.
9150 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9151 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9152 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
9153 (struct linux_target_ops) <breakpoint>: Remove.
9154 (struct linux_target_ops) <breakpoint_len>: Remove.
9155 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9156 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9157 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
9158 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
9159 (struct linux_target_ops) <breakpoint>: Remove.
9160 (struct linux_target_ops) <breakpoint_len>: Remove.
9161 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9162 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9163 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
9164 (struct linux_target_ops) <breakpoint>: Remove.
9165 (struct linux_target_ops) <breakpoint_len>: Remove.
9166 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9167 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9169 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9171 * linux-cris-low.c (cris_get_pc): Remove void arg.
9173 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9175 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
9178 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9180 * inferiors.c (thread_pid_matches_callback): New function.
9181 (find_thread_process): New function.
9182 (remove_thread): Reset current_thread.
9183 (remove_process): Assert threads have been removed first.
9185 2015-10-15 Yao Qi <yao.qi@linaro.org>
9187 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
9189 (aarch64_remove_point): Likewise.
9190 * regcache.c (regcache_register_size): New function.
9192 2015-10-12 Yao Qi <yao.qi@linaro.org>
9194 * linux-aarch64-low.c: Update all callers as emit_load_store
9195 is renamed to aarch64_emit_load_store.
9197 2015-10-12 Yao Qi <yao.qi@linaro.org>
9199 * linux-aarch64-low.c: Update all callers of function renaming
9200 from emit_insn to aarch64_emit_insn.
9202 2015-10-12 Yao Qi <yao.qi@linaro.org>
9204 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
9205 arch/aarch64-insn.h.
9206 (struct aarch64_memory_operand): Likewise.
9208 (emit_insn): Move to arch/aarch64-insn.c.
9209 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
9210 (emit_load_store): Move to arch/aarch64-insn.c.
9211 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
9212 (can_encode_int32): Remove.
9214 2015-10-12 Yao Qi <yao.qi@linaro.org>
9216 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
9217 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
9218 (aarch64_relocate_instruction): Likewise.
9219 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
9220 (struct aarch64_insn_visitor): Likewise.
9222 2015-10-12 Yao Qi <yao.qi@linaro.org>
9224 * linux-aarch64-low.c (struct aarch64_insn_data): New.
9225 (struct aarch64_insn_visitor): New.
9226 (struct aarch64_insn_relocation_data): New.
9227 (aarch64_ftrace_insn_reloc_b): New function.
9228 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
9229 (aarch64_ftrace_insn_reloc_cb): Likewise.
9230 (aarch64_ftrace_insn_reloc_tb): Likewise.
9231 (aarch64_ftrace_insn_reloc_adr): Likewise.
9232 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
9233 (aarch64_ftrace_insn_reloc_others): Likewise.
9235 (aarch64_relocate_instruction): Use visitor.
9237 2015-10-12 Yao Qi <yao.qi@linaro.org>
9239 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
9240 int. Add argument buf.
9241 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
9242 aarch64_relocate_instruction.
9244 2015-10-12 Yao Qi <yao.qi@linaro.org>
9246 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
9247 argument insn. Remove local variable insn. Don't call
9249 (aarch64_install_fast_tracepoint_jump_pad): Call
9252 2015-09-30 Yao Qi <yao.qi@linaro.org>
9254 * linux-aarch64-low.c (emit_movk): Shorten a long line.
9255 (emit_load_store_pair): Likewise.
9257 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9259 * dll.c (match_dll): Add cast(s).
9260 (unloaded_dll): Likewise.
9261 * linux-low.c (second_thread_of_pid_p): Likewise.
9262 (delete_lwp_callback): Likewise.
9263 (count_events_callback): Likewise.
9264 (select_event_lwp_callback): Likewise.
9265 (linux_set_resume_request): Likewise.
9266 * server.c (accumulate_file_name_length): Likewise.
9267 (emit_dll_description): Likewise.
9268 (handle_qxfer_threads_worker): Likewise.
9269 (visit_actioned_threads): Likewise.
9270 * thread-db.c (any_thread_of): Likewise.
9271 * tracepoint.c (same_process_p): Likewise.
9272 (match_blocktype): Likewise.
9273 (build_traceframe_info_xml): Likewise.
9275 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9277 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
9279 (gdb_unparse_agent_expr): Likewise.
9280 * hostio.c (require_data): Likewise.
9281 (handle_pread): Likewise.
9282 * linux-low.c (disable_regset): Likewise.
9283 (fetch_register): Likewise.
9284 (store_register): Likewise.
9285 (get_dynamic): Likewise.
9286 (linux_qxfer_libraries_svr4): Likewise.
9287 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
9288 (set_fast_tracepoint_jump): Likewise.
9289 (uninsert_fast_tracepoint_jumps_at): Likewise.
9290 (reinsert_fast_tracepoint_jumps_at): Likewise.
9291 (validate_inserted_breakpoint): Likewise.
9292 (clone_agent_expr): Likewise.
9293 * regcache.c (init_register_cache): Likewise.
9294 * remote-utils.c (putpkt_binary_1): Likewise.
9295 (decode_M_packet): Likewise.
9296 (decode_X_packet): Likewise.
9297 (look_up_one_symbol): Likewise.
9298 (relocate_instruction): Likewise.
9299 (monitor_output): Likewise.
9300 * server.c (handle_search_memory): Likewise.
9301 (handle_qxfer_exec_file): Likewise.
9302 (handle_qxfer_libraries): Likewise.
9303 (handle_qxfer): Likewise.
9304 (handle_query): Likewise.
9305 (handle_v_cont): Likewise.
9306 (handle_v_run): Likewise.
9307 (captured_main): Likewise.
9308 * target.c (write_inferior_memory): Likewise.
9309 * thread-db.c (try_thread_db_load_from_dir): Likewise.
9310 * tracepoint.c (init_trace_buffer): Likewise.
9311 (add_tracepoint_action): Likewise.
9312 (add_traceframe): Likewise.
9313 (add_traceframe_block): Likewise.
9314 (cmd_qtdpsrc): Likewise.
9315 (cmd_qtdv): Likewise.
9316 (cmd_qtstatus): Likewise.
9317 (response_source): Likewise.
9318 (response_tsv): Likewise.
9319 (cmd_qtnotes): Likewise.
9320 (gdb_collect): Likewise.
9321 (initialize_tracepoint): Likewise.
9323 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9325 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
9326 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
9327 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
9329 (enum aarch64_condition_codes): New enum.
9330 (w0): New static global.
9333 (struct aarch64_memory_operand) <type>: New
9334 MEMORY_OPERAND_POSTINDEX type.
9335 (postindex_memory_operand): New helper function.
9336 (emit_ret): New function.
9337 (emit_load_store_pair): New function, factored out of emit_stp
9338 with support for MEMORY_OPERAND_POSTINDEX.
9339 (emit_stp): Rewrite using emit_load_store_pair.
9340 (emit_ldp): New function.
9341 (emit_load_store): Likewise.
9342 (emit_ldr): Mention post-index instruction in comment.
9343 (emit_ldrh): New function.
9344 (emit_ldrb): New function.
9345 (emit_ldrsw): Mention post-index instruction in comment.
9346 (emit_str): Likewise.
9347 (emit_subs): New function.
9348 (emit_cmp): Likewise.
9349 (emit_and): Likewise.
9350 (emit_orr): Likewise.
9351 (emit_orn): Likewise.
9352 (emit_eor): Likewise.
9353 (emit_mvn): Likewise.
9354 (emit_lslv): Likewise.
9355 (emit_lsrv): Likewise.
9356 (emit_asrv): Likewise.
9357 (emit_mul): Likewise.
9358 (emit_sbfm): Likewise.
9359 (emit_sbfx): Likewise.
9360 (emit_ubfm): Likewise.
9361 (emit_ubfx): Likewise.
9362 (emit_csinc): Likewise.
9363 (emit_cset): Likewise.
9364 (emit_nop): Likewise.
9365 (emit_ops_insns): New helper function.
9366 (emit_pop): Likewise.
9367 (emit_push): Likewise.
9368 (aarch64_emit_prologue): New function.
9369 (aarch64_emit_epilogue): Likewise.
9370 (aarch64_emit_add): Likewise.
9371 (aarch64_emit_sub): Likewise.
9372 (aarch64_emit_mul): Likewise.
9373 (aarch64_emit_lsh): Likewise.
9374 (aarch64_emit_rsh_signed): Likewise.
9375 (aarch64_emit_rsh_unsigned): Likewise.
9376 (aarch64_emit_ext): Likewise.
9377 (aarch64_emit_log_not): Likewise.
9378 (aarch64_emit_bit_and): Likewise.
9379 (aarch64_emit_bit_or): Likewise.
9380 (aarch64_emit_bit_xor): Likewise.
9381 (aarch64_emit_bit_not): Likewise.
9382 (aarch64_emit_equal): Likewise.
9383 (aarch64_emit_less_signed): Likewise.
9384 (aarch64_emit_less_unsigned): Likewise.
9385 (aarch64_emit_ref): Likewise.
9386 (aarch64_emit_if_goto): Likewise.
9387 (aarch64_emit_goto): Likewise.
9388 (aarch64_write_goto_address): Likewise.
9389 (aarch64_emit_const): Likewise.
9390 (aarch64_emit_call): Likewise.
9391 (aarch64_emit_reg): Likewise.
9392 (aarch64_emit_pop): Likewise.
9393 (aarch64_emit_stack_flush): Likewise.
9394 (aarch64_emit_zero_ext): Likewise.
9395 (aarch64_emit_swap): Likewise.
9396 (aarch64_emit_stack_adjust): Likewise.
9397 (aarch64_emit_int_call_1): Likewise.
9398 (aarch64_emit_void_call_2): Likewise.
9399 (aarch64_emit_eq_goto): Likewise.
9400 (aarch64_emit_ne_goto): Likewise.
9401 (aarch64_emit_lt_goto): Likewise.
9402 (aarch64_emit_le_goto): Likewise.
9403 (aarch64_emit_gt_goto): Likewise.
9404 (aarch64_emit_ge_got): Likewise.
9405 (aarch64_emit_ops_impl): New static global variable.
9406 (aarch64_emit_ops): New target function, return
9407 &aarch64_emit_ops_impl.
9408 (struct linux_target_ops): Install it.
9410 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9412 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
9413 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
9415 * linux-aarch64-ipa.c: New file.
9416 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
9418 (aarch64_get_thread_area): New target method.
9419 (extract_signed_bitfield): New helper function.
9420 (aarch64_decode_ldr_literal): New function.
9421 (enum aarch64_opcodes): New enum.
9422 (struct aarch64_register): New struct.
9423 (struct aarch64_operand): New struct.
9424 (x0): New static global.
9433 (aarch64_register): New helper function.
9434 (register_operand): Likewise.
9435 (immediate_operand): Likewise.
9436 (struct aarch64_memory_operand): New struct.
9437 (offset_memory_operand): New helper function.
9438 (preindex_memory_operand): Likewise.
9439 (enum aarch64_system_control_registers): New enum.
9440 (ENCODE): New macro.
9441 (emit_insn): New helper function.
9442 (emit_b): New function.
9443 (emit_bcond): Likewise.
9444 (emit_cb): Likewise.
9445 (emit_tb): Likewise.
9446 (emit_blr): Likewise.
9447 (emit_stp): Likewise.
9448 (emit_ldp_q_offset): Likewise.
9449 (emit_stp_q_offset): Likewise.
9450 (emit_load_store): Likewise.
9451 (emit_ldr): Likewise.
9452 (emit_ldrsw): Likewise.
9453 (emit_str): Likewise.
9454 (emit_ldaxr): Likewise.
9455 (emit_stxr): Likewise.
9456 (emit_stlr): Likewise.
9457 (emit_data_processing_reg): Likewise.
9458 (emit_data_processing): Likewise.
9459 (emit_add): Likewise.
9460 (emit_sub): Likewise.
9461 (emit_mov): Likewise.
9462 (emit_movk): Likewise.
9463 (emit_mov_addr): Likewise.
9464 (emit_mrs): Likewise.
9465 (emit_msr): Likewise.
9466 (emit_sevl): Likewise.
9467 (emit_wfe): Likewise.
9468 (append_insns): Likewise.
9469 (can_encode_int32_in): New helper function.
9470 (aarch64_relocate_instruction): New function.
9471 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
9472 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
9473 (struct linux_target_ops): Install aarch64_get_thread_area,
9474 aarch64_install_fast_tracepoint_jump_pad and
9475 aarch64_get_min_fast_tracepoint_insn_len.
9477 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9479 * Makefile.in (aarch64-insn.o): New rule.
9480 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
9482 2015-09-21 Yao Qi <yao.qi@linaro.org>
9484 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
9486 2015-09-21 Yao Qi <yao.qi@linaro.org>
9488 * tracepoint.c (max_jump_pad_size): Remove.
9490 2015-09-18 Yao Qi <yao.qi@linaro.org>
9492 * linux-aarch64-low.c: Don't include sys/uio.h.
9493 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
9495 2015-09-16 Wei-cheng Wang <cole945@gmail.com>
9497 * tracepoint.c (eval_result_type): Change prototype.
9498 (condition_true_at_tracepoint): Fix argument to compiled_cond.
9500 2015-09-15 Pedro Alves <palves@redhat.com>
9502 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
9503 Check whether to report exec events instead of checking whether
9504 multiprocess is enabled.
9506 2015-09-15 Pedro Alves <palves@redhat.com>
9509 * remote-utils.c (prepare_resume_reply): Merge
9510 TARGET_WAITKIND_VFORK_DONE switch case with the
9511 TARGET_WAITKIND_FORKED case.
9513 2015-09-15 Yao Qi <yao.qi@linaro.org>
9515 * server.c (handle_query): Check string comparison using
9516 "else if" instead of "if".
9518 2015-09-15 Yao Qi <yao.qi@linaro.org>
9520 * server.c (vCont_supported): New global variable.
9521 (handle_query): Set vCont_supported to 1 if "vContSupported+"
9522 matches. Append ";vContSupported+" to own_buf.
9523 (handle_v_requests): Append ";s;S" to own_buf if target supports
9524 hardware single step or vCont_supported is false.
9525 (capture_main): Set vCont_supported to zero.
9527 2015-09-15 Yao Qi <yao.qi@linaro.org>
9529 * linux-low.c (linux_supports_conditional_breakpoints): Rename
9531 (linux_supports_hardware_single_step): ... New function.
9532 (linux_target_ops): Update.
9533 * lynx-low.c (lynx_target_ops): Set field
9534 supports_hardware_single_step to target_can_do_hardware_single_step.
9535 * nto-low.c (nto_target_ops): Likewise.
9536 * spu-low.c (spu_target_ops): Likewise.
9537 * win32-low.c (win32_target_ops): Likewise.
9538 * target.c (target_can_do_hardware_single_step): New function.
9539 * target.h (struct target_ops) <supports_conditional_breakpoints>:
9540 Remove. <supports_hardware_single_step>: New field.
9541 (target_supports_conditional_breakpoints): Remove.
9542 (target_supports_hardware_single_step): New macro.
9543 (target_can_do_hardware_single_step): Declare.
9544 * server.c (handle_query): Use target_supports_hardware_single_step
9545 instead of target_supports_conditional_breakpoints.
9547 2015-09-15 Yao Qi <yao.qi@linaro.org>
9549 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
9551 (struct linux_target_ops the_low_target): Install
9552 aarch64_linux_siginfo_fixup.
9554 2015-09-11 Don Breazeal <donb@codesourcery.com>
9555 Luis Machado <lgustavo@codesourcery.com>
9557 * linux-low.c (linux_mourn): Static declaration.
9558 (linux_arch_setup): Move in front of
9559 handle_extended_wait.
9560 (linux_arch_setup_thread): New function.
9561 (handle_extended_wait): Handle exec events. Call
9562 linux_arch_setup_thread. Make event_lwp argument a
9563 pointer-to-a-pointer.
9564 (check_zombie_leaders): Do not check stopped threads.
9565 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
9566 (linux_low_filter_event): Add lwp and thread for exec'ing
9567 non-leader thread if leader thread has been deleted.
9568 Refactor code into linux_arch_setup_thread and call it.
9569 Pass child lwp pointer by reference to handle_extended_wait.
9570 (linux_wait_for_event_filtered): Update comment.
9571 (linux_wait_1): Prevent clobbering exec event status.
9572 (linux_supports_exec_events): New function.
9573 (linux_target_ops) <supports_exec_events>: Initialize new member.
9574 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
9576 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
9577 * server.c (report_exec_events): New global variable.
9578 (handle_query): Handle qSupported query for exec-events feature.
9579 (captured_main): Initialize report_exec_events.
9580 * server.h (report_exec_events): Declare new global variable.
9581 * target.h (struct target_ops) <supports_exec_events>: New
9583 (target_supports_exec_events): New macro.
9584 * win32-low.c (win32_target_ops) <supports_exec_events>:
9585 Initialize new member.
9587 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
9589 * linux-low.c (linux_low_enable_btrace): Remove.
9590 (linux_target_ops): Replace linux_low_enable_btrace with
9591 linux_enable_btrace.
9593 2015-09-03 Yao Qi <yao.qi@linaro.org>
9595 * linux-aarch64-low.c (aarch64_insert_point): Call
9596 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
9599 2015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9601 * linux-low.c (check_stopped_by_breakpoint): Use
9602 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
9604 2015-08-27 Pedro Alves <palves@redhat.com>
9606 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
9608 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
9610 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
9611 the XNEW-family equivalent.
9612 (compile_bytecodes): Likewise.
9613 * dll.c (loaded_dll): Likewise.
9614 * event-loop.c (append_callback_event): Likewise.
9615 (create_file_handler): Likewise.
9616 (create_file_event): Likewise.
9617 * hostio.c (handle_open): Likewise.
9618 * inferiors.c (add_thread): Likewise.
9619 (add_process): Likewise.
9620 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
9621 * linux-arm-low.c (arm_new_process): Likewise.
9622 (arm_new_thread): Likewise.
9623 * linux-low.c (add_to_pid_list): Likewise.
9624 (linux_add_process): Likewise.
9625 (handle_extended_wait): Likewise.
9626 (add_lwp): Likewise.
9627 (enqueue_one_deferred_signal): Likewise.
9628 (enqueue_pending_signal): Likewise.
9629 (linux_resume_one_lwp_throw): Likewise.
9630 (linux_resume_one_thread): Likewise.
9631 (linux_read_memory): Likewise.
9632 (linux_write_memory): Likewise.
9633 * linux-mips-low.c (mips_linux_new_process): Likewise.
9634 (mips_linux_new_thread): Likewise.
9635 (mips_add_watchpoint): Likewise.
9636 * linux-x86-low.c (initialize_low_arch): Likewise.
9637 * lynx-low.c (lynx_add_process): Likewise.
9638 * mem-break.c (set_raw_breakpoint_at): Likewise.
9639 (set_breakpoint): Likewise.
9640 (add_condition_to_breakpoint): Likewise.
9641 (add_commands_to_breakpoint): Likewise.
9642 (clone_agent_expr): Likewise.
9643 (clone_one_breakpoint): Likewise.
9644 * regcache.c (new_register_cache): Likewise.
9645 * remote-utils.c (look_up_one_symbol): Likewise.
9646 * server.c (queue_stop_reply): Likewise.
9647 (start_inferior): Likewise.
9648 (queue_stop_reply_callback): Likewise.
9649 (handle_target_event): Likewise.
9650 * spu-low.c (fetch_ppc_memory): Likewise.
9651 (store_ppc_memory): Likewise.
9652 * target.c (set_target_ops): Likewise.
9653 * thread-db.c (thread_db_load_search): Likewise.
9654 (try_thread_db_load_1): Likewise.
9655 * tracepoint.c (add_tracepoint): Likewise.
9656 (add_tracepoint_action): Likewise.
9657 (create_trace_state_variable): Likewise.
9658 (cmd_qtdpsrc): Likewise.
9659 (cmd_qtro): Likewise.
9660 (add_while_stepping_state): Likewise.
9661 * win32-low.c (child_add_thread): Likewise.
9662 (get_image_name): Likewise.
9664 2015-08-25 Yao Qi <yao.qi@linaro.org>
9666 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
9668 2015-08-25 Yao Qi <yao.qi@linaro.org>
9670 * Makefile.in (aarch64-linux.o): New rule.
9671 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
9673 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
9674 (aarch64_init_debug_reg_state): Make it extern.
9675 (aarch64_linux_prepare_to_resume): Remove.
9677 2015-08-25 Yao Qi <yao.qi@linaro.org>
9679 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
9680 lwp_arch_private_info and ptid_of_lwp.
9682 2015-08-25 Yao Qi <yao.qi@linaro.org>
9684 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
9685 Find proc_info by find_process_pid. All callers updated.
9687 2015-08-25 Yao Qi <yao.qi@linaro.org>
9689 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
9691 (debug_reg_change_callback): Remove.
9692 (aarch64_notify_debug_reg_change): Remove.
9694 2015-08-25 Yao Qi <yao.qi@linaro.org>
9696 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
9697 Call current_lwp_ptid.
9699 2015-08-25 Yao Qi <yao.qi@linaro.org>
9701 * linux-aarch64-low.c (debug_reg_change_callback): Use
9704 2015-08-25 Yao Qi <yao.qi@linaro.org>
9706 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
9708 2015-08-25 Yao Qi <yao.qi@linaro.org>
9710 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
9712 2015-08-25 Yao Qi <yao.qi@linaro.org>
9714 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
9717 2015-08-25 Yao Qi <yao.qi@linaro.org>
9719 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
9721 (debug_reg_change_callback): Remove argument entry and add argument
9722 lwp. Remove local variable thread. Don't print thread id in the
9723 debugging output. Don't check whether pid of thread equals to pid.
9724 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
9725 iterate_over_lwps instead find_inferior.
9727 2015-08-24 Pedro Alves <palves@redhat.com>
9729 * inferiors.c (get_first_process): New function.
9730 * inferiors.h (get_first_process): New declaration.
9731 * remote-utils.c (read_ptid): Default to the first process in the
9732 list, instead of to the current thread's process.
9734 2015-08-24 Pedro Alves <palves@redhat.com>
9736 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
9737 * event-loop.c: Likewise.
9738 * remote-utils.c: Likewise.
9739 * tracepoint.c: Likewise.
9741 2015-08-24 Pedro Alves <palves@redhat.com>
9743 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
9746 2015-08-21 Pedro Alves <palves@redhat.com>
9748 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
9749 instead of literal 1.
9751 2015-08-21 Pedro Alves <palves@redhat.com>
9753 * tdesc.c (default_description): Explicitly zero-initialize.
9755 2015-08-21 Pedro Alves <palves@redhat.com>
9758 * inferiors.c (remove_thread): Discard any pending stop reply for
9760 * server.c (remove_all_on_match_pid): Rename to ...
9761 (remove_all_on_match_ptid): ... this. Work with a filter ptid
9763 (discard_queued_stop_replies): Change parameter to a ptid. Now
9765 (handle_v_kill, kill_inferior_callback, captured_main)
9766 (process_serial_event): Adjust.
9767 * server.h (discard_queued_stop_replies): Declare.
9769 2015-08-21 Pedro Alves <palves@redhat.com>
9771 * linux-low.c (wait_for_sigstop): Always switch to no thread
9772 selected if the previously current thread dies.
9773 * lynx-low.c (lynx_request_interrupt): Use the first thread's
9774 process instead of the current thread's.
9775 * remote-utils.c (input_interrupt): Don't check if there's no
9777 * server.c (gdb_read_memory, gdb_write_memory): If setting the
9778 current thread to the general thread fails, error out.
9779 (handle_qxfer_auxv, handle_qxfer_libraries)
9780 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
9781 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
9782 (handle_query): Check if there's a thread selected instead of
9783 checking whether there's any thread in the thread list.
9784 (handle_qxfer_threads, handle_qxfer_btrace)
9785 (handle_qxfer_btrace_conf): Don't error out early if there's no
9786 thread in the thread list.
9787 (handle_v_cont, myresume): Don't set the current thread to the
9789 (process_serial_event) <Hg handling>: Also set thread_id if the
9790 previous general thread is still alive.
9791 (process_serial_event) <g/G handling>: If setting the current
9792 thread to the general thread fails, error out.
9793 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
9794 thread's lwp instead of the current thread's.
9795 * target.c (set_desired_thread): If the desired thread was not
9796 found, leave the current thread pointing to NULL. Return an int
9797 (boolean) indicating success.
9798 * target.h (set_desired_thread): Change return type to int.
9800 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
9802 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
9803 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
9805 (ps_get_thread_area): New function.
9807 2015-08-19 Gary Benson <gbenson@redhat.com>
9809 * hostio.c (handle_pread): Do not attempt to read more data
9810 than hostio_reply_with_data can fit in a packet.
9812 2015-08-18 Joel Brobecker <brobecker@adacore.com>
9814 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
9816 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
9818 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
9820 2015-08-06 Pedro Alves <palves@redhat.com>
9822 * tracepoint.c (expr_eval_result): Now an int.
9824 2015-08-06 Pedro Alves <palves@redhat.com>
9826 * gdbthread.h (struct regcache): Forward declare.
9827 (struct thread_info) <regcache_data>: Now a struct regcache
9829 * inferiors.c (inferior_regcache_data)
9830 (set_inferior_regcache_data): Now work with struct regcache
9832 * inferiors.h (struct regcache): Forward declare.
9833 (inferior_regcache_data, set_inferior_regcache_data): Now work
9834 with struct regcache pointers.
9835 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
9836 (free_register_cache_thread): Remove struct regcache pointer
9839 2015-08-06 Pedro Alves <palves@redhat.com>
9841 * server.c (captured_main): On error, print the exception message
9842 to stderr, and if run_once is set, throw a quit.
9844 2015-08-06 Pedro Alves <palves@redhat.com>
9846 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
9849 2015-08-06 Pedro Alves <palves@redhat.com>
9851 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
9852 reading beyond the passed in buffer length.
9854 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
9856 * tracepoint.c (symbol_list) <required>: Remove.
9858 2015-08-06 Pedro Alves <palves@redhat.com>
9860 * linux-low.c (handle_extended_wait): Set the fork child's suspend
9861 count if stopping and suspending threads.
9862 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
9863 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
9864 (linux_detach): Complete an ongoing step-over.
9865 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
9867 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
9868 (linux_wait_1): If passing a signal to the inferior after
9869 finishing a step-over, unsuspend and re-resume all lwps. If we
9870 see a single-step event but the thread should be continuing, don't
9871 pass the trap to gdb.
9872 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
9873 internal_error instead of gdb_assert.
9874 (enqueue_pending_signal): New function.
9875 (check_ptrace_stopped_lwp_gone): Add debug output.
9876 (start_step_over): Use internal_error instead of gdb_assert.
9877 (complete_ongoing_step_over): New function.
9878 (linux_resume_one_thread): Don't resume a suspended thread.
9879 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
9882 2015-08-06 Pedro Alves <palves@redhat.com>
9884 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
9885 (linux_thread_alive): Use lwp_is_marked_dead.
9886 (extended_event_reported): Delete.
9887 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
9888 instead of extended_event_reported.
9889 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
9891 (lwp_is_marked_dead): New function.
9892 (lwp_running): Use lwp_is_marked_dead.
9893 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
9896 2015-08-06 Pedro Alves <palves@redhat.com>
9898 * linux-low.c (linux_wait_1): Move fork event output out of the
9899 !report_to_gdb check. Pass event_child->waitstatus to
9900 target_waitstatus_to_string instead of ourstatus.
9902 2015-08-04 Yao Qi <yao.qi@linaro.org>
9904 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
9905 if current_thread is 32 bit.
9907 2015-08-04 Yao Qi <yao.qi@linaro.org>
9909 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
9910 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
9911 * server.c (extended_protocol): Remove "static".
9912 * server.h (extended_protocol): Declare it.
9914 2015-08-04 Yao Qi <yao.qi@linaro.org>
9916 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
9917 both aarch64 and aarch32.
9918 (aarch64_set_pc): Likewise.
9920 2015-08-04 Yao Qi <yao.qi@linaro.org>
9922 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
9923 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
9924 arm-with-neon.xml to srv_xmlfiles.
9925 * linux-aarch64-low.c: Include linux-aarch32-low.h.
9926 (is_64bit_tdesc): New function.
9927 (aarch64_linux_read_description): New function.
9928 (aarch64_arch_setup): Call aarch64_linux_read_description.
9929 (regs_info): Rename to regs_info_aarch64.
9930 (aarch64_regs_info): Return right regs_info.
9931 (initialize_low_arch): Call initialize_low_arch_aarch32.
9933 2015-08-04 Yao Qi <yao.qi@linaro.org>
9935 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
9936 * linux-aarch32-low.c: New file.
9937 * linux-aarch32-low.h: New file.
9938 * linux-arm-low.c (arm_fill_gregset): Move it to
9939 linux-aarch32-low.c.
9940 (arm_store_gregset): Likewise.
9941 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
9942 (arm_store_vfpregset): Call arm_store_vfpregset_num.
9943 (arm_arch_setup): Check if PTRACE_GETREGSET works.
9944 (regs_info): Rename to regs_info_arm.
9945 (arm_regs_info): Return regs_info_aarch32 if
9946 have_ptrace_getregset is 1 and target description is
9947 arm_with_neon or arm_with_vfpv3.
9948 (initialize_low_arch): Don't call init_registers_arm_with_neon.
9949 Call initialize_low_arch_aarch32 instead.
9951 2015-08-04 Yao Qi <yao.qi@linaro.org>
9953 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
9954 * linux-low.c: ... here.
9955 * linux-low.h (have_ptrace_getregset): Declare it.
9957 2015-08-04 Pedro Alves <palves@redhat.com>
9959 * thread-db.c (struct thread_db): Use new typedefs.
9960 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
9962 (disable_thread_event_reporting): Cast result of dlsym to
9963 destination function pointer type.
9964 (thread_db_mourn): Use td_ta_delete_ftype.
9966 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
9968 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
9970 (CDX_BREAKPOINT): Define for R2.
9971 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
9972 (the_low_target): Add comments.
9974 2015-07-30 Yao Qi <yao.qi@linaro.org>
9976 * linux-arm-low.c (arm_hwcap): Remove it.
9977 (arm_read_description): New local variable arm_hwcap. Don't
9978 set arm_hwcap to zero.
9980 2015-07-30 Yao Qi <yao.qi@linaro.org>
9982 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
9983 Use regcache->tdesc instead.
9984 (arm_store_wmmxregset): Likewise.
9985 (arm_fill_vfpregset): Likewise.
9986 (arm_store_vfpregset): Likewise.
9988 2015-07-30 Yao Qi <yao.qi@linaro.org>
9990 * linux-arm-low.c: Include arch/arm.h.
9991 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
9992 (arm_store_gregset): Likewise.
9994 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
9996 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
9997 ptrace's 4th parameter.
9999 2015-07-27 Yao Qi <yao.qi@linaro.org>
10001 * configure.srv (case aarch64*-*-linux*): Don't set
10004 2015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
10006 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
10008 * linux-arm-low.c: Likewise.
10009 * linux-cris-low.c: Likewise.
10010 * linux-crisv32-low.c: Likewise.
10011 * linux-low.c: Likewise.
10012 * linux-m68k-low.c: Likewise.
10013 * linux-mips-low.c: Likewise.
10014 * linux-nios2-low.c: Likewise.
10015 * linux-s390-low.c: Likewise.
10016 * linux-sparc-low.c: Likewise.
10017 * linux-tic6x-low.c: Likewise.
10018 * linux-tile-low.c: Likewise.
10019 * linux-x86-low.c: Likewise.
10021 2015-07-24 Pedro Alves <palves@redhat.com>
10023 * config.in: Regenerate.
10024 * configure: Regenerate.
10026 2015-07-24 Pedro Alves <palves@redhat.com>
10028 * acinclude.m4: Include ../ptrace.m4.
10029 * configure.ac: Call GDB_AC_PTRACE.
10030 * config.in, configure: Regenerate.
10032 2015-07-24 Yao Qi <yao.qi@linaro.org>
10034 * linux-low.c (linux_create_inferior): Remove setting to
10035 proc->priv->new_inferior.
10036 (linux_attach): Likewise.
10037 (linux_low_filter_event): Likewise.
10038 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
10040 2015-07-24 Yao Qi <yao.qi@linaro.org>
10042 * linux-low.c (linux_arch_setup): New function.
10043 (linux_low_filter_event): If proc->tdesc is NULL and
10044 proc->attached is true, call the_low_target.arch_setup.
10045 Otherwise, keep status pending, and return.
10046 (linux_resume_one_lwp_throw): Don't call get_pc if
10047 thread->while_stepping isn't NULL. Don't call
10048 get_thread_regcache if proc->tdesc is NULL.
10049 (need_step_over_p): Return 0 if proc->tdesc is NULL.
10050 (linux_target_ops): Install arch_setup.
10051 * server.c (start_inferior): Call the_target->arch_setup.
10052 * target.h (struct target_ops) <arch_setup>: New field.
10053 (target_arch_setup): New marco.
10054 * lynx-low.c (lynx_target_ops): Update.
10055 * nto-low.c (nto_target_ops): Update.
10056 * spu-low.c (spu_target_ops): Update.
10057 * win32-low.c (win32_target_ops): Update.
10059 2015-07-24 Yao Qi <yao.qi@linaro.org>
10061 * linux-low.c (linux_add_process): Don't set
10062 proc->priv->new_inferior.
10063 (linux_create_inferior): Set proc->priv->new_inferior to 1.
10064 (linux_attach): Likewise.
10066 2015-07-24 Yao Qi <yao.qi@linaro.org>
10068 * server.c (start_inferior): Code refactor.
10070 2015-07-24 Yao Qi <yao.qi@linaro.org>
10072 * server.c (process_serial_event): Set general_thread.
10074 2015-07-21 Yao Qi <yao.qi@linaro.org>
10076 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
10077 aarch64_linux_get_debug_reg_capacity.
10079 2015-07-17 Yao Qi <yao.qi@linaro.org>
10081 * Makefile.in (aarch64-linux-hw-point.o): New rule.
10082 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
10083 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
10084 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
10085 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
10086 (AARCH64_HWP_ALIGNMENT): Likewise.
10087 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
10088 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
10089 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
10090 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
10091 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
10092 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
10093 (struct aarch64_debug_reg_state): Likewise.
10094 (struct arch_lwp_info): Likewise.
10095 (aarch64_align_watchpoint): Likewise.
10096 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
10097 (aarch64_watchpoint_length): Likewise.
10098 (aarch64_point_encode_ctrl_reg): Likewise
10099 (aarch64_point_is_aligned): Likewise.
10100 (aarch64_align_watchpoint): Likewise.
10101 (aarch64_linux_set_debug_regs):
10102 (aarch64_dr_state_insert_one_point): Likewise.
10103 (aarch64_dr_state_remove_one_point): Likewise.
10104 (aarch64_handle_breakpoint): Likewise.
10105 (aarch64_handle_aligned_watchpoint): Likewise.
10106 (aarch64_handle_unaligned_watchpoint): Likewise.
10107 (aarch64_handle_watchpoint): Likewise.
10109 2015-07-17 Yao Qi <yao.qi@linaro.org>
10111 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
10112 and don't aarch64_get_debug_reg_state. All callers update.
10113 (aarch64_handle_aligned_watchpoint): Likewise.
10114 (aarch64_handle_unaligned_watchpoint): Likewise.
10115 (aarch64_handle_watchpoint): Likewise.
10116 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
10117 (aarch64_remove_point): Likewise.
10119 2015-07-17 Yao Qi <yao.qi@linaro.org>
10121 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
10123 (aarch64_handle_unaligned_watchpoint): Likewise.
10125 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10127 Revert the previous 3 commits:
10128 Move gdb_regex* to common/
10129 Move linux_find_memory_regions_full & co.
10130 gdbserver build-id attribute generator
10132 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10133 Jan Kratochvil <jan.kratochvil@redhat.com>
10135 gdbserver build-id attribute generator.
10136 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
10137 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
10138 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
10140 (get_dynamic): Use find_pdhr to traverse program headers.
10141 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
10142 (compare_mapping_entry_range, struct find_memory_region_callback_data)
10143 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
10144 (get_hex_build_id): New.
10145 (linux_qxfer_libraries_svr4): Add optional build-id attribute
10146 to reply XML document.
10148 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10149 Jan Kratochvil <jan.kratochvil@redhat.com>
10151 * target.c: Include target/target-utils.h and fcntl.h.
10152 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
10153 (target_fileio_read_stralloc): New functions.
10155 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10157 * Makefile.in (OBS): Add gdb_regex.o.
10158 (gdb_regex.o): New.
10159 * config.in: Rebuilt.
10160 * configure: Rebuilt.
10162 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10163 Jan Kratochvil <jan.kratochvil@redhat.com>
10165 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
10166 * Makefile.in (OBS): Add target-utils.o.
10167 (linux-maps.o, target-utils.o): New.
10168 * configure.srv (srv_linux_obj): Add linux-maps.o.
10170 2015-07-15 Pierre Langlois <pierre.langlois@arm.com>
10172 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
10173 function, return 1.
10174 (the_low_target): Install it.
10176 2015-07-14 Pedro Alves <palves@redhat.com>
10178 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
10179 Instead, ignore ECHILD, and throw an error for other errnos.
10181 2015-07-10 Pedro Alves <palves@redhat.com>
10183 * event-loop.c (struct callback_event) <data>: Change type to
10184 gdb_client_data instance instead of gdb_client_data pointer.
10185 (append_callback_event): Adjust.
10187 2015-07-10 Pierre Langlois <pierre.langlois@arm.com>
10189 * linux-aarch64-low.c: Add comments for each linux_target_ops
10190 method. Remove comments already covered in target_ops and
10191 linux_target_ops definitions.
10192 (the_low_target): Add comments for each unimplemented method.
10194 2015-07-09 Yao Qi <yao.qi@linaro.org>
10196 * linux-aarch64-low.c (aarch64_regmap): Remove.
10197 (aarch64_usrregs_info): Remove.
10198 (regs_info): Set field usrregs to NULL.
10200 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
10202 * linux-low.c: Include "rsp-low.h"
10203 (linux_low_encode_pt_config, linux_low_encode_raw): New.
10204 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
10205 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
10206 (handle_btrace_enable_pt): New.
10207 (handle_btrace_general_set): Support "pt".
10208 (handle_btrace_conf_general_set): Support "pt:size".
10210 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10212 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
10215 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10217 * linux-aarch64-low.c: Remove comment about endianness.
10218 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
10219 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
10222 2015-06-24 Gary Benson <gbenson@redhat.com>
10224 * linux-i386-ipa.c (stdint.h): Do not include.
10225 * lynx-i386-low.c (stdint.h): Likewise.
10226 * lynx-ppc-low.c (stdint.h): Likewise.
10227 * mem-break.c (stdint.h): Likewise.
10228 * thread-db.c (stdint.h): Likewise.
10229 * tracepoint.c (stdint.h): Likewise.
10230 * win32-low.c (stdint.h): Likewise.
10232 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
10234 * server.c (write_qxfer_response): Update call to
10235 remote_escape_output.
10237 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
10238 Jan Kratochvil <jan.kratochvil@redhat.com>
10240 Merge multiple hex conversions.
10241 * gdbreplay.c (tohex): Rename to 'fromhex'.
10242 (logchar): Use fromhex.
10244 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10246 * server.c (handle_qxfer_libraries): Set `version' attribute for
10249 2015-06-10 Gary Benson <gbenson@redhat.com>
10251 * target.h (struct target_ops) <multifs_open>: New field.
10252 <multifs_unlink>: Likewise.
10253 <multifs_readlink>: Likewise.
10254 * linux-low.c (nat/linux-namespaces.h): New include.
10255 (linux_target_ops): Initialize the_target->multifs_open,
10256 the_target->multifs_unlink and the_target->multifs_readlink.
10257 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
10258 * hostio.c (hostio_fs_pid): New static variable.
10259 (hostio_handle_new_gdb_connection): New function.
10260 (handle_setfs): Likewise.
10261 (handle_open): Use the_target->multifs_open as appropriate.
10262 (handle_unlink): Use the_target->multifs_unlink as appropriate.
10263 (handle_readlink): Use the_target->multifs_readlink as
10265 (handle_vFile): Handle vFile:setfs packets.
10266 * server.c (handle_query): Call hostio_handle_new_gdb_connection
10267 after target_handle_new_gdb_connection.
10269 2015-06-10 Gary Benson <gbenson@redhat.com>
10271 * configure.ac (AC_CHECK_FUNCS): Add setns.
10272 * config.in: Regenerate.
10273 * configure: Likewise.
10274 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
10275 (linux-namespaces.o): New rule.
10276 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
10278 2015-06-09 Gary Benson <gbenson@redhat.com>
10280 * hostio.c (handle_open): Process mode argument with
10281 fileio_to_host_mode.
10283 2015-06-01 Yao Qi <yao.qi@linaro.org>
10285 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
10286 * linux-x86-low.c: Likewise.
10288 2015-05-28 Don Breazeal <donb@codesourcery.com>
10290 * linux-low.c (handle_extended_wait): Initialize
10291 thread_info.last_resume_kind for new fork children.
10293 2015-05-15 Pedro Alves <palves@redhat.com>
10295 * target.h (target_handle_new_gdb_connection): Rewrite using if
10296 wrapped in do/while.
10298 2015-05-14 Joel Brobecker <brobecker@adacore.com>
10300 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
10301 * configure, config.in: Regenerate.
10302 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
10305 2015-05-12 Don Breazeal <donb@codesourcery.com>
10307 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
10308 PTRACE_EVENT_VFORK_DONE.
10309 (linux_low_ptrace_options, extended_event_reported): Add vfork
10311 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
10312 and "vforkdone" for RSP 'T' Stop Reply Packet.
10313 * server.h (report_vfork_events): Declare
10316 2015-05-12 Don Breazeal <donb@codesourcery.com>
10318 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
10319 (the_low_target) <new_fork>: Initialize new member.
10320 * linux-arm-low.c (arm_new_fork): New function.
10321 (the_low_target) <new_fork>: Initialize new member.
10322 * linux-low.c (handle_extended_wait): Call new target function
10324 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
10325 * linux-mips-low.c (mips_add_watchpoint): New function
10326 extracted from mips_insert_point.
10327 (the_low_target) <new_fork>: Initialize new member.
10328 (mips_linux_new_fork): New function.
10329 (mips_insert_point): Call mips_add_watchpoint.
10330 * linux-x86-low.c (x86_linux_new_fork): New function.
10331 (the_low_target) <new_fork>: Initialize new member.
10333 2015-05-12 Don Breazeal <donb@codesourcery.com>
10335 * linux-low.c (handle_extended_wait): Implement return value,
10336 rename argument 'event_child' to 'event_lwp', handle
10337 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
10338 (linux_low_ptrace_options): New function.
10339 (linux_low_filter_event): Call linux_low_ptrace_options,
10340 use different argument fo linux_enable_event_reporting,
10341 use return value from handle_extended_wait.
10342 (extended_event_reported): New function.
10343 (linux_wait_1): Call extended_event_reported and set
10344 status to report fork events.
10345 (linux_write_memory): Add pid to debug message.
10346 (reset_lwp_ptrace_options_callback): New function.
10347 (linux_handle_new_gdb_connection): New function.
10348 (linux_target_ops): Initialize new structure member.
10349 * linux-low.h (struct lwp_info) <waitstatus>: New member.
10350 * lynx-low.c: Initialize new structure member.
10351 * remote-utils.c (prepare_resume_reply): Implement stop reason
10352 "fork" for "T" stop message.
10353 * server.c (handle_query): Call handle_new_gdb_connection.
10354 * server.h (report_fork_events): Declare global flag.
10355 * target.h (struct target_ops) <handle_new_gdb_connection>:
10357 (target_handle_new_gdb_connection): New macro.
10358 * win32-low.c: Initialize new structure member.
10360 2015-05-12 Don Breazeal <donb@codesourcery.com>
10362 * mem-break.c (APPEND_TO_LIST): Define macro.
10363 (clone_agent_expr): New function.
10364 (clone_one_breakpoint): New function.
10365 (clone_all_breakpoints): New function.
10366 * mem-break.h: Declare new functions.
10368 2015-05-12 Don Breazeal <donb@codesourcery.com>
10370 * linux-low.c (linux_supports_fork_events): New function.
10371 (linux_supports_vfork_events): New function.
10372 (linux_target_ops): Initialize new structure members.
10373 (initialize_low): Call linux_check_ptrace_features.
10374 * lynx-low.c (lynx_target_ops): Initialize new structure
10376 * server.c (report_fork_events, report_vfork_events):
10378 (handle_query): Add new features to qSupported packet and
10380 (captured_main): Initialize new global variables.
10381 * target.h (struct target_ops) <supports_fork_events>:
10383 <supports_vfork_events>: New member.
10384 (target_supports_fork_events): New macro.
10385 (target_supports_vfork_events): New macro.
10386 * win32-low.c (win32_target_ops): Initialize new structure
10389 2015-05-12 Gary Benson <gbenson@redhat.com>
10391 * server.c (handle_qxfer_exec_file): Use current process
10394 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
10396 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
10397 Remove HAVE_PTRACE_GETREGS conditionals.
10398 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
10399 instead of PTRACE_GETREGS and PTRACE_SETREGS.
10401 2015-05-08 Yao Qi <yao.qi@linaro.org>
10403 * linux-low.c (linux_supports_conditional_breakpoints): New
10405 (linux_target_ops): Install new target method.
10406 * lynx-low.c (lynx_target_ops): Install NULL hook for
10407 supports_conditional_breakpoints.
10408 * nto-low.c (nto_target_ops): Likewise.
10409 * spu-low.c (spu_target_ops): Likewise.
10410 * win32-low.c (win32_target_ops): Likewise.
10411 * server.c (handle_query): Check
10412 target_supports_conditional_breakpoints.
10413 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10415 (target_supports_conditional_breakpoints): New macro.
10417 2015-05-06 Pedro Alves <palves@redhat.com>
10420 * server.c (start_inferior): If the process exits, mourn it.
10422 2015-04-21 Gary Benson <gbenson@redhat.com>
10424 * hostio.c (fileio_open_flags_to_host): Factored out to
10425 fileio_to_host_openflags in common/fileio.c. Single use
10428 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
10430 * linux-xtensa-low.c (xtensa_fill_gregset)
10431 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
10434 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
10436 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
10437 (regs_info): Replace usrregs pointer with NULL.
10439 2015-04-17 Gary Benson <gbenson@redhat.com>
10441 * target.h (struct target_ops) <pid_to_exec_file>: New field.
10442 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
10443 * server.c (handle_qxfer_exec_file): New function.
10444 (qxfer_packets): Add exec-file entry.
10445 (handle_query): Report qXfer:exec-file:read as supported packet.
10447 2015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
10449 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
10451 2015-04-09 Gary Benson <gbenson@redhat.com>
10453 * hostio-errno.c (errno_to_fileio_error): Remove function.
10454 Update caller to use remote_fileio_to_fio_error.
10456 2015-04-09 Yao Qi <yao.qi@linaro.org>
10458 * linux-low.c (linux_insert_point): Call
10459 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
10460 (linux_remove_point): Call remove_memory_breakpoint if type is
10462 * linux-x86-low.c (x86_insert_point): Don't call
10463 insert_memory_breakpoint.
10464 (x86_remove_point): Don't call remove_memory_breakpoint.
10466 2015-04-01 Pedro Alves <palves@redhat.com>
10467 Cleber Rosa <crosa@redhat.com>
10469 * server.c (gdbserver_usage): Reorganize and extend the usage
10472 2015-03-24 Pedro Alves <palves@redhat.com>
10474 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
10475 output. Also dump TRAP_TRACE.
10476 (linux_low_filter_event): In debug output, distinguish a
10477 resume_stop SIGSTOP from a delayed SIGSTOP.
10479 2015-03-24 Gary Benson <gbenson@redhat.com>
10481 * linux-x86-low.c (x86_linux_new_thread): Moved to
10483 (x86_linux_prepare_to_resume): Likewise.
10485 2015-03-24 Gary Benson <gbenson@redhat.com>
10487 * Makefile.in (x86-linux-dregs.o): New rule.
10488 * configure.srv: Add x86-linux-dregs.o to relevant targets.
10489 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
10490 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
10491 (x86_linux_dr_get): Likewise.
10492 (x86_linux_dr_set): Likewise.
10493 (update_debug_registers_callback): Likewise.
10494 (x86_linux_dr_set_addr): Likewise.
10495 (x86_linux_dr_get_addr): Likewise.
10496 (x86_linux_dr_set_control): Likewise.
10497 (x86_linux_dr_get_control): Likewise.
10498 (x86_linux_dr_get_status): Likewise.
10499 (x86_linux_update_debug_registers): Likewise.
10501 2015-03-24 Gary Benson <gbenson@redhat.com>
10503 * linux-x86-low.c (x86_linux_update_debug_registers):
10504 New function, factored out from...
10505 (x86_linux_prepare_to_resume): ...this.
10507 2015-03-24 Gary Benson <gbenson@redhat.com>
10509 * linux-x86-low.c (x86_linux_dr_get): Update comments.
10510 (x86_linux_dr_set): Likewise.
10511 (update_debug_registers_callback): Likewise.
10512 (x86_linux_dr_set_addr): Likewise.
10513 (x86_linux_dr_get_addr): Likewise.
10514 (x86_linux_dr_set_control): Likewise.
10515 (x86_linux_dr_get_control): Likewise.
10516 (x86_linux_dr_get_status): Likewise.
10517 (x86_linux_prepare_to_resume): Likewise.
10519 2015-03-24 Gary Benson <gbenson@redhat.com>
10521 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
10522 Use perror_with_name. Pass string through gettext.
10523 (x86_linux_dr_set): Likewise.
10525 2015-03-24 Gary Benson <gbenson@redhat.com>
10527 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
10528 (x86_linux_dr_set_addr): ...this.
10529 (x86_dr_low_get_addr): Rename to...
10530 (x86_linux_dr_get_addr): ...this.
10531 (x86_dr_low_set_control): Rename to...
10532 (x86_linux_dr_set_control): ...this.
10533 (x86_dr_low_get_control): Rename to...
10534 (x86_linux_dr_get_control): ...this.
10535 (x86_dr_low_get_status): Rename to...
10536 (x86_linux_dr_get_status): ...this.
10537 (x86_dr_low): Update with new function names.
10539 2015-03-24 Gary Benson <gbenson@redhat.com>
10541 * Makefile.in (x86-linux.o): New rule.
10542 * configure.srv: Add x86-linux.o to relevant targets.
10543 * linux-low.c (lwp_set_arch_private_info): New function.
10544 (lwp_arch_private_info): Likewise.
10545 * linux-x86-low.c: Include nat/x86-linux.h.
10546 (arch_lwp_info): Removed structure.
10547 (update_debug_registers_callback):
10548 Use lwp_set_debug_registers_changed.
10549 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
10550 and lwp_set_debug_registers_changed.
10551 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
10553 2015-03-24 Gary Benson <gbenson@redhat.com>
10555 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
10556 * linux-arm-low.c (arm_new_thread): Likewise.
10557 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
10558 * linux-mips-low.c (mips_linux_new_thread): Likewise.
10559 * linux-x86-low.c (x86_linux_new_thread): Likewise.
10560 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
10562 2015-03-24 Gary Benson <gbenson@redhat.com>
10564 * linux-low.c (ptid_of_lwp): New function.
10565 (lwp_is_stopped): Likewise.
10566 (lwp_stop_reason): Likewise.
10567 * linux-x86-low.c (update_debug_registers_callback):
10568 Use lwp_is_stopped.
10569 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
10572 2015-03-24 Gary Benson <gbenson@redhat.com>
10574 * linux-low.h (linux_stop_lwp): Remove declaration.
10576 2015-03-24 Gary Benson <gbenson@redhat.com>
10578 * linux-low.h: Include nat/linux-nat.h.
10579 * linux-low.c (iterate_over_lwps_args): New structure.
10580 (iterate_over_lwps_filter): New function.
10581 (iterate_over_lwps): Likewise.
10582 * linux-x86-low.c (update_debug_registers_callback):
10583 Update signature to what iterate_over_lwps expects.
10584 Remove PID check that iterate_over_lwps now performs.
10585 (x86_dr_low_set_addr): Use iterate_over_lwps.
10586 (x86_dr_low_set_control): Likewise.
10588 2015-03-24 Gary Benson <gbenson@redhat.com>
10590 * linux-x86-low.c (x86_debug_reg_state): New function.
10591 (x86_linux_prepare_to_resume): Use the above.
10593 2015-03-24 Gary Benson <gbenson@redhat.com>
10595 * linux-low.c (current_lwp_ptid): New function.
10596 * linux-x86-low.c: Include nat/linux-nat.h.
10597 (x86_dr_low_get_addr): Use current_lwp_ptid.
10598 (x86_dr_low_get_control): Likewise.
10599 (x86_dr_low_get_status): Likewise.
10601 2015-03-20 Pedro Alves <palves@redhat.com>
10603 * tracepoint.c (cmd_qtstatus): Make "str" const.
10605 2015-03-20 Pedro Alves <palves@redhat.com>
10607 * server.c (handle_general_set): Make "req_str" const.
10609 2015-03-19 Pedro Alves <palves@redhat.com>
10611 * linux-low.c (linux_resume_one_lwp): Rename to ...
10612 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
10613 instead call perror_with_name.
10614 (check_ptrace_stopped_lwp_gone): New function.
10615 (linux_resume_one_lwp): Reimplement as wrapper around
10616 linux_resume_one_lwp_throw that swallows errors if the LWP is
10619 2015-03-19 Pedro Alves <palves@redhat.com>
10621 * linux-low.c (count_events_callback, select_event_lwp_callback):
10622 No longer check whether the thread has resume_stop as last resume
10625 2015-03-19 Pedro Alves <palves@redhat.com>
10627 * linux-low.c (count_events_callback, select_event_lwp_callback):
10628 Use the lwp's status_pending_p field, not the thread's.
10630 2015-03-19 Pedro Alves <palves@redhat.com>
10632 * linux-low.c (select_event_lwp_callback): Update comments to
10633 no longer mention SIGTRAP.
10635 2015-03-18 Gary Benson <gbenson@redhat.com>
10637 * server.c (handle_query): Do not report vFile:fstat as supported.
10639 2015-03-11 Gary Benson <gbenson@redhat.com>
10641 * hostio.c (sys/types.h): New include.
10642 (sys/stat.h): Likewise.
10643 (common-remote-fileio.h): Likewise.
10644 (handle_fstat): New function.
10645 (handle_vFile): Handle vFile:fstat packets.
10647 2015-03-11 Gary Benson <gbenson@redhat.com>
10649 * configure.ac (AC_CHECK_MEMBERS): Add checks for
10650 struct stat.st_blocks and struct stat.st_blksize.
10651 * configure: Regenerate.
10652 * config.in: Likewise.
10653 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
10654 (OBS): Add common-remote-fileio.o.
10655 (common-remote-fileio.o): New rule.
10657 2015-03-09 Pedro Alves <palves@redhat.com>
10659 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
10660 'struct sockaddr' pointer in 'accept' call.
10662 2015-03-09 Pedro Alves <palves@redhat.com>
10665 2015-03-07 Pedro Alves <palves@redhat.com>
10666 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
10667 or <winsock2.h> here. Instead include "gdb_socket.h".
10668 (remote_open): Use union gdb_sockaddr_u.
10669 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
10670 or <winsock2.h> here. Instead include "gdb_socket.h".
10671 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
10672 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
10674 (init_named_socket, gdb_agent_helper_thread): Use union
10677 2015-03-07 Pedro Alves <palves@redhat.com>
10679 * configure.ac (build_warnings): Move
10680 -Wdeclaration-after-statement to the C-specific set.
10681 * configure: Regenerate.
10683 2015-03-07 Pedro Alves <palves@redhat.com>
10685 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
10686 or <winsock2.h> here. Instead include "gdb_socket.h".
10687 (remote_open): Use union gdb_sockaddr_u.
10688 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
10689 or <winsock2.h> here. Instead include "gdb_socket.h".
10690 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
10691 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
10693 (init_named_socket, gdb_agent_helper_thread): Use union
10696 2015-03-07 Pedro Alves <palves@redhat.com>
10698 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
10701 2015-03-06 Yao Qi <yao.qi@linaro.org>
10703 * linux-aarch64-low.c (aarch64_insert_point): Use
10704 show_debug_regs as a boolean.
10705 (aarch64_remove_point): Likewise.
10707 2015-03-05 Pedro Alves <palves@redhat.com>
10709 * lynx-low.c (lynx_target_ops): Install NULL hooks for
10710 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
10711 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
10712 * nto-low.c (nto_target_ops): Likewise.
10713 * spu-low.c (spu_target_ops): Likewise.
10714 * win32-low.c (win32_target_ops): Likewise.
10716 2015-03-04 Pedro Alves <palves@redhat.com>
10718 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
10719 Decide whether a breakpoint triggered based on the SIGTRAP's
10721 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
10722 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
10723 (linux_low_filter_event): Check for breakpoints before checking
10725 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
10727 (linux_stopped_by_sw_breakpoint)
10728 (linux_supports_stopped_by_sw_breakpoint)
10729 (linux_stopped_by_hw_breakpoint)
10730 (linux_supports_stopped_by_hw_breakpoint): New functions.
10731 (linux_target_ops): Install new target methods.
10733 2015-03-04 Pedro Alves <palves@redhat.com>
10735 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
10736 * server.c (swbreak_feature, hwbreak_feature): New globals.
10737 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
10738 (captured_main): Clear swbreak_feature and hwbreak_feature.
10739 * server.h (swbreak_feature, hwbreak_feature): Declare.
10740 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
10741 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
10742 supports_stopped_by_hw_breakpoint>: New fields.
10743 (target_supports_stopped_by_sw_breakpoint)
10744 (target_stopped_by_sw_breakpoint)
10745 (target_supports_stopped_by_hw_breakpoint)
10746 (target_stopped_by_hw_breakpoint): Declare.
10748 2015-03-04 Pedro Alves <palves@redhat.com>
10750 enum lwp_stop_reason -> enum target_stop_reason
10751 * linux-low.c (check_stopped_by_breakpoint): Adjust.
10752 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
10753 (linux_wait_1, stuck_in_jump_pad_callback)
10754 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
10755 (linux_stopped_by_watchpoint):
10756 * linux-low.h (enum lwp_stop_reason): Delete.
10757 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
10758 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
10760 2015-03-04 Yao Qi <yao.qi@linaro.org>
10762 * Makefile.in (SFILES): Add linux-aarch64-low.c.
10764 2015-03-03 Gary Benson <gbenson@redhat.com>
10766 * hostio.c (handle_vFile): Fix prefix lengths.
10768 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
10770 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
10773 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
10775 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
10776 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
10777 (clean): Add "rm -f" for above C files.
10778 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
10779 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
10780 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
10781 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
10782 * linux-s390-low.c (HWCAP_S390_VX): New macro.
10783 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
10784 (init_registers_s390x_vx_linux64)
10785 (init_registers_s390x_tevx_linux64)
10786 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
10787 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
10789 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
10790 (s390_store_vxrs_high): New functions.
10791 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
10793 (s390_arch_setup): Add logic for selecting one of the new target
10794 descriptions. Activate the new vector regsets if applicable.
10795 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
10796 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
10797 and init_registers_s390x_tevx_linux64.
10799 2015-03-01 Pedro Alves <palves@redhat.com>
10801 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
10804 2015-02-27 Pedro Alves <palves@redhat.com>
10806 * linux-x86-low.c (u_debugreg_offset): New function.
10807 (x86_linux_dr_get, x86_linux_dr_set): Use it.
10809 2015-02-27 Pedro Alves <palves@redhat.com>
10811 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
10812 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
10813 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
10814 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
10815 (ps_lsetfpregs, ps_getpid)
10816 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
10817 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
10818 (ps_lsetxregs, ps_plog): Declare.
10820 2015-02-27 Pedro Alves <palves@redhat.com>
10822 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
10823 IP_AGENT_EXPORT_FUNC.
10824 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
10825 IP_AGENT_EXPORT_FUNC.
10826 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
10827 (IP_AGENT_EXPORT): Delete.
10828 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
10829 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
10830 (gdb_trampoline_buffer_error, collecting, gdb_collect)
10831 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
10832 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
10833 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
10834 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
10835 (traceframe_read_count, traceframe_write_count)
10836 (traceframes_created, trace_state_variables, get_raw_reg)
10837 (get_trace_state_variable_value, set_trace_state_variable_value)
10838 (ust_loaded, helper_thread_id, cmd_buf): Use
10839 IPA_SYM_EXPORTED_NAME.
10840 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
10841 (tracepoints) Use IP_AGENT_EXPORT_VAR.
10842 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
10843 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
10844 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
10845 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
10846 EXTERN_C_PUSH/EXTERN_C_POP.
10847 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
10848 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
10849 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
10850 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
10851 (traceframe_write_count, traceframe_read_count)
10852 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
10853 (about_to_request_buffer_space, get_trace_state_variable_value)
10854 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
10855 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
10856 EXTERN_C_PUSH/EXTERN_C_POP.
10857 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
10858 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
10859 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
10860 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
10861 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
10862 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
10863 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
10864 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
10866 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
10867 (IP_AGENT_EXPORT_VAR_DECL): Define.
10868 (tracing): Declare.
10869 (gdb_agent_get_raw_reg): Declare.
10871 2015-02-27 Tom Tromey <tromey@redhat.com>
10872 Pedro Alves <palves@redhat.com>
10874 Rename symbols whose names are reserved C++ keywords throughout.
10876 2015-02-27 Pedro Alves <palves@redhat.com>
10878 * Makefile.in (COMPILER): New, get it from autoconf.
10879 (CXX): Get from autoconf instead.
10880 (COMPILE.pre): Use COMPILER.
10881 (CC-LD): Rename to ...
10882 (CC_LD): ... this. Use COMPILER.
10883 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
10884 (CXX_FOR_TARGET): Default to g++ instead of gcc.
10885 * acinclude.m4: Include build-with-cxx.m4.
10886 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
10887 Disable -Werror by default if building in C++ mode.
10888 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
10889 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
10890 the C++ compiler. Save/restore CXXFLAGS too.
10891 * configure: Regenerate.
10893 2015-02-27 Pedro Alves <palves@redhat.com>
10895 * acinclude.m4: Include libiberty.m4.
10896 * configure.ac: Call libiberty_INIT.
10897 * config.in, configure: Regenerate.
10899 2015-02-26 Pedro Alves <palves@redhat.com>
10901 * linux-low.c (linux_wait_1): When incrementing the PC past a
10902 program breakpoint always use the_low_target.breakpoint_len as
10903 increment, rather than the maximum between that and
10904 the_low_target.decr_pc_after_break.
10906 2015-02-23 Pedro Alves <palves@redhat.com>
10908 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
10909 thread was doing a step-over; always adjust the PC if
10910 we stepped over a permanent breakpoint.
10911 (linux_wait_1): If we stepped over breakpoint that was on top of a
10912 permanent breakpoint, manually advance the PC past it.
10914 2015-02-23 Pedro Alves <palves@redhat.com>
10916 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
10918 (x86_fill_gregset, x86_store_gregset): Use it when handling
10921 2015-02-20 Pedro Alves <palves@redhat.com>
10923 * thread-db.c: Include "nat/linux-procfs.h".
10924 (thread_db_init): Skip listing new threads if the kernel supports
10925 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
10927 2015-02-20 Pedro Alves <palves@redhat.com>
10929 * linux-low.c (status_pending_p_callback): Use ptid_match.
10931 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
10933 PR breakpoints/16812
10934 * linux-low.c (wstatus_maybe_breakpoint): Remove.
10935 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
10936 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
10938 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
10940 PR breakpoints/15956
10941 * tracepoint.c (cmd_qtinit): Add check for current_thread.
10943 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10945 * linux-low.c (linux_low_btrace_conf): Print size.
10946 * server.c (handle_btrace_conf_general_set): New.
10947 (hanle_general_set): Call handle_btrace_conf_general_set.
10948 (handle_query): Report Qbtrace-conf:bts:size as supported.
10950 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10952 * linux-low.c (linux_low_enable_btrace): Update parameters.
10953 (linux_low_btrace_conf): New.
10954 (linux_target_ops)<to_btrace_conf>: Initialize.
10955 * server.c (current_btrace_conf): New.
10956 (handle_btrace_enable): Rename to ...
10957 (handle_btrace_enable_bts): ... this. Pass ¤t_btrace_conf
10958 to target_enable_btrace. Update comment. Update users.
10959 (handle_qxfer_btrace_conf): New.
10960 (qxfer_packets): Add btrace-conf entry.
10961 (handle_query): Report qXfer:btrace-conf:read as supported packet.
10962 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
10963 (target_ops)<read_btrace_conf>: New.
10964 (target_enable_btrace): Update parameters.
10965 (target_read_btrace_conf): New.
10967 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10969 * server.c (handle_btrace_general_set): Remove call to
10970 target_supports_btrace.
10971 (supported_btrace_packets): New.
10972 (handle_query): Call supported_btrace_packets.
10973 * target.h: include btrace-common.h.
10974 (btrace_target_info): Removed.
10975 (supports_btrace, target_supports_btrace): Update parameters.
10977 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10979 * Makefile.in (SFILES): Add common/btrace-common.c.
10980 (OBS): Add common/btrace-common.o.
10981 (btrace-common.o): Add build rules.
10982 * linux-low: Include btrace-common.h.
10983 (linux_low_read_btrace): Use struct btrace_data. Call
10984 btrace_data_init and btrace_data_fini.
10986 2015-02-06 Pedro Alves <palves@redhat.com>
10988 * thread-db.c (find_new_threads_callback): Add debug output.
10990 2015-02-04 Pedro Alves <palves@redhat.com>
10992 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
10993 (resume_stopped_resumed_lwps): New function.
10994 (linux_wait_for_event_filtered): Use it.
10996 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
10998 * Makefile.in (SFILES): Add linux-personality.c.
10999 (linux-personality.o): New rule.
11000 * configure.srv (srv_linux_obj): Add linux-personality.o to the
11001 list of objects to be built.
11002 * linux-low.c: Include nat/linux-personality.h.
11003 (linux_create_inferior): Remove code to disable address space
11004 randomization (moved to ../nat/linux-personality.c). Create
11005 cleanup to disable address space randomization.
11007 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11009 * Makefile.in (posix-strerror.o): New rule.
11010 (mingw-strerror.o): Likewise.
11011 * configure: Regenerated.
11012 * configure.ac: Source file ../common/common.host. Initialize new
11013 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
11015 2015-01-14 Yao Qi <yao@codesourcery.com>
11017 * Makefile.in (SFILES): Add nat/ppc-linux.c.
11018 (ppc-linux.o): New rule.
11019 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
11020 * configure.ac: AC_CHECK_FUNCS(getauxval).
11021 * config.in: Re-generated.
11022 * configure: Re-generated.
11023 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
11024 ppc64_64bit_inferior_p
11026 2015-01-14 Yao Qi <yao@codesourcery.com>
11028 * linux-ppc-low.c: Include "nat/ppc-linux.h".
11029 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
11030 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
11031 (PT_ORIG_R3, PT_TRAP): Likewise.
11032 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
11033 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
11034 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
11036 2015-01-10 Joel Brobecker <brobecker@adacore.com>
11038 * i387-fp.c (i387_cache_to_xsave): In look over
11039 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
11040 zmmh_low_space field by use of zmmh_high_space.
11042 2015-01-09 Pedro Alves <palves@redhat.com>
11044 * linux-low.c (step_over_bkpt): Move higher up in the file.
11045 (handle_extended_wait): Don't store the stop_pc here.
11046 (get_stop_pc): Adjust comments and rename to ...
11047 (check_stopped_by_breakpoint): ... this. Record whether the LWP
11048 stopped for a software breakpoint or hardware breakpoint.
11049 (thread_still_has_status_pending_p): New function.
11050 (status_pending_p_callback): Use
11051 thread_still_has_status_pending_p. If the event is no longer
11052 interesting, resume the LWP.
11053 (handle_tracepoints): Add assert.
11054 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
11055 (wstatus_maybe_breakpoint): New function.
11056 (cancel_breakpoint): Delete function.
11057 (check_stopped_by_watchpoint): New function, factored out from
11058 linux_low_filter_event.
11059 (lp_status_maybe_breakpoint): Delete function.
11060 (linux_low_filter_event): Remove filter_ptid argument.
11061 Leave thread group exits pending here. Store the LWP's stop PC.
11062 Always leave events pending.
11063 (linux_wait_for_event_filtered): Pull all events out of the
11064 kernel, and leave them all pending.
11065 (count_events_callback, select_event_lwp_callback): Consider all
11067 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
11068 (select_event_lwp): Only give preference to the stepping LWP in
11069 all-stop mode. Adjust comments.
11070 (ignore_event): New function.
11071 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
11072 references to cancel_breakpoints. Adjust to renames. Also give
11073 equal priority to all LWPs that have had events in non-stop mode.
11074 If reporting a software breakpoint event, unadjust the LWP's PC.
11075 (linux_wait): If linux_wait_1 returned an ignored event, retry.
11076 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
11078 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
11079 (resume_status_pending_p): Use thread_still_has_status_pending_p.
11080 (linux_stopped_by_watchpoint): Adjust.
11081 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
11082 * linux-low.h (enum lwp_stop_reason): New.
11083 (struct lwp_info) <stop_pc>: Adjust comment.
11084 <stopped_by_watchpoint>: Delete field.
11085 <stop_reason>: New field.
11086 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11087 * mem-break.c (software_breakpoint_inserted_here)
11088 (hardware_breakpoint_inserted_here): New function.
11089 * mem-break.h (software_breakpoint_inserted_here)
11090 (hardware_breakpoint_inserted_here): Declare.
11091 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
11092 (cancel_breakpoints): Delete.
11093 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
11094 (upload_fast_traceframes): Remove references to
11095 cancel_breakpoints.
11097 2015-01-09 Pedro Alves <palves@redhat.com>
11099 * thread-db.c (find_new_threads_callback): Ignore thread if the
11100 kernel thread ID is -1.
11102 2015-01-09 Pedro Alves <palves@redhat.com>
11104 * linux-low.c (linux_attach_fail_reason_string): Move to
11105 nat/linux-ptrace.c, and rename.
11106 (linux_attach_lwp): Update comment.
11107 (attach_proc_task_lwp_callback): New function.
11108 (linux_attach): Adjust to rename and use
11109 linux_proc_attach_tgid_threads.
11110 (linux_attach_fail_reason_string): Delete declaration.
11112 2015-01-01 Joel Brobecker <brobecker@adacore.com>
11114 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
11115 * server.c (gdbserver_version): Likewise.
11117 2014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
11119 * remote-utils.c: Include ctype.h.
11120 (input_interrupt): Explicitly handle the case when the char
11121 received is the NUL byte. Improve the printing of non-ASCII
11124 2014-12-16 Joel Brobecker <brobecker@adacore.com>
11126 * linux-low.c (linux_low_filter_event): Update call to
11127 linux_enable_event_reporting following the addition of
11128 a new parameter to that function.
11130 2014-12-16 Catalin Udma <catalin.udma@freescale.com>
11133 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
11134 (AARCH64_FPCR_REGNO): Likewise.
11135 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
11136 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
11137 (aarch64_store_fpregset): Likewise.
11139 2014-12-15 Joel Brobecker <brobecker@adacore.com>
11141 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
11142 Remove FIXME comment about assumption about N.
11144 2014-12-13 Joel Brobecker <brobecker@adacore.com>
11146 * configure.ac: If large-file support is disabled in GDBserver,
11147 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
11148 * configure: Regenerate.
11150 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11152 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
11153 warning upon ENODATA from ptrace.
11154 * linux-s390-low.c (s390_store_tdb): New.
11155 (s390_regsets): Add regset for NT_S390_TDB.
11157 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11159 * linux-low.c (regsets_store_inferior_registers): Skip regsets
11160 without a fill_function.
11161 * linux-s390-low.c (s390_fill_last_break): Remove.
11162 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
11163 (s390_arch_setup): Use regset's size instead of fill_function for
11164 loop end condition.
11166 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11168 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
11169 the regset's store function when ptrace returned an error.
11170 * regcache.c (get_thread_regcache): Invalidate register cache
11171 before fetching inferior's registers.
11173 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11175 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
11176 while-loop as for-loop.
11177 (regsets_store_inferior_registers): Likewise.
11179 2014-11-28 Yao Qi <yao@codesourcery.com>
11181 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
11182 * config.in, configure: Re-generate.
11183 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
11186 2014-11-21 Yao Qi <yao@codesourcery.com>
11188 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
11189 (AC_CHECK_HEADERS): Remove malloc.h.
11190 * configure: Re-generated.
11191 * config.in: Re-generated.
11192 * server.h: Don't include alloca.h and malloc.h.
11193 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
11194 Don't include malloc.h.
11196 2014-11-17 Joel Brobecker <brobecker@adacore.com>
11198 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
11199 corresponding ERRNO check in same block.
11201 2014-11-12 Pedro Alves <palves@redhat.com>
11203 * server.c (cont_thread): Update comment.
11204 (start_inferior, attach_inferior): No longer clear cont_thread.
11205 (handle_v_cont): No longer set cont_thread.
11206 (captured_main): Clear cont_thread each time a GDB connects.
11208 2014-11-12 Pedro Alves <palves@redhat.com>
11210 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
11211 thread, and don't resume all threads if the Hc thread has exited.
11213 2014-11-12 Pedro Alves <palves@redhat.com>
11215 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
11216 the process group instead of to a specific LWP.
11218 2014-10-15 Pedro Alves <palves@redhat.com>
11221 * win32-arm-low.c (arm_set_thread_context): Remove current_event
11223 (arm_set_thread_context): Delete.
11224 (the_low_target): Adjust.
11225 * win32-i386-low.c (debug_registers_changed)
11226 (debug_registers_used): Delete.
11227 (update_debug_registers_callback): New function.
11228 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
11229 needing to update their debug registers.
11230 (win32_get_current_dr): New function.
11231 (x86_dr_low_get_addr, x86_dr_low_get_control)
11232 (x86_dr_low_get_status): Fetch the debug register from the thread
11234 (i386_initial_stuff): Adjust.
11235 (i386_get_thread_context): Remove current_event parameter. Don't
11236 clear debug_registers_changed nor copy DR values to
11238 (i386_set_thread_context): Delete.
11239 (i386_prepare_to_resume): New function.
11240 (i386_thread_added): Mark the thread as needing to update irs
11242 (the_low_target): Remove i386_set_thread_context and install
11243 i386_prepare_to_resume.
11244 * win32-low.c (win32_get_thread_context): Adjust.
11245 (win32_set_thread_context): Use SetThreadContext
11247 (win32_prepare_to_resume): New function.
11248 (win32_require_context): New function, factored out from ...
11249 (thread_rec): ... this.
11250 (continue_one_thread): Call win32_prepare_to_resume on each thread
11251 we're about to continue.
11252 (win32_resume): Call win32_prepare_to_resume on the event thread.
11253 * win32-low.h (struct win32_thread_info)
11254 <debug_registers_changed>: New field.
11255 (struct win32_target_ops): Change prototype of set_thread_context,
11256 delete set_thread_context and add prepare_to_resume.
11257 (win32_require_context): New declaration.
11259 2014-10-08 Gary Benson <gbenson@redhat.com>
11261 * server.h: Do not include common-exceptions.h.
11263 2014-10-08 Gary Benson <gbenson@redhat.com>
11265 * server.h: Do not include cleanups.h.
11267 2014-09-30 James Hogan <james.hogan@imgtec.com>
11269 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
11270 mips64-dsp-linux.c.
11272 2014-09-23 Yao Qi <yao@codesourcery.com>
11274 * linux-low.c (lp_status_maybe_breakpoint): New function.
11275 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
11276 (count_events_callback): Likewise.
11277 (select_event_lwp_callback): Likewise.
11278 (cancel_breakpoints_callback): Likewise.
11280 2014-09-19 Don Breazeal <donb@codesourcery.com>
11282 * linux-low.c (handle_extended_wait): Call
11283 linux_ptrace_get_extended_event.
11284 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
11285 linux_is_extended_waitstatus.
11287 2014-09-16 Joel Brobecker <brobecker@adacore.com>
11289 * Makefile.in (CPPFLAGS): Define.
11290 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
11291 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
11293 2014-09-16 Gary Benson <gbenson@redhat.com>
11295 * inferiors.h (current_inferior): Renamed as...
11296 (current_thread): New variable. All uses updated.
11297 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
11298 (maybe_move_out_of_jump_pad): Likewise.
11299 (cancel_breakpoint): Likewise.
11300 (linux_low_filter_event): Likewise.
11301 (wait_for_sigstop): Likewise.
11302 (linux_resume_one_lwp): Likewise.
11303 (need_step_over_p): Likewise.
11304 (start_step_over): Likewise.
11305 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
11306 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
11307 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
11308 and save_inferior as saved_thread.
11309 * regcache.c (get_thread_regcache): Renamed saved_inferior as
11311 (regcache_invalidate_thread): Likewise.
11312 * remote-utils.c (prepare_resume_reply): Likewise.
11313 * thread-db.c (thread_db_get_tls_address): Likewise.
11314 (disable_thread_event_reporting): Likewise.
11315 (remove_thread_event_breakpoints): Likewise.
11316 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
11318 * target.h (set_desired_inferior): Renamed as...
11319 (set_desired_thread): New declaration. All uses updated.
11320 * server.c (myresume): Updated comment to reference thread instead
11322 (handle_serial_event): Likewise.
11323 (handle_target_event): Likewise.
11325 2014-09-12 Tom Tromey <tromey@redhat.com>
11326 Gary Benson <gbenson@redhat.com>
11328 * regcache.h: Include common-regcache.h.
11329 (regcache_read_pc): Don't declare.
11330 * regcache.c (get_thread_regcache_for_ptid): New function.
11332 2014-09-11 Tom Tromey <tromey@redhat.com>
11333 Gary Benson <gbenson@redhat.com>
11335 * symbol.c: New file.
11336 * Makefile.in (SFILES): Add symbol.c.
11337 (OBS): Add symbol.o.
11339 2014-09-11 Gary Benson <gbenson@redhat.com>
11341 * target.c (target_stop_ptid, target_continue_ptid): New
11344 2014-09-11 Tom Tromey <tromey@redhat.com>
11345 Gary Benson <gbenson@redhat.com>
11347 * target.h: Include target/target.h.
11348 * target.c (target_read_memory, target_read_uint32)
11349 (target_write_memory): New functions.
11351 2014-09-11 Gary Benson <gbenson@redhat.com>
11353 * server.h (debug_hw_points): Don't declare.
11354 * server.c (debug_hw_points): Don't define. Replace all uses
11355 with show_debug_regs.
11356 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
11357 all uses with show_debug_regs.
11359 2014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
11361 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
11362 endianness into account.
11363 (ppc_supply_ptrace_register): Likewise.
11365 2014-09-03 James Hogan <james.hogan@imgtec.com>
11367 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
11368 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
11370 2014-09-03 Gary Benson <gbenson@redhat.com>
11372 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
11373 ALL_DEBUG_ADDRESS_REGISTERS.
11375 2014-09-02 Gary Benson <gbenson@redhat.com>
11377 * i386-low.h: Renamed as...
11378 * x86-low.h: New file. All type, function and variable name
11379 prefixes changed from "i386_" to "x86_". All references updated.
11380 * i386-low.c: Renamed as...
11381 * x86-low.c: New file. All type, function and variable name
11382 prefixes changed from "i386_" to "x86_". All references updated.
11384 2014-09-02 Gary Benson <gbenson@redhat.com>
11386 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
11387 (x86_linux_new_thread): Likewise.
11389 2014-08-29 Gary Benson <gbenson@redhat.com>
11391 * server.h (setjmp.h): Do not include.
11392 (toplevel): Do not declare.
11393 (common-exceptions.h): Include.
11394 (cleanups.h): Likewise.
11395 * server.c (toplevel): Do not define.
11396 (exit_code): New static global.
11397 (detach_or_kill_for_exit_cleanup): New function.
11398 (main): New function. Original main renamed to...
11399 (captured_main): New function.
11400 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
11402 2014-08-29 Gary Benson <gbenson@redhat.com>
11404 * Makefile.in (SFILES): Add common/common-exceptions.c.
11405 (OBS): Add common-exceptions.o.
11406 (common-exceptions.o): New rule.
11407 * utils.c (prepare_to_throw_exception): New function.
11409 2014-08-29 Gary Benson <gbenson@redhat.com>
11411 * config.in: Regenerate.
11412 * configure: Likewise.
11414 2014-08-29 Gary Benson <gbenson@redhat.com>
11416 * Makefile.in (SFILES): Add common/cleanups.c.
11418 (cleanups.o): New rule.
11420 2014-08-29 Gary Benson <gbenson@redhat.com>
11422 * utils.c (internal_vwarning): New function.
11424 2014-08-28 Gary Benson <gbenson@redhat.com>
11426 * utils.h (fatal): Remove declaration.
11427 * utils.c (fatal): Remove function.
11429 2014-08-28 Gary Benson <gbenson@redhat.com>
11431 * tracepoint.c (gdb_agent_init): Replace fatal with
11433 (initialize_tracepoint): Likewise.
11435 2014-08-28 Gary Benson <gbenson@redhat.com>
11437 * remote-utils.c (remote_prepare): Replace fatal with error.
11439 2014-08-28 Gary Benson <gbenson@redhat.com>
11441 * linux-low.c (linux_async): Replace fatal with warning.
11442 Tidy up and return.
11443 (linux_start_non_stop): Return -1 if linux_async failed.
11445 2014-08-28 Gary Benson <gbenson@redhat.com>
11447 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
11449 (i386_dr_low_get_addr): Remove vague comment.
11450 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
11453 2014-08-28 Gary Benson <gbenson@redhat.com>
11455 * inferiors.c (get_thread_process): Replace check with gdb_assert.
11456 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
11458 (linux_resume_one_lwp): Likewise.
11459 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
11461 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
11462 with internal_error.
11463 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
11464 (init_register_cache): Replace fatal with gdb_assert_not_reached.
11465 (find_register_by_name): Replace fatal with internal_error.
11466 (find_regno): Likewise.
11467 * tdesc.c (init_target_desc): Replace check with gdb_assert.
11468 * thread-db.c (thread_db_create_event): Likewise.
11469 (thread_db_load_search): Likewise.
11470 (try_thread_db_load_1): Likewise.
11471 * tracepoint.c (get_jump_space_head): Replace fatal with
11473 (claim_trampoline_space): Likewise.
11474 (have_fast_tracepoint_trampoline_buffer): Likewise.
11475 (cmd_qtstart): Likewise.
11476 (stop_tracing): Likewise.
11477 (fast_tracepoint_collecting): Likewise.
11478 (target_malloc): Likewise.
11479 (download_tracepoint): Likewise.
11480 (download_trace_state_variables): Replace check with gdb_assert.
11481 (upload_fast_traceframes): Replace fatal with internal_error.
11483 2014-08-19 Tom Tromey <tromey@redhat.com>
11484 Gary Benson <gbenson@redhat.com>
11486 * Makefile.in (SFILES): Add common/common-debug.c.
11487 (OBS): Add common-debug.o.
11488 (common-debug.o): New rule.
11489 * debug.h (debug_printf): Don't declare.
11490 * debug.c (debug_printf): Renamed and rewritten as...
11491 (debug_vprintf): New function.
11493 2014-08-19 Gary Benson <gbenson@redhat.com>
11495 * utils.h: Do not include print-utils.h.
11497 2014-08-19 Tom Tromey <tromey@redhat.com>
11498 Gary Benson <gbenson@redhat.com>
11500 * server.h: Add static assertion.
11501 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
11503 2014-08-19 Tom Tromey <tromey@redhat.com>
11504 Gary Benson <gbenson@redhat.com>
11506 * Makefile.in (SFILES): Add common/errors.c.
11507 (OBS): Add errors.o.
11508 (IPA_OBS): Add errors-ipa.o.
11509 (errors.o): New rule.
11510 (errors-ipa.o): Likewise.
11511 * utils.h (perror_with_name, error, warning): Don't declare.
11512 * utils.c (warning): Renamed and rewritten as...
11513 (vwarning): New function.
11514 (error): Renamed and rewritten as...
11515 (verror): New function.
11516 (internal_error): Renamed and rewritten as...
11517 (internal_verror): New function.
11519 2014-08-07 Gary Benson <gbenson@redhat.com>
11521 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
11522 * configure: Regenerate.
11523 * config.in: Likewise.
11524 * server.h: Do not include errno.h.
11525 * event-loop.c: Likewise.
11526 * hostio-errno.c: Likewise.
11527 * linux-low.c: Likewise.
11528 * remote-utils.c: Likewise.
11529 * spu-low.c: Likewise.
11530 * utils.c: Likewise.
11531 * gdbreplay.c: Unconditionally include errno.h.
11533 2014-08-07 Gary Benson <gbenson@redhat.com>
11535 * server.h: Do not include string.h.
11536 * event-loop.c: Likewise.
11537 * linux-low.c: Likewise.
11538 * regcache.c: Likewise.
11539 * remote-utils.c: Likewise.
11540 * spu-low.c: Likewise.
11541 * utils.c: Likewise.
11543 2014-08-07 Gary Benson <gbenson@redhat.com>
11545 * server.h: Do not include gdb_assert.h.
11547 2014-08-07 Gary Benson <gbenson@redhat.com>
11549 * server.h: Do not include common-utils.h.
11551 2014-08-07 Gary Benson <gbenson@redhat.com>
11553 * server.h: Do not include ptid.h.
11554 * notif.h: Likewise.
11556 2014-08-07 Gary Benson <gbenson@redhat.com>
11558 * server.h: Do not include gdb_locale.h.
11560 2014-08-07 Gary Benson <gbenson@redhat.com>
11562 * server.h: Do not include gdb/signals.h.
11563 * win32-low.c: Likewise.
11565 2014-08-07 Gary Benson <gbenson@redhat.com>
11567 * server.h: Do not include pathmax.h.
11569 2014-08-07 Gary Benson <gbenson@redhat.com>
11571 * server.h: Do not include libiberty.h.
11572 * linux-bfin-low.c: Likewise.
11574 2014-08-07 Gary Benson <gbenson@redhat.com>
11576 * server.h: Do not include ansidecl.h.
11578 2014-08-07 Gary Benson <gbenson@redhat.com>
11580 * linux-x86-low.c: Do not include stddef.h.
11581 * lynx-ppc-low.c: Likewise.
11582 * tracepoint.c: Likewise.
11584 2014-08-07 Gary Benson <gbenson@redhat.com>
11586 * server.h: Do not include stdarg.h.
11587 * nto-low.c: Likewise.
11589 2014-08-07 Gary Benson <gbenson@redhat.com>
11591 * server.h: Do not include stdlib.h.
11592 * inferiors.c: Likewise.
11593 * linux-low.c: Likewise.
11594 * regcache.c: Likewise.
11595 * spu-low.c: Likewise.
11596 * tracepoint.c: Likewise.
11597 * utils.c: Likewise.
11599 2014-08-07 Gary Benson <gbenson@redhat.com>
11601 * server.h: Do not include stdio.h.
11602 * linux-low.c: Likewise.
11603 * remote-utils.c: Likewise.
11604 * spu-low.c: Likewise.
11605 * utils.c: Likewise.
11606 * wincecompat.c: Likewise.
11608 2014-08-06 Gary Benson <gbenson@redhat.com>
11610 * regcache.c (init_register_cache): Move conditionals inside if.
11612 2014-08-06 Gary Benson <gbenson@redhat.com>
11614 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
11616 2014-07-31 Gary Benson <gbenson@redhat.com>
11618 * ax.h: Do not include server.h.
11619 * gdbthread.h: Likewise.
11620 * lynx-low.h: Likewise.
11621 * notif.h: Likewise.
11623 2014-07-30 Gary Benson <gbenson@redhat.com>
11625 * server.h: Include common-defs.h.
11626 Do not include config.h or build-gnulib-gdbserver/config.h.
11628 2014-07-30 Gary Benson <gbenson@redhat.com>
11630 * hostio-errno.c: Move server.h to top of includes list.
11631 * inferiors.c: Likewise.
11632 * linux-x86-low.c: Likewise.
11633 * notif.c: Include server.h.
11635 2014-07-24 Tom Tromey <tromey@redhat.com>
11636 Gary Benson <gbenson@redhat.com>
11638 * server.h (CORE_ADDR): Now unsigned.
11640 2014-07-16 Pedro Alves <palves@redhat.com>
11642 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
11644 2014-07-15 Pedro Alves <palves@redhat.com>
11646 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
11649 2014-07-11 Pedro Alves <palves@redhat.com>
11651 * linux-low.c (kill_wait_lwp): New function, based on
11652 kill_one_lwp_callback, but use my_waitpid directly.
11653 (kill_one_lwp_callback, linux_kill): Use it.
11655 2014-06-23 Pedro Alves <palves@redhat.com>
11657 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
11658 before setting DR0..DR3.
11660 2014-06-20 Gary Benson <gbenson@redhat.com>
11662 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
11663 * configure: Regenerated.
11664 * config.in: Likewise.
11666 2014-06-20 Gary Benson <gbenson@redhat.com>
11668 * Makefile.in (SFILES): Update locations for files moved
11669 from common to nat.
11670 (object file files): Reordered.
11672 2014-06-20 Gary Benson <gbenson@redhat.com>
11674 * i386-low.h (i386_dr_low_can_set_addr): Removed.
11675 (i386_dr_low_set_addr): Likewise.
11676 (i386_dr_low_get_addr): Likewise.
11677 (i386_dr_low_can_set_control): Likewise.
11678 (i386_dr_low_set_control): Likewise.
11679 (i386_dr_low_get_control): Likewise.
11680 (i386_dr_low_get_status): Likewise.
11681 (i386_get_debug_register_length): Likewise.
11682 * linux-x86-low.c (i386_dr_low_set_addr):
11683 Changed signature. Made static.
11684 (i386_dr_low_get_addr): Likewise.
11685 (i386_dr_low_set_control): Likewise.
11686 (i386_dr_low_get_control): Likewise.
11687 (i386_dr_low_get_status): Likewise.
11688 (i386_dr_low): New global variable.
11689 * win32-i386-low.c (i386_dr_low_set_addr):
11690 Changed signature. Made static.
11691 (i386_dr_low_get_addr): Likewise.
11692 (i386_dr_low_set_control): Likewise.
11693 (i386_dr_low_get_control): Likewise.
11694 (i386_dr_low_get_status): Likewise.
11695 (i386_dr_low): New global variable.
11697 2014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
11699 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
11700 * Makefile.in (AR, AR_FLAGS): Define.
11701 * configure: Regenerate.
11703 2014-06-19 Gary Benson <gbenson@redhat.com>
11705 * Makefile.in (i386-dregs.o): New rule.
11706 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
11707 * i386-low.c (target.h): Remove include.
11708 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
11709 (DR_CONTROL_SHIFT): Likewise.
11710 (DR_CONTROL_SIZE): Likewise.
11711 (DR_RW_EXECUTE): Likewise.
11712 (DR_RW_WRITE): Likewise.
11713 (DR_RW_READ): Likewise.
11714 (DR_RW_IORW): Likewise.
11715 (DR_LEN_1): Likewise.
11716 (DR_LEN_2): Likewise.
11717 (DR_LEN_4): Likewise.
11718 (DR_LEN_8): Likewise.
11719 (DR_LOCAL_ENABLE_SHIFT): Likewise.
11720 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
11721 (DR_ENABLE_SIZE): Likewise.
11722 (DR_LOCAL_SLOWDOWN): Likewise.
11723 (DR_GLOBAL_SLOWDOWN): Likewise.
11724 (DR_CONTROL_RESERVED): Likewise.
11725 (I386_DR_CONTROL_MASK): Likewise.
11726 (I386_DR_VACANT): Likewise.
11727 (I386_DR_LOCAL_ENABLE): Likewise.
11728 (I386_DR_GLOBAL_ENABLE): Likewise.
11729 (I386_DR_DISABLE): Likewise.
11730 (I386_DR_SET_RW_LEN): Likewise.
11731 (I386_DR_GET_RW_LEN): Likewise.
11732 (I386_DR_WATCH_HIT): Likewise.
11733 (i386_wp_op_t): Likewise.
11734 (i386_show_dr): Likewise.
11735 (i386_length_and_rw_bits): Likewise.
11736 (i386_insert_aligned_watchpoint): Likewise.
11737 (i386_remove_aligned_watchpoint): Likewise.
11738 (i386_handle_nonaligned_watchpoint): Likewise.
11739 i386_update_inferior_debug_regs(): Likewise.
11740 (i386_dr_insert_watchpoint): Likewise.
11741 (i386_dr_remove_watchpoint): Likewise.
11742 (i386_dr_region_ok_for_watchpoint): Likewise.
11743 (i386_dr_stopped_data_address): Likewise.
11744 (i386_dr_stopped_by_watchpoint): Likewise.
11746 2014-06-19 Gary Benson <gbenson@redhat.com>
11748 * i386-low.c (i386_dr_show): Renamed to
11749 i386_show_dr and made static. All uses updated.
11750 (i386_dr_length_and_rw_bits): Renamed to
11751 i386_length_and_rw_bits and made static.
11753 (i386_dr_insert_aligned_watchpoint): Renamed to
11754 i386_insert_aligned_watchpoint and made static.
11756 (i386_dr_remove_aligned_watchpoint): Renamed to
11757 i386_remove_aligned_watchpoint and made static.
11759 (i386_dr_update_inferior_debug_regs): Renamed to
11760 i386_update_inferior_debug_regs and made static.
11763 2014-06-18 Gary Benson <gbenson@redhat.com>
11765 * i386-low.h (i386_dr_low_can_set_addr): New macro.
11766 (i386_dr_low_can_set_control): Likewise.
11767 (i386_get_debug_register_length): Likewise.
11768 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
11769 (i386_dr_low_can_set_control): Likewise.
11770 (i386_get_debug_register_length): Likewise.
11772 2014-06-17 Gary Benson <gbenson@redhat.com>
11774 * i386-low.h (i386-dregs.h): New include.
11775 (DR_FIRSTADDR): Now in i386-dregs.h.
11776 (DR_LASTADDR): Likewise.
11777 (DR_NADDR): Likewise.
11778 (DR_STATUS): Likewise.
11779 (DR_CONTROL): Likewise.
11780 (i386_debug_reg_state): Likewise.
11781 (i386_dr_insert_watchpoint): Likewise.
11782 (i386_dr_remove_watchpoint): Likewise.
11783 (i386_dr_region_ok_for_watchpoint): Likewise.
11784 (i386_dr_stopped_data_address): Likewise.
11785 (i386_dr_stopped_by_watchpoint): Likewise.
11786 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
11788 2014-06-18 Gary Benson <gbenson@redhat.com>
11790 * i386-low.h (i386_low_insert_watchpoint): Renamed to
11791 i386_dr_insert_watchpoint.
11792 (i386_low_remove_watchpoint): Renamed to
11793 i386_dr_remove_watchpoint.
11794 (i386_low_region_ok_for_watchpoint): Renamed to
11795 i386_dr_region_ok_for_watchpoint.
11796 (i386_low_stopped_data_address): Renamed to
11797 i386_dr_stopped_data_address.
11798 (i386_low_stopped_by_watchpoint): Renamed to
11799 i386_dr_stopped_by_watchpoint.
11800 * i386-low.c (i386_show_dr): Renamed to
11801 i386_dr_show and made nonstatic. All uses updated.
11802 (i386_length_and_rw_bits): Renamed to
11803 i386_dr_length_and_rw_bits and made nonstatic.
11805 (i386_insert_aligned_watchpoint): Renamed to
11806 i386_dr_insert_aligned_watchpoint and made nonstatic.
11808 (i386_remove_aligned_watchpoint): Renamed to
11809 i386_dr_remove_aligned_watchpoint and made nonstatic.
11811 (i386_update_inferior_debug_regs): Renamed to
11812 i386_dr_update_inferior_debug_regs and made nonstatic.
11814 (i386_low_insert_watchpoint): Renamed to
11815 i386_dr_insert_watchpoint. All uses updated.
11816 (i386_low_remove_watchpoint): Renamed to
11817 i386_dr_remove_watchpoint. All uses updated.
11818 (i386_low_region_ok_for_watchpoint): Renamed to
11819 i386_dr_region_ok_for_watchpoint. All uses updated.
11820 (i386_low_stopped_data_address): Renamed to
11821 i386_dr_stopped_data_address. All uses updated.
11822 (i386_low_stopped_by_watchpoint): Renamed to
11823 i386_dr_stopped_by_watchpoint. All uses updated.
11825 2014-06-18 Gary Benson <gbenson@redhat.com>
11827 * i386-low.c (i386_dr_low_can_set_addr): New macro.
11828 (i386_dr_low_can_set_control): Likewise.
11829 (i386_insert_aligned_watchpoint): New check.
11831 2014-06-18 Gary Benson <gbenson@redhat.com>
11833 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
11836 2014-06-18 Gary Benson <gbenson@redhat.com>
11838 * i386-low.c (i386_length_and_rw_bits): Use internal_error
11839 instead of fatal and error.
11840 (i386_handle_nonaligned_watchpoint): Likewise.
11842 2014-06-18 Gary Benson <gbenson@redhat.com>
11844 * i386-low.c (i386_get_debug_register_length): New macro.
11845 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
11846 (i386_show_dr): Use debug_printf instead of fprintf. Use
11847 phex to format values.
11849 2014-06-18 Gary Benson <gbenson@redhat.com>
11851 * i386-low.h: Comment changes.
11852 * i386-low.c: Likewise.
11854 2014-06-18 Gary Benson <gbenson@redhat.com>
11856 * i386-low.c: Whitespace changes.
11858 2014-06-12 Tom Tromey <tromey@redhat.com>
11860 * utils.c (freeargv): Remove.
11862 2014-06-12 Tom Tromey <tromey@redhat.com>
11864 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
11865 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
11866 (parse_debug_format_options): Likewise.
11867 (gdbserver_usage): Likewise.
11868 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
11869 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
11870 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
11872 ($(LIBGNU)): Depend on libiberty.
11873 (all-lib): Recurse into all subdirs.
11874 (install-only): Invoke "install" target in subdirs.
11875 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
11877 * configure: Rebuild.
11878 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
11879 for vasprintf, vsnprintf, or gettimeofday.
11880 * configure.srv: Don't add safe-ctype.o or lbasename.o to
11883 2014-06-05 Joel Brobecker <brobecker@adacore.com>
11885 * development.sh: Delete.
11886 * Makefile.in (config.status): Adjust dependency on development.sh.
11887 * configure.ac: Adjust development.sh source call.
11888 * configure: Regenerate.
11890 2014-06-02 Pedro Alves <palves@redhat.com>
11892 * ax.c (gdb_free_agent_expr): New function.
11893 * ax.h (gdb_free_agent_expr): New declaration.
11894 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
11896 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
11898 (clear_breakpoint_conditions_and_commands): New function.
11899 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
11900 (clear_breakpoint_conditions_and_commands): New declaration.
11902 2014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11904 * linux-aarch64-low.c (asm/ptrace.h): Include.
11906 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11908 Fix TLS access for -static -pthread.
11909 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
11910 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
11911 (thread_db_load_search, try_thread_db_load_1): Initialize it.
11913 2014-05-20 Pedro Alves <palves@redhat.com>
11915 * linux-aarch64-low.c (aarch64_insert_point)
11916 (aarch64_remove_point): No longer check whether the type is
11917 supported here. Adjust to new interface.
11918 (the_low_target): Install aarch64_supports_z_point_type as
11919 supports_z_point_type method.
11920 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
11921 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
11922 instead of a Z packet char. Adjust.
11923 (arm_supports_z_point_type): New function.
11924 (arm_insert_point, arm_remove_point): Adjust to new interface.
11925 (the_low_target): Install arm_supports_z_point_type.
11926 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
11927 (cris_insert_point, cris_remove_point): Adjust to new interface.
11928 Don't check whether the type is supported here.
11929 (the_low_target): Install cris_supports_z_point_type.
11930 * linux-low.c (linux_supports_z_point_type): New function.
11931 (linux_insert_point, linux_remove_point): Adjust to new interface.
11932 * linux-low.h (struct linux_target_ops) <insert_point,
11933 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
11934 raw_breakpoint pointer parameter.
11935 <supports_z_point_type>: New method.
11936 * linux-mips-low.c (mips_supports_z_point_type): New function.
11937 (mips_insert_point, mips_remove_point): Adjust to new interface.
11938 Use mips_supports_z_point_type.
11939 (the_low_target): Install mips_supports_z_point_type.
11940 * linux-ppc-low.c (the_low_target): Install NULL as
11941 supports_z_point_type method.
11942 * linux-s390-low.c (the_low_target): Install NULL as
11943 supports_z_point_type method.
11944 * linux-sparc-low.c (the_low_target): Install NULL as
11945 supports_z_point_type method.
11946 * linux-x86-low.c (x86_supports_z_point_type): New function.
11947 (x86_insert_point): Adjust to new insert_point interface. Use
11948 insert_memory_breakpoint. Adjust to new
11949 i386_low_insert_watchpoint interface.
11950 (x86_remove_point): Adjust to remove_point interface. Use
11951 remove_memory_breakpoint. Adjust to new
11952 i386_low_remove_watchpoint interface.
11953 (the_low_target): Install x86_supports_z_point_type.
11954 * lynx-low.c (lynx_target_ops): Install NULL as
11955 supports_z_point_type callback.
11956 * nto-low.c (nto_supports_z_point_type): New.
11957 (nto_insert_point, nto_remove_point): Adjust to new interface.
11958 (nto_target_ops): Install nto_supports_z_point_type.
11959 * mem-break.c: Adjust intro comment.
11960 (struct raw_breakpoint) <raw_type, size>: New fields.
11961 <inserted>: Update comment.
11962 <shlib_disabled>: Delete field.
11963 (enum bkpt_type) <gdb_breakpoint>: Delete value.
11964 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
11965 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
11966 (raw_bkpt_type_to_target_hw_bp_type): New function.
11967 (find_enabled_raw_code_breakpoint_at): New function.
11968 (find_raw_breakpoint_at): New type and size parameters. Use them.
11969 (insert_memory_breakpoint): New function, based off
11970 set_raw_breakpoint_at.
11971 (remove_memory_breakpoint): New function.
11972 (set_raw_breakpoint_at): Reimplement.
11973 (set_breakpoint): New, based on set_breakpoint_at.
11974 (set_breakpoint_at): Reimplement.
11975 (delete_raw_breakpoint): Go through the_target->remove_point
11976 instead of assuming memory breakpoints.
11977 (find_gdb_breakpoint_at): Delete.
11978 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
11979 (find_gdb_breakpoint): New function.
11980 (set_gdb_breakpoint_at): Delete.
11981 (z_type_supported): New function.
11982 (set_gdb_breakpoint_1): New function, loosely based off
11983 set_gdb_breakpoint_at.
11984 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
11985 (delete_gdb_breakpoint_at): Delete.
11986 (delete_gdb_breakpoint_1): New function, loosely based off
11987 delete_gdb_breakpoint_at.
11988 (delete_gdb_breakpoint): New function.
11989 (clear_gdb_breakpoint_conditions): Rename to ...
11990 (clear_breakpoint_conditions): ... this. Don't handle a NULL
11992 (add_condition_to_breakpoint): Make static.
11993 (add_breakpoint_condition): Take a struct breakpoint pointer
11994 instead of an address. Adjust.
11995 (gdb_condition_true_at_breakpoint): Rename to ...
11996 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
11998 (gdb_condition_true_at_breakpoint): Reimplement.
11999 (add_breakpoint_commands): Take a struct breakpoint pointer
12000 instead of an address. Adjust.
12001 (gdb_no_commands_at_breakpoint): Rename to ...
12002 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
12003 parameter. Return true if no breakpoint was found. Change debug
12005 (gdb_no_commands_at_breakpoint): Reimplement.
12006 (run_breakpoint_commands): Rename to ...
12007 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
12008 and change return type to boolean.
12009 (run_breakpoint_commands): New function.
12010 (gdb_breakpoint_here): Also check for Z1 breakpoints.
12011 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
12012 breakpoint. Go through the_target->remove_point instead of
12013 assuming memory breakpoint.
12014 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
12015 software and hardware breakpoints.
12016 (reinsert_raw_breakpoint): Go through the_target->insert_point
12017 instead of assuming memory breakpoint.
12018 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
12019 software and hardware breakpoints.
12020 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
12021 Check both software and hardware breakpoints.
12022 (validate_inserted_breakpoint): Assert the breakpoint is a
12023 software breakpoint. Set the inserted flag to -1 instead of
12024 setting shlib_disabled.
12025 (delete_disabled_breakpoints): Adjust.
12026 (validate_breakpoints): Only validate software breakpoints.
12027 Adjust to inserted flag change.
12028 (check_mem_read, check_mem_write): Skip breakpoint types other
12029 than software breakpoints. Adjust to inserted flag change.
12030 * mem-break.h (enum raw_bkpt_type): New enum.
12031 (raw_breakpoint, struct process_info): Forward declare.
12032 (Z_packet_to_target_hw_bp_type): Delete declaration.
12033 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
12034 (set_gdb_breakpoint, delete_gdb_breakpoint)
12035 (clear_breakpoint_conditions): New declarations.
12036 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
12037 (breakpoint_inserted_here): Update comment.
12038 (add_breakpoint_condition, add_breakpoint_commands): Replace
12039 address parameter with a breakpoint pointer parameter.
12040 (gdb_breakpoint_here): Update comment.
12041 (delete_gdb_breakpoint_at): Delete.
12042 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
12043 * server.c (process_point_options): Take a struct breakpoint
12044 pointer instead of an address. Adjust.
12045 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
12046 delete_gdb_breakpoint.
12047 * spu-low.c (spu_target_ops): Install NULL as
12048 supports_z_point_type method.
12049 * target.h: Include mem-break.h.
12050 (struct target_ops) <prepare_to_access_memory>: Update comment.
12051 <supports_z_point_type>: New field.
12052 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12053 instead of a char. Also take a raw breakpoint pointer.
12054 * win32-arm-low.c (the_low_target): Install NULL as
12055 supports_z_point_type.
12056 * win32-i386-low.c (i386_supports_z_point_type): New function.
12057 (i386_insert_point, i386_remove_point): Adjust to new interface.
12058 (the_low_target): Install i386_supports_z_point_type.
12059 * win32-low.c (win32_supports_z_point_type): New function.
12060 (win32_insert_point, win32_remove_point): Adjust to new interface.
12061 (win32_target_ops): Install win32_supports_z_point_type.
12062 * win32-low.h (struct win32_target_ops):
12063 <supports_z_point_type>: New method.
12064 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12065 instead of a char. Also take a raw breakpoint pointer.
12067 2014-05-20 Pedro Alves <palves@redhat.com>
12069 * mem-break.h: Include break-common.h.
12070 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12071 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
12072 (Z_packet_to_target_hw_bp_type): New declaration.
12073 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
12074 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
12075 (Z_PACKET_ACCESS_WP): Delete macros.
12076 (Z_packet_to_hw_type): Delete function.
12077 * i386-low.h: Don't include break-common.h here.
12078 (Z_packet_to_hw_type): Delete declaration.
12079 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
12080 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12081 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
12082 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12083 * linux-aarch64-low.c: Don't include break-common.h here.
12084 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12085 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
12086 (Z_packet_to_target_hw_bp_type): Delete function.
12087 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
12089 (mips_insert_point, mips_remove_point): Use
12090 Z_packet_to_target_hw_bp_type.
12092 2014-05-20 Pedro Alves <palves@redhat.com>
12094 * linux-aarch64-low.c: Include break-common.h.
12095 (enum target_point_type): Delete.
12096 (Z_packet_to_point_type): Rename to ...
12097 (Z_packet_to_target_hw_bp_type): ... this, and return a
12098 target_hw_bp_type instead.
12099 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
12100 instead of an enum target_point_type.
12101 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
12103 (aarch64_dr_state_insert_one_point)
12104 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
12105 (aarch64_handle_aligned_watchpoint)
12106 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
12107 Take an enum target_hw_bp_type instead of an enum
12109 (aarch64_supports_z_point_type): New function.
12110 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
12111 use Z_packet_to_target_hw_bp_type.
12113 2014-05-20 Joel Brobecker <brobecker@adacore.com>
12115 * configure.ac: Only use -Werror by default when DEVELOPMENT
12117 * configure: Regenerate.
12119 2014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
12121 Fix gdbserver qGetTLSAddr for x86_64 -m32.
12122 * linux-x86-low.c (X86_64_USER_REGS): New.
12123 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
12125 2014-04-28 Yao Qi <yao@codesourcery.com>
12127 * Makefile.in (i386-avx512.c): Fix the typo of generated file
12130 2014-04-25 Pedro Alves <palves@redhat.com>
12133 * linux-low.c (linux_attach_fail_reason_string): New function.
12134 (linux_attach_lwp): Delete.
12135 (linux_attach_lwp_1): Rename to ...
12136 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
12137 argument. Remove "initial" parameter. Return int instead of
12138 void. Don't error or warn here.
12139 (linux_attach): Adjust to call linux_attach_lwp. Call error on
12140 failure to attach to the tgid. Call warning when failing to
12142 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
12143 argument. Remove "initial" parameter. Return int instead of
12144 void. Don't error or warn here.
12145 (linux_attach_fail_reason_string): New declaration.
12146 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
12147 interface change. Use linux_attach_fail_reason_string.
12149 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
12150 Walfred Tedeschi <walfred.tedeschi@intel.com>
12152 * Makefile.in: Added rules to handle new files
12153 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
12154 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
12155 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
12156 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
12157 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
12158 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
12159 x32-avx512-linux.o.
12160 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
12161 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
12162 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
12163 i386/x32-avx512.xml.
12164 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
12165 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
12166 i386/x32-avx512-linux.xml.
12167 * i387-fp.c (num_avx512_k_registers): New constant for number
12169 (num_avx512_zmmh_low_registers): New constant for number of
12170 lower ZMM registers (0-15).
12171 (num_avx512_zmmh_high_registers): New constant for number of
12172 higher ZMM registers (16-31).
12173 (num_avx512_ymmh_registers): New contant for number of higher
12174 YMM registers (ymm16-31 added by avx521 on x86_64).
12175 (num_avx512_xmm_registers): New constant for number of higher
12176 XMM registers (xmm16-31 added by AVX512 on x86_64).
12177 (struct i387_xsave): Add space for AVX512 registers.
12178 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
12179 Add code to handle AVX512 registers.
12180 (i387_xsave_to_cache): Add code to handle AVX512 registers.
12181 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
12182 prototypei from generated file.
12183 (tdesc_amd64_avx512_linux): Likewise.
12184 (init_registers_x32_avx512_linux): Likewise.
12185 (tdesc_x32_avx512_linux): Likewise.
12186 (init_registers_i386_avx512_linux): Likewise.
12187 (tdesc_i386_avx512_linux): Likewise.
12188 (x86_64_regmap): Add AVX512 registers.
12189 (x86_linux_read_description): Add code to handle AVX512 XSTATE
12191 (initialize_low_arch): Add code to initialize AVX512 registers.
12193 2014-04-23 Pedro Alves <palves@redhat.com>
12195 * mem-break.c (find_gdb_breakpoint_at): Make static.
12196 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
12198 2014-04-23 Pedro Alves <palves@redhat.com>
12200 * i386-low.c: Don't include break-common.h here.
12201 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12202 prototype to take target_hw_bp_type as argument instead of a Z
12204 * i386-low.h: Include break-common.h here.
12205 (Z_packet_to_hw_type): Declare.
12206 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12208 * linux-x86-low.c (x86_insert_point): Convert the packet number to
12209 a target_hw_bp_type before calling i386_low_insert_watchpoint.
12210 (x86_remove_point): Convert the packet number to a
12211 target_hw_bp_type before calling i386_low_remove_watchpoint.
12212 * win32-i386-low.c (i386_insert_point): Convert the packet number
12213 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
12214 (i386_remove_point): Convert the packet number to a
12215 target_hw_bp_type before calling i386_low_remove_watchpoint.
12217 2014-04-23 Pedro Alves <palves@redhat.com>
12219 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
12221 2014-04-10 Pedro Alves <palves@redhat.com>
12223 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
12224 Check if the condition or command is NULL before checking if the
12225 breakpoint is known. On success, return true.
12226 * mem-break.h (add_breakpoint_condition): Document return.
12227 (add_breakpoint_commands): Add describing comment.
12228 * server.c (skip_to_semicolon): New function.
12229 (process_point_options): Use it.
12231 2014-04-09 Pedro Alves <palves@redhat.com>
12233 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
12236 2014-02-27 Pedro Alves <palves@redhat.com>
12239 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
12241 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
12243 (last_thread_of_process_p): Take a PID argument instead of a
12245 (linux_wait_for_lwp): Delete.
12246 (num_lwps, check_zombie_leaders, not_stopped_callback): New
12248 (linux_low_filter_event): New function, party factored out from
12249 linux_wait_for_event.
12250 (linux_wait_for_event): Rename to ...
12251 (linux_wait_for_event_filtered): ... this. Add new filter ptid
12252 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
12253 sigsuspend. Check for zombie leaders.
12254 (linux_wait_for_event): Reimplement as wrapper around
12255 linux_wait_for_event_filtered.
12256 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
12257 a normal or signal exit is seen, it's the whole process exiting.
12258 (wait_for_sigstop): No longer a for_each_inferior callback.
12259 Rewrite on top of linux_wait_for_event_filtered.
12260 (stop_all_lwps): Call wait_for_sigstop directly.
12261 * server.c (resume, handle_target_event): Handle
12262 TARGET_WAITKIND_NO_RESUMED.
12264 2014-02-26 Joel Brobecker <brobecker@adacore.com>
12266 * win32-low.c (psapi_get_dll_name,
12267 * win32_CreateToolhelp32Snapshot): Delete.
12268 (win32_CreateToolhelp32Snapshot, win32_Module32First)
12269 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
12271 (handle_load_dll): Add function description.
12272 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
12274 2014-02-26 Joel Brobecker <brobecker@adacore.com>
12276 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
12278 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
12279 base address when calling win32_add_one_solib.
12280 (handle_load_dll): Delete local variable load_addr.
12281 Remove 0x1000 offset applied to DLL base address when calling
12282 win32_add_one_solib.
12283 (handle_unload_dll): Add comment.
12285 2014-02-26 Joel Brobecker <brobecker@adacore.com>
12287 * win32-low.c (win32_add_all_dlls): Renames
12288 win32_ensure_ntdll_loaded. Rewrite function documentation.
12289 Adjust implementation to always load all DLLs.
12290 Add 0x1000 offset to DLL base address when calling
12291 win32_add_one_solib.
12292 (child_initialization_done): New static global.
12293 (do_initial_child_stuff): Set child_initialization_done to
12294 zero during child initialization, and 1 after. Replace call
12295 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
12297 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
12298 (handle_unload_dll): Add function documentation.
12299 (get_child_debug_event): Ignore load and unload DLL events
12300 during child initialization.
12302 2014-02-20 Doug Evans <dje@google.com>
12304 Remove global all_lwps.
12305 * inferiors.h (ptid_of): Move here from linux-low.h.
12306 (pid_of, lwpid_of): Ditto.
12307 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
12308 parameter is a struct thread_info * now.
12309 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
12310 directly. Pass &all_threads to find_inferior instead of &all_lwps.
12311 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
12313 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
12314 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
12315 * linux-arm-low.c (update_registers_callback): Update, "entry"
12316 parameter is a struct thread_info * now.
12317 Fetch lwpid from current_inferior directly.
12318 (arm_insert_point): Pass &all_threads to find_inferior instead of
12320 (arm_remove_point): Ditto.
12321 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
12322 (arm_prepare_to_resume): Fetch pid from thread.
12323 (arm_read_description): Fetch lwpid from current_inferior directly.
12324 * linux-low.c (all_lwps): Delete.
12325 (delete_lwp): Delete call to remove_inferior.
12326 (handle_extended_wait): Fetch lwpid from thread.
12327 (add_lwp): Don't set lwp->entry.id. Remove call to
12328 add_inferior_to_list.
12329 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
12330 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
12331 (kill_one_lwp_callback): Ditto.
12332 (linux_kill): Don't dereference NULL pointer.
12333 Fetch ptid,lwpid from thread.
12334 (get_detach_signal): Fetch ptid from thread.
12335 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
12336 Simplify call to regcache_invalidate_thread.
12337 (delete_lwp_callback): Update, "entry" parameter is a
12338 struct thread_info * now. Fetch pid from thread.
12339 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
12340 (status_pending_p_callback): Update, "entry" parameter is a
12341 struct thread_info * now. Fetch ptid from thread.
12342 (find_lwp_pid): Update, "entry" parameter is a
12343 struct thread_info * now.
12344 (linux_wait_for_lwp): Fetch pid from thread.
12345 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
12346 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
12347 (enqueue_one_deferred_signal): Fetch lwpid from thread.
12348 (dequeue_one_deferred_signal): Ditto.
12349 (cancel_breakpoint): Fetch ptid from current_inferior.
12350 (linux_wait_for_event): Pass &all_threads to find_inferior,
12351 not &all_lwps. Fetch ptid, lwpid from thread.
12352 (count_events_callback): Update, "entry" parameter is a
12353 struct thread_info * now.
12354 (select_singlestep_lwp_callback): Ditto.
12355 (select_event_lwp_callback): Ditto.
12356 (cancel_breakpoints_callback): Ditto.
12357 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
12359 (select_event_lwp): Ditto. Fetch ptid from event_thread.
12360 (unsuspend_one_lwp): Update, "entry" parameter is a
12361 struct thread_info * now.
12362 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
12364 (linux_stabilize_threads): Ditto. And for for_each_inferior.
12365 Fetch lwpid from thread, not lwp.
12366 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
12367 Pass &all_threads to find_inferior, not &all_lwps.
12368 (send_sigstop): Fetch lwpid from thread, not lwp.
12369 (send_sigstop_callback): Update, "entry" parameter is a
12370 struct thread_info * now.
12371 (suspend_and_send_sigstop_callback): Ditto.
12372 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
12373 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
12374 struct thread_info * now.
12375 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
12377 (lwp_running): Update, "entry" parameter is a
12378 struct thread_info * now.
12379 (stop_all_lwps): Fetch ptid from thread.
12380 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
12381 (linux_resume_one_lwp): Fetch lwpid from thread.
12382 (linux_set_resume_request): Update, "entry" parameter is a
12383 struct thread_info * now. Fetch pid, lwpid from thread.
12384 (resume_status_pending_p): Update, "entry" parameter is a
12385 struct thread_info * now.
12386 (need_step_over_p): Ditto. Fetch lwpid from thread.
12387 (start_step_over): Fetch lwpid from thread.
12388 (linux_resume_one_thread): Update, "entry" parameter is a
12389 struct thread_info * now. Fetch lwpid from thread.
12390 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
12391 (proceed_one_lwp): Update, "entry" parameter is a
12392 struct thread_info * now. Fetch lwpid from thread.
12393 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
12394 struct thread_info * now.
12395 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
12396 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
12397 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
12399 (regsets_store_inferior_registers): Ditto.
12400 (fetch_register, store_register): Ditto.
12401 (linux_read_memory, linux_write_memory): Ditto.
12402 (linux_request_interrupt): Ditto.
12403 (linux_read_auxv): Ditto.
12404 (linux_xfer_siginfo): Ditto.
12405 (linux_qxfer_spu): Ditto.
12406 (linux_qxfer_libraries_svr4): Ditto.
12407 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
12408 moved to inferiors.h.
12410 (get_thread_lwp): Update.
12411 (struct lwp_info): Delete member "entry". Simplify comment for
12413 (all_lwps): Delete.
12414 * linux-mips-low.c (mips_read_description): Fetch lwpid from
12415 current_inferior directly.
12416 (update_watch_registers_callback): Update, "entry" parameter is a
12417 struct thread_info * now. Fetch pid from thread.
12418 (mips_linux_prepare_to_resume): Fetch ptid from thread.
12419 (mips_insert_point): Fetch lwpid from current_inferior.
12420 Pass &all_threads to find_inferior, not &all_lwps.
12421 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
12422 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
12424 (mips_stopped_data_address): Ditto.
12425 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
12427 * linux-tile-low.c (tile_arch_setup): Ditto.
12428 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
12429 (update_debug_registers_callback): Update, "entry" parameter is a
12430 struct thread_info * now. Fetch pid from thread.
12431 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
12432 Pass &all_threads to find_inferior, not &all_lwps.
12433 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
12434 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
12435 Pass &all_threads to find_inferior, not &all_lwps.
12436 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
12437 (i386_dr_low_get_status): Ditto.
12438 (x86_linux_prepare_to_resume): Fetch ptid from thread.
12439 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
12440 (x86_linux_read_description): Ditto.
12441 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
12443 2014-02-20 Doug Evans <dje@google.com>
12445 * inferiors.c (get_first_inferior): Fix buglet.
12447 2014-02-19 Doug Evans <dje@google.com>
12449 * gdbthread.h (add_thread): Change result type to struct thread_info *.
12450 * inferiors.c (add_thread): Change result type to struct thread_info *.
12451 All callers updated.
12452 (add_lwp): Call add_thread here instead of in callers.
12453 All callers updated.
12454 * linux-low.h (get_lwp_thread): Rewrite.
12455 (struct lwp_info): New member "thread".
12457 2014-02-19 Doug Evans <dje@google.com>
12459 * linux-low.c (add_lwp): Change result to struct lwp_info *.
12460 All callers updated.
12462 2014-02-19 Doug Evans <dje@google.com>
12464 * inferiors.c (add_thread): Fix whitespace.
12466 2014-02-19 Doug Evans <dje@google.com>
12468 * dll.c (clear_dlls): Replace accessing list implemention details
12470 * gdbthread.h (get_first_thread): Declare.
12471 * inferiors.c (for_each_inferior_with_data): New function.
12472 (get_first_thread): New function.
12473 (find_thread_ptid): Simplify.
12474 (get_first_inferior): New function.
12475 (clear_list): Delete.
12476 (one_inferior_p): New function.
12477 (clear_inferior_list): New function.
12478 (clear_inferiors): Update.
12479 * inferiors.h (for_each_inferior_with_data): Declare.
12480 (clear_inferior_list): Declare.
12481 (one_inferior_p): Declare.
12482 (get_first_inferior): Declare.
12483 * linux-low.c (linux_wait_for_event): Replace accessing list
12484 implemention details with API function.
12485 * server.c (target_running): Ditto.
12486 (accumulate_file_name_length): New function.
12487 (emit_dll_description): New function.
12488 (handle_qxfer_libraries): Replace accessing list implemention
12489 details with API function.
12490 (handle_qxfer_threads_worker): New function.
12491 (handle_qxfer_threads_proper): Replace accessing list implemention
12492 details with API function.
12493 (handle_query): Ditto.
12494 (visit_actioned_threads_callback_ftype): New typedef.
12495 (visit_actioned_threads_data): New struct.
12496 (visit_actioned_threads): Rewrite to be find_inferior callback.
12497 (resume): Call find_inferior.
12498 (handle_status): Replace accessing list implemention
12499 details with API function.
12500 (process_serial_event): Replace accessing list implemention details
12502 * target.c (set_desired_inferior): Replace accessing list implemention
12503 details with API function.
12504 * tracepoint.c (same_process_p): New function.
12505 (gdb_agent_about_to_close): Replace accessing list implemention
12506 details with API function.
12507 * win32-low.c (child_delete_thread): Replace accessing list
12508 implemention details with API function.
12509 (match_dll_by_basename): New function.
12510 (dll_is_loaded_by_basename): New function.
12511 (win32_ensure_ntdll_loaded): Replace accessing list implemention
12512 details call to dll_is_loaded_by_basename.
12514 2014-02-19 Doug Evans <dje@google.com>
12516 * dll.h (struct dll_info): Add comment.
12517 * gdbthread.h (struct thread_info): Add comment.
12518 (current_ptid): Simplify.
12519 * inferiors.c (add_process): Update.
12520 (remove_process): Update.
12521 * inferiors.h (struct process_info): Rename member "head" to "entry".
12522 * linux-low.c (delete_lwp): Update.
12524 (last_thread_of_process_p): Update.
12525 (kill_one_lwp_callback, linux_kill): Update.
12526 (status_pending_p_callback): Update.
12527 (wait_for_sigstop): Update. Simplify read of ptid.
12528 (start_step_over): Update.
12529 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
12530 (get_lwp_thread): Update.
12531 (struct lwp_info): Rename member "head" to "entry".
12532 * regcache.h (inferior_list_entry): Delete.
12533 * server.c (kill_inferior_callback): Update.
12534 (detach_or_kill_inferior_callback): Update.
12535 (print_started_pid): Update.
12536 (print_attached_pid): Update.
12537 (process_serial_event): Simplify read of ptid.
12538 * thread-db.c (thread_db_create_event): Update.
12539 (thread_db_get_tls_address): Update.
12540 * win32-low.c (current_inferior_ptid): Simplify.
12542 2014-02-19 Tom Tromey <tromey@redhat.com>
12544 * target.h (struct target_ops) <supports_btrace>: Add target_ops
12546 (target_supports_btrace): Update.
12548 2014-02-14 Yao Qi <yao@codesourcery.com>
12550 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
12551 (rsp-low-ipa.o): New target.
12553 2014-02-12 Tom Tromey <tromey@redhat.com>
12555 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
12556 convert_ascii_to_int.
12557 * regcache.c (registers_to_string): Likewise.
12558 * remote-utils.c (decode_M_packet): Likewise.
12559 * server.c (process_serial_event): Likewise.
12561 2014-02-12 Tom Tromey <tromey@redhat.com>
12563 * server.c (handle_query, handle_v_run): Use hex2bin, not
12565 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
12567 2014-02-12 Tom Tromey <tromey@redhat.com>
12569 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
12570 convert_int_to_ascii.
12571 * regcache.c (registers_to_string, collect_register_as_string):
12573 * remote-utils.c (look_up_one_symbol, relocate_instruction):
12575 * server.c (process_serial_event): Likewise.
12576 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
12577 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
12579 2014-02-12 Tom Tromey <tromey@redhat.com>
12581 * remote-utils.c (look_up_one_symbol, monitor_output): Use
12582 bin2hex, not hexify.
12583 * tracepoint.c (cmd_qtstatus): Likewise.
12585 2014-02-12 Tom Tromey <tromey@redhat.com>
12587 * remote-utils.c (monitor_output): Pass explicit length to
12590 2014-02-12 Tom Tromey <tromey@redhat.com>
12592 * tracepoint.c: Include rsp-low.h.
12593 * server.c: Include rsp-low.h.
12594 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
12595 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
12597 * remote-utils.c: Include rsp-low.h.
12598 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
12599 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
12600 (convert_int_to_ascii, convert_ascii_to_int): Move to
12602 * regcache.c: Include rsp-low.h.
12603 * ax.c: Include rsp-low.h.
12604 * Makefile.in (SFILES): Add common/rsp-low.c.
12605 (OBS): Add rsp-low.o.
12606 (rsp-low.o): New target.
12608 2014-02-12 Tom Tromey <tromey@redhat.com>
12610 * utils.h (pulongest, plongest, phex_nz): Don't declare.
12611 Include print-utils.h.
12612 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
12613 (plongest, thirty_two, phex_nz): Remove.
12614 * Makefile.in (SFILES): Add common/print-utils.c.
12615 (OBS): Add print-utils.o.
12616 (print-utils-ipa.o): New target.
12617 (print-utils.o): New target.
12618 (IPA_OBJS): Add print-utils-ipa.o.
12620 2014-02-06 Tom Tromey <tromey@redhat.com>
12622 * Makefile.in (SFILES): Fix indentation.
12624 2014-02-05 Doug Evans <dje@google.com>
12626 * linux-low.c (linux_wait_for_event): Improve comment.
12627 (linux_wait_1): Keep current_inferior in sync with event_child.
12629 2014-01-22 Doug Evans <dje@google.com>
12631 * gdbthread.h (gdb_id_to_thread): Delete, unused.
12633 2014-01-22 Doug Evans <dje@google.com>
12635 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
12636 * configure: Regenerate.
12637 * config.in: Regenerate.
12638 * Makefile.in (SFILES): Add debug.c.
12639 (OBS): Add debug.o.
12640 * debug.c: New file.
12641 * debug.h: New file.
12642 * linux-aarch64-low.c (*): Update all debugging printfs to use
12643 debug_printf instead of fprintf.
12644 * linux-arm-low.c (*): Ditto.
12645 * linux-cris-low.c (*): Ditto.
12646 * linux-crisv32-low.c (*): Ditto.
12647 * linux-m32r-low.c (*): Ditto.
12648 * linux-sparc-low.c (*): Ditto.
12649 * linux-x86.c (*): Ditto.
12650 * linux-low.c (*): Ditto.
12651 (linux_wait_1): Add calls to debug_enter, debug_exit.
12652 (linux_wait): Remove redundant debugging printf.
12653 (stop_all_lwps): Add calls to debug_enter, debug_exit.
12654 (linux_resume, unstop_all_lwps): Ditto.
12655 * mem-break.c (*): Update all debugging printfs to use
12656 debug_printf instead of fprintf.
12657 * remote-utils.c (*): Ditto.
12658 * thread-db.c (*): Ditto.
12659 * server.c #include <ctype.h>, "gdb_vecs.h".
12660 (debug_threads): Moved to debug.c.
12661 (*): Update all debugging printfs to use debug_printf instead of
12663 (start_inferior): Replace call to fflush with call to debug_flush.
12664 (monitor_show_help): Mention set debug-format.
12665 (parse_debug_format_options): New function.
12666 (handle_monitor_command): Handle "monitor set debug-format".
12667 (gdbserver_usage): Mention --debug-format.
12668 (main): Parse --debug-format.
12669 * server.h (debug_threads): Declaration moved to debug.h.
12670 #include "debug.h".
12671 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
12672 trace_debug_1 that uses debug_printf.
12673 (tracepoint_look_up_symbols): Update all debugging printfs to use
12674 debug_printf instead of fprintf.
12676 2014-01-20 Baruch Siach <baruch@tkos.co.il>
12678 * linux-xtensa-low.c: Include asm/ptrace.h instead of
12681 2014-01-17 Pedro Alves <palves@redhat.com>
12684 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
12685 defined after including gdb_proc_service.h.
12687 2014-01-16 Doug Evans <dje@google.com>
12689 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
12690 (match_dll): Use it.
12692 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12694 * target.h (target_ops) <read_btrace>: Change parameters and
12695 return type to allow error reporting.
12696 * server.c (handle_qxfer_btrace): Support delta reads. Pass
12697 trace reading errors on.
12698 * linux-low.c (linux_low_read_btrace): Pass trace reading
12700 (linux_low_disable_btrace): New.
12702 2014-01-15 Doug Evans <dje@google.com>
12704 * inferiors.c (thread_id_to_gdb_id): Delete.
12705 * inferiors.h (thread_id_to_gdb_id): Delete.
12707 2014-01-13 Eli Zaretskii <eliz@gnu.org>
12709 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
12710 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
12713 2014-01-08 Pedro Alves <palves@redhat.com>
12715 * server.c (handle_status): Don't discard previous queued stop
12716 replies or thread's pending status here.
12717 (main) <disconnection>: Do it here instead.
12719 2014-01-08 Pedro Alves <palves@redhat.com>
12721 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
12722 * server.c (visit_actioned_threads, handle_pending_status): New
12724 (handle_v_cont): Factor out parts to ...
12725 (resume): ... this new function. If in all-stop, and a thread
12726 being resumed has a pending status, report it without actually
12728 (myresume): Adjust to use the new 'resume' function.
12729 (clear_pending_status_callback, set_pending_status_callback)
12730 (find_status_pending_thread_callback): New functions.
12731 (handle_status): Handle the case of multiple threads having
12732 interesting statuses to report. Report threads' real last signal
12733 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
12734 with an interesting thread to report the status for, instead of
12735 always reporting the status of the first thread.
12737 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12739 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
12740 * gdbreplay.c (gdbreplay_version): Likewise.
12742 2013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
12744 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
12745 iov.iov_len with the real length in use.
12747 2013-12-13 Joel Brobecker <brobecker@adacore.com>
12749 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
12750 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
12751 for all targets that use win32-low.c.
12752 * win32-low.c (win32_ensure_ntdll_loaded): New function.
12753 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
12755 2013-12-13 Pedro Alves <palves@redhat.com>
12757 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
12758 if equal to TARGET_WAITKIND_LOADED.
12759 * win32-low.c (cached_status): New static global.
12760 (win32_wait): Add declaration.
12761 (do_initial_child_stuff): Flush all initial pending debug events
12762 up to the initial breakpoint.
12763 (win32_wait): If CACHED_STATUS was set, return that instead
12764 of doing a real wait. Remove the code resuming the execution
12765 of the inferior after receiving a TARGET_WAITKIND_LOADED event
12766 during the initial phase. Also remove the code changing
12767 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
12768 TARGET_WAITKIND_STOPPED.
12770 2013-12-11 Yao Qi <yao@codesourcery.com>
12772 * notif.c (handle_notif_ack): Return 0 if no notification
12775 2013-11-20 Doug Evans <dje@google.com>
12777 * linux-low.c (linux_set_resume_request): Fix comment.
12779 2013-11-20 Doug Evans <dje@google.com>
12781 * linux-low.c (resume_status_pending_p): Tweak comment.
12783 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
12785 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
12786 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
12787 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
12788 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
12789 (srv_amd64_regobj): Add amd64-mpx.o.
12790 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
12791 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
12792 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
12793 * i387-fp.c (num_pl_bnd_register) Added constant.
12794 (num_pl_bnd_cfg_registers) Added constant.
12795 (struct i387_xsave) Added reserved area and MPX fields.
12796 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
12797 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
12799 (tdesc_i386_mpx_linux): Add MPX amd64 target.
12800 (init_registers_amd64_mpx_linux): Declare new function.
12801 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
12802 (x86_64_regmap): Add MPX registers.
12803 (x86_linux_read_description): Add MPX case.
12804 (initialize_low_arch): Initialize MPX targets.
12806 2013-11-18 Tom Tromey <tromey@redhat.com>
12808 * configure: Rebuild.
12809 * configure.ac: Don't check for stdlib.h.
12810 * gdbreplay.c: Unconditionally include stdlib.h.
12812 2013-11-18 Tom Tromey <tromey@redhat.com>
12814 * config.in: Rebuild.
12815 * configure: Rebuild.
12816 * configure.ac: Don't use AC_HEADER_DIRENT.
12818 2013-11-18 Tom Tromey <tromey@redhat.com>
12820 * server.h: Don't check HAVE_STRING_H.
12821 * gdbreplay.c: Don't check HAVE_STRING_H.
12822 * configure: Rebuild.
12824 2013-11-18 Tom Tromey <tromey@redhat.com>
12826 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
12829 2013-11-08 Tom Tromey <tromey@redhat.com>
12831 * configure, config.in: Rebuild.
12832 * configure.ac: Remove unused configury.
12834 2013-11-08 Tom Tromey <tromey@redhat.com>
12836 * acinclude.m4: Include common.m4, codeset.m4.
12837 * configure, config.in: Rebuild.
12838 * configure.ac: Use GDB_AC_COMMON.
12840 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
12842 * linux-s390-low.c (HWCAP_S390_TE): New define.
12843 (s390_arch_setup): Consider the TE field in the HWCAP for
12844 determining 'have_regset_tdb'.
12846 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
12849 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
12852 2013-10-02 Pedro Alves <palves@redhat.com>
12854 * server.c (process_serial_event): Don't output "GDBserver
12855 exiting" if GDB is connected through stdio.
12856 * target.c (mywait): Likewise, be silent if GDB is connected
12859 2013-10-01 Joel Brobecker <brobecker@adacore.com>
12861 * lynx-low.c (lynx_add_threads_after_attach): New function.
12862 (lynx_attach): Remove call to add_thread. Add call to
12863 lynx_add_threads_after_attach instead.
12865 2013-09-28 Mike Frysinger <vapier@gentoo.org>
12867 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
12868 * config.in, configure: Regenerated.
12870 2013-09-18 Yao Qi <yao@codesourcery.com>
12873 * server.c (start_inferior): Clear 'resume_info'.
12875 2013-09-16 Jiong Wang <jiwang@tilera.com>
12877 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
12880 2013-09-16 Jiong Wang <jiwang@tilera.com>
12882 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
12883 linux-tile-low.o to srv_tgtobj.
12885 2013-09-16 Will Newton <will.newton@linaro.org>
12887 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
12890 2013-09-06 Pedro Alves <palves@redhat.com>
12892 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
12893 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
12894 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
12895 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
12896 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
12897 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
12899 2013-09-06 Pedro Alves <palves@redhat.com>
12901 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
12902 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
12904 2013-09-06 Pedro Alves <palves@redhat.com>
12906 * linux-amd64-ipa.c: Include tracepoint.h.
12907 * linux-i386-ipa.c: Include tracepoint.h.
12909 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
12911 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
12912 (ps_get_thread_area): New function.
12914 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
12916 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
12917 (initialize_low_arch): Call init_registers_crisv32 rather than
12918 init_register_crisv32.
12920 2013-09-05 Pedro Alves <palves@redhat.com>
12922 * server.h (handle_vFile, hostio_last_error_from_errno): Move
12924 * hostio.h: ... this new file.
12925 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
12926 win32-low.c: Include hostio.h.
12928 2013-09-05 Pedro Alves <palves@redhat.com>
12930 * server.h (gdb_client_data, handler_func, callback_handler_func)
12931 (delete_file_handler, add_file_handler, append_callback_event)
12932 (delete_callback_event, start_event_loop, initialize_event_loop):
12933 Move to event-loop.h and include it.
12934 * event-loop.h: New file.
12936 2013-09-05 Pedro Alves <palves@redhat.com>
12938 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
12939 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
12940 (loaded_dll, unloaded_dll): Move to ...
12941 * dll.h: ... this new file.
12942 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
12944 2013-09-05 Pedro Alves <palves@redhat.com>
12946 * server.h (current_process, get_thread_process, all_processes)
12947 (add_inferior_to_list, for_each_inferior, current_inferior)
12948 (remove_inferior, add_process, remove_process, find_process_pid)
12949 (have_started_inferiors_p, have_attached_inferiors_p)
12950 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
12951 (clear_inferiors, find_inferior, find_inferior_id)
12952 (inferior_target_data, set_inferior_target_data)
12953 (inferior_regcache_data, set_inferior_regcache_data): Move to
12954 inferiors.h, and include it.
12955 * inferiors.h: New file.
12957 2013-09-05 Pedro Alves <palves@redhat.com>
12959 * server.h (struct emit_ops, current_insn_ptr, emit_error):
12963 2013-09-05 Pedro Alves <palves@redhat.com>
12965 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
12967 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
12968 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
12969 (handle_tracepoint_general_set, handle_tracepoint_query)
12970 (tracepoint_finished_step, tracepoint_was_hit)
12971 (release_while_stepping_state_list, current_traceframe)
12972 (in_readonly_region, traceframe_read_mem)
12973 (fetch_traceframe_registers, traceframe_read_sdata)
12974 (traceframe_read_info, struct fast_tpoint_collect_status)
12975 (fast_tracepoint_collecting, force_unlock_trace_buffer)
12976 (handle_tracepoit_bkpts, initialize_low_tracepoint)
12977 (supply_fast_tracepoint_registers)
12978 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
12979 (ipa_tdesc, claim_trampoline_space)
12980 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
12981 (agent_mem_read, agent_get_trace_state_variable_value)
12982 (agent_set_trace_state_variable_value, agent_tsv_read)
12983 (agent_mem_read_string, get_raw_reg_func_addr)
12984 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
12985 * tracepoint.h: ... this new file.
12987 2013-09-05 Pedro Alves <palves@redhat.com>
12989 * server.h (perror_with_name, error, fatal, warning, paddress)
12990 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
12992 * utils.h: New file.
12994 2013-09-05 Pedro Alves <palves@redhat.com>
12996 * server.h (remote_debug, noack_mode, transport_is_reliable)
12997 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
12998 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
12999 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
13000 (write_enn, initialize_async_io, enable_async_io)
13001 (disable_async_io, check_remote_input_interrupt_request)
13002 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
13003 (dead_thread_notify, prepare_resume_reply)
13004 (decode_address_to_semicolon, decode_address, decode_m_packet)
13005 (decode_M_packet, decode_X_packet, decode_xfer_write)
13006 (decode_search_memory_packet, unhexify, hexify)
13007 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
13008 (look_up_one_symbol, relocate_instruction)
13009 (monitor_output): Move to remote-utils.h, and include it.
13010 * remote-utils.h: New file.
13012 2013-09-05 Pedro Alves <palves@redhat.com>
13014 * server.h (_): Delete.
13016 2013-09-02 Pedro Alves <palves@redhat.com>
13018 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
13019 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
13021 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
13023 2013-09-02 Pierre Muller <muller@sourceware.org>
13025 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
13026 or WriteProcessMemory complete successfully and handle
13027 ERROR_PARTIAL_COPY error.
13029 2013-09-02 Pedro Alves <palves@redhat.com>
13031 * server.c (gdb_read_memory): Return -1 on traceframe memory read
13032 error instead of EIO.
13034 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
13037 * linux-low.c: Include filestuff.h.
13038 (linux_create_inferior) <pid == 0>: Call close_most_fds.
13039 * lynx-low.c: Include filestuff.h.
13040 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
13041 * server.c: Include filestuff.h.
13042 (main): Call notice_open_fds.
13043 * spu-low.c: Include filestuff.h.
13044 (spu_create_inferior) <pid == 0>: Call close_most_fds.
13046 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
13048 * Makefile.in: Explain why ../target and ../nat are not
13049 listed as include file search paths.
13050 (linux-waitpid.o): New object file rule.
13051 * configure.srv (srv_native_linux_obj): New variable.
13052 Replace all occurrences of linux native object files with
13053 $srv_native_linux_obj.
13054 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
13055 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
13056 (linux_enable_event_reporting): Remove declaration.
13057 (my_waitpid): Moved to common/linux-waitpid.c.
13058 (linux_wait_for_event): Pass ptid when calling
13059 linux_enable_event_reporting.
13060 (linux_supports_tracefork_flag): Remove.
13061 (linux_enable_event_reporting): Likewise.
13062 (linux_tracefork_grandchild): Remove.
13063 (STACK_SIZE): Moved to common/linux-ptrace.c.
13064 (linux_tracefork_child): Remove.
13065 (linux_test_for_tracefork): Remove.
13066 (linux_look_up_symbols): Call linux_supports_traceclone.
13067 (initialize_low): Remove call to linux_test_for_tracefork.
13068 * linux-low.h (PTRACE_TYPE_ARG3): Move to
13069 common/linux-ptrace.h.
13070 (PTRACE_TYPE_ARG4): Likewise.
13071 Include linux-ptrace.h.
13073 2013-08-21 Pedro Alves <palves@redhat.com>
13075 * config.in: Renegerate.
13077 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
13079 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
13080 (SFILES): Remove $(srcdir)/common/target-common.c and
13081 add $(srcdir)/target/waitstatus.c.
13082 (OBS): Remove target-common.o and add waitstatus.o.
13083 (server_h): Remove $(srcdir)/../common/target-common.h and
13084 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
13085 and $(srcdir)/../target/waitstatus.h.
13086 (target-common.o): Remove.
13087 (waitstatus.o): New target object file.
13088 * target.h: Do not include target-common.h and
13089 include target/resume.h, target/wait.h and
13090 target/waitstatus.h.
13092 2013-08-13 Luis Machado <lgustavo@codesourcery.com>
13094 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13095 to PTRACE_TYPE_ARG3.
13096 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13097 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
13099 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
13100 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
13102 2013-07-27 Jie Zhang <jie@codesourcery.com>
13103 Daniel Jacobowitz <dan@codesourcery.com>
13104 Yao Qi <yao@codesourcery.com>
13106 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
13107 (mips-linux-watch.o): New rule.
13108 (mips_linux_watch_h): New variable.
13109 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
13111 * linux-mips-low.c: Include mips-linux-watch.h.
13112 (struct arch_process_info, struct arch_lwp_info): New.
13113 (update_watch_registers_callback): New function.
13114 (mips_linux_new_process, mips_linux_new_thread) New functions.
13115 (mips_linux_prepare_to_resume, mips_insert_point): New
13117 (mips_remove_point, mips_stopped_by_watchpoint): New
13119 (rsp_bp_type_to_target_hw_bp_type): New function.
13120 (mips_stopped_data_address): New function.
13121 (the_low_target): Add watchpoint support functions.
13123 2013-07-27 Yao Qi <yao@codesourcery.com>
13125 * i386-low.c: Include break-common.h.
13126 (enum target_hw_bp_type): Remove.
13128 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
13130 * Makefile.in (SFILES): /common/target-common.c.
13131 (OBS): Add target-common.o.
13132 (server_h): Add $(srcdir)/../common/target-common.h.
13133 (target-common.o): New target.
13134 * server.c (queue_stop_reply_callback): Free
13135 status string after use.
13136 * target.c (target_waitstatus_to_string): Remove.
13137 * target.h: Include target-common.h.
13138 (resume_kind): Likewise.
13139 (target_waitkind): Likewise.
13140 (target_waitstatus): Likewise.
13141 (TARGET_WNOHANG): Likewise.
13143 2013-07-04 Yao Qi <yao@codesourcery.com>
13145 * Makefile.in (host_alias): Use @host_noncanonical@.
13146 (target_alias): Use @target_noncanonical@.
13147 * configure.ac: Use ACX_NONCANONICAL_TARGET and
13148 ACX_NONCANONICAL_HOST.
13149 * configure: Regenerated.
13152 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13154 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13155 * configure: Rebuild.
13156 * Makefile.in (version_host, version_target): Get from configure.
13157 (version.c): Use $(version_host) and $(version_target).
13159 2013-07-03 Pedro Alves <palves@redhat.com>
13161 * Makefile.in (config.status): Depend on development.sh.
13162 * acinclude.m4: Include libmcheck.m4.
13163 * configure: Regenerate.
13165 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13167 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
13168 attribute inside the parentheses.
13169 (winapi_DebugSetProcessKillOnExit): Ditto.
13170 (winapi_DebugBreakProcess): Ditto.
13171 (winapi_GenerateConsoleCtrlEvent): Ditto.
13173 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13175 * notif.h (notif_event): Add a dummy member to avoid compiler
13178 2013-07-01 Pedro Alves <palves@redhat.com>
13180 * hostio.c (HOSTIO_PATH_MAX): Define.
13181 (require_filename, handle_open, handle_unlink, handle_readlink):
13184 2013-07-01 Pedro Alves <palves@redhat.com>
13186 * server.h: Include "pathmax.h".
13187 * linux-low.c: Don't include sys/param.h.
13188 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
13190 * win32-low.c: Don't include sys/param.h.
13191 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
13193 2013-07-01 Pedro Alves <palves@redhat.com>
13195 * event-loop.c: Don't check HAVE_UNISTD_H before including
13197 * gdbreplay.c: Likewise.
13198 * remote-utils.c: Likewise.
13199 * server.c: Likewise.
13200 * configure.ac: Don't check for unistd.h.
13201 * configure: Regenerate.
13203 2013-06-28 Tom Tromey <tromey@redhat.com>
13205 * Makefile.in (version.c): Use version.in, not
13208 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13210 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13211 * configure: Rebuild.
13212 * Makefile.in (version_host, version_target): Get from configure.
13213 (version.c): Use $(version_host) and $(version_target).
13215 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13217 Fix trace-status to output user name without trailing colon.
13218 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
13220 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13222 Fix trace-status to output proper start-time and stop-time.
13223 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
13224 output start time and stop time in hex as gdb expects.
13226 2013-06-26 Pedro Alves <pedro@codesourcery.com>
13228 * tracepoint.c (build_traceframe_info_xml): Output trace state
13229 variables present in the trace buffer.
13231 2013-06-24 Tom Tromey <tromey@redhat.com>
13233 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
13235 (version.o): Remove.
13236 * gdbreplay.c: Include version.h.
13237 (version, host_name): Don't declare.
13238 * server.h: Include version.h.
13239 (version, host_name): Don't declare.
13241 2013-06-12 Pedro Alves <palves@redhat.com>
13243 * linux-x86-low.c (linux_is_elf64): Delete global.
13244 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
13245 with local linux_pid_exe_is_elf_64_file use.
13247 2013-06-11 Pedro Alves <palves@redhat.com>
13249 * linux-low.c (regset_disabled, disable_regset): New functions.
13250 (regsets_fetch_inferior_registers)
13251 (regsets_store_inferior_registers): Use them.
13252 (initialize_regsets_info); Don't allocate the disabled_regsets
13254 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
13257 2013-06-11 Pedro Alves <palves@redhat.com>
13259 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
13262 2013-06-11 Pedro Alves <palves@redhat.com>
13264 * linux-x86-low.c (initialize_low_arch): Call
13265 init_registers_x32_avx_linux.
13267 2013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13269 Fix compatibility with Android Bionic.
13270 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
13273 2013-06-07 Pedro Alves <palves@redhat.com>
13276 * Makefile.in (OBS): Add tdesc.o.
13277 (IPA_OBJS): Add tdesc-ipa.o.
13278 (tdesc-ipa.o): New rule.
13279 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
13281 * linux-low.c (new_inferior): Delete.
13282 (disabled_regsets, num_regsets): Delete.
13283 (linux_add_process): Adjust to set the new per-process
13285 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
13286 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
13287 was a stop. When calling arch_setup, switch the current inferior
13288 to the thread that got an event.
13289 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
13290 (regsets_fetch_inferior_registers)
13291 (regsets_store_inferior_registers): New regsets_info parameter.
13293 (linux_register_in_regsets): New regs_info parameter. Adjust to
13295 (register_addr, fetch_register, store_register): New usrregs_info
13296 parameter. Adjust to use it.
13297 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
13298 parameter regs_info. Adjust to use it.
13299 (linux_fetch_registers): Get the current inferior's regs_info, and
13301 (linux_store_registers): Ditto.
13302 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
13303 (initialize_low): Don't initialize the target_regsets here. Call
13304 initialize_low_arch.
13305 * linux-low.h (target_regsets): Delete declaration.
13306 (struct regsets_info): New.
13307 (struct usrregs_info): New.
13308 (struct regs_info): New.
13309 (struct process_info_private) <new_inferior>: New field.
13310 (struct linux_target_ops): Delete the num_regs, regmap, and
13311 regset_bitmap fields. New field regs_info.
13312 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
13313 * i387-fp.c (num_xmm_registers): Delete.
13314 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
13315 calls to new interface.
13316 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
13317 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
13318 Infer the number of xmm registers from the regcache's target
13320 * i387-fp.h (num_xmm_registers): Delete.
13321 * inferiors.c (add_thread): Don't install the thread's regcache
13323 * proc-service.c (gregset_info): Fetch the current inferior's
13324 regs_info. Adjust to use it.
13325 * regcache.c: Include tdesc.h.
13326 (register_bytes, reg_defs, num_registers)
13327 (gdbserver_expedite_regs): Delete.
13328 (get_thread_regcache): If the thread doesn't have a regcache yet,
13329 create one, instead of aborting gdbserver.
13330 (regcache_invalidate_one): Rename to ...
13331 (regcache_invalidate_thread): ... this.
13332 (regcache_invalidate_one): New.
13333 (regcache_invalidate): Only invalidate registers of the current
13335 (init_register_cache): Add target_desc parameter, and use it.
13336 (new_register_cache): Ditto. Assert the target description has a
13337 non zero registers_size.
13338 (regcache_cpy): Add assertions. Adjust.
13339 (realloc_register_cache, set_register_cache): Delete.
13340 (registers_to_string, registers_from_string): Adjust.
13341 (find_register_by_name, find_regno, find_register_by_number)
13342 (register_cache_size): Add target_desc parameter, and use it.
13343 (free_register_cache_thread, free_register_cache_thread_one)
13344 (regcache_release, register_cache_size): New.
13345 (register_size): Add target_desc parameter, and use it.
13346 (register_data, supply_register, supply_register_zeroed)
13347 (supply_regblock, supply_register_by_name, collect_register)
13348 (collect_register_as_string, collect_register_by_name): Adjust.
13349 * regcache.h (struct target_desc): Forward declare.
13350 (struct regcache) <tdesc>: New field.
13351 (init_register_cache, new_register_cache): Add target_desc
13353 (regcache_invalidate_thread): Declare.
13354 (regcache_invalidate_one): Delete declaration.
13355 (regcache_release): Declare.
13356 (find_register_by_number, register_cache_size, register_size)
13357 (find_regno): Add target_desc parameter.
13358 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
13360 * remote-utils.c: Include tdesc.h.
13361 (outreg, prepare_resume_reply): Adjust.
13362 * server.c: Include tdesc.h.
13363 (gdbserver_xmltarget): Delete declaration.
13364 (get_features_xml, process_serial_event): Adjust.
13365 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
13367 (struct process_info) <tdesc>: New field.
13368 (ipa_tdesc): Declare.
13369 * tdesc.c: New file.
13370 * tdesc.h: New file.
13371 * tracepoint.c: Include tdesc.h.
13372 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
13373 (get_context_regcache): Adjust to pass ipa_tdesc down.
13374 (do_action_at_tracepoint): Adjust to get the register cache size
13375 from the context regcache's description.
13376 (traceframe_walk_blocks): Adjust to get the register cache size
13377 from the current trace frame's description.
13378 (traceframe_get_pc): Adjust to get current trace frame's
13379 description and pass it down.
13380 (gdb_collect): Adjust to get the register cache size from the
13382 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
13383 (gdbserver_xmltarget): Delete.
13384 (initialize_low_tracepoint): Set the ipa's target description.
13385 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
13386 (initialize_low_tracepoint): Set the ipa's target description.
13387 * linux-x86-low.c: Include tdesc.h.
13388 [__x86_64__] (is_64bit_tdesc): New.
13389 (ps_get_thread_area, x86_get_thread_area): Use it.
13390 (i386_cannot_store_register): Rename to ...
13391 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
13392 (i386_cannot_fetch_register): Rename to ...
13393 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
13394 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
13396 (target_regsets): Rename to ...
13397 (x86_regsets): ... this.
13398 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
13400 (x86_siginfo_fixup): Use is_64bit_tdesc.
13401 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
13402 (tdesc_x32_avx_linux, tdesc_x32_linux)
13403 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
13405 (x86_linux_update_xmltarget): Delete.
13406 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
13407 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
13408 (AMD64_LINUX_USER64_CS): New.
13409 (x86_linux_read_description): New, based on
13410 x86_linux_update_xmltarget.
13411 (same_process_callback): New.
13412 (x86_arch_setup_process_callback): New.
13413 (x86_linux_update_xmltarget): New.
13414 (x86_regsets_info): New.
13415 (amd64_linux_regs_info): New.
13416 (i386_linux_usrregs_info): New.
13417 (i386_linux_regs_info): New.
13418 (x86_linux_regs_info): New.
13419 (x86_arch_setup): Reimplement.
13420 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
13421 (x86_emit_ops): Ditto.
13422 (the_low_target): Adjust. Install x86_linux_regs_info,
13423 x86_cannot_fetch_register, and x86_cannot_store_register.
13424 (initialize_low_arch): New.
13425 * linux-ia64-low.c (tdesc_ia64): Declare.
13426 (ia64_fetch_register): Adjust.
13427 (ia64_usrregs_info, regs_info): New globals.
13428 (ia64_regs_info): New function.
13429 (the_low_target): Adjust.
13430 (initialize_low_arch): New function.
13431 * linux-sparc-low.c (tdesc_sparc64): Declare.
13432 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
13434 (sparc_arch_setup): New function.
13435 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
13436 (the_low_target): Adjust.
13437 (initialize_low_arch): New function.
13438 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
13439 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
13440 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
13441 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
13442 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
13443 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
13444 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
13445 (tdesc_powerpc_isa205_vsx64l): Declare.
13446 (ppc_cannot_store_register, ppc_collect_ptrace_register)
13447 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
13448 (ppc_set_pc, ppc_get_hwcap): Adjust.
13449 (ppc_usrregs_info): Forward declare.
13450 (!__powerpc64__) ppc_regmap_adjusted: New global.
13451 (ppc_arch_setup): Adjust to the current process'es target
13453 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
13454 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
13455 (ppc_store_evrregset): Adjust.
13456 (target_regsets): Rename to ...
13457 (ppc_regsets): ... this, and make static.
13458 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
13459 (ppc_regs_info): New function.
13460 (the_low_target): Adjust.
13461 (initialize_low_arch): New function.
13462 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
13463 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
13464 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
13465 (tdesc_s390x_linux64v2): Declare.
13466 (s390_collect_ptrace_register, s390_supply_ptrace_register)
13467 (s390_fill_gregset, s390_store_last_break): Adjust.
13468 (target_regsets): Rename to ...
13469 (s390_regsets): ... this, and make static.
13470 (s390_get_pc, s390_set_pc): Adjust.
13471 (s390_get_hwcap): New target_desc parameter, and use it.
13472 [__s390x__] (have_hwcap_s390_high_gprs): New global.
13473 (s390_arch_setup): Adjust to set the current process'es target
13474 description. Don't adjust the regmap.
13475 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
13476 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
13477 (regs_info_3264): New globals.
13478 (s390_regs_info): New function.
13479 (the_low_target): Adjust.
13480 (initialize_low_arch): New function.
13481 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
13482 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
13483 [__mips64] (init_registers_mips_linux)
13484 (init_registers_mips_dsp_linux): Delete defines.
13485 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
13486 (have_dsp): New global.
13487 (mips_read_description): New, based on mips_arch_setup.
13488 (mips_arch_setup): Reimplement.
13489 (get_usrregs_info): New function.
13490 (mips_cannot_fetch_register, mips_cannot_store_register)
13491 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
13492 (mips_fill_fpregset, mips_store_fpregset): Adjust.
13493 (target_regsets): Rename to ...
13494 (mips_regsets): ... this, and make static.
13495 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
13496 (dsp_regs_info, regs_info): New globals.
13497 (mips_regs_info): New function.
13498 (the_low_target): Adjust.
13499 (initialize_low_arch): New function.
13500 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
13501 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
13503 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
13504 (arm_read_description): New, with bits factored from
13506 (arm_arch_setup): Reimplement.
13507 (target_regsets): Rename to ...
13508 (arm_regsets): ... this, and make static.
13509 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
13510 (arm_regs_info): New function.
13511 (the_low_target): Adjust.
13512 (initialize_low_arch): New function.
13513 * linux-m68k-low.c (tdesc_m68k): Declare.
13514 (target_regsets): Rename to ...
13515 (m68k_regsets): ... this, and make static.
13516 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
13517 (m68k_regs_info): New function.
13518 (m68k_arch_setup): New function.
13519 (the_low_target): Adjust.
13520 (initialize_low_arch): New function.
13521 * linux-sh-low.c (tdesc_sharch): Declare.
13522 (target_regsets): Rename to ...
13523 (sh_regsets): ... this, and make static.
13524 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
13525 (sh_regs_info, sh_arch_setup): New functions.
13526 (the_low_target): Adjust.
13527 (initialize_low_arch): New function.
13528 * linux-bfin-low.c (tdesc_bfin): Declare.
13529 (bfin_arch_setup): New function.
13530 (bfin_usrregs_info, regs_info): New globals.
13531 (bfin_regs_info): New function.
13532 (the_low_target): Adjust.
13533 (initialize_low_arch): New function.
13534 * linux-cris-low.c (tdesc_cris): Declare.
13535 (cris_arch_setup): New function.
13536 (cris_usrregs_info, regs_info): New globals.
13537 (cris_regs_info): New function.
13538 (the_low_target): Adjust.
13539 (initialize_low_arch): New function.
13540 * linux-cris-low.c (tdesc_crisv32): Declare.
13541 (cris_arch_setup): New function.
13542 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
13543 (cris_regs_info): New function.
13544 (the_low_target): Adjust.
13545 (initialize_low_arch): New function.
13546 * linux-m32r-low.c (tdesc_m32r): Declare.
13547 (m32r_arch_setup): New function.
13548 (m32r_usrregs_info, regs_info): New globals.
13549 (m32r_regs_info): Adjust.
13550 (initialize_low_arch): New function.
13551 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
13552 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
13553 (tic6x_usrregs_info): Forward declare.
13554 (tic6x_read_description): New function, based on ...
13555 (tic6x_arch_setup): ... this. Reimplement.
13556 (target_regsets): Rename to ...
13557 (tic6x_regsets): ... this, and make static.
13558 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
13559 (tic6x_regs_info): New function.
13560 (the_low_target): Adjust.
13561 (initialize_low_arch): New function.
13562 * linux-xtensa-low.c (tdesc_xtensa): Declare.
13563 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
13564 (target_regsets): Rename to ...
13565 (xtensa_regsets): ... this, and make static.
13566 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
13568 (xtensa_arch_setup, xtensa_regs_info): New functions.
13569 (the_low_target): Adjust.
13570 (initialize_low_arch): New function.
13571 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
13572 (nios2_arch_setup): Set the current process'es tdesc.
13573 (target_regsets): Rename to ...
13574 (nios2_regsets): ... this.
13575 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
13576 (nios2_regs_info): New function.
13577 (the_low_target): Adjust.
13578 (initialize_low_arch): New function.
13579 * linux-aarch64-low.c (tdesc_aarch64): Declare.
13580 (aarch64_arch_setup): Set the current process'es tdesc.
13581 (target_regsets): Rename to ...
13582 (aarch64_regsets): ... this.
13583 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
13584 (aarch64_regs_info): New function.
13585 (the_low_target): Adjust.
13586 (initialize_low_arch): New function.
13587 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
13589 (target_regsets): Rename to ...
13590 (tile_regsets): ... this.
13591 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
13592 (tile_regs_info): New function.
13593 (tile_arch_setup): Set the current process'es tdesc.
13594 (the_low_target): Adjust.
13595 (initialize_low_arch): New function.
13596 * spu-low.c (tdesc_spu): Declare.
13597 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
13598 * win32-arm-low.c (tdesc_arm): Declare.
13599 (arm_arch_setup): New function.
13600 (the_low_target): Install arm_arch_setup instead of
13601 init_registers_arm.
13602 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
13603 (init_windows_x86): Rename to ...
13604 (i386_arch_setup): ... this. Set `win32_tdesc'.
13605 (the_low_target): Adjust.
13606 * win32-low.c (win32_tdesc): New global.
13607 (child_add_thread): Don't create the thread cache here.
13608 (do_initial_child_stuff): Set the new process'es tdesc.
13609 * win32-low.h (struct target_desc): Forward declare.
13610 (win32_tdesc): Declare.
13611 * lynx-i386-low.c (tdesc_i386): Declare global.
13612 (lynx_i386_arch_setup): Set `lynx_tdesc'.
13613 * lynx-low.c (lynx_tdesc): New global.
13614 (lynx_add_process): Set the new process'es tdesc.
13615 * lynx-low.h (struct target_desc): Forward declare.
13616 (lynx_tdesc): Declare global.
13617 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
13618 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
13619 * nto-low.c (nto_tdesc): New global.
13620 (do_attach): Set the new process'es tdesc.
13621 * nto-low.h (struct target_desc): Forward declare.
13622 (nto_tdesc): Declare.
13623 * nto-x86-low.c (tdesc_i386): Declare.
13624 (nto_x86_arch_setup): Set `nto_tdesc'.
13626 2013-06-04 Gary Benson <gbenson@redhat.com>
13628 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
13629 to qSupported response when appropriate.
13630 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
13631 with nonzero-length annex.
13632 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
13633 arguments supplied in annex.
13635 2013-05-31 Doug Evans <dje@google.com>
13638 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
13639 64 bits in 64-cross-32 environment.
13641 2013-05-28 Pedro Alves <palves@redhat.com>
13643 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
13644 (aarch64-without-fpu.c): Delete rule.
13645 * configure.srv (aarch64*-*-linux*): Remove references to
13646 aarch64-without-fpu.o and aarch64-without-fpu.xml.
13647 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
13650 2013-05-24 Pedro Alves <palves@redhat.com>
13652 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
13653 instead of strchr/decode_address. Error if the range isn't split
13654 with a ','. Don't assume there's be a ':' in the action.
13656 2013-05-23 Yao Qi <yao@codesourcery.com>
13657 Pedro Alves <palves@redhat.com>
13659 * linux-low.c (lwp_in_step_range): New function.
13660 (linux_wait_1): If the thread was range stepping and stopped
13661 outside the stepping range, report the stop to GDB. Otherwise,
13662 continue stepping. Add range stepping debug output.
13663 (linux_set_resume_request): Copy the step range from the resume
13664 request to the lwp.
13665 (linux_supports_range_stepping): New.
13666 (linux_target_ops) <supports_range_stepping>: Set to
13667 linux_supports_range_stepping.
13668 * linux-low.h (struct linux_target_ops)
13669 <supports_range_stepping>: New field.
13670 (struct lwp_info) <step_range_start, step_range_end>: New fields.
13671 * linux-x86-low.c (x86_supports_range_stepping): New.
13672 (the_low_target) <supports_range_stepping>: Set to
13673 x86_supports_range_stepping.
13674 * server.c (handle_v_cont): Handle 'r' action.
13675 (handle_v_requests): Append ";r" if the target supports range
13677 * target.h (struct thread_resume) <step_range_start,
13678 step_range_end>: New fields.
13679 (struct target_ops) <supports_range_stepping>:
13681 (target_supports_range_stepping): New macro.
13683 2013-05-17 Joel Brobecker <brobecker@adacore.com>
13685 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
13686 confusion in comment.
13688 2013-05-17 Joel Brobecker <brobecker@adacore.com>
13690 * lynx-low.c (struct process_info_private): New type.
13691 (lynx_add_process): New function.
13692 (lynx_create_inferior, lynx_attach): Replace calls to
13693 add_process by calls to lynx_add_process.
13694 (lynx_resume): If PTID is null, then try using
13695 current_process()->private->last_wait_event_ptid.
13697 (lynx_clear_inferiors): Delete. The contents of that function
13698 has been inlined in lynx_mourn;
13699 (lynx_wait_1): Save the ptid in the process's private data.
13700 (lynx_mourn): Free the process' private data. Replace call
13701 to lynx_clear_inferiors by call to clear_inferiors.
13703 2013-05-17 Yao Qi <yao@codesourcery.com>
13705 * i386-low.c (i386_length_and_rw_bits): Move the comment to
13708 2013-05-16 Luis Machado <lgustavo@codesourcery.com>
13710 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
13711 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
13712 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
13713 PT_TEXT_END_ADDR guards. Update comments.
13714 (linux_target_op) <read_offsets>: Conditionally define to
13715 linux_read_offsets if the target is UCLIBC and if it defines
13716 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
13718 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
13719 Andrew Jenner <andrew@codesourcery.com>
13721 * Makefile.in (SFILES): Add linux-nios2-low.c.
13722 (clean): Add action to delete nios2-linux.c.
13723 (nios2-linux.c): New rule.
13724 * configure.srv: Add nios2*-*-linux*.
13725 * linux-nios2-low.c: New.
13727 2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
13729 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
13731 2013-04-25 Hui Zhu <hui@codesourcery.com>
13734 * ax.c (ax_printf): Add fflush.
13736 2013-04-22 Tom Tromey <tromey@redhat.com>
13738 * Makefile.in (SFILES): Add filestuff.c.
13739 (OBS): Add filestuff.o.
13740 (filestuff.o): New target.
13741 * config.in, configure: Rebuild.
13742 * configure.ac: Check for fdwalk, pipe2.
13744 2013-04-17 Pedro Alves <palves@redhat.com>
13746 * configure.ac (USE_THREAD_DB): Delete variable.
13747 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
13748 Don't AC_SUBST USE_THREAD_DB.
13749 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
13750 * config.in, configure: Regenerate.
13752 2013-04-16 Pedro Alves <palves@redhat.com>
13754 * linux-low.h (struct lwp_info) <thread_known>: Move under
13755 the USE_THREAD_DB #ifdef.
13757 2013-04-16 Pedro Alves <palves@redhat.com>
13759 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
13760 (linux-low.o): Delete rule.
13761 * linux-low.h: Always include "gdb_thread_db.h" instead of
13762 conditionally including thread_db.h.
13763 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
13766 2013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
13768 * Makefile.in (install-only): Fix make install regression.
13770 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
13772 Convert man pages to texinfo, new gdbinit.5 texinfo page.
13773 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
13775 * gdbserver.1: Remove.
13777 2013-03-22 Pedro Alves <palves@redhat.com>
13779 * linux-low.c (handle_extended_wait): Don't call
13780 linux_enable_event_reporting.
13782 2013-03-15 Tony Theodore <tonyt@logyst.com>
13785 * Makefile.in (SHELL): Use @SHELL@.
13787 2013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
13789 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
13792 2013-03-13 Joel Brobecker <brobecker@adacore.com>
13794 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
13795 Remove extraneous NULL element.
13797 2013-03-13 Yao Qi <yao@codesourcery.com>
13799 * tracepoint.c (traceframe_read_tsv): Look for the last matched
13800 'V' block in trace frame.
13802 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
13804 * target.h (struct target_ops): Add btrace ops.
13805 (target_supports_btrace): New macro.
13806 (target_enable_btrace): New macro.
13807 (target_disable_btrace): New macro.
13808 (target_read_btrace): New macro.
13809 * gdbthread.h (struct thread_info): Add btrace field.
13810 * server.c: Include btrace-common.h.
13811 (handle_btrace_general_set): New function.
13812 (handle_btrace_enable): New function.
13813 (handle_btrace_disable): New function.
13814 (handle_general_set): Call handle_btrace_general_set.
13815 (handle_qxfer_btrace): New function.
13816 (struct qxfer qxfer_packets[]): Add btrace entry.
13817 * inferiors.c (remove_thread): Disable btrace.
13818 * linux-low: Include linux-btrace.h.
13819 (linux_low_enable_btrace): New function.
13820 (linux_low_read_btrace): New function.
13821 (linux_target_ops): Add btrace ops.
13822 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
13823 Add srv_linux_btrace=yes.
13824 (x86_64-*-linux*): Add linux-btrace.o.
13825 Add srv_linux_btrace=yes.
13826 * configure.ac: Define HAVE_LINUX_BTRACE.
13827 * config.in: Regenerated.
13828 * configure: Regenerated.
13830 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
13832 * server.c (handle_qxfer): Preserve error message if -3 is
13834 (qxfer): Document the -3 return value.
13836 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
13838 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
13839 (linux_btrace_h): New variable.
13840 (linux-btrace.o): New rule.
13842 2013-03-08 Stan Shebs <stan@codesourcery.com>
13843 Hafiz Abid Qadeer <abidh@codesourcery.com>
13845 * tracepoint.c (trace_buffer_size): New global.
13846 (DEFAULT_TRACE_BUFFER_SIZE): New define.
13847 (init_trace_buffer): Change to one-argument function. Allocate
13848 trace buffer memory.
13849 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
13850 handle QTBuffer:size packet.
13851 (cmd_bigqtbuffer_size): New function.
13852 (initialize_tracepoint): Call init_trace_buffer with
13853 DEFAULT_TRACE_BUFFER_SIZE.
13854 * server.c (handle_query): Add QTBuffer:size in the
13857 2013-03-07 Yao Qi <yao@codesourcery.com>
13859 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
13860 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
13862 (cmd_qtsp): Adjust condition. Do post increment.
13863 Set cur_action and cur_step_action back to 0.
13865 2013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
13868 * linux-low.c (linux_write_memory): Return early success if LEN is
13871 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
13873 * configure.srv: Add x86_64-*-cygwin* as target.
13875 2013-02-28 Tom Tromey <tromey@redhat.com>
13877 * configure.ac: Invoke AC_SYS_LARGEFILE.
13878 * configure, config.in: Rebuild.
13880 2013-02-28 Corinna Vinschen <vinschen@redhat.com>
13882 * win32-low.c: Throughout, fix format strings and casts of
13883 printf-like functions to avoid type related warnings on all
13885 (get_child_debug_event): Print dwDebugEventCode as hex since
13886 that's how it's usually documented.
13888 2013-02-28 Yao Qi <yao@codesourcery.com>
13890 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
13893 2013-02-27 Jiong Wang <jiwang@tilera.com>
13895 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
13896 (reg-tilegx32.c): New rule.
13897 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
13898 * linux-tile-low.c (tile_arch_setup): New function. Invoke
13899 different register info initializer according to elf class.
13900 (init_registers_tilgx32): New function. The tilegx32 register info
13902 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
13903 (tile_store_gregset): Likewise.
13905 2013-02-27 Yao Qi <yao@codesourcery.com>
13907 * server.c (process_point_options): Print debug message when
13908 debug_threads is true.
13910 2013-02-26 Yao Qi <yao@codesourcery.com>
13912 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
13914 2013-02-19 Pedro Alves <palves@redhat.com>
13915 Kai Tietz <ktietz@redhat.com>
13919 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
13920 instead of strtoul to extract address from packet.
13921 (process_serial_event) <'z'>: Likewise.
13923 2013-02-18 Yao Qi <yao@codesourcery.com>
13925 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
13927 2013-02-14 Pedro Alves <palves@redhat.com>
13931 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
13932 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
13934 2013-02-14 Pedro Alves <palves@redhat.com>
13936 * tracepoint.c (cmd_qtdpsrc): Use savestring.
13938 2013-02-14 Pedro Alves <palves@redhat.com>
13940 * tracepoint.c (save_string): Delete.
13941 (add_tracepoint_action): Use savestring instead of save_string.
13943 2013-02-12 Pedro Alves <palves@redhat.com>
13945 * linux-xtensa-low.c: Ditto.
13946 * xtensa-xtregs.c: Ditto.
13948 2013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13950 * thread-db.c (thread_db_get_tls_address): NULL pointer check
13953 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
13955 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
13956 aarch64_num_wp_regs and aarch64_num_bp_regs to
13957 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
13959 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
13961 * linux-aarch64-low.c (ps_get_thread_area): Replace
13962 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
13964 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
13965 Marcus Shawcroft <marcus.shawcroft@arm.com>
13966 Nigel Stephens <nigel.stephens@arm.com>
13967 Yufeng Zhang <yufeng.zhang@arm.com>
13969 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
13970 (aarch64.c, aarch64-without-fpu.c): New targets.
13971 * configure.srv (aarch64*-*-linux*): New.
13972 * linux-aarch64-low.c: New file.
13974 2013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
13976 * linux-low.c (handle_extended_wait, linux_create_inferior)
13977 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
13978 (dequeue_one_deferred_signal, linux_resume_one_thread)
13979 (fetch_register, linux_write_memory, linux_enable_event_reporting)
13980 (linux_tracefork_grandchild, linux_test_for_tracefork)
13981 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
13982 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
13983 where the argument is 0.
13985 2013-01-25 Yao Qi <yao@codesourcery.com>
13987 * event-loop.c: Include "queue.h".
13988 (gdb_event_p): New typedef.
13989 (struct gdb_event) <next_event>: Remove.
13990 (event_queue): Change to QUEUE(gdb_event_p).
13991 (async_queue_event): Remove.
13992 (gdb_event_xfree): New.
13993 (initialize_event_loop): New.
13994 (process_event): Use API from QUEUE.
13995 (wait_for_event): Likewise.
13996 * server.c (main): Call initialize_event_loop.
13997 * server.h (initialize_event_loop): Declare.
13999 2013-01-18 Yao Qi <yao@codesourcery.com>
14001 * ax.h (struct eval_agent_expr_context): New.
14002 (gdb_eval_agent_expr): Update declaration.
14003 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
14004 TFRAME. Add new argument CTX.
14005 * server.h (struct eval_agent_expr_context): Declare.
14006 (agent_mem_read, agent_tsv_read): Update declaration.
14007 (agent_mem_read_string): Likewise.
14008 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
14009 (add_traceframe_block): Add new argument TPOINT.
14010 Increase TPOINT->traceframe_usage.
14011 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
14012 eval_tracepoint_agent_expr.
14013 (condition_true_at_tracepoint): Likewise.
14014 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
14015 (agent_mem_read_string, agent_tsv_read): Likewise.
14017 2013-01-16 Yao Qi <yao@codesourcery.com>
14019 * linux-low.c (linux_resume_one_lwp): Don't check
14020 'lwp->bp_reinsert != 0'.
14022 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14023 Pedro Alves <palves@redhat.com>
14025 * lynx-low.c (ptrace_request_to_str): Define a temporary
14026 macro and use it to simplify this function's implementation.
14028 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14030 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
14033 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14035 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
14037 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14039 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
14041 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14043 * lynx-low.c (lynx_resume): Use the resume_info parameter
14044 to determine the ptid for the lynx_ptrace call, unless
14045 it is equal to minus_one_ptid, in which case we use the
14046 ptid of the current_inferior.
14047 (lynx_wait_1): After having received a thread create/exit
14048 event, resume the inferior's execution using the signaling
14049 thread's ptid, rather than the old ptid.
14051 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14053 * lynx-low.c (lynx_resume): Delete variable ret.
14055 2013-01-01 Joel Brobecker <brobecker@adacore.com>
14057 * gdbreplay.c (gdbreplay_version): Update copyright year.
14058 * server.c (gdbserver_version): Likewise.
14060 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14062 * lynx-low.c (lynx_wait_1): Add debug trace before adding
14065 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14067 * lynx-low.c (ptrace_request_to_str): Add handling for
14068 PTRACE_GETTRACESIG.
14070 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14072 * lynx-low.c (lynx_attach): Delete variable new_process.
14074 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14076 * lynx-low.c (lynx_create_inferior): Delete variable
14079 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14081 * lynx-low.c (ptrace_request_to_str): Do not handle
14082 PTRACE_GETTHREADLIST if this macro does not exist.
14084 2012-12-15 Yao Qi <yao@codesourcery.com>
14086 * Makefile.in (OBS): Add notif.o.
14087 * notif.c, notif.h: New.
14088 * server.c: Include "notif.h".
14089 (struct vstop_notif) <next>: Remove.
14091 (queue_stop_reply): Update.
14092 (push_event, send_next_stop_reply): Remove.
14093 (discard_queued_stop_replies): Update.
14094 (notif_stop): New variable.
14095 (handle_v_stopped): Remove.
14096 (handle_v_requests): Don't call handle_v_stopped. Call
14097 handle_ack_notif instead.
14098 (queue_stop_reply_callback): Call notif_event_enque instead
14099 of queue_stop_reply.
14100 (handle_status): Don't call send_next_stop_reply, call
14101 notif_write_event instead.
14102 (kill_inferior_callback): Likewise.
14103 (detach_or_kill_inferior_callback): Likewise.
14104 (main): Call initialize_notif.
14105 (process_serial_event): Call QUEUE_is_empty.
14106 (handle_target_event): Call notif_push instead of push event.
14107 * server.h (push_event): Remove declaration.
14109 2012-12-10 Tom Tromey <tromey@redhat.com>
14111 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
14112 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
14115 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
14116 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
14117 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
14118 (amd64-linux-ipa.o, ax.o): Rewrite.
14119 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
14120 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
14121 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
14122 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
14123 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
14124 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
14125 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
14126 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
14127 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
14128 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
14129 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
14130 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
14131 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
14132 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
14133 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
14134 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
14135 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
14136 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
14137 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
14138 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
14139 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
14140 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
14141 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
14142 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
14143 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
14144 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
14145 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
14146 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
14147 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
14148 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
14149 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
14150 (reg-tilegx.o): Remove.
14151 (all_object_files): New macro.
14152 Include .deps files.
14153 * aclocal.m4, configure: Rebuild.
14154 * acinclude.m4: Include depstand.m4, lead-dot.m4.
14155 * configure.ac: Invoke ZW_CREATE_DEPDIR,
14156 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
14158 2012-12-05 Tom Tromey <tromey@redhat.com>
14161 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
14163 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
14165 * configure.ac: Check for linux/perf_event.h.
14166 * config.in: Regenerated.
14167 * configure: Regenerated.
14169 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
14171 * hostio.c (handle_readlink): Decrease buffer size
14172 parameter passed to readlink by one byte.
14174 2012-11-26 Yao Qi <yao@codesourcery.com>
14176 * configure.ac (build_warnings): Append '-Wempty-body'.
14177 * configure: Regenerated.
14178 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
14181 2012-11-15 Pierre Muller <muller@sourceware.org>
14183 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
14184 * config.in: Regenerate.
14185 * configure: Regenerate.
14186 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
14187 Use "gdb_wait.h" header instead of <sys/wait.h> header.
14188 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14189 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
14191 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
14192 instead of <sys/wait.h> header.
14193 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14195 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
14197 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
14198 (various make rules): Remove -DGDBSERVER
14200 2012-11-09 Yao Qi <yao@codesourcery.com>
14202 * spu-low.c (current_ptid): Move it to ..
14203 * gdbthread.h: ... here. New.
14204 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
14205 * server.c (myresume, process_serial_event): Likewise.
14206 * thread-db.c (thread_db_find_new_threads): Likewise.
14207 * tracepoint.c (run_inferior_command): Likewise.
14209 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
14211 * server.c (handle_search_memory_1): Include access length in
14214 2012-09-05 Michael Brandt <michael.brandt@axis.com>
14216 * linux-crisv32-low.c: Fix compile errors.
14218 2012-09-04 Yao Qi <yao@codesourcery.com>
14220 * tracepoint.c (cmd_qtsv): Adjust debug message.
14221 Don't check CUR_TPOINT.
14223 2012-08-28 Yao Qi <yao@codesourcery.com>
14225 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
14226 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
14227 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
14228 Remove declarations of xmalloc, xreallloc, xstrdup and
14230 * Makefile.in (libiberty_h): New.
14231 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
14232 (linux-bfin-low.o): Append dependency 'libiberty.h'.
14234 2012-08-23 Yao Qi <yao@codesourcery.com>
14236 * server.h: Remove declaration of 'xsnprintf'.
14238 2012-08-22 Keith Seitz <keiths@redhat.com>
14240 * server.h: Include build-gnulib-gbserver/config.h.
14241 * gdbreplay.c: Likewise.
14243 2012-08-08 Doug Evans <dje@google.com>
14245 * Makefile.in (SFILES): Add gdb_vecs.c.
14246 (OBS): Add gdb_vecs.o.
14247 (gdb_vecs_h, host_defs_h): New variables.
14248 (thread-db.o): Add $(gdb_vecs_h) dependency.
14249 (gdb_vecs.o): New rule.
14250 * thread-db.c: #include "gdb_vecs.h".
14251 (thread_db_load_search): Use a vector to iterate over path elements.
14252 Handle text appearing after "$pdir".
14254 * configure.ac: Add check for strstr.
14255 * config.in: Regenerate.
14256 * configure: Regenerate.
14258 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
14260 * hostio.c (handle_pread): If pread fails, fall back to attempting
14262 (handle_pwrite): Likewise for pwrite.
14264 2012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
14266 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
14267 between unsupported TYPE and unimplementable ADDR/LEN combination.
14268 (arm_insert_point): Act on new return value.
14270 2012-07-31 Pedro Alves <palves@redhat.com>
14272 * server.c (process_point_options): Only skip tokens if we find
14273 one that is unrecognized. Don't treat 'X' specially while
14274 skipping unrecognized tokens.
14276 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
14278 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
14279 to 4-byte-align HW breakpoint addresses for Thumb.
14281 2012-07-27 Yao Qi <yao@codesourcery.com>
14285 * server.h: Declare gdb_agent_about_to_close.
14286 * target.c (kill_inferior): Include "agent.h".
14287 New. Send command 'kill'.
14288 * target.h (kill_inferior): Removed macro.
14289 * tracepoint.c (gdb_agent_about_to_close): New.
14290 (gdb_agent_helper_thread): Handle command 'close'.
14291 Wait endlessly until the inferior stops.
14292 Install gdb_agent_remove_socket to atexit hook.
14293 (agent_socket_name): New static variable.
14294 (gdb_agent_socket_init): Replace local variable 'name' with
14295 'agent_socket_name'.
14296 (gdb_agent_remove_socket): New.
14298 2012-07-27 Yao Qi <yao@codesourcery.com>
14300 * server.c (process_point_options): Stop at 'X' when parsing.
14302 2012-07-19 Michael Eager <eager@eagercon.com>
14304 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
14306 * linux-x86-low.c (x86_insert_point, x86_remove_point):
14307 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
14308 hardware breakpoint.
14310 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14312 * gdbserver/linux-low.c (initialize_low): Call
14313 linux_ptrace_init_warnings.
14315 2012-07-02 Doug Evans <dje@google.com>
14317 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
14320 2012-07-02 Stan Shebs <stan@codesourcery.com>
14322 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
14323 (ax.o): Add it to build rule.
14325 (OBS): Add format.o.
14326 (IPA_OBS): Add format.o.
14327 * server.c (handle_query): Claim support for breakpoint commands.
14328 (process_point_options): Add command case.
14329 (process_serial_event): Leave running if there are printfs in
14331 * mem-break.h (any_persistent_commands): Declare.
14332 (add_breakpoint_commands): Declare.
14333 (gdb_no_commands_at_breakpoint): Declare.
14334 (run_breakpoint_commands): Declare.
14335 * mem-break.c (struct point_command_list): New struct.
14336 (struct breakpoint): New field command_list.
14337 (any_persistent_commands): New function.
14338 (add_commands_to_breakpoint): New function.
14339 (add_breakpoint_commands): New function.
14340 (gdb_no_commands_at_breakpoint): New function.
14341 (run_breakpoint_commands): New function.
14342 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
14344 * ax.c: Include format.h.
14345 (ax_printf): New function.
14346 (gdb_eval_agent_expr): Add printf opcode.
14348 2012-06-13 Yao Qi <yao@codesourcery.com>
14350 * server.c (start_inferior): Remove duplicated writes to fields
14351 'last_resume_kind' and 'last_status' of 'current_inferior'.
14353 2012-06-12 Yao Qi <yao@codesourcery.com>
14354 Pedro Alves <palves@redhat.com>
14356 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
14358 * server.c (handle_v_cont): Extend comment.
14360 2012-06-11 Yao Qi <yao@codesourcery.com>
14362 * linux-low.c (linux_attach): Add 'static'.
14364 2012-06-06 Yao Qi <yao@codesourcery.com>
14366 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
14368 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
14370 Fix gcc -flto compilation warning.
14371 * server.c (main): Make variable multi_mode and attach volatile.
14373 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14375 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
14376 if the platform doesn't know about it.
14378 2012-05-30 Jeff Kenton <jkenton@tilera.com>
14380 * Makefile.in (SFILES): Add linux-tile-low.c.
14381 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
14382 * configure.srv: Handle tilegx-*-linux*.
14383 * linux-tile-low.c: New file.
14385 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
14387 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
14389 2012-05-24 Pedro Alves <palves@redhat.com>
14393 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
14395 2012-05-24 Pedro Alves <palves@redhat.com>
14399 Replace target_signal with gdb_signal throughout.
14401 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
14403 * linux-low.c (linux_store_registers): Avoid the copying sequence
14404 when no data has been retrieved by ptrace.
14406 2012-05-22 Will Deacon <will.deacon@arm.com>
14408 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
14409 Include asm/ptrace.h.
14410 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
14413 2012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
14415 * linux-low.c (linux_store_registers): Don't re-retrieve data
14416 with ptrace that has already been obtained from /proc. Always
14417 copy any data retrieved with ptrace to the buffer supplied.
14419 2012-05-11 Yao Qi <yao@codesourcery.com>
14420 Pedro Alves <palves@redhat.com>
14422 * linux-low.c (enum stopping_threads_kind): New.
14423 (stopping_threads): Change type to `enum stopping_threads_kind'.
14424 (handle_extended_wait): If stopping and suspending threads, leave
14425 the new_lwp suspended too.
14426 (linux_wait_for_event): Adjust.
14427 (stop_all_lwps): Set `stopping_threads' to
14428 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
14429 whether we're suspending threads or just stopping them. Assert no
14432 2012-04-29 Yao Qi <yao@codesourcery.com>
14434 * server.h: Move some code to ...
14435 * gdbthread.h: ... here. New.
14436 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
14437 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
14438 (nto-low.o, win32-low.o): Likewise.
14439 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
14440 * regcache.c, remote-utils.c, server.c: Likewise.
14441 * target.c, tracepoint.c, win32-low.c: Likewise.
14443 2012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14445 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
14446 (PTRACE_ARG4_TYPE): Likewise.
14447 (PTRACE_XFER_TYPE): Likewise.
14448 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
14449 ptrace to PTRACE_ARG3_TYPE.
14450 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
14451 (PTRACE_ARG4_TYPE): Likewise.
14452 (PTRACE_XFER_TYPE): Likewise.
14453 (linux_detach_one_lwp): Cast fourth argument of
14454 ptrace to long then PTRACE_ARG4_TYPE.
14455 (regsets_fetch_inferior_registers): Cast third argument of
14456 ptrace to long then PTRACE_ARG3_TYPE.
14457 (regsets_store_inferior_registers): Likewise.
14459 2012-04-20 Pedro Alves <palves@redhat.com>
14461 * configure: Regenerate.
14463 2012-04-19 Pedro Alves <palves@redhat.com>
14465 * Makefile.in (GNULIB_BUILDDIR): New.
14466 (LIBGNU, INCGNU, GNULIB_H): Adjust.
14467 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
14468 (all, install-only, uninstall, clean-info, all-lib, clean): No
14469 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
14470 (maintainer-clean realclean distclean): Use subdir_do.
14472 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
14473 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
14474 * acinclude.m4: Include acx_configure_dir.m4.
14475 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
14476 calls. Call AC_PROG_RANLIB. Configure gnulib using
14479 (GNULIB_STDINT_H): Adjust.
14480 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
14481 * gdbreplay.c: Include build-gnulib/config.h.
14482 * server.h: Likewise.
14483 * aclocal.m4: Regenerate.
14484 * config.in: Regenerate.
14485 * configure: Regenerate.
14487 2012-04-19 Pedro Alves <palves@redhat.com>
14489 * Makefile.in (LIBGNU, INCGNU): Adjust.
14490 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
14491 (all, install-only, uninstall, clean-info, all-lib, clean)
14492 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
14493 * configure.ac: Adjust AC_OUTPUT output.
14494 * aclocal.m4: Regenerate.
14495 * configure: Regenerate.
14497 2012-04-19 Pedro Alves <palves@redhat.com>
14499 * Makefile.in (generated_files): New.
14500 (server_h): Remove the explicit dependency on config.h, and depend
14501 on $generated_files.
14503 2012-04-19 Pedro Alves <palves@redhat.com>
14505 * Makefile.in (INCGNU): Add -Ignulib.
14507 2012-04-19 Pedro Alves <palves@redhat.com>
14509 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
14510 (INCGNU): ... this, and spell out -I here.
14511 (GNULIB_LIB): Rename to ...
14512 (LIBGNU): ... this.
14513 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
14515 2012-04-19 Pedro Alves <palves@redhat.com>
14517 * config.in: Regenerate.
14519 2012-04-19 Pedro Alves <palves@redhat.com>
14521 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
14522 * server.h (memmem): Remove declaration.
14523 * config.in: Regenerate.
14524 * configure: Regenerate.
14526 2012-04-19 Yao Qi <yao@codesourcery.com>
14528 * Makefile.in (SFILES): Add common/vec.c.
14532 2012-04-19 Yao Qi <yao@codesourcery.com>
14534 * remote-utils.c (prepare_resume_reply): Replace with macro
14535 target_core_of_thread.
14536 * server.c (handle_qxfer_threads_proper): Likewise.
14537 * target.h (traget_core_of_thread): New macro.
14539 2012-04-18 Pedro Alves <palves@redhat.com>
14541 * aclocal.m4: Regenerate.
14542 * configure: Regenerate.
14544 2012-04-16 Yao Qi <yao@codesourcery.com>
14546 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
14547 duplicated on address.
14549 2012-04-16 Yao Qi <yao@codesourcery.com>
14551 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
14552 (struct tracepoint_action_ops) <send>: New field.
14553 (m_tracepoint_action_send, r_tracepoint_action_send): New.
14554 (agent_expr_send, x_tracepoint_action_send): New.
14555 (l_tracepoint_action_send): New.
14556 (cmd_qtdp): Download and install tracepoint
14557 according to `use_agent'.
14558 (run_inferior_command): Add one more parameter `len'.
14560 (tracepoint_send_agent): New.
14561 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
14563 2012-04-16 Yao Qi <yao@codesourcery.com>
14565 * tracepoint.c (download_tracepoints): Moved to ...
14566 (cmd_qtstart): ... here.
14568 2012-04-14 Yao Qi <yao@codesourcery.com>
14570 * tracepoint.c: Include inttypes.h.
14571 (struct collect_memory_action): Use sized types.
14572 (struct tracepoint): Likewise.
14573 (cmd_qtdp, stop_tracing): Update print specifiers.
14574 (cmd_qtp, response_tracepoint): Likewise.
14575 (collect_data_at_tracepoint): Likewise.
14576 (collect_data_at_step): Likewise.
14578 2012-04-14 Yao Qi <yao@codesourcery.com>
14580 Import gnulib module inttypes.
14581 * aclocal.m4, config.in, configure: Regenerated.
14583 2012-04-14 Yao Qi <yao@codesourcery.com>
14585 * Makefile.in (maintainer-clean, realclean, distclean): Remove
14586 Makefile and config.status at last.
14588 2012-04-13 Yao Qi <yao@codesourcery.com>
14590 * tracepoint.c: Include stdint.h unconditionally.
14592 2012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14594 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
14595 on BFD_HAVE_SYS_PROCFS_TYPE.
14596 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
14597 * configure: Regenerate.
14598 * config.in: Likewise.
14600 2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
14602 * Makefile.in (clean): Also remove x32.c x32-linux.c
14603 x32-avx.c x32-avx-linux.c.
14604 (x32.o): New target.
14606 (x32-linux.o): Likewise.
14607 (x32-linux.c): Likewise.
14608 (x32-avx.o): Likewise.
14609 (x32-avx.c): Likewise.
14610 (x32-avx-linux.o): Likewise.
14611 (x32-avx-linux.c): Likewise.
14613 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
14614 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
14615 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
14616 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
14617 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
14618 i386/x32-avx-linux.xml.
14620 * linux-x86-low.c (init_registers_x32_linux): New prototype.
14621 (init_registers_x32_avx_linux): Likwise.
14622 (x86_linux_update_xmltarget): Call init_registers_x32_linux
14623 or init_registers_x32_avx_linux if linux_is_elf64 is false.
14625 2012-04-13 Pedro Alves <palves@redhat.com>
14627 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
14628 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
14629 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
14630 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
14633 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
14635 * linux-x86-low.c (compat_x32_clock_t): New.
14636 (compat_x32_siginfo_t): Likewise.
14637 (compat_x32_siginfo_from_siginfo): Likewise.
14638 (siginfo_from_compat_x32_siginfo): Likewise.
14639 (linux_is_elf64): Likewise.
14640 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
14641 and siginfo_from_compat_x32_siginfo for x32.
14642 (x86_arch_setup): Set linux_is_elf64.
14644 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
14647 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
14649 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
14650 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
14651 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
14652 compatible with process.
14654 2012-04-12 Yao Qi <yao@codesourcery.com>
14656 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
14657 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
14658 (install-only, install-info, clean): Handle sub dir gnulib.
14659 (all-lib, am--refresh): New targets.
14660 (memmem.o): Remove target.
14661 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
14662 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
14663 (AC_REPLACE_FUNCS): Remove memmem.
14664 Invoke gl_INIT and AM_INIT_AUTOMAKE.
14665 (AC_OUTPUT): Generate Makefile in gnulib/.
14666 * aclocal.m4, config.in, configure: Regenerated.
14668 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
14670 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
14672 2012-04-05 Pedro Alves <palves@redhat.com>
14674 -Werror=strict-aliasing
14676 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
14679 2012-04-04 Pedro Alves <palves@redhat.com>
14681 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
14682 (sparc_store_gregset_from_stack, sparc_store_gregset)
14683 (sparc_breakpoint_at): Fix formatting.
14685 2012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14687 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
14689 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
14690 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
14691 * config.in: Regenerate.
14692 * configure: Likewise.
14694 2012-03-29 Pedro Alves <palves@redhat.com>
14696 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
14697 Correct ptrace arguments.
14699 2012-03-28 Pedro Alves <palves@redhat.com>
14701 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
14702 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
14703 (IA64_FR1_REGNUM): New defines.
14704 (ia64_fetch_register): New.
14705 (the_low_target): Install it.
14706 * linux-low.h (struct linux_target_ops) <fetch_register>: New
14708 * linux-low.c (linux_fetch_registers): Try the
14709 the_low_target.fetch_register hook first.
14711 * linux-arm-low.c (the_low_target): Adjust.
14712 * linux-bfin-low.c (the_low_target): Adjust.
14713 * linux-cris-low.c (the_low_target): Adjust.
14714 * linux-crisv32-low.c (the_low_target): Adjust.
14715 * linux-m32r-low.c (the_low_target): Adjust.
14716 * linux-m68k-low.c (the_low_target): Adjust.
14717 * linux-mips-low.c (the_low_target): Adjust.
14718 * linux-ppc-low.c (the_low_target): Adjust.
14719 * linux-s390-low.c (the_low_target): Adjust.
14720 * linux-sh-low.c (the_low_target): Adjust.
14721 * linux-sparc-low.c (the_low_target): Adjust.
14722 * linux-tic6x-low.c (the_low_target): Adjust.
14723 * linux-x86-low.c (the_low_target): Adjust.
14724 * linux-xtensa-low.c (the_low_target): Adjust.
14726 2012-03-26 Pedro Alves <palves@redhat.com>
14728 * server.c (handle_qxfer_libraries): Don't bail early if
14729 the_target->qxfer_libraries_svr4 is not NULL.
14731 2012-03-26 Pedro Alves <palves@redhat.com>
14733 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
14735 2012-03-23 Pedro Alves <palves@redhat.com>
14737 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
14738 "library-list-svr4" element's start tag when the the DSO list is
14741 2012-03-23 Pedro Alves <palves@redhat.com>
14743 * linux-low.c (read_one_ptr): Read the inferior's pointer through
14744 a variable whose type size is the same as the inferior's pointer
14747 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
14749 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
14751 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
14752 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
14753 * linux-low.h: Include <signal.h>.
14754 (struct siginfo): Remove forward declaration.
14755 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
14758 2012-03-21 Mike Frysinger <vapier@gentoo.org>
14760 * .gitignore: Ignore more files.
14762 2012-03-19 Pedro Alves <palves@redhat.com>
14763 Jan Kratochvil <jan.kratochvil@redhat.com>
14765 * server.c (cont_thread, general_thread): Add describing comments.
14766 (start_inferior): Clear `cont_thread'.
14767 (handle_v_cont): Don't set `cont_thread' if resuming all threads
14770 2012-03-15 Yao Qi <yao@codesourcery.com>
14772 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
14774 (cmd_qtdp): ... here.
14776 2012-03-15 Yao Qi <yao@codesourcery.com>
14778 * tracepoint.c (struct tracepoint_action_ops): New.
14779 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
14780 (m_tracepoint_action_download): New.
14781 (r_tracepoint_action_download): New.
14782 (x_tracepoint_action_download): New.
14783 (l_tracepoint_action_download): New.
14784 (add_tracepoint_action): Install `action->ops' according type.
14785 (download_tracepoint_1): Move code `download' function pointer
14786 of various tracepoint_action_ops.
14788 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
14790 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
14791 linux_ptrace_attach_warnings.
14793 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
14795 * Makefile.in (linux-ptrace.o): New.
14796 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
14797 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
14798 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
14799 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
14800 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
14802 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
14804 2012-03-08 Yao Qi <yao@codesourcery.com>
14805 Pedro Alves <palves@redhat.com>
14807 Fix PR server/13392.
14808 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
14809 offset of JMP insn.
14810 * tracepoint.c (remove_tracepoint): New.
14811 (cmd_qtdp): Call remove_tracepoint when failed to install.
14813 2012-03-07 Pedro Alves <palves@redhat.com>
14815 * linux-low.c (get_detach_signal): New.
14816 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
14817 Pass on pending signals to PTRACE_DETACH. Check the result of the
14819 * server.c (program_signals, program_signals_p): New.
14820 (handle_general_set): Handle QProgramSignals.
14821 * server.h (program_signals, program_signals_p): Declare.
14823 2012-03-05 Pedro Alves <palves@redhat.com>
14824 Jan Kratochvil <jan.kratochvil@redhat.com>
14826 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
14829 2012-03-03 Yao Qi <yao@codesourcery.com>
14831 * tracepoint.c (tracepoint_look_up_symbols): Update call to
14832 agent_look_up_symbols.
14834 2012-03-03 Yao Qi <yao@codesourcery.com>
14836 * Makefile.in (linux-low.o): Keep dependence on agent.h.
14837 (linux-x86-low.o): Likewise.
14838 * server.h: Remove in_process_agent_loaded.
14839 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
14843 2012-03-03 Yao Qi <yao@codesourcery.com>
14845 * tracepoint.c (gdb_agent_capability): New global.
14846 (in_process_agent_loaded_ust): Renamed to
14847 `in_process_agent_supports_ust'.
14849 (in_process_agent_supports_ust): Call agent_capability_check.
14850 (clear_installed_tracepoints): Assert that agent supports
14853 2012-03-03 Yao Qi <yao@codesourcery.com>
14855 * linux-low.c (linux_supports_agent): New.
14856 (linux_target_ops): Initialize field `supports_agent' with
14857 linux_supports_agent.
14858 * target.h (struct target_ops) <supports_agent>: New.
14859 (target_supports_agent): New macro.
14860 * server.c (handle_general_set): Handle packet 'QAgent'.
14861 (handle_query): Send `QAgent+'.
14862 * Makefile.in (server.o): Depends on agent.h.
14864 2012-03-03 Yao Qi <yao@codesourcery.com>
14866 * Makefile.in (OBS): Add agent.o.
14867 Add new rule for agent.o.
14868 Track dependence of tracepoint.c on agent.h.
14869 * tracepoint.c (run_inferior_command_1):
14870 (run_inferior_command): Call agent_run_command.
14871 (gdb_ust_connect_sync_socket): Deleted. Move it to
14873 (resume_thread, stop_thread): Likewise.
14874 (gdb_ust_socket_init): Renamed to ...
14875 (gdb_agent_socket_init): ... New.
14876 (gdb_ust_thread): Renamed to ...
14877 (gdb_agent_helper_thread): ... New.
14878 (gdb_ust_init): Move some code to ...
14879 (gdb_agent_init): ... here. New.
14880 [HAVE_UST]: Call gdb_ust_init.
14881 (initialize_tracepoint_ftlib): Call gdb_agent_init.
14882 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
14883 * config.in, configure: Regenerated.
14885 2012-03-02 Pedro Alves <palves@redhat.com>
14887 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
14888 * linux-low.c (struct simple_pid_list): New.
14889 (stopped_pids): New a struct simple_pid_list pointer.
14890 (add_to_pid_list, pull_pid_from_list): New.
14891 (handle_extended_wait): Don't assume the first signal new children
14892 report is SIGSTOP. Adjust call to pull_pid_from_list.
14893 (linux_wait_for_lwp): Adjust.
14895 2012-03-02 Yao Qi <yao@codesourcery.com>
14897 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
14900 2012-03-02 Yao Qi <yao@codesourcery.com>
14902 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
14903 `stop_pc' and `tpoint'. Update caller.
14905 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
14907 * linux-low.h (linux_target_ops): Add regset_bitmap member.
14908 * linux-low.c (use_linux_regsets): New macro.
14909 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
14910 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
14911 (linux_register_in_regsets): New function.
14912 (usr_fetch_inferior_registers): Skip registers covered by
14914 (usr_store_inferior_registers): Likewise.
14915 (usr_fetch_inferior_registers): New macro.
14916 (usr_store_inferior_registers): Likewise.
14917 (linux_fetch_registers): Handle mixed regset/non-regset targets.
14918 (linux_store_registers): Likewise.
14919 * linux-mips-low.c (init_registers_mips_dsp_linux): New
14921 (init_registers_mips64_dsp_linux): Likewise.
14922 (init_registers_mips_linux): New macro.
14923 (init_registers_mips_dsp_linux): Likewise.
14924 (mips_dsp_num_regs): Likewise.
14925 (DSP_BASE, DSP_CONTROL): New fallback macros.
14926 (mips_base_regs): New macro.
14927 (mips_regmap): Use it. Fix the size.
14928 (mips_dsp_regmap): New variable.
14929 (mips_dsp_regset_bitmap): Likewise.
14930 (mips_arch_setup): New function.
14931 (mips_cannot_fetch_register): Use the_low_target.regmap rather
14933 (mips_cannot_store_register): Likewise.
14934 (the_low_target): Update .arch_setup, .num_regs and .regmap
14935 initializers. Add .regset_bitmap initializer.
14936 * linux-arm-low.c (the_low_target): Add .regset_bitmap
14938 * linux-bfin-low.c (the_low_target): Likewise.
14939 * linux-cris-low.c (the_low_target): Likewise.
14940 * linux-crisv32-low.c (the_low_target): Likewise.
14941 * linux-ia64-low.c (the_low_target): Likewise.
14942 * linux-m32r-low.c (the_low_target): Likewise.
14943 * linux-m68k-low.c (the_low_target): Likewise.
14944 * linux-ppc-low.c (the_low_target): Likewise.
14945 * linux-s390-low.c (the_low_target): Likewise.
14946 * linux-sh-low.c (the_low_target): Likewise.
14947 * linux-sparc-low.c (the_low_target): Likewise.
14948 * linux-tic6x-low.c (the_low_target): Likewise.
14949 * linux-x86-low.c (the_low_target): Likewise.
14950 * linux-xtensa-low.c (the_low_target): Likewise.
14951 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
14952 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
14953 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
14955 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
14956 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
14958 2012-02-29 Yao Qi <yao@codesourcery.com>
14959 Pedro Alves <palves@redhat.com>
14961 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
14962 `step_over_finished' is true.
14964 2012-02-27 Pedro Alves <palves@redhat.com>
14966 * linux-low.c (pid_is_stopped): Delete, moved to common/.
14967 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
14969 2012-02-27 Pedro Alves <palves@redhat.com>
14972 * linux-low.c (pid_is_stopped): New.
14973 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
14975 2012-02-25 Luis Machado <lgustavo@codesourcery.com>
14977 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
14980 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
14982 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
14984 2012-02-24 Luis Machado <lgustavo@codesourcery>
14986 * server.c (handle_query): Advertise support for target-side
14987 breakpoint condition evaluation.
14988 (process_point_options): New function.
14989 (process_serial_event): When inserting a breakpoint, check for
14990 a target-side condition that should be evaluated.
14992 * mem-break.c: Include regcache.h and ax.h.
14993 (point_cond_list_t): New data structure.
14994 (breakpoint) <cond_list>: New field.
14995 (find_gdb_breakpoint_at): Make non-static.
14996 (delete_gdb_breakpoint_at): Clear any target-side
14998 (clear_gdb_breakpoint_conditions): New function.
14999 (add_condition_to_breakpoint): Likewise.
15000 (add_breakpoint_condition): Likewise.
15001 (gdb_condition_true_at_breakpoint): Likewise.
15002 (gdb_breakpoint_here): Return result directly instead
15003 of going through a local variable.
15005 * mem-break.h (find_gdb_breakpoint_at): New prototype.
15006 (clear_gdb_breakpoint_conditions): Likewise.
15007 (add_breakpoint_condition): Likewise.
15008 (gdb_condition_true_at_breakpoint): Likewise.
15010 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
15011 (need_step_over_p): Take target-side breakpoint condition into
15014 2012-02-24 Luis Machado <lgustavo@codesourcery>
15016 * server.h: Include tracepoint.h.
15017 (agent_mem_read, agent_get_trace_state_variable_value,
15018 agent_set_trace_state_variable_value,
15019 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
15020 get_set_tsv_func_addr): New prototypes.
15022 * ax.h: New include file.
15023 * ax.c: New source file.
15025 * tracepoint.c: Include ax.h.
15026 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
15027 agent_expr, eval_result_type): Move to ax.h.
15028 (parse_agent_expr): Rename to ...
15029 (gdb_parse_agent_expr): ... this, make it non-static and move
15031 (unparse_agent_expr) Rename to ...
15032 (gdb_unparse_agent_expr): ... this, make it non-static and move
15034 (eval_agent_expr): Rename to ...
15035 (eval_tracepoint_agent_expr): ... this.
15036 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
15037 forward declarations.
15038 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
15039 (agent_get_trace_state_variable_value): New function.
15040 (agent_set_trace_state_variable_value): New function.
15041 (cmd_qtdp): Call gdb_parse_agent_expr (...).
15042 (response_tracepoint): Call gdb_unparse_agent_expr (...).
15043 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
15044 (condition_true_at_tracepoint): Likewise.
15045 (parse_agent_expr): Rename to ...
15046 (gdb_parse_agent_expr): ... this and move to ax.c.
15047 (unparse_agent_expr): Rename to ...
15048 (gdb_unparse_agent_expr): ... this and move to ax.c.
15049 (gdb_agent_op_name): Move to ax.c.
15050 (eval_agent_expr): Rename to ...
15051 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
15053 (eval_tracepoint_agent_expr): New function.
15054 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
15056 (current_insn_ptr, emit_error, struct bytecode_address): Move to
15058 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
15059 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
15060 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
15061 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
15062 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
15063 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
15064 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
15065 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
15066 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
15067 (compile_bytecodes): Remove forward declaration.
15068 (is_goto_target): Move to ax.c.
15069 (compile_bytecodes): Move to ax.c and call
15070 agent_get_trace_state_variable_value (...) and
15071 agent_set_trace_state_variable_value (...).
15073 * Makefile.in: Update ax.c and IPA dependencies.
15075 2012-02-24 Pedro Alves <palves@redhat.com>
15077 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
15078 (cmd_bigqtbuffer_circular): ... this. Only handle
15079 'QTBuffer:circular:'.
15080 (handle_tracepoint_general_set): Adjust.
15082 2012-02-16 Yao Qi <yao@codesourcery.com>
15084 * inferiors.c: Move code to ...
15085 * dll.c: .... here. New.
15086 * server.h: Declare clear_dlls.
15087 * Makefile.in (SFILES): Add dll.c.
15091 2012-02-11 Yao Qi <yao@codesourcery.com>
15093 * server.c: (handle_monitor_command): Add a new parameter
15095 (handle_query): Update caller.
15097 2012-02-09 Joel Brobecker <brobecker@adacore.com>
15099 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
15100 * configure, config.in: Regenerate.
15101 * hostio.c: Provide an alternate implementation if HAVE_READLINK
15104 2012-02-02 Pedro Alves <palves@redhat.com>
15106 Try SIGKILL first, then PTRACE_KILL.
15107 * linux-low.c (linux_kill_one_lwp): New.
15108 (linux_kill_one_lwp): Rename to ...
15109 (kill_one_lwp_callback): ... this. Use the new
15110 linux_kill_one_lwp.
15112 2012-02-02 Pedro Alves <palves@redhat.com>
15114 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
15117 2012-01-27 Pedro Alves <palves@redhat.com>
15119 * linux-low.c (linux_child_pid_to_exec_file): Delete.
15120 (elf_64_file_p): Make static.
15121 (linux_pid_exe_is_elf_64_file): New.
15122 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
15123 Delete declarations.
15124 (linux_pid_exe_is_elf_64_file): Declare.
15125 * linux-x86-low.c (x86_arch_setup): Use
15126 linux_pid_exe_is_elf_64_file.
15128 2012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
15130 * linux-low.c (linux_wait_for_event_1): Rename to ...
15131 (linux_wait_for_event): ... here and merge it with former
15132 linux_wait_for_event - new variable wait_ptid, use it.
15133 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
15135 2012-01-23 Pedro Alves <palves@redhat.com>
15137 * server.c (main): Avoid yet another case of infinite loop while
15138 detaching/killing after a longjmp.
15140 2012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15143 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
15145 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
15147 * hostio.c (handle_readlink): New function.
15148 (handle_vFile): Call it to handle "vFile:readlink" packets.
15150 2012-01-20 Pedro Alves <palves@redhat.com>
15151 Ulrich Weigand <ulrich.weigand@linaro.org>
15153 * server.c (handle_v_requests): Only support vAttach and vRun to
15154 start multiple processes when in extended protocol mode.
15156 2012-01-17 Pedro Alves <palves@redhat.com>
15158 * tracepoint.c (initialize_tracepoint): Use mmap instead of
15159 memalign plus mprotect to allocate the scratch buffer.
15161 2012-01-13 Pedro Alves <palves@redhat.com>
15163 * server.c (attach_inferior): Clear `cont_thread'.
15165 2012-01-13 Pedro Alves <palves@redhat.com>
15167 * server.c (main): Avoid infinite loop while detaching/killing
15170 2012-01-09 Doug Evans <dje@google.com>
15172 * server.c (start_inferior): Set last_ptid in --wrapper case.
15174 2012-01-06 Yao Qi <yao@codesourcery.com>
15176 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
15178 [IN_PROCESS_AGENT] (debug_agent): New global variable.
15180 2012-01-04 Yao Qi <yao@codesourcery.com>
15182 * tracepoint.c (cmd_qtdp): Print debug message
15183 for static tracepoint.
15185 2012-01-04 Yao Qi <yao@codesourcery.com>
15187 * tracepoint.c (trace_vdebug): Differentiate debug message
15188 between gdbserver and IPA.
15190 2012-01-03 Yao Qi <yao@codesourcery.com>
15192 * tracepoint.c (tracepoint_was_hit): Don't collect for
15195 2012-01-02 Joel Brobecker <brobecker@adacore.com>
15197 * terminal.h: Reformat copyright header.
15199 2012-01-02 Joel Brobecker <brobecker@adacore.com>
15201 * server.c (gdbserver_version): Update copyright year.
15202 * gdbreplay.c (gdbreplay_version): Likewise.
15204 2011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
15206 * linux-low.c (linux_create_inferior): Put empty if clause for write.
15209 2011-12-18 Hui Zhu <teawater@gmail.com>
15210 * linux-low.c (linux_create_inferior): Save return value to ret.
15212 2011-12-18 Hui Zhu <teawater@gmail.com>
15214 * linux-low.c (linux_create_inferior): Save return value to ret.
15216 2011-12-16 Doug Evans <dje@google.com>
15218 * linux-low.c (linux_create_inferior): If stdio connection,
15219 redirect stdin from /dev/null, stdout to stderr.
15220 * remote-utils.c (remote_is_stdio): New static global.
15221 (remote_connection_is_stdio): New function.
15222 (remote_prepare): Handle stdio connection.
15223 (remote_open): Ditto.
15224 (remote_close): Don't close stdin for stdio connections.
15225 (read_prim,write_prim): New functions. Replace all calls to
15226 read/write to these.
15227 * server.c (main): Watch for "-" argument. Move call to
15228 remote_prepare before start_inferior.
15229 * server.h (STDIO_CONNECTION_NAME): New macro.
15230 (remote_connection_is_stdio): Declare.
15232 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
15233 in debugging output.
15235 2011-12-15 Yao Qi <yao@codesourcery.com>
15237 * tracepoint.c: Include sys/syscall.h.
15238 (gdb_ust_thread): Remove preprocessor conditional.
15240 2011-12-14 Pedro Alves <pedro@codesourcery.com>
15242 * linux-low.c (linux_detach_one_lwp): Call
15243 the_low_target.prepare_to_resume before detaching.
15245 2011-12-14 Yao Qi <yao@codesourcery.com>
15247 * tracepoint.c (gdb_ust_thread): Don't ignore return value
15250 2011-12-14 Yao Qi <yao@codesourcery.com>
15252 * i386-low.c (i386_low_stopped_data_address): Initialize local
15253 variable `control'.
15255 2011-12-13 Pedro Alves <pedro@codesourcery.com>
15259 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
15260 DR_CONTROL unless necessary. Extend comments.
15261 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
15262 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
15264 2011-12-13 Yao Qi <yao@codesourcery.com>
15266 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
15268 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
15270 2011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
15272 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
15273 Print new debug message for such case.
15275 2011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
15277 Fix overlapping memcpy.
15278 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
15279 the read_inferior_memory transfer.
15280 (delete_fast_tracepoint_jump): New variable buf. Use it for the
15281 write_inferior_memory transfer.
15282 (set_fast_tracepoint_jump): New variable buf. Use it for the
15283 read_inferior_memory and write_inferior_memory transfers.
15284 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
15285 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
15286 Use it for the write_inferior_memory transfer.
15287 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
15290 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15292 * linux-low.c (fetch_register, store_register): Make code
15293 consistent, fix formatting.
15295 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15297 * linux-low.c (usr_store_inferior_registers): Factor out code
15298 to handle individual registers into...
15299 (store_register): ... this new function.
15301 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
15303 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
15304 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
15305 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
15306 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
15307 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
15308 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
15309 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
15310 (srv_xmlfiles): Add new XML files.
15312 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
15314 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
15315 (init_registers_s390_linux32v1): Add prototype.
15316 (init_registers_s390_linux32v2): Likewise.
15317 (init_registers_s390_linux64v1): Likewise.
15318 (init_registers_s390_linux64v2): Likewise.
15319 (init_registers_s390x_linux64v1): Likewise.
15320 (init_registers_s390x_linux64v2): Likewise.
15321 (s390_num_regs): Increment to 52.
15322 (s390_regmap): Add orig_r2 register.
15323 (s390_num_regs_3264): Increment to 68.
15324 (s390_regmap_3264): Add orig_r2 register.
15325 (s390_collect_ptrace_register): Handle orig_r2 register.
15326 (s390_supply_ptrace_register): Likewise.
15327 (s390_fill_last_break): New function.
15328 (s390_store_last_break): Likewise.
15329 (s390_fill_system_call): New function.
15330 (s390_store_system_call): Likewise.
15331 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
15333 (s390_check_regset): New function.
15334 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
15335 NT_S390_SYSTEM_CALL regsets and use appropriate description.
15336 Update target_regsets for available register sets.
15338 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
15339 Jan Kratochvil <jan.kratochvil@redhat.com>
15341 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
15342 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
15344 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
15345 * linux-low.h (struct process_info_private): New member r_debug.
15346 * server.c (handle_qxfer_libraries): Call
15347 the_target->qxfer_libraries_svr4.
15348 (handle_qxfer_libraries_svr4): New function.
15349 (qxfer_packets): New entry "libraries-svr4".
15350 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
15351 * target.h (struct target_ops): New member qxfer_libraries_svr4.
15352 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
15353 PACKET_qXfer_libraries_svr4.
15355 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
15357 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
15358 PSW address/mask between 8-byte and 16-byte formats.
15359 (s390_supply_ptrace_register): Likewise.
15360 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
15361 basic addressing mode bit.
15363 2011-11-24 Stan Shebs <stan@codesourcery.com>
15365 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
15367 2011-11-17 Stan Shebs <stan@codesourcery.com>
15369 * tracepoint.c (struct tracepoint): New field traceframe_usage.
15370 (tracing_start_time): New global.
15371 (tracing_stop_time): New global.
15372 (tracing_user_name): New global.
15373 (tracing_notes): New global.
15374 (tracing_stop_note): New global.
15375 (cmd_qtstart): Set traceframe_usage, start_time.
15376 (stop_tracing): Set stop_time.
15377 (cmd_qtstatus): Report additional status.
15378 (cmd_qtp): New function.
15379 (handle_tracepoint_query): Call it.
15380 (cmd_qtnotes): New function.
15381 (handle_tracepoint_general_set): Call it.
15382 (get_timestamp): Rename from tsv_get_timestamp.
15384 2011-11-14 Stan Shebs <stan@codesourcery.com>
15385 Kwok Cheung Yeung <kcy@codesourcery.com>
15387 * linux-x86-low.c (small_jump_insn): New.
15388 (i386_install_fast_tracepoint_jump_pad): Add arguments for
15389 trampoline and error message, build a trampoline and issue a small
15390 jump instruction to it.
15391 (x86_install_fast_tracepoint_jump_pad): Add arguments for
15392 trampoline and error message.
15393 (x86_get_min_fast_tracepoint_insn_len): New.
15394 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
15395 * linux-low.h (struct linux_target_ops): Add arguments to
15396 install_fast_tracepoint_jump_pad operation, add new operation.
15397 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
15399 (linux_get_min_fast_tracepoint_insn_len): New function.
15400 (linux_target_op): Add new operation.
15401 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
15402 (gdb_trampoline_buffer_end): Ditto.
15403 (gdb_trampoline_buffer_error): Ditto.
15404 (struct ipa_sym_addresses): Add fields for new IPA variables.
15405 (symbol_list): Add entries for new IPA variables.
15406 (struct tracepoint): Add fields to hold the address range of the
15407 trampoline used by the tracepoint.
15408 (trampoline_buffer_head): New static variable.
15409 (trampoline_buffer_tail): Ditto.
15410 (claim_trampoline_space): New function.
15411 (have_fast_tracepoint_trampoline_buffer): New function.
15412 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
15414 (install_fast_tracepoint): Ditto, also add error buffer argument.
15415 (cmd_qtminftpilen): New function.
15416 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
15417 (fast_tracepoint_from_trampoline_address): New function.
15418 (fast_tracepoint_collecting): Handle trampoline as part of jump
15420 (set_trampoline_buffer_space): New function.
15421 (initialize_tracepoint): Initialize new IPA variables.
15422 * target.h (struct target_ops): Add arguments to
15423 install_fast_tracepoint_jump_pad operation, add new
15424 get_min_fast_tracepoint_insn_len operation.
15425 (target_get_min_fast_tracepoint_insn_len): New.
15426 (install_fast_tracepoint_jump_pad): Add arguments.
15427 * server.h (IPA_BUFSIZ): Define.
15428 * linux-i386-ipa.c: Include extra header files.
15429 (initialize_fast_tracepoint_trampoline_buffer): New function.
15430 (initialize_low_tracepoint): Call it.
15431 * server.h (set_trampoline_buffer_space): Declare.
15432 (claim_trampoline_space): Ditto.
15433 (have_fast_tracepoint_trampoline_buffer): Ditto.
15435 2011-11-14 Yao Qi <yao@codesourcery.com>
15437 * server.c (handle_query): Handle InstallInTrace for qSupported.
15438 * tracepoint.c (add_tracepoint): Sort list.
15439 (install_tracepoint, download_tracepoint): New.
15440 (cmd_qtdp): Call them to install and download tracepoints.
15441 (sort_tracepoints): Removed.
15442 (cmd_qtstart): Update.
15444 2011-11-14 Yao Qi <yao@codesourcery.com>
15446 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
15447 * mem-break.h: Declare.
15448 * tracepoint.c (cmd_qtstart): Move some code to ...
15449 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
15451 (download_tracepoints): Move some code to ...
15452 (download_tracepoint_1): ... here. New.
15454 2011-11-08 Yao Qi <yao@codesourcery.com>
15456 * remote-utils.c (relocate_instruction): A comment fix.
15458 2011-11-07 Joel Brobecker <brobecker@adacore.com>
15460 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
15461 (i386_dr_low_get_control, i386_dr_low_get_status): Use
15462 dr_status_mirror and dr_control_mirror from debug_reg_state.
15463 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
15464 (i386_initial_stuff): Remove use of deleted globals.
15465 (i386_get_thread_context, i386_set_thread_context,
15466 i386_thread_added): Use dr_status_mirror and dr_control_mirror
15467 from debug_reg_state.
15469 2011-11-05 Yao Qi <yao@codesourcery.com>
15471 * tracepoint.c (gdb_collect): Loop over tracepoints of same
15472 address as TPOINT's.
15474 2011-11-02 Stan Shebs <stan@codesourcery.com>
15476 * tracepoint.c (agent_mem_read_string): New function.
15477 (eval_agent_expr): Call it for tracenz.
15478 * server.c (handle_query): Report support for tracenz.
15480 2011-11-02 Yao Qi <yao@codesourcery.com>
15482 * tracepoint.c (cmd_qtstart): Remove unused local variables.
15484 2011-11-02 Yao Qi <yao@codesourcery.com>
15486 * target.h: Fix a typo in comment.
15488 2011-10-31 Pedro Alves <pedro@codesourcery.com>
15490 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
15491 clobber the breakpoints' shadows with fast tracepoint jumps.
15492 * mem-break.h (check_mem_write): Add `myaddr' parameter.
15493 * target.c (write_inferior_memory): Also pass MYADDR down to
15496 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
15498 * configure.ac: Check support for personality routine.
15499 * configure: Regenerate.
15500 * config.in: Likewise.
15501 * linux-low.c: Include <sys/personality.h>.
15502 Define ADDR_NO_RANDOMIZE if necessary.
15503 (linux_create_inferior): Disable address space randomization when
15504 forking inferior, if requested.
15505 (linux_supports_disable_randomization): New function.
15506 (linux_target_ops): Install it.
15507 * server.h (disable_randomization): Declare.
15508 * server.c (disable_randomization): New global variable.
15509 (handle_general_set): Handle QDisableRandomization.
15510 (handle_query): Likewise for qSupported.
15511 (main): Support --disable-randomization and --no-disable-randomization
15512 command line arguments.
15513 * target.h (struct target_ops): Add supports_disable_randomization.
15514 (target_supports_disable_randomization): New macro.
15516 2011-09-29 Mike Frysinger <vapier@gentoo.org>
15518 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
15520 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
15521 [!PT_GETDSBT] (target_loadmap): New definition.
15522 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
15523 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
15524 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
15525 and PT_GETDSBT to LINUX_LOADMAP.
15526 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
15527 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
15529 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
15531 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
15532 (arm_linux_hwbp_cap): New static variable.
15533 (arm_linux_get_hwbp_cap): Replace by ...
15534 (arm_linux_init_hwbp_cap): ... this new function.
15535 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
15536 (arm_linux_get_hw_watchpoint_count): Likewise.
15537 (arm_linux_get_hw_watchpoint_max_length): Likewise.
15538 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
15539 (arm_prepare_to_resume): Use perror_with_name instead of error.
15541 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
15543 * linux-arm-low.c: Include <signal.h>.
15544 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
15545 (struct arm_linux_hwbp_cap): New data type.
15546 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
15547 (struct arm_linux_hw_breakpoint): New data type.
15548 (MAX_BPTS, MAX_WPTS): Define.
15549 (struct arch_process_info, struct arch_lwp_info): New data types.
15550 (arm_linux_get_hwbp_cap): New function.
15551 (arm_linux_get_hw_breakpoint_count): Likewise.
15552 (arm_linux_get_hw_watchpoint_count): Likewise.
15553 (arm_linux_get_hw_watchpoint_max_length): Likewise.
15554 (arm_hwbp_control_initialize): Likewise.
15555 (arm_hwbp_control_is_enabled): Likewise.
15556 (arm_hwbp_control_is_initialized): Likewise.
15557 (arm_hwbp_control_disable): Likewise.
15558 (arm_linux_hw_breakpoint_equal): Likewise.
15559 (arm_linux_hw_point_initialize): Likewise.
15560 (struct update_registers_data): New data structure.
15561 (update_registers_callback: New function.
15562 (arm_insert_point): Likewise.
15563 (arm_remove_point): Likewise.
15564 (arm_stopped_by_watchpoint): Likewise.
15565 (arm_stopped_data_address): Likewise.
15566 (arm_new_process): Likewise.
15567 (arm_new_thread): Likewise.
15568 (arm_prepare_to_resume): Likewise.
15569 (the_low_target): Register arm_insert_point, arm_remove_point,
15570 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
15571 arm_new_thread, and arm_prepare_to_resume.
15573 2011-09-15 Stan Shebs <stan@codesourcery.com>
15575 * server.h (struct emit_ops): Add compare-goto fields.
15576 * tracepoint.c (gdb_agent_op_sizes): New table.
15577 (emit_eq_goto): New function.
15578 (emit_ne_goto): New function.
15579 (emit_lt_goto): New function.
15580 (emit_le_goto): New function.
15581 (emit_gt_goto): New function.
15582 (emit_ge_goto): New function.
15583 (is_goto_target): New function.
15584 (compile_bytecodes): Recognize special cases of compare-goto
15585 combinations and call specialized emitters for them.
15586 * linux-x86-low.c (amd64_emit_eq_goto): New function.
15587 (amd64_emit_ne_goto): New function.
15588 (amd64_emit_lt_goto): New function.
15589 (amd64_emit_le_goto): New function.
15590 (amd64_emit_gt_goto): New function.
15591 (amd64_emit_ge_goto): New function.
15592 (amd64_emit_ops): Add the new functions.
15593 (i386_emit_eq_goto): New function.
15594 (i386_emit_ne_goto): New function.
15595 (i386_emit_lt_goto): New function.
15596 (i386_emit_le_goto): New function.
15597 (i386_emit_gt_goto): New function.
15598 (i386_emit_ge_goto): New function.
15599 (i386_emit_ops): Add the new functions.
15601 2011-09-08 Stan Shebs <stan@codesourcery.com>
15603 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
15604 (i386_emit_epilogue): Restore %ebx.
15606 2011-08-31 Jie Zhang <jzhang918@gmail.com>
15608 * server.c (step_thread): Remove definition.
15609 (process_serial_event): Don't handle Hs.
15610 * server.h (step_thread): Remove declaration.
15611 * target.c (set_desired_inferior): Remove use of step_thread.
15613 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
15615 * linux-low.c: Include linux-procfs.h.
15616 (linux_attach_lwp_1): Update comments.
15617 (linux_attach): Scan for existing threads when attaching to a
15618 process that is the tgid.
15619 * Makefile.in: Update dependencies.
15621 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
15623 * configure.srv: Add linux-procfs.o dependencies.
15625 2011-08-14 Yao Qi <yao@codesourcery.com>
15627 * target.h (struct target_ops): Fix indent.
15628 * win32-low.c (win32_target_ops): Fix comment.
15630 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
15631 Yao Qi <yao@codesourcery.com>
15633 * Makefile.in (clean): Remove tic6x-*.c files.
15634 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
15635 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
15636 (tic6x-c64xp-linux.c): Likewise.
15637 * configure.srv: Add support for tic6x-*-uclinux.
15638 * linux-tic6x-low.c: New.
15639 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
15641 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
15642 Yao Qi <yao@codesourcery.com>
15644 * target.h (struct target_ops): Add read_loadmap.
15645 * linux-low.c (struct target_loadseg): New type.
15646 (struct target_loadmap): New type.
15647 (linux_read_loadmap): New function.
15648 (linux_target_ops): Add linux_read_loadmap.
15649 * server.c (handle_query): Support qXfer:fdpic:read packet.
15650 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
15653 2011-08-05 Eli Zaretskii <eliz@gnu.org>
15655 * win32-low.c: Include <stdint.h>.
15657 2011-07-22 Pedro Alves <pedro@codesourcery.com>
15659 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
15660 to the inferior here.
15661 (i386_remove_aligned_watchpoint): Ditto.
15662 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
15663 fit part of the watchpoint in the debug registers.
15664 (i386_update_inferior_debug_regs): New.
15665 (i386_low_insert_watchpoint): Work on a local mirror of the debug
15666 registers, and only update the inferior on success.
15667 (i386_low_remove_watchpoint): Ditto.
15669 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
15671 * linux-low.c (compare_ints, unique, list_threads, show_process,
15672 linux_core_of_thread): Delete.
15673 (linux_target_ops): Change linux_core_of_thread to
15674 linux_common_core_of_thread.
15675 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
15676 * utils.c (malloc_failure): Change type of argument.
15677 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
15678 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
15679 common/linux-osdata.c, common/ptid.c and common/buffer.c.
15680 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
15681 (IPA_OBJS): Add common-utils-ipa.o.
15682 (ptid_h, linux_osdata_h): New macros.
15683 (server_h): Add common/common-utils.h, common/xml-utils.h,
15684 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
15686 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
15687 ptid.o, buffer.o): New rules.
15688 (linux-low.o): Add common/linux-osdata.h as a dependency.
15689 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
15690 * configure.ac: Add AC_HEADER_DIRENT check.
15691 * config.in: Regenerate.
15692 * configure: Regenerate.
15693 * remote-utils.c (xml_escape_text): Delete.
15694 (buffer_grow, buffer_free, buffer_init, buffer_finish,
15695 buffer_xml_printf): Move to common/buffer.c.
15696 * server.c (main): Remove call to initialize_inferiors.
15697 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
15698 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
15699 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
15700 internal_error, gdb_assert, gdb_assert_fail): Delete.
15701 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
15702 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
15704 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
15705 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
15706 initialize_inferiors): Delete.
15708 2011-07-20 Pedro Alves <pedro@codesourcery.com>
15710 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
15713 2011-05-31 Pedro Alves <pedro@codesourcery.com>
15715 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
15717 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
15719 2011-05-26 Yao Qi <yao@codesourcery.com>
15721 * Makefile.in (thread-db.o): Track dependence to
15722 common/gdb_thread_db.h.
15723 * thread-db.c: include gdb_thread_db.h from right place.
15725 2011-05-16 Adrian Cornish <gnu@bluedreamer.com>
15727 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
15728 __FILE__ and __LINE__ to internal_error.
15730 2011-05-13 Doug Evans <dje@google.com>
15732 * thread-db.c (try_thread_db_load_from_sdir): New function.
15733 (try_thread_db_load_from_dir): New function.
15734 (thread_db_load_search): Handle $sdir, ignore $pdir.
15735 Remove trying of system directories if search of
15736 libthread-db-search-path fails, that is now done via $sdir.
15738 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
15740 * server.c (handle_query): Add EnableDisableTracepoints to the list
15741 of supported features.
15742 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
15744 (cmd_qtenable_disable): New.
15745 (cmd_qtstart): Install tracepoints even if disabled.
15746 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
15747 receiving a QTEnable or QTDisable packet.
15748 (gdb_collect): Skip data collection if fast tracepoint is disabled.
15749 (ust_marker_to_static_tracepoint): Do not ignore disabled static
15751 (gdb_probe): Skip data collection if static tracepoint is disabled.
15753 2011-05-10 Doug Evans <dje@google.com>
15755 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
15757 2011-05-04 Doug Evans <dje@google.com>
15759 * linux-low.c (linux_join): Skip process lookup.
15760 * spu-low.c (spu_join): Ditto.
15761 * server.c (join_inferiors_callback): Delete.
15762 (process_serial_event): For 'D' packet (detach) call join_inferior
15765 2011-05-04 Joseph Myers <joseph@codesourcery.com>
15767 * README: Don't mention xscale*-*-linux*.
15768 * configure.srv (xscale*-*-linux*): Don't handle target.
15770 2011-04-27 Nathan Froyd <froydnj@codesourcery.com>
15772 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
15774 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
15775 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
15776 (i386_emit_void_call_2): Likewise.
15778 2011-04-26 Yao Qi <yao@codesourcery.com>
15780 * linux-low.c: Move common macros to linux-ptrace.h.
15781 Include linux-ptrace.h.
15782 * Makefile.in (linux_ptrace_h): New.
15783 (linux-low.o): Depends on linux-ptrace.h.
15785 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
15787 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
15788 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
15789 (remote_prepare): New function with most of the TCP code from ...
15790 (remote_open): ... here. Detect PORT here unconditionally. Move also
15791 setting transport_is_reliable.
15792 * server.c (run_once): New variable.
15793 (gdbserver_usage): Document it.
15794 (main): Set run_once for `--once'. Call remote_prepare. Exit after
15795 the first run if RUN_ONCE.
15796 * server.h (run_once, remote_prepare): New declarations.
15798 2011-04-19 Tom Tromey <tromey@redhat.com>
15800 * win32-low.c (handle_load_dll): Remove duplicate "the".
15802 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
15804 Remove support for old Cygwin 1.5 versions.
15805 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
15806 function to avoid warning.
15807 (win32_add_one_solib): Use cygwin_conv_path function to avoid
15810 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
15812 * gdbserver/server.h (Macro _): Define it if not available.
15814 2011-03-14 Michael Snyder <msnyder@vmware.com>
15816 * hostio.c (handle_close): Remove unnecessary null test.
15818 2011-03-10 Joel Brobecker <brobecker@adacore.com>
15820 * Makefile.in (maintainer-clean realclean distclean): Remove
15821 "make ... subdir_do" command.
15823 2011-03-10 Michael Snyder <msnyder@vmware.com>
15825 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
15827 * server.c (handle_v_run): Free alloced buffer on early return.
15829 2011-03-09 Yao Qi <yao@codesourcery.com>
15832 2011-03-04 Yao Qi <yao@codesourcery.com>
15834 * Makefile.in: Remove GNU make feature --directory.
15836 2011-03-05 Yao Qi <yao@codesourcery.com>
15838 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
15839 (subdir_do): New make target. Copied from gdb/Makefile.
15840 (maintainer-clean, realclean, distclean, clean): Call corresponding
15841 make targets in common/Makefile.
15843 2011-02-11 Yao Qi <yao@codesourcery.com>
15845 * configure.ac: Call AC_PROG_RANLIB.
15846 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
15847 * configure: Regenerate.
15849 2011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
15851 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
15853 2011-03-06 Yao Qi <yao@codesourcery.com>
15855 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
15857 2011-03-05 Yao Qi <yao@codesourcery.com>
15859 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
15860 (subdir_do): New make target. Copied from gdb/Makefile.
15861 (maintainer-clean, realclean, distclean, clean): Call corresponding
15862 make targets in common/Makefile.
15864 2011-03-04 Yao Qi <yao@codesourcery.com>
15866 * Makefile.in: Remove GNU make feature --directory.
15868 2011-03-04 Michael Snyder <msnyder@vmware.com>
15870 * server.c (queue_stop_reply): Call xmalloc not malloc.
15872 2011-03-02 Michael Snyder <msnyder@vmware.com>
15874 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
15876 2011-02-28 Michael Snyder <msnyder@vmware.com>
15878 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
15879 (cmd_qtframe): Ditto.
15880 (cmd_qtbuffer): Ditto.
15881 (cmd_bigqtbuffer): Ditto.
15883 * utils.c (decimal2str): Initialize 'width' to nine, then
15884 don't mess with it.
15886 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
15888 * hostio.c (require_data): Free *data, not data.
15890 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
15892 * hostio.c (require_data): Use free, not xfree.
15894 2011-02-27 Michael Snyder <msnyder@vmware.com>
15896 * server.c (handle_query): Discard unused value.
15898 * hostio.c (require_data): Free malloc memory before returning
15901 2011-02-26 Michael Snyder <msnyder@vmware.com>
15903 * linux-low.c (list_threads): Call closedir for dirent.
15905 2011-02-27 Michael Snyder <msnyder@vmware.com>
15907 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
15908 a case statement falls through.
15910 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
15912 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
15915 2011-02-26 Michael Snyder <msnyder@vmware.com>
15917 * utils.c (decimal2str): Eliminate dead code and dead param.
15918 (pulongest): Drop dead param from call to decimal2str.
15921 2011-02-24 Joel Brobecker <brobecker@adacore.com>
15923 Revert the following patch (not approved yet):
15924 2011-02-21 Hui Zhu <teawater@gmail.com>
15925 * tracepoint.c (tp_printf): New function.
15926 (eval_agent_expr): Handle gdb_agent_op_printf.
15928 2011-02-21 Hui Zhu <teawater@gmail.com>
15930 * tracepoint.c (tp_printf): New function.
15931 (eval_agent_expr): Handle gdb_agent_op_printf.
15933 2011-02-18 Tom Tromey <tromey@redhat.com>
15935 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
15936 (tracepoint.o): Likewise.
15937 * tracepoint.c (enum gdb_agent_op): Use ax.def.
15938 (gdb_agent_op_names): Likewise.
15940 2011-02-18 Tom Tromey <tromey@redhat.com>
15942 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
15943 gdb_agent_op_rot>: New constants.
15944 (gdb_agent_op_names): Add pick and roll.
15945 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
15948 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
15950 * aclocal.m4: Regenerated with aclocal-1.11.1.
15952 2011-02-14 Pedro Alves <pedro@codesourcery.com>
15954 * server.c (handle_qxfer_traceframe_info): New.
15955 (qxfer_packets): Register "traceframe-info".
15956 (handle_query): Report support for qXfer:traceframe-info:read+.
15957 * tracepoint.c (match_blocktype): New.
15958 (traceframe_find_block_type): Rename to ...
15959 (traceframe_walk_blocks): ... this. Add callback filter argument,
15961 (traceframe_find_block_type): New, reimplemented on top of
15962 traceframe_walk_blocks.
15963 (build_traceframe_info_xml): New.
15964 (traceframe_read_info): New.
15965 * server.h (traceframe_read_info): Declare.
15967 2011-02-11 Yao Qi <yao@codesourcery.com>
15969 * configure.ac: Call AC_PROG_RANLIB.
15970 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
15971 * configure: Regenerate.
15973 2011-02-07 Pedro Alves <pedro@codesourcery.com>
15975 * server.c (gdb_read_memory): Change return semantics to allow
15977 (handle_search_memory_1): Adjust.
15978 (process_serial_event) <'m' packet>: Handle partial transfers.
15979 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
15981 2011-01-28 Pedro Alves <pedro@codesourcery.com>
15983 * regcache.c (init_register_cache): Initialize
15984 regcache->register_status.
15985 (free_register_cache): Release regcache->register_status.
15986 (regcache_cpy): Copy register_status.
15987 (registers_to_string): Print 'x's for unavailable registers.
15988 (supply_register): Mark the register's status valid or
15989 unavailable, depending on whether a buffer was passed in or not.
15990 (supply_register_zeroed): New.
15991 (supply_regblock): Mark the registers' status valid or
15992 unavailable, depending on whether a buffer was passed in or not.
15993 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
15994 (struct regcache): New `register_status' field.
15995 (supply_register_zeroed): Declare.
15996 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
15997 supply_register_zeroed, rather than passing a NULL buffer to
15999 * tracepoint.c (fetch_traceframe_registers): Update comment.
16001 2011-01-28 Pedro Alves <pedro@codesourcery.com>
16003 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
16006 2011-01-25 Pedro Alves <pedro@codesourcery.com>
16008 * server.h (decode_xfer_write): Change prototype.
16009 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
16010 and don't extract the annex here.
16011 * server.c (decode_xfer_read): Remove `annex' parameter,
16012 and don't extract the annex here.
16013 (decode_xfer): New.
16014 (struct qxfer): New.
16015 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
16016 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
16017 (handle_qxfer_statictrace): New functions, abstracted out from
16018 handle_query, and made to use the struct qxfer interface.
16019 (handle_threads_qxfer_proper): Rename to ...
16020 (handle_qxfer_threads_proper): ... this.
16021 (handle_threads_qxfer): Rename to ...
16022 (handle_qxfer_threads): ... this. Adjust.
16023 (qxfer_packets): New array.
16024 (handle_qxfer): New function.
16025 (handle_query): Use handle_qxfer.
16027 2011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
16029 * gdbreplay.c: Shorten lines of >= 80 columns.
16030 * linux-low.c: Ditto.
16031 * linux-ppc-low.c: Ditto.
16032 * linux-s390-low.c: Ditto.
16033 * linux-sparc-low.c: Ditto.
16034 * linux-x86-low.c: Ditto.
16035 * linux-xtensa-low.c: Ditto.
16036 * mem-break.c: Ditto.
16037 * nto-low.c: Ditto.
16038 * regcache.h: Ditto.
16039 * remote-utils.c: Ditto.
16042 * thread-db.c: Ditto.
16043 * tracepoint.c: Ditto.
16045 * win32-low.h: Ditto.
16047 2011-01-05 Joel Brobecker <brobecker@adacore.com>
16049 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
16052 2011-01-01 Joel Brobecker <brobecker@adacore.com>
16054 * server.c (gdbserver_version): Update copyright year in version
16056 * gdbreplay.c (gdbreplay_version): Ditto.
16058 2010-12-29 Jie Zhang <jie.zhang@analog.com>
16060 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
16061 * linux-bfin-low.c: New file.
16062 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
16063 PT_DATA_ADDR for BFIN targets.
16064 * Makefile.in (SFILES): Add linux-bfin-low.c.
16065 (clean): Remove reg-bfin.c.
16066 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
16067 * README: Mention supported Blackfin targets.
16069 2010-12-23 Mike Frysinger <vapier@gentoo.org>
16071 * .gitignore: New file.
16073 2010-11-16 Mike Frysinger <vapier@gentoo.org>
16075 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
16077 2010-10-22 Jie Zhang <jie@codesourcery.com>
16079 * Makefile.in: Add FLAGS_TO_PASS variable.
16080 (install): Remove dependency of install-only and recursively
16081 invoke make for install-only.
16083 2010-10-04 Doug Evans <dje@google.com>
16085 * Makefile.in (uninstall): Use $(DESTDIR).
16087 2010-09-24 Pedro Alves <pedro@codesourcery.com>
16091 * linux-x86-low.c (compat_siginfo_from_siginfo)
16092 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
16093 si_code is < 0. Check for si_code == SI_TIMER before checking for
16096 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16098 * lynx-i386-low.c: New file.
16099 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
16101 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16103 * lynx-low.c (ptrace_request_to_str): Remove handling for
16104 request values that have been removed in LynxOS 5.x.
16106 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16108 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
16111 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
16113 * configure.ac: Add --enable-inprocess-agent option.
16114 * configure: Rebuilt.
16116 2010-09-06 Yao Qi <yao@codesourcery.com>
16118 * linux-low.c (linux_kill): Remove unused variable.
16119 (linux_stabilize_threads): Likewise.
16120 * server.c (start_inferior): Likewise.
16121 (queue_stop_reply_callback): Likewise.
16122 * tracepoint.c (do_action_at_tracepoint): Likewise.
16124 2010-09-06 Yao Qi <yao@codesourcery.com>
16126 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
16129 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16131 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
16133 2010-09-06 Pedro Alves <pedro@codesourcery.com>
16135 * Makefile.in (install-only): Replace $IPA_DEPFILES with
16138 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16140 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
16141 gdbserver/lynx-ppc-low.c: New files.
16142 * Makefile.in (lynx_low_h): New variable.
16143 (lynx-low.o, lynx-ppc-low.o): New rules.
16144 * configure.ac: On LynxOS, link with -lnetinet.
16145 * configure.srv: Add handling of powerpc-*-lynxos* targets.
16146 * configure: regenerate.
16148 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16150 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
16151 * configure.ac: Add check for vasprintf and vsnprintf.
16152 * configure, config.in: Regenerate.
16153 * server.h (vasprintf, vsnprintf): Add conditional declarations.
16155 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16157 * gdbreplay.c: Move include of alloca.h up, next to include of
16159 * server.h: Add include of malloc.h.
16160 * mem-break.c: Remove include of malloc.h.
16161 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
16163 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16165 * Makefile.in (memmem.o): Build with -Wno-error.
16167 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16169 * utils.c (xsnprintf): Make non-static.
16170 * server.h: Add xsnprintf declaration.
16171 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
16172 replace calls to snprintf by calls to xsnprintf throughout.
16174 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16176 * configure.ac: Add configure check for alloca.
16177 * configure, config.in: Regenerate.
16178 * server.h: Include alloca.h if it exists.
16179 * gdbreplay.c: Include alloca.h if it exists.
16181 2010-08-28 Pedro Alves <pedro@codesourcery.com>
16183 * linux-low.c (__SIGRTMIN): Define if not already defined.
16184 (linux_create_inferior): Check for __ANDROID__ rather than
16186 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
16187 are already deferred.
16188 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
16189 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
16190 stopped and already has a pending signal to report.
16191 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
16192 a pending signal to report or is moving out of a jump pad.
16193 (linux_init_signals): Check for __ANDROID__ rather than
16196 2010-08-28 Pedro Alves <pedro@codesourcery.com>
16198 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
16199 debug_threads check. Avoid a linear search when not doing debug
16202 2010-08-27 Pedro Alves <pedro@codesourcery.com>
16204 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
16205 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
16206 (struct file_handler) <fd>: Change type to gdb_fildes_t.
16207 (process_event): Change local fd's type to gdb_fildes_t.
16208 (create_file_handler): Adjust prototype.
16209 (delete_file_handler): Adjust prototype.
16210 (handle_file_event): Adjust prototype. Use pfildes.
16211 (create_file_event): Adjsut prototype.
16212 * remote-utils.c (remote_desc, listen_desc): Change type to
16214 * server.h: New gdb_fildes_t typedef.
16215 [USE_WIN32API]: Include winsock2.h.
16216 (delete_file_handler, add_file_handler): Adjust prototypes.
16217 (pfildes): Declare.
16218 * utils.c (pfildes): New.
16220 2010-08-27 Pedro Alves <pedro@codesourcery.com>
16222 * configure.ac (build_warnings): Add -Wno-char-subscripts.
16223 * configure: Regenerate.
16225 2010-08-27 Pedro Alves <pedro@codesourcery.com>
16227 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
16228 (linux_done_accessing_memory): ... this.
16229 (linux_target_ops): Adjust.
16230 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
16231 * nto-low.c (nto_target_ops): Adjust comment.
16232 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
16233 * spu-low.c (spu_target_ops): Adjust comment.
16234 * target.h (target_ops): Rename unprepare_to_access_memory field
16235 to done_accessing_memory.
16236 (unprepare_to_access_memory): Rename to ...
16237 (done_accessing_memory): ... this.
16239 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16241 * linux-low.c (linux_prepare_to_access_memory): New.
16242 (linux_unprepare_to_access_memory): New.
16243 (linux_target_ops): Install them.
16244 * server.c (read_memory): Rename to ...
16245 (gdb_read_memory): ... this. Use
16246 prepare_to_access_memory/prepare_to_access_memory.
16247 (write_memory): Rename to ...
16248 (gdb_write_memory): ... this. Use
16249 prepare_to_access_memory/prepare_to_access_memory.
16250 (handle_search_memory_1): Adjust.
16251 (process_serial_event): Adjust.
16252 * target.h (struct target_ops): New fields
16253 prepare_to_access_memory and unprepare_to_access_memory.
16254 (prepare_to_access_memory, unprepare_to_access_memory): New.
16255 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
16256 prepare_to_access_memory/prepare_to_access_memory.
16257 * nto-low.c (nto_target_ops): Adjust.
16258 * spu-low.c (spu_target_ops): Adjust.
16259 * win32-low.c (win32_target_ops): Adjust.
16261 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16263 * Makefile.in (WARN_CFLAGS): Get it from configure.
16264 (WERROR_CFLAGS): New.
16265 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
16266 * configure.ac: Introduce --enable-werror, which adds -Werror to
16267 the compiler command line. Enabled by default. Disable with
16268 --disable-werror. Add -Wdeclaration-after-statement
16269 Wpointer-arith and -Wformat-nonliteral to warning flags.
16270 * configure: Regenerate.
16272 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16274 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
16276 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16278 * gdbreplay.c (remote_error): New.
16280 (expect): Use gdbchar. Check for error reading from GDB.
16281 Clarify sync error output.
16282 (play): Check for errors writing to GDB.
16283 * linux-low.c (sigchld_handler): Really ignore `write' errors.
16284 * remote-utils.c (getpkt): Check for errors writing to the remote
16287 2010-08-25 Pedro Alves <pedro@codesourcery.com>
16289 * linux-low.c (linux_wait_1): Move non-debugging code out of
16290 `debug_threads' control.
16292 2010-08-25 Pedro Alves <pedro@codesourcery.com>
16294 * linux-low.c (linux_wait_1): Don't set last_status here.
16295 * server.c (push_event, queue_stop_reply_callback): Assert we're
16296 not pushing a TARGET_WAITKIND_IGNORE event.
16297 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
16298 (myresume, handle_target_event): Set the thread's last_resume_kind
16299 and last_status from the target returned status.
16301 2010-08-25 Pedro Alves <pedro@codesourcery.com>
16305 * linux-x86-low.c (update_debug_registers_callback): New.
16306 (i386_dr_low_set_addr): Use it.
16307 (i386_dr_low_get_addr): New.
16308 (i386_dr_low_set_control): Use update_debug_registers_callback.
16309 (i386_dr_low_get_control): New.
16310 (i386_dr_low_get_status): Adjust.
16311 * linux-low.c (linux_stop_lwp): New.
16312 * linux-low.h (linux_stop_lwp): Declare.
16314 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
16315 argument instead of a i386_debug_reg_state.
16316 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
16317 a i386_debug_reg_state.
16318 (i386_insert_aligned_watchpoint): Adjust.
16319 (i386_remove_aligned_watchpoint): Adjust.
16320 (i386_low_stopped_data_address): Read the debug registers from the
16321 inferior instead of from the mirrors.
16322 * i386-low.h (struct i386_debug_reg_state): Extend comment.
16323 (i386_dr_low_get_addr): Declare.
16324 (i386_dr_low_get_control): Declare.
16325 (i386_dr_low_get_status): Change prototype.
16327 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
16328 (i386_dr_low_get_addr): New.
16329 (i386_dr_low_get_control): New.
16330 (i386_dr_low_get_status): Adjust prototype. Return
16332 (i386_initial_stuff): Clear dr_status_mirror and
16334 (i386_get_thread_context): Adjust.
16335 (i386_set_thread_context): Adjust.
16336 (i386_thread_added): Adjust.
16338 2010-08-24 Pedro Alves <pedro@codesourcery.com>
16340 * linux-low.h (linux_thread_area): Delete declaration.
16342 2010-08-11 Thomas Schwinge <thomas@codesourcery.com>
16344 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
16345 after its termination.
16347 2010-08-09 Pedro Alves <pedro@codesourcery.com>
16349 * linux-low.c (gdb_wants_lwp_stopped): Delete.
16350 (gdb_wants_all_stopped): Delete.
16351 (linux_wait_1): Don't call them.
16352 * server.c (handle_v_cont): Tag all threads as want-stopped.
16353 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
16354 stopped as "client-wants-stopped".
16356 2010-07-31 Pedro Alves <pedro@codesourcery.com>
16358 * Makefile.in (signals_h): New.
16359 (server_h): Depend on it.
16360 (server.o): Don't depend on $(signals_def).
16361 (signals.o): Depend on $(signals_def).
16363 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
16365 * Makefile.in (signals_def): New.
16366 (server_h): Append include/gdb/signals.h and signals_def.
16367 (server.o): Append signals_def.
16369 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
16371 * server.c (handle_target_event): Use target_signal_to_host for
16372 resume_info.sig initialization.
16373 * target.h (struct thread_resume) <sig>: New comment.
16375 2010-07-20 Ozkan Sezer <sezeroz@gmail.com>
16377 * server.c (handle_query): strcpy() the returned string from paddress()
16378 instead of sprintf().
16379 * utils.c (paddress): Return phex_nz().
16381 2010-07-07 Joel Brobecker <brobecker@adacore.com>
16383 * server.c (handle_v_cont): Call mourn_inferior if process
16385 (myresume): Likewise.
16387 2010-07-01 Pedro Alves <pedro@codesourcery.com>
16389 Static tracepoints, and integration with UST.
16391 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
16392 * mem-break.c (uninsert_all_breakpoints)
16393 (reinsert_all_breakpoints): New.
16394 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
16395 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
16396 (gdb_agent_ust_loaded, helper_thread_id)
16397 (gdb_agent_helper_thread_id): New macros.
16398 (struct ipa_sym_addresses): Add addr_ust_loaded,
16399 addr_helper_thread_id, addr_cmd_buf.
16400 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
16401 (in_process_agent_loaded_ust): New.
16402 (write_e_ust_not_loaded): New.
16403 (maybe_write_ipa_ust_not_loaded): New.
16404 (struct collect_static_trace_data_action): New.
16405 (enum tracepoint_type) <static_tracepoint>: New.
16406 (struct tracepoint) <handle>: Mention static tracepoints.
16407 (struct static_tracepoint_ctx): New.
16408 (CMD_BUF_SIZE): New.
16409 (add_tracepoint_action): Handle static tracepoint actions.
16410 (unprobe_marker_at): New.
16411 (clear_installed_tracepoints): Handle static tracepoints.
16412 (cmd_qtdp): Handle static tracepoints.
16413 (probe_marker_at): New.
16414 (cmd_qtstart): Handle static tracepoints.
16415 (response_tracepoint): Handle static tracepoints.
16416 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
16417 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
16418 (get_context_regcache): Handle static tracepoints.
16419 (do_action_at_tracepoint): Handle static tracepoint actions.
16420 (traceframe_find_block_type): Handle static trace data blocks.
16421 (traceframe_read_sdata): New.
16422 (download_tracepoints): Download static tracepoint actions.
16423 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
16424 (GDB_PROBE_NAME): New.
16426 (GET_UST_SYM): New.
16429 (ust_marker_to_static_tracepoint): New.
16431 (collect_ust_data_at_tracepoint): New.
16432 (gdb_ust_probe): New.
16433 (UNIX_PATH_MAX, SOCK_DIR): New.
16434 (gdb_ust_connect_sync_socket): New.
16435 (resume_thread, stop_thread): New.
16436 (run_inferior_command): New.
16437 (init_named_socket): New.
16438 (gdb_ust_socket_init): New.
16439 (cstr_to_hexstr): New.
16441 (first_marker, next_marker): New.
16442 (response_ust_marker): New.
16443 (cmd_qtfstm, cmd_qtsstm): New.
16444 (unprobe_marker_at, probe_marker_at): New.
16445 (cmd_qtstmat, gdb_ust_thread): New.
16446 (gdb_ust_init): New.
16447 (initialize_tracepoint_ftlib): Call gdb_ust_init.
16448 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
16449 (ST_REGENTRY): New.
16450 (x86_64_st_collect_regmap): New.
16451 (X86_64_NUM_ST_COLLECT_GREGS): New.
16452 (AMD64_RIP_REGNUM): New.
16453 (supply_static_tracepoint_registers): New.
16454 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
16455 (ST_REGENTRY): New.
16456 (i386_st_collect_regmap): New.
16457 (i386_NUM_ST_COLLECT_GREGS): New.
16458 (supply_static_tracepoint_registers): New.
16459 * server.c (handle_query): Handle qXfer:statictrace:read.
16460 <qSupported>: Report support for StaticTracepoints, and
16461 qXfer:statictrace:read features.
16462 * server.h (traceframe_read_sdata)
16463 (supply_static_tracepoint_registers): Declare.
16464 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
16465 (unpack_varlen_hex): Include in IPA build.
16466 * Makefile.in (ustlibs, ustinc): New.
16467 (IPA_OBJS): Add remote-utils-ipa.o.
16468 ($(IPA_LIB)): Link -ldl and -lpthread.
16470 (IPAGENT_CFLAGS): Add UST_CFLAGS.
16471 * config.in, configure: Regenerate.
16473 2010-06-20 Ian Lance Taylor <iant@google.com>
16474 Pedro Alves <pedro@codesourcery.com>
16476 * linux-x86-low.c (always_true): Delete.
16477 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
16478 trying to fool the compiler with always_true.
16480 2010-06-20 Pedro Alves <pedro@codesourcery.com>
16482 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
16483 conditions in gdbserver.
16485 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
16487 * spu-low.c (spu_read_memory): Wrap around local store limit.
16488 (spu_write_memory): Likewise.
16490 2010-06-15 Pedro Alves <pedro@codesourcery.com>
16492 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
16493 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
16495 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
16497 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
16498 uses with LONGEST uses.
16500 2010-06-14 Stan Shebs <stan@codesourcery.com>
16501 Pedro Alves <pedro@codesourcery.com>
16505 * linux-x86-low.c: Include limits.h.
16507 (always_true): New.
16510 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
16511 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
16512 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
16513 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
16514 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
16515 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
16516 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
16517 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
16518 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
16519 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
16520 (amd64_emit_void_call_2): New.
16521 (amd64_emit_ops): New.
16522 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
16523 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
16524 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
16525 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
16526 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
16527 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
16528 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
16529 (i386_emit_call, i386_emit_reg, i386_emit_pop)
16530 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
16531 (i386_emit_stack_adjust, i386_emit_int_call_1)
16532 (i386_emit_void_call_2): New.
16533 (i386_emit_ops): New.
16534 (x86_emit_ops): New.
16535 (the_low_target): Install x86_emit_ops.
16536 * server.h (struct emit_ops): New.
16537 (get_raw_reg_func_addr): Declare.
16538 (current_insn_ptr, emit_error): Declare.
16539 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
16540 (set_trace_state_variable_value): New defines.
16541 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
16542 addr_get_trace_state_variable_value and
16543 addr_set_trace_state_variable_value.
16544 (symbol_list): New fields for get_raw_reg,
16545 get_trace_state_variable_value and set_trace_state_variable_value.
16546 (condfn): New typedef.
16547 (struct tracepoint): New field `compiled_cond'.
16548 (do_action_at_tracepoint): Clear compiled_cond.
16549 (get_trace_state_variable_value, set_trace_state_variable_value):
16551 (condition_true_at_tracepoint): If there's a compiled condition,
16553 (current_insn_ptr, emit_error): New globals.
16554 (struct bytecode_address): New.
16555 (get_raw_reg_func_addr): New.
16556 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
16557 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
16558 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
16559 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
16560 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
16561 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
16562 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
16563 (compile_tracepoint_condition, compile_bytecodes): New.
16564 * target.h (emit_ops): Forward declare.
16565 (struct target_ops): New field emit_ops.
16566 (target_emit_ops): New.
16567 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
16568 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
16569 * linux-low.c (linux_emit_ops): New.
16570 (linux_target_ops): Install it.
16571 * linux-low.h (struct linux_target_ops): New field emit_ops.
16573 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
16575 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
16576 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
16578 2010-06-01 Pedro Alves <pedro@codesourcery.com>
16579 Stan Shebs <stan@codesourcery.com>
16581 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
16582 (all): Depend on $(extra_libraries).
16583 (install-only): Install the IPA.
16584 (IPA_OBJS, IPA_LIB): New.
16585 (clean): Remove the IPA lib.
16586 (IPAGENT_CFLAGS): New.
16587 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
16588 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
16589 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
16590 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
16591 * configure.ac: Check for atomic builtins support in the compiler.
16592 (IPA_DEPFILES, extra_libraries): Define.
16593 * configure.srv (ipa_obj): Add description.
16594 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
16595 (i[34567]86-*-linux*): Set ipa_obj.
16596 (x86_64-*-linux*): Set ipa_obj.
16597 * linux-low.c (stabilizing_threads): New.
16598 (supports_fast_tracepoints): New.
16599 (linux_detach): Stabilize threads before detaching.
16600 (handle_tracepoints): Handle internal tracing breakpoints. Assert
16601 the lwp is either not stabilizing, or is moving out of a jump pad.
16602 (linux_fast_tracepoint_collecting): New.
16603 (maybe_move_out_of_jump_pad): New.
16604 (enqueue_one_deferred_signal): New.
16605 (dequeue_one_deferred_signal): New.
16606 (linux_wait_for_event_1): If moving out of a jump pad, defer
16607 pending signals to later.
16608 (linux_stabilize_threads): New.
16609 (linux_wait_1): Check if threads need moving out of jump pads, and
16611 (stuck_in_jump_pad_callback): New.
16612 (move_out_of_jump_pad_callback): New.
16613 (lwp_running): New.
16614 (linux_resume_one_lwp): Handle moving out of jump pads.
16615 (linux_set_resume_request): Dequeue deferred signals.
16616 (need_step_over_p): Also step over fast tracepoint jumps.
16617 (start_step_over): Also uninsert fast tracepoint jumps.
16618 (finish_step_over): Also reinsert fast tracepoint jumps.
16619 (linux_install_fast_tracepoint_jump): New.
16620 (linux_target_ops): Install linux_stabilize_threads and
16621 linux_install_fast_tracepoint_jump_pad.
16622 * linux-low.h (linux_target_ops) <get_thread_area,
16623 install_fast_tracepoint_jump_pad>: New fields.
16624 (struct lwp_info) <collecting_fast_tracepoint,
16625 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
16626 (linux_get_thread_area): Declare.
16627 * linux-x86-low.c (jump_insn): New.
16628 (x86_get_thread_area): New.
16629 (append_insns): New.
16630 (push_opcode): New.
16631 (amd64_install_fast_tracepoint_jump_pad): New.
16632 (i386_install_fast_tracepoint_jump_pad): New.
16633 (x86_install_fast_tracepoint_jump_pad): New.
16634 (the_low_target): Install x86_get_thread_area and
16635 x86_install_fast_tracepoint_jump_pad.
16636 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
16637 (struct fast_tracepoint_jump): New.
16638 (fast_tracepoint_jump_insn): New.
16639 (fast_tracepoint_jump_shadow): New.
16640 (find_fast_tracepoint_jump_at): New.
16641 (fast_tracepoint_jump_here): New.
16642 (delete_fast_tracepoint_jump): New.
16643 (set_fast_tracepoint_jump): New.
16644 (uninsert_fast_tracepoint_jumps_at): New.
16645 (reinsert_fast_tracepoint_jumps_at): New.
16646 (set_breakpoint_at): Use write_inferior_memory.
16647 (uninsert_raw_breakpoint): Use write_inferior_memory.
16648 (check_mem_read): Mask out fast tracepoint jumps.
16649 (check_mem_write): Mask out fast tracepoint jumps.
16650 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
16651 (set_fast_tracepoint_jump): Declare.
16652 (delete_fast_tracepoint_jump)
16653 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
16654 (reinsert_fast_tracepoint_jumps_at): Declare.
16655 * regcache.c: Don't compile many functions when building the
16656 in-process agent library.
16657 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
16658 the register buffer in the heap.
16659 (free_register_cache): If the register buffer isn't owned by the
16660 regcache, don't free it.
16661 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
16662 pre-existing register caches.
16663 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
16665 (convert_ascii_to_int): : Constify `from' parameter type.
16666 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
16667 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
16668 the needed buffer in-place.
16669 (relocate_instruction): New.
16670 * server.c (handle_query) <qSymbols>: If the target supports
16671 tracepoints, give it a chance of looking up symbols. Report
16672 support for fast tracepoints.
16673 (handle_status): Stabilize threads.
16674 (process_serial_event): Adjust.
16675 * server.h (struct fast_tracepoint_jump): Forward declare.
16676 (struct process_info) <fast_tracepoint_jumps>: New field.
16677 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
16678 (decode_X_packet, decode_M_packet): Adjust.
16679 (relocate_instruction): Declare.
16680 (in_process_agent_loaded): Declare.
16681 (tracepoint_look_up_symbols): Declare.
16682 (struct fast_tpoint_collect_status): Declare.
16683 (fast_tracepoint_collecting): Declare.
16684 (force_unlock_trace_buffer): Declare.
16685 (handle_tracepoint_bkpts): Declare.
16686 (initialize_low_tracepoint)
16687 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
16688 * target.h (struct target_ops) <stabilize_threads,
16689 install_fast_tracepoint_jump_pad>: New fields.
16690 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
16691 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
16692 [HAVE_STDINT_H]: Include stdint.h.
16693 (trace_debug_1): Rename to ...
16694 (trace_vdebug): ... this.
16695 (trace_debug): Rename to ...
16696 (trace_debug_1): ... this. Add `level' parameter.
16697 (trace_debug): New.
16698 (ATTR_USED, ATTR_NOINLINE): New.
16699 (IP_AGENT_EXPORT): New.
16700 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
16701 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
16702 (about_to_request_buffer_space, trace_buffer_is_full)
16703 (stopping_tracepoint, expr_eval_result, error_tracepoint)
16704 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
16705 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
16706 (traceframe_write_count, traceframes_created)
16707 (trace_state_variables)
16708 New renaming defines.
16709 (struct ipa_sym_addresses): New.
16710 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
16711 (symbol_list): New.
16712 (ipa_sym_addrs): New.
16713 (all_tracepoint_symbols_looked_up): New.
16714 (in_process_agent_loaded): New.
16715 (write_e_ipa_not_loaded): New.
16716 (maybe_write_ipa_not_loaded): New.
16717 (tracepoint_look_up_symbols): New.
16718 (debug_threads) [IN_PROCESS_AGENT]: New.
16719 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
16720 (UNKNOWN_SIDE_EFFECTS): New.
16721 (stop_tracing): New.
16722 (flush_trace_buffer): New.
16723 (stop_tracing_bkpt): New.
16724 (flush_trace_buffer_bkpt): New.
16725 (read_inferior_integer): New.
16726 (read_inferior_uinteger): New.
16727 (read_inferior_data_pointer): New.
16728 (write_inferior_data_pointer): New.
16729 (write_inferior_integer): New.
16730 (write_inferior_uinteger): New.
16731 (struct collect_static_trace_data_action): Delete.
16732 (enum tracepoint_type): New.
16733 (struct tracepoint) <type>: New field `type'.
16734 <actions_str, step_actions, step_actions_str>: Only include in
16736 <orig_size, obj_addr_on_target, adjusted_insn_addr>
16737 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
16738 (tracepoints): Use IP_AGENT_EXPORT.
16739 (last_tracepoint): Don't include in the IPA.
16740 (stopping_tracepoint): Use IP_AGENT_EXPORT.
16741 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
16742 (alloced_trace_state_variables): New.
16743 (trace_state_variables): Use IP_AGENT_EXPORT.
16744 (traceframe_t): Delete unused variable.
16745 (circular_trace_buffer): Don't include in the IPA.
16746 (trace_buffer_start): Delete.
16747 (struct trace_buffer_control): New.
16748 (trace_buffer_free): Delete.
16749 (struct ipa_trace_buffer_control): New.
16750 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
16751 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
16753 (trace_buffer_ctrl): New.
16754 (TRACE_BUFFER_CTRL_CURR): New.
16755 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
16756 Reimplement as macros.
16757 (trace_buffer_wrap): Delete.
16758 (traceframe_write_count, traceframe_read_count)
16759 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
16760 (struct tracepoint_hit_ctx) <type>: New field.
16761 (struct fast_tracepoint_ctx): New.
16762 (memory_barrier): New.
16764 (record_tracepoint_error): Update atomically in the IPA.
16765 (clear_inferior_trace_buffer): New.
16766 (about_to_request_buffer_space): New.
16767 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
16768 updating the same buffer.
16769 (add_tracepoint): Default the tracepoint's type to trap
16770 tracepoint, and orig_size to -1.
16771 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
16772 internal variables.
16773 (create_trace_state_variable): New parameter `gdb'. Handle it.
16774 (clear_installed_tracepoints): Clear fast tracepoint jumps.
16775 (cmd_qtdp): Handle fast tracepoints.
16776 (cmd_qtdv): Adjust.
16777 (max_jump_pad_size): New.
16778 (gdb_jump_pad_head): New.
16779 (get_jump_space_head): New.
16780 (claim_jump_space): New.
16781 (sort_tracepoints): New.
16782 (MAX_JUMP_SIZE): New.
16783 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
16785 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
16786 support. Upload fast traceframes, and delete internal IPA
16788 (stop_tracing_handler): New.
16789 (flush_trace_buffer_handler): New.
16790 (cmd_qtstop): Upload fast tracepoints.
16791 (response_tracepoint): Handle fast tracepoints.
16792 (tracepoint_finished_step): Upload fast traceframes. Set the
16793 tracepoint hit context's tracepoint type.
16794 (handle_tracepoint_bkpts): New.
16795 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
16796 type. Add comment about fast tracepoints.
16797 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
16798 non-existing action_str field.
16799 (get_context_regcache): Handle fast tracepoints.
16800 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
16802 (fast_tracepoint_from_jump_pad_address): New.
16803 (fast_tracepoint_from_ipa_tpoint_address): New.
16804 (collecting_t): New.
16805 (force_unlock_trace_buffer): New.
16806 (fast_tracepoint_collecting): New.
16808 (gdb_collect): New.
16809 (write_inferior_data_ptr): New.
16810 (target_tp_heap): New.
16811 (target_malloc): New.
16812 (download_agent_expr): New.
16814 (download_tracepoints): New.
16815 (download_trace_state_variables): New.
16816 (upload_fast_traceframes): New.
16817 (IPA_FIRST_TRACEFRAME): New.
16818 (IPA_NEXT_TRACEFRAME_1): New.
16819 (IPA_NEXT_TRACEFRAME): New.
16820 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
16821 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
16822 (gdb_jump_pad_buffer_end): New.
16823 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
16824 (initialize_tracepoint): Adjust.
16825 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
16826 buffer. Initialize the low module.
16827 * utils.c (PREFIX, TOOLNAME): New.
16828 (malloc_failure): Use PREFIX.
16829 (error): In the IPA, an error causes an exit.
16830 (fatal, warning): Use PREFIX.
16831 (internal_error): Use TOOLNAME.
16832 (NUMCELLS): Increase to 10.
16833 * configure, config.in: Regenerate.
16835 2010-06-01 Pedro Alves <pedro@codesourcery.com>
16837 * server.c (handle_query) <qSupported>: Do two passes over the
16838 qSupported string to avoid nesting strtok.
16840 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
16842 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
16844 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
16845 -Wl,--dynamic-list.
16846 * configure: Regenerate.
16847 * proc-service.list: New.
16849 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
16851 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
16854 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
16856 * gdbreplay.c (remote_open): Check error return from socket() call by
16857 its equality to -1 not by it being negative.
16858 * remote-utils.c (remote_open): Likewise.
16860 2010-05-23 Pedro Alves <pedro@codesourcery.com>
16862 * config.h: Regenerate.
16864 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
16866 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
16867 doesn't provide PTRACE_GET_THREAD_AREA.
16869 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
16871 * linux-m68k-low.c: Include <asm/ptrace.h>
16872 (ps_get_thread_area): Implement.
16874 2010-05-03 Doug Evans <dje@google.com>
16876 * event-loop.c (struct callback_event): New struct.
16877 (callback_list): New global.
16878 (append_callback_event, delete_callback_event): New functions.
16879 (process_callback): New function.
16880 (start_event_loop): Call it.
16881 * remote-utils.c (NOT_SCHEDULED): Define.
16882 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
16883 moved out of readchar.
16884 (readchar): Rewrite. Call reschedule before returning.
16885 (reset_readchar): New function.
16886 (remote_close): Call it.
16887 (process_remaining, reschedule): New functions.
16888 * server.h (callback_handler_func): New typedef.
16889 (append_callback_event, delete_callback_event): Declare.
16891 2010-05-03 Pedro Alves <pedro@codesourcery.com>
16893 * proc-service.c (ps_pglobal_lookup): Use
16894 thread_db_look_up_one_symbol.
16895 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
16896 parameter. Use it instead of all_symbols_looked_up.
16897 * server.h (struct process_info) <all_symbols_looked_up>: Delete
16899 (all_symbols_looked_up): Don't declare.
16900 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
16901 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
16903 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
16904 Set all_symbols_looked_up here.
16905 (thread_db_look_up_one_symbol): New.
16906 (thread_db_get_tls_address): Adjust.
16907 (thread_db_load_search, try_thread_db_load_1): Always allocate the
16908 thread_db object on the heap, and tentatively set it in the
16910 (thread_db_init): Don't set all_symbols_looked_up here.
16911 * linux-low.h (thread_db_look_up_one_symbol): Declare.
16913 2010-05-03 Pedro Alves <pedro@codesourcery.com>
16915 * linux-low.c (linux_kill, linux_detach): Adjust.
16916 (status_pending_p_callback): Remove redundant statement. Check
16917 for !TARGET_WAITIKIND_IGNORE, instead of
16918 TARGET_WAITKIND_STOPPED.
16919 (handle_tracepoints): Make sure LWP is locked. Adjust.
16920 (linux_wait_for_event_1): Adjust.
16921 (linux_cancel_breakpoints): New.
16922 (unsuspend_one_lwp): New.
16923 (unsuspend_all_lwps): New.
16924 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
16925 (send_sigstop_callback): Change return type to int, add new
16926 `except' parameter and handle it.
16927 (suspend_and_send_sigstop_callback): New.
16928 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
16929 pass them down. If SUSPEND, also increment the lwp's suspend
16931 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
16932 (need_step_over_p): Don't consider suspended LWPs.
16933 (start_step_over): Adjust.
16934 (proceed_one_lwp): Change return type to int, add new `except'
16935 parameter and handle it.
16936 (unsuspend_and_proceed_one_lwp): New.
16937 (proceed_all_lwps): Use find_inferior instead of
16939 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
16940 also decrement the suspend count of LWPs. Pass `except' down,
16941 instead of hacking its suspend count.
16942 (linux_pause_all): Add `freeze' parameter. Adjust.
16943 (linux_unpause_all): New.
16944 (linux_target_ops): Install linux_unpause_all.
16945 * server.c (handle_status): Adjust.
16946 * target.h (struct target_ops): New fields `unpause_all' and
16947 `cancel_breakpoints'. Add new parameter to `pause_all'.
16948 (pause_all): Add new `freeze' parameter.
16949 (unpause_all): New.
16950 (cancel_breakpoints): New.
16951 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
16952 cancel breakpoints.
16953 (cmd_qtstart): Pause threads.
16954 (stop_tracing): Pause threads, and cancel breakpoints.
16955 * win32-low.c (win32_target_ops): Adjust.
16957 2010-05-03 Pedro Alves <pedro@codesourcery.com>
16959 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
16960 the inferior right away from here...
16961 (linux_wait_1): ... to here, and adjust to check the thread's
16962 last_resume_kind instead of the lwp's step or stop_expected flags.
16964 2010-05-02 Pedro Alves <pedro@codesourcery.com>
16966 * README: Use consistent `GDB' and `GDBserver' spellings.
16968 2010-05-02 Pedro Alves <pedro@codesourcery.com>
16970 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
16971 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
16972 (linux_detach_one_lwp): Assume the lwp is stopped.
16973 (any_thread_of): Delete.
16974 (linux_detach): Stop all lwps here. Don't blindly delete all
16976 (delete_lwp_callback): New.
16977 (linux_mourn): Delete all lwps of the process that is gone.
16978 (linux_wait_1): Don't delete the last lwp of the process here.
16979 * mem-break.h (mark_breakpoints_out): Declare.
16980 * mem-break.c (mark_breakpoints_out): New.
16981 (free_all_breakpoints): Use it.
16982 * server.c (handle_target_event): If the process is gone, mark
16984 * thread-db.c (struct thread_db) <create_bp>: New field.
16985 (thread_db_enable_reporting): Fix prototype. Store a thread event
16986 breakpoint reference in the thread_db struct.
16987 (thread_db_load_search): Clear the thread_db object.
16988 (try_thread_db_load_1): Ditto.
16989 (switch_to_process): New.
16990 (disable_thread_event_reporting): Use it.
16991 (remove_thread_event_breakpoints): New.
16992 (thread_db_detach, thread_db_mourn): Use it.
16994 2010-05-01 Pedro Alves <pedro@codesourcery.com>
16996 * linux-low.c (linux_enable_event_reporting): New.
16997 (linux_wait_for_event_1, handle_extended_wait): Use it.
16999 2010-04-30 Pedro Alves <pedro@codesourcery.com>
17001 * linux-low.c (linux_kill_one_lwp, linux_kill)
17002 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
17003 (send_sigstop): Take an lwp_info as parameter instead. Queue a
17004 SIGSTOP even if the LWP is stopped.
17005 (send_sigstop_callback): New.
17006 (stop_all_lwps): Use send_sigstop_callback instead.
17007 (linux_resume_one_thread): Adjust.
17008 (proceed_one_lwp): Still proceed an LWP that the client has
17009 requested to stop, if we haven't reported it as stopped yet. Make
17010 sure that LWPs the client want stopped, have a pending SIGSTOP.
17012 2010-04-26 Doug Evans <dje@google.com>
17014 * server.c (handle_general_set): Make static.
17016 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
17017 Print received char after testing for error/eof instead of before.
17018 (input_interrupt): Tweak comment.
17020 2010-04-23 Doug Evans <dje@google.com>
17022 * server.c (start_inferior): Print inferior argv if --debug.
17024 2010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
17026 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
17027 * nto-x86-low.c: Include server.h
17029 2010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
17031 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
17032 be consistent with other sources of this directory.
17033 (init_registers_amd64): Correct name of source file of this function
17036 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17038 * configure.srv (x86_64-*-mingw*): New configuration for Windows
17039 64-bit executables.
17041 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17043 * win32-i386-low.c: Add 64-bit support.
17044 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
17045 (init_registers_amd64): Declare.
17046 (mappings): Add 64-bit version of array.
17047 (init_windows_x86): New function.
17048 (the_low_target): Change init_arch field to init_windows_x86.
17050 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17052 * win32-low.c: Adapt to support also 64-bit architecture.
17053 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
17054 (get_image_name): Use SIZE_T type for local variable `done'.
17055 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
17056 (toolhelp_get_dll_name): Idem.
17057 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
17058 Use uintptr_t typecast to avoid warning.
17059 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
17060 (handle_exception): Use phex_nz to avoid warning.
17061 (win32_wait): Remove unused local variable `process'.
17063 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17065 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
17068 2010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
17070 * configure.ac: Use `ws2_32' library for srv_mingw.
17071 * configure: Regenerate.
17072 * gdbreplay.c: Include winsock2.h instead of winsock.h.
17073 * remote-utils.c: Likewise.
17075 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
17077 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
17078 if __x86_64__ is defined.
17080 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17082 * configure: Regenerate.
17084 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17086 * server.c (handle_query): Handle 'qGetTIBAddr' query.
17087 * target.h (target_ops): New get_tib_address field.
17088 * win32-low.h (win32_thread_info): Add thread_local_base field.
17089 * win32-low.c (child_add_thread): Add tlb argument.
17090 Set thread_local_base field to TLB.
17091 (get_child_debug_event): Adapt to child_add_thread change.
17092 (win32_get_tib_address): New function.
17093 (win32_target_ops): Set get_tib_address field to
17094 win32_get_tib_address.
17095 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
17097 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17099 * linux-low.c (linux_mourn): Also remove the process.
17100 * server.c (handle_target_event): Don't remove the process here.
17101 * nto-low.c (nto_mourn): New.
17102 (nto_target_ops): Install it.
17103 * spu-low.c (spu_mourn): New.
17104 (spu_target_ops): Install it.
17105 * win32-low.c (win32_mourn): New.
17106 (win32_target_ops): Install it.
17108 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17110 * server.h (buffer_xml_printf): Remove redundant `;'.
17112 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17114 * regcache.c (set_register_cache): Invalidate regcaches before
17115 changing the register cache layout.
17116 (regcache_invalidate_one): Allow a NULL regcache.
17117 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
17118 regcaches before changing the register cache layout or the target
17121 2010-04-12 H.J. Lu <hongjiu.lu@intel.com>
17123 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
17124 variable warning on Linux/x86-64.
17126 2010-04-11 Pedro Alves <pedro@codesourcery.com>
17128 GDBserver disconnected tracing support.
17130 * linux-low.c (linux_remove_process): Delete.
17131 (add_lwp): Don't set last_resume_kind here.
17132 (linux_kill): Use `mourn'.
17133 (linux_detach): Use `thread_db_detach', and `mourn'.
17134 (linux_mourn): New.
17135 (linux_attach_lwp_1): Adjust comment.
17136 (linux_attach): last_resume_kind moved the thread_info; adjust.
17137 (status_pending_p_callback): Adjust.
17138 (linux_wait_for_event_1): Adjust.
17139 (count_events_callback, select_singlestep_lwp_callback)
17140 (select_event_lwp_callback, cancel_breakpoints_callback)
17141 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
17142 (proceed_one_lwp): Adjust.
17143 (linux_async): Add debug output.
17144 (linux_thread_stopped): New.
17145 (linux_pause_all): New.
17146 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
17148 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
17149 (thread_db_free): Delete declaration.
17150 (thread_db_detach, thread_db_mourn): Declare.
17151 * thread-db.c (thread_db_init): Use thread_db_mourn.
17152 (thread_db_free): Delete, split in two.
17153 (disable_thread_event_reporting): New.
17154 (thread_db_detach): New.
17155 (thread_db_mourn): New.
17157 * server.h (struct thread_info) <last_resume_kind>: New field.
17158 <attached>: Add comment.
17159 <gdb_detached>: New field.
17160 (handler_func): Change return type to int.
17161 (handle_serial_event, handle_target_event): Ditto.
17162 (gdb_connected): Declare.
17164 (disconnected_tracing): Declare.
17165 (stop_tracing): Declare.
17167 * server.c (handle_query) <qSupported>: Report support for
17168 disconnected tracing.
17169 (queue_stop_reply_callback): Account for running threads.
17170 (gdb_wants_thread_stopped): New.
17171 (gdb_wants_all_threads_stopped): New.
17172 (gdb_reattached_process): New.
17173 (handle_status): Clear the `gdb_detached' flag of all processes.
17174 In all-stop, stop all threads.
17175 (main): Be sure to leave tfind mode. Handle disconnected tracing.
17176 (process_serial_event): If the remote connection breaks, or if an
17177 exit was forced with "monitor exit", force an event loop exit.
17178 Handle disconnected tracing on detach.
17179 (handle_serial_event): Adjust.
17180 (handle_target_event): If GDB isn't connected, forward events back
17181 to the inferior, unless the last process exited, in which case,
17182 exit gdbserver. Adjust interface.
17184 * remote-utils.c (remote_open): Don't block in accept. Instead
17185 register an event loop source on the listen socket file
17186 descriptor. Refactor bits into ...
17187 (listen_desc): ... this new global.
17188 (gdb_connected): ... this new function.
17189 (enable_async_notification): ... this new function.
17190 (handle_accept_event): ... this new function.
17191 (remote_close): Clear remote_desc.
17193 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
17195 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
17197 (mourn_inferior): Define.
17198 (target_process_qsupported): Avoid the dangling else problem.
17199 (thread_stopped): Define.
17200 (pause_all): Define.
17201 (target_waitstatus_to_string): Declare.
17202 * target.c (target_waitstatus_to_string): New.
17204 * tracepoint.c (tracing): Make extern.
17205 (disconnected_tracing): New.
17206 (stop_tracing): Make extern. Handle tracing stops due to GDB
17208 (cmd_qtdisconnected): New.
17209 (cmd_qtstatus): Report disconnected tracing status in trace reply.
17210 (handle_tracepoint_general_set): Handle QTDisconnected.
17212 * event-loop.c (event_handler_func): Change return type to int.
17213 (process_event): Bail out if the event handler wants the event
17215 (handle_file_event): Ditto.
17216 (start_event_loop): Bail out if the event handler wants the event
17219 * nto-low.c (nto_target_ops): Adjust.
17220 * spu-low.c (spu_wait): Don't remove the process here.
17221 (spu_target_ops): Adjust.
17222 * win32-low.c (win32_wait): Don't remove the process here.
17223 (win32_target_ops): Adjust.
17225 2010-04-11 Pedro Alves <pedro@codesourcery.com>
17227 * regcache.c (realloc_register_cache): Invalidate inferior's
17228 regcache before recreating it.
17230 2010-04-09 Pedro Alves <pedro@codesourcery.com>
17232 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
17234 2010-04-09 Stan Shebs <stan@codesourcery.com>
17235 Pedro Alves <pedro@codesourcery.com>
17237 * server.h (LONGEST): New.
17238 (struct thread_info) <while_stepping>: New field.
17239 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
17241 (initialize_tracepoint, handle_tracepoint_general_set)
17242 (handle_tracepoint_query, tracepoint_finished_step)
17243 (tracepoint_was_hit, release_while_stepping_state_list):
17244 (current_traceframe): Declare.
17245 * server.c (handle_general_set): Handle tracepoint packets.
17246 (read_memory): New.
17247 (write_memory): New.
17248 (handle_search_memory_1): Use read_memory.
17249 (handle_query): Report support for conditional tracepoints, trace
17250 state variables, and tracepoint sources. Handle tracepoint
17252 (main): Initialize the tracepoints module.
17253 (process_serial_event): Handle traceframe reads/writes.
17255 * linux-low.c (handle_tracepoints): New.
17256 (linux_wait_1): Call it.
17257 (linux_resume_one_lwp): Handle while-stepping.
17258 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
17259 (linux_target_ops): Install them.
17260 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
17262 * linux-x86-low.c (x86_supports_tracepoints): New.
17263 (the_low_target). Install it.
17265 * mem-break.h (delete_breakpoint): Declare.
17266 * mem-break.c (delete_breakpoint): Make external.
17268 * target.h (struct target_ops): Add `supports_tracepoints',
17269 `read_pc', and `write_pc' fields.
17270 (target_supports_tracepoints): Define.
17271 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
17274 * regcache.h (struct regcache) <registers_owned>: New field.
17275 (init_register_cache, regcache_cpy): Declare.
17276 (regcache_read_pc, regcache_write_pc): Declare.
17277 (register_cache_size): Declare.
17278 (supply_regblock): Declare.
17279 * regcache.c (init_register_cache): New.
17280 (new_register_cache): Use it.
17281 (regcache_cpy): New.
17282 (register_cache_size): New.
17283 (supply_regblock): New.
17284 (regcache_read_pc, regcache_write_pc): New.
17286 * tracepoint.c: New.
17288 * Makefile.in (OBS): Add tracepoint.o.
17289 (tracepoint.o): New rule.
17291 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
17293 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
17295 (i386-mmx.c): Likewise.
17296 (i386-mmx-linux.o): Likewise.
17297 (i386-mmx-linux.c): Likewise.
17299 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
17300 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
17301 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
17302 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
17304 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
17305 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
17306 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
17308 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
17310 * Makefile.in (clean): Updated.
17312 (i386-avx.c): Likewise.
17313 (i386-avx-linux.o): Likewise.
17314 (i386-avx-linux.c): Likewise.
17315 (amd64-avx.o): Likewise.
17316 (amd64-avx.c): Likewise.
17317 (amd64-avx-linux.o): Likewise.
17318 (amd64-avx-linux.c): Likewise.
17320 * configure.srv (srv_i386_regobj): Add i386-avx.o.
17321 (srv_i386_linux_regobj): Add i386-avx-linux.o.
17322 (srv_amd64_regobj): Add amd64-avx.o.
17323 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
17324 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
17325 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
17326 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
17327 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
17328 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
17329 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
17331 * i387-fp.c: Include "i386-xstate.h".
17333 (i387_cache_to_xsave): Likewise.
17334 (i387_xsave_to_cache): Likewise.
17335 (x86_xcr0): Likewise.
17337 * i387-fp.h (i387_cache_to_xsave): Likewise.
17338 (i387_xsave_to_cache): Likewise.
17339 (x86_xcr0): Likewise.
17341 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
17342 * linux-crisv32-low.c (target_regsets): Likewise.
17343 * linux-m68k-low.c (target_regsets): Likewise.
17344 * linux-mips-low.c (target_regsets): Likewise.
17345 * linux-ppc-low.c (target_regsets): Likewise.
17346 * linux-s390-low.c (target_regsets): Likewise.
17347 * linux-sh-low.c (target_regsets): Likewise.
17348 * linux-sparc-low.c (target_regsets): Likewise.
17349 * linux-xtensa-low.c (target_regsets): Likewise.
17351 * linux-low.c: Include <sys/uio.h>.
17352 (regsets_fetch_inferior_registers): Support nt_type.
17353 (regsets_store_inferior_registers): Likewise.
17354 (linux_process_qsupported): New.
17355 (linux_target_ops): Add linux_process_qsupported.
17357 * linux-low.h (regset_info): Add nt_type.
17358 (linux_target_ops): Add process_qsupported.
17360 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
17362 (init_registers_i386_avx_linux): New.
17363 (init_registers_amd64_avx_linux): Likewise.
17364 (xmltarget_i386_linux_no_xml): Likewise.
17365 (xmltarget_amd64_linux_no_xml): Likewise.
17366 (PTRACE_GETREGSET): Likewise.
17367 (PTRACE_SETREGSET): Likewise.
17368 (x86_fill_xstateregset): Likewise.
17369 (x86_store_xstateregset): Likewise.
17370 (use_xml): Likewise.
17371 (x86_linux_update_xmltarget): Likewise.
17372 (x86_linux_process_qsupported): Likewise.
17373 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
17374 (x86_arch_setup): Don't call init_registers_amd64_linux nor
17375 init_registers_i386_linux here. Call
17376 x86_linux_update_xmltarget.
17377 (the_low_target): Add x86_linux_process_qsupported.
17379 * server.c (handle_query): Call target_process_qsupported.
17381 * target.h (target_ops): Add process_qsupported.
17382 (target_process_qsupported): New.
17384 2010-04-03 Pedro Alves <pedro@codesourcery.com>
17386 * inferiors.c (add_thread): Set last_status kind to
17387 TARGET_WAITKIND_IGNORE.
17388 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
17389 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
17390 (linux_wait_1): Move `thread' local definition to block that uses
17391 it. Don't NULL initialize `event_child'.
17392 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
17393 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
17394 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
17396 2010-04-01 Pedro Alves <pedro@codesourcery.com>
17398 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
17399 an extended waitstatus, or by a watchpoint.
17400 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
17401 thread was stepping or has been stopped by a watchpoint.
17403 2010-04-01 Pedro Alves <pedro@codesourcery.com>
17405 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
17406 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
17407 of another, then delete the previous, and validate all
17409 (validate_inserted_breakpoint): New.
17410 (delete_disabled_breakpoints): New.
17411 (validate_breakpoints): New.
17412 (check_mem_read): Validate breakpoints before trusting their
17413 shadow. Delete disabled breakpoints.
17414 (check_mem_write): Validate breakpoints before trusting they
17415 should be inserted. Delete disabled breakpoints.
17416 * mem-break.h (validate_breakpoints):
17417 * server.c (handle_query): Validate breakpoints when we see a
17420 2010-04-01 Pedro Alves <pedro@codesourcery.com>
17422 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
17423 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
17424 if we could tell there's a GDB breakpoint at stop_pc.
17425 (need_step_over_p): Don't do a step over if we find a GDB
17426 breakpoint at the resume PC.
17428 * mem-break.c (struct raw_breakpoint): New.
17429 (enum bkpt_type): New type `gdb_breakpoint'.
17430 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
17431 fields. New field `raw'.
17432 (find_raw_breakpoint_at): New.
17433 (set_raw_breakpoint_at): Handle refcounting. Create a raw
17434 breakpoint instead.
17435 (set_breakpoint_at): Adjust.
17436 (delete_raw_breakpoint): New.
17437 (release_breakpoint): New.
17438 (delete_breakpoint): Rename to...
17439 (delete_breakpoint_1): ... this. Add proc parameter. Use
17440 release_breakpoint. Return ENOENT.
17441 (delete_breakpoint): Reimplement.
17442 (find_breakpoint_at): Delete.
17443 (find_gdb_breakpoint_at): New.
17444 (delete_breakpoint_at): Delete.
17445 (set_gdb_breakpoint_at): New.
17446 (delete_gdb_breakpoint_at): New.
17447 (gdb_breakpoint_here): New.
17448 (set_reinsert_breakpoint): Use release_breakpoint.
17449 (uninsert_breakpoint): Rename to ...
17450 (uninsert_raw_breakpoint): ... this.
17451 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
17452 (reinsert_raw_breakpoint): Change parameter type to
17454 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
17456 (check_breakpoints): Adjust. Use release_breakpoint.
17457 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
17458 (breakpoint_inserted_here): Ditto.
17459 (check_mem_read): Adjust to iterate over raw breakpoints instead.
17460 Don't trust the breakpoint's shadow if it is not inserted.
17461 (check_mem_write): Adjust to iterate over raw breakpoints instead.
17462 (delete_all_breakpoints): Adjust.
17463 (free_all_breakpoints): Mark all breakpoints as uninserted, and
17464 use delete_breakpoint_1.
17466 * mem-break.h (breakpoints_supported): Delete declaration.
17467 (set_gdb_breakpoint_at): Declare.
17468 (gdb_breakpoint_here): Declare.
17469 (delete_breakpoint_at): Delete.
17470 (delete_gdb_breakpoint_at): Declare.
17472 * server.h (struct raw_breakpoint): Forward declare.
17473 (struct process_info): New field `raw_breakpoints'.
17475 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
17478 2010-03-24 Pedro Alves <pedro@codesourcery.com>
17480 * linux-low.c (status_pending_p_callback): Fix comment.
17481 (linux_wait_for_event_1): Move most of the internal breakpoint
17482 handling from here...
17483 (linux_wait_1): ... to here.
17484 (count_events_callback): New.
17485 (select_singlestep_lwp_callback): New.
17486 (select_event_lwp_callback): New.
17487 (cancel_breakpoints_callback): New.
17488 (select_event_lwp): New.
17489 (linux_wait_1): Simplify internal breakpoint handling. Give equal
17490 priority to all LWPs that have had events that should be reported
17491 to the client. Cancel breakpoints when about to reporting the
17492 event to the client, not while stopping lwps. No longer cancel
17493 finished single-steps here.
17494 (cancel_finished_single_step): Delete.
17495 (cancel_finished_single_steps): Delete.
17497 2010-03-24 Pedro Alves <pedro@codesourcery.com>
17499 * mem-break.c (enum bkpt_type): New.
17500 (struct breakpoint): New field `type'.
17501 (set_breakpoint_at): Change return type to struct breakpoint
17502 pointer. Set type to `other_breakpoint' by default.
17503 (delete_breakpoint): Rewrite, supporting more than one breakpoint
17504 in the breakpoint list.
17505 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
17506 (reinsert_breakpoint): Rename to ...
17507 (reinsert_raw_breakpoint): ... this.
17508 (reinsert_breakpoints_at): Adjust.
17509 * mem-break.h (struct breakpoint): Declare.
17510 (set_breakpoint_at): Change return type to struct breakpoint
17513 2010-03-24 Pedro Alves <pedro@codesourcery.com>
17515 * server.c (handle_query): Assign, not compare.
17517 2010-03-24 Pedro Alves <pedro@codesourcery.com>
17519 Teach linux gdbserver to step-over-breakpoints.
17521 * linux-low.c (can_hardware_single_step): New.
17522 (supports_breakpoints): New.
17523 (handle_extended_wait): If stopping threads, read the stop pc of
17524 the new cloned LWP.
17526 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
17527 low target doesn't support retrieving the PC.
17528 (add_lwp): Set last_resume_kind to resume_continue.
17529 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
17530 (linux_attach): Don't clear stop_expected. Set the lwp's
17531 last_resume_kind to resume_stop.
17532 (linux_detach_one_lwp): Don't check for removed breakpoints.
17533 (check_removed_breakpoint): Delete.
17534 (status_pending_p): Rename to ...
17535 (status_pending_p_callback): ... this. Don't check for removed
17536 breakpoints. Don't consider threads that are stopped from GDB's
17538 (linux_wait_for_lwp): Always read the stop_pc here.
17539 (cancel_breakpoint): New.
17540 (step_over_bkpt): New global.
17541 (linux_wait_for_event_1): Implement stepping over breakpoints.
17542 (gdb_wants_lwp_stopped): New.
17543 (gdb_wants_all_stopped): New.
17544 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
17545 single-step traps here. Store the thread's last reported target
17547 (send_sigstop): Don't clear stop_expected. Always set it,
17549 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
17550 (cancel_finished_single_step): New.
17551 (cancel_finished_single_steps): New.
17552 (wait_for_sigstop): Don't cancel finished single-step traps here.
17553 (linux_resume_one_lwp): Don't check for removed breakpoints.
17554 Don't set `step' on non-hardware step archs.
17555 (linux_set_resume_request): Ignore resume_stop requests if already
17556 stopping or stopped. Set the lwp's last_resume_kind.
17557 (resume_status_pending_p): Don't check for removed breakpoints.
17558 (need_step_over_p): New.
17559 (start_step_over): New.
17560 (finish_step_over): New.
17561 (linux_resume_one_thread): Always queue a sigstop for resume_stop
17562 requests. Clear the thread's last reported target waitstatus.
17563 Don't use the `suspended' flag. Don't consider pending breakpoints.
17564 (linux_resume): Start a step-over if necessary.
17565 (proceed_one_lwp): New.
17566 (proceed_all_lwps): New.
17567 (unstop_all_lwps): New.
17568 * linux-low.h (struct lwp_info): Rewrite comment for the
17569 `suspended' flag. Add the `stop_pc' field. Delete the
17570 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
17571 Add `'last_resume_kind' and `need_step_over' fields.
17572 * inferiors.c (struct thread_info): Delete, moved elsewhere.
17573 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
17574 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
17575 (set_raw_breakpoint_at): New.
17576 (set_breakpoint_at): Rewrite to use it.
17577 (reinsert_breakpoint_handler): Delete.
17578 (set_reinsert_breakpoint): New.
17579 (reinsert_breakpoint_by_bp): Delete.
17580 (delete_reinsert_breakpoints): New.
17581 (uninsert_breakpoint): Rewrite.
17582 (uninsert_breakpoints_at): New.
17583 (reinsert_breakpoint): Rewrite.
17584 (reinsert_breakpoints_at): New.
17585 (check_breakpoints): Rewrite.
17586 (breakpoint_here): New.
17587 (breakpoint_inserted_here): New.
17588 (check_mem_read): Adjust.
17589 * mem-break.h (breakpoints_supported, breakpoint_here)
17590 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
17591 (reinsert_breakpoint_by_bp): Delete declaration.
17592 (delete_reinsert_breakpoints): Declare.
17593 (reinsert_breakpoint): Delete declaration.
17594 (reinsert_breakpoints_at): Declare.
17595 (uninsert_breakpoint): Delete declaration.
17596 (uninsert_breakpoints_at): Declare.
17597 (check_breakpoints): Adjust prototype.
17598 * server.h: Adjust include order.
17599 (struct thread_info): Declare here. Add a `last_status' field.
17601 2010-03-23 Michael Snyder <msnyder@vmware.com>
17603 * server.c (crc32): New function.
17604 (handle_query): Add handling for 'qCRC:' request.
17606 2010-03-23 Pedro Alves <pedro@codesourcery.com>
17608 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
17609 lwp had been stopped by a watchpoint.
17611 2010-03-16 Pedro Alves <pedro@codesourcery.com>
17613 * server.h (internal_error): Declare.
17614 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
17615 * utils.c (internal_error): New function.
17617 2010-03-15 Andreas Schwab <schwab@redhat.com>
17619 * configure.srv: Fix typo setting srv_regobj.
17621 2010-03-15 Pedro Alves <pedro@codesourcery.com>
17623 * linux-low.c (fetch_register): Avoid passing a non string literal
17625 (usr_store_inferior_registers): Ditto.
17627 2010-03-14 Pedro Alves <pedro@codesourcery.com>
17629 * linux-low.c (linux_write_memory): Bail out early if peeking
17632 2010-03-14 Pedro Alves <pedro@codesourcery.com>
17634 * linux-low.h (struct lwp_info): New fields
17635 `stopped_by_watchpoint' and `stopped_data_address'.
17636 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
17637 here, and cache them in the lwp object.
17638 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
17640 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
17642 (linux_stopped_by_watchpoint): Rewrite.
17643 (linux_stopped_data_address): Rewrite.
17645 2010-03-06 Simo Melenius <simo.melenius@iki.fi>
17647 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
17648 switching the current inferior, not before.
17650 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
17652 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
17653 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
17654 i386-linux.c and amd64-linux.c.
17655 (reg-i386.o): Removed.
17656 (reg-i386.c): Likewise.
17657 (reg-i386-linux.o): Likewise.
17658 (reg-i386-linux.c): Likewise.
17659 (reg-x86-64.o): Likewise.
17660 (reg-x86-64.c): Likewise.
17661 (reg-x86-64-linux.o): Likewise.
17662 (reg-x86-64-linux.c): Likewise.
17664 (i386.c): Likewise.
17665 (i386-linux.o): Likewise.
17666 (i386-linux.c): Likewise.
17667 (amd64.o): Likewise.
17668 (amd64.c): Likewise.
17669 (amd64-linux.o): Likewise.
17670 (amd64-linux.c): Likewise.
17672 * configure.srv (srv_i386_regobj): New.
17673 (srv_i386_linux_regobj): Likewise.
17674 (srv_amd64_regobj): Likewise.
17675 (srv_amd64_linux_regobj): Likewise.
17676 (srv_i386_32bit_xmlfiles): Likewise.
17677 (srv_i386_64bit_xmlfiles): Likewise.
17678 (srv_i386_xmlfiles): Likewise.
17679 (srv_amd64_xmlfiles): Likewise.
17680 (srv_i386_linux_xmlfiles): Likewise.
17681 (srv_amd64_linux_xmlfiles): Likewise.
17682 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
17683 srv_xmlfiles to $srv_i386_xmlfiles.
17684 (i[34567]86-*-mingw32ce*): Likewise.
17685 (i[34567]86-*-mingw*): Likewise.
17686 (i[34567]86-*-nto*): Likewise.
17687 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
17688 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
17689 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
17690 (x86_64-*-linux*): Likewise.
17692 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
17693 (init_registers_amd64_linux): New.
17694 (x86_arch_setup): Replace init_registers_x86_64_linux with
17695 init_registers_amd64_linux.
17697 2010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
17699 * configure.ac: Check for libdl. If it is not available link against
17700 static libthread_db.
17701 * configure: Regenerate.
17703 2010-02-22 Pedro Alves <pedro@codesourcery.com>
17707 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
17708 handing a read watchpoint.
17709 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
17711 2010-02-12 Doug Evans <dje@google.com>
17713 * linux-low.c (linux_supports_tracefork_flag): Document.
17714 (linux_look_up_symbols): Add comment.
17716 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
17718 * regcache.c (supply_register): Clear regcache if buf is NULL.
17720 2010-02-02 Nicolas Roche <roche@sourceware.org>
17721 Joel Brobecker <brobecker@adacore.com>
17723 * inferiors.c (find_inferior): Add function documentation.
17724 (unloaded_dll): Handle the case where the unloaded dll has not
17725 been previously registered in the dll list.
17727 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
17729 * linux-arm-low.c (thumb_breakpoint_len): Delete.
17730 (thumb2_breakpoint): New.
17731 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
17733 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
17735 * linux-low.c (get_stop_pc): Check for SIGTRAP.
17736 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
17739 2010-01-21 Pedro Alves <pedro@codesourcery.com>
17741 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
17743 2010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
17745 * linux-s390-low.c (s390_collect_ptrace_register)
17746 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
17748 2010-01-21 Doug Evans <dje@google.com>
17750 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
17751 (PTRACE_ARG4_TYPE): New macro.
17752 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
17753 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
17754 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
17755 (usr_store_inferior_registers): Ditto.
17756 (linux_read_memory, linux_write_memory): Ditto.
17757 (linux_test_for_tracefork): Ditto.
17759 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
17760 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
17762 2010-01-21 Pedro Alves <pedro@codesourcery.com>
17764 * proc-service.c (ps_lgetregs): Don't refetch registers from the
17767 2010-01-21 Pedro Alves <pedro@codesourcery.com>
17769 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
17770 prototype to take a regcache. Adjust.
17772 2010-01-20 Pedro Alves <pedro@codesourcery.com>
17774 * regcache.h (struct thread_info): Forward declare.
17775 (struct regcache): New.
17776 (new_register_cache): Adjust prototype.
17777 (get_thread_regcache): Declare.
17778 (free_register_cache): Adjust prototype.
17779 (registers_to_string, registers_from_string): Ditto.
17780 (supply_register, supply_register_by_name, collect_register)
17781 (collect_register_as_string, collect_register_by_name): Ditto.
17782 * regcache.c (struct inferior_regcache_data): Delete.
17783 (get_regcache): Rename to ...
17784 (get_thread_regcache): ... this. Adjust. Switch inferior before
17785 fetching registers.
17786 (regcache_invalidate_one): Adjust.
17787 (regcache_invalidate): Fix prototype.
17788 (new_register_cache): Return the new register cache.
17789 (free_register_cache): Change prototype.
17790 (realloc_register_cache): Adjust.
17791 (registers_to_string): Change prototype to take a regcache. Adjust.
17792 (registers_from_string): Ditto.
17793 (register_data): Ditto.
17794 (supply_register): Ditto.
17795 (supply_register_by_name): Ditto.
17796 (collect_register): Ditto.
17797 (collect_register_as_string): Ditto.
17798 (collect_register_by_name): Ditto.
17799 * server.c (process_serial_event): Adjust.
17800 * linux-low.h (regset_fill_func, regset_store_func): Change
17802 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
17804 * linux-low.c (get_stop_pc): Adjust.
17805 (check_removed_breakpoint): Adjust.
17806 (linux_wait_for_event): Adjust.
17807 (linux_resume_one_lwp): Adjust.
17808 (fetch_register): Add regcache parameter. Adjust.
17809 (usr_store_inferior_registers): Ditto.
17810 (regsets_fetch_inferior_registers): Ditto.
17811 (regsets_store_inferior_registers): Ditto.
17812 (linux_fetch_registers, linux_store_registers): Ditto.
17813 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
17815 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
17817 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
17818 prototype to take a regcache.
17819 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
17820 * remote-utils.c (convert_ascii_to_int, outreg)
17821 (prepare_resume_reply): Change prototype to take a regcache.
17823 * target.h (struct target_ops) <fetch_registers, store_registers>:
17824 Change prototype to take a regcache.
17825 (fetch_inferior_registers, store_inferior_registers): Change
17826 prototype to take a regcache. Adjust.
17827 * proc-service.c (ps_lgetregs): Adjust.
17828 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
17829 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
17830 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
17831 take a regcache. Adjust.
17832 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
17833 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
17834 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
17835 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
17836 * linux-cris-low.c (cris_get_pc, cris_set_pc)
17837 (cris_cannot_fetch_register):
17838 (cris_breakpoint_at): Change prototype to take a regcache.
17840 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
17841 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
17842 to take a regcache. Adjust.
17843 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
17845 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
17846 take a regcache. Adjust.
17847 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
17848 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
17849 (m68k_set_pc): Change prototype to take a regcache. Adjust.
17850 * linux-mips-low.c (mips_get_pc):
17851 (mips_set_pc): Change prototype to take a regcache. Adjust.
17852 (mips_reinsert_addr): Adjust.
17853 (mips_collect_register): Change prototype to take a regcache.
17855 (mips_supply_register):
17856 (mips_collect_register_32bit, mips_supply_register_32bit)
17857 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
17858 (mips_store_fpregset): Ditto.
17859 * linux-ppc-low.c (ppc_supply_ptrace_register)
17860 (ppc_supply_ptrace_register): Ditto.
17861 (parse_spufs_run): Adjust.
17862 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
17863 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
17864 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
17865 take a regcache. Adjust.
17866 * linux-s390-low.c (s390_collect_ptrace_register)
17867 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
17868 (s390_set_pc): Change prototype to take a regcache. Adjust.
17869 (s390_arch_setup): Adjust.
17870 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
17871 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
17872 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
17873 (sparc_fill_gregset, sparc_store_gregset_from_stack)
17874 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
17876 (sparc_breakpoint_at): Adjust.
17877 * linux-xtensa-low.c (xtensa_fill_gregset):
17878 (xtensa_store_gregset):
17879 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
17880 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
17881 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
17882 prototype to take a regcache. Adjust.
17883 * win32-arm-low.c (arm_fetch_inferior_register)
17884 (arm_store_inferior_register): Change prototype to take a
17886 * win32-i386-low.c (i386_fetch_inferior_register)
17887 (i386_store_inferior_register): Change prototype to take a
17889 * win32-low.c (child_fetch_inferior_registers)
17890 (child_store_inferior_registers): Change prototype to take a
17892 (win32_wait): Adjust.
17893 (win32_fetch_inferior_registers): Change prototype to take a
17895 (win32_store_inferior_registers): Adjust.
17896 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
17897 store_inferior_register>: Change prototype to take a regcache.
17899 2010-01-20 Doug Evans <dje@google.com>
17901 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
17903 (linux_wait_for_event1, linux_init_signals): Ditto.
17904 (W_STOPCODE): Provide definition if missing.
17906 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
17908 * linux-low.c (linux_core_of_thread): New.
17909 (compare_ints, show_process, list_threads): New.
17910 (linux_qxfer_osdata): Report threads and cores.
17911 (linux_target_op): Register linux_core_of_thread.
17912 * remote-utils.c (prepare_resume_reply): Report the core.
17913 (buffer_xml_printf): Support %d specifier.
17914 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
17916 (handle_query): Handle qXfer:threads. Announce availability
17918 * target.h (struct target_ops): New field core_of_thread.
17920 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
17922 * Makefile.in (clean): Remove new generated files.
17923 (reg-s390.o, reg-s390.c): Remove rules.
17924 (reg-s390x.o, reg-s390x.c): Likewise.
17925 (s390-linux32.o, s390-linux32.c): Add rules.
17926 (s390-linux64.o, s390-linux64.c): Likewise.
17927 (s390x-linux64.o, s390x-linux64.c): Likewise.
17928 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
17929 * linux-s390-low.c: Include <elf.h>.
17930 (HWCAP_S390_HIGH_GPRS): Define if undefined.
17931 (init_registers_s390): Remove prototype.
17932 (init_registers_s390x): Likewise.
17933 (init_registers_s390_linux32): Add prototype.
17934 (init_registers_s390_linux64): Likewise.
17935 (init_registers_s390x_linux64): Likewise.
17936 (s390_num_regs_3264): New define.
17937 (s390_regmap_3264): New global variable.
17938 (s390_cannot_fetch_register): Remove obsolete check.
17939 (s390_cannot_store_register): Likewise.
17940 (s390_collect_ptrace_register): Handle upper/lower register halves.
17941 (s390_supply_ptrace_register): Likewise.
17942 (s390_fill_gregset): Update to register number changes.
17943 (s390_get_hwcap): New routine.
17944 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
17945 Install appropriate regmap and register set.
17947 2010-01-01 Joel Brobecker <brobecker@adacore.com>
17949 * server.c (gdbserver_version): Update copyright year to 2010.
17950 * gdbreplay.c (gdbreplay_version): Likewise.
17952 2009-12-28 Doug Evans <dje@google.com>
17954 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
17955 elf/external.h. Include <elf.h> instead but only if necessary.
17957 2009-12-28 Pedro Alves <pedro@codesourcery.com>
17959 * linux-low.c (linux_remove_process): Remove `detaching'
17960 parameter. Don't release/detach from thread_db here.
17961 (linux_kill): Release/detach from thread_db here, ...
17962 (linux_detach): ... and here, before actually detaching.
17963 (linux_wait_1): ... and here, when a process exits.
17964 * thread-db.c (any_thread_of): New.
17965 (thread_db_free): Switch the current inferior to a thread of the
17968 2009-12-21 Doug Evans <dje@google.com>
17970 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
17972 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
17973 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
17974 warning ifndef __NR_tkill. Move setting of errno there too.
17975 Delete unnecessary resetting of errno after syscall.
17976 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
17978 * configure.ac: Check for dladdr.
17979 * config.in: Regenerate.
17980 * configure: Regenerate.
17981 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
17982 (try_thread_db_load): Update.
17984 * linux-low.c (my_waitpid): Delete unnecessary prototype.
17986 2009-12-18 Doug Evans <dje@google.com>
17988 * event-loop.c: Include unistd.h if it exists.
17990 * linux-low.c (my_waitpid): Move definition away from being in
17991 between linux_tracefork_child/linux_test_for_tracefork.
17993 * gdb_proc_service.h (psaddr_t): Fix type.
17994 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
17995 signature to match glibc.
17997 2009-12-16 Doug Evans <dje@google.com>
17999 * linux-low.c (linux_read_memory): Fix argument to read.
18001 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18003 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
18004 events, don't leave current_inferior pointing at null.
18006 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18008 * win32-low.c (LOG): Delete.
18009 (OUTMSG): Output to stderr.
18010 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
18011 on compile time LOG macro.
18012 (win32_wait): Fix debug output.
18014 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18016 * win32-low.c (win32_add_one_solib): If the dll name is
18017 "ntdll.dll", prepend the system directory to the dll path.
18019 2009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
18021 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
18023 2009-11-17 Nathan Sidwell <nathan@codesourcery.com>
18024 Vladimir Prus <vladimir@codesourcery.com>
18026 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
18027 * configure.ac: Check for __mcoldfire__ and set
18028 gdb_cv_m68k_is_coldfire.
18029 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
18030 reg-cf.o and reg-m68k.o.
18031 * configure: Regenerated.
18033 2009-11-16 Pedro Alves <pedro@codesourcery.com>
18035 * linux-low.c (linux_remove_process): Add `detaching' parameter.
18036 Pass it to thread_db_free.
18037 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
18038 proper `detaching' argument to linux_remove_process.
18039 * linux-low.h (thread_db_free): Add `detaching' parameter.
18040 * thread-db.c (thread_db_init): Pass false as `detaching' argument
18042 (thread_db_free): Add `detaching' parameter. Only
18043 call td_ta_clear_event if detaching from process.
18045 2009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
18047 * thread-db.c (thread_db_free): Fix typo.
18049 2009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
18052 * thread-db.c (thread_db_free): Call td_ta_clear_event.
18054 2009-11-03 Nathan Sidwell <nathan@codesourcery.com>
18056 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
18057 with an i686 compiler.
18058 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
18060 * configure: Rebuilt.
18062 2009-10-29 Sandra Loosemore <sandra@codesourcery.com>
18066 * server.c (handle_search_memory_1): Correct read_addr initialization
18067 in loop for searching subsequent chunks.
18069 2009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
18071 * configure.ac: New --with-libthread-db option.
18072 * thread-db.c: Allow direct dependence on libthread_db.
18073 (thread_db_free): Adjust.
18074 * config.in: Regenerate.
18075 * configure: Likewise.
18077 2009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
18080 * thread-db.c (attach_thread): New function.
18081 (maybe_attach_thread): Return success/failure.
18082 (find_new_threads_callback): Adjust.
18083 (thread_db_find_new_threads): Loop until no new threads.
18085 2009-10-13 Pedro Alves <pedro@codesourcery.com>
18087 * proc-service.c (ps_lgetregs): Formatting.
18089 2009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
18091 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
18092 * configure.ac: Adjust.
18093 * linux-low.h (struct process_info_private): Move members to struct
18095 (thread_db_free, thread_db_handle_monitor_command): New prototype.
18096 * linux-low.c (linux_remove_process): Adjust.
18097 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
18098 * server.c (handle_query): Move code ...
18099 (handle_monitor_command): ... here. New function.
18100 * target.h (struct target_ops): New member.
18101 * thread-db.c (struct thread_db): New.
18102 (libthread_db_search_path): New variable.
18103 (thread_db_create_event, thread_db_enable_reporting)
18104 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
18105 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
18106 (try_thread_db_load_1, dladdr_to_soname): New functions.
18107 (try_thread_db_load, thread_db_load_search): New functions.
18108 (thread_db_init): Search for libthread_db.
18109 (thread_db_free): New function.
18110 (thread_db_handle_monitor_command): Likewise.
18111 * config.in: Regenerate.
18112 * configure: Regenerate.
18114 2009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
18116 * spu-low.c (spu_kill): Wait for inferior to terminate.
18117 Call clear_inferiors.
18118 (spu_detach): Call clear_inferiors.
18120 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18122 * aclocal.m4: Regenerate.
18123 * config.in: Likewise.
18124 * configure: Likewise.
18126 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18128 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
18129 (parse_spufs_run): New function.
18130 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
18131 (ppc_breakpoint_at): Handle SPU breakpoints.
18133 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18135 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
18136 (SPUFS_MAGIC): Define.
18137 (spu_enumerate_spu_ids): New function.
18138 (linux_qxfer_spu): New function.
18139 (linux_target_ops): Install linux_qxfer_spu.
18141 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18143 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
18144 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
18145 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
18146 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
18147 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
18148 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
18149 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
18150 (init_registers_powerpc_cell32l): Add prototype.
18151 (init_registers_powerpc_cell64l): Likewise.
18152 (ppc_arch_setup): Detect Cell/B.E. architecture.
18154 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18156 * Makefile.in (datarootdir): New variable.
18158 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18160 * linux-low.c (linux_write_memory): Update debugging output.
18161 * Makefile.in (clean): Add new descriptions.
18162 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
18163 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
18164 * configure.srv: Add new files for arm*-*-linux*.
18165 * linux-arm-low.c: Add new declarations.
18166 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
18167 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
18168 (HWCAP_VFPv3D16): New.
18169 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
18170 instead of __IWMMXT__.
18171 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
18172 (arm_arch_setup): New.
18173 (target_regsets): Remove #ifdef. Add VFP regset.
18174 (the_low_target): Use arm_arch_setup.
18176 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18178 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
18179 the main thread again.
18181 2009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
18183 Adding Neutrino gdbserver.
18184 * configure: Regenerated.
18185 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
18186 * configure.srv (i[34567]86-*-nto*): New target.
18187 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
18188 * remote-utils.c [__QNX__]: Include sys/iomgr.h
18189 (nto_comctrl) [__QNX__]: New function.
18190 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
18192 2009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
18194 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
18197 2009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
18198 Pedro Alves <pedro@codesourcery.com>
18200 * win32-i386-low.c (i386_get_thread_context): Handle systems that
18201 don't support CONTEXT_EXTENDED_REGISTERS.
18202 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
18203 (the_low_target): Install them.
18204 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
18205 failing with ERROR_PIPE_NOT_CONNECTED.
18207 2009-06-30 Doug Evans <dje@google.com>
18208 Pierre Muller <muller@ics.u-strasbg.fr>
18210 Add h/w watchpoint support to x86-linux, win32-i386.
18211 * Makefile.in (SFILES): Add i386-low.c
18212 (i386_low_h): Define.
18213 (i386-low.o): Add dependencies.
18214 (linux-x86-low.o): Add i386-low.h dependency.
18215 (win32-i386-low.o): Ditto.
18216 * i386-low.c: New file.
18217 * i386-low.h: New file.
18218 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
18219 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
18220 * linux-low.c (linux_add_process): Initialize arch_private.
18221 (linux_remove_process): Free arch_private.
18222 (add_lwp): Initialize arch_private.
18223 (delete_lwp): Free arch_private.
18224 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
18226 * linux-low.h (process_info_private): New member arch_private.
18227 (lwp_info): New member arch_private.
18228 (linux_target_ops): New members new_process, new_thread,
18230 (ptid_of): New macro.
18231 * linux-x86-low.c: Include stddef.h, i386-low.h.
18232 (arch_process_info): New struct.
18233 (arch_lwp_info): New struct.
18234 (x86_linux_dr_get, x86_linux_dr_set): New functions.
18235 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18236 (i386_dr_low_get_status): New function.
18237 (x86_insert_point, x86_remove_point): New functions.
18238 (x86_stopped_by_watchpoint): New function.
18239 (x86_stopped_data_address): New function.
18240 (x86_linux_new_process, x86_linux_new_thread): New functions.
18241 (x86_linux_prepare_to_resume): New function.
18242 (the_low_target): Add entries for insert_point, remove_point,
18243 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
18245 * server.c (debug_hw_points): New global.
18246 (monitor_show_help): Document set debug-hw-points.
18247 (handle_query): Process "set debug-hw-points".
18248 * server.h (debug_hw_points): Declare.
18249 (paddress): Declare.
18250 * utils.c (NUMCELLS, CELLSIZE): New macros.
18251 (get_sell, xsnprintf, paddress): New functions.
18252 * win32-arm-low.c (the_low_target): Add entries for insert_point,
18253 remove_point, stopped_by_watchpoint, stopped_data_address.
18254 * win32-i386-low.c: Include i386-low.h.
18255 (debug_reg_state): Replaces dr.
18256 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18257 (i386_dr_low_get_status): New function.
18258 (i386_insert_point, i386_remove_point): New functions.
18259 (i386_stopped_by_watchpoint): New function.
18260 (i386_stopped_data_address): New function.
18261 (i386_initial_stuff): Update.
18262 (get_thread_context,set_thread_context,i386_thread_added): Update.
18263 (the_low_target): Add entries for insert_point,
18264 remove_point, stopped_by_watchpoint, stopped_data_address.
18265 * win32-low.c (win32_insert_watchpoint): New function.
18266 (win32_remove_watchpoint): New function.
18267 (win32_stopped_by_watchpoint): New function.
18268 (win32_stopped_data_address): New function.
18269 (win32_target_ops): Add entries for insert_watchpoint,
18270 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
18271 * win32-low.h (win32_target_ops): New members insert_point,
18272 remove_point, stopped_by_watchpoint, stopped_data_address.
18274 2009-06-25 Pedro Alves <pedro@codesourcery.com>
18276 * server.c (process_serial_event): Re-return unsupported, not
18277 error, if the type isn't recognized. Re-allow supporting only
18278 insert or remove packets. Also call require_running for
18279 breakpoints. Add missing break statement to default case. Tidy.
18280 * target.h (struct target_ops): Rename insert_watchpoint to
18281 insert_point, and remove_watchpoint to remove_point.
18283 * linux-low.h (struct linux_target_ops): Likewise.
18284 * linux-low.c (linux_insert_watchpoint): Rename to ...
18285 (linux_insert_point): ... this. Adjust.
18286 (linux_remove_watchpoint): Rename to ...
18287 (linux_remove_point): ... this. Adjust.
18288 (linux_target_ops): Adjust.
18289 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
18290 (cris_insert_point): ... this.
18291 (cris_remove_watchpoint): Rename to ...
18292 (cris_remove_point): ... this.
18293 (the_low_target): Adjust.
18295 2009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
18297 * server.c (handle_v_kill): Pass signal_pid to
18298 kill_inferior if multi_process is zero.
18300 2009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
18302 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
18303 * target.h (target_ops): Comment for *_watchpoint to make it clear
18304 the functions can get types '0' and '1'.
18306 2009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
18308 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
18309 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
18310 * regcache.c (get_regcache): Likewise.
18311 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
18312 * win32-low.c (child_fetch_inferior_registers): Remove check for
18315 2009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
18316 Pedro Alves <pedro@codesourcery.com>
18318 * target.h (struct target_ops) <supports_multi_process>: New
18320 (target_supports_multi_process): New.
18321 * server.c (handle_query): Even if GDB reports support, only
18322 enable multi-process if the target also supports it. Report
18323 multi-process support only if the target backend supports it.
18324 * linux-low.c (linux_supports_multi_process): New function.
18325 (linux_target_ops): Install it as target_supports_multi_process
18328 2009-05-24 Doug Evans <dje@google.com>
18330 Global renaming of find_thread_pid to find_thread_ptid.
18331 * server.h (find_thread_ptid): Renamed from find_thread_pid.
18332 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
18333 All callers updated.
18335 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
18336 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
18339 * linux-low.c (get_stop_pc): Print pc if debug_threads.
18340 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
18341 (linux_resume_one_lwp): Ditto.
18343 2009-05-23 Doug Evans <dje@google.com>
18345 * linux-low.c (linux_resume_one_lwp): Change type of first arg
18346 from struct inferior_list_entry * to struct lwp_info *.
18347 All callers updated.
18349 2009-05-13 Doug Evans <dje@google.com>
18351 * linux-x86-low.c: Don't include assert.h.
18352 (x86_siginfo_fixup): Use fatal, not assert.
18353 (x86_arch_setup): Fix comment.
18355 2009-05-12 Doug Evans <dje@google.com>
18357 Biarch support for i386/amd64 gdbserver.
18358 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
18359 Add linux-x86-low.c.
18360 (linux-i386-low.o, linux-x86-64-low.o): Delete.
18361 (linux-x86-low.o): Add.
18362 * linux-x86-64-low.c: Delete.
18363 * linux-i386-low.c: Delete.
18364 * linux-x86-low.c: New file.
18365 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
18367 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
18369 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
18370 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
18371 (linux_child_pid_to_exec_file): New function.
18372 (elf_64_header_p, elf_64_file_p): New functions.
18373 (siginfo_fixup): New function.
18374 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
18375 give target a chance to convert layout.
18376 * linux-low.h (linux_target_ops): New member siginfo_fixup.
18377 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
18379 2009-05-07 Doug Evans <dje@google.com>
18381 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
18382 (regsets_store_inferior_registers): Ditto.
18384 2009-05-06 Pedro Alves <pedro@codesourcery.com>
18388 * linux-low.c (must_set_ptrace_flags): Delete.
18389 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
18391 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
18392 `lwp->must_set_ptrace_flags' instead.
18393 (linux_wait_for_event_1): Set ptrace options here.
18394 (linux_wait_1): ... not here.
18396 2009-04-30 Doug Evans <dje@google.com>
18398 * inferiors.c (started_inferior_callback): New function.
18399 (attached_inferior_callback): New function.
18400 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
18401 * server.c (print_started_pid, print_attached_pid): New functions.
18402 (detach_or_kill_for_exit): New function.
18403 (main): Call it instead of for_each_inferior (kill_inferior_callback).
18404 * server.h (have_started_inferiors_p): Declare.
18405 (have_attached_inferiors_p): Declare.
18407 * inferiors.c (remove_process): Fix memory leak, free process.
18408 * linux-low.c (linux_remove_process): New function.
18409 (linux_kill): Call it instead of remove_process.
18410 (linux_detach, linux_wait_1): Ditto.
18412 2009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
18414 * configure.srv: Add x86 Windows CE target.
18416 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
18418 * inferiors.c (get_thread_process): Make global.
18419 * server.h (get_thread_process): Add prototype.
18420 * thread-db.c (find_one_thread): Use get_thread_process
18421 instead of current_process.
18422 (thread_db_get_tls_address): Do not crash if called when
18423 thread layer is not yet initialized.
18425 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
18427 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
18428 * spu-low.c (current_tid): Rename to ...
18429 (current_ptid): ... this.
18430 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
18431 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
18432 ptid_get_lwp (current_ptid) instead of current_tid.
18433 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
18434 instead of current_tid. Use find_process_pid to verify pid
18435 argument is valid. Pass proper argument to remove_process.
18436 (spu_thread_alive): Compare current_ptid instead of current_tid.
18437 (spu_resume): Likewise.
18439 2009-04-02 Pedro Alves <pedro@codesourcery.com>
18441 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
18444 2009-04-01 Pedro Alves <pedro@codesourcery.com>
18446 Implement the multiprocess extensions, and add linux multiprocess
18449 * server.h (ULONGEST): Declare.
18450 (struct ptid, ptid_t): New.
18451 (minus_one_ptid, null_ptid): Declare.
18452 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
18453 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
18454 (struct inferior_list_entry): Change `id' type from unsigned from
18456 (struct sym_cache, struct breakpoint, struct
18457 process_info_private): Forward declare.
18458 (struct process_info): Declare.
18459 (current_process): Declare.
18460 (all_processes): Declare.
18461 (initialize_inferiors): Declare.
18462 (add_thread): Adjust to use ptid_t.
18463 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
18464 (add_process, remove_process, find_thread_pid): Declare.
18465 (find_inferior_id): Adjust to use ptid_t.
18466 (cont_thread, general_thread, step_thread): Change type to ptid_t.
18467 (multi_process): Declare.
18468 (push_event): Adjust to use ptid_t.
18469 (read_ptid, write_ptid): Declare.
18470 (prepare_resume_reply): Adjust to use ptid_t.
18471 (clear_symbol_cache): Declare.
18472 * inferiors.c (all_processes): New.
18473 (null_ptid, minus_one_ptid): New.
18474 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
18475 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
18476 (add_thread): Change unsigned long to ptid. Remove gdb_id
18478 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
18479 (gdb_id_to_thread): Rename to ...
18480 (find_thread_pid): ... this. Change unsigned long to ptid.
18481 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
18482 (loaded_dll, pull_pid_from_list): Adjust.
18483 (add_process, remove_process, find_process_pid)
18484 (get_thread_process, current_process, initialize_inferiors): New.
18485 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
18486 (struct target_waitstatus) <related_pid>: Ditto.
18487 (struct target_ops) <kill, detach>: Add `pid' argument. Change
18488 return type to int.
18489 (struct target_ops) <join>: Add `pid' argument.
18490 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
18491 (struct target_ops) <wait>: Add `ptid' field. Change return type
18493 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
18494 (mywait): Add `ptid' argument. Change return type to ptid_t.
18495 (target_pid_to_str): Declare.
18496 * target.c (set_desired_inferior): Adjust to use ptids.
18497 (mywait): Add new `ptid' argument. Adjust.
18498 (target_pid_to_str): New.
18499 * mem-break.h (free_all_breakpoints): Declare.
18500 * mem-break.c (breakpoints): Delelete.
18501 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
18502 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
18503 to use per-process breakpoint list.
18504 (free_all_breakpoints): New.
18505 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
18506 (symbol_cache, all_symbols_looked_up): Delete.
18508 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
18510 (prepare_resume_reply): Change ptid argument's type from unsigned
18511 long to ptid_t. Adjust. Implement W;process and X;process.
18512 (free_sym_cache, clear_symbol_cache): New.
18513 (look_up_one_symbol): Adjust to per-process symbol cache. *
18514 * server.c (cont_thread, general_thread, step_thread): Change type
18516 (attached): Delete.
18517 (multi_process): New.
18518 (last_ptid): Change type to ptid_t.
18519 (struct vstop_notif) <ptid>: Change type to ptid_t.
18520 (queue_stop_reply, push_event): Change `ptid' argument's type to
18522 (discard_queued_stop_replies): Add `pid' argument.
18523 (start_inferior): Adjust to use ptids. Adjust to mywait interface
18524 changes. Don't reference the `attached' global.
18525 (attach_inferior): Adjust to mywait interface changes.
18526 (handle_query): Adjust to use ptids. Parse GDB's qSupported
18527 features. Handle and report "multiprocess+". Handle
18529 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
18531 (handle_v_kill): New.
18532 (handle_v_stopped): Adjust to use target_pid_to_str.
18533 (handle_v_requests): Allow multiple attaches and runs when
18534 multiprocess extensions are in effect. Handle "vKill".
18535 (myresume): Adjust to use ptids.
18536 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
18537 (handle_status): Adjust to discard_queued_stop_replies interface
18539 (first_thread_of, kill_inferior_callback)
18540 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
18541 (main): Call initialize_inferiors. Adjust to use ptids, killing
18542 and detaching from all inferiors. Handle multiprocess packet
18544 * linux-low.h: Include gdb_proc_service.h.
18545 (struct process_info_private): New.
18546 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
18547 <lwpid_of>: Use ptid_get_lwp.
18548 (get_lwp_thread): Adjust.
18549 (struct lwp_info): Add `dead' member.
18550 (find_lwp_pid): Declare.
18551 * linux-low.c (thread_db_active): Delete.
18552 (new_inferior): Adjust comment.
18553 (inferior_pid): Delete.
18554 (linux_add_process): New.
18555 (handle_extended_wait): Adjust.
18556 (add_lwp): Change unsigned long to ptid.
18557 (linux_create_inferior): Add process to processes table. Adjust
18558 to use ptids. Don't set new_inferior here.
18559 (linux_attach_lwp): Rename to ...
18560 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
18561 it. Adjust to use ptids.
18562 (linux_attach_lwp): New.
18563 (linux_attach): Add process to processes table. Don't set
18565 (struct counter): New.
18566 (second_thread_of_pid_p, last_thread_of_process_p): New.
18567 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
18568 multiple processes.
18569 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
18570 processes. Remove process from process table.
18571 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
18572 to multiple processes.
18573 (any_thread_of): New.
18574 (linux_detach): Add `pid' argument, and handle it. Remove process
18575 from processes table.
18576 (linux_join): Add `pid' argument. Handle it.
18577 (linux_thread_alive): Change unsighed long argument to ptid_t.
18578 Consider dead lwps as not being alive.
18579 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
18580 threads we're not interested in.
18581 (same_lwp, find_lwp_pid): New.
18582 (linux_wait_for_lwp): Change `pid' argument's type from int to
18584 (linux_wait_for_event): Rename to ...
18585 (linux_wait_for_event_1): ... this. Change `pid' argument's type
18586 from int to ptid_t. Adjust.
18587 (linux_wait_for_event): New.
18588 (linux_wait_1): Add `ptid' argument. Change return type to
18589 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
18590 that exit from the process table.
18591 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
18593 (mark_lwp_dead): New.
18594 (wait_for_sigstop): Adjust to use ptids. If a process exits while
18595 stopping all threads, mark its main lwp as dead.
18596 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
18598 (fetch_register, usr_store_inferior_registers)
18599 (regsets_fetch_inferior_registers)
18600 (regsets_store_inferior_registers, linux_read_memory)
18601 (linux_write_memory): Inline `inferior_pid'.
18602 (linux_look_up_symbols): Adjust to use per-process
18603 `thread_db_active'.
18604 (linux_request_interrupt): Adjust to use ptids.
18605 (linux_read_auxv): Inline `inferior_pid'.
18606 (initialize_low): Don't reference thread_db_active.
18607 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
18608 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
18609 (ps_getpid): Return the pid of the current inferior.
18610 * thread-db.c (proc_handle, thread_agent): Delete.
18611 (thread_db_create_event, thread_db_enable_reporting): Adjust to
18613 (find_one_thread): Change argument type to ptid_t. Adjust to
18615 (maybe_attach_thread): Adjust to per-process data and ptids.
18616 (thread_db_find_new_threads): Ditto.
18617 (thread_db_init): Ditto.
18618 * spu-low.c (spu_create_inferior, spu_attach): Add process to
18619 processes table. Adjust to use ptids.
18620 (spu_kill, spu_detach): Adjust interface. Remove process from
18622 (spu_join, spu_thread_alive): Adjust interface.
18623 (spu_wait): Adjust interface. Remove process from processes
18624 table. Adjust to use ptids.
18625 * win32-low.c (current_inferior_tid): Delete.
18626 (current_inferior_ptid): New.
18627 (debug_event_ptid): New.
18628 (thread_rec): Take a ptid. Adjust.
18629 (child_add_thread): Add `pid' argument. Adjust to use ptids.
18630 (child_delete_thread): Ditto.
18631 (do_initial_child_stuff): Add `attached' argument. Add process to
18633 (child_fetch_inferior_registers, child_store_inferior_registers):
18635 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
18636 (win32_attach): Pass 1 to do_initial_child_stuff.
18637 (win32_kill): Adjust interface. Remove process from processes
18639 (win32_detach): Ditto.
18640 (win32_join): Adjust interface.
18641 (win32_thread_alive): Take a ptid.
18642 (win32_resume): Adjust to use ptids.
18643 (get_child_debug_event): Ditto.
18644 (win32_wait): Adjust interface. Remove exiting process from
18647 2009-04-01 Pedro Alves <pedro@codesourcery.com>
18649 Non-stop mode support.
18651 * server.h (non_stop): Declare.
18652 (gdb_client_data, handler_func): Declare.
18653 (delete_file_handler, add_file_handler, start_event_loop):
18655 (handle_serial_event, handle_target_event, push_event)
18656 (putpkt_notif): Declare.
18657 * target.h (enum resume_kind): New.
18658 (struct thread_resume): Replace `step' field by `kind' field.
18659 (TARGET_WNOHANG): Define.
18660 (struct target_ops) <wait>: Add `options' argument.
18661 <supports_non_stop, async, start_non_stop>: New fields.
18662 (target_supports_non_stop, target_async): New.
18663 (start_non_stop): Declare.
18664 (mywait): Add `options' argument.
18665 * target.c (mywait): Add `options' argument. Print child exit
18666 notifications here.
18667 (start_non_stop): New.
18668 * server.c (non_stop, own_buf, mem_buf): New globals.
18669 (struct vstop_notif): New.
18670 (notif_queue): New global.
18671 (queue_stop_reply, push_event, discard_queued_stop_replies)
18672 (send_next_stop_reply): New.
18673 (start_inferior): Adjust to use resume_kind. Adjust to mywait
18675 (attach_inferior): In non-stop mode, don't wait for the target
18677 (handle_general_set): Handle QNonStop.
18678 (handle_query): When handling qC, return the current general
18679 thread, instead of the first thread of the list.
18680 (handle_query): If the backend supports non-stop mode, include
18681 QNonStop+ in the qSupported query response.
18682 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
18684 (handle_v_attach, handle_v_run): Handle non-stop mode.
18685 (handle_v_stopped): New.
18686 (handle_v_requests): Report support for vCont;t. Handle vStopped.
18687 (myresume): Adjust to use resume_kind. Handle non-stop.
18688 (queue_stop_reply_callback): New.
18689 (handle_status): Handle non-stop mode.
18690 (main): Clear non_stop flag on reconnection. Use the event-loop.
18691 Refactor serial protocol handling from here ...
18692 (process_serial_event): ... to this new function. When GDB
18693 selects any thread, select one here. In non-stop mode, wait until
18694 GDB acks all pending events before exiting.
18695 (handle_serial_event, handle_target_event): New.
18696 * remote-utils.c (remote_open): Install remote_desc in the event
18698 (remote_close): Remove remote_desc from the event loop.
18699 (putpkt_binary): Rename to...
18700 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
18701 (putpkt_binary): New as wrapper around putpkt_binary_1.
18702 (putpkt_notif): New.
18703 (prepare_resume_reply): In non-stop mode, don't change the
18705 * event-loop.c: New.
18706 * Makefile.in (OBJ): Add event-loop.o.
18707 (event-loop.o): New rule.
18709 * linux-low.h (pid_of): Moved here.
18711 (get_lwp_thread): Use lwpid_of.
18712 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
18713 * linux-low.c (pid_of): Delete.
18714 (inferior_pid): Use lwpid_of.
18715 (linux_event_pipe): New.
18716 (target_is_async_p): New.
18718 (handle_extended_wait): Use lwpid_of.
18719 (add_lwp): Don't set lwpid field.
18720 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
18721 (linux_kill_one_lwp): If killing a running lwp, stop it first.
18722 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
18723 (linux_detach_one_lwp): If detaching from a running lwp, stop it
18724 first. Adjust to linux_wait_for_event interface changes. Use
18726 (linux_detach): Don't delete the main lwp here.
18727 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
18728 (status_pending_p): Don't consider explicitly suspended lwps.
18729 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
18730 pointer. Add OPTIONS argument. Change return type to int. Use
18731 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
18732 (linux_wait_for_event): Take an integer pid instead of a lwp_info
18733 pointer. Add status pointer argument. Return a pid instead of a
18734 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
18735 changes. In non-stop mode, don't switch to a random thread.
18736 (linux_wait): Rename to...
18737 (linux_wait_1): ... this. Add target_options argument, and handle
18738 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
18739 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
18740 clean exit and signal exit code. Don't stop all threads in
18741 non-stop mode. In all-stop mode, only stop all threads when
18742 reporting a stop to GDB. Handle explicit thread stop requests.
18743 (async_file_flush, async_file_mark): New.
18745 (send_sigstop): Use lwpid_of.
18746 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
18747 interface changes. In non-stop mode, don't switch to a random
18749 (linux_resume_one_lwp): Use lwpid_of.
18750 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
18751 (linux_resume_one_thread): ... this. Handle resume_stop. In
18752 non-stop mode, don't look for pending flag in all threads.
18753 (resume_status_pending_p): Don't consider explicitly suspended
18755 (my_waitpid): Reimplement. Emulate __WALL.
18756 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
18758 (sigchld_handler, linux_supports_non_stop, linux_async)
18759 (linux_start_non_stop): New.
18760 (linux_target_ops): Register linux_supports_non_stop, linux_async
18761 and linux_start_non_stop.
18762 (initialize_low): Install SIGCHLD handler.
18763 * thread-db.c (thread_db_create_event, find_one_thread)
18764 (thread_db_get_tls_address): Use lwpid_of.
18765 * win32-low.c (win32_detach): Adjust to use resume_kind.
18766 (win32_wait): Add `options' argument.
18767 * spu-low.c (spu_resume): Adjust to use resume_kind.
18768 (spu_wait): Add `options' argument.
18770 2009-04-01 Pedro Alves <pedro@codesourcery.com>
18772 Decouple target code from remote protocol.
18774 * target.h (enum target_waitkind): New.
18775 (struct target_waitstatus): New.
18776 (struct target_ops) <wait>: Return an unsigned long. Take a
18777 target_waitstatus pointer instead of a char pointer.
18778 (mywait): Likewise.
18779 * target.c (mywait): Change prototype to return an unsigned long.
18780 Take a target_waitstatus pointer instead of a char pointer. Adjust.
18781 * server.h (thread_from_wait, old_thread_from_wait): Delete
18783 (prepare_resume_reply): Change prototype to take a
18785 * server.c (thread_from_wait, old_thread_from_wait): Delete.
18786 (last_status, last_ptid): New.
18787 (start_inferior): Remove "statusptr" argument. Adjust. Return a
18788 pid instead of a signal.
18789 (attach_inferior): Remove "status" and "signal" parameters.
18791 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
18793 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
18794 (handle_v_requests, myresume): Remove "status" and "signal"
18795 parameters. Adjust.
18796 (handle_status): New.
18797 (main): Delete local `status'. Adjust.
18798 * remote-utils.c: Include target.h.
18799 (prepare_resume_reply): Change prototype to take a
18800 target_waitstatus. Adjust.
18802 * linux-low.c (linux_wait): Adjust to new target_ops->wait
18804 * spu-low.c (spu_wait): Adjust.
18805 * win32-low.c (enum target_waitkind, struct target_waitstatus):
18807 (win32_wait): Adjust.
18809 2009-04-01 Pedro Alves <pedro@codesourcery.com>
18811 * target.h (struct thread_resume): Delete leave_stopped member.
18812 (struct target_ops): Add a `n' argument to the `resume' callback.
18813 * server.c (start_inferior): Adjust.
18814 (handle_v_cont, myresume): Adjust.
18815 * linux-low.c (check_removed_breakpoint): Adjust to resume
18816 interface change, and to removed leave_stopped field.
18817 (resume_ptr): Delete.
18818 (struct thread_resume_array): New.
18819 (linux_set_resume_request): Add new `arg' parameter. Adjust to
18820 resume interface change.
18821 (linux_continue_one_thread, linux_queue_one_thread)
18822 (resume_status_pending_p): Check if the resume field is NULL
18823 instead of checking the leave_stopped member.
18824 (linux_resume): Adjust to the target resume interface change.
18825 * spu-low.c (spu_resume): Adjust to the target resume interface
18827 * win32-low.c (win32_detach, win32_resume): Ditto.
18829 2009-04-01 Pedro Alves <pedro@codesourcery.com>
18831 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
18833 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
18835 (linux_continue_one_thread): Only preserve the stepping flag if
18836 there's a pending breakpoint.
18838 2009-03-31 Pedro Alves <pedro@codesourcery.com>
18840 * server.c (main): After the inferior having exited, call
18841 remote_close before exiting gdbserver.
18843 2009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
18845 Fix size of FPSCR in Power 7 processors.
18846 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
18847 (PPC_FEATURE_HAS_DFP): New #define.
18848 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
18851 2009-03-23 Pedro Alves <pedro@codesourcery.com>
18853 * server.c (handle_query) Whitespace and formatting.
18855 2009-03-22 Pedro Alves <pedro@codesourcery.com>
18857 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
18858 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
18859 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
18860 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
18861 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
18862 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
18863 Makefile.in, configure.ac: Fix whitespace throughout.
18864 * configure: Regenerate.
18866 2009-03-22 Pedro Alves <pedro@codesourcery.com>
18868 * inferiors.c (find_inferior): Make it safe for the callback
18869 function to delete the currently iterated inferior.
18871 2009-03-22 Pedro Alves <pedro@codesourcery.com>
18873 * Makefile.in (linuw_low_h): Move higher.
18874 (thread-db.o): Depend on $(linux_low_h).
18876 2009-03-17 Pedro Alves <pedro@codesourcery.com>
18878 Rename "process" to "lwp" throughout.
18880 * linux-low.c (all_processes): Rename to...
18881 (all_lwps): ... this.
18882 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
18883 (add_process): Rename to ...
18884 (add_lwp): ... this. Adjust.
18885 (linux_create_inferior): Adjust.
18886 (linux_attach_lwp): Adjust.
18887 (linux_attach): Adjust.
18888 (linux_kill_one_process): Rename to ...
18889 (linux_kill_one_lwp): ... this. Adjust.
18890 (linux_kill): Adjust.
18891 (linux_detach_one_process): Rename to ...
18892 (linux_detach_one_lwp): ... this. Adjust.
18893 (linux_detach): Adjust.
18894 (check_removed_breakpoint): Adjust.
18895 (status_pending_p): Adjust.
18896 (linux_wait_for_process): Rename to ...
18897 (linux_wait_for_lwp): ... this. Adjust.
18898 (linux_wait_for_event): Adjust.
18899 (send_sigstop): Adjust.
18900 (wait_for_sigstop): Adjust.
18901 (stop_all_processes): Rename to ...
18902 (stop_all_lwps): ... this.
18903 (linux_resume_one_process): Rename to ...
18904 (linux_resume_one_lwp): ... this. Adjust.
18905 (linux_set_resume_request, linux_continue_one_thread)
18906 (linux_queue_one_thread, resume_status_pending_p)
18907 (usr_store_inferior_registers, regsets_store_inferior_registers)
18908 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
18910 * linux-low.h (get_process): Rename to ...
18911 (get_lwp): ... this. Adjust.
18912 (get_thread_process): Rename to ...
18913 (get_thread_lwp): ... this. Adjust.
18914 (get_process_thread): Rename to ...
18915 (get_lwp_thread): ... this. Adjust.
18916 (struct process_info): Rename to ...
18917 (struct lwp_info): ... this.
18918 (all_processes): Rename to ...
18919 (all_lwps): ... this.
18920 * proc-service.c (ps_lgetregs): Adjust.
18921 * thread-db.c (thread_db_create_event, find_one_thread)
18922 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
18924 2009-03-14 Pedro Alves <pedro@codesourcery.com>
18926 * server.c (handle_query): Handle "qAttached".
18928 2009-03-13 Nathan Sidwell <nathan@codesourcery.com>
18930 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
18931 GPLv3, update license URL.
18933 2009-03-01 Doug Evans <dje@google.com>
18935 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
18936 (server_h): Add gdb_signals.h.
18937 (signals.o): Update.
18938 * server.h (target_signal_from_host,target_signal_to_host_p)
18939 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
18941 2009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
18943 * remote-utils.c (getpkt): Also generate remote-debug
18944 information if noack_mode is set.
18946 2009-02-06 Pedro Alves <pedro@codesourcery.com>
18948 * server.c (handle_query): Report qXfer:siginfo:read and
18949 qXfer:siginfo:write as supported and handle them.
18950 * target.h (struct target_ops) <qxfer_siginfo>: New field.
18951 * linux-low.c (linux_xfer_siginfo): New.
18952 (linux_target_ops): Set it.
18954 2009-01-26 Pedro Alves <pedro@codesourcery.com>
18956 * server.c (gdbserver_usage): Mention --remote-debug.
18957 (main): Accept '--remote-debug' switch.
18959 2009-01-18 Doug Evans <dje@google.com>
18961 * regcache.c (new_register_cache): No need to check result of xcalloc.
18962 * server.c (handle_search_memory): Back out calls to xmalloc,
18963 result is checked and error is returned to user upon failure.
18964 (handle_query): Ditto. Add more checks for result of malloc.
18965 (handle_v_cont): Check result of malloc, report error back to
18967 (handle_v_run): Ditto. Call freeargv.
18968 * server.h (freeargv): Declare.
18969 * utils.c (freeargv): New fn.
18971 2009-01-15 Doug Evans <dje@google.com>
18973 * gdbreplay.c (perror_with_name): Make arg const char *.
18974 * server.h (target_signal_to_name): Make return type const char *.
18975 * thread-db.c (thread_db_err_str): Make return type const char *.
18976 * utils.c (perror_with_name): Make arg const char *.
18978 2009-01-14 Pedro Alves <pedro@codesourcery.com>
18980 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
18981 when handling a EXIT_PROCESS_DEBUG_EVENT.
18983 2009-01-06 Joel Brobecker <brobecker@adacore.com>
18985 * gdbreplay.c (gdbreplay_version): Update copyright year.
18986 * server.c (gdbserver_version): Likewise.
18988 2009-01-05 Doug Evans <dje@google.com>
18990 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
18991 (handle_extended_wait): Improve comment.
18993 2008-12-13 Doug Evans <dje@google.com>
18995 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
18996 * server.h (ATTR_MALLOC): New macro.
18997 (xmalloc,xcalloc,xstrdup): Declare.
18998 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
18999 * inferiors.c: Ditto.
19000 * linux-low.c: Ditto.
19001 * mem-break.c: Ditto.
19002 * regcache.c: Ditto.
19003 * remote-utils.c: Ditto.
19006 * win32-low.c: Ditto.
19008 2008-12-12 Doug Evans <dje@google.com>
19010 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
19011 in debugging printf.
19013 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
19015 2008-12-09 Doug Evans <dje@google.com>
19017 * linux-low.h (struct process_info): Delete member tid, unused.
19018 * thread-db.c (find_one_thread): Update.
19019 (maybe_attach_thread): Update.
19021 2008-12-02 Pedro Alves <pedro@codesourcery.com>
19023 * target.h (struct target_ops): Add qxfer_osdata member.
19024 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
19026 (linux_qxfer_osdata): New functions.
19027 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
19029 * server.c (handle_query): Handle "qXfer:osdata:read:".
19030 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
19031 (buffer_xml_printf): New functions.
19032 * server.h (struct buffer): New.
19033 (buffer_grow_str, buffer_grow_str0): New macros.
19034 (buffer_grow, buffer_free, buffer_init, buffer_finish)
19035 (buffer_xml_printf): Declare.
19037 2008-11-24 Doug Evans <dje@google.com>
19039 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
19041 2008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
19043 * server.c (handle_v_run): Always use the supplied argument list.
19045 2008-11-19 Bob Wilson <bob.wilson@acm.org>
19047 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
19048 (xtensa_regmap_table): Add entry for scompare1.
19050 2008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
19052 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
19053 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
19054 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
19055 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
19056 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
19057 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
19058 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
19059 XML target descriptions.
19060 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
19061 when inferior is running on an ISA 2.05 or later processor. Add
19062 special case to return offset for full 64-bit slot of FPSCR when
19065 2008-11-14 Daniel Gutson <dgutson@codesourcery.com>
19067 * Makefile.in (SFILES, clean): Added sparc64 files.
19068 (reg-sparc64.o, reg-sparc64.c): New.
19069 * configure.srv (sparc*-*-linux*): New configuration.
19070 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
19071 syscall arguments for SPARC.
19072 (regsets_store_inferior_registers): Likewise.
19073 * linux-sparc-low.c: New file.
19075 2008-10-21 Doug Evans <dje@google.com>
19077 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
19078 (READLINE_DIR,READLINE_DEP): Delete.
19079 (INTERNAL_CFLAGS): Update.
19080 (LINTFLAGS): Update.
19082 2008-10-10 Pedro Alves <pedro@codesourcery.com>
19084 * server.c (handle_v_run): If GDB didn't specify an argv, use the
19085 whole argv from the last run, not just argv[0].
19087 2008-09-08 Pedro Alves <pedro@codesourcery.com>
19089 * regcache.c (new_register_cache): Return NULL if the register
19090 cache size isn't known yet.
19091 (free_register_cache): Avoid dereferencing a NULL regcache.
19093 2008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
19095 * configure.srv: Merge MIPS and MIPS64.
19097 2008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
19099 * Makefile.in (uninstall): Apply $(EXEEXT) too.
19101 2008-08-18 Luis Machado <luisgpm@br.ibm.com>
19103 * Makefile.in: Add required vsx dependencies.
19105 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
19106 Declare init_registers_powerpc_vsx32l.
19107 Declare init_registers_powerpc_vsx64l.
19108 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
19109 (ppc_arch_setup): Check for VSX in hwcap.
19110 (ppc_fill_vsxregset): New function.
19111 (ppc_store_vsxregset): New function.
19112 Add new VSX entry in regset_info target_regsets.
19114 * configure.srv: Add new VSX dependencies.
19116 2008-08-12 Pedro Alves <pedro@codesourcery.com>
19118 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
19119 (remote_open): Set or clear transport_is_reliable.
19120 (putpkt_binary): Don't expect acks in noack mode.
19121 (getpkt): Don't send ack/nac in noack mode.
19122 * server.c (handle_general_set): Handle QStartNoAckMode.
19123 (handle_query): If connected by tcp pass QStartNoAckMode+ in
19125 (main): Reset noack_mode on every connection.
19126 * server.h (noack_mode): Declare.
19128 2008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19130 * Makefile.in (GDBREPLAY_OBS): New variable.
19131 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
19133 2008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
19134 Daniel Jacobowitz <dan@codesourcery.com>
19136 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
19137 (usr_store_inferior_registers): Likewise.
19138 (regsets_store_inferior_registers): Likewise.
19140 2008-07-31 Rolf Jansen <rj@surtec.com>
19141 Pedro Alves <pedro@codesourcery.com>
19143 * configure.ac: Check for memmem declaration.
19144 * server.c [HAVE_MALLOC_H]: Include malloc.h.
19145 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
19146 (disable_packet_qfThreadInfo): Unconditionally compile.
19147 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
19148 * configure, config.in: Regenerate.
19150 2008-07-28 Doug Kwan <dougkwan@google.com>
19152 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
19153 (linux_write_memory): Remove declaration of errno.
19155 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
19157 * linux-low.c (handle_extended_wait): Do not use "status"
19158 variable uninitialized.
19160 2008-07-07 Pedro Alves <pedro@codesourcery.com>
19162 * server.c (handle_v_attach): Inhibit reporting dll changes.
19164 2008-06-27 Pedro Alves <pedro@codesourcery.com>
19166 * remote-utils.c (prepare_resume_reply): If requested, don't
19167 output "thread:TID" in the T stop reply.
19169 * server.c (disable_packet_vCont, disable_packet_Tthread)
19170 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
19171 (handle_query): If requested, disable support for qC, qfThreadInfo
19173 (handle_v_requests): If requested, disable support for vCont.
19174 (gdbserver_show_disableable): New.
19175 (main): Handle --disable-packet and --disable-packet=LIST.
19177 * server.h (disable_packet_vCont, disable_packet_Tthread)
19178 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
19180 2008-06-20 Carlos O'Donell <carlos@codesourcery.com>
19182 * server.c (gdbserver_usage): Mention --version.
19184 2008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
19186 * Makefile.in (gdbreplay.o): New rule.
19188 2008-06-06 Joseph Myers <joseph@codesourcery.com>
19190 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
19191 message, not gdbserver.
19193 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
19194 Nathan Sidwell <nathan@codesourcery.com>
19195 Joseph Myers <joseph@codesourcery.com>
19197 * acinclude.m4: Include ../../config/acx.m4.
19198 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
19199 * configure, config.in: Regenerate.
19200 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
19201 * server.c (gdbserver_version): Print PKGVERSION.
19202 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
19203 (main): Adjust gdbserver_usage calls.
19204 * gdbreplay.c (version, host_name): Add declarations.
19205 (gdbreplay_version, gdbreplay_usage): New.
19206 (main): Accept --version and --help options.
19208 2008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
19210 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
19211 (arm_breakpoint_at): Handle Thumb.
19212 (the_low_target): Add comment.
19214 2008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
19216 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
19218 2008-05-09 Doug Evans <dje@google.com>
19220 * server.h (decode_search_memory_packet): Declare.
19221 * remote-utils.c (decode_search_memory_packet): New fn.
19222 * server.c (handle_search_memory_1): New fn.
19223 (handle_search_memory): New fn.
19224 (handle_query): Process qSearch:memory packets.
19226 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
19228 * regcache.c (registers_length): Remove.
19229 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
19230 full register packet.
19231 * regcache.h (registers_length): Remove prototype.
19232 * server.h (PBUFSIZ): Define to 16384.
19234 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
19236 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
19237 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
19238 powerpc-64l.o, and powerpc-altivec64l.o.
19239 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
19240 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
19241 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
19242 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
19243 rs6000/power-linux.xml, and rs6000/power64-linux.xml
19246 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
19247 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
19248 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
19249 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
19250 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
19251 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
19252 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
19253 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
19254 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
19255 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
19258 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
19259 (init_registers_powerpc_32l): ... this new prototype.
19260 (init_registers_powerpc_32): Remove, replace by ...
19261 (init_registers_powerpc_altivec32l): ... this new prototype.
19262 (init_registers_powerpc_e500): Remove, replace by ...
19263 (init_registers_powerpc_e500l): ... this new prototype.
19264 (init_registers_ppc64): Remove, replace by ...
19265 (init_registers_powerpc_64l): ... this new prototype.
19266 (init_registers_powerpc_64): Remove, replace by ...
19267 (init_registers_powerpc_altivec64l): ... this new prototype.
19268 (ppc_num_regs): Set to 73.
19269 (PT_ORIG_R3, PT_TRAP): Define if necessary.
19270 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
19271 (ppc_cannot_store_register): Handle orig_r3 and trap.
19272 (ppc_arch_setup): Update init_registers_... calls.
19273 (ppc_fill_gregset): Handle orig_r3 and trap.
19275 * inferiors.c (clear_inferiors): Reset current_inferior.
19277 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
19279 * acinclude.m4: Add override.m4.
19280 * configure: Regenerate.
19282 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19284 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
19285 initial call to init_register_ppc64.
19287 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19289 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
19290 single powerpc*-*-linux* case.
19291 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
19293 2008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
19295 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
19296 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
19298 * linux-ppc-low.c: Include <elf.h>.
19299 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
19300 (ppc_hwcap): New global variable.
19301 (ppc_regmap): Remove __SPE__ #ifdef sections.
19302 (ppc_regmap_e500): New global variable.
19303 (ppc_cannot_store_register): Update __SPE__ special case.
19304 (ppc_get_hwcap): New function.
19305 (ppc_arch_setup): Use it to determine whether inferior supports
19306 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
19307 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
19308 Do not access registers if target does not support AltiVec.
19309 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
19310 Do not access registers if target does not support SPE.
19311 (target_regsets): Unconditionally include AltiVec and SPE regsets.
19313 2008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
19315 * linux-low.c (disabled_regsets, num_regsets): New.
19316 (use_regsets_p): Delete.
19317 (linux_wait_for_process): Clear disabled_regsets.
19318 (regsets_fetch_inferior_registers): Check and set it.
19319 (regsets_store_inferior_registers): Likewise.
19320 (linux_fetch_registers, linux_store_registers): Do not use
19322 (initialize_low): Allocate disabled_regsets.
19324 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
19326 * Makefile.in (LIBOBJS): New.
19327 (OBS): Use LIBOBJS.
19328 (memmem.o): New rule.
19329 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
19330 * configure: Regenerated.
19332 2008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
19334 * server.c (handle_query): Never return "unsupported" for
19335 qXfer:features:read queries.
19337 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
19339 * server.c (get_features_xml): Fix inverted condition.
19340 (handle_query): Always support qXfer:feature:read.
19342 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
19344 * server.c (wrapper_argv): New.
19345 (start_inferior): Handle wrapper_argv. If set, expect an extra
19347 (gdbserver_usage): Document --wrapper.
19348 (main): Parse --wrapper.
19350 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19352 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
19353 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
19354 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
19355 (ppc_set_pc): Likewise.
19356 (ppc_arch_setup): New function.
19357 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
19358 of collect_register.
19359 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
19361 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19363 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
19364 instead of linux-ppc64-low.o.
19365 * linux-ppc64-low.c: Remove file.
19366 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
19367 (linux-ppc64-low.o): Remove rule.
19369 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
19370 (init_registers_powerpc_64): Likewise.
19371 (ppc_regmap): Conditionally define depending on __powerpc64__.
19372 (ppc_cannot_store_register): Do not special-case "fpscr" when
19373 compiled on __powerpc64__.
19374 (ppc_collect_ptrace_register): New function.
19375 (ppc_supply_ptrace_register): New function.
19376 (ppc_breakpoint): Change type to "unsigned int".
19377 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
19378 (the_low_target): Conditionally provide initializers for the
19379 arch_setup member depending on __powerpc64__. Install
19380 collect_ptrace_register and supply_ptrace_register members.
19382 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19384 * regcache.h (gdbserver_xmltarget): Add extern declaration.
19385 * server.c (gdbserver_xmltarget): Define.
19386 (get_features_xml): Use it to replace "target.xml" and arch_string.
19388 * configure.srv: Remove srv_xmltarget. Add XML files that were
19389 mentioned there to srv_xmlfiles instead. Remove conditional tests
19390 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
19391 srv_xmlfiles and srv_regobj to include all possible choices.
19392 * configure.ac (srv_xmltarget): Remove.
19393 (srv_xmlfiles): Do not add "target.xml".
19394 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
19395 checks for supplementary target information.
19396 * configure: Regenerate.
19397 * Makefile.in (XML_TARGET): Remove.
19398 (target.xml): Remove rule.
19399 (clean): Do not clean up target.xml.
19400 (.PRECIOUS): Do not mention target.xml.
19402 * target.h (struct target_ops): Remove arch_string member.
19403 * linux-low.c (linux_arch_string): Remove.
19404 (linux_target_ops): Remove arch_string initializer.
19405 * linux-low.h (struct linux_target_ops): Remove arch_string member.
19406 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
19407 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
19408 * spu-low.c (spu_arch_string): Remove.
19409 (spu_target_ops): Remove arch_string initializer.
19410 * win32-low.c (win32_arch_string): Remove.
19411 (win32_target_ops): Remove arch_string initializer.
19412 * win32-low.h (struct win32_target_ops): Remove arch_string member.
19413 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
19414 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
19416 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19418 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
19419 by collect_ptrace_register and supply_ptrace_register hooks.
19420 * linux-low.c (fetch_register): Use supply_ptrace_register callback
19421 instead of checking for the_low_target.left_pad_xfer.
19422 (usr_store_inferior_registers): Use collect_ptrace_register callback
19423 instead of checking for the_low_target.left_pad_xfer.
19425 * linux-s390-low.c (s390_collect_ptrace_register): New function.
19426 (s390_supply_ptrace_register): Likewise.
19427 (s390_fill_gregset): Call s390_collect_ptrace_register.
19428 (the_low_target): Update.
19430 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
19431 (ppc_supply_ptrace_register): Likewise.
19432 (the_low_target): Update.
19434 * linux-i386-low.c (the_low_target): Update.
19435 * linux-x86-64-low.c (the_low_target): Update.
19437 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19439 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
19440 reg-s390.o and reg-s390x.o.
19442 * linux-low.c (new_inferior): New global variable.
19443 (linux_create_inferior, linux_attach): Set it.
19444 (linux_wait_for_process): Call the_low_target.arch_setup after the
19445 target has stopped for the first time.
19446 (initialize_low): Do not call the_low_target.arch_setup.
19448 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
19449 (s390_set_pc): Likewise.
19450 (s390_arch_setup): New function.
19451 (the_low_target): Use s390_arch_setup as arch_setup routine.
19453 * regcache.c (realloc_register_cache): New function.
19454 (set_register_cache): Call it for each existing regcache.
19456 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19458 * server.h (init_registers): Remove prototype.
19460 * linux-low.h (struct linux_target_ops): Add arch_setup field.
19461 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
19462 instead of init_registers ().
19463 * linux-arm-low.c (init_registers_arm): Add prototype.
19464 (init_registers_arm_with_iwmmxt): Likewise.
19465 (the_low_target): Add initializer for arch_setup field.
19466 * linux-cris-low.c (init_registers_cris): Add prototype.
19467 (the_low_target): Add initializer for arch_setup field.
19468 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
19469 (the_low_target): Add initializer for arch_setup field.
19470 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
19471 (the_low_target): Add initializer for arch_setup field.
19472 * linux-ia64-low.c (init_registers_ia64): Add prototype.
19473 (the_low_target): Add initializer for arch_setup field.
19474 * linux-m32r-low.c (init_registers_m32r): Add prototype.
19475 (the_low_target): Add initializer for arch_setup field.
19476 * linux-m68k-low.c (init_registers_m68k): Add prototype.
19477 (the_low_target): Add initializer for arch_setup field.
19478 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
19479 (init_registers_mips64_linux): Likewise.
19480 (the_low_target): Add initializer for arch_setup field.
19481 * linux-ppc-low.c (init_registers_ppc): Add prototype.
19482 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
19483 (the_low_target): Add initializer for arch_setup field.
19484 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
19485 (init_registers_powerpc_64): Likewise.
19486 (the_low_target): Add initializer for arch_setup field.
19487 * linux-s390-low.c (init_registers_s390): Add prototype.
19488 (init_registers_s390x): Likewise.
19489 (the_low_target): Add initializer for arch_setup field.
19490 * linux-sh-low.c (init_registers_sh): Add prototype.
19491 (the_low_target): Add initializer for arch_setup field.
19492 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
19493 (the_low_target): Add initializer for arch_setup field.
19494 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
19495 (the_low_target): Add initializer for arch_setup field.
19497 * win32-low.h (struct win32_target_ops): Add arch_setup field.
19498 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
19499 instead of init_registers ().
19500 * win32-arm-low.c (init_registers_arm): Add prototype.
19501 (the_low_target): Add initializer for arch_setup field.
19502 * win32-i386-low.c (init_registers_i386): Add prototype.
19503 (the_low_target): Add initializer for arch_setup field.
19505 * spu-low.c (init_registers_spu): Add prototype.
19506 (initialize_low): Call initialie_registers_spu () instead of
19507 initialize_registers ().
19509 2008-02-19 Pedro Alves <pedro@codesourcery.com>
19511 * server.c (handle_v_requests): When handling the vRun and vAttach
19512 packets, if already debugging a process, don't kill it. Return an
19515 2008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
19517 * server.c (handle_query): Correct length check.
19519 2008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
19521 * win32-low.c (do_initial_child_stuff): Add process handle
19522 parameter. Set current_process_handle and current_process_id from the
19523 parameters. Clear globals.
19524 (win32_create_inferior): Don't set current_process_handle and
19525 current_process_id here. Instead pass them on the call to
19526 do_initial_child_stuff.
19527 (win32_attach): Likewise.
19528 (win32_clear_inferiors): New.
19529 (win32_kill): Don't close the current process handle or the
19530 current thread handle here. Instead call win32_clear_inferiors.
19531 (win32_detach): Don't open a new handle to the process. Call
19532 win32_clear_inferiors.
19533 (win32_join): Don't rely on current_process_handle; open a new
19534 handle using the process id.
19535 (win32_wait): Call win32_clear_inferiors when the inferior process
19538 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
19540 * server.c (monitor_show_help): Add "exit".
19542 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
19544 * Makefile.in (SFILES): Add linux-xtensa-low.c.
19545 (clean): Add reg-xtensa.c.
19546 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
19547 * configure.srv (xtensa*-*-linux*) New target.
19548 * linux-xtensa-low.c: New.
19549 * xtensa-xtregs.c: New.
19551 2008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
19553 * hostio.c: Don't include errno.h.
19554 (errno_to_fileio_errno): Move to hostio-errno.
19555 * hostio.c: (hostio_error): Remove the error parameter. Defer the
19556 error number outputting to the target->hostio_last_error callback.
19557 (hostio_packet_error): Use FILEIO_EINVAL directly.
19558 (handle_open, handle_pread, hostio_error, handle_unlink): Update
19559 calls to hostio_error.
19560 * hostio-errno.c: New.
19561 * server.h (hostio_last_error_from_errno): Declare.
19562 * target.h (target_ops): Add hostio_last_error member.
19563 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
19564 as hostio_last_error handler.
19565 * spu-low.c (spu_target_ops): Likewise.
19566 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
19567 (wince_hostio_last_error): New functions.
19568 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
19569 as hostio_last_error handler.
19570 (win32_target_ops) [!_WIN32_WCE]: Register
19571 hostio_last_error_from_errno as hostio_last_error handler.
19572 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
19573 (hostio-errno.o): New rule.
19574 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
19575 * configure.srv (srv_hostio_err_objs): New variable. Default to
19577 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
19578 * configure: Regenerate.
19580 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
19582 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
19583 (linux_kill, linux_detach): Clean up the process list.
19584 * remote-utils.c (remote_open): Improve port number parsing.
19585 (putpkt_binary, input_interrupt): Only send interrupts if the target
19587 * server.c (extended_protocol): Make static.
19588 (attached): Define earlier.
19589 (exit_requested, response_needed, program_argv): New variables.
19590 (target_running): New.
19591 (start_inferior): Clear attached here.
19592 (attach_inferior): Set attached here.
19593 (require_running): Define.
19594 (handle_query): Use require_running and target_running. Implement
19596 (handle_v_attach, handle_v_run): New.
19597 (handle_v_requests): Use require_running. Handle vAttach and vRun.
19598 (gdbserver_usage): Update.
19599 (main): Redo argument parsing. Handle --debug and --multi. Handle
19600 --attach along with other options or after the port. Save
19601 program_argv. Support no initial program. Resynchronize
19602 communication with GDB after an error. Handle "monitor exit".
19603 Use require_running and target_running. Always allow the extended
19604 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
19605 restart in extended mode.
19606 * README: Refer to the GDB manual. Update --attach usage.
19608 2007-12-20 Andreas Schwab <schwab@suse.de>
19610 * linux-low.c (STACK_SIZE): Define.
19611 (linux_tracefork_child): Use it. Use __clone2 on ia64.
19612 (linux_test_for_tracefork): Likewise.
19614 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
19616 * linux-low.c (linux_wait_for_event): Update messages. Do not
19617 reinsert auto-delete breakpoints.
19618 * mem-break.c (struct breakpoint): Change return type of handler to
19620 (set_breakpoint_at): Update handler type.
19621 (reinsert_breakpoint_handler): Return 1 instead of calling
19623 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
19625 (check_breakpoints): Delete auto-delete breakpoints and return 2.
19626 * mem-break.h (set_breakpoint_at): Update handler type.
19627 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
19628 * win32-low.c (auto_delete_breakpoint): New.
19629 (get_child_debug_event): Use it.
19631 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
19633 * configure.ac: Check for pread and pwrite.
19634 * hostio.c (handle_pread): Fall back to lseek and read.
19635 (handle_pwrite): Fall back to lseek and write.
19636 * config.in, configure: Regenerated.
19638 2007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
19640 * server.c (myresume): Add own_buf argument.
19641 (main): Update calls.
19643 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
19645 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
19646 * remote-utils.c (remote_open): Do not call disable_async_io.
19647 (block_async_io): Delete.
19648 (unblock_async_io): Make static.
19649 (initialize_async_io): New.
19650 * server.c (handle_v_cont): Handle async I/O here.
19651 (myresume): Likewise. Move other common resume tasks here...
19652 (main): ... from here. Call initialize_async_io. Disable async
19653 I/O before the main loop.
19654 * server.h (initialize_async_io): Declare.
19655 (block_async_io, unblock_async_io): Delete prototypes.
19656 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
19658 2007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
19660 * remote-utils.c (readchar): Allow binary data in received messages.
19662 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
19664 * win32-low.c (attaching): New global.
19665 (win32_create_inferior): Clear the `attaching' global.
19666 (win32_attach): Set the `attaching' global.
19667 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
19668 attaching. Only set a breakpoint at the entry point if not
19671 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
19673 * server.c (main): Don't report dll events on the initial
19674 connection on attaches.
19676 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
19678 * server.c (main): Relax numerical bases supported for the pid of
19679 the --attach command line argument.
19681 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
19683 * win32-low.c (win32_attach): Call OpenProcess before
19684 DebugActiveProcess, not after. Add last error output to error
19687 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
19689 * win32-low.c (win32_get_thread_context)
19690 (win32_set_thread_context): New functions.
19691 (thread_rec): Use win32_get_thread_context.
19692 (continue_one_thread, win32_resume): Use win32_set_thread_context.
19693 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
19696 2007-12-03 Leo Zayas
19697 Pedro Alves <pedro_alves@portugalmail.pt>
19699 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
19701 (child_add_thread): Minor cleanup.
19702 (child_continue): Resume artificially suspended threads before
19703 calling ContinueDebugEvent.
19704 (suspend_one_thread): New.
19705 (fake_breakpoint_event): New.
19706 (get_child_debug_event): Change return type to int. Check here if
19707 gdb sent an interrupt request. If a soft interrupt was requested,
19708 fake a breakpoint event. Return 0 if there is no event to handle,
19710 (win32_wait): Don't check here if gdb sent an interrupt request.
19711 Ensure there is a valid event to handle.
19712 (win32_request_interrupt): Add soft interruption method as last
19715 2007-12-03 Leo Zayas
19716 Pedro Alves <pedro_alves@portugalmail.pt>
19718 * win32-low.h (win32_thread_info): Add descriptions to the
19719 structure members. Replace `suspend_count' counter by a
19721 * win32-low.c (thread_rec): Update condition of when to get the
19722 context from the inferior. Rely on ContextFlags being set if it
19723 has already been retrieved. Only suspend the inferior thread if
19724 we haven't already. Warn if that fails.
19725 (continue_one_thread): s/suspend_count/suspended/. Only call
19726 ResumeThread once. Warn if that fails.
19728 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
19730 * win32-low.c (win32_wait): Don't read from the inferior when it
19731 has already exited.
19733 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
19735 * Makefile.in (win32_low_h): New variable.
19736 (win32-low.o): Add dependency on $(win32_low_h).
19737 (win32-arm-low.o, win32-i386-low.o): New rules.
19739 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
19741 * hostio.c: Correct copyright year.
19743 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
19745 * Makefile.in (OBS): Add hostio.o.
19746 (hostio.o): New rule.
19747 * server.h (handle_vFile): Declare.
19748 * hostio.c: New file.
19749 * server.c (handle_v_requests): Take packet_len and new_packet_len
19750 for binary packets. Call handle_vFile.
19751 (main): Update call to handle_v_requests.
19753 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
19755 * linux-low.c: Include <sched.h>.
19757 2007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
19759 * linux-low.c (linux_tracefork_grandchild): New.
19760 (linux_tracefork_child): Use clone.
19761 (linux_test_for_tracefork): Use clone; allocate and free a stack.
19763 2007-10-31 Joel Brobecker <brobecker@adacore.com>
19765 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
19767 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
19769 * linux-low.c (handle_extended_wait): Handle unexpected signals.
19771 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
19773 * inferiors.c (change_inferior_id): Delete.
19774 (add_pid_to_list, pull_pid_from_list): New.
19775 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
19776 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
19777 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
19778 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
19779 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
19780 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
19781 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
19782 (using_threads): Always set to 1.
19783 (handle_extended_wait): New.
19784 (add_process): Do not set TID.
19785 (linux_create_inferior): Set must_set_ptrace_flags.
19786 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
19787 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
19788 (linux_thread_alive): Rename TID argument to LWPID.
19789 (linux_wait_for_process): Handle unknown processes. Do not use TID.
19790 (linux_wait_for_event): Do not use TID or check using_threads. Update
19791 call to dead_thread_notify. Call handle_extended_wait.
19792 (linux_create_inferior): Use PTRACE_SETOPTIONS.
19793 (send_sigstop): Delete sigstop_sent.
19794 (wait_for_sigstop): Avoid TID.
19795 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
19796 (linux_test_for_tracefork): New.
19797 (linux_lookup_signals): Use thread_db_active and
19798 linux_supports_tracefork_flag.
19799 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
19800 * linux-low.h (get_process_thread): Avoid TID.
19801 (struct process_ifo): Move thread_known and tid to the end. Remove
19803 (linux_attach_lwp, thread_db_init): Update prototypes.
19804 * server.h (change_inferior_id): Delete prototype.
19805 (add_pid_to_list, pull_pid_from_list): New prototypes.
19806 * thread-db.c (thread_db_use_events): New.
19807 (find_first_thread): Rename to...
19808 (find_one_thread): ...this. Update callers and messages. Do not
19809 call fatal. Check thread_db_use_events. Do not call
19810 change_inferior_id or new_thread_notify.
19811 (maybe_attach_thread): Update. Do not call new_thread_notify.
19812 (thread_db_init): Set thread_db_use_events. Check use_events.
19813 * utils.c (fatal, warning): Correct message prefix.
19815 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
19817 * Makefile.in (clean): Remove new files.
19818 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
19819 (powerpc-64.o, powerpc-64.c): New rules.
19820 * configure.srv: Use alternate register sets for powerpc64-*-linux*
19821 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
19823 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
19825 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
19826 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
19827 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
19828 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
19829 (target_regsets): Add AltiVec and SPE register sets.
19830 * configure.ac: Check for AltiVec and SPE.
19831 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
19832 (ppc_fill_vrregset, ppc_store_vrregset): New.
19833 (target_regsets): Add AltiVec register set.
19834 * configure: Regenerated.
19836 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
19838 * linux-low.c (O_LARGEFILE): Define.
19839 (linux_read_memory): Use /proc/PID/mem.
19840 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
19841 * configure, config.in: Regenerated.
19843 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
19845 * linux-low.c (linux_wait_for_event): Do not pass signals while
19848 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
19850 * win32-low.c (create_process): New.
19851 (win32_create_inferior): Use create_process instead of
19852 CreateProcess. If create_process failed retry appending an ".exe"
19853 suffix. Store the GetLastError result immediatelly after
19854 create_process calls and use it on the call to error.
19856 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
19858 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
19860 2007-08-23 Joel Brobecker <brobecker@adacore.com>
19862 * configure.ac: Switch license to GPLv3.
19864 2007-08-01 Michael Snyder <msnyder@access-company.com>
19866 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
19868 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
19870 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
19872 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
19873 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
19874 CloseToolhelp32Snapshot.
19875 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
19876 CloseToolhelp32Snapshot.
19878 2007-07-27 Michael Snyder <michael.snyder@access-company.com>
19880 * server.c (main): Check for inferior exit before main loop.
19882 2007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
19884 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
19885 instead of on tmp_desc.
19887 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
19888 Daniel Jacobowitz <dan@codesourcery.com>
19890 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
19891 (add_thread): Minor cleanups.
19892 (clear_inferiors): Move lower in the file. Clear the DLL
19894 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
19895 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
19896 (xml_escape_text): New.
19897 * server.c (handle_query): Handle qXfer:libraries:read. Report it
19899 (handle_v_cont): Report errors.
19900 (gdbserver_version): Update.
19901 (main): Correct size of own_buf. Do not report initial DLL events.
19902 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
19903 (unloaded_dll, xml_escape_text): New.
19904 * win32-low.c (enum target_waitkind): Update comments.
19905 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
19906 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
19907 (win32_EnumProcessModules, win32_GetModuleInformation)
19908 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
19909 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
19910 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
19911 (win32_Module32First, win32_Module32Next, load_toolhelp)
19912 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
19913 (get_child_debug_event): Handle DLL events.
19914 (win32_wait): Likewise.
19916 2007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
19918 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
19919 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
19921 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
19923 * win32-low.c (handle_output_debug_string): Ignore event if not
19926 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
19928 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
19930 2007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
19932 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
19934 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
19936 * inferiors.c (change_inferior_id): Add comment.
19937 * linux-low.c (check_removed_breakpoint): Add an early
19938 prototype. Improve debug output.
19939 (linux_attach): Doc update.
19940 (linux_detach_one_process, linux_detach): Clean up before releasing
19942 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
19943 * linux-low.h (struct process_info): Doc improvement.
19944 * mem-break.c (delete_all_breakpoints): New.
19945 * mem-break.h (delete_all_breakpoints): New prototype.
19946 * thread-db.c (find_first_thread): New.
19947 (thread_db_create_event): Call it instead of
19948 thread_db_find_new_threads. Clean up unused variables.
19949 (maybe_attach_thread): Remove first thread handling.
19950 (thread_db_find_new_threads): Use find_first_thread.
19951 (thread_db_get_tls_address): Likewise.
19953 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
19955 * thread-db.c (thread_db_find_new_threads): Add prototype.
19956 (thread_db_create_event): Check for the main thread before adding
19958 (maybe_attach_thread): Only enable event reporting if TID == 0.
19959 (thread_db_get_tls_address): Check for new threads.
19961 2007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
19963 * linux-low.c (linux_create_inferior): Try execv before execvp.
19964 * spu-low.c (spu_create_inferior): Likewise.
19966 2007-06-13 Mike Frysinger <vapier@gentoo.org>
19968 * linux-low.c (linux_create_inferior): Change execv to execvp.
19969 * spu-low.c (spu_create_inferior): Likewies.
19971 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
19973 * Makefile.in (clean): Clean new files instead of deleted ones.
19974 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
19975 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
19977 * configure.srv: Specify XML files and new regformats for MIPS and
19979 * linux-mips-low.c (mips_num_regs): Set to only used registers.
19980 (mips_regmap): Do not fetch $0. Remove unused registers. Add
19981 an entry for the restart register.
19982 (mips_cannot_fetch_register, mips_cannot_store_register)
19983 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
19984 register names to match the XML descriptions.
19985 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
19986 restart register instead of $0.
19988 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
19989 Markus Deuling <deuling@de.ibm.com>
19991 * remote-utils.c (decode_xfer_write): New function.
19992 * server.h (decode_xfer_write): Add prototype.
19993 * server.c (handle_query): Add PACKET_LEN argument. Support
19994 qXfer:spu:read and qXfer:spu:write packets.
19995 (main): Pass packet_len to handle_query.
19996 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
19997 * target.h (target_ops): Add qxfer_spu.
19999 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20001 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
20002 accessing non-seekable spufs files.
20004 2007-05-16 Markus Deuling <deuling@de.ibm.com>
20006 * server.c (handle_query): Add reply for qC packet.
20008 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20009 Leo Zayas <lerele@champenstudios@com>
20011 * server.h (check_remote_input_interrupt_request): New function.
20012 * remote_utils.c (INVALID_DESCRIPTOR): New define.
20013 (remote_desc): Initialize with INVALID_DESCRIPTOR.
20014 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
20015 (check_remote_input_interrupt_request): New function.
20016 * server.h (check_remote_input_interrupt_request): Declare.
20017 * win32-low.c (winapi_DebugBreakProcess,
20018 winapi_GenerateConsoleCtrlEvent): New typedefs.
20019 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
20021 (win32_wait): Check for remote interrupt request
20022 with check_remote_input_interrupt_request.
20023 (win32_request_interrupt): New function.
20024 (win32_target_op): Set request_interrupt to win32_request_interrupt.
20026 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20028 * win32-low.c (debug_registers_changed,
20029 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
20030 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
20031 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
20032 (thread_rec): Get context using the low target.
20033 (child_add_thread): Call thread_added on the low target,
20034 which does the same thing.
20036 (do_initial_child_stuff): Remove debug registers references.
20037 Set context using the low target. Resume threads after
20038 setting the contexts.
20039 (child_continue): Remove dead variable. Remove debug
20040 registers references.
20041 (child_fetch_inferior_registers): Go through the low target.
20042 (do_child_store_inferior_registers): Remove.
20043 (child_store_inferior_registers): Go through the low target.
20044 (win32_resume): Remove debug registers references.
20045 Set context using the low target.
20046 (handle_exception): Change return type to void. Don't record
20047 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
20048 first chance exception.
20049 (get_child_debug_event): Change return type to void. Remove
20050 goto loop. Always return after waiting for debug event.
20051 (win32_wait): Convert to switch statement. Handle spurious
20054 * win32-i386-low.c (debug_registers_changed,
20055 debug_registers_used): New.
20056 (initial_stuff): Rename to ...
20057 (i386_initial_stuff): ... this. Clear debug registers
20059 (store_debug_registers): Delete.
20060 (i386_get_thread_context): New.
20061 (load_debug_registers): Delete.
20062 (i386_set_thread_context): New.
20063 (i386_thread_added): New.
20064 (single_step): Rename to ...
20065 (i386_single_step): ... this.
20066 (do_fetch_inferior_registers): Rename to ...
20067 (i386_fetch_inferior_register): ... this.
20068 (i386_store_inferior_register): New.
20069 (the_low_target): Adapt to new interface.
20071 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
20072 (arm_get_thread_context): New.
20073 (arm_set_thread_context): New.
20075 (do_fetch_inferior_registers): Rename to ...
20076 (arm_fetch_inferior_register): ... this.
20077 (arm_store_inferior_register): New.
20078 (arm_wince_breakpoint): Reimplement as unsigned long.
20079 (arm_wince_breakpoint_len): Define.
20080 (the_low_target): Adapt to new interface.
20082 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
20083 load_debug_registers. Add get_thread_context, set_thread_context,
20084 thread_added and store_inferior_register. Rename
20085 fetch_inferior_registers to fetch_inferior_register.
20086 (regptr): Remove declaration.
20088 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20090 * linux-low.c (linux_detach): Change return type to int. Return 0.
20091 * spu-low.c (spu_detach): Likewise.
20093 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20095 * target.h (target_ops): Change return type of detach to int.
20097 (join_inferior): New.
20098 * server.c (main): Don't skip detach support on mingw32.
20099 If the inferior doesn't support detaching return error.
20100 Call join_inferior instead of using waitpid.
20101 * linux-low.c (linux_join): New.
20102 (linux_target_op): Add linux_join.
20103 * spu-low.c (spu_join): New.
20104 (spu_target_ops): Add spu_join.
20105 * win32-low.c (win32_detach): Adapt to new interface.
20106 Reopen current_process_handle before detaching. Issue a child
20107 resume before detaching.
20109 (win32_target_op): Add win32_join.
20111 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20113 * win32-low.c (win32-attach): Fix return value.
20114 * target.h (target_ops): Describe ATTACH return values.
20116 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20118 * win32-low.c (GETPROCADDRESS): Define.
20119 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
20120 (winapi_DebugSetProcessKillOnExit): Likewise.
20121 (win32_create_inferior): Force usage of ansi CreateProcessA.
20122 (win32_attach): Use GETPROCADDRESS.
20123 (win32_detach): Likewise.
20125 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20127 * win32-low.c (win32_wait): Don't use WSTOPSIG.
20129 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
20131 * win32-low.c: Commit leftover changes from 2007-03-29.
20133 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20135 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
20136 fields short instead of int. Add explicit padding.
20137 (i387_cache_to_fsave): Remove unnecessary casts.
20138 (i387_fsave_to_cache): Doc fix.
20139 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
20141 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20143 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
20144 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
20146 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20148 * configure.srv (arm*-*-mingw32ce*): Move near the other
20151 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20153 * configure.ac: Add errno checking.
20154 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
20155 sys/file.h and malloc.h.
20156 (AC_CHECK_DECLS): Add perror.
20157 (srv_mingwce): Handle.
20158 * configure.srv (i[34567]86-*-cygwin*): Add
20159 win32-i386-low.o to srv_tgtobj.
20160 (i[34567]86-*-mingw*): Likewise.
20161 (arm*-*-mingw32ce*): Add case.
20162 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20163 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
20164 [__MINGW32CE__] (strerror): New function.
20165 [__MINGW32CE__] (errno): Define to GetLastError.
20166 [__MINGW32CE__] (COUNTOF): New macro.
20167 (remote_open): Remove extra close call.
20168 * mem-break.c (delete_breakpoint_at): New function.
20169 * mem-break.h (delete_breakpoint_at): Declare.
20170 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20171 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
20172 [USE_WIN32API] (read, write): Add char* casts.
20173 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
20174 * server.h: Include wincecompat.h on Windows CE.
20175 [HAVE_ERRNO_H]: Check.
20176 (perror): Declare if not declared.
20177 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
20178 (perror_with_name): Remove errno declaration.
20179 * wincecompat.h: New.
20180 * wincecompat.c: New.
20181 * win32-low.h: New.
20182 * win32-arm-low.c: New.
20183 * win32-i386-low.c: New.
20184 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
20185 (OUTMSG2): Make it safe.
20187 (COUNTOF): New macro.
20188 (NUM_REGS): Get it from the low target.
20189 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
20190 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
20191 (thread_rec): Let low target handle debug registers.
20192 (child_add_thread): Likewise.
20193 (child_init_thread_list): Likewise.
20194 (continue_one_thread): Likewise.
20196 (do_child_fetch_inferior_registers): Move to ...
20197 * win32-i386-low.c: ... here, and rename to ...
20198 (do_fetch_inferior_registers): ... this.
20199 * win32-low.c (child_fetch_inferior_registers):
20200 Go through the low target.
20201 (do_child_store_inferior_registers): Use regptr.
20202 (strwinerror): New function.
20203 (win32_create_inferior): Handle Windows CE.
20204 Use strwinerror instead of strerror on Windows error
20205 codes. Add program to the error output.
20206 Don't close the main thread handle on Windows CE.
20207 (win32_attach): Use coredll.dll on Windows CE.
20208 (win32_kill): Close current process and current
20210 (win32_detach): Use coredll.dll on Windows CE.
20211 (win32_resume): Let low target handle debug registers, and
20213 (handle_exception): Add/Remove initial breakpoint. Avoid
20214 non-existant WSTOPSIG on Windows CE.
20215 (win32_read_inferior_memory): Cast to remove warning.
20216 (win32_arch_string): Go through the low target.
20217 (initialize_low): Call set_breakpoint_data with the low
20218 target's breakpoint.
20219 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
20220 FOP_REGNUM, mappings): Move to ...
20221 * win32-i386-low.c: ... here.
20222 * win32-low.c (win32_thread_info): Move to ...
20223 * win32-low.h: ... here.
20224 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
20225 win32-arm-low.c and wincecompat.c.
20226 (all:): Add $EXEEXT.
20227 (install-only:): Likewise.
20228 (gdbserver:): Likewise.
20229 (gdbreplay:): Likewise.
20230 * config.in: Regenerate.
20231 * configure: Regenerate.
20233 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20235 * win32-low.c: Rename typedef thread_info to
20236 win32_thread_info throughout.
20238 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20240 * win32-i386-low.c: Rename to ...
20241 * win32-low.c: ... this.
20242 * configure.srv: Replace win32-i386-low.o with win32-low.o.
20243 * Makefile.in: Likewise.
20245 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
20247 * remote-utils.c (monitor_output): Constify msg parameter.
20248 * server.h (monitor_output): Likewise.
20249 * win32-i386-low.c (handle_output_debug_string): New.
20250 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
20251 handle_output_debug_string.
20252 (get_child_debug_event): Likewise.
20254 2007-03-27 Mat Hostetter <mat@lcs.mit.edu>
20256 * server.c (main): Correct strtoul check.
20258 2007-03-27 Jon Ringle <jon@ringle.org>
20260 * linux-low.c: Check __ARCH_HAS_MMU__ also.
20262 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
20264 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
20266 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
20268 * terminal.h: Check HAVE_SGTTY_H.
20270 2007-02-27 Mat Hostetter <mat@lcs.mit.edu>
20272 * remote-utils.c (remote_open): Print out the assigned port number.
20274 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
20276 * remote-utils.c (monitor_output): New function.
20277 * server.c (debug_threads): Define here.
20278 (monitor_show_help): New function.
20279 (handle_query): Handle qRcmd.
20280 (main): Do not handle 'd' packet.
20281 * server.h (debug_threads, remote_debug, monitor_output): Declare.
20282 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
20285 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20287 * Makefile.in (EXEEXT): New.
20288 (clean): Use $(EXEEXT).
20290 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20292 * target.h (target_ops): Rename send_signal to request_interrupt,
20293 and remove enum target_signal parameter.
20294 * linux-low.c (linux_request_interrupt): Rename from
20295 linux_send_signal, and always send SIGINT.
20296 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
20297 and always send SIGINT.
20298 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
20300 (input_interrupt): Likewise.
20302 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20304 * server.c (get_features_xml): Check if target implemented
20306 * win32-i386-low.c (win32_arch_string): New.
20307 (win32_target_ops): Add win32_arch_string as arch_string member.
20309 2007-02-22 Markus Deuling <deuling@de.ibm.com>
20311 * spu-low.c (spu_arch_string): New.
20312 (spu_target_ops): Add spu_arch_string.
20314 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
20316 * remote-utils.c: Remove HAVE_TERMINAL_H check.
20317 * configure.ac: Do not check for terminal.h.
20318 * configure, config.in: Regenerated.
20320 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
20322 * Makefile.in (OBS): Add $(XML_BUILTIN).
20323 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
20325 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
20326 (arm-with-iwmmxt.c): New.
20327 * config.in, configure: Regenerate.
20328 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
20329 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
20330 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
20331 (arm*-*-linux*): Add iWMMXt and regset support.
20332 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
20333 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
20334 (arm_store_wmmxregset, target_regsets): New.
20335 * server.c (get_features_xml): Take annex argument. Check builtin
20337 (handle_query): Handle multiple annexes.
20339 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20341 * remote-utils.c [USE_WIN32API] (read, write): Define.
20342 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
20345 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
20347 * linux-i386-low.c (the_low_target): Set arch_string.
20348 * linux-x86-64-low.c (the_low_target): Likewise.
20349 * linux-low.c (linux_arch_string): New.
20350 (linux_target_ops): Add it.
20351 * linux-low.h (struct linux_target_ops): Add arch_string.
20352 * server.c (write_qxfer_response): Use const void * for DATA.
20353 (get_features_xml): New.
20354 (handle_query): Handle qXfer:features:read. Report it for qSupported.
20355 * target.h (struct target_ops): Add arch_string method.
20357 2007-01-03 Denis Pilat <denis.pilat@st.com>
20358 Daniel Jacobowitz <dan@codesourcery.com>
20360 * linux-low.c (linux_kill): Handle being called with no threads.
20361 * win32-i386-low.c (win32_kill): Likewise.
20362 (get_child_debug_event): Clear current_process_handle.
20364 2006-12-30 Denis PILAT <denis.pilat@st.com>
20365 Daniel Jacobowitz <dan@codesourcery.com>
20367 * remote-utils.c (remote_open): Check the type of specified
20368 serial port devices before opening them.
20369 * server.c (main): Kill the inferior if an error occurs during
20370 the first remote_open.
20372 2006-12-05 Markus Deuling <deuling@de.ibm.com>
20374 * README: Update supported targets.
20376 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
20378 * Makefile.in (clean): Remove reg-mips64.c.
20379 (reg-mips64.c, reg-mips64.o): New rules.
20380 * configure.srv: Handle mips64. Include regset support for mips.
20381 * linux-mips-low.c (union mips_register): New.
20382 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
20383 (mips_breakpoint, mips_breakpoint_at): Use int.
20384 (mips_collect_register, mips_supply_register)
20385 (mips_collect_register_32bit, mips_supply_register_32bit)
20386 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
20387 (mips_store_fpregset, target_regsets): New.
20388 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
20390 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
20392 * configure.srv: Add target "spu*-*-*".
20393 * Makefile.in (clean): Remove reg-spu.c.
20394 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
20395 * spu-low.c: New file.
20397 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
20399 * configure.ac: Correct td_thr_tls_get_addr test.
20400 * configure: Regenerated.
20402 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
20404 * linux-low.c (linux_wait_for_event): Reformat. Use the
20405 pass_signals array.
20406 * remote-utils.c (decode_address_to_semicolon): New.
20407 * server.c (pass_signals, handle_general_set): New.
20408 (handle_query): Mention QPassSignals for qSupported.
20409 (main): Call handle_general_set.
20410 * server.h (pass_signals, decode_address_to_semicolon): New.
20412 2006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
20414 * server.c (handle_query): Correct error handling for read_auxv.
20416 2005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
20418 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
20419 and srv_linux_thread_db to yes.
20420 * linux-s390-low.c (s390_fill_gregset): New function.
20421 (target_regsets): Define data structure.
20423 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
20425 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
20426 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
20427 * config.in, configure: Regenerated.
20428 * inferiors.c (gdb_id_to_thread): New function.
20429 (gdb_id_to_thread_id): Use it.
20430 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
20431 * linux-low.h (struct process_info): Add th member.
20432 (thread_db_get_tls_address): New prototype.
20433 * remote-utils.c (decode_address): Make non-static.
20434 * server.c (handle_query): Handle qGetTLSAddr.
20435 * server.h (gdb_id_to_thread, decode_address): New prototypes.
20436 * target.h (struct target_ops): Add get_tls_address.
20437 * thread-db.c (maybe_attach_thread): Save the thread handle.
20438 (thread_db_get_tls_address): New.
20440 2006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
20442 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
20443 (linux_resume_one_process): Take a siginfo_t *. Update all
20444 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
20445 (struct pending_signals): Add a siginfo_t.
20446 (linux_wait_for_process): Always set last_status.
20447 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
20448 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
20449 * linux-low.h (struct process_info): Add last_status.
20451 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
20453 * remote-utils.c (try_rle): New function.
20454 (putpkt_binary): Use it.
20456 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
20458 * Makefile.in (clean): Clean reg-x86-64-linux.c.
20459 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
20460 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
20461 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
20462 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
20465 2006-08-08 Richard Sandiford <richard@codesourcery.com>
20467 * server.c (terminal_fd): New variable.
20468 (old_foreground_pgrp): Likewise.
20469 (restore_old_foreground_pgrp): New function.
20470 (start_inferior): Record the terminal file descriptor in terminal_fd
20471 and its original foreground group in old_foreground_pgrp. Register
20472 restore_old_foreground_pgrp with atexit().
20474 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
20476 * server.c (handle_query): Correct qPart to qXfer.
20478 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
20480 * configure.ac: Check for more headers which are missing on
20481 Windows. Automatically supply -lwsock32 and USE_WIN32API.
20482 * configure.srv: Add Cygwin and mingw32.
20483 * remote-utils.c: Don't include headers unconditionally which
20484 are missing on mingw32. Include <winsock.h> for mingw32.
20485 (remote_open): Adjust for mingw32 support. Flush
20486 standard error after writing to it.
20487 (remote_close, putpkt_binary, input_interrupt, block_async_io)
20488 (unblock_async_io, enable_async_io, disable_async_io)
20489 (readchar, getpkt): Update for Winsock support.
20490 (prepare_resume_reply): Expect a protocol signal number.
20491 * server.c: Disable <sys/wait.h> on mingw32.
20492 (start_inferior): Adjust for mingw32 support. Flush
20493 standard error after writing to it.
20494 (attach_inferior): Likewise. Use protocol signal
20496 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
20498 * win32-i386-low.c: New file.
20499 * Makefile.in (XM_CLIBS): Set.
20500 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
20501 (win32-i386-low.o): New dependency rule.
20502 * linux-low.c (linux_wait): Use target signal numbers.
20503 * target.h (struct target_ops): Doc fix.
20504 * server.h (target_signal_to_name): New prototype.
20505 * gdbreplay.c: Don't include headers unconditionally which
20506 are missing on mingw32. Include <winsock.h> for mingw32.
20507 (remote_close, remote_open): Adjust for Winsock support.
20508 * configure, config.in: Regenerated.
20510 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20512 * server.c (decode_xfer_read, write_qxfer_response): New.
20513 (handle_query): Take a packet length argument. Handle
20514 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
20515 the qSupported response.
20516 (main): Update call to handle_query.
20518 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
20520 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
20521 (putpkt_binary): Renamed from putpkt and adjusted for binary
20523 (putpkt): New wrapper for putpkt_binary.
20524 (readchar): Don't mask off the high bit.
20525 (decode_X_packet): New function.
20526 * server.c (main): Call putpkt_binary if a handler sets the packet
20527 length. Save the length of the incoming packet. Handle 'X'.
20528 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
20530 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
20532 * server.c (handle_query): Handle qSupported.
20534 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
20536 * remote-utils.c (all_symbols_looked_up): New variable.
20537 (look_up_one_symbol): Check it.
20538 * server.h (look_up_one_symbol): New declaration.
20539 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
20541 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
20543 * Makefile.in (linux-arm-low.o): Update dependencies.
20544 * linux-arm-low.c: Include "gdb_proc_service.h".
20545 (PTRACE_GET_THREAD_AREA): Define.
20546 (ps_get_thread_area): New function.
20548 2006-05-09 Nathan Sidwell <nathan@codesourcery.com>
20550 * configure.srv (m68k*-*-uclinux*): New target.
20551 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
20552 (linux_resume_one_process): Remove extraneous cast.
20553 (linux_read_offsets): New.
20554 (linux_target_op): Add linux_read_offsets on mmuless systems.
20555 * server.c (handle_query): Add qOffsets logic.
20556 * target.h (struct target_ops): Add read_offsets.
20558 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
20560 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
20561 (PTRACE_GET_THREAD_AREA): Define.
20562 (ps_get_thread_area): New function.
20563 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
20564 (linux-x86-64-low.o): Update.
20566 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
20568 * configure.ac: Remove checks for prfpregset_t.
20569 * gdb_proc_service.h: New file.
20570 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
20571 new "gdb_proc_service.h".
20572 * proc-service.c: Likewise.
20573 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
20574 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
20575 * Makefile.in (gdb_proc_service_h): Updated.
20576 * configure, config.in: Regenerated.
20578 2006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
20580 * remote-utils.c (prepare_resume_reply): Move declaration
20581 of gdb_id_from_wait to the top of the block.
20583 2006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
20585 * linux-low.c (regsets_store_inferior_registers): Read the regset
20586 from the target before filling it.
20588 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
20590 * server.c (attach_inferior): Return SIGTRAP for a successful
20593 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
20595 * Makefile.in (OBS): Add version.o.
20596 (STAGESTUFF): Delete.
20597 (version.o): Add dependencies.
20598 (version.c): Replace rule.
20599 (clean): Remove version.c.
20600 * server.c (gdbserver_version): New.
20601 (gdbserver_usage): Use printf.
20602 (main): Handle --version and --help.
20603 * server.h (version, host_name): Add declarations.
20605 2005-12-23 Eli Zaretskii <eliz@gnu.org>
20617 * linux-x86-64-low.c:
20619 * linux-s390-low.c:
20620 * linux-ppc64-low.c:
20622 * linux-mips-low.c:
20623 * linux-m68k-low.c:
20624 * linux-m32r-low.c:
20627 * linux-ia64-low.c:
20628 * linux-i386-low.c:
20629 * linux-crisv32-low.c:
20641 * gdbserver.1: Add (C) after Copyright. Update the FSF
20644 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
20646 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
20647 (arm_breakpoint_at): Recognize both breakpoints.
20648 (the_low_target): Use the correct breakpoint instruction.
20650 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
20652 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
20653 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
20654 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
20655 (the_low_target): Update.
20657 2005-10-25 Andreas Schwab <schwab@suse.de>
20659 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
20661 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
20662 (ia64_num_regs): Reduce to 462.
20664 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
20666 * acinclude.m4: Correct quoting.
20667 * aclocal.m4: Regenerated.
20669 Suggested by SZOKOVACS Robert <szo@ies.hu>:
20670 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
20671 (thread_db_init): Call thread_db_err_str.
20672 * configure.ac: Check for TD_VERSION.
20673 * config.in, configure: Regenerated.
20675 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20677 * server.h (error, fatal, warning): Add ATTR_FORMAT.
20679 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
20681 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
20682 is not available. Define HAVE_PTRACE_GETREGS if it is.
20683 * config.in, configure: Regenerated.
20684 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
20685 * linux-i386-low.c, linux-m68k-low.c: Update to use
20686 HAVE_PTRACE_GETREGS.
20687 * linux-low.c (regsets_fetch_inferior_registers)
20688 (regsets_store_inferior_registers): Only return 0 if we processed
20690 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
20691 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
20693 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
20695 * inferiors.c (struct thread_info): Add gdb_id.
20696 (add_thread): Add gdb_id argument.
20697 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
20698 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
20699 calls to add_thread.
20700 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
20701 * server.c (handle_query): Use thread_to_gdb_id.
20702 (handle_v_cont, main): Use gdb_id_to_thread_id.
20703 * server.h (add_thread): Update prototype.
20704 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
20707 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
20709 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
20710 left-padded registers.
20711 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
20712 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
20714 2005-07-01 Steve Ellcey <sje@cup.hp.com>
20716 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
20717 * configure: Regenerate.
20718 * config.in: Regenerate.
20719 * server.h (NEED_DECLARATION_STRERROR):
20720 Replace with !HAVE_DECL_STRERROR.
20722 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
20724 * linux-low.c (linux_wait, linux_send_signal): Don't test
20725 an unsigned long variable for > 0 if it could be MAX_ULONG.
20726 * server.c (myresume): Likewise.
20727 * target.c (set_desired_inferior): Likewise.
20729 2005-06-13 Mark Kettenis <kettenis@gnu.org>
20731 * configure.ac: Simplify and improve check for socklen_t.
20732 * configure, config.in: Regenerate.
20734 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
20736 * acconfig.h: Remove.
20737 * configure.ac: Add a test for socklen_t. Use three-argument
20738 AC_DEFINE throughout.
20739 * config.in: Regenerated using autoheader 2.59.
20740 * configure: Regenerated.
20742 * gdbreplay.c (socklen_t): Provide a default.
20743 (remote_open): Use socklen_t.
20744 * remote-utils.c (socklen_t): Provide a default.
20745 (remote_open): Use socklen_t.
20746 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
20749 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
20751 * linux-low.c (linux_read_memory, linux_write_memory)
20752 (linux_read_auxv): Likewise.
20753 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
20754 (check_mem_write): Likewise.
20755 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
20757 * regcache.c (struct inferior_rgcache_data, registers_to_string)
20758 (registers_from_string, register_data): Likewise.
20759 * server.c (handle_query, main): Likewise.
20760 * server.h (convert_ascii_to_int, convert_int_to_ascii)
20761 (decode_M_packet): Likewise.
20762 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
20763 * target.h (struct target_ops): Update read_memory, write_memory,
20765 (read_inferior_memory, write_inferior_memory): Update.
20766 * linux-low.h (struct linux_target_ops): Change type of breakpoint
20767 to unsigned char *.
20768 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
20769 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
20770 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
20771 linux-s390-low.c, linux-sh-low.c: Update for changes in
20772 read_inferior_memory and the_low_target->breakpoint.
20774 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
20776 * Makefile.in (SFILES): Add linux-ppc64-low.c.
20777 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
20778 * configure.srv: Add powerpc64-*-linux*.
20779 * linux-ppc64-low.c: New file.
20781 2005-05-23 Orjan Friberg <orjanf@axis.com>
20783 * linux-cris-low.c: New file with support for CRIS.
20784 * linux-crisv32-low.c: Ditto for CRISv32.
20785 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
20786 (clean): Add reg-cris.c and reg-crisv32.c.
20787 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
20788 reg-crisv32.o, and reg-crisv32.c to make rules.
20789 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
20790 recognized targets.
20792 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
20794 * linux-low.c (fetch_register): Ensure buffer size is a multiple
20795 of sizeof (PTRACE_XFER_TYPE).
20796 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
20798 2005-05-12 Orjan Friberg <orjanf@axis.com>
20800 * target.h (struct target_ops): Add insert_watchpoint,
20801 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
20802 pointers for hardware watchpoint support.
20803 * linux-low.h (struct linux_target_ops): Ditto.
20804 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
20805 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
20806 to linux_target_ops.
20807 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
20809 * server.c (main): Recognize 'Z' and 'z' packets.
20811 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
20813 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
20814 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
20815 (the_low_target): Add new members.
20817 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
20819 * proc-service.c (ps_lgetregs): Search all_processes instead of
20822 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
20824 * server.c (start_inferior): Change return type to int.
20825 (attach_inferior): Change sigptr to int *.
20826 (handle_v_cont, handle_v_requests): Change signal to int *.
20827 (main): Change signal to int.
20829 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
20831 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
20832 * configure.srv: Add m32r*-*-linux*.
20833 * linux-m32r-low.c: New file.
20835 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
20837 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
20839 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
20841 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
20842 Take unsigned long arguments for PIDs.
20843 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
20844 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
20845 (wait_for_sigstop, linux_resume_one_process)
20846 (regsets_fetch_inferior_registers, linux_send_signal)
20847 (linux_read_auxv): Likewise. Update the types of variables holding
20848 PIDs. Update format string specifiers.
20849 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
20850 * remote-utils.c (prepare_resume_reply): Likewise.
20851 * server.c (cont_thread, general_thread, step_thread)
20852 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
20854 (handle_query): Update format specifiers.
20855 (handle_v_cont, main): Use strtoul for thread IDs.
20856 * server.h (struct inferior_list_entry): Use unsigned long for ID.
20857 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
20858 (general_thread, step_thread, thread_from_wait)
20859 (old_thread_from_wait): Update.
20860 * target.h (struct thread_resume): Use unsigned long for THREAD.
20861 (struct target_ops): Use unsigned long for arguments to attach and
20864 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
20866 * acinclude.m4: Include bfd/bfd.m4 directly.
20867 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
20868 <agriffis@toolchain.org>.
20869 * aclocal.m4, configure: Regenerated.
20871 2005-01-07 Andrew Cagney <cagney@gnu.org>
20873 * configure.ac: Rename configure.in, require autoconf 2.59.
20874 * configure: Re-generate.
20876 2004-12-08 Daniel Jacobowitz <dan@debian.org>
20878 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
20879 LIBS when finished.
20880 * aclocal.m4: Regenerated.
20881 * configure: Regenerated.
20883 2004-11-21 Andreas Schwab <schwab@suse.de>
20885 * linux-m68k-low.c (m68k_num_gregs): Define.
20886 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
20887 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
20888 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
20889 (m68k_breakpoint_at): New. Add to the_low_target.
20891 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
20892 srv_linux_thread_db to yes.
20894 2004-10-20 Joel Brobecker <brobecker@gnat.com>
20896 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
20897 (ARCH_SET_FS): Likewise.
20898 (ARCH_GET_FS): Likewise.
20899 (ARCH_GET_GS): Likewise.
20901 2004-10-16 Daniel Jacobowitz <dan@debian.org>
20903 * linux-i386-low.c (ps_get_thread_area): New.
20904 * linux-x86-64-low.c (ps_get_thread_area): New.
20905 * linux-low.c: Include <sys/syscall.h>.
20906 (linux_kill_one_process): Don't kill the first thread here.
20907 (linux_kill): Kill the first thread here.
20908 (kill_lwp): New function.
20909 (send_sigstop, linux_send_signal): Use it.
20910 * proc-service.c: Clean up #ifdefs.
20911 (fpregset_info): Delete.
20912 (ps_lgetregs): Update and enable implementation.
20913 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
20915 * remote-utils.c (struct sym_cache, symbol_cache): New.
20916 (input_interrupt): Print a clearer message.
20917 (async_io_enabled): New variable.
20918 (enable_async_io, disable_async_io): Use it. Update comments.
20919 (look_up_one_symbol): Use the symbol cache.
20920 * thread-db.c (thread_db_look_up_symbols): New function.
20921 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
20923 2004-10-16 Daniel Jacobowitz <dan@debian.org>
20925 * configure.in: Test for -rdynamic.
20926 * configure: Regenerated.
20927 * Makefile (INTERNAL_LDFLAGS): New.
20928 (gdbserver, gdbreplay): Use it.
20930 2004-09-02 Andrew Cagney <cagney@gnu.org>
20932 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
20934 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
20936 * linux-low.c (linux_wait): Clear all_processes list also.
20938 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
20940 * linux-low.c: Include <errno.h>. Remove extern declaration of
20943 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
20945 * gdbreplay.c, server.h, utils.c: Update copyright years.
20947 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
20949 * server.c (main): Print child status or termination signal from
20950 variable 'signal', not 'sig'.
20952 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
20954 * linux-low.c (linux_read_memory): Change return type to
20955 int. Check for and return error from ptrace().
20956 * target.c (read_inferior_memory): Change return type to int. Pass
20957 back return status from the_target->read_memory().
20958 * target.h (struct target_ops): Adapt *read_memory() prototype.
20960 (read_inferior_memory): Adapt prototype.
20961 * server.c (main): Return an error packet if
20962 read_inferior_memory() returns an error.
20964 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
20966 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
20967 Unify with other clean targets.
20969 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
20971 * server.c (handle_v_cont): Call set_desired_inferior.
20973 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
20975 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
20977 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
20979 * linux-low.c (linux_wait): Unblock async I/O.
20980 (linux_resume): Block and enable async I/O.
20981 * remote-utils.c (block_async_io, unblock_async_io): New functions.
20982 * server.h (block_async_io, unblock_async_io): Add prototypes.
20984 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
20986 * remote-utils.c (remote_open): Print a status notice after
20987 opening a TCP port.
20988 * server.c (attach_inferior): Print a status notice after
20991 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
20993 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
20995 2004-02-26 Daniel Jacobowitz <drow@mvista.com>
20997 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
20999 * server.c, target.h: Update copyright years.
21001 2004-02-25 Roland McGrath <roland@redhat.com>
21003 * target.h (struct target_ops): New member `read_auxv'.
21004 * server.c (handle_query): Handle qPart:auxv:read: query using that.
21005 * linux-low.c (linux_read_auxv): New function.
21006 (linux_target_ops): Initialize `read_auxv' member to that.
21008 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21010 Committed by Jim Blandy <jimb@redhat.com>.
21012 * linux-s390-low.c (s390_num_regs): Update.
21013 (s390_regmap): Remove control registers. Use __s390x__ predefine
21014 instead of GPR_SIZE to distiguish s390 and s390x targets.
21016 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
21018 * linux-low.c: Update copyright year.
21019 (check_removed_breakpoint): Clear pending_is_breakpoint.
21020 (linux_set_resume_request, linux_queue_one_thread)
21021 (resume_status_pending_p): New functions.
21022 (linux_continue_one_thread): Use process->resume.
21023 (linux_resume): Only resume threads if there are no pending events.
21024 * linux-low.h (struct process_info): Add resume request
21027 2004-01-30 Daniel Jacobowitz <drow@mvista.com>
21029 * regcache.c (new_register_cache): Clear the allocated register
21030 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
21032 2003-10-13 Daniel Jacobowitz <drow@mvista.com>
21034 * linux-low.c (linux_resume): Take a struct thread_resume *
21036 (linux_wait): Update call.
21037 (resume_ptr): New static variable.
21038 (linux_continue_one_thread): Renamed from
21039 linux_continue_one_process. Use resume_ptr.
21040 (linux_resume): Use linux_continue_one_thread.
21041 * server.c (handle_v_cont, handle_v_requests): New functions.
21042 (myresume): New function.
21043 (main): Handle 'v' case.
21044 * target.h (struct thread_resume): New type.
21045 (struct target_ops): Change argument of "resume" to struct
21047 (myresume): Delete macro.
21049 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
21051 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
21052 (uninstall): Support DESTDIR.
21054 Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
21056 * configure.srv: Add xscale*linux copy of arm*linux entry.
21058 2003-07-24 Daniel Jacobowitz <drow@mvista.com>
21060 * linux-arm-low.c (arm_reinsert_addr): New function.
21061 (the_low_target): Add arm_reinsert_addr.
21063 2003-07-08 Mark Kettenis <kettenis@gnu.org>
21065 * mem-break.c: Remove whitespace at end of file.
21067 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
21069 * configure.in: Check whether we need to prototype strerror.
21070 * server.h: Optionally prototype strerror.
21071 * gdbreplay.c (perror_with_name): Use strerror.
21072 * linux-low.c (linux_attach_lwp): Use strerror.
21073 * utils.c (perror_with_name): Use strerror.
21074 * config.in, configure: Regenerated.
21076 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
21078 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
21079 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
21081 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
21083 * Makefile.in (SFILES): Update.
21084 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
21085 low-sun3.c: Remove files.
21087 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
21089 * linux-low.c: Move comment to linux_thread_alive where it belonged.
21090 (linux_detach_one_process, linux_detach): New functions.
21091 (linux_target_ops): Add linux_detach.
21092 * server.c (main): Handle 'D' packet.
21093 * target.h (struct target_ops): Add "detach" member.
21094 (detach_inferior): Define.
21096 2003-06-13 Mark Kettenis <kettenis@gnu.org>
21098 From Kelley Cook <kelleycook@wideopenwest.com>:
21099 * configure.srv: Accept i[34567]86 variants.
21101 2003-06-05 Daniel Jacobowitz <drow@mvista.com>
21103 * linux-low.c (linux_wait_for_event): Correct comment typos.
21104 (linux_resume_one_process): Call check_removed_breakpoint.
21105 (linux_send_signal): New function.
21106 (linux_target_ops): Add linux_send_signal.
21107 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
21109 * target.h (struct target_ops): Add send_signal.
21111 2003-05-29 Jim Blandy <jimb@redhat.com>
21113 * linux-low.c (usr_store_inferior_registers): Transfer buf in
21114 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
21115 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
21116 away part of the register's value.
21118 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
21120 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
21121 (linux_wait_for_event, linux_init_signals): Likewise.
21123 2003-03-17 Daniel Jacobowitz <drow@mvista.com>
21125 * configure.in: Check for stdlib.h.
21126 * configure: Regenerated.
21127 * config.in: Regenerated.
21129 2003-01-04 Andreas Schwab <schwab@suse.de>
21131 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
21133 2003-01-02 Andrew Cagney <ac131313@redhat.com>
21135 * Makefile.in: Remove obsolete code.
21137 2002-11-20 Daniel Jacobowitz <drow@mvista.com>
21139 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
21140 defined(PT_FPR0_HI).
21142 2002-11-17 Stuart Hughes <seh@zee2.com>
21144 * linux-arm-low.c (arm_num_regs): Increase.
21145 (arm_regmap): Include status register.
21147 2002-11-17 Daniel Jacobowitz <drow@mvista.com>
21149 * linux-low.c (register_addr): Remove incorrect -1 check.
21151 2002-08-29 Daniel Jacobowitz <drow@mvista.com>
21153 * linux-low.c (linux_create_inferior): Call setpgid. Return
21155 (unstopped_p, linux_signal_pid): Remove.
21156 (linux_target_ops): Remove linux_signal_pid.
21157 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
21158 global instead of target method.
21159 * target.h (struct target_ops): Remove signal_pid. Update comment
21160 for create_inferior.
21161 * server.c (signal_pid): New variable.
21162 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
21163 gdbserver. Set the child to be the foreground process group.
21164 (attach_inferior): Set signal_pid.
21166 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
21168 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
21170 2002-08-20 Jim Blandy <jimb@redhat.com>
21172 * Makefile.in (LDFLAGS): Allow the configure script to establish a
21175 2002-08-01 Andrew Cagney <cagney@redhat.com>
21177 * Makefile.in: Make chill references obsolete.
21179 2002-07-24 Kevin Buettner <kevinb@redhat.com>
21181 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
21182 * configure: Regenerate.
21183 * config.in: Regenerate.
21185 2002-07-09 David O'Brien <obrien@FreeBSD.org>
21187 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
21188 (perror_with_name, remote_close, remote_open, expect, play): Static.
21190 2002-07-04 Michal Ludvig <mludvig@suse.cz>
21192 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
21193 byte offsets instead of an array of indexes.
21194 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
21196 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
21198 * regcache.c: Add comment.
21200 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
21202 * thread-db.c: New file.
21203 * proc-service.c: New file.
21204 * acinclude.m4: New file.
21205 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
21206 proc-service.o, and thread-db.o.
21207 (linux-low.o): Add USE_THREAD_DB.
21208 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
21209 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
21210 * aclocal.m4: Regenerated.
21211 * config.in: Regenerated.
21212 * configure: Regenerated.
21213 * configure.in: Check for proc_service.h, sys/procfs.h,
21214 thread_db.h, and linux/elf.h headrs.
21215 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
21216 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
21217 Check for -lthread_db and thread support.
21218 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
21219 PowerPC, and SuperH.
21220 * i387-fp.c: Constify arguments.
21221 * i387-fp.h: Likewise.
21222 * inferiors.c: (struct thread_info): Renamed from
21223 `struct inferior_info'. Remove PID member. Use generic inferior
21224 list header. All uses updated.
21225 (inferiors, signal_pid): Removed.
21226 (all_threads): New variable.
21227 (get_thread): Define.
21228 (add_inferior_to_list): New function.
21229 (for_each_inferior): New function.
21230 (change_inferior_id): New function.
21231 (add_inferior): Removed.
21232 (remove_inferior): New function.
21233 (add_thread): New function.
21234 (free_one_thread): New function.
21235 (remove_thread): New function.
21236 (clear_inferiors): Use for_each_inferior and free_one_thread.
21237 (find_inferior): New function.
21238 (find_inferior_id): New function.
21239 (inferior_target_data): Update argument type.
21240 (set_inferior_target_data): Likewise.
21241 (inferior_regcache_data): Likewise.
21242 (set_inferior_regcache_data): Likewise.
21243 * linux-low.c (linux_bp_reinsert): Remove.
21244 (all_processes, stopping_threads, using_thrads)
21245 (struct pending_signals, debug_threads, pid_of): New.
21246 (inferior_pid): Replace with macro.
21247 (struct inferior_linux_data): Remove.
21248 (get_stop_pc, add_process): New functions.
21249 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
21250 Use add_process and add_thread.
21251 (linux_attach_lwp): New function, based on old linux_attach. Use
21252 add_process and add_thread. Set stop_expected for new threads.
21253 (linux_attach): New function.
21254 (linux_kill_one_process): New function.
21255 (linux_kill): Kill all LWPs.
21256 (linux_thread_alive): Use find_inferior_id.
21257 (check_removed_breakpoints, status_pending_p): New functions.
21258 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
21259 Update. Use WNOHANG. Wait for cloned processes also. Update process
21260 struct for the found process.
21261 (linux_wait_for_event): New function.
21262 (linux_wait): Use it. Support LWPs.
21263 (send_sigstop, wait_for_sigstop, stop_all_processes)
21264 (linux_resume_one_process, linux_continue_one_process): New functions.
21265 (linux_resume): Support LWPs.
21266 (REGISTER_RAW_SIZE): Remove.
21267 (fetch_register): Use register_size instead. Call supply_register.
21268 (usr_store_inferior_registers): Likewise. Call collect_register.
21269 Fix recursive case.
21270 (regsets_fetch_inferior_registers): Improve error message.
21271 (regsets_store_inferior_registers): Add debugging.
21272 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
21273 (unstopped_p, linux_signal_pid): New functions.
21274 (linux_target_ops): Add linux_signal_pid.
21275 (linux_init_signals): New function.
21276 (initialize_low): Call it. Initialize using_threads.
21277 * regcache.c (inferior_regcache_data): Add valid
21279 (get_regcache): Fetch registers lazily. Add fetch argument
21280 and update all callers.
21281 (regcache_invalidate_one, regcache_invalidate): New
21283 (new_register_cache): Renamed from create_register_cache.
21284 Return the new regcache.
21285 (free_register_cache): Change argument to a void *.
21286 (registers_to_string, registers_from_string): Call get_regcache
21287 with fetch flag set.
21288 (register_data): Make static. Pass fetch flag to get_regcache.
21289 (supply_register): Call get_regcache with fetch flag clear.
21290 (collect_register): Call get_regcache with fetch flag set.
21291 (collect_register_as_string): New function.
21292 * regcache.h: Update.
21293 * remote-utils.c (putpkt): Flush after debug output and use
21295 Handle input interrupts while waiting for an ACK.
21296 (input_interrupt): Use signal_pid method.
21297 (getpkt): Flush after debug output and use stderr.
21298 (outreg): Use collect_register_as_string.
21299 (new_thread_notify, dead_thread_notify): New functions.
21300 (prepare_resume_reply): Check using_threads. Set thread_from_wait
21301 and general_thread.
21302 (look_up_one_symbol): Flush after debug output.
21303 * server.c (step_thread, server_waiting): New variables.
21304 (start_inferior): Don't use signal_pid. Update call to mywait.
21305 (attach_inferior): Update call to mywait.
21306 (handle_query): Handle qfThreadInfo and qsThreadInfo.
21307 (main): Don't fetch/store registers explicitly. Use
21308 set_desired_inferior. Support proposed ``Hs'' packet. Update
21310 * server.h: Update.
21311 (struct inferior_list, struct_inferior_list_entry): New.
21312 * target.c (set_desired_inferior): New.
21313 (write_inferior_memory): Constify.
21314 (mywait): New function.
21315 * target.h: Update.
21316 (struct target_ops): New signal_pid method.
21317 (mywait): Removed macro, added prototype.
21319 * linux-low.h (regset_func): Removed.
21320 (regset_fill_func, regset_store_func): New.
21321 (enum regset_type): New.
21322 (struct regset_info): Add type field. Use new operation types.
21323 (struct linux_target_ops): stop_pc renamed to get_pc.
21324 Add decr_pc_after_break and breakpoint_at.
21325 (get_process, get_thread_proess, get_process_thread)
21326 (strut process_info, all_processes, linux_attach_lwp)
21327 (thread_db_init): New.
21329 * linux-arm-low.c (arm_get_pc, arm_set_pc,
21330 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
21331 (the_low_target): Add new members.
21332 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
21333 (i386_store_fpxregset): Constify.
21334 (target_regsets): Add new kind identifier.
21335 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
21336 (i386_set_pc): Add debugging.
21337 (i386_breakpoint_at): New function.
21338 (the_low_target): Add new members.
21339 * linux-mips-low.c (mips_get_pc, mips_set_pc)
21340 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
21341 (mips_breakpoint_at): New.
21342 (the_low_target): Add new members.
21343 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
21344 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
21345 (the_low_target): Add new members.
21346 * linux-sh-low.c (sh_get_pc, sh_set_pc)
21347 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
21348 (the_low_target): Add new members.
21349 * linux-x86-64-low.c (target_regsets): Add new kind
21352 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
21354 From Martin Pool <mbp@samba.org>:
21355 * server.c (gdbserver_usage): New function.
21358 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
21360 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
21361 stop_at -> stop_pc.
21363 2002-05-04 Andrew Cagney <ac131313@redhat.com>
21365 * Makefile.in: Remove obsolete code.
21367 2002-04-24 Michal Ludvig <mludvig@suse.cz>
21369 * linux-low.c (regsets_fetch_inferior_registers),
21370 (regsets_store_inferior_registers): Removed cast to int from
21372 * regcache.h: Added declaration of struct inferior_info.
21374 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
21376 * inferiors.c (struct inferior_info): Add regcache_data.
21377 (add_inferior): Call create_register_cache.
21378 (clear_inferiors): Call free_register_cache.
21379 (inferior_regcache_data, set_inferior_regcache_data): New functions.
21380 * regcache.c (struct inferior_regcache_data): New.
21381 (registers): Remove.
21382 (get_regcache): New function.
21383 (create_register_cache, free_register_cache): New functions.
21384 (set_register_cache): Don't initialize the register cache here.
21385 (registers_to_string, registers_from_string, register_data): Call
21387 * regcache.h: Add prototypes.
21388 * server.h: Likewise.
21390 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
21392 * mem-break.c: New file.
21393 * mem-break.h: New file.
21394 * Makefile.in: Add mem-break.o rule; update server.h
21396 * inferiors.c (struct inferior_info): Add target_data
21398 (clear_inferiors): Free target_data member if set.
21399 (inferior_target_data, set_inferior_target_data): New functions.
21400 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
21401 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
21402 * linux-low.c (linux_bp_reinsert): New variable.
21403 (struct inferior_linux_data): New.
21404 (linux_create_inferior): Use set_inferior_target_data.
21405 (linux_attach): Likewise. Call add_inferior.
21406 (linux_wait_for_one_inferior): New function.
21407 (linux_wait): Call it.
21408 (linux_write_memory): Add const.
21409 (initialize_low): Call set_breakpoint_data.
21410 * linux-low.h (struct linux_target_ops): Add breakpoint
21412 * server.c (attach_inferior): Remove extra add_inferior
21414 * server.h: Include mem-break.h. Update inferior.c
21416 * target.c (read_inferior_memory)
21417 (write_inferior_memory): New functions.
21418 * target.h (read_inferior_memory)
21419 (write_inferior_memory): Change macros to prototypes.
21420 (struct target_ops): Update comments. Add const to write_memory
21423 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
21425 * linux-low.c (usr_store_inferior_registers): Support
21426 registers which are allowed to fail to store.
21427 * linux-low.h (linux_target_ops): Likewise.
21428 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
21429 (ppc_cannot_store_register): FPSCR may not be storable.
21431 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
21433 * server.h: Include <string.h> if HAVE_STRING_H.
21434 * ChangeLog: Correct paths in last ChangeLog entry.
21436 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
21438 * linux-low.h: Remove obsolete prototypes.
21439 (struct linux_target_ops): New.
21440 (extern the_low_target): New.
21441 * linux-low.c (num_regs, regmap): Remove declarations.
21442 (register_addr): Use the_low_target explicitly.
21443 (fetch_register): Likewise.
21444 (usr_fetch_inferior_registers): Likewise.
21445 (usr_store_inferior_registers): Likewise.
21446 * linux-arm-low.c (num_regs): Remove.
21447 (arm_num_regs): Define.
21448 (arm_regmap): Renamed from regmap, made static.
21449 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
21451 (arm_cannot_store_register): Renamed from cannot_store_register,
21453 (the_low_target): New.
21454 * linux-i386-low.c (num_regs): Remove.
21455 (i386_num_regs): Define.
21456 (i386_regmap): Renamed from regmap, made static.
21457 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
21459 (i386_cannot_store_register): Renamed from cannot_store_register,
21461 (the_low_target): New.
21462 * linux-ia64-low.c (num_regs): Remove.
21463 (ia64_num_regs): Define.
21464 (ia64_regmap): Renamed from regmap, made static.
21465 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
21467 (ia64_cannot_store_register): Renamed from cannot_store_register,
21469 (the_low_target): New.
21470 * linux-m68k-low.c (num_regs): Remove.
21471 (m68k_num_regs): Define.
21472 (m68k_regmap): Renamed from regmap, made static.
21473 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
21475 (m68k_cannot_store_register): Renamed from cannot_store_register,
21477 (the_low_target): New.
21478 * linux-mips-low.c (num_regs): Remove.
21479 (mips_num_regs): Define.
21480 (mips_regmap): Renamed from regmap, made static.
21481 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
21483 (mips_cannot_store_register): Renamed from cannot_store_register,
21485 (the_low_target): New.
21486 * linux-ppc-low.c (num_regs): Remove.
21487 (ppc_num_regs): Define.
21488 (ppc_regmap): Renamed from regmap, made static.
21489 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
21491 (ppc_cannot_store_register): Renamed from cannot_store_register,
21493 (the_low_target): New.
21494 * linux-s390-low.c (num_regs): Remove.
21495 (s390_num_regs): Define.
21496 (s390_regmap): Renamed from regmap, made static.
21497 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
21499 (s390_cannot_store_register): Renamed from cannot_store_register,
21501 (the_low_target): New.
21502 * linux-sh-low.c (num_regs): Remove.
21503 (sh_num_regs): Define.
21504 (sh_regmap): Renamed from regmap, made static.
21505 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
21507 (sh_cannot_store_register): Renamed from cannot_store_register,
21509 (the_low_target): New.
21510 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
21511 (the_low_target): New.
21513 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
21515 * Makefile.in: Add stamp-h target.
21516 * configure.in: Create stamp-h.
21517 * configure: Regenerated.
21519 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
21521 * inferiors.c: New file.
21522 * target.c: New file.
21523 * target.h: New file.
21524 * Makefile.in: Add target.o and inferiors.o. Update
21526 * linux-low.c (inferior_pid): New static variable,
21527 moved from server.c.
21528 (linux_create_inferior): Renamed from create_inferior.
21529 Call add_inferior. Return 0 on success instead of a PID.
21530 (linux_attach): Renamed from myattach.
21531 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
21532 (linux_thread_alive): Renamed from mythread_alive.
21533 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
21535 (linux_resume): Renamed from myresume. Add missing ``return 0''.
21536 (regsets_store_inferior_registers): Correct error message.
21537 Add missing ``return 0''.
21538 (linux_fetch_registers): Renamed from fetch_inferior_registers.
21539 (linux_store_registers): Renamed from store_inferior_registers.
21540 (linux_read_memory): Renamed from read_inferior_memory.
21541 (linux_write_memory): Renamed from write_inferior_memory.
21542 (linux_target_ops): New structure.
21543 (initialize_low): Call set_target_ops ().
21544 * remote-utils.c (unhexify): New function.
21545 (hexify): New function.
21546 (input_interrupt): Send signals to ``signal_pid''.
21547 * server.c (inferior_pid): Remove.
21548 (start_inferior): Update create_inferior call.
21549 (attach_inferior): Call add_inferior.
21550 (handle_query): New function.
21551 (main): Call handle_query for `q' packets.
21552 * server.h: Include "target.h". Remove obsolete prototypes.
21553 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
21555 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
21557 * Makefile.in: Add WARN_CFLAGS. Update configury
21559 * configure.in: Check for <string.h>
21560 * configure: Regenerate.
21561 * config.in: Regenerate.
21562 * gdbreplay.c: Include needed system headers.
21563 (remote_open): Remove strchr prototype.
21564 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
21565 * regcache.c (supply_register): Change buf argument to const void *.
21566 (supply_register_by_name): Likewise.
21567 (collect_register): Change buf argument to void *.
21568 (collect_register_by_name): Likewise.
21569 * regcache.h: Add missing prototypes.
21570 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
21571 * server.c (handle_query): New function.
21572 (attached): New static variable, moved out of main.
21573 (main): Quiet longjmp clobber warnings.
21574 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
21575 * utils.c (error): Remove NORETURN.